@sc-360-v2/storefront-cms-library 0.3.64 → 0.3.65
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/cart-details.scss +2 -0
- package/dist/empty-states.scss +1 -1
- package/dist/emtpy-templates.scss +1 -1
- package/dist/my-templates.scss +84 -0
- package/dist/option-bar.scss +459 -0
- package/dist/request-for-quotes.scss +84 -0
- package/dist/review-cart.scss +1 -1
- package/dist/types/builder/enums/data-connectors.d.ts +3 -1
- package/dist/types/builder/tools/element-edit/categoryGroups.d.ts +17 -0
- package/dist/types/builder/tools/element-edit/common.d.ts +1 -0
- package/dist/types/builder/tools/element-edit/index.d.ts +2 -1
- package/dist/types/builder/tools/element-edit/optionBar.d.ts +2 -1
- package/dist/types/website/constants/data-connectors.d.ts +11 -1
- package/dist/website.js +1 -1
- package/dist/widget.scss +3 -3
- package/package.json +1 -1
|
@@ -23,6 +23,7 @@ export interface CMSElementEditPopupLayoutInterface {
|
|
|
23
23
|
dropdownListItemPadding?: CMSIBSizeInterface;
|
|
24
24
|
dividerBetweenListItems?: CMSIBSizeInterface;
|
|
25
25
|
maxItemsToDisplay?: CMSIBSizeInterface;
|
|
26
|
+
dataConnector?: any;
|
|
26
27
|
}
|
|
27
28
|
export interface CMSElementEditPopupDesignInterface {
|
|
28
29
|
backgroundColor: CMSIBCommonInterface;
|
|
@@ -109,4 +109,5 @@ import * as cartWrapper from "./cart-wrapper";
|
|
|
109
109
|
import * as optionBar from "./optionBar";
|
|
110
110
|
import * as myTemplates from "./my-templates";
|
|
111
111
|
import * as requestForQuote from "./request-for-quote";
|
|
112
|
-
|
|
112
|
+
import * as categoryGroups from "./categoryGroups";
|
|
113
|
+
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, productDescription, megaMenu, megaMenuContainer, simpleList, cartWrapper, optionBar, myTemplates, requestForQuote, categoryGroups, };
|
|
@@ -17,7 +17,8 @@ export declare enum SelectorKeysEnum {
|
|
|
17
17
|
ALLOCATION_CARD = "allocationCard",
|
|
18
18
|
DIVIDER = "divider",
|
|
19
19
|
QUOTA_DETAILS = "quotaDetails",
|
|
20
|
-
DEFAULT_STATE = "defaultState"
|
|
20
|
+
DEFAULT_STATE = "defaultState",
|
|
21
|
+
DATA_CONNECTOR = "dataConnector"
|
|
21
22
|
}
|
|
22
23
|
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
23
24
|
export {};
|
|
@@ -52,6 +52,14 @@ export declare const dataConnectorApisData: {
|
|
|
52
52
|
url: string;
|
|
53
53
|
method: ApiMethods;
|
|
54
54
|
};
|
|
55
|
+
CATEGORY_GROUPS: {
|
|
56
|
+
url: string;
|
|
57
|
+
method: ApiMethods;
|
|
58
|
+
};
|
|
59
|
+
CATEGORIES_BY_GROUP_ID: {
|
|
60
|
+
url: string;
|
|
61
|
+
method: ApiMethods;
|
|
62
|
+
};
|
|
55
63
|
};
|
|
56
64
|
export declare enum DATA_CONNECTOR_ITEMS_LIST {
|
|
57
65
|
PRODUCT_BY_ID = "Product By Id",
|
|
@@ -69,5 +77,7 @@ export declare enum DATA_CONNECTOR_ITEMS_LIST {
|
|
|
69
77
|
BRANDS = "Brands",
|
|
70
78
|
BRAND_BY_ID = "Brand By Id",
|
|
71
79
|
PRODUCTS = "Products",
|
|
72
|
-
BUNDLES_BY_ID = "Bundles By Id"
|
|
80
|
+
BUNDLES_BY_ID = "Bundles By Id",
|
|
81
|
+
CATEGORY_GROUPS = "Category Groups",
|
|
82
|
+
CATEGORIES_BY_GROUP_ID = "Categories By Group Id"
|
|
73
83
|
}
|
package/dist/website.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["storefront-cms-library"]=e():t["storefront-cms-library"]=e()}(this,(()=>(()=>{"use strict";var t={d:(e,r)=>{for(var
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["storefront-cms-library"]=e():t["storefront-cms-library"]=e()}(this,(()=>(()=>{"use strict";var t={d:(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{dataConnectorContants:()=>o,ssrFunctions:()=>r});var r={};t.r(r),t.d(r,{createQueryStringForCollection:()=>i,parseThemeSettings:()=>_});var o={};function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=Array(e);r<e;r++)o[r]=t[r];return o}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var o,n,a,u,i=[],l=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(o=a.call(r)).done)&&(i.push(o.value),i.length!==e);l=!0);}catch(t){c=!0,n=t}finally{try{if(!l&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(c)throw n}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t){return Object.entries(t).filter((function(t){var e=u(t,2);return null!=(e[0],e[1])})).map((function(t){var e=u(t,2),r=e[0],o=e[1];return"".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(o))})).join("&")}t.r(o),t.d(o,{DATA_CONNECTOR_ITEMS_LIST:()=>T,dataConnectorApisData:()=>d});var l,c,E,_=function(t){var e=Object.assign({},t);return["layout","colors","typography","buttons","animations","loaders"].forEach((function(t){if("string"==typeof e[t]&&e[t].length>0)try{e[t]=JSON.parse(e[t])}catch(t){}else"object"===n(e[t])&&null!==e[t]&&(e[t]=JSON.stringify(e[t]))})),e};function S(t,e,r){return(e=function(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}!function(t){t.GET="GET",t.POST="POST",t.PUT="PUT",t.DELETE="DELETE"}(l||(l={})),function(t){t.PRODUST="PRODUST",t.CATEGORIES="CATEGORIES",t.BRANDS="BRANDS",t.PRODUCT_BY_ID="PRODUCT_BY_ID",t.CATEGORY_BY_ID="CATegory_BY_ID",t.BRAND_BY_ID="BRAND_BY_ID",t.SUB_CATEGORY="SUB_CATEGORY",t.MARCHANDISER_SETS="MARCHANDISER_SETS",t.BUNDLES="BUNDLES",t.BUNLES_BY_ID="BUNLES_BY_ID",t.BUNDLE_BY_TYPE="BUNDLE_BY_TYPE",t.PRODUCT_BUNDLE_DETAILS="PRODUCT_BUNDLE_DETAILS",t.CATEGORY_BUNDLE_DETAILS="CATEGORY_BUNDLE_DETAILS",t.CATEGORY_GROUPS="CATEGORY_GROUPS",t.CATEGORIES_BY_GROUP_ID="CATEGORIES_BY_GROUP_ID"}(c||(c={}));var T,d=(S(S(S(S(S(S(S(S(S(S(E={},c.PRODUST,{url:"/search/product/getall",method:l.POST}),c.PRODUCT_BY_ID,{url:"/api/pd/get",method:l.GET}),c.CATEGORIES,{url:"/search/category/getall",method:l.POST}),c.CATEGORY_BY_ID,{url:"/search/category/getbyid",method:l.GET}),c.BRANDS,{url:"/search/brand/getall",method:l.POST}),c.BRAND_BY_ID,{url:"/search/brand/getbyid",method:l.GET}),c.SUB_CATEGORY,{url:"/search/category/getsubcategories",method:l.GET}),c.MARCHANDISER_SETS,{url:"/ms/get",method:l.GET}),c.BUNDLES,{url:"/api/bnp/get-all",method:l.GET}),c.BUNLES_BY_ID,{url:"/api/bnp/get-product-bundle",method:l.GET}),S(S(S(S(S(E,c.BUNDLE_BY_TYPE,{url:"/api/bnp/get-bundles",method:l.POST}),c.PRODUCT_BUNDLE_DETAILS,{url:"/api/bnp/get-product-bundle",method:l.GET}),c.CATEGORY_BUNDLE_DETAILS,{url:"/api/bnp/get-category-bundle",method:l.GET}),c.CATEGORY_GROUPS,{url:"/search/category/get-category-groups",method:l.GET}),c.CATEGORIES_BY_GROUP_ID,{url:"/search/category/get-group-details",method:l.POST}));return function(t){t.PRODUCT_BY_ID="Product By Id",t.PRODUCTS_BY_BRAND="Products By Brand",t.PRODUCTS_BY_MERCHANDISER_SETS="Products By Merchandiser Sets",t.PRODUCTS_BY_CATEGORY="Products By Category",t.CATEGORIES="Categories",t.CATEGORY_BY_ID="Category By Id",t.BUNDLES="Bundles",t.BUNDLE_BY_ID="Bundle By Id",t.BUNDLE_DETAILS="Bundle Details",t.PRODUCT_BUNDLE_BY_KEY="Product Bundle By Key",t.CATEGORY_BUNDLE_BY_KEY="Category Bundle By Key",t.SUB_CATEGORIES="Subcategories",t.BRANDS="Brands",t.BRAND_BY_ID="Brand By Id",t.PRODUCTS="Products",t.BUNDLES_BY_ID="Bundles By Id",t.CATEGORY_GROUPS="Category Groups",t.CATEGORIES_BY_GROUP_ID="Categories By Group Id"}(T||(T={})),e})()));
|
package/dist/widget.scss
CHANGED
|
@@ -127,6 +127,6 @@
|
|
|
127
127
|
@use "./mega-menu-container.scss";
|
|
128
128
|
@use "./simple-list.scss";
|
|
129
129
|
@use "./cart-wrapper.scss";
|
|
130
|
-
@use "./
|
|
131
|
-
@use "./
|
|
132
|
-
@use "./
|
|
130
|
+
@use "./option-bar.scss";
|
|
131
|
+
@use "./my-templates.scss";
|
|
132
|
+
@use "./request-for-quotes.scss";
|