File tree 2 files changed +19
-3
lines changed
2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -209,10 +209,14 @@ export default class BlockExtractor {
209
209
acc . push (
210
210
`${ bundle } __parent_block_${ entry . parentBundle } : ${ v . componentName } ` ,
211
211
)
212
- } else {
212
+ } else if ( 'fieldList' in entry ) {
213
213
acc . push (
214
214
`${ bundle } __field_list_type_${ entry . fieldList } : ${ v . componentName } ` ,
215
215
)
216
+ } else if ( 'fieldListType' in entry ) {
217
+ acc . push (
218
+ `${ bundle } __field_list_type_${ entry . fieldListType } : ${ v . componentName } ` ,
219
+ )
216
220
}
217
221
} )
218
222
} else {
@@ -612,10 +616,14 @@ export function getBlokkliFragmentComponent(name: string): any {
612
616
acc . push (
613
617
`block_${ bundle } __parent_block_${ entry . parentBundle } : ${ v . componentName } ` ,
614
618
)
615
- } else {
619
+ } else if ( 'fieldList' in entry ) {
616
620
acc . push (
617
621
`block_${ bundle } __field_list_type_${ entry . fieldList } : ${ v . componentName } ` ,
618
622
)
623
+ } else if ( 'fieldListType' in entry ) {
624
+ acc . push (
625
+ `block_${ bundle } __field_list_type_${ entry . fieldListType } : ${ v . componentName } ` ,
626
+ )
619
627
}
620
628
} )
621
629
}
Original file line number Diff line number Diff line change @@ -262,11 +262,19 @@ export type BlockDefinitionRenderForParent = {
262
262
parentBundle : BlockBundleWithNested
263
263
}
264
264
265
- export type BlockDefinitionRenderForFieldListType = {
265
+ export type BlockDefinitionRenderForFieldList = {
266
+ /**
267
+ * @deprecated Use `fieldListType` instead.
268
+ */
266
269
fieldList : ValidFieldListTypes
267
270
}
271
+
272
+ export type BlockDefinitionRenderForFieldListType = {
273
+ fieldListType : ValidFieldListTypes
274
+ }
268
275
export type BlockDefinitionRenderFor =
269
276
| BlockDefinitionRenderForParent
277
+ | BlockDefinitionRenderForFieldList
270
278
| BlockDefinitionRenderForFieldListType
271
279
272
280
export type BlockDefinitionInput <
You can’t perform that action at this time.
0 commit comments