@sc-360-v2/storefront-cms-library 0.2.34 → 0.2.35

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.
Files changed (38) hide show
  1. package/README.md +12 -12
  2. package/dist/builder.js +1 -1
  3. package/dist/button.scss +11 -11
  4. package/dist/code-temp.scss +18 -24
  5. package/dist/common-element.scss +35 -0
  6. package/dist/container.scss +4 -4
  7. package/dist/custom-fonts.scss +59 -0
  8. package/dist/faq.scss +1 -1
  9. package/dist/filters.scss +445 -0
  10. package/dist/functions.scss +148 -0
  11. package/dist/globals.scss +94 -94
  12. package/dist/grid.scss +10 -4
  13. package/dist/hotspot.scss +224 -82
  14. package/dist/icons.js +1 -1
  15. package/dist/image-temp.scss +6 -3
  16. package/dist/index.js +1 -1
  17. package/dist/past-orders.scss +112 -0
  18. package/dist/product-basic-elements.scss +2 -2
  19. package/dist/quotes.scss +112 -0
  20. package/dist/repeater.scss +1 -0
  21. package/dist/rfqs.scss +112 -0
  22. package/dist/section.scss +51 -16
  23. package/dist/sort.scss +81 -0
  24. package/dist/stack.scss +36 -3
  25. package/dist/text-temp.scss +1 -0
  26. package/dist/types/builder/elements/button/index.d.ts +1 -0
  27. package/dist/types/builder/elements/light-box-v2/index.d.ts +45 -0
  28. package/dist/types/builder/enums/index.d.ts +14 -3
  29. package/dist/types/builder/index.d.ts +2 -1
  30. package/dist/types/builder/interfaces/global.d.ts +7 -1
  31. package/dist/types/builder/tools/element-edit/allocations.d.ts +28 -0
  32. package/dist/types/builder/tools/element-edit/index.d.ts +4 -1
  33. package/dist/types/builder/tools/element-edit/lightBoxV2.d.ts +23 -0
  34. package/dist/types/builder/tools/element-edit/product-image.d.ts +2 -2
  35. package/dist/types/builder/tools/element-edit/staticText.d.ts +16 -0
  36. package/dist/variant-picker.scss +1 -1
  37. package/dist/widget.scss +6 -0
  38. package/package.json +1 -1
@@ -53,7 +53,9 @@ export declare enum CMSToolIdTypes {
53
53
  subCategoryWrapper = "cms-sub-category-wrapper",
54
54
  categoryWidgetWrapper = "cms-category-widget-wrapper",
55
55
  tabsWrapper = "cms-tabs-wrapper",
56
- gridSwapBtn = "cms-grid-swap-btn"
56
+ gridSwapBtn = "cms-grid-swap-btn",
57
+ lightBox = "cms_lt_bx_mn",
58
+ lightBoxV2Wrapper = "cms-light-box-wrapper"
57
59
  }
