@sc-360-v2/storefront-cms-library 0.5.63 → 0.5.64
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/types/builder/elements/bundle-categories/index.d.ts +35 -0
- package/dist/types/builder/index.d.ts +2 -1
- package/dist/types/builder/tools/element-edit/bundleCategories.d.ts +30 -0
- package/dist/types/builder/tools/element-edit/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { CommonStyleProperties } from "../../../global/style-properties";
|
|
2
|
+
import { CMSHTMLAttributes } from "../../../global/attributes";
|
|
3
|
+
import { AlignSelfValue, BoxSizingValue, GlobalImageAttributes, GridAreaValue, HeightValue, ImageBuilderAttributes, JustifySelfValue, MarginValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
|
|
4
|
+
import { BuilderAttributes, CMSElementInterface } from "../common";
|
|
5
|
+
export interface BundleCategoriesStyleProperties 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
|
+
/**
|
|
22
|
+
* Matches Bundle Details, the element this strip was pulled out of — a section
|
|
23
|
+
* composed from elements has to line up with the monolithic one it replaces.
|
|
24
|
+
* Height is auto because the strip is a single row of chips that sizes to them.
|
|
25
|
+
*/
|
|
26
|
+
export declare const getDefaultStyles: () => BundleCategoriesStyleProperties;
|
|
27
|
+
export interface CMSBundleCategoriesInterface extends Omit<CMSElementInterface, "attributes"> {
|
|
28
|
+
attributes: {
|
|
29
|
+
HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
|
|
30
|
+
BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
|
|
31
|
+
CUSTOM: any;
|
|
32
|
+
};
|
|
33
|
+
styles: BundleCategoriesStyleProperties;
|
|
34
|
+
childrenStyles?: CommonStyleProperties;
|
|
35
|
+
}
|
|
@@ -48,6 +48,7 @@ import * as brandSchema from "./elements/brand/index";
|
|
|
48
48
|
import * as brandImageSchema from "./elements/brand-image/index";
|
|
49
49
|
import * as bundleSchema from "./elements/bundle/index";
|
|
50
50
|
import * as bundleDetailsSchema from "./elements/bundle-details/index";
|
|
51
|
+
import * as bundleCategoriesSchema from "./elements/bundle-categories/index";
|
|
51
52
|
import * as lightBoxV2Schema from "./elements/light-box-v2/index";
|
|
52
53
|
import * as searchSchema from "./elements/search/index";
|
|
53
54
|
import * as layouterSchema from "./elements/layouter/index";
|
|
@@ -96,4 +97,4 @@ import embroideryVectors from "./embroidery-icons/index";
|
|
|
96
97
|
import * as pageSchema from "./elements/page";
|
|
97
98
|
import * as kitDetails from "./elements/kit-details";
|
|
98
99
|
import * as kitsSchema from "./elements/kits";
|
|
99
|
-
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, bundleDetailsSchema, brandImageSchema, lightBoxV2Schema, searchSchema, layouterSchema, layouterItemSchema, categoryDetailsSchema, contactUsSchema, loginSchema, createFormSchema, resetPasswordSchema, searchResultsHeadingSchema, itemStockSchema, lineItemSchema, tabsV2Schema, tabsContainerSchema, marchandiserSetsSchema, formBuilder, quickLinksSchema, addOrderSchema, buyForTabsSchema, buyForTabsContainerSchema, checkoutSchema, cartSummarySchema, toasterSchema, spotlightSchema, productCustomizationsSchema, iconListSchema, orderStatusSchema, menuV2Schema, menuItemSchema, layouterProSchema, layouterProItemSchema, userElementsSchema, filterResultsSchema, productSizeChartSchema, badgeSchema, cartAttributesSchema, loaderSchema, addProductsTabSchema, shippingPaymentsSchema, couponSchema, megaMenuSchema, megaMenuContainerSchema, simpleListSchema, cartWrapperSchema, embroiderySchema, embroideryVectors, pageSchema, kitDetails, kitsSchema, };
|
|
100
|
+
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, bundleDetailsSchema, bundleCategoriesSchema, brandImageSchema, lightBoxV2Schema, searchSchema, layouterSchema, layouterItemSchema, categoryDetailsSchema, contactUsSchema, loginSchema, createFormSchema, resetPasswordSchema, searchResultsHeadingSchema, itemStockSchema, lineItemSchema, tabsV2Schema, tabsContainerSchema, marchandiserSetsSchema, formBuilder, quickLinksSchema, addOrderSchema, buyForTabsSchema, buyForTabsContainerSchema, checkoutSchema, cartSummarySchema, toasterSchema, spotlightSchema, productCustomizationsSchema, iconListSchema, orderStatusSchema, menuV2Schema, menuItemSchema, layouterProSchema, layouterProItemSchema, userElementsSchema, filterResultsSchema, productSizeChartSchema, badgeSchema, cartAttributesSchema, loaderSchema, addProductsTabSchema, shippingPaymentsSchema, couponSchema, megaMenuSchema, megaMenuContainerSchema, simpleListSchema, cartWrapperSchema, embroiderySchema, embroideryVectors, pageSchema, kitDetails, kitsSchema, };
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
showArrows: CMSIBCommonInterface;
|
|
8
|
+
allowAutoScroll: CMSIBCommonInterface;
|
|
9
|
+
loopItems: CMSIBCommonInterface;
|
|
10
|
+
itemGap: CMSIBCommonInterface;
|
|
11
|
+
}
|
|
12
|
+
export interface selfDesignInterface {
|
|
13
|
+
selectorKey: string;
|
|
14
|
+
}
|
|
15
|
+
export declare enum SelectorKeysEnum {
|
|
16
|
+
LAYOUT = "layout",
|
|
17
|
+
DESIGN = "design",
|
|
18
|
+
CONTENT = "content",
|
|
19
|
+
DATA_CONNECTOR = "dataConnector"
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Complete default state, the way every other element declares one. The design
|
|
23
|
+
* half is not decoration: bundleCategories.scss reads `--_ctm-dn-br-*` for the
|
|
24
|
+
* border, `--_ctm-dn-sw-*` for the shadow and the background/gradient set from
|
|
25
|
+
* `backgroundProperties`, so a control missing here is a CSS variable the
|
|
26
|
+
* stylesheet resolves to nothing. Likewise the layout half covers `--_ctm-lt-ht`,
|
|
27
|
+
* `--_ctm-lt-mn`, `--_ctm-lt-pg` and the width value the strip sizes itself by.
|
|
28
|
+
*/
|
|
29
|
+
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
30
|
+
export {};
|
|
@@ -51,6 +51,7 @@ import * as productOptions from "./productOptions";
|
|
|
51
51
|
import * as brand from "./brand";
|
|
52
52
|
import * as bundle from "./bundle";
|
|
53
53
|
import * as bundleDetails from "./bundleDetails";
|
|
54
|
+
import * as bundleCategories from "./bundleCategories";
|
|
54
55
|
import * as category from "./category";
|
|
55
56
|
import * as subCategory from "./subCategory";
|
|
56
57
|
import * as brandImage from "./brandImage";
|
|
@@ -119,4 +120,4 @@ import * as embroidery from "./embroidery";
|
|
|
119
120
|
import * as stockStatus from "./stockStatus";
|
|
120
121
|
import * as kitDetails from "./kitDetails";
|
|
121
122
|
import * as kits from "./kits";
|
|
122
|
-
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, quickInventoryCheck, productLabels, kitDetails, kits, };
|
|
123
|
+
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, bundleCategories, 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, quickInventoryCheck, productLabels, kitDetails, kits, };
|