@contentful/experiences-core 1.11.0-dev-20240716T1557-9d4b02e.0 → 1.11.0-dev-20240718T1445-7c1c865.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
@@ -161,13 +161,18 @@ type ExperienceFields = {
161
161
  type RecursiveDesignTokenDefinition = {
162
162
  [key: string]: string | RecursiveDesignTokenDefinition;
163
163
  };
164
+ type DesignBorderTokenStyle = 'solid' | 'dashed' | 'dotted';
165
+ /** We are currently in the process of implementing this feature. Do not use this field in your designTokenDefinition. **/
166
+ type DesignTextTokenEmphasis = 'bold' | 'italic' | 'underline' | 'bold italic' | 'bold underline' | 'italic underline' | 'bold italic underline' | 'none';
167
+ /** We are currently in the process of implementing this feature. Do not use this field in your designTokenDefinition. **/
168
+ type DesignTextTokenCase = 'capitalize' | 'uppercase' | 'lowercase' | 'normal';
164
169
  type DesignTokensDefinition = {
165
170
  spacing?: Record<string, string>;
166
171
  sizing?: Record<string, string>;
167
172
  color?: Record<string, string>;
168
173
  border?: Record<string, {
169
174
  width?: string;
170
- style?: 'solid' | 'dashed' | 'dotted';
175
+ style?: DesignBorderTokenStyle;
171
176
  color?: string;
172
177
  }>;
173
178
  borderRadius?: Record<string, string>;
@@ -175,6 +180,16 @@ type DesignTokensDefinition = {
175
180
  lineHeight?: Record<string, string>;
176
181
  letterSpacing?: Record<string, string>;
177
182
  textColor?: Record<string, string>;
183
+ /** We are currently in the process of implementing this feature. Do not use this field in your designTokenDefinition. **/
184
+ text?: Record<string, {
185
+ emphasis?: DesignTextTokenEmphasis;
186
+ fontSize?: string;
187
+ case?: DesignTextTokenCase;
188
+ fontWeight?: string;
189
+ lineHeight?: string;
190
+ letterSpacing?: string;
191
+ color?: string;
192
+ }>;
178
193
  } & RecursiveDesignTokenDefinition;
179
194
  /** Type of experience entry JSON data structure as returned by CPA/CDA */
180
195
  type ExperienceEntry = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experiences-core",
3
- "version": "1.11.0-dev-20240716T1557-9d4b02e.0",
3
+ "version": "1.11.0-dev-20240718T1445-7c1c865.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.11.0-dev-20240716T1557-9d4b02e.0",
68
+ "@contentful/experiences-validators": "1.11.0-dev-20240718T1445-7c1c865.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": "1e16f931e5fe8de86abd2ee30d4eea77459359a1"
74
+ "gitHead": "ef17af948d9a3414d7388eb448a88fb48aa0935d"
75
75
  }