@sc-360-v2/storefront-cms-library 0.1.91 → 0.1.92

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.
Files changed (63) hide show
  1. package/README.md +12 -12
  2. package/dist/builder.js +1 -1
  3. package/dist/bulk-variant-picker.scss +24 -0
  4. package/dist/cart.scss +18 -0
  5. package/dist/container.scss +11 -1
  6. package/dist/gallery-slider-temp.scss +12 -1
  7. package/dist/global.scss +4 -0
  8. package/dist/globals.scss +94 -94
  9. package/dist/icons.js +1 -1
  10. package/dist/index.js +1 -1
  11. package/dist/lightbox.scss +62 -0
  12. package/dist/modal.module.scss +121 -0
  13. package/dist/payment-methods.scss +7 -27
  14. package/dist/product-actions.scss +125 -141
  15. package/dist/product-basic-elements.scss +98 -37
  16. package/dist/product-price.scss +369 -1
  17. package/dist/product.scss +182 -0
  18. package/dist/profile.scss +18 -0
  19. package/dist/quantity-selector.scss +1 -1
  20. package/dist/section.scss +30 -0
  21. package/dist/stack.scss +72 -0
  22. package/dist/text-editor.scss +3 -0
  23. package/dist/types/builder/elements/cart/index.d.ts +26 -0
  24. package/dist/types/builder/elements/common.d.ts +1 -1
  25. package/dist/types/builder/elements/gallery-slider/index.d.ts +2 -2
  26. package/dist/types/builder/elements/lightbox/index.d.ts +36 -19
  27. package/dist/types/builder/elements/product/index.d.ts +30 -0
  28. package/dist/types/builder/elements/profile/index.d.ts +26 -0
  29. package/dist/types/builder/elements/repeater/index.d.ts +61 -0
  30. package/dist/types/builder/enums/index.d.ts +67 -3
  31. package/dist/types/builder/index.d.ts +5 -1
  32. package/dist/types/builder/tools/element-edit/amountEstimator.d.ts +105 -2
  33. package/dist/types/builder/tools/element-edit/bulkVariantPicker.d.ts +2 -1
  34. package/dist/types/builder/tools/element-edit/button.d.ts +3 -1
  35. package/dist/types/builder/tools/element-edit/common.d.ts +2 -0
  36. package/dist/types/builder/tools/element-edit/container.d.ts +2 -1
  37. package/dist/types/builder/tools/element-edit/gallery-slider.d.ts +9 -0
  38. package/dist/types/builder/tools/element-edit/image.d.ts +2 -1
  39. package/dist/types/builder/tools/element-edit/index.d.ts +7 -1
  40. package/dist/types/builder/tools/element-edit/menu.d.ts +53 -0
  41. package/dist/types/builder/tools/element-edit/paymentMethods.d.ts +5 -2
  42. package/dist/types/builder/tools/element-edit/pickupLocations.d.ts +65 -1
  43. package/dist/types/builder/tools/element-edit/product-image.d.ts +10 -0
  44. package/dist/types/builder/tools/element-edit/product.d.ts +17 -0
  45. package/dist/types/builder/tools/element-edit/productActions.d.ts +4 -1
  46. package/dist/types/builder/tools/element-edit/productHighlights.d.ts +2 -1
  47. package/dist/types/builder/tools/element-edit/productInventory.d.ts +96 -2
  48. package/dist/types/builder/tools/element-edit/productPrice.d.ts +2 -1
  49. package/dist/types/builder/tools/element-edit/productPromotions.d.ts +115 -2
  50. package/dist/types/builder/tools/element-edit/quantitySelector.d.ts +2 -1
  51. package/dist/types/builder/tools/element-edit/repeater.d.ts +38 -0
  52. package/dist/types/builder/tools/element-edit/repeaterItem.d.ts +9 -0
  53. package/dist/types/builder/tools/element-edit/shippingEstimator.d.ts +2 -1
  54. package/dist/types/builder/tools/element-edit/stack.d.ts +2 -1
  55. package/dist/types/builder/tools/element-edit/storeLocations.d.ts +63 -1
  56. package/dist/types/builder/tools/element-edit/text.d.ts +2 -1
  57. package/dist/types/builder/tools/element-edit/uomSelector.d.ts +123 -4
  58. package/dist/types/builder/tools/element-edit/variantPicker.d.ts +149 -2
  59. package/dist/types/builder/tools/element-edit/volumePricing.d.ts +2 -1
  60. package/dist/types/global/types.d.ts +1 -0
  61. package/dist/variant-picker.scss +24 -0
  62. package/dist/volume-pricing.scss +3 -2
  63. package/package.json +1 -1
