@contentful/experiences-visual-editor-react 1.42.0-dev-20250625T1537-8a20b16.0 → 1.42.0-dev-20250627T1316-d74dad7.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 +36 -28
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +36 -28
- package/dist/renderApp.js.map +1 -1
- package/package.json +4 -4
package/dist/renderApp.js
CHANGED
|
@@ -43342,11 +43342,11 @@ const ComponentPropertyValueSchema$1 = z.discriminatedUnion('type', [
|
|
|
43342
43342
|
]);
|
|
43343
43343
|
// TODO: finalize schema structure before release
|
|
43344
43344
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
43345
|
-
const
|
|
43345
|
+
const ParameterSchema$1 = z.object({
|
|
43346
43346
|
type: z.literal('BoundValue'),
|
|
43347
43347
|
path: z.string(),
|
|
43348
43348
|
});
|
|
43349
|
-
const
|
|
43349
|
+
const ParametersSchema$1 = z.record(propertyKeySchema$1, ParameterSchema$1);
|
|
43350
43350
|
const BreakpointSchema$1 = z
|
|
43351
43351
|
.object({
|
|
43352
43352
|
id: propertyKeySchema$1,
|
|
@@ -43363,7 +43363,7 @@ const BaseComponentTreeNodeSchema$1 = z.object({
|
|
|
43363
43363
|
displayName: z.string().optional(),
|
|
43364
43364
|
slotId: z.string().optional(),
|
|
43365
43365
|
variables: z.record(propertyKeySchema$1, ComponentPropertyValueSchema$1),
|
|
43366
|
-
|
|
43366
|
+
parameters: ParametersSchema$1.optional(),
|
|
43367
43367
|
});
|
|
43368
43368
|
const ComponentVariableSchema$1 = z.object({
|
|
43369
43369
|
displayName: z.string().optional(),
|
|
@@ -43432,21 +43432,25 @@ const THUMBNAIL_IDS$1 = [
|
|
|
43432
43432
|
// TODO: finalize schema structure before release
|
|
43433
43433
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
43434
43434
|
const VariableMappingSchema$1 = z.object({
|
|
43435
|
-
|
|
43435
|
+
parameterId: propertyKeySchema$1,
|
|
43436
43436
|
type: z.literal('ContentTypeMapping'),
|
|
43437
43437
|
pathsByContentType: z.record(z.string(), z.object({ path: z.string() })),
|
|
43438
43438
|
});
|
|
43439
43439
|
// TODO: finalize schema structure before release
|
|
43440
43440
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
43441
|
-
const
|
|
43442
|
-
|
|
43443
|
-
.
|
|
43444
|
-
|
|
43445
|
-
|
|
43446
|
-
|
|
43447
|
-
|
|
43441
|
+
const ParameterDefinitionSchema$1 = z.object({
|
|
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({
|
|
@@ -43456,7 +43460,7 @@ const PatternPropertyDefinitionSchema$1 = z.object({
|
|
|
43456
43460
|
}),
|
|
43457
43461
|
})),
|
|
43458
43462
|
});
|
|
43459
|
-
const
|
|
43463
|
+
const ParameterDefinitionsSchema$1 = z.record(propertyKeySchema$1, ParameterDefinitionSchema$1);
|
|
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);
|
|
@@ -43465,7 +43469,7 @@ const ComponentSettingsSchema$1 = z.object({
|
|
|
43465
43469
|
thumbnailId: z.enum(THUMBNAIL_IDS$1).optional(),
|
|
43466
43470
|
category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
|
|
43467
43471
|
variableMappings: VariableMappingsSchema$1.optional(),
|
|
43468
|
-
|
|
43472
|
+
parameterDefinitions: ParameterDefinitionsSchema$1.optional(),
|
|
43469
43473
|
});
|
|
43470
43474
|
z.object({
|
|
43471
43475
|
componentTree: localeWrapper$1(ComponentTreeSchema$1),
|
|
@@ -58474,11 +58478,11 @@ const ComponentPropertyValueSchema = z.discriminatedUnion('type', [
|
|
|
58474
58478
|
]);
|
|
58475
58479
|
// TODO: finalize schema structure before release
|
|
58476
58480
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
58477
|
-
const
|
|
58481
|
+
const ParameterSchema = z.object({
|
|
58478
58482
|
type: z.literal('BoundValue'),
|
|
58479
58483
|
path: z.string(),
|
|
58480
58484
|
});
|
|
58481
|
-
const
|
|
58485
|
+
const ParametersSchema = z.record(propertyKeySchema, ParameterSchema);
|
|
58482
58486
|
const BreakpointSchema = z
|
|
58483
58487
|
.object({
|
|
58484
58488
|
id: propertyKeySchema,
|
|
@@ -58495,7 +58499,7 @@ const BaseComponentTreeNodeSchema = z.object({
|
|
|
58495
58499
|
displayName: z.string().optional(),
|
|
58496
58500
|
slotId: z.string().optional(),
|
|
58497
58501
|
variables: z.record(propertyKeySchema, ComponentPropertyValueSchema),
|
|
58498
|
-
|
|
58502
|
+
parameters: ParametersSchema.optional(),
|
|
58499
58503
|
});
|
|
58500
58504
|
const ComponentVariableSchema = z.object({
|
|
58501
58505
|
displayName: z.string().optional(),
|
|
@@ -58564,21 +58568,25 @@ const THUMBNAIL_IDS = [
|
|
|
58564
58568
|
// TODO: finalize schema structure before release
|
|
58565
58569
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
58566
58570
|
const VariableMappingSchema = z.object({
|
|
58567
|
-
|
|
58571
|
+
parameterId: propertyKeySchema,
|
|
58568
58572
|
type: z.literal('ContentTypeMapping'),
|
|
58569
58573
|
pathsByContentType: z.record(z.string(), z.object({ path: z.string() })),
|
|
58570
58574
|
});
|
|
58571
58575
|
// TODO: finalize schema structure before release
|
|
58572
58576
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
58573
|
-
const
|
|
58574
|
-
|
|
58575
|
-
.
|
|
58576
|
-
|
|
58577
|
-
|
|
58578
|
-
|
|
58579
|
-
|
|
58577
|
+
const ParameterDefinitionSchema = z.object({
|
|
58578
|
+
defaultSource: z
|
|
58579
|
+
.strictObject({
|
|
58580
|
+
type: z.enum(['Entry']),
|
|
58581
|
+
contentTypeId: z.string(),
|
|
58582
|
+
link: z.strictObject({
|
|
58583
|
+
sys: z.strictObject({
|
|
58584
|
+
type: z.literal('Link'),
|
|
58585
|
+
id: z.string(),
|
|
58586
|
+
linkType: z.enum(['Entry']),
|
|
58587
|
+
}),
|
|
58580
58588
|
}),
|
|
58581
|
-
})
|
|
58589
|
+
})
|
|
58582
58590
|
.optional(),
|
|
58583
58591
|
contentTypes: z.record(z.string(), z.object({
|
|
58584
58592
|
sys: z.object({
|
|
@@ -58588,7 +58596,7 @@ const PatternPropertyDefinitionSchema = z.object({
|
|
|
58588
58596
|
}),
|
|
58589
58597
|
})),
|
|
58590
58598
|
});
|
|
58591
|
-
const
|
|
58599
|
+
const ParameterDefinitionsSchema = z.record(propertyKeySchema, ParameterDefinitionSchema);
|
|
58592
58600
|
const VariableMappingsSchema = z.record(propertyKeySchema, VariableMappingSchema);
|
|
58593
58601
|
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
58602
|
ComponentVariableSchema);
|
|
@@ -58597,7 +58605,7 @@ const ComponentSettingsSchema = z.object({
|
|
|
58597
58605
|
thumbnailId: z.enum(THUMBNAIL_IDS).optional(),
|
|
58598
58606
|
category: z.string().max(50, 'Category must contain at most 50 characters').optional(),
|
|
58599
58607
|
variableMappings: VariableMappingsSchema.optional(),
|
|
58600
|
-
|
|
58608
|
+
parameterDefinitions: ParameterDefinitionsSchema.optional(),
|
|
58601
58609
|
});
|
|
58602
58610
|
z.object({
|
|
58603
58611
|
componentTree: localeWrapper(ComponentTreeSchema),
|