@contentful/experiences-visual-editor-react 1.42.1-beta.0 → 1.42.2-beta.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/index.js +42 -12
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +42 -12
- package/dist/renderApp.js.map +1 -1
- package/package.json +4 -4
package/dist/renderApp.js
CHANGED
|
@@ -43436,8 +43436,13 @@ const VariableMappingSchema$1 = z.object({
|
|
|
43436
43436
|
type: z.literal('ContentTypeMapping'),
|
|
43437
43437
|
pathsByContentType: z.record(z.string(), z.object({ path: z.string() })),
|
|
43438
43438
|
});
|
|
43439
|
-
|
|
43440
|
-
|
|
43439
|
+
const PassToNodeSchema$1 = z
|
|
43440
|
+
.object({
|
|
43441
|
+
nodeId: propertyKeySchema$1,
|
|
43442
|
+
parameterId: propertyKeySchema$1,
|
|
43443
|
+
prebindingId: propertyKeySchema$1,
|
|
43444
|
+
})
|
|
43445
|
+
.strict();
|
|
43441
43446
|
const ParameterDefinitionSchema$1 = z.object({
|
|
43442
43447
|
defaultSource: z
|
|
43443
43448
|
.strictObject({
|
|
@@ -43459,18 +43464,28 @@ const ParameterDefinitionSchema$1 = z.object({
|
|
|
43459
43464
|
linkType: z.enum(['ContentType']),
|
|
43460
43465
|
}),
|
|
43461
43466
|
})),
|
|
43467
|
+
passToNodes: z.array(PassToNodeSchema$1).optional(),
|
|
43462
43468
|
});
|
|
43463
43469
|
const ParameterDefinitionsSchema$1 = z.record(propertyKeySchema$1, ParameterDefinitionSchema$1);
|
|
43464
43470
|
const VariableMappingsSchema$1 = z.record(propertyKeySchema$1, VariableMappingSchema$1);
|
|
43465
43471
|
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
43472
|
ComponentVariableSchema$1);
|
|
43467
|
-
const
|
|
43473
|
+
const PrebindingDefinitionSchema$1 = z
|
|
43474
|
+
.object({
|
|
43475
|
+
id: propertyKeySchema$1,
|
|
43476
|
+
parameterDefinitions: ParameterDefinitionsSchema$1,
|
|
43477
|
+
variableMappings: VariableMappingsSchema$1.optional(),
|
|
43478
|
+
allowedVariableOverrides: z.array(z.string()).optional(),
|
|
43479
|
+
})
|
|
43480
|
+
.strict();
|
|
43481
|
+
const ComponentSettingsSchema$1 = z
|
|
43482
|
+
.object({
|
|
43468
43483
|
variableDefinitions: ComponentVariablesSchema$1,
|
|
43469
43484
|
thumbnailId: z.enum(THUMBNAIL_IDS$1).optional(),
|
|
43470
43485
|
category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
|
|
43471
|
-
|
|
43472
|
-
|
|
43473
|
-
|
|
43486
|
+
prebindingDefinitions: z.array(PrebindingDefinitionSchema$1).max(1).optional(),
|
|
43487
|
+
})
|
|
43488
|
+
.strict();
|
|
43474
43489
|
z.object({
|
|
43475
43490
|
componentTree: localeWrapper$1(ComponentTreeSchema$1),
|
|
43476
43491
|
dataSource: localeWrapper$1(DataSourceSchema$1),
|
|
@@ -58572,8 +58587,13 @@ const VariableMappingSchema = z.object({
|
|
|
58572
58587
|
type: z.literal('ContentTypeMapping'),
|
|
58573
58588
|
pathsByContentType: z.record(z.string(), z.object({ path: z.string() })),
|
|
58574
58589
|
});
|
|
58575
|
-
|
|
58576
|
-
|
|
58590
|
+
const PassToNodeSchema = z
|
|
58591
|
+
.object({
|
|
58592
|
+
nodeId: propertyKeySchema,
|
|
58593
|
+
parameterId: propertyKeySchema,
|
|
58594
|
+
prebindingId: propertyKeySchema,
|
|
58595
|
+
})
|
|
58596
|
+
.strict();
|
|
58577
58597
|
const ParameterDefinitionSchema = z.object({
|
|
58578
58598
|
defaultSource: z
|
|
58579
58599
|
.strictObject({
|
|
@@ -58595,18 +58615,28 @@ const ParameterDefinitionSchema = z.object({
|
|
|
58595
58615
|
linkType: z.enum(['ContentType']),
|
|
58596
58616
|
}),
|
|
58597
58617
|
})),
|
|
58618
|
+
passToNodes: z.array(PassToNodeSchema).optional(),
|
|
58598
58619
|
});
|
|
58599
58620
|
const ParameterDefinitionsSchema = z.record(propertyKeySchema, ParameterDefinitionSchema);
|
|
58600
58621
|
const VariableMappingsSchema = z.record(propertyKeySchema, VariableMappingSchema);
|
|
58601
58622
|
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
58623
|
ComponentVariableSchema);
|
|
58603
|
-
const
|
|
58624
|
+
const PrebindingDefinitionSchema = z
|
|
58625
|
+
.object({
|
|
58626
|
+
id: propertyKeySchema,
|
|
58627
|
+
parameterDefinitions: ParameterDefinitionsSchema,
|
|
58628
|
+
variableMappings: VariableMappingsSchema.optional(),
|
|
58629
|
+
allowedVariableOverrides: z.array(z.string()).optional(),
|
|
58630
|
+
})
|
|
58631
|
+
.strict();
|
|
58632
|
+
const ComponentSettingsSchema = z
|
|
58633
|
+
.object({
|
|
58604
58634
|
variableDefinitions: ComponentVariablesSchema,
|
|
58605
58635
|
thumbnailId: z.enum(THUMBNAIL_IDS).optional(),
|
|
58606
58636
|
category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
|
|
58607
|
-
|
|
58608
|
-
|
|
58609
|
-
|
|
58637
|
+
prebindingDefinitions: z.array(PrebindingDefinitionSchema).max(1).optional(),
|
|
58638
|
+
})
|
|
58639
|
+
.strict();
|
|
58610
58640
|
z.object({
|
|
58611
58641
|
componentTree: localeWrapper(ComponentTreeSchema),
|
|
58612
58642
|
dataSource: localeWrapper(DataSourceSchema),
|