@contentful/experiences-core 1.5.3-prerelease-20240531T1924-ca6b961.0 → 1.6.0-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/types.d.ts CHANGED
@@ -46,6 +46,9 @@ type ComponentDefinition<T extends ComponentDefinitionPropertyType = ComponentDe
46
46
  thumbnailUrl?: string;
47
47
  hyperlinkPattern?: string;
48
48
  variables: Partial<Record<ContainerStyleVariableName, ComponentDefinitionVariable<T>>> & Record<string, ComponentDefinitionVariable<T>>;
49
+ slots?: Record<string, {
50
+ displayName: string;
51
+ }>;
49
52
  builtInStyles?: Array<keyof Omit<StyleProps, 'cfHyperlink' | 'cfOpenInNewTab'>>;
50
53
  children?: boolean;
51
54
  tooltip?: {
@@ -81,6 +84,7 @@ type ExperienceTreeNode = {
81
84
  data: {
82
85
  id: string;
83
86
  blockId?: string;
87
+ slotId?: string;
84
88
  assembly?: {
85
89
  id: string;
86
90
  componentId: string;
@@ -1,5 +1,5 @@
1
1
  declare const isContentfulStructureComponent: (componentId?: string) => boolean;
2
2
  declare const isComponentAllowedOnRoot: (componentId?: string) => boolean;
3
- declare const isEmptyStructureWithRelativeHeight: (children: number, componentId?: string, height?: string | number) => boolean;
3
+ declare const isStructureWithRelativeHeight: (componentId?: string, height?: string | number) => boolean;
4
4
 
5
- export { isComponentAllowedOnRoot, isContentfulStructureComponent, isEmptyStructureWithRelativeHeight };
5
+ export { isComponentAllowedOnRoot, isContentfulStructureComponent, isStructureWithRelativeHeight };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experiences-core",
3
- "version": "1.5.3-prerelease-20240531T1924-ca6b961.0",
3
+ "version": "1.6.0-beta.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -65,11 +65,11 @@
65
65
  "vitest": "^1.0.4"
66
66
  },
67
67
  "dependencies": {
68
- "@contentful/experiences-validators": "1.5.3-prerelease-20240531T1924-ca6b961.0",
68
+ "@contentful/experiences-validators": "1.6.0-beta.0",
69
69
  "@contentful/rich-text-types": "^16.3.0"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "contentful": ">=10.6.0"
73
73
  },
74
- "gitHead": "7ad6da847dec5ea42cdacdbd60a30a27e0a38bd7"
74
+ "gitHead": "f8c64855671e6ff932e83a64a628344cc2abb6eb"
75
75
  }