@contentful/experiences-core 1.40.2-beta.0 → 1.40.2-beta.1
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.d.ts +2 -1
- package/dist/index.js +81 -24
- package/dist/index.js.map +1 -1
- package/dist/utils/styleUtils/ssrStyles.d.ts +1 -13
- package/dist/utils/styleUtils/toMediaQuery.d.ts +15 -0
- package/package.json +3 -3
|
@@ -71,17 +71,5 @@ declare const indexByBreakpoint: ({ variables, breakpointIds, getBoundEntityById
|
|
|
71
71
|
* `{ 'color.key': [value] }`
|
|
72
72
|
*/
|
|
73
73
|
declare const flattenDesignTokenRegistry: (designTokenRegistry: DesignTokensDefinition) => FlattenedDesignTokens;
|
|
74
|
-
type MediaQueryData = {
|
|
75
|
-
condition: string;
|
|
76
|
-
cssByClassName: Record<string, string>;
|
|
77
|
-
};
|
|
78
|
-
/**
|
|
79
|
-
* Create a single CSS string containing all class definitions for a given media query.
|
|
80
|
-
*
|
|
81
|
-
* @param condition e.g. "*", "<520px", ">520px"
|
|
82
|
-
* @param cssByClassName map of class names to CSS strings containing all rules for each class
|
|
83
|
-
* @returns joined string of all CSS class definitions wrapped into media queries
|
|
84
|
-
*/
|
|
85
|
-
declare const toMediaQuery: ({ condition, cssByClassName }: MediaQueryData) => string;
|
|
86
74
|
|
|
87
|
-
export { detachExperienceStyles, flattenDesignTokenRegistry, indexByBreakpoint, isCfStyleAttribute, maybePopulateDesignTokenValue, resolveBackgroundImageBinding
|
|
75
|
+
export { detachExperienceStyles, flattenDesignTokenRegistry, indexByBreakpoint, isCfStyleAttribute, maybePopulateDesignTokenValue, resolveBackgroundImageBinding };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create a single CSS string containing all class definitions for a given media query.
|
|
3
|
+
*
|
|
4
|
+
* @param cssByClassName map of class names to CSS strings containing all rules for each class
|
|
5
|
+
* @param condition e.g. "*", "<520px", ">520px"
|
|
6
|
+
* @param nextCondition optional next condition to create a disjunct media query that doesn't affect the next breakpoint
|
|
7
|
+
* @returns joined string of all CSS class definitions wrapped into media queries
|
|
8
|
+
*/
|
|
9
|
+
declare const toMediaQuery: ({ cssByClassName, condition, nextCondition, }: {
|
|
10
|
+
cssByClassName: Record<string, string>;
|
|
11
|
+
condition: string;
|
|
12
|
+
nextCondition?: string;
|
|
13
|
+
}) => string;
|
|
14
|
+
|
|
15
|
+
export { toMediaQuery };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experiences-core",
|
|
3
|
-
"version": "1.40.2-beta.
|
|
3
|
+
"version": "1.40.2-beta.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -70,11 +70,11 @@
|
|
|
70
70
|
"vitest": "^2.1.1"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@contentful/experiences-validators": "1.40.2-beta.
|
|
73
|
+
"@contentful/experiences-validators": "1.40.2-beta.1",
|
|
74
74
|
"@contentful/rich-text-types": "^17.0.0"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"contentful": ">=10.6.0"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "9eda035621a4a3a7d1730d9183c9013b902982b9"
|
|
80
80
|
}
|