@contentful/experiences-core 1.14.0 → 1.15.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/constants.js +1 -0
- package/dist/constants.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +35 -12
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/utils/breakpoints.d.ts +1 -1
- package/dist/utils/components.d.ts +2 -1
- package/dist/utils/styleUtils/stylesUtils.d.ts +1 -1
- package/package.json +3 -3
package/dist/types.d.ts
CHANGED
|
@@ -405,6 +405,7 @@ type ComponentDraggingChangedPayload = {
|
|
|
405
405
|
type IncomingComponentDragCanceledPayload = undefined;
|
|
406
406
|
type ComponentDragStartedPayload = {
|
|
407
407
|
id: string;
|
|
408
|
+
isAssembly: boolean;
|
|
408
409
|
};
|
|
409
410
|
type ComponentDragEndedPayload = undefined;
|
|
410
411
|
type IncomingComponentMoveEndedPayload = {
|
|
@@ -7,6 +7,6 @@ declare const mediaQueryMatcher: (breakpoints: Breakpoint[]) => [{
|
|
|
7
7
|
}[], Record<string, boolean>];
|
|
8
8
|
declare const getActiveBreakpointIndex: (breakpoints: Breakpoint[], mediaQueryMatches: Record<string, boolean>, fallbackBreakpointIndex: number) => number;
|
|
9
9
|
declare const getFallbackBreakpointIndex: (breakpoints: Breakpoint[]) => number;
|
|
10
|
-
declare const getValueForBreakpoint: (valuesByBreakpoint: ValuesByBreakpoint, breakpoints: Breakpoint[], activeBreakpointIndex: number, variableName: string) => string | number | boolean | Record<any, any> | undefined;
|
|
10
|
+
declare const getValueForBreakpoint: (valuesByBreakpoint: ValuesByBreakpoint, breakpoints: Breakpoint[], activeBreakpointIndex: number, variableName: string, resolveDesignTokens?: boolean) => string | number | boolean | Record<any, any> | undefined;
|
|
11
11
|
|
|
12
12
|
export { MEDIA_QUERY_REGEXP, getActiveBreakpointIndex, getFallbackBreakpointIndex, getValueForBreakpoint, mediaQueryMatcher };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
declare const isContentfulStructureComponent: (componentId?: string) => boolean;
|
|
2
|
+
declare const isContentfulComponent: (componentId?: string) => boolean;
|
|
2
3
|
declare const isComponentAllowedOnRoot: (componentId?: string) => boolean;
|
|
3
4
|
declare const isStructureWithRelativeHeight: (componentId?: string, height?: string | number) => boolean;
|
|
4
5
|
|
|
5
|
-
export { isComponentAllowedOnRoot, isContentfulStructureComponent, isStructureWithRelativeHeight };
|
|
6
|
+
export { isComponentAllowedOnRoot, isContentfulComponent, isContentfulStructureComponent, isStructureWithRelativeHeight };
|
|
@@ -6,7 +6,7 @@ declare const buildStyleTag: ({ styles, nodeId }: {
|
|
|
6
6
|
styles: CSSProperties;
|
|
7
7
|
nodeId?: string;
|
|
8
8
|
}) => string[];
|
|
9
|
-
declare const buildCfStyles: ({ cfHorizontalAlignment, cfVerticalAlignment, cfFlexDirection, cfFlexWrap, cfMargin, cfPadding, cfBackgroundColor, cfWidth, cfHeight, cfMaxWidth, cfBorder, cfBorderRadius, cfGap, cfBackgroundImageUrl, cfBackgroundImageOptions, cfFontSize, cfFontWeight, cfImageOptions, cfLineHeight, cfLetterSpacing, cfTextColor, cfTextAlign, cfTextTransform, cfTextBold, cfTextItalic, cfTextUnderline, cfColumnSpan, }: Partial<StyleProps>) => CSSProperties;
|
|
9
|
+
declare const buildCfStyles: ({ cfHorizontalAlignment, cfVerticalAlignment, cfFlexDirection, cfFlexWrap, cfMargin, cfPadding, cfBackgroundColor, cfWidth, cfHeight, cfMaxWidth, cfBorder, cfBorderRadius, cfGap, cfBackgroundImageUrl, cfBackgroundImageOptions, cfFontSize, cfFontWeight, cfImageOptions, cfLineHeight, cfLetterSpacing, cfTextColor, cfTextAlign, cfTextTransform, cfTextBold, cfTextItalic, cfTextUnderline, cfColumnSpan, cfVisibility, }: Partial<StyleProps>) => CSSProperties;
|
|
10
10
|
/**
|
|
11
11
|
* Container/section default behavior:
|
|
12
12
|
* Default height => height: EMPTY_CONTAINER_HEIGHT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experiences-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0-beta.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -69,11 +69,11 @@
|
|
|
69
69
|
"vitest": "^1.0.4"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@contentful/experiences-validators": "1.
|
|
72
|
+
"@contentful/experiences-validators": "1.15.0-beta.0",
|
|
73
73
|
"@contentful/rich-text-types": "^16.3.0"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"contentful": ">=10.6.0"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "3a0224df757bee8d6805475a78feddda56e87fdb"
|
|
79
79
|
}
|