@contentful/experiences-core 1.11.0-dev-20240717T2108-54a1570.0 → 1.11.0-dev-20240718T2005-1c07c3a.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 +15 -1
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +16 -1
- package/package.json +3 -3
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?:
|
|
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-
|
|
3
|
+
"version": "1.11.0-dev-20240718T2005-1c07c3a.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-
|
|
68
|
+
"@contentful/experiences-validators": "1.11.0-dev-20240718T2005-1c07c3a.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": "
|
|
74
|
+
"gitHead": "58f0ec56ded49b0ed400442de7047ee6f4cc851c"
|
|
75
75
|
}
|