@@ -0,0 +1,182 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+
4
+ [data-div-type="element"] {
5
+ &[data-element-type="product"] {
6
+ // width: var(--_sf-nw-wh, var(--_tst-lt-wh));
7
+ width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
8
+ height: var(--_ctm-lt-ht) !important;
9
+ margin: var(--_ctm-lt-mn, --_tst-lt-mn);
10
+ // aspect-ratio: 1 / var(--_sf-aspect-ratio);
11
+
12
+ & > .wrapper {
13
+ // width: 100%;
14
+ // height: 100%;
15
+ }
16
+
17
+ &[data-show-shadow="false"] {
18
+ --_show-shadow: none;
19
+ }
20
+ &[data-icon-position="left"] {
21
+ --_sf-fd-bn: row;
22
+ }
23
+ &[data-icon-position="right"] {
24
+ --_sf-fd-bn: row-reverse;
25
+ }
26
+ &[data-icon-position="center"] {
27
+ --_sf-fd-bn: row;
28
+ }
29
+
30
+ &:hover {
31
+ --_sf-hr-bd-cr: var(--_ctm-dn-hr-se-bd-cr, var(--_tst-dn-hr-se-bd-cr));
32
+ --_sf-hr-br-cr: var(--_ctm-dn-hr-se-br-cr, var(--_tst-dn-hr-se-br-cr));
33
+ --_sf-hr-br-st: var(--_ctm-dn-hr-se-br-se, var(--_tst-dn-hr-se-br-se));
34
+ --_sf-hr-br-wt: var(--_ctm-dn-hr-se-br-wh, var(--_tst-dn-hr-se-br-wh));
35
+ --_sf-hr-br-br: var(--_ctm-dn-hr-se-br-rs, var(--_tst-dn-hr-se-br-rs));
36
+ --_sf-hr-bx-sw: var(--_ctm-dn-hr-se-sw-ae, var(--_tst-dn-hr-se-sw-ae))
37
+ var(--_ctm-dn-hr-se-sw-br, var(--_tst-dn-hr-se-sw-br))
38
+ var(--_ctm-dn-hr-se-sw-sd, var(--_tst-dn-hr-se-sw-sd))
39
+ var(--_ctm-dn-hr-se-sw-cr, var(--_tst-dn-hr-se-sw-cr));
40
+
41
+ --_sf-hr-fc: var(--_ctm-dn-hr-se-cr, var(--_tst-dn-hr-se-cr));
42
+ --_sf-hr-ff: var(--_ctm-dn-hr-se-ft-fy, var(--_tst-dn-hr-se-ft-fy));
43
+ --_sf-hr-fs: var(--_ctm-dn-hr-se-ft-se, var(--_tst-dn-hr-se-ft-se));
44
+ --_sf-hr-fw: var(--_ctm-dn-hr-se-ft-wt, var(--_tst-dn-hr-se-ft-wt));
45
+ --_sf-hr-ft: var(--_ctm-dn-hr-se-ft-se-ic, var(--_tst-dn-hr-se-ft-se-ic));
46
+ --_sf-hr-ta: var(--_ctm-dn-hr-se-tt-an, var(--_tst-dn-hr-se-tt-an));
47
+ --_sf-hr-ls: var(--_ctm-dn-hr-se-lr-sg, var(--_tst-dn-hr-se-lr-sg));
48
+ --_sf-hr-lh: var(--_ctm-dn-hr-se-le-ht, var(--_tst-dn-hr-se-le-ht));
49
+
50
+ --_sf-hr-ic-wt: var(--_ctm-dn-hr-se-in-se, var(--_tst-dn-hr-se-in-se));
51
+ --_sf-hr-ic-ht: var(--_ctm-dn-hr-se-in-se, var(--_tst-dn-hr-se-in-se));
52
+ --_sf-hr-ic-st: var(--_ctm-dn-hr-se-in-c1, var(--_tst-dn-hr-se-in-c1));
53
+ --_sf-hr-tt-dn: var(--_ctm-dn-hr-se-ue, var(--_tst-dn-hr-se-in-c1));
54
+
55
+ &[data-hover-show-shadow="false"] {
56
+ --_hover-show-shadow: none;
57
+ }
58
+ &[data-hover-show-icon="false"] {
59
+ --_hover-show-icon: none;
60
+ }
61
+ }
62
+ &[data-show-icon="false"] {
63
+ --_show-icon: none;
64
+ }
65
+ &[data-element-style="Icon"] {
66
+ &[data-icon-position="left"] {
67
+ --_sf-jc: start;
68
+ }
69
+ &[data-icon-position="right"] {
70
+ --_sf-jc: end;
71
+ }
72
+ &[data-icon-position="center"] {
73
+ --_sf-jc: center;
74
+ }
75
+ }
76
+
77
+ .btn__with__text {
78
+ background-color: var(--_sf-hr-bd-cr, var(--_ctm-dn-dt-se-bd-cr, var(--_tst-dn-dt-se-bd-cr)));
79
+ // padding: var(--_ctm-lt-pg, var(--_tst-lt-pg));
80
+ padding: var(--_sf-element-vt-pd) var(--_sf-element-hr-pd);
81
+ display: flex;
82
+ flex-direction: var(--_sf-fd-bn);
83
+ align-items: center;
84
+ // justify-content: var(--_sf-jc, center);
85
+ justify-content: var(--_ctm-lt-tt-an, center);
86
+ gap: var(--_ctm-lt-gp, var(--_tst-lt-gp));
87
+
88
+ width: 100%;
89
+ height: 100%;
90
+
91
+ border-radius: var(--_sf-hr-br-br, var(--_ctm-dn-dt-se-br-rs, var(--s_tst-dn-dt-se-br-rs)));
92
+ box-shadow: var(
93
+ --_hover-show-shadow,
94
+ var(
95
+ --_sf-hr-bx-sw,
96
+ var(
97
+ --_show-shadow,
98
+ var(--_ctm-dn-dt-se-sw-ae, var(--_tst-dn-dt-se-sw-ae))
99
+ var(--_ctm-dn-dt-se-sw-br, var(--_tst-dn-dt-se-sw-br))
100
+ var(--_ctm-dn-dt-se-sw-sd, var(--_tst-dn-dt-se-sw-sd))
101
+ var(--_ctm-dn-dt-se-sw-cr, var(--_tst-dn-dt-se-sw-cr))
102
+ )
103
+ )
104
+ );
105
+ &[data-show-border="true"] {
106
+ border-color: var(--_sf-hr-br-cr, var(--_ctm-dn-dt-se-br-cr, var(--_tst-dn-dt-se-br-cr)));
107
+ border-style: var(--_sf-hr-br-st, var(--_ctm-dn-dt-se-br-se, var(--_tst-dn-dt-se-br-se)));
108
+ border-width: var(--_sf-hr-br-wt, var(--_ctm-dn-dt-se-br-wh, var(--_tst-dn-dt-se-br-wh)));
109
+ }
110
+ // &.btn__with__text__icon {
111
+ // justify-content: center;
112
+ // // gap: 10px;
113
+ // }
114
+ // & > span {
115
+ // align-items: center;
116
+ // justify-content: center;
117
+ // &.txt {
118
+ // display: flex;
119
+ // color: var(--_sf-hr-fc, var(--_ctm-dn-dt-se-cr, var(--_tst-dn-dt-se-cr)));
120
+ // font-family: var(--_sf-hr-ff, var(--_ctm-dn-dt-se-ft-fy, var(--_tst-dn-dt-se-ft-fy))),
121
+ // sans-serif;
122
+ // font-size: var(--_sf-hr-fs, var(--_ctm-dn-dt-se-ft-se, var(--_tst-dn-dt-se-ft-se)));
123
+ // font-weight: var(--_sf-hr-fw, var(--_ctm-dn-dt-se-ft-wt, var(--_tst-dn-dt-se-ft-wt)));
124
+ // font-style: var(
125
+ // --_sf-hr-ft,
126
+ // var(--_ctm-dn-dt-se-ft-se-ic, var(--_tst-dn-dt-se-ft-se-ic))
127
+ // );
128
+ // text-align: var(--_sf-hr-ta, var(--_ctm-dn-dt-se-tt-an, var(--_tst-dn-dt-se-tt-an)));
129
+ // letter-spacing: var(--_sf-hr-ls, var(--_ctm-dn-dt-se-lr-sg, var(--_tst-dn-dt-se-lr-sg)));
130
+ // line-height: var(--_sf-hr-lh, var(--_ctm-dn-dt-se-le-ht, var(--_tst-dn-dt-se-le-ht)));
131
+ // text-decoration: var(--_sf-hr-tt-dn, var(--_ctm-dn-dt-se-ue, var(--_tst-dn-dt-se-le-ht)));
132
+ // // --_sf-hr-tt-dn: var(--_ctm-dn-hr-se-ue, var(--_tst-dn-hr-se-in-c1));
133
+ // }
134
+
135
+ // &.icon {
136
+ // display: var(--_hover-show-icon, var(--_show-icon, flex));
137
+ // svg {
138
+ // width: var(--_sf-hr-ic-wt, var(--_ctm-dn-dt-se-in-se, var(--_tst-dn-dt-se-in-se)));
139
+ // height: var(--_sf-hr-ic-ht, var(--_ctm-dn-dt-se-in-se, var(--_tst-dn-dt-se-in-se)));
140
+ // path {
141
+ // stroke: var(--_sf-hr-ic-st, var(--_ctm-dn-dt-se-in-c1, var(--_tst-dn-dt-se-in-c1)));
142
+ // }
143
+ // }
144
+ // }
145
+ // &[data-element-style="Text"] {
146
+ // display: inline-block;
147
+ // width: 100%;
148
+ // }
149
+ // }
150
+
151
+ .txt {
152
+ display: flex;
153
+ color: var(--_sf-hr-fc, var(--_ctm-dn-dt-se-cr, var(--_tst-dn-dt-se-cr)));
154
+ font-family: var(--_sf-hr-ff, var(--_ctm-dn-dt-se-ft-fy, var(--_tst-dn-dt-se-ft-fy))),
155
+ sans-serif;
156
+ font-size: var(--_sf-hr-fs, var(--_ctm-dn-dt-se-ft-se, var(--_tst-dn-dt-se-ft-se)));
157
+ font-weight: var(--_sf-hr-fw, var(--_ctm-dn-dt-se-ft-wt, var(--_tst-dn-dt-se-ft-wt)));
158
+ font-style: var(--_sf-hr-ft, var(--_ctm-dn-dt-se-ft-se-ic, var(--_tst-dn-dt-se-ft-se-ic)));
159
+ text-align: var(--_sf-hr-ta, var(--_ctm-dn-dt-se-tt-an, var(--_tst-dn-dt-se-tt-an)));
160
+ letter-spacing: var(--_sf-hr-ls, var(--_ctm-dn-dt-se-lr-sg, var(--_tst-dn-dt-se-lr-sg)));
161
+ line-height: var(--_sf-hr-lh, var(--_ctm-dn-dt-se-le-ht, var(--_tst-dn-dt-se-le-ht)));
162
+ text-decoration: var(--_sf-hr-tt-dn, var(--_ctm-dn-dt-se-ue, var(--_tst-dn-dt-se-le-ht)));
163
+ // --_sf-hr-tt-dn: var(--_ctm-dn-hr-se-ue, var(--_tst-dn-hr-se-in-c1));
164
+ }
165
+
166
+ .icon {
167
+ display: var(--_hover-show-icon, var(--_show-icon, flex));
168
+ svg {
169
+ width: var(--_sf-hr-ic-wt, var(--_ctm-dn-dt-se-in-se, var(--_tst-dn-dt-se-in-se)));
170
+ height: var(--_sf-hr-ic-ht, var(--_ctm-dn-dt-se-in-se, var(--_tst-dn-dt-se-in-se)));
171
+ path {
172
+ stroke: var(--_sf-hr-ic-st, var(--_ctm-dn-dt-se-in-c1, var(--_tst-dn-dt-se-in-c1)));
173
+ }
174
+ }
175
+ }
176
+ [data-element-style="Text"] {
177
+ display: inline-block;
178
+ width: 100%;
179
+ }
180
+ }
181
+ }
182
+ }
@@ -0,0 +1,18 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+
4
+ [data-div-type="element"] {
5
+ &[data-element-type="profile"] {
6
+ width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
7
+ margin: var(--_ctm-lt-mn, --_tst-lt-mn);
8
+ aspect-ratio: 1 / var(--_sf-aspect-ratio);
9
+
10
+ & > .wrapper {
11
+ width: 100%;
12
+ height: 100%;
13
+ }
14
+ &[data-show-shadow="false"] {
15
+ --_show-shadow: none;
16
+ }
17
+ }
18
+ }
@@ -258,7 +258,7 @@
258
258
  text-align: left;
