@@ -49,6 +49,16 @@ export function FileSelectorInput({
4949 const [ teamIdValueFromStore ] = useSubBlockValue ( blockId , 'teamId' )
5050 const [ siteIdValueFromStore ] = useSubBlockValue ( blockId , 'siteId' )
5151 const [ collectionIdValueFromStore ] = useSubBlockValue ( blockId , 'collectionId' )
52+ const [ apiKeyValueFromStore ] = useSubBlockValue ( blockId , 'apiKey' )
53+ const [ boardIdValueFromStore ] = useSubBlockValue ( blockId , 'board_id' )
54+ const [ boardIdCamelFromStore ] = useSubBlockValue ( blockId , 'boardId' )
55+ const [ boardIdListFromStore ] = useSubBlockValue ( blockId , 'board_id_list' )
56+ const [ boardIdUpdateFromStore ] = useSubBlockValue ( blockId , 'board_id_update' )
57+ const [ groupIdValueFromStore ] = useSubBlockValue ( blockId , 'group_id' )
58+ const [ groupIdCamelFromStore ] = useSubBlockValue ( blockId , 'groupId' )
59+ const [ groupIdListFromStore ] = useSubBlockValue ( blockId , 'group_id_list' )
60+ const [ columnIdValueFromStore ] = useSubBlockValue ( blockId , 'column_id' )
61+ const [ columnIdCamelFromStore ] = useSubBlockValue ( blockId , 'columnId' )
5262
5363 const connectedCredential = previewContextValues ?. credential ?? connectedCredentialFromStore
5464 const domainValue = previewContextValues ?. domain ?? domainValueFromStore
@@ -57,6 +67,25 @@ export function FileSelectorInput({
5767 const teamIdValue = previewContextValues ?. teamId ?? teamIdValueFromStore
5868 const siteIdValue = previewContextValues ?. siteId ?? siteIdValueFromStore
5969 const collectionIdValue = previewContextValues ?. collectionId ?? collectionIdValueFromStore
70+ const apiKeyValue = previewContextValues ?. apiKey ?? apiKeyValueFromStore
71+ const boardIdValue =
72+ previewContextValues ?. board_id ??
73+ previewContextValues ?. boardId ??
74+ boardIdValueFromStore ??
75+ boardIdCamelFromStore ??
76+ boardIdListFromStore ??
77+ boardIdUpdateFromStore
78+ const groupIdValue =
79+ previewContextValues ?. group_id ??
80+ previewContextValues ?. groupId ??
81+ groupIdValueFromStore ??
82+ groupIdCamelFromStore ??
83+ groupIdListFromStore
84+ const columnIdValue =
85+ previewContextValues ?. column_id ??
86+ previewContextValues ?. columnId ??
87+ columnIdValueFromStore ??
88+ columnIdCamelFromStore
6089
6190 const normalizedCredentialId =
6291 typeof connectedCredential === 'string'
@@ -81,6 +110,10 @@ export function FileSelectorInput({
81110 teamId : ( teamIdValue as string ) || undefined ,
82111 siteId : ( siteIdValue as string ) || undefined ,
83112 collectionId : ( collectionIdValue as string ) || undefined ,
113+ apiKey : ( apiKeyValue as string ) || undefined ,
114+ boardId : ( boardIdValue as string ) || undefined ,
115+ groupId : ( groupIdValue as string ) || undefined ,
116+ columnId : ( columnIdValue as string ) || undefined ,
84117 } )
85118 } , [
86119 subBlock ,
@@ -92,9 +125,15 @@ export function FileSelectorInput({
92125 teamIdValue ,
93126 siteIdValue ,
94127 collectionIdValue ,
128+ apiKeyValue ,
129+ boardIdValue ,
130+ groupIdValue ,
131+ columnIdValue ,
95132 ] )
96133
97- const missingCredential = ! normalizedCredentialId
134+ const isMondaySelector = selectorResolution ?. key ?. startsWith ( 'monday.' )
135+ const missingCredential = ! isMondaySelector && ! normalizedCredentialId
136+ const missingApiKey = isMondaySelector && ! selectorResolution ?. context . apiKey
98137 const missingDomain =
99138 selectorResolution ?. key &&
100139 ( selectorResolution . key === 'confluence.pages' || selectorResolution . key === 'jira.issues' ) &&
@@ -109,16 +148,27 @@ export function FileSelectorInput({
109148 selectorResolution ?. key === 'webflow.collections' && ! selectorResolution . context . siteId
110149 const missingCollection =
111150 selectorResolution ?. key === 'webflow.items' && ! selectorResolution . context . collectionId
151+ const missingBoard =
152+ isMondaySelector &&
153+ ( selectorResolution ?. key === 'monday.groups' || selectorResolution ?. key === 'monday.columns' ) &&
154+ ! selectorResolution ?. context . boardId
155+ const missingColumn =
156+ isMondaySelector &&
157+ selectorResolution ?. key === 'monday.status-options' &&
158+ ! selectorResolution ?. context . columnId
112159
113160 const disabledReason =
114161 finalDisabled ||
115162 isForeignCredential ||
116163 missingCredential ||
164+ missingApiKey ||
117165 missingDomain ||
118166 missingProject ||
119167 missingPlan ||
120168 missingSite ||
121169 missingCollection ||
170+ missingBoard ||
171+ missingColumn ||
122172 ! selectorResolution ?. key
123173
124174 if ( ! selectorResolution ?. key ) {
0 commit comments