@contentful/experiences-core 3.1.1 → 3.2.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/index.d.ts +1 -1
- package/dist/index.js +80 -24
- package/dist/index.js.map +1 -1
- package/dist/utils/breakpoints.d.ts +11 -1
- package/package.json +3 -3
|
@@ -12,5 +12,15 @@ declare const getValueForBreakpoint: (valuesByBreakpoint: ValuesByBreakpoint | u
|
|
|
12
12
|
declare function mergeDesignValuesByBreakpoint(defaultValue: DesignValue, overwriteValue: DesignValue | undefined): DesignValue;
|
|
13
13
|
declare function mergeDesignValuesByBreakpoint(defaultValue: DesignValue | undefined, overwriteValue: DesignValue): DesignValue;
|
|
14
14
|
declare function mergeDesignValuesByBreakpoint(defaultValue: DesignValue | undefined, overwriteValue: DesignValue | undefined): DesignValue | undefined;
|
|
15
|
+
declare const BREAKPOINTS_STRATEGY_DESKTOP_FIRST = "desktop-first";
|
|
16
|
+
declare const BREAKPOINTS_STRATEGY_MOBILE_FIRST = "mobile-first";
|
|
17
|
+
type BreakpointsStrategy = typeof BREAKPOINTS_STRATEGY_DESKTOP_FIRST | typeof BREAKPOINTS_STRATEGY_MOBILE_FIRST | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Detects the breakpoint strategy based on the provided breakpoints.
|
|
20
|
+
*
|
|
21
|
+
* @param breakpoints The array of breakpoints to analyze.
|
|
22
|
+
* @returns The detected breakpoint strategy or undefined if not determinable.
|
|
23
|
+
*/
|
|
24
|
+
declare const detectBreakpointsStrategy: (breakpoints: Breakpoint[]) => BreakpointsStrategy;
|
|
15
25
|
|
|
16
|
-
export { MEDIA_QUERY_REGEXP, getActiveBreakpointIndex, getFallbackBreakpointIndex, getValueForBreakpoint, isValidBreakpointValue, mediaQueryMatcher, mergeDesignValuesByBreakpoint };
|
|
26
|
+
export { BREAKPOINTS_STRATEGY_DESKTOP_FIRST, BREAKPOINTS_STRATEGY_MOBILE_FIRST, type BreakpointsStrategy, MEDIA_QUERY_REGEXP, detectBreakpointsStrategy, getActiveBreakpointIndex, getFallbackBreakpointIndex, getValueForBreakpoint, isValidBreakpointValue, mediaQueryMatcher, mergeDesignValuesByBreakpoint };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experiences-core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0-beta.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -70,12 +70,12 @@
|
|
|
70
70
|
"vitest": "^2.1.1"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@contentful/experiences-validators": "3.
|
|
73
|
+
"@contentful/experiences-validators": "3.2.0-beta.0",
|
|
74
74
|
"@contentful/rich-text-types": "^17.0.0",
|
|
75
75
|
"zustand": "^4.4.7"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"contentful": ">=10.6.0"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "363e9304022ee1d5d0af9f80ab647946c0245d36"
|
|
81
81
|
}
|