@contentful/experiences-visual-editor-react 1.42.0-prerelease-20250627T1335-d74dad7.0 → 1.42.0-prerelease-20250630T1135-a8b68d4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/renderApp.js CHANGED
@@ -43464,13 +43464,29 @@ const ParameterDefinitionsSchema$1 = z.record(propertyKeySchema$1, ParameterDefi
43464
43464
  const VariableMappingsSchema$1 = z.record(propertyKeySchema$1, VariableMappingSchema$1);
43465
43465
  const ComponentVariablesSchema$1 = z.record(z.string().regex(/^[a-zA-Z0-9-_]{1,54}$/), // Here the key is <variableName>_<nanoidId> so we need to allow for a longer length
43466
43466
  ComponentVariableSchema$1);
43467
- const ComponentSettingsSchema$1 = z.object({
43467
+ const PassToNodeSchema$1 = z
43468
+ .object({
43469
+ nodeId: propertyKeySchema$1,
43470
+ parameterId: propertyKeySchema$1,
43471
+ prebindingId: propertyKeySchema$1,
43472
+ })
43473
+ .strict();
43474
+ const PrebindingDefinitionSchema$1 = z
43475
+ .object({
43476
+ id: propertyKeySchema$1,
43477
+ variableMappings: VariableMappingsSchema$1.optional(),
43478
+ parameterDefinitions: ParameterDefinitionsSchema$1,
43479
+ passToNodes: z.array(PassToNodeSchema$1).optional(),
43480
+ })
43481
+ .strict();
43482
+ const ComponentSettingsSchema$1 = z
43483
+ .object({
43468
43484
  variableDefinitions: ComponentVariablesSchema$1,
43469
43485
  thumbnailId: z.enum(THUMBNAIL_IDS$1).optional(),
43470
43486
  category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
43471
- variableMappings: VariableMappingsSchema$1.optional(),
43472
- parameterDefinitions: ParameterDefinitionsSchema$1.optional(),
43473
- });
43487
+ prebindingDefinitions: z.array(PrebindingDefinitionSchema$1).optional(),
43488
+ })
43489
+ .strict();
43474
43490
  z.object({
43475
43491
  componentTree: localeWrapper$1(ComponentTreeSchema$1),
43476
43492
  dataSource: localeWrapper$1(DataSourceSchema$1),
@@ -58600,13 +58616,29 @@ const ParameterDefinitionsSchema = z.record(propertyKeySchema, ParameterDefiniti
58600
58616
  const VariableMappingsSchema = z.record(propertyKeySchema, VariableMappingSchema);
58601
58617
  const ComponentVariablesSchema = z.record(z.string().regex(/^[a-zA-Z0-9-_]{1,54}$/), // Here the key is <variableName>_<nanoidId> so we need to allow for a longer length
58602
58618
  ComponentVariableSchema);
58603
- const ComponentSettingsSchema = z.object({
58619
+ const PassToNodeSchema = z
58620
+ .object({
58621
+ nodeId: propertyKeySchema,
58622
+ parameterId: propertyKeySchema,
58623
+ prebindingId: propertyKeySchema,
58624
+ })
58625
+ .strict();
58626
+ const PrebindingDefinitionSchema = z
58627
+ .object({
58628
+ id: propertyKeySchema,
58629
+ variableMappings: VariableMappingsSchema.optional(),
58630
+ parameterDefinitions: ParameterDefinitionsSchema,
58631
+ passToNodes: z.array(PassToNodeSchema).optional(),
58632
+ })
58633
+ .strict();
58634
+ const ComponentSettingsSchema = z
58635
+ .object({
58604
58636
  variableDefinitions: ComponentVariablesSchema,
58605
58637
  thumbnailId: z.enum(THUMBNAIL_IDS).optional(),
58606
58638
  category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
58607
- variableMappings: VariableMappingsSchema.optional(),
58608
- parameterDefinitions: ParameterDefinitionsSchema.optional(),
58609
- });
58639
+ prebindingDefinitions: z.array(PrebindingDefinitionSchema).optional(),
58640
+ })
58641
+ .strict();
58610
58642
  z.object({
58611
58643
  componentTree: localeWrapper(ComponentTreeSchema),
58612
58644
  dataSource: localeWrapper(DataSourceSchema),