@sc-360-v2/storefront-cms-library 0.2.31 → 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/types/builder/elements/common.d.ts +2 -0
- package/dist/types/builder/elements/section/index.d.ts +2 -0
- package/dist/types/builder/enums/index.d.ts +18 -0
- 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
|
@@ -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;
|
|
@@ -68,4 +69,5 @@ export interface CMSSectionInterface {
|
|
|
68
69
|
currentVariation?: any;
|
|
69
70
|
sectionType?: string;
|
|
70
71
|
pageId?: string;
|
|
72
|
+
deviceVisibility?: CMSDeviceVisibilityOptionInterface;
|
|
71
73
|
}
|
|
@@ -233,6 +233,7 @@ export declare const CMSElementsListEnum: {
|
|
|
233
233
|
BUNDLE: string;
|
|
234
234
|
SUB_CATEGORY: string;
|
|
235
235
|
FILTERS: string;
|
|
236
|
+
SORT: string;
|
|
236
237
|
};
|
|
237
238
|
export declare enum CMSResponsiveModeEnums {
|
|
238
239
|
DESKTOP = "desktop",
|
|
@@ -262,3 +263,20 @@ export declare enum FliterTypes {
|
|
|
262
263
|
CUSTOM_ATTRIBUTE_FILTER = 4,
|
|
263
264
|
PRICE_FILTER = 5
|
|
264
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";
|