259
259
  text-underline-position: from-font;
260
260
  text-decoration-skip-ink: none;
261
- color: #1f1930;
261
+ color: red;
262
262
  }
263
263
  }
264
264
  }
package/dist/section.scss CHANGED
@@ -56,5 +56,35 @@ section {
56
56
  width: 100%;
57
57
  }
58
58
  }
59
+
60
+ div[data-div-type="element"] {
61
+ & > .wrapper {
62
+ grid-area: 1/1/2/2 !important;
63
+ }
64
+ &:is([data-element-type="stack"].hrz > .wrapper > [data-div-type="element"]) {
65
+ &:is([data-element-type="stack"]) {
66
+ width: max(
67
+ 0.5px,
68
+ calc(var(--_ctm-sta-ele-nw-wh-vl) / 100) *
69
+ (var(--_cms-scaling-factor) - var(--_cms-scrollbar-width))
70
+ );
71
+ }
72
+ &:is([data-element-type="container"]) {
73
+ width: max(
74
+ 0.5px,
75
+ calc(var(--_ctm-con-ele-nw-wh-vl) / 100) *
76
+ (var(--_cms-scaling-factor) - var(--_cms-scrollbar-width))
77
+ );
78
+ }
79
+
80
+ &:not([data-element-type="container"], [data-element-type="stack"]) {
81
+ width: max(
82
+ 0.5px,
83
+ calc(var(--_ctm-ele-nw-wh-vl) / 100) *
84
+ (var(--_cms-scaling-factor) - var(--_cms-scrollbar-width))
85
+ );
86
+ }
87
+ }
88
+ }
59
89
  }
