@sc-360-v2/storefront-cms-library 0.1.5 → 0.1.7
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/icons.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/builder/elements/amount-estimator/index.d.ts +26 -0
- package/dist/types/builder/elements/product-promotions/index.d.ts +26 -0
- package/dist/types/builder/elements/quantity-selector/index.d.ts +26 -0
- package/dist/types/builder/index.d.ts +4 -1
- package/dist/types/builder/tools/element-edit/amountEstimator.d.ts +40 -0
- package/dist/types/builder/tools/element-edit/gallery-slider.d.ts +27 -7
- package/dist/types/builder/tools/element-edit/index.d.ts +4 -1
- package/dist/types/builder/tools/element-edit/paymentMethods.d.ts +1 -1
- package/dist/types/builder/tools/element-edit/productPromotions.d.ts +39 -0
- package/dist/types/builder/tools/element-edit/quantitySelector.d.ts +17 -0
- package/dist/types/builder/tools/element-edit/section.d.ts +5 -1
- package/dist/types/export.d.ts +1 -0
- package/dist/types/icons/icons.d.ts +2 -1
- package/dist/types/icons/svg-icons.d.ts +5 -0
- package/package.json +2 -2
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { CommonStyleProperties } from "../../../global/style-properties";
|
|
2
|
+
import { CMSHTMLAttributes } from "../../../global/attributes";
|
|
3
|
+
import { AlignSelfValue, BoxSizingValue, GlobalImageAttributes, GridAreaValue, HeightValue, ImageBuilderAttributes, JustifySelfValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
|
|
4
|
+
import { BuilderAttributes, CMSElementInterface } from "../common";
|
|
5
|
+
export interface AmountEstimatorStyleProperties 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
|
+
justifySelf?: JustifySelfValue;
|
|
15
|
+
alignSelf?: AlignSelfValue;
|
|
16
|
+
}
|
|
17
|
+
export declare const getDefaultStyles: () => AmountEstimatorStyleProperties;
|
|
18
|
+
export interface CMSAmountEstimatorInterface extends Omit<CMSElementInterface, "attributes"> {
|
|
19
|
+
attributes: {
|
|
20
|
+
HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
|
|
21
|
+
BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
|
|
22
|
+
CUSTOM: any;
|
|
23
|
+
};
|
|
24
|
+
styles: AmountEstimatorStyleProperties;
|
|
25
|
+
childrenStyles?: CommonStyleProperties;
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { CommonStyleProperties } from "../../../global/style-properties";
|
|
2
|
+
import { CMSHTMLAttributes } from "../../../global/attributes";
|
|
3
|
+
import { AlignSelfValue, BoxSizingValue, GlobalImageAttributes, GridAreaValue, HeightValue, ImageBuilderAttributes, JustifySelfValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
|
|
4
|
+
import { BuilderAttributes, CMSElementInterface } from "../common";
|
|
5
|
+
export interface ProductPromotionsStyleProperties 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
|
+
justifySelf?: JustifySelfValue;
|
|
15
|
+
alignSelf?: AlignSelfValue;
|
|
16
|
+
}
|
|
17
|
+
export declare const getDefaultStyles: () => ProductPromotionsStyleProperties;
|
|
18
|
+
export interface CMSProductPromotionsInterface extends Omit<CMSElementInterface, "attributes"> {
|
|
19
|
+
attributes: {
|
|
20
|
+
HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
|
|
21
|
+
BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
|
|
22
|
+
CUSTOM: any;
|
|
23
|
+
};
|
|
24
|
+
styles: ProductPromotionsStyleProperties;
|
|
25
|
+
childrenStyles?: CommonStyleProperties;
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { CommonStyleProperties } from "../../../global/style-properties";
|
|
2
|
+
import { CMSHTMLAttributes } from "../../../global/attributes";
|
|
3
|
+
import { AlignSelfValue, BoxSizingValue, GlobalImageAttributes, GridAreaValue, HeightValue, ImageBuilderAttributes, JustifySelfValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
|
|
4
|
+
import { BuilderAttributes, CMSElementInterface } from "../common";
|
|
5
|
+
export interface QuantitySelectorStyleProperties 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
|
+
justifySelf?: JustifySelfValue;
|
|
15
|
+
alignSelf?: AlignSelfValue;
|
|
16
|
+
}
|
|
17
|
+
export declare const getDefaultStyles: () => QuantitySelectorStyleProperties;
|
|
18
|
+
export interface CMSQuantitySelectorInterface extends Omit<CMSElementInterface, "attributes"> {
|
|
19
|
+
attributes: {
|
|
20
|
+
HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
|
|
21
|
+
BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
|
|
22
|
+
CUSTOM: any;
|
|
23
|
+
};
|
|
24
|
+
styles: QuantitySelectorStyleProperties;
|
|
25
|
+
childrenStyles?: CommonStyleProperties;
|
|
26
|
+
}
|
|
@@ -30,4 +30,7 @@ import * as productInventorySchema from "./elements/product-inventory/index";
|
|
|
30
30
|
import * as productHighlightsSchema from "./elements/productHighlights/index";
|
|
31
31
|
import * as paymentMethodsSchema from "./elements/paymentMethods/index";
|
|
32
32
|
import * as shippingEstimatorSchema from "./elements/shippingEstimator/index";
|
|
33
|
-
|
|
33
|
+
import * as productPromotionsSchema from "./elements/product-promotions/index";
|
|
34
|
+
import * as amountEstimatorSchema from "./elements/amount-estimator/index";
|
|
35
|
+
import * as quantitySelectorSchema from "./elements/quantity-selector/index";
|
|
36
|
+
export { commonFunctions, interfaces, enums, sectionSchema, gridSchema, cmsTypes, textSchema, ElementEditSchema, imageSchema, videoSChema, socialIconsSchema, buttonSchema, gallerySliderSchema, tabSchema, tableSchema, faqSchema, codeSchema, embedSchema, scrollSchema, countdownSchema, imageHotspotSchema, mapSchema, containerSchema, priceSchema, productActionsSchema, volumePricingSchema, pickupLocationsSchema, storeLocationsSchema, productInventorySchema, paymentMethodsSchema, productHighlightsSchema, shippingEstimatorSchema, productPromotionsSchema, amountEstimatorSchema, quantitySelectorSchema, };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { CMSIBCommonInterface } from "../../interfaces/global";
|
|
2
|
+
import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
|
|
3
|
+
interface selfLayoutInterface {
|
|
4
|
+
selectorKey: string;
|
|
5
|
+
displayStyle: CMSIBCommonInterface;
|
|
6
|
+
displayResults: CMSIBCommonInterface;
|
|
7
|
+
displayType: CMSIBCommonInterface;
|
|
8
|
+
dividerBetweenItems: CMSIBCommonInterface;
|
|
9
|
+
itemSpacing: CMSIBCommonInterface;
|
|
10
|
+
itemPadding: CMSIBCommonInterface;
|
|
11
|
+
ItemContentAlignment: CMSIBCommonInterface;
|
|
12
|
+
overflowItems: CMSIBCommonInterface;
|
|
13
|
+
maxItemsToDisplay: CMSIBCommonInterface;
|
|
14
|
+
imageBehavior: CMSIBCommonInterface;
|
|
15
|
+
itemsPerRow: CMSIBCommonInterface;
|
|
16
|
+
header: CMSIBCommonInterface;
|
|
17
|
+
headerHeight: CMSIBCommonInterface;
|
|
18
|
+
rowHeight: CMSIBCommonInterface;
|
|
19
|
+
headerDivider: CMSIBCommonInterface;
|
|
20
|
+
rowDivider: CMSIBCommonInterface;
|
|
21
|
+
columnDivider: CMSIBCommonInterface;
|
|
22
|
+
alternativeRowColors: CMSIBCommonInterface;
|
|
23
|
+
headerCellPadding: CMSIBCommonInterface;
|
|
24
|
+
rowCellPadding: CMSIBCommonInterface;
|
|
25
|
+
contentAlignment: CMSIBCommonInterface;
|
|
26
|
+
rowsPerPage: CMSIBCommonInterface;
|
|
27
|
+
overflowControl: CMSIBCommonInterface;
|
|
28
|
+
paginationType: CMSIBCommonInterface;
|
|
29
|
+
paginationAliginment: CMSIBCommonInterface;
|
|
30
|
+
}
|
|
31
|
+
interface selfDesignInterface {
|
|
32
|
+
selectorKey: string;
|
|
33
|
+
}
|
|
34
|
+
export declare enum AmountEstimatorsSelectorKeysEnum {
|
|
35
|
+
LAYOUT = "layout",
|
|
36
|
+
CONTENT = "content",
|
|
37
|
+
DESIGN = "design"
|
|
38
|
+
}
|
|
39
|
+
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
40
|
+
export {};
|
|
@@ -47,17 +47,37 @@ export interface selfDesignInterface {
|
|
|
47
47
|
};
|
|
48
48
|
itemStyle: {
|
|
49
49
|
selectorKey: string;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
50
|
+
backgroundColor: CMSIBCommonInterface;
|
|
51
|
+
borderColor: CMSIBCommonInterface;
|
|
52
|
+
borderStyle: CMSIBCommonInterface;
|
|
53
|
+
borderPerSlide: CMSIBCommonInterface;
|
|
54
|
+
showBorder: CMSIBCommonInterface;
|
|
55
|
+
showShadow: CMSIBCommonInterface;
|
|
56
|
+
shadowColor: CMSIBCommonInterface;
|
|
57
|
+
blur: CMSIBCommonInterface;
|
|
58
|
+
spread: CMSIBCommonInterface;
|
|
59
|
+
angle: CMSIBCommonInterface;
|
|
60
|
+
borderRadius: CMSIBCommonInterface;
|
|
61
|
+
[key: string]: any;
|
|
62
|
+
};
|
|
63
|
+
itemLayout: {
|
|
64
|
+
selectorKey: string;
|
|
65
|
+
galleryTextAndItemAlignment: CMSIBCommonInterface;
|
|
66
|
+
textAndImageSpacing: CMSIBCommonInterface;
|
|
67
|
+
galleryTitleAndDescriptionSpacing: CMSIBCommonInterface;
|
|
68
|
+
[key: string]: any;
|
|
69
|
+
};
|
|
70
|
+
itemTextContainerDesign: {
|
|
71
|
+
[key: string]: any;
|
|
72
|
+
};
|
|
73
|
+
itemTextContainerLayout: {
|
|
74
|
+
[key: string]: any;
|
|
57
75
|
};
|
|
58
76
|
paginationArrows: {
|
|
59
77
|
selectorKey: string;
|
|
60
78
|
arrowIconStyle: CMSIBCommonInterface;
|
|
79
|
+
leftArrowIconStyle: CMSIBCommonInterface;
|
|
80
|
+
rightArrowIconStyle: CMSIBCommonInterface;
|
|
61
81
|
backgroundShape: CMSIBCommonInterface;
|
|
62
82
|
arrowSize: CMSIBCommonInterface;
|
|
63
83
|
arrowColor: CMSIBCommonInterface;
|
|
@@ -28,4 +28,7 @@ import * as productInventory from "./productInventory";
|
|
|
28
28
|
import * as paymentMethods from "./paymentMethods";
|
|
29
29
|
import * as productHighlights from "./productHighlights";
|
|
30
30
|
import * as shippingEstimator from "./shippingEstimator";
|
|
31
|
-
|
|
31
|
+
import * as productPromotions from "./productPromotions";
|
|
32
|
+
import * as amountEstimator from "./amountEstimator";
|
|
33
|
+
import * as quantitySelector from "./quantitySelector";
|
|
34
|
+
export { section, grid, common, image, button, slideShowLayouter, tabs, video, table, gallerySlider, social, faq, code, text, embed, buttonV2, scroll, countdown, imageHotspot, map, container, price, productActions, volumePricing, pickupLocations, storeLocations, productInventory, paymentMethods, productHighlights, shippingEstimator, productPromotions, amountEstimator, quantitySelector, };
|
|
@@ -8,8 +8,8 @@ interface selfLayoutInterface {
|
|
|
8
8
|
itemPadding: CMSIBCommonInterface;
|
|
9
9
|
ItemContentAlignment: CMSIBCommonInterface;
|
|
10
10
|
overflowItems: CMSIBCommonInterface;
|
|
11
|
-
header: CMSIBCommonInterface;
|
|
12
11
|
maxItemsToDisplay: CMSIBCommonInterface;
|
|
12
|
+
header: CMSIBCommonInterface;
|
|
13
13
|
headerHeight: CMSIBCommonInterface;
|
|
14
14
|
rowHeight: CMSIBCommonInterface;
|
|
15
15
|
headerDivider: CMSIBCommonInterface;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { CMSIBCommonInterface } from "../../interfaces/global";
|
|
2
|
+
import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
|
|
3
|
+
interface selfLayoutInterface {
|
|
4
|
+
selectorKey: string;
|
|
5
|
+
displayStyle: CMSIBCommonInterface;
|
|
6
|
+
dividerBetweenItems: CMSIBCommonInterface;
|
|
7
|
+
itemSpacing: CMSIBCommonInterface;
|
|
8
|
+
itemPadding: CMSIBCommonInterface;
|
|
9
|
+
ItemContentAlignment: CMSIBCommonInterface;
|
|
10
|
+
overflowItems: CMSIBCommonInterface;
|
|
11
|
+
maxItemsToDisplay: CMSIBCommonInterface;
|
|
12
|
+
header: CMSIBCommonInterface;
|
|
13
|
+
headerHeight: CMSIBCommonInterface;
|
|
14
|
+
rowHeight: CMSIBCommonInterface;
|
|
15
|
+
headerDivider: CMSIBCommonInterface;
|
|
16
|
+
rowDivider: CMSIBCommonInterface;
|
|
17
|
+
columnDivider: CMSIBCommonInterface;
|
|
18
|
+
alternativeRowColors: CMSIBCommonInterface;
|
|
19
|
+
headerCellPadding: CMSIBCommonInterface;
|
|
20
|
+
rowCellPadding: CMSIBCommonInterface;
|
|
21
|
+
contentAlignment: CMSIBCommonInterface;
|
|
22
|
+
rowsPerPage: CMSIBCommonInterface;
|
|
23
|
+
overflowControl: CMSIBCommonInterface;
|
|
24
|
+
paginationType: CMSIBCommonInterface;
|
|
25
|
+
paginationAliginment: CMSIBCommonInterface;
|
|
26
|
+
displayResults: CMSIBCommonInterface;
|
|
27
|
+
imageBehavior: CMSIBCommonInterface;
|
|
28
|
+
itemsPerRow: CMSIBCommonInterface;
|
|
29
|
+
}
|
|
30
|
+
interface selfDesignInterface {
|
|
31
|
+
selectorKey: string;
|
|
32
|
+
}
|
|
33
|
+
export declare enum ProductPromotionsSelectorKeysEnum {
|
|
34
|
+
LAYOUT = "layout",
|
|
35
|
+
CONTENT = "content",
|
|
36
|
+
DESIGN = "design"
|
|
37
|
+
}
|
|
38
|
+
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CMSIBCommonInterface } from "../../interfaces/global";
|
|
2
|
+
import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
|
|
3
|
+
interface selfLayoutInterface {
|
|
4
|
+
selectorKey: string;
|
|
5
|
+
displayStyle: CMSIBCommonInterface;
|
|
6
|
+
displayMinQtyToPurchase: CMSIBCommonInterface;
|
|
7
|
+
}
|
|
8
|
+
interface selfDesignInterface {
|
|
9
|
+
selectorKey: string;
|
|
10
|
+
}
|
|
11
|
+
export declare enum QuantitySelectorSelectorKeysEnum {
|
|
12
|
+
LAYOUT = "layout",
|
|
13
|
+
CONTENT = "content",
|
|
14
|
+
DESIGN = "design"
|
|
15
|
+
}
|
|
16
|
+
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
17
|
+
export {};
|
|
@@ -9,7 +9,11 @@ export interface selfDesignInterface {
|
|
|
9
9
|
}
|
|
10
10
|
export declare enum sectionSelectorKeysEnum {
|
|
11
11
|
LAYOUT = "layout",
|
|
12
|
-
DESIGN = "design"
|
|
12
|
+
DESIGN = "design",
|
|
13
|
+
SETTINGS = "settings",
|
|
14
|
+
VISIBILITY = "visibility",
|
|
15
|
+
SCHEDULES = "schedules",
|
|
16
|
+
DEVICE_VISIBILITY = "deviceVisibility"
|
|
13
17
|
}
|
|
14
18
|
export declare const getDefaultData: (contentWidth: any) => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
15
19
|
export {};
|
package/dist/types/export.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sc-360-v2/storefront-cms-library",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"main": "/dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\" --max-warnings=0",
|
|
47
47
|
"lint:fix": "eslint src --ext .js,.jsx,.ts,.tsx --fix",
|
|
48
48
|
"prettier": "prettier --write 'src/**/*.{js,jsx,ts,tsx,json,css,scss,md}'",
|
|
49
|
-
"
|
|
49
|
+
"deploy": "npm publish --access public"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@babel/runtime": "^7.25.6",
|