@contentful/experiences-visual-editor-react 1.33.2-dev-20250225T1809-99f6188.0 → 1.33.2-dev-20250226T1247-7e3b57f.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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +2 -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) ||
|