60
90
  }
@@ -0,0 +1,72 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+ [data-div-type="element"] {
4
+ &[data-element-type="stack"] {
5
+ // min-width: var(--_sf-sta-nw-wh) !important;
6
+ // min-height: var(--_ctm-sta-lt-ht, 100px) !important;
7
+ min-width: 100px;
8
+ min-height: 100px;
9
+ margin: var(--_ctm-sta-lt-mn, var(--_ctm-lt-mn, --_tst-lt-mn));
10
+ background: var(--_ctm-sta-dn-bd-cr);
11
+ display: var(--_d-grid);
12
+
13
+ border-color: var(--_hide-grid-border, var(--_ctm-sta-dn-br-cr, var(--_tst-dn-dt-se-br-cr)));
14
+ border-style: var(--_hide-grid-border, var(--_ctm-sta-dn-br-se, var(--_tst-dn-dt-se-br-se)));
15
+ border-width: var(--_hide-grid-border, var(--_ctm-sta-dn-br-wh, var(--_tst-dn-dt-se-br-wh)));
16
+ border-radius: var(--_ctm-sta-dn-br-rs, var(--_tst-dn-dt-se-br-rs));
17
+ grid-template-columns: 100%;
18
+
19
+ &.vtl {
20
+ // width: var(--_sf-sta-nw-wh, auto);
21
+ width: calc(1% * var(--_ctm-sta-ele-nw-wh-vl, auto));
22
+ min-width: 100px;
23
+ & > .wrapper {
24
+ flex-direction: column;
25
+ width: 100%;
26
+ height: 100%;
27
+ // justify-content: var(--_ctm-sta-lt-jy-ct);
28
+ // align-items: var(--_ctm-sta-lt-an-is);
29
+ align-items: var(--_ctm-sta-lt-jy-ct);
30
+ }
31
+ }
32
+ &.hrz {
33
+ // min-width: var(--_sf-sta-nw-wh) !important;
34
+ // min-width: 100px !important;
35
+ min-height: 100px;
36
+ width: max-content;
37
+ // height: var(--_ctm-sta-lt-ht, 100px);
38
+ // width: var(--_sf-sta-nw-wh, auto);
39
+ & > .wrapper {
40
+ width: max-content;
41
+ // width: 100%;
42
+ height: 100%;
43
+ flex-direction: row;
44
+ // justify-content: var(--_ctm-sta-lt-an-is);
45
+ align-items: var(--_ctm-sta-lt-an-is);
46
+ }
47
+ }
48
+
49
+ & > div {
50
+ &.wrapper {
51
+ // width: 100%;
52
+ padding: var(--_ctm-sta-lt-pg);
53
+ display: var(--_d-flex);
54
+ gap: var(--_ctm-sta-lt-im-gp);
55
+
56
+ // border-color: var(
57
+ // --_hide-grid-border,
58
+ // var(--_ctm-sta-dn-br-cr, var(--_tst-dn-dt-se-br-cr))
59
+ // );
60
+ // border-style: var(
61
+ // --_hide-grid-border,
62
+ // var(--_ctm-sta-dn-br-se, var(--_tst-dn-dt-se-br-se))
63
+ // );
64
+ // border-width: var(
65
+ // --_hide-grid-border,
66
+ // var(--_ctm-sta-dn-br-wh, var(--_tst-dn-dt-se-br-wh))
67
+ // );
68
+ // border-radius: var(--_ctm-sta-dn-br-rs, var(--_tst-dn-dt-se-br-rs));
69
+ }
70
+ }
71
+ }
72
+ }
@@ -326,3 +326,6 @@ $chip-remove-color: rgb(0, 54, 172);
326
326
  left: 260px !important;
