@sc-360-v2/storefront-cms-library 0.2.96 → 0.2.97

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.
@@ -0,0 +1,47 @@
1
+ import { CommonStyleProperties } from "../../../global/style-properties";
2
+ import { CMSHTMLAttributes } from "../../../global/attributes";
3
+ import { AlignSelfValue, BoxSizingValue, GridAreaValue, HeightValue, ResponsiveBehaviourTypes, JustifySelfValue, MarginValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
4
+ import { BuilderAttributes } from "../common";
5
+ export interface MenuItemStyleProperties extends CommonStyleProperties {
6
+ minHeight?: MinHeightValue;
7
+ height?: HeightValue;
8
+ minWidth?: MinWidthValue;
9
+ maxWidth?: MaxWidthValue;
10
+ maxHeight?: MaxHeightValue;
11
+ gridArea?: GridAreaValue;
12
+ boxSizing?: BoxSizingValue;
13
+ padding?: PaddingValue;
14
+ marginLeft?: MarginValue;
15
+ marginTop?: MarginValue;
16
+ marginBottom?: MarginValue;
17
+ marginRight?: MarginValue;
18
+ justifySelf?: JustifySelfValue;
19
+ alignSelf?: AlignSelfValue;
20
+ }
21
+ export declare const getDefaultStyles: () => MenuItemStyleProperties;
22
+ export interface MenuItemElementAttributes extends CMSHTMLAttributes {
23
+ role?: string;
24
+ ariaLabel?: string;
25
+ ariaDescribedBy?: string;
26
+ id?: string;
27
+ className?: string;
28
+ lang?: string;
29
+ dataMeta?: string;
30
+ }
31
+ export interface CMSMenuItemInterface {
32
+ id?: string | number;
33
+ uniqueKey?: string | number;
34
+ children: any;
35
+ childIds: any[];
36
+ parentKey?: any;
37
+ childIdsV2?: any[];
38
+ attributes?: {
39
+ BUILDER?: Pick<BuilderAttributes, "dataDivType" | "dataType" | "dataElementType" | "dataDropElement">;
40
+ HTML?: MenuItemElementAttributes;
41
+ CUSTOM?: any;
42
+ };
43
+ styles?: MenuItemStyleProperties;
44
+ editedStyles?: CommonStyleProperties;
45
+ responsiveBehaviour: ResponsiveBehaviourTypes;
46
+ previewImage?: string;
47
+ }
@@ -0,0 +1,47 @@
1
+ import { CommonStyleProperties } from "../../../global/style-properties";
2
+ import { CMSHTMLAttributes } from "../../../global/attributes";
3
+ import { AlignSelfValue, BoxSizingValue, GridAreaValue, HeightValue, ResponsiveBehaviourTypes, JustifySelfValue, MarginValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
4
+ import { BuilderAttributes } from "../common";
5
+ export interface MenuV2StyleProperties extends CommonStyleProperties {
6
+ minHeight?: MinHeightValue;
7
+ height?: HeightValue;
8
+ minWidth?: MinWidthValue;
9
+ maxWidth?: MaxWidthValue;
10
+ maxHeight?: MaxHeightValue;
11
+ gridArea?: GridAreaValue;
12
+ boxSizing?: BoxSizingValue;
13
+ padding?: PaddingValue;
14
+ marginLeft?: MarginValue;
15
+ marginTop?: MarginValue;
16
+ marginBottom?: MarginValue;
17
+ marginRight?: MarginValue;
18
+ justifySelf?: JustifySelfValue;
19
+ alignSelf?: AlignSelfValue;
20
+ }
21
+ export declare const getDefaultStyles: () => MenuV2StyleProperties;
22
+ export interface MenuV2ElementAttributes extends CMSHTMLAttributes {
23
+ role?: string;
24
+ ariaLabel?: string;
25
+ ariaDescribedBy?: string;
26
+ id?: string;
27
+ className?: string;
28
+ lang?: string;
29
+ dataMeta?: string;
30
+ }
31
+ export interface CMSMenuV2Interface {
32
+ id?: string | number;
33
+ uniqueKey?: string | number;
34
+ children: any;
35
+ childIds: any[];
36
+ parentKey?: any;
37
+ childIdsV2?: any[];
38
+ attributes?: {
39
+ BUILDER?: Pick<BuilderAttributes, "dataDivType" | "dataType" | "dataElementType" | "dataDropElement">;
40
+ HTML?: MenuV2ElementAttributes;
41
+ CUSTOM?: any;
42
+ };
43
+ styles?: MenuV2StyleProperties;
44
+ editedStyles?: CommonStyleProperties;
45
+ responsiveBehaviour: ResponsiveBehaviourTypes;
46
+ previewImage?: string;
47
+ }
@@ -66,7 +66,9 @@ export declare enum CMSToolIdTypes {
66
66
  lightBoxV2Wrapper = "cms-light-box-wrapper",
67
67
  marchandiserSetsWrapper = "cms-marchandiser-sets-wrapper",
68
68
  spotlightWrapper = "cms-spotlight-wrapper",
69
- TEXTELEMENTDOBLECLICK = "data-cms-tt-ee-dbl-clkd"
69
+ TEXTELEMENTDOBLECLICK = "data-cms-tt-ee-dbl-clkd",
70
+ menuWrapperV2 = "cms-menu-v2-wrapper",
71
+ menuItemWrapper = "cms-menu-item-wrapper"
70
72
  }
71
73
  export declare enum CMSElementSelectors {
72
74
  iframeSelector = "iframe[data-title='iframe__playground']",
@@ -72,4 +72,6 @@ import * as toasterSchema from "./elements/toaster/index";
72
72
  import * as spotlightSchema from "./elements/spotlight";
73
73
  import * as productCustomizationsSchema from "./elements/product-customizations/index";
74
74
  import * as iconListSchema from "./elements/icon-list/index";
75
- 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, spotlightSchema, productCustomizationsSchema, iconListSchema, orderStatusSchema, };
75
+ import * as menuV2Schema from "./elements/menu-v2/index";
76
+ import * as menuItemSchema from "./elements/menu-item/index";
77
+ 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, spotlightSchema, productCustomizationsSchema, iconListSchema, orderStatusSchema, menuV2Schema, menuItemSchema, };
@@ -87,4 +87,6 @@ import * as toaster from "./toaster";
87
87
  import * as spotlight from "./spotlight";
88
88
  import * as productCustomizations from "./productCustomizations";
89
89
  import * as iconList from "./icon-list";
90
- 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, };
90
+ import * as menuV2 from "./menu_v2";
91
+ import * as menuItem from "./menu-item";
92
+ 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, };
@@ -0,0 +1,13 @@
1
+ import { CMSIBCommonInterface, PaddingProps } from "../../interfaces/global";
2
+ import { ShowShubMenuType } from "../../../global/types";
3
+ import { CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
4
+ interface selfLayoutInterface {
5
+ selectorKey: string;
6
+ showSubMenu: CMSIBCommonInterface;
7
+ showSubMenuStyle: Pick<CMSIBCommonInterface, "property" | "propertyType"> & {
8
+ value: ShowShubMenuType;
9
+ };
10
+ itemGap: Pick<CMSIBCommonInterface, "property" | "propertyType"> & PaddingProps;
11
+ }
12
+ export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface>;
13
+ export {};
@@ -0,0 +1,37 @@
1
+ import { CMSIBCommonInterface, PaddingProps } from "../../interfaces/global";
2
+ import { AlignItemsValue, JustifyContentValue, StackDirectionType } from "../../../global/types";
3
+ import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
4
+ interface selfLayoutInterface {
5
+ selectorKey: string;
6
+ direction: Pick<CMSIBCommonInterface, "property" | "propertyType"> & {
7
+ value: StackDirectionType;
8
+ };
9
+ itemGap: Pick<CMSIBCommonInterface, "property" | "propertyType"> & PaddingProps;
10
+ justifyContent: Pick<CMSIBCommonInterface, "property" | "propertyType"> & {
11
+ value: JustifyContentValue;
12
+ };
13
+ alignItems: Pick<CMSIBCommonInterface, "property" | "propertyType"> & {
14
+ value: AlignItemsValue;
15
+ };
16
+ }
17
+ declare enum SelectorKeysEnum {
18
+ LAYOUT = "layout",
19
+ CONTENT = "content",
20
+ DESIGN = "design",
21
+ DEFAULT_STATE = "defaultState",
22
+ HOVER_STATE = "hoverState",
23
+ MENU_CONTAINER = "menuContainer",
24
+ MENU_ITEM_STYLE = "menuItemStyle",
25
+ SUB_MENU_CONTAINER = "subMenuContainer",
26
+ SUBMENU_ITEM_STYLE = "subMenuItemStyle",
27
+ SELECTED_STATE = "selected"
28
+ }
29
+ export interface selfDesignInterface {
30
+ selectorKey: string;
31
+ [SelectorKeysEnum.MENU_CONTAINER]: any;
32
+ [SelectorKeysEnum.MENU_ITEM_STYLE]: any;
33
+ [SelectorKeysEnum.SUB_MENU_CONTAINER]: any;
34
+ [SelectorKeysEnum.SUBMENU_ITEM_STYLE]: any;
35
+ }
36
+ export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
37
+ export {};
@@ -6,6 +6,7 @@ interface selfLayoutInterface {
6
6
  showSearchText: CMSIBCommonInterface;
7
7
  searchText: CMSIBCommonInterface;
8
8
  showNoOfItems: CMSIBCommonInterface;
9
+ searchPlaceholderText: CMSIBCommonInterface;
9
10
  }
10
11
  export interface selfDesignInterface {
11
12
  selectorKey: string;
@@ -33,6 +33,7 @@ export type GlobalVideoAttributes = "src" | "poster" | "controls" | "autoplay" |
33
33
  export type CommonBuilderAttributes = "dataDivType" | "dataType" | "dataElementType" | "dataWidgetType" | "dataElementSubChild";
34
34
  export type GlobalTableAttributes = "cellPadding" | "cellSpacing" | "border" | "width" | "height" | "align" | "bgColor" | "frame" | "headers" | "rows" | "rules";
35
35
  export type StackDirectionType = "horizontal" | "vertical";
36
+ export type ShowShubMenuType = "On Hover" | "On Click";
36
37
  export type ObjectFitValue = "fill" | "contain" | "cover" | "none" | "scale-down" | string;
37
38
  export type ObjectPositionValue = string;
38
39
  export type RepeaterDisplayStyleType = "grid" | "list" | "slider" | "cards";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sc-360-v2/storefront-cms-library",
3
- "version": "0.2.96",
3
+ "version": "0.2.97",
4
4
  "main": "/dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {