@sc-360-v2/storefront-cms-library 0.0.5 → 0.0.6
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/builder.js +1 -1
- package/dist/icons.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/builder/elements/grid/index.d.ts +2 -1
- package/dist/types/builder/elements/section/index.d.ts +3 -2
- package/dist/types/builder/enums/index.d.ts +4 -2
- package/dist/types/builder/tools/element-edit/common.d.ts +3 -1
- package/dist/types/builder/tools/element-edit/embed.d.ts +13 -0
- package/dist/types/builder/tools/element-edit/gallery-slider.d.ts +1 -2
- package/dist/types/builder/tools/element-edit/grid.d.ts +15 -0
- package/dist/types/builder/tools/element-edit/index.d.ts +4 -1
- package/dist/types/builder/tools/element-edit/table.d.ts +4 -3
- package/dist/types/builder/tools/element-edit/tabs.d.ts +0 -8
- package/dist/types/builder/tools/element-edit/text.d.ts +15 -0
- package/dist/types/builder/tools/element-edit/video.d.ts +1 -0
- package/package.json +1 -1
|
@@ -44,7 +44,7 @@ export interface CMSGridInterface {
|
|
|
44
44
|
editedStyles?: CommonStyleProperties;
|
|
45
45
|
children: any;
|
|
46
46
|
attributes: {
|
|
47
|
-
BUILDER?: Pick<BuilderAttributes, "dataDivType" | "dataType">;
|
|
47
|
+
BUILDER?: Pick<BuilderAttributes, "dataDivType" | "dataType" | "dataElementType">;
|
|
48
48
|
HTML?: CommonGridElementAttributes;
|
|
49
49
|
CUSTOM?: any;
|
|
50
50
|
};
|
|
@@ -56,6 +56,7 @@ export interface CMSGridInterface {
|
|
|
56
56
|
gtrroworder?: number;
|
|
57
57
|
type?: SizeTypeValue;
|
|
58
58
|
uniqueKey?: string;
|
|
59
|
+
childIds: any[];
|
|
59
60
|
}
|
|
60
61
|
export interface CMSGridsContainer {
|
|
61
62
|
[key: string]: CMSGridInterface;
|
|
@@ -36,7 +36,7 @@ export interface VariationConditionInterface {
|
|
|
36
36
|
export interface SectionVariationInterface {
|
|
37
37
|
condition?: VariationConditionInterface;
|
|
38
38
|
attributes?: {
|
|
39
|
-
BUILDER?: Pick<BuilderAttributes, "dataDivType" | "dataType">;
|
|
39
|
+
BUILDER?: Pick<BuilderAttributes, "dataDivType" | "dataType" | "dataElementType">;
|
|
40
40
|
HTML?: SectionAttributes;
|
|
41
41
|
CUSTOM?: any;
|
|
42
42
|
};
|
|
@@ -48,10 +48,11 @@ export interface SectionVariationInterface {
|
|
|
48
48
|
highestGrid?: number | any;
|
|
49
49
|
gtc?: CMSGridsContainer;
|
|
50
50
|
gtr?: CMSGridsContainer;
|
|
51
|
+
childIds: any[];
|
|
51
52
|
}
|
|
52
53
|
export interface CMSSectionInterface {
|
|
53
54
|
id?: string | number;
|
|
54
|
-
|
|
55
|
+
uniqueKey?: string | number;
|
|
55
56
|
variations?: {
|
|
56
57
|
[key: string]: SectionVariationInterface;
|
|
57
58
|
};
|
|
@@ -21,7 +21,8 @@ export declare enum CMSToolIdTypes {
|
|
|
21
21
|
addGridButton = "add-grid-button",
|
|
22
22
|
addGridButtonSpan = "add-grid-span",
|
|
23
23
|
addGridResizerSpan = "add-grid-resizer-span",
|
|
24
|
-
customTooltip = "cms-custom-tooltip"
|
|
24
|
+
customTooltip = "cms-custom-tooltip",
|
|
25
|
+
customCodeModal = "cms-custom-code-modal"
|
|
25
26
|
}
|
|
26
27
|
export declare enum CMSElementSelectors {
|
|
27
28
|
iframeSelector = "iframe[data-title='iframe__playground']",
|
|
@@ -40,7 +41,8 @@ export declare enum CMSElementSelectors {
|
|
|
40
41
|
addElementComponentSelector = "[data-cms-tool='cms-add-element-component']",
|
|
41
42
|
playgroundWrapper = "[data-cms-tool='playground_wrapper']",
|
|
42
43
|
addElementPopup = "[data-cms-tool='cms-add-element-popup']",
|
|
43
|
-
addGridButtonSelector = "button[data-cms-tool='add-grid-button']"
|
|
44
|
+
addGridButtonSelector = "button[data-cms-tool='add-grid-button']",
|
|
45
|
+
customCodeModalSelectr = "div[data-cms-tool='cms-custom-code-modal']"
|
|
44
46
|
}
|
|
45
47
|
export declare enum CMSToolAttributes {
|
|
46
48
|
id = "data-cms-tool",
|
|
@@ -45,7 +45,9 @@ export interface CMSElementEditPopupDesignInterface {
|
|
|
45
45
|
exposure: CMSIBSizeInterface;
|
|
46
46
|
contrast: CMSIBSizeInterface;
|
|
47
47
|
saturation: CMSIBSizeInterface;
|
|
48
|
-
|
|
48
|
+
brightness: CMSIBSizeInterface;
|
|
49
|
+
lightness: CMSIBSizeInterface;
|
|
50
|
+
hue: CMSIBSizeInterface;
|
|
49
51
|
tint: CMSIBSizeInterface;
|
|
50
52
|
highlights: CMSIBSizeInterface;
|
|
51
53
|
shadows: CMSIBSizeInterface;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
|
|
2
|
+
interface selfLayoutInterface {
|
|
3
|
+
selectorKey: string;
|
|
4
|
+
}
|
|
5
|
+
export interface selfDesignInterface {
|
|
6
|
+
selectorKey: string;
|
|
7
|
+
}
|
|
8
|
+
export declare enum embedSelectorKeysEnum {
|
|
9
|
+
LAYOUT = "layout",
|
|
10
|
+
DESIGN = "design"
|
|
11
|
+
}
|
|
12
|
+
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
13
|
+
export {};
|
|
@@ -9,7 +9,6 @@ interface selfLayoutInterface {
|
|
|
9
9
|
sliderControl: CMSIBCommonInterface;
|
|
10
10
|
controlPosition: CMSIBCommonInterface;
|
|
11
11
|
loopImages: CMSIBCommonInterface;
|
|
12
|
-
sliderDisplayScrollbar: CMSIBCommonInterface;
|
|
13
12
|
autoplay: CMSIBCommonInterface;
|
|
14
13
|
autoplayStyle: CMSIBCommonInterface;
|
|
15
14
|
autoplayDuration: CMSIBSizeInterface;
|
|
@@ -44,7 +43,7 @@ export interface selfDesignInterface {
|
|
|
44
43
|
textLayout: CMSIBCommonInterface;
|
|
45
44
|
itemTitleAndDescriptionAlignment: CMSIBCommonInterface;
|
|
46
45
|
textVerticalPadding: CMSIBCommonInterface;
|
|
47
|
-
|
|
46
|
+
textHorizontalPadding: CMSIBCommonInterface;
|
|
48
47
|
titleAndDescriptionSpacing: CMSIBCommonInterface;
|
|
49
48
|
};
|
|
50
49
|
paginationArrows: {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
|
|
2
|
+
export interface GridEditPopupInterface extends CMSElementEditPopupInterface {
|
|
3
|
+
}
|
|
4
|
+
interface selfLayoutInterface {
|
|
5
|
+
selectorKey: string;
|
|
6
|
+
}
|
|
7
|
+
export interface selfDesignInterface {
|
|
8
|
+
selectorKey: string;
|
|
9
|
+
}
|
|
10
|
+
export declare enum gridSelectorKeysEnum {
|
|
11
|
+
LAYOUT = "layout",
|
|
12
|
+
DESIGN = "design"
|
|
13
|
+
}
|
|
14
|
+
export declare const getDefaultData: (contentWidth: any) => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
15
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as common from "./common";
|
|
2
2
|
import * as section from "./section";
|
|
3
|
+
import * as grid from "./grid";
|
|
3
4
|
import * as image from "./image";
|
|
4
5
|
import * as button from "./button";
|
|
5
6
|
import * as video from "./video";
|
|
@@ -10,4 +11,6 @@ import * as gallerySlider from "./gallery-slider";
|
|
|
10
11
|
import * as social from "./social";
|
|
11
12
|
import * as faq from "./faq";
|
|
12
13
|
import * as code from "./code";
|
|
13
|
-
|
|
14
|
+
import * as embed from "./embed";
|
|
15
|
+
import * as text from "./text";
|
|
16
|
+
export { section, grid, common, image, button, slideShowLayouter, tabs, video, table, gallerySlider, social, faq, code, text, embed, };
|
|
@@ -7,9 +7,9 @@ export interface TableControlInterface {
|
|
|
7
7
|
header?: CMSIBCommonInterface;
|
|
8
8
|
headerHeight?: CMSIBCommonInterface;
|
|
9
9
|
rowHeight?: CMSIBCommonInterface;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
layoutHeaderDivider?: CMSIBCommonInterface;
|
|
11
|
+
layoutRowDivider?: CMSIBCommonInterface;
|
|
12
|
+
layoutColumnDivider?: CMSIBCommonInterface;
|
|
13
13
|
alternativeRowColors?: CMSIBCommonInterface;
|
|
14
14
|
headerCellPadding?: CMSIBCommonInterface;
|
|
15
15
|
rowCellPadding?: CMSIBCommonInterface;
|
|
@@ -90,6 +90,7 @@ export interface TableControlInterface {
|
|
|
90
90
|
selectorKey?: string;
|
|
91
91
|
headerDivider?: CMSIBCommonInterface;
|
|
92
92
|
rowDivider?: CMSIBCommonInterface;
|
|
93
|
+
columnDivider?: CMSIBCommonInterface;
|
|
93
94
|
};
|
|
94
95
|
scrollBar?: {
|
|
95
96
|
selectorKey?: string;
|
|
@@ -90,8 +90,6 @@ export declare const getDefaultData: () => {
|
|
|
90
90
|
exposure: import("../../interfaces/global").CMSIBSizeInterface;
|
|
91
91
|
contrast: import("../../interfaces/global").CMSIBSizeInterface;
|
|
92
92
|
saturation: import("../../interfaces/global").CMSIBSizeInterface;
|
|
93
|
-
temperature: import("../../interfaces/global").CMSIBSizeInterface;
|
|
94
|
-
tint: import("../../interfaces/global").CMSIBSizeInterface;
|
|
95
93
|
highlights: import("../../interfaces/global").CMSIBSizeInterface;
|
|
96
94
|
shadows: import("../../interfaces/global").CMSIBSizeInterface;
|
|
97
95
|
};
|
|
@@ -110,8 +108,6 @@ export declare const getDefaultData: () => {
|
|
|
110
108
|
exposure: import("../../interfaces/global").CMSIBSizeInterface;
|
|
111
109
|
contrast: import("../../interfaces/global").CMSIBSizeInterface;
|
|
112
110
|
saturation: import("../../interfaces/global").CMSIBSizeInterface;
|
|
113
|
-
temperature: import("../../interfaces/global").CMSIBSizeInterface;
|
|
114
|
-
tint: import("../../interfaces/global").CMSIBSizeInterface;
|
|
115
111
|
highlights: import("../../interfaces/global").CMSIBSizeInterface;
|
|
116
112
|
shadows: import("../../interfaces/global").CMSIBSizeInterface;
|
|
117
113
|
};
|
|
@@ -130,8 +126,6 @@ export declare const getDefaultData: () => {
|
|
|
130
126
|
exposure: import("../../interfaces/global").CMSIBSizeInterface;
|
|
131
127
|
contrast: import("../../interfaces/global").CMSIBSizeInterface;
|
|
132
128
|
saturation: import("../../interfaces/global").CMSIBSizeInterface;
|
|
133
|
-
temperature: import("../../interfaces/global").CMSIBSizeInterface;
|
|
134
|
-
tint: import("../../interfaces/global").CMSIBSizeInterface;
|
|
135
129
|
highlights: import("../../interfaces/global").CMSIBSizeInterface;
|
|
136
130
|
shadows: import("../../interfaces/global").CMSIBSizeInterface;
|
|
137
131
|
};
|
|
@@ -150,8 +144,6 @@ export declare const getDefaultData: () => {
|
|
|
150
144
|
exposure: import("../../interfaces/global").CMSIBSizeInterface;
|
|
151
145
|
contrast: import("../../interfaces/global").CMSIBSizeInterface;
|
|
152
146
|
saturation: import("../../interfaces/global").CMSIBSizeInterface;
|
|
153
|
-
temperature: import("../../interfaces/global").CMSIBSizeInterface;
|
|
154
|
-
tint: import("../../interfaces/global").CMSIBSizeInterface;
|
|
155
147
|
highlights: import("../../interfaces/global").CMSIBSizeInterface;
|
|
156
148
|
shadows: import("../../interfaces/global").CMSIBSizeInterface;
|
|
157
149
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CMSIBCommonInterface } from "../../interfaces/global";
|
|
2
|
+
import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
|
|
3
|
+
interface selfLayoutInterface {
|
|
4
|
+
selectorKey: string;
|
|
5
|
+
textData: CMSIBCommonInterface;
|
|
6
|
+
}
|
|
7
|
+
export interface selfDesignInterface {
|
|
8
|
+
selectorKey: string;
|
|
9
|
+
}
|
|
10
|
+
export declare enum textSelectorKeysEnum {
|
|
11
|
+
LAYOUT = "layout",
|
|
12
|
+
DESIGN = "design"
|
|
13
|
+
}
|
|
14
|
+
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
15
|
+
export {};
|
|
@@ -21,6 +21,7 @@ export interface VideoControlInterface {
|
|
|
21
21
|
videoDescription?: CMSIBCommonInterface;
|
|
22
22
|
showCustomVideoThumbnail?: CMSIBCommonInterface;
|
|
23
23
|
thumbnailImage?: CMSIBCommonInterface;
|
|
24
|
+
image?: CMSIBCommonInterface;
|
|
24
25
|
videoPlayerText?: {
|
|
25
26
|
selectorKey?: string;
|
|
26
27
|
textPosition?: CMSIBCommonInterface;
|