327
327
  top: 200px !important;
328
328
  }
329
+ .fr-popup.fr-desktop.fr-inline.fr-above {
330
+ z-index: 999999 !important;
331
+ }
@@ -0,0 +1,26 @@
1
+ import { CMSHTMLAttributes } from "../../../global/attributes";
2
+ import { CommonStyleProperties } from "../../../global/style-properties";
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 CartStyleProperties 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: () => CartStyleProperties;
18
+ export interface CMSCartInterface extends Omit<CMSElementInterface, "attributes"> {
19
+ attributes: {
20
+ HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
21
+ BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
22
+ CUSTOM: any;
23
+ };
24
+ styles: CartStyleProperties;
25
+ childrenStyles?: CommonStyleProperties;
26
+ }
@@ -9,7 +9,7 @@ export interface BuilderAttributes {
9
9
  dataElementSubType?: string;
10
10
  dataChildCount?: string | number;
11
11
  dataDropElement?: string | number;
12
- dataElementSubChild?: string | number;
12
+ dataElementSubChild?: string | number | any;
13
13
  }
14
14
  export interface CMSElementAttributes {
15
15
  HTML?: CMSHTMLAttributes;
@@ -1,10 +1,9 @@
1
1
  import { CommonStyleProperties } from "../../../global/style-properties";
2
2
  import { CMSHTMLAttributes } from "../../../global/attributes";
3
- import { AlignSelfValue, BoxSizingValue, GlobalImageAttributes, GridAreaValue, HeightValue, ImageBuilderAttributes, JustifySelfValue, MarginValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
3
+ import { AlignSelfValue, BoxSizingValue, GlobalImageAttributes, GridAreaValue, ImageBuilderAttributes, JustifySelfValue, MarginValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
4
4
  import { BuilderAttributes, CMSElementInterface } from "../common";
5
5
  export interface GallerySliderStyleProperties extends CommonStyleProperties {
6
6
  minHeight?: MinHeightValue;
7
- height?: HeightValue;
8
7
  minWidth?: MinWidthValue;
9
8
  maxWidth?: MaxWidthValue;
10
9
  maxHeight?: MaxHeightValue;
@@ -27,4 +26,5 @@ export interface CMSGallerySliderInterface extends Omit<CMSElementInterface, "at
27
26
  };
28
27
  styles: GallerySliderStyleProperties;
29
28
  childrenStyles?: CommonStyleProperties;
29
+ isMaximized?: boolean;
30
30
  }
@@ -1,26 +1,43 @@
1
1
  import { CMSHTMLAttributes } from "../../../global/attributes";
2
2
  import { CommonStyleProperties } from "../../../global/style-properties";
3
- import { AlignSelfValue, BoxSizingValue, GlobalImageAttributes, GridAreaValue, HeightValue, ImageBuilderAttributes, JustifySelfValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
4
- import { BuilderAttributes, CMSElementInterface } from "../common";
3
+ import { DisplayValue, ResponsiveBehaviourTypes } from "../../../global/types";
4
+ import { BuilderAttributes } from "../common";
5
5
  export interface LightboxStyleProperties 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;
6
+ minHeight: string;
7
+ minWidth: string;
8
+ maxWidth: string;
9
+ maxHeight: string;
10
+ gridArea: string;
11
+ display: DisplayValue;
12
+ boxSizing: string;
13
+ rowGap: string;
14
+ columnGap: string;
15
+ gridTemplateRows: string;
16
+ gridTemplateColumns: string;
16
17
  }
17
18
  export declare const getDefaultStyles: () => LightboxStyleProperties;
18
- export interface CMSLightboxInterface extends Omit<CMSElementInterface, "attributes"> {
19
- attributes: {
20
- HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
21
- BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
22
- CUSTOM: any;
19
+ export interface CommonLightboxElementAttributes extends CMSHTMLAttributes {
20
+ role?: string;
21
+ ariaLabel?: string;
22
+ ariaDescribedBy?: string;
23
+ id?: string;
24
+ className?: string;
25
+ lang?: string;
26
+ dataMeta?: string;
27
+ }
28
+ export interface CMSLightboxInterface {
29
+ id?: string | number;
30
+ uniqueKey?: string | number;
31
+ attributes?: {
32
+ BUILDER?: Pick<BuilderAttributes, "dataDivType" | "dataType" | "dataElementType" | "dataDropElement" | "dataElementSubChild">;
33
+ HTML?: CommonLightboxElementAttributes;
34
+ CUSTOM?: any;
23
35
  };
24
- styles: LightboxStyleProperties;
25
- childrenStyles?: CommonStyleProperties;
36
+ styles?: LightboxStyleProperties;
37
+ editedStyles?: CommonStyleProperties;
38
+ responsiveBehaviour: ResponsiveBehaviourTypes;
39
+ children: any;
40
+ childIds: any[];
41
+ previewImage?: string;
42
+ isMaximized?: boolean;
26
43
  }
@@ -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 ProductStyleProperties 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: () => ProductStyleProperties;
22
+ export interface CMSProductInterface extends Omit<CMSElementInterface, "attributes"> {
23
+ attributes: {
24
+ HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
25
+ BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
26
+ CUSTOM: any;
27
+ };
28
+ styles: ProductStyleProperties;
29
+ childrenStyles?: CommonStyleProperties;
30
+ }
@@ -0,0 +1,26 @@
1
+ import { CMSHTMLAttributes } from "../../../global/attributes";
2
+ import { CommonStyleProperties } from "../../../global/style-properties";
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 ProfileStyleProperties 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: () => ProfileStyleProperties;
18
+ export interface CMSProfileInterface extends Omit<CMSElementInterface, "attributes"> {
19
+ attributes: {
20
+ HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
21
+ BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
22
+ CUSTOM: any;
23
+ };
24
+ styles: ProfileStyleProperties;
25
+ childrenStyles?: CommonStyleProperties;
26
+ }
@@ -0,0 +1,61 @@
1
+ import { CMSHTMLAttributes } from "../../../global/attributes";
2
+ import { CommonStyleProperties } from "../../../global/style-properties";
3
+ import { DisplayValue, ResponsiveBehaviourTypes } from "../../../global/types";
4
+ import { BuilderAttributes } from "../common";
5
+ export interface RepeaterStyleProperties extends CommonStyleProperties {
6
+ minHeight: string;
7
+ minWidth: string;
8
+ maxWidth: string;
9
+ maxHeight: string;
10
+ gridArea: string;
11
+ display: DisplayValue;
12
+ boxSizing: string;
13
+ }
14
+ export declare const getDefaultStyles: () => RepeaterStyleProperties;
15
+ export declare const getDefaultStylesV2: () => RepeaterStyleProperties & {
16
+ gridTemplateRows: string;
17
+ gridTemplateColumns: string;
18
+ };
19
+ export interface CommonRepeaterElementAttributes extends CMSHTMLAttributes {
20
+ role?: string;
21
+ ariaLabel?: string;
22
+ ariaDescribedBy?: string;
23
+ id?: string;
24
+ className?: string;
25
+ lang?: string;
26
+ dataMeta?: string;
27
+ }
28
+ export interface RepeaterElementInterface {
29
+ id?: string | number;
30
+ uniqueKey?: string | number;
31
+ attributes?: {
32
+ BUILDER?: Pick<BuilderAttributes, "dataDivType" | "dataType" | "dataElementType" | "dataDropElement">;
33
+ HTML?: CommonRepeaterElementAttributes;
34
+ CUSTOM?: any;
35
+ };
36
+ styles?: RepeaterStyleProperties;
37
+ editedStyles?: CommonStyleProperties;
38
+ responsiveBehaviour: ResponsiveBehaviourTypes;
39
+ children: CMSRepeaterChildrenContainer;
40
+ childIds: any[];
41
+ previewImage?: string;
42
+ isMaximized?: boolean;
43
+ }
44
+ export interface RepeaterItemElementAttributes {
45
+ id?: string | number;
46
+ uniqueKey?: string | number;
47
+ attributes?: {
48
+ BUILDER?: Pick<BuilderAttributes, "dataDivType" | "dataType" | "dataElementType" | "dataDropElement" | "dataElementSubChild">;
49
+ HTML?: CommonRepeaterElementAttributes;
50
+ CUSTOM?: any;
51
+ };
52
+ styles?: RepeaterStyleProperties;
53
+ editedStyles?: CommonStyleProperties;
54
+ responsiveBehaviour: ResponsiveBehaviourTypes;
55
+ children: any;
56
+ childIds: any[];
57
+ previewImage?: string;
58
+ }
59
+ export interface CMSRepeaterChildrenContainer {
60
+ [key: string]: RepeaterItemElementAttributes;
61
+ }
@@ -38,7 +38,11 @@ export declare enum CMSToolIdTypes {
38
38
  cmsAddElementBodyLayer = "data-global-temp-body",
39
39
  cmsIframePreview = "cms-iframe-preview",
40
40
  cmsIframeMainElement = "cms-iframe-preview-main",
41
- duplicateElement = "cms-element-duplicate"
41
+ duplicateElement = "cms-element-duplicate",
42
+ addGlobalSectionsPopup = "cms-add-global-sections-popup",
43
+ containerElement = "div[data-element-type='container']",
44
+ repeaterWrapper = "cms-repeater-wrapper",
45
+ repeaterItemWrapper = "cms-repeater-item-wrapper"
42
46
  }
43
47
  export declare enum CMSElementSelectors {
44
48
  iframeSelector = "iframe[data-title='iframe__playground']",
@@ -62,6 +66,7 @@ export declare enum CMSElementSelectors {
62
66
  addElementComponentSelector = "[data-cms-tool='cms-add-element-component']",
63
67
  playgroundWrapper = "[data-cms-tool='playground_wrapper']",
64
68
  addElementPopup = "[data-cms-tool='cms-add-element-popup']",
69
+ addGlobalSectionsPopup = "[data-cms-tool='cms-add-global-sections-popup']",
65
70
  addGridButtonSelector = "button[data-cms-tool='add-grid-button']",
66
71
  customCodeModalSelectr = "div[data-cms-tool='cms-custom-code-modal']",
67
72
  playgroundMain = "main[data-cms-tool='cms-playground-main']",
@@ -78,7 +83,9 @@ export declare enum CMSElementSelectors {
78
83
  cmsAddElementBodyLayer = "div[data-cms-tool='data-global-temp-body']",
79
84
  duplicateElement = "div[data-cms-tool='cms-element-duplicate']",
80
85
  stackWrapper = "div[data-div-type='cms-stack-wrapper']",
81
- containerElement = "div[data-element-type='container']"
86
+ containerElement = "div[data-element-type='container']",
87
+ repeaterElement = "div[data-element-type='repeater']",
88
+ repeaterItemElement = "div[data-element-type='repeater-item']"
82
89
  }
83
90
  export declare enum CMSToolAttributes {
84
91
  id = "data-cms-tool",
@@ -110,7 +117,8 @@ export declare enum CMSToolAttributes {
110
117
  export declare enum CMSElementEditTypes {
111
118
  CSS = "css",
112
119
  TOOL = "tool",
113
- CONTROLS = "controls"
120
+ CONTROLS = "controls",
121
+ CONTENT = "content"
114
122
  }
115
123
  export declare enum CMSCSSUnitTypesEnums {
116
124
  PIXELS = 1,
@@ -128,3 +136,59 @@ export declare enum CMSStackDisplayTypeEnum {
128
136
  HORIZONTAL = "horizontal",
129
137
  VERTICAL = "vertical"
130
138
  }
139
+ export declare const CMSElementsListEnum: {
140
+ BUTTON: string;
141
+ BUTTON_THEME: string;
142
+ PAGE: string;
143
+ SECTION: string;
144
+ CODE: string;
145
+ IMAGE: string;
146
+ GRID: string;
147
+ TAB: string;
148
+ VIDEO: string;
149
+ SLIDE_SHOW_LAYOUTER: string;
150
+ CODEEDITOR: string;
151
+ EMBED: string;
152
+ TABLE: string;
153
+ SLIDER: string;
154
+ GALLERY_SLIDER: string;
155
+ SOCIAL: string;
156
+ FAQ: string;
157
+ TEXT: string;
158
+ SCROLL: string;
159
+ IMAGE_HOTSPOT: string;
160
+ COUNTDOWN: string;
161
+ MAP: string;
162
+ CONTAINER: string;
163
+ PRODUCT_PRICE: string;
164
+ PRODUCT_ACTIONS: string;
165
+ VOLUME_PRICING: string;
166
+ PRODUCT_INVENTORY: string;
167
+ STORE_LOCATIONS: string;
168
+ PICKUP_LOCATIONS: string;
169
+ PRODUCT_HIGHLIGHTS: string;
170
+ PAYMENT_METHODS: string;
171
+ SHIPPING_ESTIMATOR: string;
172
+ PRODUCT_PROMOTIONS: string;
173
+ AMOUNT_ESTIMATOR: string;
174
+ QUANTITY_SELECTOR: string;
175
+ STACK: string;
176
+ UOM_SELECTOR: string;
177
+ VARIANT_PICKER: string;
178
+ BULK_VARIANT_PICKER: string;
179
+ PRODUCT_IMAGE: string;
180
+ PRODUCT_NAME: string;
181
+ PRODUCT_DESCRIPTION: string;
182
+ PRODUCT_BRAND: string;
183
+ PRODUCT_CODE: string;
184
+ PRODUCT_REVIEW: string;
185
+ PRODUCT_RATING: string;
186
+ LIGHTBOX: string;
187
+ CART: string;
188
+ PROFILE: string;
189
+ PRODUCT: string;
190
+ MENU: string;
191
+ PRODUCT_OPTIONS: string;
192
+ REPEATER: string;
193
+ REPEATER_ITEM: string;
194
+ };