@contentful/experiences-core 1.30.5-prerelease-20250212T1254-7ec10ae.0 → 1.30.5-prerelease-20250214T1504-9ac7f25.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 +1 -3
- package/dist/index.js.map +1 -1
- package/dist/utils/breakpoints.d.ts +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -2550,7 +2550,7 @@ const builtInStylesWithDesignTokens = [
|
|
|
2550
2550
|
const isValidBreakpointValue = (value) => {
|
|
2551
2551
|
return value !== undefined && value !== null && value !== '';
|
|
2552
2552
|
};
|
|
2553
|
-
const getValueForBreakpoint = (valuesByBreakpoint, breakpoints, activeBreakpointIndex, variableName, resolveDesignTokens = true) => {
|
|
2553
|
+
const getValueForBreakpoint = (valuesByBreakpoint, breakpoints, activeBreakpointIndex, fallbackBreakpointIndex, variableName, resolveDesignTokens = true) => {
|
|
2554
2554
|
const eventuallyResolveDesignTokens = (value) => {
|
|
2555
2555
|
// For some built-in design properties, we support design tokens
|
|
2556
2556
|
if (builtInStylesWithDesignTokens.includes(variableName)) {
|
|
@@ -2571,8 +2571,6 @@ const getValueForBreakpoint = (valuesByBreakpoint, breakpoints, activeBreakpoint
|
|
|
2571
2571
|
return valuesByBreakpoint[breakpointId];
|
|
2572
2572
|
}
|
|
2573
2573
|
}
|
|
2574
|
-
// If no breakpoint matched, we search and apply the fallback breakpoint
|
|
2575
|
-
const fallbackBreakpointIndex = getFallbackBreakpointIndex(breakpoints);
|
|
2576
2574
|
const fallbackBreakpointId = breakpoints[fallbackBreakpointIndex]?.id;
|
|
2577
2575
|
if (isValidBreakpointValue(valuesByBreakpoint[fallbackBreakpointId])) {
|
|
2578
2576
|
if (resolveDesignTokens) {
|