@sc-360-v2/storefront-cms-library 0.5.9 → 0.5.11
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/builderLite.js +1 -1
- package/dist/icons-builder.js +1 -1
- package/dist/icons-website.js +1 -1
- package/dist/icons.js +1 -1
- package/dist/index.js +1 -1
- package/dist/product-image.scss +2 -7
- package/dist/repeater.scss +101 -311
- package/dist/request-for-quotes.scss +2 -2
- package/dist/types/builder/enums/index.d.ts +1 -0
- package/dist/types/builder/interfaces/global.d.ts +55 -0
- package/dist/types/builder/tools/element-edit/icon-list.d.ts +6 -6
- package/dist/types/builder/tools/element-edit/index.d.ts +2 -1
- package/dist/types/builder/tools/element-edit/lastxordersbutton.d.ts +34 -0
- package/dist/types/builder/tools/element-edit/productPrice.d.ts +18 -0
- package/dist/types/builder/tools/element-edit/quotaDetails.d.ts +2 -1
- package/dist/types/builder/tools/element-edit/repeater.d.ts +7 -1
- package/dist/types/website/enums/feature-restrictions.d.ts +9 -0
- package/dist/types/website/helper/feature-restrictions.d.ts +9 -0
- package/dist/types/website/index.d.ts +14 -1
- package/dist/uploadMedia.js +1 -1
- package/dist/website.js +1 -1
- package/package.json +1 -1
|
@@ -5,6 +5,11 @@ export declare enum SelectorKeysEnum {
|
|
|
5
5
|
DESIGN = "design",
|
|
6
6
|
CONTENT = "content",
|
|
7
7
|
PRODUCT_PRICE = "productPrice",
|
|
8
|
+
LABEL = "label",
|
|
9
|
+
PRICE_BREAKDOWN = "priceBreakdown",
|
|
10
|
+
BREAKDOWN_PROPERTY = "breakdownProperty",
|
|
11
|
+
BREAKDOWN_VALUE = "breakdownValue",
|
|
12
|
+
POPOVER_STYLE = "popoverStyle",
|
|
8
13
|
UOM_STYLE = "uomStyle",
|
|
9
14
|
CURRENCY_CODE_STYLE = "currencyCodeStyle",
|
|
10
15
|
ACTUAL_PRICE = "actualPrice",
|
|
@@ -32,12 +37,22 @@ export interface selfLayoutInterface {
|
|
|
32
37
|
displayMinQtySet: CMSIBCommonInterface;
|
|
33
38
|
priceFormat: CMSIBCommonInterface;
|
|
34
39
|
displayFormat: CMSIBCommonInterface;
|
|
40
|
+
itemGap: CMSIBCommonInterface;
|
|
35
41
|
}
|
|
36
42
|
export interface selfDesignInterface {
|
|
37
43
|
selectorKey: string;
|
|
38
44
|
productPrice: {
|
|
39
45
|
[key: string]: any;
|
|
40
46
|
};
|
|
47
|
+
label: {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
};
|
|
50
|
+
breakdownProperty: {
|
|
51
|
+
[key: string]: any;
|
|
52
|
+
};
|
|
53
|
+
breakdownValue: {
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
};
|
|
41
56
|
giftCard: {
|
|
42
57
|
[key: string]: any;
|
|
43
58
|
};
|
|
@@ -71,9 +86,12 @@ export interface selfDesignInterface {
|
|
|
71
86
|
productShippingPrice: {
|
|
72
87
|
[key: string]: any;
|
|
73
88
|
};
|
|
89
|
+
[key: string]: any;
|
|
74
90
|
}
|
|
75
91
|
export interface selfContentInterface {
|
|
76
92
|
selectorKey: string;
|
|
93
|
+
showLabel: CMSIBCommonInterface;
|
|
94
|
+
labelText: CMSIBCommonInterface;
|
|
77
95
|
productPrice: CMSIBCommonInterface;
|
|
78
96
|
sellingPrice: CMSIBCommonInterface;
|
|
79
97
|
productPriceDisplayUOM: CMSIBCommonInterface;
|
|
@@ -28,7 +28,8 @@ export declare enum ButtonSelectorKeysEnum {
|
|
|
28
28
|
FAQ_WIDGET = "faqWidget",
|
|
29
29
|
COLLAPSED_ACCRORDION_ITEM = "collapsedAccordionItem",
|
|
30
30
|
EXPANDED_ACCRORDION_ITEM = "expandedAccordionItem",
|
|
31
|
-
DIVIDER = "divider"
|
|
31
|
+
DIVIDER = "divider",
|
|
32
|
+
DATA_CONNECTOR = "dataConnector"
|
|
32
33
|
}
|
|
33
34
|
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
34
35
|
export {};
|
|
@@ -63,6 +63,7 @@ export interface selfDesignInterface {
|
|
|
63
63
|
repeaterWidget: any;
|
|
64
64
|
buttonStyle: any;
|
|
65
65
|
gridViewControlStyle: any;
|
|
66
|
+
adStyle: any;
|
|
66
67
|
}
|
|
67
68
|
export declare enum selfSelectorKeysEnum {
|
|
68
69
|
LAYOUT = "layout",
|
|
@@ -75,7 +76,12 @@ export declare enum selfSelectorKeysEnum {
|
|
|
75
76
|
BUTTON_STYLE = "buttonStyle",
|
|
76
77
|
GRID_VIEW_CONTROL_STYLE = "gridViewControlStyle",
|
|
77
78
|
BUTTON = "button",
|
|
78
|
-
LAYOUT_STYLE = "layoutStyle"
|
|
79
|
+
LAYOUT_STYLE = "layoutStyle",
|
|
80
|
+
AD_STYLE = "adStyle",
|
|
81
|
+
IMAGE_CONTROLS = "imageControls",
|
|
82
|
+
SLIDER_CONTROLS = "sliderControls",
|
|
83
|
+
GRID_VIEW = "gridView",
|
|
84
|
+
LIST_VIEW = "listView"
|
|
79
85
|
}
|
|
80
86
|
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
81
87
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Returns the subset of user atoms that correspond to defined feature restrictions */
|
|
2
|
+
export declare const getRestrictionFeaturesList: (atoms: any[]) => any[];
|
|
3
|
+
export declare const filterElementsByFeature: (data: any, options?: {
|
|
4
|
+
removeEmptyContainers?: boolean;
|
|
5
|
+
}) => {
|
|
6
|
+
elements: any;
|
|
7
|
+
sections: any;
|
|
8
|
+
lightbox: any;
|
|
9
|
+
};
|
|
@@ -2,4 +2,17 @@ import * as ssrFunctions from "./helper/ssr-functions";
|
|
|
2
2
|
import * as dataConnectorContants from "./constants/data-connectors";
|
|
3
3
|
import * as dataConnectorSources from "./constants/data-connector-souces";
|
|
4
4
|
import * as enums from "../builder/enums/index";
|
|
5
|
-
|
|
5
|
+
import * as featureRestrictionEnums from "./enums/feature-restrictions";
|
|
6
|
+
declare const featureRestrictions: {
|
|
7
|
+
getRestrictionFeaturesList: (atoms: any[]) => any[];
|
|
8
|
+
filterElementsByFeature: (data: any, options?: {
|
|
9
|
+
removeEmptyContainers?: boolean | undefined;
|
|
10
|
+
} | undefined) => {
|
|
11
|
+
elements: any;
|
|
12
|
+
sections: any;
|
|
13
|
+
lightbox: any;
|
|
14
|
+
};
|
|
15
|
+
restrictionFeaturesEnums: typeof featureRestrictionEnums.restrictionFeaturesEnums;
|
|
16
|
+
featuresAccessEnums: typeof featureRestrictionEnums.featuresAccessEnums;
|
|
17
|
+
};
|
|
18
|
+
export { ssrFunctions, dataConnectorContants, dataConnectorSources, enums, featureRestrictions };
|