@contentful/experiences-visual-editor-react 1.32.0-beta.0 → 1.32.0-prerelease-20250220T1615-2f40399.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 +19 -21
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +19 -21
- package/dist/renderApp.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -926,14 +926,14 @@ const ComponentValueSchema$1 = z
|
|
|
926
926
|
.strict();
|
|
927
927
|
// TODO: finalize schema structure before release
|
|
928
928
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
929
|
-
const
|
|
929
|
+
const NoValueSchema$1 = z.object({ type: z.literal('NoValue') }).strict();
|
|
930
930
|
const ComponentPropertyValueSchema$1 = z.discriminatedUnion('type', [
|
|
931
931
|
DesignValueSchema$1,
|
|
932
932
|
BoundValueSchema$1,
|
|
933
933
|
UnboundValueSchema$1,
|
|
934
934
|
HyperlinkValueSchema$1,
|
|
935
935
|
ComponentValueSchema$1,
|
|
936
|
-
|
|
936
|
+
NoValueSchema$1,
|
|
937
937
|
]);
|
|
938
938
|
// TODO: finalize schema structure before release
|
|
939
939
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
@@ -946,13 +946,12 @@ const VariableMappingsSchema$1 = z.record(propertyKeySchema$1, VariableMappingSc
|
|
|
946
946
|
// TODO: finalize schema structure before release
|
|
947
947
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
948
948
|
const PatternPropertyDefinitionSchema$1 = z.object({
|
|
949
|
-
defaultValue: z
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
]),
|
|
949
|
+
defaultValue: z
|
|
950
|
+
.object({
|
|
951
|
+
path: z.string(),
|
|
952
|
+
type: z.literal('BoundValue'),
|
|
953
|
+
})
|
|
954
|
+
.optional(),
|
|
956
955
|
contentTypes: z.record(z.string(), z.any()),
|
|
957
956
|
});
|
|
958
957
|
const PatternPropertyDefinitionsSchema$1 = z.record(propertyKeySchema$1, PatternPropertyDefinitionSchema$1);
|
|
@@ -961,6 +960,7 @@ const PatternPropertyDefinitionsSchema$1 = z.record(propertyKeySchema$1, Pattern
|
|
|
961
960
|
const PatternPropertySchema$1 = z.object({
|
|
962
961
|
type: z.literal('BoundValue'),
|
|
963
962
|
path: z.string(),
|
|
963
|
+
contenType: z.string(),
|
|
964
964
|
});
|
|
965
965
|
const PatternPropertysSchema$1 = z.record(propertyKeySchema$1, PatternPropertySchema$1);
|
|
966
966
|
const BreakpointSchema$1 = z
|
|
@@ -3358,14 +3358,14 @@ const ComponentValueSchema = z
|
|
|
3358
3358
|
.strict();
|
|
3359
3359
|
// TODO: finalize schema structure before release
|
|
3360
3360
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
3361
|
-
const
|
|
3361
|
+
const NoValueSchema = z.object({ type: z.literal('NoValue') }).strict();
|
|
3362
3362
|
const ComponentPropertyValueSchema = z.discriminatedUnion('type', [
|
|
3363
3363
|
DesignValueSchema,
|
|
3364
3364
|
BoundValueSchema,
|
|
3365
3365
|
UnboundValueSchema,
|
|
3366
3366
|
HyperlinkValueSchema,
|
|
3367
3367
|
ComponentValueSchema,
|
|
3368
|
-
|
|
3368
|
+
NoValueSchema,
|
|
3369
3369
|
]);
|
|
3370
3370
|
// TODO: finalize schema structure before release
|
|
3371
3371
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
@@ -3378,13 +3378,12 @@ const VariableMappingsSchema = z.record(propertyKeySchema, VariableMappingSchema
|
|
|
3378
3378
|
// TODO: finalize schema structure before release
|
|
3379
3379
|
// https://contentful.atlassian.net/browse/LUMOS-523
|
|
3380
3380
|
const PatternPropertyDefinitionSchema = z.object({
|
|
3381
|
-
defaultValue: z
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
]),
|
|
3381
|
+
defaultValue: z
|
|
3382
|
+
.object({
|
|
3383
|
+
path: z.string(),
|
|
3384
|
+
type: z.literal('BoundValue'),
|
|
3385
|
+
})
|
|
3386
|
+
.optional(),
|
|
3388
3387
|
contentTypes: z.record(z.string(), z.any()),
|
|
3389
3388
|
});
|
|
3390
3389
|
const PatternPropertyDefinitionsSchema = z.record(propertyKeySchema, PatternPropertyDefinitionSchema);
|
|
@@ -3393,6 +3392,7 @@ const PatternPropertyDefinitionsSchema = z.record(propertyKeySchema, PatternProp
|
|
|
3393
3392
|
const PatternPropertySchema = z.object({
|
|
3394
3393
|
type: z.literal('BoundValue'),
|
|
3395
3394
|
path: z.string(),
|
|
3395
|
+
contenType: z.string(),
|
|
3396
3396
|
});
|
|
3397
3397
|
const PatternPropertysSchema = z.record(propertyKeySchema, PatternPropertySchema);
|
|
3398
3398
|
const BreakpointSchema = z
|
|
@@ -4688,9 +4688,7 @@ const useComponentProps = ({ node, areEntitiesFetched, resolveDesignValue, rende
|
|
|
4688
4688
|
};
|
|
4689
4689
|
const customComponentProps = {
|
|
4690
4690
|
...sharedProps,
|
|
4691
|
-
|
|
4692
|
-
// through options as the component has to be aware of this prop to not cause any React warnings.
|
|
4693
|
-
...(options?.enableCustomEditorView ? { isInExpEditorMode: true } : {}),
|
|
4691
|
+
isInExpEditorMode: true,
|
|
4694
4692
|
...sanitizeNodeProps(props),
|
|
4695
4693
|
};
|
|
4696
4694
|
const structuralOrPatternComponentProps = {
|