@contentful/experiences-visual-editor-react 1.30.1 → 1.30.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 +56 -0
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +56 -0
- package/dist/renderApp.js.map +1 -1
- package/package.json +4 -4
package/dist/renderApp.js
CHANGED
|
@@ -43549,6 +43549,31 @@ const ComponentPropertyValueSchema$1 = z.discriminatedUnion('type', [
|
|
|
43549
43549
|
HyperlinkValueSchema$1,
|
|
43550
43550
|
ComponentValueSchema$1,
|
|
43551
43551
|
]);
|
|
43552
|
+
// TODO: finalized schema structure before release
|
|
43553
|
+
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
43554
|
+
const VariableMappingSchema$1 = z.object({
|
|
43555
|
+
patternPropertyDefinitionId: propertyKeySchema$1,
|
|
43556
|
+
type: z.literal('ContentTypeMapping'),
|
|
43557
|
+
pathsByContentType: z.record(z.string(), z.object({ path: z.string() })),
|
|
43558
|
+
});
|
|
43559
|
+
const VariableMappingsSchema$1 = z.record(propertyKeySchema$1, VariableMappingSchema$1);
|
|
43560
|
+
// TODO: finalized schema structure before release
|
|
43561
|
+
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
43562
|
+
const PatternPropertyDefinitionSchema$1 = z.object({
|
|
43563
|
+
defaultValue: z.object({
|
|
43564
|
+
path: z.string(),
|
|
43565
|
+
type: z.literal('BoundValue'),
|
|
43566
|
+
}),
|
|
43567
|
+
contentTypes: z.record(z.string(), z.any()),
|
|
43568
|
+
});
|
|
43569
|
+
const PatternPropertyDefinitionsSchema$1 = z.record(propertyKeySchema$1, PatternPropertyDefinitionSchema$1);
|
|
43570
|
+
// TODO: finalized schema structure before release
|
|
43571
|
+
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
43572
|
+
const PatternPropertySchema$1 = z.object({
|
|
43573
|
+
type: z.literal('BoundValue'),
|
|
43574
|
+
path: z.string(),
|
|
43575
|
+
});
|
|
43576
|
+
const PatternPropertysSchema$1 = z.record(propertyKeySchema$1, PatternPropertySchema$1);
|
|
43552
43577
|
const BreakpointSchema$1 = z
|
|
43553
43578
|
.object({
|
|
43554
43579
|
id: propertyKeySchema$1,
|
|
@@ -43571,6 +43596,7 @@ const BaseComponentTreeNodeSchema$1 = z.object({
|
|
|
43571
43596
|
displayName: z.string().optional(),
|
|
43572
43597
|
slotId: z.string().optional(),
|
|
43573
43598
|
variables: z.record(propertyKeySchema$1, ComponentPropertyValueSchema$1),
|
|
43599
|
+
patternProperties: PatternPropertysSchema$1.optional(),
|
|
43574
43600
|
});
|
|
43575
43601
|
const ComponentTreeNodeSchema$1 = BaseComponentTreeNodeSchema$1.extend({
|
|
43576
43602
|
children: z.lazy(() => ComponentTreeNodeSchema$1.array()),
|
|
@@ -43602,6 +43628,8 @@ const ComponentVariablesSchema$1 = z.record(z.string().regex(/^[a-zA-Z0-9-_]{1,5
|
|
|
43602
43628
|
ComponentVariableSchema$1);
|
|
43603
43629
|
const ComponentSettingsSchema$1 = z.object({
|
|
43604
43630
|
variableDefinitions: ComponentVariablesSchema$1,
|
|
43631
|
+
variableMappings: VariableMappingsSchema$1.optional(),
|
|
43632
|
+
patternPropertyDefinitions: PatternPropertyDefinitionsSchema$1.optional(),
|
|
43605
43633
|
});
|
|
43606
43634
|
const UsedComponentsSchema$1 = z.array(z.object({
|
|
43607
43635
|
sys: z.object({
|
|
@@ -58219,6 +58247,31 @@ const ComponentPropertyValueSchema = z.discriminatedUnion('type', [
|
|
|
58219
58247
|
HyperlinkValueSchema,
|
|
58220
58248
|
ComponentValueSchema,
|
|
58221
58249
|
]);
|
|
58250
|
+
// TODO: finalized schema structure before release
|
|
58251
|
+
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
58252
|
+
const VariableMappingSchema = z.object({
|
|
58253
|
+
patternPropertyDefinitionId: propertyKeySchema,
|
|
58254
|
+
type: z.literal('ContentTypeMapping'),
|
|
58255
|
+
pathsByContentType: z.record(z.string(), z.object({ path: z.string() })),
|
|
58256
|
+
});
|
|
58257
|
+
const VariableMappingsSchema = z.record(propertyKeySchema, VariableMappingSchema);
|
|
58258
|
+
// TODO: finalized schema structure before release
|
|
58259
|
+
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
58260
|
+
const PatternPropertyDefinitionSchema = z.object({
|
|
58261
|
+
defaultValue: z.object({
|
|
58262
|
+
path: z.string(),
|
|
58263
|
+
type: z.literal('BoundValue'),
|
|
58264
|
+
}),
|
|
58265
|
+
contentTypes: z.record(z.string(), z.any()),
|
|
58266
|
+
});
|
|
58267
|
+
const PatternPropertyDefinitionsSchema = z.record(propertyKeySchema, PatternPropertyDefinitionSchema);
|
|
58268
|
+
// TODO: finalized schema structure before release
|
|
58269
|
+
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
58270
|
+
const PatternPropertySchema = z.object({
|
|
58271
|
+
type: z.literal('BoundValue'),
|
|
58272
|
+
path: z.string(),
|
|
58273
|
+
});
|
|
58274
|
+
const PatternPropertysSchema = z.record(propertyKeySchema, PatternPropertySchema);
|
|
58222
58275
|
const BreakpointSchema = z
|
|
58223
58276
|
.object({
|
|
58224
58277
|
id: propertyKeySchema,
|
|
@@ -58241,6 +58294,7 @@ const BaseComponentTreeNodeSchema = z.object({
|
|
|
58241
58294
|
displayName: z.string().optional(),
|
|
58242
58295
|
slotId: z.string().optional(),
|
|
58243
58296
|
variables: z.record(propertyKeySchema, ComponentPropertyValueSchema),
|
|
58297
|
+
patternProperties: PatternPropertysSchema.optional(),
|
|
58244
58298
|
});
|
|
58245
58299
|
const ComponentTreeNodeSchema = BaseComponentTreeNodeSchema.extend({
|
|
58246
58300
|
children: z.lazy(() => ComponentTreeNodeSchema.array()),
|
|
@@ -58272,6 +58326,8 @@ const ComponentVariablesSchema = z.record(z.string().regex(/^[a-zA-Z0-9-_]{1,54}
|
|
|
58272
58326
|
ComponentVariableSchema);
|
|
58273
58327
|
const ComponentSettingsSchema = z.object({
|
|
58274
58328
|
variableDefinitions: ComponentVariablesSchema,
|
|
58329
|
+
variableMappings: VariableMappingsSchema.optional(),
|
|
58330
|
+
patternPropertyDefinitions: PatternPropertyDefinitionsSchema.optional(),
|
|
58275
58331
|
});
|
|
58276
58332
|
const UsedComponentsSchema = z.array(z.object({
|
|
58277
58333
|
sys: z.object({
|