@contentful/experiences-core 1.36.0-dev-20250417T0749-6e3b573.0 → 1.36.0-dev-20250417T1301-b6204ec.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Entry, Asset } from 'contentful/dist/types/types';
|
|
2
2
|
import { ComponentPropertyValue, ExperienceUnboundValues, ExperienceDataSource, ExperienceComponentSettings } from '@contentful/experiences-validators';
|
|
3
|
-
import { Experience, StyleProps, DesignTokensDefinition } from '../../types.js';
|
|
3
|
+
import { Experience, StyleProps, BackgroundImageOptions, DesignTokensDefinition } from '../../types.js';
|
|
4
4
|
|
|
5
5
|
type FlattenedDesignTokens = Record<string, string | {
|
|
6
6
|
width?: string;
|
|
@@ -10,14 +10,16 @@ type FlattenedDesignTokens = Record<string, string | {
|
|
|
10
10
|
declare const detachExperienceStyles: (experience: Experience) => string | undefined;
|
|
11
11
|
declare const isCfStyleAttribute: (variableName: string) => variableName is keyof StyleProps;
|
|
12
12
|
declare const maybePopulateDesignTokenValue: (variableName: string, variableValue: unknown, mapOfDesignVariableKeys: FlattenedDesignTokens) => unknown;
|
|
13
|
-
declare const resolveBackgroundImageBinding: ({ variableData, getBoundEntityById, dataSource, unboundValues, componentVariablesOverwrites, componentSettings, }: {
|
|
13
|
+
declare const resolveBackgroundImageBinding: ({ variableData, getBoundEntityById, dataSource, unboundValues, componentVariablesOverwrites, componentSettings, options, width, }: {
|
|
14
14
|
variableData: ComponentPropertyValue;
|
|
15
15
|
getBoundEntityById: (id: string) => Entry | Asset | undefined;
|
|
16
16
|
unboundValues?: ExperienceUnboundValues;
|
|
17
17
|
dataSource?: ExperienceDataSource;
|
|
18
18
|
componentSettings?: ExperienceComponentSettings;
|
|
19
19
|
componentVariablesOverwrites?: Record<string, ComponentPropertyValue>;
|
|
20
|
-
|
|
20
|
+
options?: BackgroundImageOptions;
|
|
21
|
+
width?: string;
|
|
22
|
+
}) => any;
|
|
21
23
|
/**
|
|
22
24
|
* Takes the initial set of properties, filters only design properties that will be mapped to CSS and
|
|
23
25
|
* re-organizes them to be indexed by breakpoint ID ("breakpoint > variable > value"). It will
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experiences-core",
|
|
3
|
-
"version": "1.36.0-dev-
|
|
3
|
+
"version": "1.36.0-dev-20250417T1301-b6204ec.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.36.0-dev-
|
|
73
|
+
"@contentful/experiences-validators": "1.36.0-dev-20250417T1301-b6204ec.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": "cd80087cb920ddf6ba06e65f98a6fd8d7316149e"
|
|
80
80
|
}
|