58
60
  export declare enum CMSElementSelectors {
59
61
  iframeSelector = "iframe[data-title='iframe__playground']",
@@ -108,7 +110,8 @@ export declare enum CMSElementSelectors {
108
110
  categoryWidgetElement = "div[data-element-type='categoryWidget']",
109
111
  tabsElement = "div[data-element-type='tabs']",
110
112
  imageHotspot = "div[data-element-type='imageHotspot']",
111
- gridSwapBtn = "div[data-cms-tool='cms-grid-swap-btn']"
113
+ gridSwapBtn = "div[data-cms-tool='cms-grid-swap-btn']",
114
+ lightBox = "#cms_lt_bx_mn"
112
115
  }
113
116
  export declare enum CMSToolAttributes {
114
117
  id = "data-cms-tool",
@@ -149,7 +152,8 @@ export declare enum CMSCSSUnitTypesEnums {
149
152
  REM = 2,
150
153
  EM = 3,
151
154
  PERCENTAGE = 4,
152
- CUSTOM = 5
155
+ CUSTOM = 5,
156
+ MS = 6
153
157
  }
154
158
  export declare enum CMSComponentImportTypeEnum {
155
159
  BUILDER = 1,
@@ -166,6 +170,7 @@ export declare const CMSElementsListEnum: {
166
170
  PAGE: string;
167
171
  SECTION: string;
168
172
  CODE: string;
173
+ STATIC_TEXT: string;
169
174
  IMAGE: string;
170
175
  GRID: string;
171
176
  TABS: string;
@@ -237,6 +242,8 @@ export declare const CMSElementsListEnum: {
237
242
  PAST_ORDERS: string;
238
243
  QUOTES: string;
239
244
  RFQS: string;
245
+ LIGHTBOXV2: string;
246
+ ALLOCATIONS: string;
240
247
  };
241
248
  export declare enum CMSResponsiveModeEnums {
242
249
  DESKTOP = "desktop",
@@ -287,3 +294,7 @@ export declare enum CMSCustomEventServiceTypesEnum {
287
294
  UPSERT = 1,
288
295
  GET = 2
289
296
  }
297
+ export declare enum CMSCustomEventsListEnums {
298
+ LIGHTBOX = "customLightBoxV1",
299
+ UOMSELECTOR = "uomSelectorV1"
300
+ }
@@ -45,5 +45,6 @@ import * as repeaterSchema from "./elements/repeater/index";
45
45
  import * as brandSchema from "./elements/brand/index";
46
46
  import * as brandImageSchema from "./elements/brand-image/index";
47
47
  import * as bundleSchema from "./elements/bundle/index";
48
+ import * as lightBoxV2Schema from "./elements/light-box-v2/index";
48
49
  import commonFunctions from "./utilities/global";
49
- export { ElementEditSchema, amountEstimatorSchema, bulkVariantPickerSchema, buttonSchema, cmsTypes, codeSchema, commonFunctions, containerSchema, countdownSchema, embedSchema, enums, faqSchema, gallerySliderSchema, gridSchema, imageHotspotSchema, imageSchema, interfaces, mapSchema, paymentMethodsSchema, pickupLocationsSchema, priceSchema, productActionsSchema, productHighlightsSchema, productImageSchema, productInventorySchema, productPromotionsSchema, quantitySelectorSchema, scrollSchema, sectionSchema, shippingEstimatorSchema, socialIconsSchema, stackSchema, storeLocationsSchema, tabSchema, tableSchema, textSchema, uomSelectorSchema, variantPickerSchema, videoSChema, volumePricingSchema, lightboxSchema, cartSchema, profileSchema, productSchema, repeaterSchema, brandSchema, bundleSchema, brandImageSchema, };
50
+ export { ElementEditSchema, amountEstimatorSchema, bulkVariantPickerSchema, buttonSchema, cmsTypes, codeSchema, commonFunctions, containerSchema, countdownSchema, embedSchema, enums, faqSchema, gallerySliderSchema, gridSchema, imageHotspotSchema, imageSchema, interfaces, mapSchema, paymentMethodsSchema, pickupLocationsSchema, priceSchema, productActionsSchema, productHighlightsSchema, productImageSchema, productInventorySchema, productPromotionsSchema, quantitySelectorSchema, scrollSchema, sectionSchema, shippingEstimatorSchema, socialIconsSchema, stackSchema, storeLocationsSchema, tabSchema, tableSchema, textSchema, uomSelectorSchema, variantPickerSchema, videoSChema, volumePricingSchema, lightboxSchema, cartSchema, profileSchema, productSchema, repeaterSchema, brandSchema, bundleSchema, brandImageSchema, lightBoxV2Schema, };
@@ -1,4 +1,5 @@
1
- import { CMSDeviceVisibilityHiddenTypeEnums, CMSElementEditTypes, CMSCustomEventServiceTypesEnum } from "../enums";
1
+ import { LightBoxV2ElementInterface } from "../elements/light-box-v2";
2
+ import { CMSDeviceVisibilityHiddenTypeEnums, CMSElementEditTypes, CMSCustomEventServiceTypesEnum, CMSComponentImportTypeEnum } from "../enums";
2
3
  import "./cms-tools";
3
4
  export interface FontSizeValues {
4
5
  px: number[];
@@ -108,3 +109,8 @@ export interface CMSCustomEventsServiceInterface {
108
109
  value: any;
109
110
  serviceType: CMSCustomEventServiceTypesEnum;
110
111
  }
112
+ export interface CMSLightBoxCustomEventInterface {
113
+ show: boolean;
114
+ displayType?: CMSComponentImportTypeEnum;
115
+ item?: LightBoxV2ElementInterface;
116
+ }
@@ -0,0 +1,28 @@
1
+ import { CMSIBCommonInterface } from "../../interfaces/global";
2
+ import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
3
+ export interface SectionEditPopupInterface extends CMSElementEditPopupInterface {
4
+ }
5
+ interface selfLayoutInterface {
6
+ selectorKey: string;
7
+ displayStyle: CMSIBCommonInterface;
8
+ rowsToDisplay: CMSIBCommonInterface;
9
+ spacingBetweenItems: CMSIBCommonInterface;
10
+ overflowControl: CMSIBCommonInterface;
11
+ numOfItemsToLoad: CMSIBCommonInterface;
12
+ maxItemsToDisplay: CMSIBCommonInterface;
13
+ sliderControl: CMSIBCommonInterface;
14
+ controlPosition: CMSIBCommonInterface;
15
+ loopItems: CMSIBCommonInterface;
16
+ displayScrollbar1: CMSIBCommonInterface;
17
+ autoplay: CMSIBCommonInterface;
18
+ }
19
+ interface selfDesignInterface {
20
+ selectorKey: string;
21
+ }
22
+ export declare enum SelectorKeysEnum {
23
+ LAYOUT = "layout",
24
+ CONTENT = "content",
25
+ DESIGN = "design"
26
+ }
27
+ export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
28
+ export {};
@@ -2,6 +2,7 @@ import * as amountEstimator from "./amountEstimator";
2
2
  import * as bulkVariantPicker from "./bulkVariantPicker";
3
3
  import * as button from "./button";
4
4
  import * as code from "./code";
5
+ import * as staticText from "./staticText";
5
6
  import * as common from "./common";
6
7
  import * as container from "./container";
7
8
  import * as countdown from "./countdown";
@@ -54,4 +55,6 @@ import * as sort from "./sort";
54
55
  import * as pastOrders from "./pastOrders";
55
56
  import * as quotes from "./quotes";
56
57
  import * as rfqs from "./rfqs";
57
- 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, pastOrders, quotes, rfqs, };
58
+ import * as lightBoxV2 from "./lightBoxV2";
59
+ import * as allocations from "./allocations";
60
+ 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, };
@@ -0,0 +1,23 @@
1
+ import { CMSIBCommonInterface, CMSIBSizeInterface } from "../../interfaces/global";
2
+ import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
3
+ interface selfLayoutInterface {
4
+ selectorKey: string;
5
+ automaticallyOpenLightbox: CMSIBCommonInterface;
6
+ selectPage: Pick<CMSIBCommonInterface, "property" | "propertyType"> & {
7
+ value: any;
8
+ };
9
+ delay: CMSIBSizeInterface;
10
+ closeOnXIcon: CMSIBCommonInterface;
11
+ closeOnClickingBackground: CMSIBCommonInterface;
12
+ }
13
+ export interface selfDesignInterface {
14
+ selectorKey: string;
15
+ backgroundOverlay: CMSIBCommonInterface;
16
+ }
17
+ export declare enum selfSelectorKeysEnum {
18
+ LAYOUT = "layout",
19
+ DESIGN = "design",
20
+ DATA_CONNECTOR = "dataConnector"
21
+ }
22
+ export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
23
+ export {};
@@ -108,7 +108,6 @@ export interface selfDesignInterface {
108
108
  export declare enum SelectorKeysEnum {
109
109
  LAYOUT = "layout",
110
110
  DESIGN = "design",
111
- DATA_CONNECTOR = "dataConnector",
112
111
  GALLERY_WIDGET_STYLE = "gallery-widget-style",
113
112
  GALLERY_LAYOUT = "gallery-layout",
114
113
  ITEM_STYLE = "item-style",
@@ -116,7 +115,8 @@ export declare enum SelectorKeysEnum {
116
115
  PAGINATION_DOTS = "pagination-dots",
117
116
  PAGINATION_LINE = "pagination-lines",
118
117
  MAP_WIDGET_TEXT_CONTAINER_DESIGN = "galleryWidgetTextContainerDesign",
119
- MAP_WIDGET_TEXT_CONTAINER_LAYOUT = "galleryWidgetTextContainerLayout"
118
+ MAP_WIDGET_TEXT_CONTAINER_LAYOUT = "galleryWidgetTextContainerLayout",
119
+ DATA_CONNECTOR = "dataConnector"
120
120
  }
121
121
  export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
122
122
  export {};
@@ -0,0 +1,16 @@
1
+ import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
2
+ export interface codeEditPopupInterface extends CMSElementEditPopupInterface {
3
+ }
4
+ interface selfLayoutInterface {
5
+ selectorKey: string;
6
+ textData: any;
7
+ }
8
+ export interface selfDesignInterface {
9
+ selectorKey: string;
10
+ }
11
+ export declare enum codeSelectorKeysEnum {
12
+ LAYOUT = "layout",
13
+ DESIGN = "design"
14
+ }
15
+ export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
16
+ export {};
@@ -392,7 +392,7 @@
392
392
  align-items: center;
393
393
  justify-content: center;
394
394
  gap: 8px;
395
- input[type="text"] {
395
+ input[type="number"] {
396
396
  width: 70px !important;
397
397
  border: 1px solid var(--_gray-300) !important;
398
398
  padding-inline: 10px;
package/dist/widget.scss CHANGED
@@ -1,6 +1,7 @@
1
1
  // Note: please import only widget related css only in this
2
2
  @use "./section.scss";
3
3
  @use "./grid.scss";
4
+ @use "./common-element.scss";
4
5
  @use "./container.scss";
5
6
  @use "./stack.scss";
6
7
  @use "./repeater.scss";
@@ -52,3 +53,8 @@
52
53
  @use "./sub-category.scss";
53
54
  @use "./categoryWidget.scss";
54
55
  @use "./filters.scss";
56
+ @use "./sort.scss";
57
+ @use "./custom-fonts.scss";
58
+ @use "./past-orders.scss";
59
+ @use "./quotes.scss";
60
+ @use "./rfqs.scss";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sc-360-v2/storefront-cms-library",
3
- "version": "0.2.34",
3
+ "version": "0.2.35",
4
4
  "main": "/dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {