@contentful/experiences-core 1.6.0-prerelease-20240603T1503-1bf510c.0 → 1.7.0-dev-20240604T1720-355786e.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;
@@ -160,9 +164,9 @@ type DesignTokensDefinition = {
160
164
  sizing?: Record<string, string>;
161
165
  color?: Record<string, string>;
162
166
  border?: Record<string, {
163
- width: string;
164
- style: 'solid' | 'dashed' | 'dotted';
165
- color: string;
167
+ width?: string;
168
+ style?: 'solid' | 'dashed' | 'dotted';
169
+ color?: string;
166
170
  }>;
167
171
  borderRadius?: Record<string, string>;
168
172
  fontSize?: Record<string, 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.6.0-prerelease-20240603T1503-1bf510c.0",
3
+ "version": "1.7.0-dev-20240604T1720-355786e.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.6.0-prerelease-20240603T1503-1bf510c.0",
68
+ "@contentful/experiences-validators": "1.7.0-dev-20240604T1720-355786e.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": "2722875c0096acc2bc28df09eff84b4c5ac7d14d"
74
+ "gitHead": "a0a4382c93cac4d0e60c9e2833a229fca1f695fb"
75
75
  }