@sc-360-v2/storefront-cms-library 0.2.95 → 0.2.96

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.
@@ -2,7 +2,7 @@
2
2
  @use "sass:list";
3
3
  @use "./repeater-embla-controls.scss" as *;
4
4
  @use "./repeater-grid-toggle.scss" as *;
5
- @use "../functions.scss" as *;
5
+ @use "./functions.scss" as *;
6
6
  $childItemSelector: '[data-element-type="repeater-item"]';
7
7
  $sliderControlDragging: "[flex-slider-control-moving='true']";
8
8
  $rai: "repeater-advertise-item";
@@ -307,6 +307,10 @@ export declare const CMSElementsListEnum: {
307
307
  BUNDLE_DETAILS: string;
308
308
  PRODUCT_CUSTOMIZATIONS: string;
309
309
  ICON_LIST: string;
310
+ MENU_V2: string;
311
+ MENU_ITEM: string;
312
+ SIMPLE_LIST: string;
313
+ SIMPLE_LIST_ITEM: string;
310
314
  };
311
315
  export declare enum CMSResponsiveModeEnums {
312
316
  DESKTOP = "desktop",
@@ -27,6 +27,8 @@ interface selfLayoutInterface {
27
27
  overflowControl: CMSIBCommonInterface;
28
28
  paginationType: CMSIBCommonInterface;
29
29
  paginationAlignment: CMSIBCommonInterface;
30
+ noOfItemsToShow: CMSIBCommonInterface;
31
+ itemHeight: CMSIBCommonInterface;
30
32
  }
31
33
  interface selfDesignInterface {
32
34
  selectorKey: string;
@@ -106,7 +108,19 @@ interface selfDesignInterface {
106
108
  selectorKey: string;
107
109
  [key: string]: any;
108
110
  };
109
- showMoreItemsButton: {
111
+ showMoreButton: {
112
+ selectorKey: string;
113
+ [key: string]: any;
114
+ };
115
+ searchBar: {
116
+ selectorKey: string;
117
+ [key: string]: any;
118
+ };
119
+ searchIcon: {
120
+ selectorKey: string;
121
+ [key: string]: any;
122
+ };
123
+ placeholderText: {
110
124
  selectorKey: string;
111
125
  [key: string]: any;
112
126
  };
@@ -134,7 +148,7 @@ export declare enum AmountEstimatorsSelectorKeysEnum {
134
148
  SCROLL = "scroll",
135
149
  ROW_DIVIDERS = "rowDividers",
136
150
  PAGINATION = "pagination",
137
- SHOW_MORE_ITEMS_BUTTON = "showMoreItemsButton",
151
+ SHOW_MORE_ITEMS_BUTTON = "showMoreButton",
138
152
  HOVER_STATE = "hover",
139
153
  DEFAULT_STATE = "default",
140
154
  SELECTED_STATE = "selectedState",
@@ -86,6 +86,7 @@ export interface selfDesignInterface {
86
86
  angle: CMSIBCommonInterface;
87
87
  spread: CMSIBCommonInterface;
88
88
  blur: CMSIBCommonInterface;
89
+ position: CMSIBCommonInterface;
89
90
  };
90
91
  tooltipTextDesign: {
91
92
  selectorKey: string;
@@ -1,15 +1,352 @@
1
- import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
1
+ import { CMSElementEditTypes } from "../../enums";
2
+ import { CMSElementEditPopupInterface } from "./common";
2
3
  export interface OrderEditPopupInterface extends CMSElementEditPopupInterface {
3
4
  }
4
- interface selfLayoutInterface {
5
- selectorKey: string;
6
- }
7
5
  export interface selfDesignInterface {
8
6
  selectorKey: string;
9
7
  }
10
8
  export declare enum orderSelectorKeysEnum {
11
9
  LAYOUT = "layout",
12
- DESIGN = "design"
10
+ DESIGN = "design",
11
+ CONTENT = "content",
12
+ DESIGN_HEADER_STYLES = "designHeader",
13
+ DESIGN_TOAST_STYLES = "designToast",
14
+ DESIGN_DETAILS_STYLES = "designDetails",
15
+ DESIGN_QUICK_ACTIONS_STYLES = "designQuickActions",
16
+ DESIGN_CART_ITEMS_STYLES = "designCartItems"
13
17
  }
14
- export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
15
- export {};
18
+ export declare const getDefaultData: () => {
19
+ layout: {
20
+ selectorKey: orderSelectorKeysEnum;
21
+ width: {
22
+ value: string;
23
+ unit: number;
24
+ };
25
+ height: {
26
+ value: string;
27
+ unit: number;
28
+ property?: any;
29
+ propertyType?: any;
30
+ isReadOnly?: boolean | undefined;
31
+ parentRef?: string | undefined;
32
+ };
33
+ padding: import("../../interfaces/global").CSSPaddingValues | undefined;
34
+ margin: import("../../interfaces/global").CSSPaddingValues | undefined;
35
+ positionType: import("../../interfaces/global").CMSIBCommonInterface | undefined;
36
+ };
37
+ content: {
38
+ selectorKey: orderSelectorKeysEnum;
39
+ showHeader: {
40
+ value: boolean;
41
+ propertyType: CMSElementEditTypes;
42
+ };
43
+ showToastMessage: {
44
+ value: boolean;
45
+ propertyType: CMSElementEditTypes;
46
+ };
47
+ orderDetails: {
48
+ value: boolean;
49
+ propertyType: CMSElementEditTypes;
50
+ };
51
+ quickActions: {
52
+ value: boolean;
53
+ propertyType: CMSElementEditTypes;
54
+ };
55
+ cartItems: {
56
+ value: boolean;
57
+ propertyType: CMSElementEditTypes;
58
+ };
59
+ orderAttributes: {
60
+ value: boolean;
61
+ propertyType: CMSElementEditTypes;
62
+ };
63
+ };
64
+ design: {
65
+ selectorKey: orderSelectorKeysEnum;
66
+ designHeader: {
67
+ selectorKey: orderSelectorKeysEnum;
68
+ padding: import("../../interfaces/global").CSSPaddingValues | undefined;
69
+ margin: {
70
+ isAll: boolean;
71
+ sides: {
72
+ top: {
73
+ value: number;
74
+ unit: number;
75
+ };
76
+ right: {
77
+ value: number;
78
+ unit: number;
79
+ };
80
+ bottom: {
81
+ value: number;
82
+ unit: number;
83
+ };
84
+ left: {
85
+ value: number;
86
+ unit: number;
87
+ };
88
+ };
89
+ property: string;
90
+ propertyType: CMSElementEditTypes;
91
+ };
92
+ shadowColor: import("../../interfaces/global").CMSIBCommonInterface;
93
+ angle: import("../../interfaces/global").CMSIBSizeInterface;
94
+ spread: import("../../interfaces/global").CMSIBSizeInterface;
95
+ blur: import("../../interfaces/global").CMSIBSizeInterface;
96
+ showBorder: import("../../interfaces/global").CMSIBCommonInterface;
97
+ borderColor: import("../../interfaces/global").CMSIBCommonInterface;
98
+ borderStyle: import("../../interfaces/global").CMSIBCommonInterface;
99
+ borderPerSlide: import("../../interfaces/global").CSSPaddingValues;
100
+ borderRadius: import("../../interfaces/global").CSSPaddingValues;
101
+ backgroundColor: import("../../interfaces/global").CMSIBCommonInterface;
102
+ font: import("../../interfaces/global").CMSIBCommonInterface;
103
+ fontSize: import("../../interfaces/global").CMSIBSizeInterface;
104
+ textColor: import("../../interfaces/global").CMSIBCommonInterface;
105
+ bold: import("../../interfaces/global").CMSIBCommonInterface;
106
+ italic: import("../../interfaces/global").CMSIBCommonInterface;
107
+ linethrough: import("../../interfaces/global").CMSIBCommonInterface;
108
+ underline: import("../../interfaces/global").CMSIBCommonInterface;
109
+ textAlign: import("../../interfaces/global").CMSIBCommonInterface;
110
+ characterSpacing: import("../../interfaces/global").CMSIBSizeInterface;
111
+ lineHeight: import("../../interfaces/global").CMSIBSizeInterface;
112
+ };
113
+ designToast: {
114
+ selectorKey: orderSelectorKeysEnum;
115
+ padding: {
116
+ isAll: boolean;
117
+ sides: {
118
+ top: {
119
+ value: number;
120
+ unit: number;
121
+ };
122
+ right: {
123
+ value: number;
124
+ unit: number;
125
+ };
126
+ bottom: {
127
+ value: number;
128
+ unit: number;
129
+ };
130
+ left: {
131
+ value: number;
132
+ unit: number;
133
+ };
134
+ };
135
+ property: string;
136
+ propertyType: CMSElementEditTypes;
137
+ };
138
+ margin: {
139
+ isAll: boolean;
140
+ sides: {
141
+ top: {
142
+ value: number;
143
+ unit: number;
144
+ };
145
+ right: {
146
+ value: number;
147
+ unit: number;
148
+ };
149
+ bottom: {
150
+ value: number;
151
+ unit: number;
152
+ };
153
+ left: {
154
+ value: number;
155
+ unit: number;
156
+ };
157
+ };
158
+ property: string;
159
+ propertyType: CMSElementEditTypes;
160
+ };
161
+ shadowColor: import("../../interfaces/global").CMSIBCommonInterface;
162
+ angle: import("../../interfaces/global").CMSIBSizeInterface;
163
+ spread: import("../../interfaces/global").CMSIBSizeInterface;
164
+ blur: import("../../interfaces/global").CMSIBSizeInterface;
165
+ showBorder: import("../../interfaces/global").CMSIBCommonInterface;
166
+ borderColor: import("../../interfaces/global").CMSIBCommonInterface;
167
+ borderStyle: import("../../interfaces/global").CMSIBCommonInterface;
168
+ borderPerSlide: import("../../interfaces/global").CSSPaddingValues;
169
+ borderRadius: {
170
+ isAll: boolean;
171
+ sides: {
172
+ topLeft: {
173
+ value: number;
174
+ unit: number;
175
+ };
176
+ topRight: {
177
+ value: number;
178
+ unit: number;
179
+ };
180
+ bottomLeft: {
181
+ value: number;
182
+ unit: number;
183
+ };
184
+ bottomRight: {
185
+ value: number;
186
+ unit: number;
187
+ };
188
+ };
189
+ };
190
+ backgroundColor: {
191
+ value: {
192
+ hex: string;
193
+ rgb: {
194
+ r: string;
195
+ g: string;
196
+ b: string;
197
+ a: number;
198
+ };
199
+ };
200
+ property: string;
201
+ propertyType: CMSElementEditTypes;
202
+ parentRef: string;
203
+ };
204
+ font: import("../../interfaces/global").CMSIBCommonInterface;
205
+ fontSize: import("../../interfaces/global").CMSIBSizeInterface;
206
+ textColor: import("../../interfaces/global").CMSIBCommonInterface;
207
+ bold: import("../../interfaces/global").CMSIBCommonInterface;
208
+ italic: import("../../interfaces/global").CMSIBCommonInterface;
209
+ linethrough: import("../../interfaces/global").CMSIBCommonInterface;
210
+ underline: import("../../interfaces/global").CMSIBCommonInterface;
211
+ textAlign: import("../../interfaces/global").CMSIBCommonInterface;
212
+ characterSpacing: import("../../interfaces/global").CMSIBSizeInterface;
213
+ lineHeight: import("../../interfaces/global").CMSIBSizeInterface;
214
+ };
215
+ designDetails: {
216
+ selectorKey: orderSelectorKeysEnum;
217
+ padding: import("../../interfaces/global").CSSPaddingValues | undefined;
218
+ margin: import("../../interfaces/global").CSSPaddingValues | undefined;
219
+ shadowColor: import("../../interfaces/global").CMSIBCommonInterface;
220
+ angle: import("../../interfaces/global").CMSIBSizeInterface;
221
+ spread: import("../../interfaces/global").CMSIBSizeInterface;
222
+ blur: import("../../interfaces/global").CMSIBSizeInterface;
223
+ showBorder: import("../../interfaces/global").CMSIBCommonInterface;
224
+ borderColor: import("../../interfaces/global").CMSIBCommonInterface;
225
+ borderStyle: import("../../interfaces/global").CMSIBCommonInterface;
226
+ borderPerSlide: import("../../interfaces/global").CSSPaddingValues;
227
+ borderRadius: import("../../interfaces/global").CSSPaddingValues;
228
+ backgroundColor: {
229
+ value: {
230
+ hex: string;
231
+ rgb: {
232
+ r: string;
233
+ g: string;
234
+ b: string;
235
+ a: number;
236
+ };
237
+ };
238
+ property: string;
239
+ propertyType: CMSElementEditTypes;
240
+ parentRef: string;
241
+ };
242
+ font: import("../../interfaces/global").CMSIBCommonInterface;
243
+ fontSize: import("../../interfaces/global").CMSIBSizeInterface;
244
+ textColor: import("../../interfaces/global").CMSIBCommonInterface;
245
+ bold: import("../../interfaces/global").CMSIBCommonInterface;
246
+ italic: import("../../interfaces/global").CMSIBCommonInterface;
247
+ linethrough: import("../../interfaces/global").CMSIBCommonInterface;
248
+ underline: import("../../interfaces/global").CMSIBCommonInterface;
249
+ textAlign: import("../../interfaces/global").CMSIBCommonInterface;
250
+ characterSpacing: import("../../interfaces/global").CMSIBSizeInterface;
251
+ lineHeight: import("../../interfaces/global").CMSIBSizeInterface;
252
+ };
253
+ designQuickActions: {
254
+ selectorKey: orderSelectorKeysEnum;
255
+ padding: import("../../interfaces/global").CSSPaddingValues | undefined;
256
+ margin: {
257
+ isAll: boolean;
258
+ sides: {
259
+ top: {
260
+ value: number;
261
+ unit: number;
262
+ };
263
+ right: {
264
+ value: number;
265
+ unit: number;
266
+ };
267
+ bottom: {
268
+ value: number;
269
+ unit: number;
270
+ };
271
+ left: {
272
+ value: number;
273
+ unit: number;
274
+ };
275
+ };
276
+ property: string;
277
+ propertyType: CMSElementEditTypes;
278
+ };
279
+ shadowColor: import("../../interfaces/global").CMSIBCommonInterface;
280
+ angle: import("../../interfaces/global").CMSIBSizeInterface;
281
+ spread: import("../../interfaces/global").CMSIBSizeInterface;
282
+ blur: import("../../interfaces/global").CMSIBSizeInterface;
283
+ showBorder: import("../../interfaces/global").CMSIBCommonInterface;
284
+ borderColor: import("../../interfaces/global").CMSIBCommonInterface;
285
+ borderStyle: import("../../interfaces/global").CMSIBCommonInterface;
286
+ borderPerSlide: import("../../interfaces/global").CSSPaddingValues;
287
+ borderRadius: import("../../interfaces/global").CSSPaddingValues;
288
+ backgroundColor: {
289
+ value: {
290
+ hex: string;
291
+ rgb: {
292
+ r: string;
293
+ g: string;
294
+ b: string;
295
+ a: number;
296
+ };
297
+ };
298
+ property: string;
299
+ propertyType: CMSElementEditTypes;
300
+ parentRef: string;
301
+ };
302
+ font: import("../../interfaces/global").CMSIBCommonInterface;
303
+ fontSize: import("../../interfaces/global").CMSIBSizeInterface;
304
+ textColor: import("../../interfaces/global").CMSIBCommonInterface;
305
+ bold: import("../../interfaces/global").CMSIBCommonInterface;
306
+ italic: import("../../interfaces/global").CMSIBCommonInterface;
307
+ linethrough: import("../../interfaces/global").CMSIBCommonInterface;
308
+ underline: import("../../interfaces/global").CMSIBCommonInterface;
309
+ textAlign: import("../../interfaces/global").CMSIBCommonInterface;
310
+ characterSpacing: import("../../interfaces/global").CMSIBSizeInterface;
311
+ lineHeight: import("../../interfaces/global").CMSIBSizeInterface;
312
+ };
313
+ designCartItems: {
314
+ selectorKey: orderSelectorKeysEnum;
315
+ padding: import("../../interfaces/global").CSSPaddingValues | undefined;
316
+ margin: import("../../interfaces/global").CSSPaddingValues | undefined;
317
+ shadowColor: import("../../interfaces/global").CMSIBCommonInterface;
318
+ angle: import("../../interfaces/global").CMSIBSizeInterface;
319
+ spread: import("../../interfaces/global").CMSIBSizeInterface;
320
+ blur: import("../../interfaces/global").CMSIBSizeInterface;
321
+ showBorder: import("../../interfaces/global").CMSIBCommonInterface;
322
+ borderColor: import("../../interfaces/global").CMSIBCommonInterface;
323
+ borderStyle: import("../../interfaces/global").CMSIBCommonInterface;
324
+ borderPerSlide: import("../../interfaces/global").CSSPaddingValues;
325
+ borderRadius: import("../../interfaces/global").CSSPaddingValues;
326
+ backgroundColor: {
327
+ value: {
328
+ hex: string;
329
+ rgb: {
330
+ r: string;
331
+ g: string;
332
+ b: string;
333
+ a: number;
334
+ };
335
+ };
336
+ property: string;
337
+ propertyType: CMSElementEditTypes;
338
+ parentRef: string;
339
+ };
340
+ font: import("../../interfaces/global").CMSIBCommonInterface;
341
+ fontSize: import("../../interfaces/global").CMSIBSizeInterface;
342
+ textColor: import("../../interfaces/global").CMSIBCommonInterface;
343
+ bold: import("../../interfaces/global").CMSIBCommonInterface;
344
+ italic: import("../../interfaces/global").CMSIBCommonInterface;
345
+ linethrough: import("../../interfaces/global").CMSIBCommonInterface;
346
+ underline: import("../../interfaces/global").CMSIBCommonInterface;
347
+ textAlign: import("../../interfaces/global").CMSIBCommonInterface;
348
+ characterSpacing: import("../../interfaces/global").CMSIBSizeInterface;
349
+ lineHeight: import("../../interfaces/global").CMSIBSizeInterface;
350
+ };
351
+ };
352
+ };
@@ -103,7 +103,7 @@ export declare const getDefaultData: () => {
103
103
  property: string;
104
104
  propertyType: CMSElementEditTypes;
105
105
  };
106
- drodownWidth: {
106
+ dropdownWidth: {
107
107
  value: string;
108
108
  unit: number;
109
109
  property: string;
@@ -137,12 +137,8 @@ export declare const getDefaultData: () => {
137
137
  name: string;
138
138
  show: boolean;
139
139
  url: string;
140
- linkType: {
141
- value: string;
142
- };
143
- openIn: {
144
- value: string;
145
- };
140
+ linkType: string;
141
+ openIn: string;
146
142
  }[];
147
143
  propertyType: CMSElementEditTypes;
148
144
  };
@@ -1,5 +1,10 @@
1
- declare const SVGLibrary: {
1
+ declare const SVGLibrary: ({
2
2
  name: string;
3
3
  code: string;
4
- }[];
4
+ svg?: undefined;
5
+ } | {
6
+ name: string;
7
+ svg: string;
8
+ code?: undefined;
9
+ })[];
5
10
  export default SVGLibrary;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sc-360-v2/storefront-cms-library",
3
- "version": "0.2.95",
3
+ "version": "0.2.96",
4
4
  "main": "/dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {