@sc-360-v2/storefront-cms-library 0.2.80 → 0.2.81

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.
@@ -74,4 +74,7 @@ export interface CMSSectionInterface {
74
74
  editedStyles?: Record<string, any>;
75
75
  controls?: Record<string, any>;
76
76
  sectionID?: any;
77
+ isHeaderSection?: boolean;
78
+ isFooterSection?: boolean;
79
+ isGlobalSection?: boolean;
77
80
  }
@@ -0,0 +1,30 @@
1
+ import { CommonStyleProperties } from "../../../global/style-properties";
2
+ import { CMSHTMLAttributes } from "../../../global/attributes";
3
+ import { AlignSelfValue, BoxSizingValue, GridAreaValue, HeightValue, JustifySelfValue, MarginValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue, GlobalImageAttributes, CommonBuilderAttributes } from "../../../global/types";
4
+ import { BuilderAttributes, CMSElementInterface } from "../common";
5
+ export interface ToasterStyleProperties {
6
+ minHeight?: MinHeightValue;
7
+ height?: HeightValue;
8
+ minWidth?: MinWidthValue;
9
+ maxWidth?: MaxWidthValue;
10
+ maxHeight?: MaxHeightValue;
11
+ boxSizing?: BoxSizingValue;
12
+ padding?: PaddingValue;
13
+ marginLeft?: MarginValue;
14
+ marginTop?: MarginValue;
15
+ marginBottom?: MarginValue;
16
+ marginRight?: MarginValue;
17
+ justifySelf?: JustifySelfValue;
18
+ alignSelf?: AlignSelfValue;
19
+ gridArea?: GridAreaValue;
20
+ }
21
+ export declare const getDefaultToasterStyles: () => ToasterStyleProperties;
22
+ export interface CMSToasterInterface extends Omit<CMSElementInterface, "attributes"> {
23
+ attributes: {
24
+ HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
25
+ BUILDER: Pick<BuilderAttributes, CommonBuilderAttributes>;
26
+ CUSTOM: any;
27
+ };
28
+ styles: ToasterStyleProperties;
29
+ childrenStyles?: CommonStyleProperties;
30
+ }
@@ -37,8 +37,6 @@ export declare enum CMSToolIdTypes {
37
37
  containerWrapper = "cms-container-wrapper",
38
38
  tabsWrapperV2 = "cms-tabs-v2-wrapper",
39
39
  tabsContainerWrapperV2 = "cms-tabs-container-wrapper",
40
- buyForWithTabsWrapper = "cms-buy-for-with-tabs-wrapper",
41
- buyForTabsContainerWrapper = "cms-buy-for-tabs-container-wrapper",
42
40
  stackWrapper = "cms-stack-wrapper",
43
41
  cmsSubElementLayer = "cms-sub-element-layer",
44
42
  editorHeader = "cms-editor-header",
@@ -120,7 +118,6 @@ export declare enum CMSElementSelectors {
120
118
  categoryWidgetElement = "div[data-element-type='categoryWidget']",
121
119
  tabsElement = "div[data-element-type='tabs']",
122
120
  tabsV2Element = "div[data-element-type='tabs-v2']",
123
- buyForWithTabsElement = "div[data-element-type='buyForWithTabs']",
124
121
  imageHotspot = "div[data-element-type='imageHotspot']",
125
122
  gridSwapBtn = "div[data-cms-tool='cms-grid-swap-btn']",
126
123
  lightBox = "#cms_lt_bx_mn",
@@ -288,7 +285,6 @@ export declare const CMSElementsListEnum: {
288
285
  ITEM_STOCK: string;
289
286
  CART_DETAILS: string;
290
287
  CART_SUMMARY: string;
291
- CHECKOUT: string;
292
288
  ALLOCATION_DETAILS: string;
293
289
  LINE: string;
294
290
  TABS_V2: string;
@@ -298,6 +294,7 @@ export declare const CMSElementsListEnum: {
298
294
  ADD_ORDER: string;
299
295
  BUY_FOR_WITH_TABS: string;
300
296
  BUY_FOR_TABS_CONTENT_CONTAINER: string;
297
+ TOASTER: string;
301
298
  };
302
299
  export declare enum CMSResponsiveModeEnums {
303
300
  DESKTOP = "desktop",
@@ -353,7 +350,8 @@ export declare enum CMSCustomEventsListEnums {
353
350
  UOMSELECTOR = "uomSelectorV1",
354
351
  TEXTELEMENTCODEVIEW = "textElementCodeView",
355
352
  PRODUCT_DETAILS_STATE = "productDetailsState",
356
- IMAGE_CROP = "imageCrop"
353
+ IMAGE_CROP = "imageCrop",
354
+ IMAGE_CROP_TEMP_DATA = "imageCropTempData"
357
355
  }
358
356
  export declare enum FlexAppVersionEnums {
359
357
  NESTEDJSON = 1,
@@ -365,3 +363,16 @@ export declare enum FlexDefaultValues {
365
363
  export declare enum SkeletonItems {
366
364
  PLACEHOLDER_IMAGE = "/00000000-0000-0000-0000-000000000000/development/img-placeholder.jpg"
367
365
  }
366
+ export declare enum SectionTypeID {
367
+ Header = 1,
368
+ Footer = 2,
369
+ PageSection = 3,
370
+ MarketingBanner = 4,
371
+ ProductsForSale = 5,
372
+ Categories = 6,
373
+ NewArrivalProducts = 7,
374
+ Testimonials = 8,
375
+ ContactUs = 9,
376
+ NewsLetter = 10,
377
+ LightBox = 11
378
+ }
@@ -67,4 +67,5 @@ import * as quickLinksSchema from "./elements/quick-links/index";
67
67
  import * as addOrderSchema from "./elements/add-order/index";
68
68
  import * as buyForTabsSchema from "./elements/buy-for-tab/index";
69
69
  import * as buyForTabsContainerSchema from "./elements/buy-for-tab-container/index";
70
- 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, searchSchema, layouterSchema, layouterItemSchema, categoryDetailsSchema, contactUsSchema, loginSchema, createFormSchema, resetPasswordSchema, searchResultsHeadingSchema, itemStockSchema, lineItemSchema, tabsV2Schema, tabsContainerSchema, marchandiserSetsSchema, formBuilder, quickLinksSchema, addOrderSchema, buyForTabsSchema, buyForTabsContainerSchema, checkoutSchema, };
70
+ import * as toasterSchema from "./elements/toaster/index";
71
+ 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, searchSchema, layouterSchema, layouterItemSchema, categoryDetailsSchema, contactUsSchema, loginSchema, createFormSchema, resetPasswordSchema, searchResultsHeadingSchema, itemStockSchema, lineItemSchema, tabsV2Schema, tabsContainerSchema, marchandiserSetsSchema, formBuilder, quickLinksSchema, addOrderSchema, buyForTabsSchema, buyForTabsContainerSchema, checkoutSchema, toasterSchema, };
@@ -81,4 +81,5 @@ import * as quickLinks from "./quickLinks";
81
81
  import * as addOrder from "./addOrder";
82
82
  import * as buyForWithTabs from "./buyForWithTab";
83
83
  import * as buyForTabsContainer from "./buyForTabContainer";
84
- 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, };
84
+ import * as toaster from "./toaster";
85
+ 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, };
@@ -97,6 +97,18 @@ export declare const getDefaultData: () => {
97
97
  value: string;
98
98
  propertyType: CMSElementEditTypes;
99
99
  };
100
+ gapBetweenItems: {
101
+ value: string;
102
+ unit: number;
103
+ property: string;
104
+ propertyType: CMSElementEditTypes;
105
+ };
106
+ drodownWidth: {
107
+ value: string;
108
+ unit: number;
109
+ property: string;
110
+ propertyType: CMSElementEditTypes;
111
+ };
100
112
  positionType: CMSIBCommonInterface | undefined;
101
113
  pinTo: CMSIBCommonInterface | undefined;
102
114
  };
@@ -0,0 +1,38 @@
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
+ position: CMSIBCommonInterface;
8
+ itemSpacing: CMSIBCommonInterface;
9
+ itemsPlacement: CMSIBCommonInterface;
10
+ itemsDisplayDirection: CMSIBCommonInterface;
11
+ showIcon: CMSIBCommonInterface;
12
+ showText: CMSIBCommonInterface;
13
+ showButton: CMSIBCommonInterface;
14
+ showCloseIcon: CMSIBCommonInterface;
15
+ showAnimation: CMSIBCommonInterface;
16
+ autocloseDelayInms: CMSIBCommonInterface;
17
+ transition: CMSIBCommonInterface;
18
+ progress: CMSIBCommonInterface;
19
+ limit: CMSIBCommonInterface;
20
+ hideProgressbar: CMSIBCommonInterface;
21
+ closeOnClick: CMSIBCommonInterface;
22
+ pauseToastWhenWindowLosesFocus: CMSIBCommonInterface;
23
+ disableAutoClose: CMSIBCommonInterface;
24
+ newestOnTop: CMSIBCommonInterface;
25
+ pauseDelayOnHover: CMSIBCommonInterface;
26
+ rightToLeftLayout: CMSIBCommonInterface;
27
+ }
28
+ export interface selfDesignInterface {
29
+ selectorKey: string;
30
+ }
31
+ export declare enum SelectorKeysEnum {
32
+ LAYOUT = "layout",
33
+ DESIGN = "design",
34
+ CONTENT = "content",
35
+ DATA_CONNECTOR = "dataConnector"
36
+ }
37
+ export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
38
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sc-360-v2/storefront-cms-library",
3
- "version": "0.2.80",
3
+ "version": "0.2.81",
4
4
  "main": "/dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {