@sc-360-v2/storefront-cms-library 0.5.10 → 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/request-for-quotes.scss +2 -2
- package/dist/types/builder/enums/index.d.ts +1 -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/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
package/dist/product-image.scss
CHANGED
|
@@ -754,15 +754,10 @@ $defaultValues: (
|
|
|
754
754
|
&[data-background-shape="Round"] {
|
|
755
755
|
.left-button,
|
|
756
756
|
.right-button {
|
|
757
|
-
|
|
758
|
-
// --_ctm-mob-dn-pn-as-bd-cr,
|
|
759
|
-
// var(--_ctm-tab-dn-pn-as-bd-cr, var(--_ctm-dn-pn-as-bd-cr))
|
|
760
|
-
// );
|
|
757
|
+
@include BgColorLighter(var(--_ctm-dn-pn-as-bd-cr), 10%);
|
|
761
758
|
&:not(:disabled):hover {
|
|
762
|
-
|
|
763
|
-
@include BgColorLighter(var(--_ctm-dn-pn-as-bd-cr), 5%);
|
|
759
|
+
@include BgColorLighter(var(--_ctm-dn-pn-as-bd-cr), 20%);
|
|
764
760
|
}
|
|
765
|
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
766
761
|
}
|
|
767
762
|
}
|
|
768
763
|
|
|
@@ -137,23 +137,23 @@ export declare const getDefaultData: () => {
|
|
|
137
137
|
defaultState: {
|
|
138
138
|
icon: import("../../interfaces/global").CMSIBIconInterface | undefined;
|
|
139
139
|
showIcon: {
|
|
140
|
-
value: null;
|
|
141
140
|
parentRef: string;
|
|
141
|
+
value?: any;
|
|
142
142
|
property?: any;
|
|
143
143
|
propertyType?: any;
|
|
144
144
|
isReadOnly?: boolean | undefined;
|
|
145
145
|
};
|
|
146
146
|
iconSize: {
|
|
147
|
-
value: null;
|
|
148
147
|
parentRef: string;
|
|
149
148
|
unit?: string | number | undefined;
|
|
149
|
+
value?: any;
|
|
150
150
|
property?: any;
|
|
151
151
|
propertyType?: any;
|
|
152
152
|
isReadOnly?: boolean | undefined;
|
|
153
153
|
};
|
|
154
154
|
iconColor: {
|
|
155
|
-
value: null;
|
|
156
155
|
parentRef: string;
|
|
156
|
+
value?: any;
|
|
157
157
|
property?: any;
|
|
158
158
|
propertyType?: any;
|
|
159
159
|
isReadOnly?: boolean | undefined;
|
|
@@ -174,23 +174,23 @@ export declare const getDefaultData: () => {
|
|
|
174
174
|
hoverState: {
|
|
175
175
|
icon: import("../../interfaces/global").CMSIBIconInterface | undefined;
|
|
176
176
|
showIcon: {
|
|
177
|
-
value: null;
|
|
178
177
|
parentRef: string;
|
|
178
|
+
value?: any;
|
|
179
179
|
property?: any;
|
|
180
180
|
propertyType?: any;
|
|
181
181
|
isReadOnly?: boolean | undefined;
|
|
182
182
|
};
|
|
183
183
|
iconSize: {
|
|
184
|
-
value: null;
|
|
185
184
|
parentRef: string;
|
|
186
185
|
unit?: string | number | undefined;
|
|
186
|
+
value?: any;
|
|
187
187
|
property?: any;
|
|
188
188
|
propertyType?: any;
|
|
189
189
|
isReadOnly?: boolean | undefined;
|
|
190
190
|
};
|
|
191
191
|
iconColor: {
|
|
192
|
-
value: null;
|
|
193
192
|
parentRef: string;
|
|
193
|
+
value?: any;
|
|
194
194
|
property?: any;
|
|
195
195
|
propertyType?: any;
|
|
196
196
|
isReadOnly?: boolean | undefined;
|
|
@@ -2,6 +2,7 @@ import * as page from "./page";
|
|
|
2
2
|
import * as amountEstimator from "./amountEstimator";
|
|
3
3
|
import * as bulkVariantPicker from "./bulkVariantPicker";
|
|
4
4
|
import * as button from "./button";
|
|
5
|
+
import * as lastXOrdersButton from "./lastxordersbutton";
|
|
5
6
|
import * as code from "./code";
|
|
6
7
|
import * as staticText from "./staticText";
|
|
7
8
|
import * as common from "./common";
|
|
@@ -114,4 +115,4 @@ import * as requestForQuote from "./request-for-quote";
|
|
|
114
115
|
import * as categoryGroups from "./categoryGroups";
|
|
115
116
|
import * as embroidery from "./embroidery";
|
|
116
117
|
import * as stockStatus from "./stockStatus";
|
|
117
|
-
export { amountEstimator, bulkVariantPicker, button, code, staticText, 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, pastOrders, quotes, rfqs, lightBoxV2, allocations, search, layouter, layouterItem, categoryDetails, contactUs, login, resetPassword, breadcrumbs, iconLibrary, searchResultsHeading, itemStock, cartDetails, cartSummary, checkout, allocationDetails, line, tabsV2, tabContainer, marchandiserSets, createForm, quickLinks, addOrder, buyForWithTabs, buyForTabsContainer, toaster, spotlight, bundleDetails, productCustomizations, iconList, orderStatus, menuV2, menuItem, layouterPro, layouterProItem, filterResults, productSizeChart, userElements, badge, cartAttributes, languageMenu, loader, addProductsTab, quotaDetails, shippingPayments, coupon, productDescription, megaMenu, megaMenuContainer, simpleList, cartWrapper, optionBar, myTemplates, requestForQuote, categoryGroups, embroidery, stockStatus, page, };
|
|
118
|
+
export { amountEstimator, bulkVariantPicker, button, code, staticText, 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, pastOrders, quotes, rfqs, lightBoxV2, allocations, search, layouter, layouterItem, categoryDetails, contactUs, login, resetPassword, breadcrumbs, iconLibrary, searchResultsHeading, itemStock, cartDetails, cartSummary, checkout, allocationDetails, line, tabsV2, tabContainer, marchandiserSets, createForm, quickLinks, addOrder, buyForWithTabs, buyForTabsContainer, toaster, spotlight, bundleDetails, productCustomizations, iconList, orderStatus, menuV2, menuItem, layouterPro, layouterProItem, filterResults, productSizeChart, userElements, badge, cartAttributes, languageMenu, loader, addProductsTab, quotaDetails, shippingPayments, coupon, productDescription, megaMenu, megaMenuContainer, simpleList, cartWrapper, optionBar, myTemplates, requestForQuote, categoryGroups, embroidery, stockStatus, page, lastXOrdersButton, };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { CMSIBCommonInterface } from "../../interfaces/global";
|
|
2
|
+
import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
|
|
3
|
+
interface selfLayoutInterface {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}
|
|
6
|
+
export interface selfDesignInterface {
|
|
7
|
+
selectorKey: string;
|
|
8
|
+
widgetStyle?: {
|
|
9
|
+
selectorKey: string;
|
|
10
|
+
backgroundColor?: CMSIBCommonInterface;
|
|
11
|
+
borderColor?: CMSIBCommonInterface;
|
|
12
|
+
borderStyle?: CMSIBCommonInterface;
|
|
13
|
+
borderPerSlide?: CMSIBCommonInterface;
|
|
14
|
+
showBorder?: CMSIBCommonInterface;
|
|
15
|
+
showShadow?: CMSIBCommonInterface;
|
|
16
|
+
shadowColor?: CMSIBCommonInterface;
|
|
17
|
+
blur?: CMSIBCommonInterface;
|
|
18
|
+
spread?: CMSIBCommonInterface;
|
|
19
|
+
angle?: CMSIBCommonInterface;
|
|
20
|
+
borderRadius?: CMSIBCommonInterface;
|
|
21
|
+
};
|
|
22
|
+
divider: any;
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
}
|
|
25
|
+
export declare enum ButtonSelectorKeysEnum {
|
|
26
|
+
LAYOUT = "layout",
|
|
27
|
+
DESIGN = "design",
|
|
28
|
+
FAQ_WIDGET = "faqWidget",
|
|
29
|
+
COLLAPSED_ACCRORDION_ITEM = "collapsedAccordionItem",
|
|
30
|
+
EXPANDED_ACCRORDION_ITEM = "expandedAccordionItem",
|
|
31
|
+
DIVIDER = "divider"
|
|
32
|
+
}
|
|
33
|
+
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
34
|
+
export {};
|
|
@@ -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 {};
|
|
@@ -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 };
|