@contentful/experiences-visual-editor-react 1.42.0-prerelease-20250626T1154-6ca57b0.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/index.js +62 -22
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +62 -22
- package/dist/renderApp.js.map +1 -1
- package/package.json +4 -4
package/dist/renderApp.js
CHANGED
|
@@ -43439,14 +43439,18 @@ const VariableMappingSchema$1 = z.object({
|
|
|
43439
43439
|
// TODO: finalize schema structure before release
|
|
43440
43440
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
43441
43441
|
const ParameterDefinitionSchema$1 = z.object({
|
|
43442
|
-
|
|
43443
|
-
.
|
|
43444
|
-
|
|
43445
|
-
|
|
43446
|
-
|
|
43447
|
-
|
|
43442
|
+
defaultSource: z
|
|
43443
|
+
.strictObject({
|
|
43444
|
+
type: z.enum(['Entry']),
|
|
43445
|
+
contentTypeId: z.string(),
|
|
43446
|
+
link: z.strictObject({
|
|
43447
|
+
sys: z.strictObject({
|
|
43448
|
+
type: z.literal('Link'),
|
|
43449
|
+
id: z.string(),
|
|
43450
|
+
linkType: z.enum(['Entry']),
|
|
43451
|
+
}),
|
|
43448
43452
|
}),
|
|
43449
|
-
})
|
|
43453
|
+
})
|
|
43450
43454
|
.optional(),
|
|
43451
43455
|
contentTypes: z.record(z.string(), z.object({
|
|
43452
43456
|
sys: z.object({
|
|
@@ -43460,13 +43464,29 @@ const ParameterDefinitionsSchema$1 = z.record(propertyKeySchema$1, ParameterDefi
|
|
|
43460
43464
|
const VariableMappingsSchema$1 = z.record(propertyKeySchema$1, VariableMappingSchema$1);
|
|
43461
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
|
|
43462
43466
|
ComponentVariableSchema$1);
|
|
43463
|
-
const
|
|
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({
|
|
43464
43484
|
variableDefinitions: ComponentVariablesSchema$1,
|
|
43465
43485
|
thumbnailId: z.enum(THUMBNAIL_IDS$1).optional(),
|
|
43466
43486
|
category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
|
|
43467
|
-
|
|
43468
|
-
|
|
43469
|
-
|
|
43487
|
+
prebindingDefinitions: z.array(PrebindingDefinitionSchema$1).optional(),
|
|
43488
|
+
})
|
|
43489
|
+
.strict();
|
|
43470
43490
|
z.object({
|
|
43471
43491
|
componentTree: localeWrapper$1(ComponentTreeSchema$1),
|
|
43472
43492
|
dataSource: localeWrapper$1(DataSourceSchema$1),
|
|
@@ -58571,14 +58591,18 @@ const VariableMappingSchema = z.object({
|
|
|
58571
58591
|
// TODO: finalize schema structure before release
|
|
58572
58592
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
58573
58593
|
const ParameterDefinitionSchema = z.object({
|
|
58574
|
-
|
|
58575
|
-
.
|
|
58576
|
-
|
|
58577
|
-
|
|
58578
|
-
|
|
58579
|
-
|
|
58594
|
+
defaultSource: z
|
|
58595
|
+
.strictObject({
|
|
58596
|
+
type: z.enum(['Entry']),
|
|
58597
|
+
contentTypeId: z.string(),
|
|
58598
|
+
link: z.strictObject({
|
|
58599
|
+
sys: z.strictObject({
|
|
58600
|
+
type: z.literal('Link'),
|
|
58601
|
+
id: z.string(),
|
|
58602
|
+
linkType: z.enum(['Entry']),
|
|
58603
|
+
}),
|
|
58580
58604
|
}),
|
|
58581
|
-
})
|
|
58605
|
+
})
|
|
58582
58606
|
.optional(),
|
|
58583
58607
|
contentTypes: z.record(z.string(), z.object({
|
|
58584
58608
|
sys: z.object({
|
|
@@ -58592,13 +58616,29 @@ const ParameterDefinitionsSchema = z.record(propertyKeySchema, ParameterDefiniti
|
|
|
58592
58616
|
const VariableMappingsSchema = z.record(propertyKeySchema, VariableMappingSchema);
|
|
58593
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
|
|
58594
58618
|
ComponentVariableSchema);
|
|
58595
|
-
const
|
|
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({
|
|
58596
58636
|
variableDefinitions: ComponentVariablesSchema,
|
|
58597
58637
|
thumbnailId: z.enum(THUMBNAIL_IDS).optional(),
|
|
58598
58638
|
category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
|
|
58599
|
-
|
|
58600
|
-
|
|
58601
|
-
|
|
58639
|
+
prebindingDefinitions: z.array(PrebindingDefinitionSchema).optional(),
|
|
58640
|
+
})
|
|
58641
|
+
.strict();
|
|
58602
58642
|
z.object({
|
|
58603
58643
|
componentTree: localeWrapper(ComponentTreeSchema),
|
|
58604
58644
|
dataSource: localeWrapper(DataSourceSchema),
|