@sc-360-v2/storefront-cms-library 0.2.3 → 0.2.32
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/product-basic-elements.scss +4 -0
- package/dist/types/builder/elements/common.d.ts +2 -0
- package/dist/types/builder/elements/section/index.d.ts +4 -0
- package/dist/types/builder/enums/index.d.ts +22 -2
- package/dist/types/builder/interfaces/global.d.ts +11 -1
- package/dist/types/builder/tools/element-edit/index.d.ts +2 -1
- package/dist/types/builder/tools/element-edit/sort.d.ts +31 -0
- package/dist/types/global/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
@use "sass:list";
|
|
3
3
|
|
|
4
4
|
[data-div-type="element"] {
|
|
5
|
+
word-break: break-all;
|
|
5
6
|
&[data-element-type="productName"],
|
|
6
7
|
&[data-element-type="brandName"],
|
|
7
8
|
&[data-element-type="categoryName"] {
|
|
9
|
+
word-break: break-all;
|
|
8
10
|
// width: var(--_lt-wh);
|
|
9
11
|
// height: var(--_lt-ht);
|
|
10
12
|
// margin: var(--_lt-mn);
|
|
@@ -37,8 +39,10 @@
|
|
|
37
39
|
font-weight: 600;
|
|
38
40
|
color: rgba(75, 69, 70, 1);
|
|
39
41
|
cursor: pointer;
|
|
42
|
+
word-break: break-all;
|
|
40
43
|
}
|
|
41
44
|
.text-element {
|
|
45
|
+
word-break: break-all;
|
|
42
46
|
background-color: var(--_ctm-dn-bd-cr, var(--_tst-dn-bd-cr));
|
|
43
47
|
padding: var(--_ctm-lt-pg, var(--_tst-lt-pg));
|
|
44
48
|
display: flex;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ResponsiveBehaviourTypes } from "../../global/types";
|
|
2
2
|
import { CMSHTMLAttributes } from "../../global/attributes";
|
|
3
3
|
import { CommonStyleProperties } from "../../global/style-properties";
|
|
4
|
+
import { CMSDeviceVisibilityOptionInterface } from "../interfaces/global";
|
|
4
5
|
export interface BuilderAttributes {
|
|
5
6
|
dataType?: string;
|
|
6
7
|
dataDivType?: string;
|
|
@@ -25,4 +26,5 @@ export interface CMSElementInterface {
|
|
|
25
26
|
builderData?: any;
|
|
26
27
|
controls?: any;
|
|
27
28
|
sort?: number;
|
|
29
|
+
deviceVisibility?: CMSDeviceVisibilityOptionInterface;
|
|
28
30
|
}
|
|
@@ -3,6 +3,7 @@ import { DisplayValue, ResponsiveBehaviourTypes } from "../../../global/types";
|
|
|
3
3
|
import { CMSHTMLAttributes } from "../../../global/attributes";
|
|
4
4
|
import { CMSGridsContainer } from "../grid";
|
|
5
5
|
import { BuilderAttributes } from "../common";
|
|
6
|
+
import { CMSDeviceVisibilityOptionInterface } from "../../interfaces/global";
|
|
6
7
|
export interface SectionAttributes extends CMSHTMLAttributes {
|
|
7
8
|
role?: string;
|
|
8
9
|
ariaLabel?: string;
|
|
@@ -66,4 +67,7 @@ export interface CMSSectionInterface {
|
|
|
66
67
|
sort?: number;
|
|
67
68
|
dataContentType?: string;
|
|
68
69
|
currentVariation?: any;
|
|
70
|
+
sectionType?: string;
|
|
71
|
+
pageId?: string;
|
|
72
|
+
deviceVisibility?: CMSDeviceVisibilityOptionInterface;
|
|
69
73
|
}
|
|
@@ -52,7 +52,8 @@ export declare enum CMSToolIdTypes {
|
|
|
52
52
|
categoryWrapper = "cms-category-wrapper",
|
|
53
53
|
subCategoryWrapper = "cms-sub-category-wrapper",
|
|
54
54
|
categoryWidgetWrapper = "cms-category-widget-wrapper",
|
|
55
|
-
tabsWrapper = "cms-tabs-wrapper"
|
|
55
|
+
tabsWrapper = "cms-tabs-wrapper",
|
|
56
|
+
gridSwapBtn = "cms-grid-swap-btn"
|
|
56
57
|
}
|
|
57
58
|
export declare enum CMSElementSelectors {
|
|
58
59
|
iframeSelector = "iframe[data-title='iframe__playground']",
|
|
@@ -106,7 +107,8 @@ export declare enum CMSElementSelectors {
|
|
|
106
107
|
subCategoryElement = "div[data-element-type='subCategory']",
|
|
107
108
|
categoryWidgetElement = "div[data-element-type='categoryWidget']",
|
|
108
109
|
tabsElement = "div[data-element-type='tabs']",
|
|
109
|
-
imageHotspot = "div[data-element-type='imageHotspot']"
|
|
110
|
+
imageHotspot = "div[data-element-type='imageHotspot']",
|
|
111
|
+
gridSwapBtn = "div[data-cms-tool='cms-grid-swap-btn']"
|
|
110
112
|
}
|
|
111
113
|
export declare enum CMSToolAttributes {
|
|
112
114
|
id = "data-cms-tool",
|
|
@@ -231,6 +233,7 @@ export declare const CMSElementsListEnum: {
|
|
|
231
233
|
BUNDLE: string;
|
|
232
234
|
SUB_CATEGORY: string;
|
|
233
235
|
FILTERS: string;
|
|
236
|
+
SORT: string;
|
|
234
237
|
};
|
|
235
238
|
export declare enum CMSResponsiveModeEnums {
|
|
236
239
|
DESKTOP = "desktop",
|
|
@@ -260,3 +263,20 @@ export declare enum FliterTypes {
|
|
|
260
263
|
CUSTOM_ATTRIBUTE_FILTER = 4,
|
|
261
264
|
PRICE_FILTER = 5
|
|
262
265
|
}
|
|
266
|
+
export declare enum SortOptions {
|
|
267
|
+
RECOMMENDED = 1,
|
|
268
|
+
NEWEST = 2,
|
|
269
|
+
PRICE_LOW_HIGH = 3,
|
|
270
|
+
PRICE_HIGH_LOW = 4,
|
|
271
|
+
NAME_A_Z = 5,
|
|
272
|
+
NAME_Z_A = 6
|
|
273
|
+
}
|
|
274
|
+
export declare enum CMSDeviceVisibilityHiddenTypeEnums {
|
|
275
|
+
CSS = 1,
|
|
276
|
+
HTML = 2
|
|
277
|
+
}
|
|
278
|
+
export declare enum CMSDeviceVisibilityKeysEnums {
|
|
279
|
+
DESKTOP = "desktop",
|
|
280
|
+
TABLET = "tablet",
|
|
281
|
+
MOBILE = "mobile"
|
|
282
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CMSElementEditTypes } from "../enums";
|
|
1
|
+
import { CMSDeviceVisibilityHiddenTypeEnums, CMSElementEditTypes } from "../enums";
|
|
2
2
|
import "./cms-tools";
|
|
3
3
|
export interface FontSizeValues {
|
|
4
4
|
px: number[];
|
|
@@ -93,3 +93,13 @@ export interface CMSResponsiveTypeInterface {
|
|
|
93
93
|
tablet?: CMSResponsiveTypeValueInterface;
|
|
94
94
|
mobile?: CMSResponsiveTypeValueInterface;
|
|
95
95
|
}
|
|
96
|
+
export interface CMSDeviceVisibilityOptionItemInterface {
|
|
97
|
+
show: boolean;
|
|
98
|
+
hide: boolean;
|
|
99
|
+
hiddenType: CMSDeviceVisibilityHiddenTypeEnums;
|
|
100
|
+
}
|
|
101
|
+
export interface CMSDeviceVisibilityOptionInterface {
|
|
102
|
+
desktop: CMSDeviceVisibilityOptionItemInterface;
|
|
103
|
+
tablet: CMSDeviceVisibilityOptionItemInterface;
|
|
104
|
+
mobile: CMSDeviceVisibilityOptionItemInterface;
|
|
105
|
+
}
|
|
@@ -50,4 +50,5 @@ import * as category from "./category";
|
|
|
50
50
|
import * as subCategory from "./subCategory";
|
|
51
51
|
import * as brandImage from "./brandImage";
|
|
52
52
|
import * as filters from "./filters";
|
|
53
|
-
|
|
53
|
+
import * as sort from "./sort";
|
|
54
|
+
export { amountEstimator, bulkVariantPicker, button, code, common, container, countdown, embed, faq, gallerySlider, grid, image, imageHotspot, map, paymentMethods, pickupLocations, price, productActions, productHighlights, productImage, productInventory, productPromotions, quantitySelector, scroll, section, shippingEstimator, slideShowLayouter, social, stack, storeLocations, table, tabs, text, uomSelector, variantPicker, video, volumePricing, lightbox, cart, profile, repeater, repeaterItem, product, menu, productOptions, productDetails, category, subCategory, brand, bundle, brandImage, filters, sort, };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
|
|
2
|
+
export interface SectionEditPopupInterface extends CMSElementEditPopupInterface {
|
|
3
|
+
}
|
|
4
|
+
interface selfLayoutInterface {
|
|
5
|
+
selectorKey: string;
|
|
6
|
+
}
|
|
7
|
+
interface selfDesignInterface {
|
|
8
|
+
selectorKey: string;
|
|
9
|
+
sortTitle: {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
};
|
|
12
|
+
selectedOption: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
};
|
|
15
|
+
sortButton: {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export declare enum SelectorKeysEnum {
|
|
20
|
+
LAYOUT = "layout",
|
|
21
|
+
CONTENT = "content",
|
|
22
|
+
DESIGN = "design",
|
|
23
|
+
DEFAULT_STATE = "defaultState",
|
|
24
|
+
HOVER_STATE = "hoverState",
|
|
25
|
+
SELECTED_STATE = "selected",
|
|
26
|
+
SORT_TITLE = "sortTitle",
|
|
27
|
+
SELECTED_OPTION = "selectedOption",
|
|
28
|
+
SORT_BUTTON = "sortButton"
|
|
29
|
+
}
|
|
30
|
+
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
31
|
+
export {};
|
|
@@ -37,3 +37,4 @@ export type ObjectFitValue = "fill" | "contain" | "cover" | "none" | "scale-down
|
|
|
37
37
|
export type ObjectPositionValue = string;
|
|
38
38
|
export type RepeaterDisplayStyleType = "grid" | "list" | "slider" | "cards";
|
|
39
39
|
export type RepeaterSliderControlTypes = "Arrows & Dots" | "Arrows" | "Dots" | "None";
|
|
40
|
+
export type DeviceVisibilityByOptionsType = "HTML" | "CSS" | "NONE";
|