@contentful/experiences-visual-editor-react 1.33.1-dev-20250224T1251-60d25bc.0 → 1.33.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 +4 -2
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +4 -2
- package/dist/renderApp.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -153,8 +153,8 @@ const structureComponentIds = new Set([
|
|
|
153
153
|
const patternTypes = new Set([ASSEMBLY_NODE_TYPE$1, ASSEMBLY_BLOCK_NODE_TYPE$1]);
|
|
154
154
|
const allContentfulComponentIds = new Set(Object.values(CONTENTFUL_COMPONENTS$2).map((component) => component.id));
|
|
155
155
|
const isPatternComponent = (type) => patternTypes.has(type ?? '');
|
|
156
|
-
const isContentfulStructureComponent = (componentId) => structureComponentIds.has(componentId ?? '');
|
|
157
|
-
const isContentfulComponent = (componentId) => allContentfulComponentIds.has(componentId ?? '');
|
|
156
|
+
const isContentfulStructureComponent = (componentId) => structureComponentIds.has((componentId ?? ''));
|
|
157
|
+
const isContentfulComponent = (componentId) => allContentfulComponentIds.has((componentId ?? ''));
|
|
158
158
|
const isComponentAllowedOnRoot = ({ type, category, componentId }) => isPatternComponent(type) ||
|
|
159
159
|
category === ASSEMBLY_DEFAULT_CATEGORY$1 ||
|
|
160
160
|
isContentfulStructureComponent(componentId) ||
|
|
@@ -950,6 +950,7 @@ const PatternPropertyDefinitionSchema$1 = z.object({
|
|
|
950
950
|
.object({
|
|
951
951
|
path: z.string(),
|
|
952
952
|
type: z.literal('BoundValue'),
|
|
953
|
+
contentType: z.string(),
|
|
953
954
|
})
|
|
954
955
|
.optional(),
|
|
955
956
|
contentTypes: z.record(z.string(), z.any()),
|
|
@@ -3383,6 +3384,7 @@ const PatternPropertyDefinitionSchema = z.object({
|
|
|
3383
3384
|
.object({
|
|
3384
3385
|
path: z.string(),
|
|
3385
3386
|
type: z.literal('BoundValue'),
|
|
3387
|
+
contentType: z.string(),
|
|
3386
3388
|
})
|
|
3387
3389
|
.optional(),
|
|
3388
3390
|
contentTypes: z.record(z.string(), z.any()),
|