@sc-360-v2/storefront-cms-library 0.2.73 → 0.2.75

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.
@@ -1,13 +1,19 @@
1
1
  /// <reference types="react" />
2
2
  export declare const FB_GRID_COLS = 12;
3
+ export declare const FB_GRID_MOBILE_COLS = 4;
3
4
  export declare const FB_GRID_ROWS = 1;
4
5
  export declare const FB_CELL_HEIGHT = 70;
5
6
  export declare const FB_CONTAINER_PADDING = 20;
6
7
  export declare const FB_GRID_MIN_WIDTH = 4;
8
+ export declare const FB_GRID_MOBILE_MIN_WIDTH = 2;
7
9
  export declare enum FBModeEnum {
8
10
  Edit = 1,
9
11
  Preview = 2
10
12
  }
13
+ export declare enum ScreenSizeEnums {
14
+ Desktop = 1,
15
+ Mobile = 2
16
+ }
11
17
  export declare enum FormComponentTypeEnum {
12
18
  Input = "input",
13
19
  Select = "select",
@@ -82,6 +88,7 @@ export interface FormGridProps {
82
88
  onLayoutChange?: (layout: any) => void;
83
89
  isDraggable?: boolean;
84
90
  children: React.ReactNode;
91
+ isDesktopGrid: boolean;
85
92
  }
86
93
  export interface FormGridLayoutInterface {
87
94
  w: number;
@@ -0,0 +1,36 @@
1
+ import { CommonStyleProperties } from "../../../global/style-properties";
2
+ import { AlignSelfValue, BoxSizingValue, GridAreaValue, HeightValue, JustifySelfValue, MarginValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue, CommonBuilderAttributes } from "../../../global/types";
3
+ import { BuilderAttributes, CMSElementInterface } from "../common";
4
+ export interface QuickLinksStyleProperties {
5
+ minHeight?: MinHeightValue;
6
+ height?: HeightValue;
7
+ minWidth?: MinWidthValue;
8
+ maxWidth?: MaxWidthValue;
9
+ maxHeight?: MaxHeightValue;
10
+ boxSizing?: BoxSizingValue;
11
+ padding?: PaddingValue;
12
+ marginLeft?: MarginValue;
13
+ marginTop?: MarginValue;
14
+ marginBottom?: MarginValue;
15
+ marginRight?: MarginValue;
16
+ justifySelf?: JustifySelfValue;
17
+ alignSelf?: AlignSelfValue;
18
+ gridArea?: GridAreaValue;
19
+ }
20
+ export declare const getDefaultQuickLinksStyles: () => QuickLinksStyleProperties;
21
+ export interface CMSQuickLinksInterface extends Omit<CMSElementInterface, "attributes"> {
22
+ attributes: {
23
+ HTML: {
24
+ quickL: Array<{
25
+ platform: "Facebook" | "Instagram" | "Twitter" | "Amazon" | "Website" | "Linked In";
26
+ url: string;
27
+ icon: string;
28
+ name: string;
29
+ }>;
30
+ };
31
+ BUILDER: Pick<BuilderAttributes, CommonBuilderAttributes>;
32
+ CUSTOM: any;
33
+ };
34
+ styles: QuickLinksStyleProperties;
35
+ childrenStyles?: CommonStyleProperties;
36
+ }
@@ -288,6 +288,7 @@ export declare const CMSElementsListEnum: {
288
288
  TABS_V2: string;
289
289
  TABS_CONTAINER: string;
290
290
  MARCHANDISER_SETS: string;
291
+ QUICK_LINKS: string;
291
292
  };
292
293
  export declare enum CMSResponsiveModeEnums {
293
294
  DESKTOP = "desktop",
@@ -351,3 +352,6 @@ export declare enum FlexAppVersionEnums {
351
352
  export declare enum FlexDefaultValues {
352
353
  FLEXLIGHTBOXCLOSEBTN = "isLightboxCloseIconKey"
353
354
  }
355
+ export declare enum SkeletonItems {
356
+ PLACEHOLDER_IMAGE = "/00000000-0000-0000-0000-000000000000/development/img-placeholder.jpg"
357
+ }
@@ -61,4 +61,5 @@ import * as tabsV2Schema from "./elements/tab-v2/index";
61
61
  import * as tabsContainerSchema from "./elements/tab-container/index";
62
62
  import * as marchandiserSetsSchema from "./elements/marchandiser-sets/index";
63
63
  import * as formBuilder from "./elements/form-builder/index";
64
- 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, resetPasswordSchema, searchResultsHeadingSchema, itemStockSchema, lineItemSchema, tabsV2Schema, tabsContainerSchema, marchandiserSetsSchema, formBuilder, };
64
+ import * as quickLinksSchema from "./elements/quick-links/index";
65
+ 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, resetPasswordSchema, searchResultsHeadingSchema, itemStockSchema, lineItemSchema, tabsV2Schema, tabsContainerSchema, marchandiserSetsSchema, formBuilder, quickLinksSchema, };
@@ -75,4 +75,5 @@ import * as line from "./line";
75
75
  import * as tabsV2 from "./tabsV2";
76
76
  import * as tabContainer from "./tabContainer";
77
77
  import * as marchandiserSets from "./marchandiserSets";
78
- 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, allocationDetails, line, tabsV2, tabContainer, marchandiserSets, };
78
+ import * as quickLinks from "./quickLinks";
79
+ 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, allocationDetails, line, tabsV2, tabContainer, marchandiserSets, quickLinks, };
@@ -0,0 +1,360 @@
1
+ import { CMSElementEditTypes } from "../../enums";
2
+ import { CMSIBCommonInterface } from "../../interfaces/global";
3
+ import { CMSElementEditPopupInterface } from "./common";
4
+ export interface SectionEditPopupInterface extends CMSElementEditPopupInterface {
5
+ }
6
+ interface ControlInterface {
7
+ value: string | boolean;
8
+ propertyType: string;
9
+ }
10
+ export declare enum QuickLinksSelectorKeysEnum {
11
+ LAYOUT = "layout",
12
+ DESIGN = "design",
13
+ CONTENT = "content",
14
+ FILL_AND_BACKGROUND = "fillAndBackground",
15
+ ITEM_STYLE = "iconStyle",
16
+ QuickLinks_ICONS = "QuickLinks",
17
+ QuickLinks_WIDGET = "QuickLinksWidget"
18
+ }
19
+ export interface SelectorKeys {
20
+ LAYOUT: string;
21
+ DESIGN: string;
22
+ CONTENT: string;
23
+ QuickLinks_PLAYER_TEXT: string;
24
+ PLAY_PAUSE: string;
25
+ QuickLinks: string;
26
+ }
27
+ export interface QuickLinksControlInterface {
28
+ selectorKey?: string;
29
+ margin?: CMSIBCommonInterface;
30
+ padding?: CMSIBCommonInterface;
31
+ alignment?: CMSIBCommonInterface;
32
+ itemSpacing?: ControlInterface;
33
+ iconSize?: CMSIBCommonInterface;
34
+ positionType?: CMSIBCommonInterface;
35
+ pinTo?: CMSIBCommonInterface;
36
+ website?: CMSIBCommonInterface;
37
+ websiteUrl?: CMSIBCommonInterface;
38
+ instagram?: CMSIBCommonInterface;
39
+ instagramUrl?: CMSIBCommonInterface;
40
+ linkedIn?: CMSIBCommonInterface;
41
+ linkedInUrl?: CMSIBCommonInterface;
42
+ facebook?: CMSIBCommonInterface;
43
+ facebookUrl?: CMSIBCommonInterface;
44
+ amazon?: CMSIBCommonInterface;
45
+ amazonUrl?: CMSIBCommonInterface;
46
+ twitter?: CMSIBCommonInterface;
47
+ iconPosition?: CMSIBCommonInterface;
48
+ clickToNavigate?: CMSIBCommonInterface;
49
+ iconAndTextSpacing?: CMSIBCommonInterface;
50
+ iconStyle?: {
51
+ selectorKey?: string;
52
+ icon?: CMSIBCommonInterface;
53
+ iconColor?: CMSIBCommonInterface;
54
+ iconSize?: CMSIBCommonInterface;
55
+ };
56
+ fillAndBackground?: {
57
+ selectorKey?: string;
58
+ backgroundColor?: CMSIBCommonInterface;
59
+ };
60
+ QuickLinks?: {
61
+ selectorKey?: string;
62
+ instagramIcon?: CMSIBCommonInterface;
63
+ facebookIcon: CMSIBCommonInterface;
64
+ twitterIcon: CMSIBCommonInterface;
65
+ amazonIcon: CMSIBCommonInterface;
66
+ websiteIcon: CMSIBCommonInterface;
67
+ youtubeIcon: CMSIBCommonInterface;
68
+ linkedinIcon: CMSIBCommonInterface;
69
+ };
70
+ }
71
+ export interface CMSQuickLinksEditPopupInterface<L = QuickLinksControlInterface, C = QuickLinksControlInterface, D = QuickLinksControlInterface> {
72
+ layout?: L;
73
+ content?: C;
74
+ design?: D;
75
+ }
76
+ export declare const getDefaultData: () => {
77
+ layout: {
78
+ selectorKey: QuickLinksSelectorKeysEnum;
79
+ width: {
80
+ value: string;
81
+ unit: number;
82
+ };
83
+ height: {
84
+ value: string;
85
+ unit: number;
86
+ property?: any;
87
+ propertyType?: any;
88
+ isReadOnly?: boolean | undefined;
89
+ parentRef?: string | undefined;
90
+ };
91
+ margin: import("../../interfaces/global").CSSPaddingValues | undefined;
92
+ padding: import("../../interfaces/global").CSSPaddingValues | undefined;
93
+ displayStyle: {
94
+ value: string;
95
+ propertyType: CMSElementEditTypes;
96
+ };
97
+ showIcon: {
98
+ layout: {
99
+ iconAndTextSpacing: {
100
+ value: number;
101
+ property: string;
102
+ unit: number;
103
+ propertyType: CMSElementEditTypes;
104
+ };
105
+ displayStyle: {
106
+ value: string;
107
+ propertyType: CMSElementEditTypes;
108
+ };
109
+ showIcon: {
110
+ value: boolean;
111
+ propertyType: CMSElementEditTypes;
112
+ };
113
+ iconPosition: {
114
+ value: string;
115
+ propertyType: CMSElementEditTypes;
116
+ };
117
+ };
118
+ content: {
119
+ linksData: {
120
+ value: {
121
+ id: any;
122
+ title: string;
123
+ name: string;
124
+ show: boolean;
125
+ url: string;
126
+ }[];
127
+ propertyType: CMSElementEditTypes;
128
+ };
129
+ showTitle: {
130
+ value: boolean;
131
+ propertyType: CMSElementEditTypes;
132
+ };
133
+ title: {
134
+ value: string;
135
+ propertyType: CMSElementEditTypes;
136
+ };
137
+ description: {
138
+ value: string;
139
+ propertyType: CMSElementEditTypes;
140
+ };
141
+ showDescription: {
142
+ value: boolean;
143
+ propertyType: CMSElementEditTypes;
144
+ };
145
+ };
146
+ design: {
147
+ icon: {
148
+ value: string;
149
+ propertyType: CMSElementEditTypes;
150
+ };
151
+ designiconSize: {
152
+ value: string;
153
+ propertyType: CMSElementEditTypes;
154
+ unit: number;
155
+ property: string;
156
+ };
157
+ iconColor: {
158
+ value: {
159
+ hex: string;
160
+ rgb: {
161
+ r: string;
162
+ g: string;
163
+ b: string;
164
+ a: number;
165
+ };
166
+ };
167
+ property: string;
168
+ propertyType: CMSElementEditTypes;
169
+ parentRef: string;
170
+ };
171
+ instagramIcon: {
172
+ value: string;
173
+ property: string;
174
+ propertyType: CMSElementEditTypes;
175
+ };
176
+ facebookIcon: {
177
+ value: string;
178
+ property: string;
179
+ propertyType: CMSElementEditTypes;
180
+ };
181
+ twitterIcon: {
182
+ value: string;
183
+ property: string;
184
+ propertyType: CMSElementEditTypes;
185
+ };
186
+ amazonIcon: {
187
+ value: string;
188
+ property: string;
189
+ propertyType: CMSElementEditTypes;
190
+ };
191
+ websiteIcon: {
192
+ value: string;
193
+ property: string;
194
+ propertyType: CMSElementEditTypes;
195
+ };
196
+ youtubeIcon: {
197
+ value: string;
198
+ property: string;
199
+ propertyType: CMSElementEditTypes;
200
+ };
201
+ linkedinIcon: {
202
+ value: string;
203
+ property: string;
204
+ propertyType: CMSElementEditTypes;
205
+ };
206
+ };
207
+ };
208
+ iconPosition: {
209
+ value: string;
210
+ propertyType: CMSElementEditTypes;
211
+ };
212
+ positionType: CMSIBCommonInterface | undefined;
213
+ pinTo: CMSIBCommonInterface | undefined;
214
+ };
215
+ content: {
216
+ selectorKey: QuickLinksSelectorKeysEnum;
217
+ showTitle: {
218
+ value: boolean;
219
+ propertyType: CMSElementEditTypes;
220
+ };
221
+ title: {
222
+ value: string;
223
+ propertyType: CMSElementEditTypes;
224
+ };
225
+ showDescription: {
226
+ value: boolean;
227
+ propertyType: CMSElementEditTypes;
228
+ };
229
+ description: {
230
+ value: string;
231
+ propertyType: CMSElementEditTypes;
232
+ };
233
+ linksData: {
234
+ value: {
235
+ id: any;
236
+ title: string;
237
+ name: string;
238
+ show: boolean;
239
+ url: string;
240
+ }[];
241
+ propertyType: CMSElementEditTypes;
242
+ };
243
+ };
244
+ design: {
245
+ selectorKey: QuickLinksSelectorKeysEnum;
246
+ QuickLinksWidget: {
247
+ selectorKey: QuickLinksSelectorKeysEnum;
248
+ backgroundColor: CMSIBCommonInterface;
249
+ cropRatio: CMSIBCommonInterface;
250
+ zoomImage: CMSIBCommonInterface;
251
+ flip: CMSIBCommonInterface;
252
+ rotate: import("../../interfaces/global").CMSIBSizeInterface;
253
+ showBorder: CMSIBCommonInterface;
254
+ borderStyle: CMSIBCommonInterface;
255
+ borderColor: CMSIBCommonInterface;
256
+ borderPerSlide: import("../../interfaces/global").CSSPaddingValues;
257
+ borderRadius: import("../../interfaces/global").CSSPaddingValues;
258
+ showShadow: CMSIBCommonInterface;
259
+ shadowColor: CMSIBCommonInterface;
260
+ angle: import("../../interfaces/global").CMSIBSizeInterface;
261
+ spread: import("../../interfaces/global").CMSIBSizeInterface;
262
+ blur: import("../../interfaces/global").CMSIBSizeInterface;
263
+ };
264
+ itemStyle: {
265
+ selectorKey: QuickLinksSelectorKeysEnum;
266
+ backgroundColor: CMSIBCommonInterface;
267
+ cropRatio: CMSIBCommonInterface;
268
+ zoomImage: CMSIBCommonInterface;
269
+ flip: CMSIBCommonInterface;
270
+ rotate: import("../../interfaces/global").CMSIBSizeInterface;
271
+ theme: CMSIBCommonInterface;
272
+ font: CMSIBCommonInterface;
273
+ fontSize: import("../../interfaces/global").CMSIBSizeInterface;
274
+ textColor: CMSIBCommonInterface;
275
+ bold: CMSIBCommonInterface;
276
+ italic: CMSIBCommonInterface;
277
+ linethrough: CMSIBCommonInterface;
278
+ underline: CMSIBCommonInterface;
279
+ textAlign: CMSIBCommonInterface;
280
+ characterSpacing: import("../../interfaces/global").CMSIBSizeInterface;
281
+ lineHeight: import("../../interfaces/global").CMSIBSizeInterface;
282
+ showBorder: CMSIBCommonInterface;
283
+ borderStyle: CMSIBCommonInterface;
284
+ borderColor: CMSIBCommonInterface;
285
+ borderPerSlide: import("../../interfaces/global").CSSPaddingValues;
286
+ borderRadius: import("../../interfaces/global").CSSPaddingValues;
287
+ showShadow: CMSIBCommonInterface;
288
+ shadowColor: CMSIBCommonInterface;
289
+ angle: import("../../interfaces/global").CMSIBSizeInterface;
290
+ spread: import("../../interfaces/global").CMSIBSizeInterface;
291
+ blur: import("../../interfaces/global").CMSIBSizeInterface;
292
+ showIcon: {
293
+ value: boolean;
294
+ property?: any;
295
+ propertyType?: any;
296
+ isReadOnly?: boolean | undefined;
297
+ parentRef?: string | undefined;
298
+ };
299
+ iconSize: {
300
+ value: string;
301
+ propertyType: CMSElementEditTypes;
302
+ unit: number;
303
+ property: string;
304
+ };
305
+ iconColor: {
306
+ value: {
307
+ hex: string;
308
+ rgb: {
309
+ r: string;
310
+ g: string;
311
+ b: string;
312
+ a: number;
313
+ };
314
+ };
315
+ property: string;
316
+ propertyType: CMSElementEditTypes;
317
+ parentRef: string;
318
+ };
319
+ };
320
+ QuickLinks: {
321
+ selectorKey: QuickLinksSelectorKeysEnum;
322
+ instagramIcon: {
323
+ value: string;
324
+ property: string;
325
+ propertyType: CMSElementEditTypes;
326
+ };
327
+ facebookIcon: {
328
+ value: string;
329
+ property: string;
330
+ propertyType: CMSElementEditTypes;
331
+ };
332
+ twitterIcon: {
333
+ value: string;
334
+ property: string;
335
+ propertyType: CMSElementEditTypes;
336
+ };
337
+ amazonIcon: {
338
+ value: string;
339
+ property: string;
340
+ propertyType: CMSElementEditTypes;
341
+ };
342
+ websiteIcon: {
343
+ value: string;
344
+ property: string;
345
+ propertyType: CMSElementEditTypes;
346
+ };
347
+ youtubeIcon: {
348
+ value: string;
349
+ property: string;
350
+ propertyType: CMSElementEditTypes;
351
+ };
352
+ linkedinIcon: {
353
+ value: string;
354
+ property: string;
355
+ propertyType: CMSElementEditTypes;
356
+ };
357
+ };
358
+ };
359
+ };
360
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sc-360-v2/storefront-cms-library",
3
- "version": "0.2.73",
3
+ "version": "0.2.75",
4
4
  "main": "/dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {