@sc-360-v2/storefront-cms-library 0.1.98 → 0.1.99
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/editor-core.scss +6 -1
- package/dist/icons.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/builder/elements/brand/index.d.ts +30 -0
- package/dist/types/builder/elements/bundle/index.d.ts +30 -0
- package/dist/types/builder/enums/index.d.ts +21 -2
- package/dist/types/builder/index.d.ts +3 -1
- package/dist/types/builder/tools/element-edit/brand.d.ts +17 -0
- package/dist/types/builder/tools/element-edit/bundle.d.ts +17 -0
- package/dist/types/builder/tools/element-edit/category.d.ts +17 -0
- package/dist/types/builder/tools/element-edit/index.d.ts +5 -1
- package/dist/types/builder/tools/element-edit/subCategory.d.ts +17 -0
- package/package.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
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 BrandStyleProperties 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: () => BrandStyleProperties;
|
|
22
|
+
export interface CMSBrandInterface extends Omit<CMSElementInterface, "attributes"> {
|
|
23
|
+
attributes: {
|
|
24
|
+
HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
|
|
25
|
+
BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
|
|
26
|
+
CUSTOM: any;
|
|
27
|
+
};
|
|
28
|
+
styles: BrandStyleProperties;
|
|
29
|
+
childrenStyles?: CommonStyleProperties;
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 BundleStyleProperties 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: () => BundleStyleProperties;
|
|
22
|
+
export interface CMSBundleInterface extends Omit<CMSElementInterface, "attributes"> {
|
|
23
|
+
attributes: {
|
|
24
|
+
HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
|
|
25
|
+
BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
|
|
26
|
+
CUSTOM: any;
|
|
27
|
+
};
|
|
28
|
+
styles: BundleStyleProperties;
|
|
29
|
+
childrenStyles?: CommonStyleProperties;
|
|
30
|
+
}
|
|
@@ -45,7 +45,9 @@ export declare enum CMSToolIdTypes {
|
|
|
45
45
|
repeaterItemWrapper = "cms-repeater-item-wrapper",
|
|
46
46
|
cmsElementFullView = "cms-element-full-view",
|
|
47
47
|
productWrapper = "cms-product-wrapper",
|
|
48
|
-
productDetailsWrapper = "cms-product-details-wrapper"
|
|
48
|
+
productDetailsWrapper = "cms-product-details-wrapper",
|
|
49
|
+
categoryWrapper = "cms-category-wrapper",
|
|
50
|
+
subCategoryWrapper = "cms-sub-category-wrapper"
|
|
49
51
|
}
|
|
50
52
|
export declare enum CMSElementSelectors {
|
|
51
53
|
iframeSelector = "iframe[data-title='iframe__playground']",
|
|
@@ -91,7 +93,9 @@ export declare enum CMSElementSelectors {
|
|
|
91
93
|
repeaterItemElement = "div[data-element-type='repeater-item']",
|
|
92
94
|
cmsElementFullView = "div[data-cms-tool='cms-element-full-view']",
|
|
93
95
|
productElement = "div[data-element-type='product']",
|
|
94
|
-
productDetailsElement = "div[data-element-type='productDetails']"
|
|
96
|
+
productDetailsElement = "div[data-element-type='productDetails']",
|
|
97
|
+
categoryElement = "div[data-element-type='category']",
|
|
98
|
+
subCategoryElement = "div[data-element-type='subCategory']"
|
|
95
99
|
}
|
|
96
100
|
export declare enum CMSToolAttributes {
|
|
97
101
|
id = "data-cms-tool",
|
|
@@ -189,6 +193,13 @@ export declare const CMSElementsListEnum: {
|
|
|
189
193
|
PRODUCT_CODE: string;
|
|
190
194
|
PRODUCT_REVIEW: string;
|
|
191
195
|
PRODUCT_RATING: string;
|
|
196
|
+
BRAND_NAME: string;
|
|
197
|
+
BRAND_DESCRIPTION: string;
|
|
198
|
+
BRAND_CODE: string;
|
|
199
|
+
BRAND_IMAGE: string;
|
|
200
|
+
BUNDLE_NAME: string;
|
|
201
|
+
BUNDLE_CODE: string;
|
|
202
|
+
BUNDLE_IMAGE: string;
|
|
192
203
|
LIGHTBOX: string;
|
|
193
204
|
CART: string;
|
|
194
205
|
PROFILE: string;
|
|
@@ -198,4 +209,12 @@ export declare const CMSElementsListEnum: {
|
|
|
198
209
|
REPEATER: string;
|
|
199
210
|
REPEATER_ITEM: string;
|
|
200
211
|
PRODUCT_DETAILS: string;
|
|
212
|
+
CATEGORY: string;
|
|
213
|
+
CATEGORY_NAME: string;
|
|
214
|
+
CATEGORY_IMAGE: string;
|
|
215
|
+
CATEGORY_CODE: string;
|
|
216
|
+
CATEGORY_DESCRIPTION: string;
|
|
217
|
+
BRAND: string;
|
|
218
|
+
BUNDLE: string;
|
|
219
|
+
SUB_CATEGORY: string;
|
|
201
220
|
};
|
|
@@ -42,5 +42,7 @@ import * as lightboxSchema from "./elements/lightbox/index";
|
|
|
42
42
|
import * as cartSchema from "./elements/cart/index";
|
|
43
43
|
import * as profileSchema from "./elements/profile/index";
|
|
44
44
|
import * as repeaterSchema from "./elements/repeater/index";
|
|
45
|
+
import * as brandSchema from "./elements/brand/index";
|
|
46
|
+
import * as bundleSchema from "./elements/bundle/index";
|
|
45
47
|
import commonFunctions from "./utilities/global";
|
|
46
|
-
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, };
|
|
48
|
+
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, };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
|
|
2
|
+
export interface SectionEditPopupInterface extends CMSElementEditPopupInterface {
|
|
3
|
+
}
|
|
4
|
+
interface selfLayoutInterface {
|
|
5
|
+
selectorKey: string;
|
|
6
|
+
}
|
|
7
|
+
export interface selfDesignInterface {
|
|
8
|
+
selectorKey: string;
|
|
9
|
+
}
|
|
10
|
+
export declare enum SelectorKeysEnum {
|
|
11
|
+
LAYOUT = "layout",
|
|
12
|
+
DESIGN = "design",
|
|
13
|
+
CONTENT = "content",
|
|
14
|
+
DATA_CONNECTOR = "dataConnector"
|
|
15
|
+
}
|
|
16
|
+
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
|
|
2
|
+
export interface SectionEditPopupInterface extends CMSElementEditPopupInterface {
|
|
3
|
+
}
|
|
4
|
+
interface selfLayoutInterface {
|
|
5
|
+
selectorKey: string;
|
|
6
|
+
}
|
|
7
|
+
export interface selfDesignInterface {
|
|
8
|
+
selectorKey: string;
|
|
9
|
+
}
|
|
10
|
+
export declare enum SelectorKeysEnum {
|
|
11
|
+
LAYOUT = "layout",
|
|
12
|
+
DESIGN = "design",
|
|
13
|
+
CONTENT = "content",
|
|
14
|
+
DATA_CONNECTOR = "dataConnector"
|
|
15
|
+
}
|
|
16
|
+
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
|
|
2
|
+
export interface SectionEditPopupInterface extends CMSElementEditPopupInterface {
|
|
3
|
+
}
|
|
4
|
+
interface selfLayoutInterface {
|
|
5
|
+
selectorKey: string;
|
|
6
|
+
}
|
|
7
|
+
export interface selfDesignInterface {
|
|
8
|
+
selectorKey: string;
|
|
9
|
+
}
|
|
10
|
+
export declare enum SelectorKeysEnum {
|
|
11
|
+
LAYOUT = "layout",
|
|
12
|
+
DESIGN = "design",
|
|
13
|
+
CONTENT = "content",
|
|
14
|
+
DATA_CONNECTOR = "dataConnector"
|
|
15
|
+
}
|
|
16
|
+
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
17
|
+
export {};
|
|
@@ -44,4 +44,8 @@ import * as repeater from "./repeater";
|
|
|
44
44
|
import * as repeaterItem from "./repeaterItem";
|
|
45
45
|
import * as menu from "./menu";
|
|
46
46
|
import * as productOptions from "./productOptions";
|
|
47
|
-
|
|
47
|
+
import * as brand from "./brand";
|
|
48
|
+
import * as bundle from "./bundle";
|
|
49
|
+
import * as category from "./category";
|
|
50
|
+
import * as subCategory from "./subCategory";
|
|
51
|
+
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, };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
|
|
2
|
+
export interface SectionEditPopupInterface extends CMSElementEditPopupInterface {
|
|
3
|
+
}
|
|
4
|
+
interface selfLayoutInterface {
|
|
5
|
+
selectorKey: string;
|
|
6
|
+
}
|
|
7
|
+
export interface selfDesignInterface {
|
|
8
|
+
selectorKey: string;
|
|
9
|
+
}
|
|
10
|
+
export declare enum SelectorKeysEnum {
|
|
11
|
+
LAYOUT = "layout",
|
|
12
|
+
DESIGN = "design",
|
|
13
|
+
CONTENT = "content",
|
|
14
|
+
DATA_CONNECTOR = "dataConnector"
|
|
15
|
+
}
|
|
16
|
+
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
17
|
+
export {};
|