@contentful/experiences-core 1.37.3-dev-20250522T1032-0caa03f.0 → 1.38.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.js +24 -14
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils/breakpoints.d.ts +1 -1
- package/package.json +3 -3
package/dist/types.d.ts
CHANGED
|
@@ -295,7 +295,7 @@ interface Experience<T extends EntityStore = EntityStore> {
|
|
|
295
295
|
hyperlinkPattern?: string;
|
|
296
296
|
entityStore?: T;
|
|
297
297
|
}
|
|
298
|
-
type ResolveDesignValueType = (valuesByBreakpoint: ValuesByBreakpoint | undefined,
|
|
298
|
+
type ResolveDesignValueType = (valuesByBreakpoint: ValuesByBreakpoint | undefined, propertyName?: string) => PrimitiveValue;
|
|
299
299
|
type ManagementEntity = (Entry | Asset) & {
|
|
300
300
|
sys: {
|
|
301
301
|
version: number;
|
|
@@ -8,6 +8,6 @@ declare const mediaQueryMatcher: (breakpoints: Breakpoint[]) => [{
|
|
|
8
8
|
declare const getActiveBreakpointIndex: (breakpoints: Breakpoint[], mediaQueryMatches: Record<string, boolean>, fallbackBreakpointIndex: number) => number;
|
|
9
9
|
declare const getFallbackBreakpointIndex: (breakpoints: Breakpoint[]) => number;
|
|
10
10
|
declare const isValidBreakpointValue: (value: PrimitiveValue) => value is Exclude<PrimitiveValue, undefined>;
|
|
11
|
-
declare const getValueForBreakpoint: (valuesByBreakpoint: ValuesByBreakpoint | undefined, breakpoints: Breakpoint[], activeBreakpointIndex: number, fallbackBreakpointIndex: number,
|
|
11
|
+
declare const getValueForBreakpoint: (valuesByBreakpoint: ValuesByBreakpoint | undefined, breakpoints: Breakpoint[], activeBreakpointIndex: number, fallbackBreakpointIndex: number, propertyName?: string, resolveDesignTokens?: boolean) => string | number | boolean | Record<any, any> | undefined;
|
|
12
12
|
|
|
13
13
|
export { MEDIA_QUERY_REGEXP, getActiveBreakpointIndex, getFallbackBreakpointIndex, getValueForBreakpoint, isValidBreakpointValue, mediaQueryMatcher };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experiences-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.38.0-beta.0",
|
|
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.
|
|
73
|
+
"@contentful/experiences-validators": "1.38.0-beta.0",
|
|
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": "43d87165afe4611b57cc0246bf0800430c43155b"
|
|
80
80
|
}
|