@contentful/experiences-core 1.33.2-dev-20250225T2029-64ebb60.0 → 1.33.2-dev-20250226T2047-b9a00dc.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.
@@ -1,12 +1,17 @@
1
+ declare const structureComponentIds: Set<"contentful-section" | "contentful-container" | "contentful-columns" | "contentful-single-column">;
1
2
  type ComponentAllowOnRoot = {
2
3
  type?: string;
3
4
  category?: string;
4
5
  componentId?: string;
5
6
  };
7
+ declare const allContentfulComponentIds: Set<"contentful-section" | "contentful-container" | "contentful-columns" | "contentful-single-column" | "contentful-button" | "contentful-heading" | "contentful-image" | "contentful-richText" | "contentful-text" | "contentful-divider" | "contentful-carousel">;
8
+ type SetElement<ElementType> = ElementType extends Set<infer E> ? E : never;
9
+ type StructureComponentId = SetElement<typeof structureComponentIds>;
10
+ type AllContentfulComponentId = SetElement<typeof allContentfulComponentIds>;
6
11
  declare const isPatternComponent: (type?: string) => boolean;
7
- declare const isContentfulStructureComponent: (componentId?: string) => boolean;
8
- declare const isContentfulComponent: (componentId?: string) => boolean;
12
+ declare const isContentfulStructureComponent: (componentId?: string) => componentId is StructureComponentId;
13
+ declare const isContentfulComponent: (componentId?: string) => componentId is AllContentfulComponentId;
9
14
  declare const isComponentAllowedOnRoot: ({ type, category, componentId }: ComponentAllowOnRoot) => boolean;
10
- declare const isStructureWithRelativeHeight: (componentId?: string, height?: string | number) => boolean;
15
+ declare const isStructureWithRelativeHeight: (componentId?: string, height?: string | number) => componentId is StructureComponentId;
11
16
 
12
17
  export { isComponentAllowedOnRoot, isContentfulComponent, isContentfulStructureComponent, isPatternComponent, isStructureWithRelativeHeight };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experiences-core",
3
- "version": "1.33.2-dev-20250225T2029-64ebb60.0",
3
+ "version": "1.33.2-dev-20250226T2047-b9a00dc.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -69,11 +69,11 @@
69
69
  "vitest": "^2.1.1"
70
70
  },
71
71
  "dependencies": {
72
- "@contentful/experiences-validators": "1.33.2-dev-20250225T2029-64ebb60.0",
72
+ "@contentful/experiences-validators": "1.33.2-dev-20250226T2047-b9a00dc.0",
73
73
  "@contentful/rich-text-types": "^17.0.0"
74
74
  },
75
75
  "peerDependencies": {
76
76
  "contentful": ">=10.6.0"
77
77
  },
78
- "gitHead": "81dc7c5fb11340a28b5e822df1ac1c813fc1179b"
78
+ "gitHead": "6ea5ba14ac3b49214d6df7c8696bb9221d219edf"
79
79
  }