@useinsider/guido 1.0.3-beta.c2cbb62 → 1.0.3-beta.c4d9021

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 (164) hide show
  1. package/README.md +0 -3
  2. package/dist/components/Guido.vue.js +1 -1
  3. package/dist/components/organisms/LoadingWrapper.vue.js +1 -1
  4. package/dist/components/organisms/header/RightSlot.vue2.js +13 -13
  5. package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +18 -20
  6. package/dist/composables/useActionsApi.js +1 -1
  7. package/dist/composables/useBlocksConfig.js +2 -1
  8. package/dist/composables/useHtmlCompiler.js +13 -15
  9. package/dist/composables/useHtmlValidator.js +35 -36
  10. package/dist/composables/useStripo.js +28 -32
  11. package/dist/enums/extensions/recommendationBlock.js +2 -2
  12. package/dist/enums/onboarding.js +3 -7
  13. package/dist/extensions/Blocks/Checkbox/block.js +2 -5
  14. package/dist/extensions/Blocks/Checkbox/control.js +14 -15
  15. package/dist/extensions/Blocks/Checkbox/template.js +9 -14
  16. package/dist/extensions/Blocks/RadioButton/block.js +2 -5
  17. package/dist/extensions/Blocks/RadioButton/control.js +17 -18
  18. package/dist/extensions/Blocks/RadioButton/template.js +9 -18
  19. package/dist/extensions/Blocks/Recommendation/iconsRegistry.js +43 -43
  20. package/dist/extensions/Blocks/Unsubscribe/block.js +41 -45
  21. package/dist/extensions/Blocks/common-control.js +110 -174
  22. package/dist/guido.css +1 -1
  23. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +168 -213
  24. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +12 -13
  25. package/dist/node_modules/lodash-es/keysIn.js +3 -3
  26. package/dist/package.json.js +1 -1
  27. package/dist/services/recommendationApi.js +19 -13
  28. package/dist/src/enums/onboarding.d.ts +0 -4
  29. package/dist/src/extensions/Blocks/Checkbox/block.d.ts +0 -1
  30. package/dist/src/extensions/Blocks/Checkbox/template.d.ts +1 -1
  31. package/dist/src/extensions/Blocks/RadioButton/block.d.ts +0 -1
  32. package/dist/src/extensions/Blocks/RadioButton/template.d.ts +1 -1
  33. package/dist/src/extensions/Blocks/Unsubscribe/block.d.ts +4 -3
  34. package/dist/src/extensions/Blocks/common-control.d.ts +7 -44
  35. package/dist/src/stores/onboarding.d.ts +0 -334
  36. package/dist/static/styles/customEditorStyle.css.js +1 -1
  37. package/dist/stores/onboarding.js +12 -20
  38. package/dist/utils/genericUtil.js +17 -16
  39. package/package.json +4 -6
  40. package/dist/components/organisms/onboarding/ItemsOnboarding.vue.js +0 -21
  41. package/dist/components/organisms/onboarding/ItemsOnboarding.vue2.js +0 -99
  42. package/dist/config/compiler/itemsCompilerRules.js +0 -14
  43. package/dist/extensions/Blocks/Items/block.js +0 -67
  44. package/dist/extensions/Blocks/Items/controls/button/link.js +0 -68
  45. package/dist/extensions/Blocks/Items/controls/cardComposition.js +0 -193
  46. package/dist/extensions/Blocks/Items/controls/image/link.js +0 -68
  47. package/dist/extensions/Blocks/Items/controls/index.js +0 -217
  48. package/dist/extensions/Blocks/Items/controls/name/trimming.js +0 -70
  49. package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +0 -107
  50. package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +0 -123
  51. package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +0 -76
  52. package/dist/extensions/Blocks/Items/controls/price/hideDiscount.js +0 -61
  53. package/dist/extensions/Blocks/Items/controls/price/priceOrientation.js +0 -92
  54. package/dist/extensions/Blocks/Items/controls/settingsControl.js +0 -316
  55. package/dist/extensions/Blocks/Items/enums/controlEnums.js +0 -5
  56. package/dist/extensions/Blocks/Items/enums/productEnums.js +0 -274
  57. package/dist/extensions/Blocks/Items/enums/settingsEnums.js +0 -77
  58. package/dist/extensions/Blocks/Items/extension.js +0 -20
  59. package/dist/extensions/Blocks/Items/iconsRegistry.js +0 -32
  60. package/dist/extensions/Blocks/Items/items.css.js +0 -23
  61. package/dist/extensions/Blocks/Items/layouts/horizontal.html.js +0 -62
  62. package/dist/extensions/Blocks/Items/layouts/vertical.html.js +0 -72
  63. package/dist/extensions/Blocks/Items/settingsPanel.js +0 -132
  64. package/dist/extensions/Blocks/Items/store/items-block.js +0 -75
  65. package/dist/extensions/Blocks/Items/template.js +0 -195
  66. package/dist/extensions/Blocks/Items/utils/configBlockUtils.js +0 -17
  67. package/dist/extensions/Blocks/Items/utils/syncAttributeFromConfigBlock.js +0 -28
  68. package/dist/extensions/Blocks/Items/utils/syncAttributesFromConfigBlock.js +0 -76
  69. package/dist/extensions/Blocks/Items/utils/updateAttributes.js +0 -46
  70. package/dist/extensions/Blocks/controlFactories.js +0 -223
  71. package/dist/node_modules/lodash-es/_DataView.js +0 -6
  72. package/dist/node_modules/lodash-es/_Promise.js +0 -6
  73. package/dist/node_modules/lodash-es/_Set.js +0 -6
  74. package/dist/node_modules/lodash-es/_SetCache.js +0 -13
  75. package/dist/node_modules/lodash-es/_WeakMap.js +0 -6
  76. package/dist/node_modules/lodash-es/_arrayFilter.js +0 -10
  77. package/dist/node_modules/lodash-es/_arrayMap.js +0 -8
  78. package/dist/node_modules/lodash-es/_arrayPush.js +0 -8
  79. package/dist/node_modules/lodash-es/_arraySome.js +0 -9
  80. package/dist/node_modules/lodash-es/_baseEach.js +0 -6
  81. package/dist/node_modules/lodash-es/_baseFlatten.js +0 -13
  82. package/dist/node_modules/lodash-es/_baseForOwn.js +0 -8
  83. package/dist/node_modules/lodash-es/_baseGet.js +0 -11
  84. package/dist/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
  85. package/dist/node_modules/lodash-es/_baseHasIn.js +0 -6
  86. package/dist/node_modules/lodash-es/_baseIsEqual.js +0 -8
  87. package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +0 -32
  88. package/dist/node_modules/lodash-es/_baseIsMatch.js +0 -29
  89. package/dist/node_modules/lodash-es/_baseIteratee.js +0 -11
  90. package/dist/node_modules/lodash-es/_baseKeys.js +0 -14
  91. package/dist/node_modules/lodash-es/_baseMap.js +0 -11
  92. package/dist/node_modules/lodash-es/_baseMatches.js +0 -12
  93. package/dist/node_modules/lodash-es/_baseMatchesProperty.js +0 -17
  94. package/dist/node_modules/lodash-es/_baseProperty.js +0 -8
  95. package/dist/node_modules/lodash-es/_basePropertyDeep.js +0 -9
  96. package/dist/node_modules/lodash-es/_baseRange.js +0 -9
  97. package/dist/node_modules/lodash-es/_baseToString.js +0 -18
  98. package/dist/node_modules/lodash-es/_baseTrim.js +0 -8
  99. package/dist/node_modules/lodash-es/_cacheHas.js +0 -6
  100. package/dist/node_modules/lodash-es/_castPath.js +0 -10
  101. package/dist/node_modules/lodash-es/_createBaseEach.js +0 -15
  102. package/dist/node_modules/lodash-es/_createRange.js +0 -11
  103. package/dist/node_modules/lodash-es/_equalArrays.js +0 -40
  104. package/dist/node_modules/lodash-es/_equalByTag.js +0 -45
  105. package/dist/node_modules/lodash-es/_equalObjects.js +0 -36
  106. package/dist/node_modules/lodash-es/_getAllKeys.js +0 -9
  107. package/dist/node_modules/lodash-es/_getMatchData.js +0 -12
  108. package/dist/node_modules/lodash-es/_getSymbols.js +0 -10
  109. package/dist/node_modules/lodash-es/_getTag.js +0 -28
  110. package/dist/node_modules/lodash-es/_hasPath.js +0 -19
  111. package/dist/node_modules/lodash-es/_isFlattenable.js +0 -10
  112. package/dist/node_modules/lodash-es/_isKey.js +0 -12
  113. package/dist/node_modules/lodash-es/_isStrictComparable.js +0 -7
  114. package/dist/node_modules/lodash-es/_mapToArray.js +0 -9
  115. package/dist/node_modules/lodash-es/_matchesStrictComparable.js +0 -8
  116. package/dist/node_modules/lodash-es/_memoizeCapped.js +0 -11
  117. package/dist/node_modules/lodash-es/_nativeKeys.js +0 -5
  118. package/dist/node_modules/lodash-es/_setCacheAdd.js +0 -7
  119. package/dist/node_modules/lodash-es/_setCacheHas.js +0 -6
  120. package/dist/node_modules/lodash-es/_setToArray.js +0 -9
  121. package/dist/node_modules/lodash-es/_stringToPath.js +0 -10
  122. package/dist/node_modules/lodash-es/_toKey.js +0 -10
  123. package/dist/node_modules/lodash-es/_trimmedEndIndex.js +0 -9
  124. package/dist/node_modules/lodash-es/flatMap.js +0 -8
  125. package/dist/node_modules/lodash-es/get.js +0 -8
  126. package/dist/node_modules/lodash-es/hasIn.js +0 -8
  127. package/dist/node_modules/lodash-es/isSymbol.js +0 -9
  128. package/dist/node_modules/lodash-es/keys.js +0 -9
  129. package/dist/node_modules/lodash-es/map.js +0 -11
  130. package/dist/node_modules/lodash-es/property.js +0 -10
  131. package/dist/node_modules/lodash-es/range.js +0 -5
  132. package/dist/node_modules/lodash-es/stubArray.js +0 -6
  133. package/dist/node_modules/lodash-es/toFinite.js +0 -14
  134. package/dist/node_modules/lodash-es/toNumber.js +0 -22
  135. package/dist/node_modules/lodash-es/toString.js +0 -7
  136. package/dist/src/components/organisms/onboarding/ItemsOnboarding.vue.d.ts +0 -2
  137. package/dist/src/config/compiler/itemsCompilerRules.d.ts +0 -2
  138. package/dist/src/extensions/Blocks/Items/block.d.ts +0 -27
  139. package/dist/src/extensions/Blocks/Items/controls/button/link.d.ts +0 -14
  140. package/dist/src/extensions/Blocks/Items/controls/cardComposition.d.ts +0 -33
  141. package/dist/src/extensions/Blocks/Items/controls/image/link.d.ts +0 -14
  142. package/dist/src/extensions/Blocks/Items/controls/index.d.ts +0 -501
  143. package/dist/src/extensions/Blocks/Items/controls/name/trimming.d.ts +0 -14
  144. package/dist/src/extensions/Blocks/Items/controls/price/currencyLocation.d.ts +0 -19
  145. package/dist/src/extensions/Blocks/Items/controls/price/currencySymbol.d.ts +0 -21
  146. package/dist/src/extensions/Blocks/Items/controls/price/formattedPrice.d.ts +0 -14
  147. package/dist/src/extensions/Blocks/Items/controls/price/hideDiscount.d.ts +0 -13
  148. package/dist/src/extensions/Blocks/Items/controls/price/priceOrientation.d.ts +0 -15
  149. package/dist/src/extensions/Blocks/Items/controls/settingsControl.d.ts +0 -48
  150. package/dist/src/extensions/Blocks/Items/enums/controlEnums.d.ts +0 -62
  151. package/dist/src/extensions/Blocks/Items/enums/productEnums.d.ts +0 -163
  152. package/dist/src/extensions/Blocks/Items/enums/settingsEnums.d.ts +0 -50
  153. package/dist/src/extensions/Blocks/Items/extension.d.ts +0 -2
  154. package/dist/src/extensions/Blocks/Items/iconsRegistry.d.ts +0 -4
  155. package/dist/src/extensions/Blocks/Items/settingsPanel.d.ts +0 -4
  156. package/dist/src/extensions/Blocks/Items/store/items-block.d.ts +0 -43
  157. package/dist/src/extensions/Blocks/Items/template.d.ts +0 -24
  158. package/dist/src/extensions/Blocks/Items/utils/configBlockUtils.d.ts +0 -23
  159. package/dist/src/extensions/Blocks/Items/utils/syncAttributeFromConfigBlock.d.ts +0 -32
  160. package/dist/src/extensions/Blocks/Items/utils/syncAttributesFromConfigBlock.d.ts +0 -50
  161. package/dist/src/extensions/Blocks/Items/utils/updateAttributes.d.ts +0 -8
  162. package/dist/src/extensions/Blocks/controlFactories.d.ts +0 -312
  163. package/dist/src/utils/pairProductVariables.d.ts +0 -7
  164. package/dist/utils/pairProductVariables.js +0 -136
@@ -1,45 +0,0 @@
1
- import m from "./_Symbol.js";
2
- import t from "./_Uint8Array.js";
3
- import A from "./eq.js";
4
- import b from "./_equalArrays.js";
5
- import o from "./_mapToArray.js";
6
- import d from "./_setToArray.js";
7
- var L = 1, O = 2, v = "[object Boolean]", E = "[object Date]", R = "[object Error]", w = "[object Map]", B = "[object Number]", D = "[object RegExp]", P = "[object Set]", S = "[object String]", _ = "[object Symbol]", c = "[object ArrayBuffer]", x = "[object DataView]", i = m ? m.prototype : void 0, n = i ? i.valueOf : void 0;
8
- function N(e, a, l, s, y, u, r) {
9
- switch (l) {
10
- case x:
11
- if (e.byteLength != a.byteLength || e.byteOffset != a.byteOffset)
12
- return !1;
13
- e = e.buffer, a = a.buffer;
14
- case c:
15
- return !(e.byteLength != a.byteLength || !u(new t(e), new t(a)));
16
- case v:
17
- case E:
18
- case B:
19
- return A(+e, +a);
20
- case R:
21
- return e.name == a.name && e.message == a.message;
22
- case D:
23
- case S:
24
- return e == a + "";
25
- case w:
26
- var f = o;
27
- case P:
28
- var T = s & L;
29
- if (f || (f = d), e.size != a.size && !T)
30
- return !1;
31
- var g = r.get(e);
32
- if (g)
33
- return g == a;
34
- s |= O, r.set(e, a);
35
- var p = b(f(e), f(a), s, y, u, r);
36
- return r.delete(e), p;
37
- case _:
38
- if (n)
39
- return n.call(e) == n.call(a);
40
- }
41
- return !1;
42
- }
43
- export {
44
- N as default
45
- };
@@ -1,36 +0,0 @@
1
- import x from "./_getAllKeys.js";
2
- var q = 1, E = Object.prototype, F = E.hasOwnProperty;
3
- function I(r, n, A, a, R, f) {
4
- var v = A & q, d = x(r), g = d.length, S = x(n), _ = S.length;
5
- if (g != _ && !v)
6
- return !1;
7
- for (var l = g; l--; ) {
8
- var i = d[l];
9
- if (!(v ? i in n : F.call(n, i)))
10
- return !1;
11
- }
12
- var O = f.get(r), w = f.get(n);
13
- if (O && w)
14
- return O == n && w == r;
15
- var s = !0;
16
- f.set(r, n), f.set(n, r);
17
- for (var t = v; ++l < g; ) {
18
- i = d[l];
19
- var p = r[i], e = n[i];
20
- if (a)
21
- var L = v ? a(e, p, i, n, r, f) : a(p, e, i, r, n, f);
22
- if (!(L === void 0 ? p === e || R(p, e, A, a, f) : L)) {
23
- s = !1;
24
- break;
25
- }
26
- t || (t = i == "constructor");
27
- }
28
- if (s && !t) {
29
- var u = r.constructor, P = n.constructor;
30
- u != P && "constructor" in r && "constructor" in n && !(typeof u == "function" && u instanceof u && typeof P == "function" && P instanceof P) && (s = !1);
31
- }
32
- return f.delete(r), f.delete(n), s;
33
- }
34
- export {
35
- I as default
36
- };
@@ -1,9 +0,0 @@
1
- import t from "./_baseGetAllKeys.js";
2
- import o from "./_getSymbols.js";
3
- import r from "./keys.js";
4
- function f(e) {
5
- return t(e, r, o);
6
- }
7
- export {
8
- f as default
9
- };
@@ -1,12 +0,0 @@
1
- import o from "./_isStrictComparable.js";
2
- import l from "./keys.js";
3
- function f(a) {
4
- for (var t = l(a), r = t.length; r--; ) {
5
- var e = t[r], i = a[e];
6
- t[r] = [e, i, o(i)];
7
- }
8
- return t;
9
- }
10
- export {
11
- f as default
12
- };
@@ -1,10 +0,0 @@
1
- import o from "./_arrayFilter.js";
2
- import a from "./stubArray.js";
3
- var n = Object.prototype, l = n.propertyIsEnumerable, t = Object.getOwnPropertySymbols, m = t ? function(r) {
4
- return r == null ? [] : (r = Object(r), o(t(r), function(e) {
5
- return l.call(r, e);
6
- }));
7
- } : a;
8
- export {
9
- m as default
10
- };
@@ -1,28 +0,0 @@
1
- import e from "./_DataView.js";
2
- import a from "./_Map.js";
3
- import o from "./_Promise.js";
4
- import i from "./_Set.js";
5
- import n from "./_WeakMap.js";
6
- import S from "./_baseGetTag.js";
7
- import t from "./_toSource.js";
8
- var g = "[object Map]", j = "[object Object]", f = "[object Promise]", u = "[object Set]", w = "[object WeakMap]", b = "[object DataView]", T = t(e), C = t(a), M = t(o), d = t(i), v = t(n), r = S;
9
- (e && r(new e(new ArrayBuffer(1))) != b || a && r(new a()) != g || o && r(o.resolve()) != f || i && r(new i()) != u || n && r(new n()) != w) && (r = function(m) {
10
- var c = S(m), p = c == j ? m.constructor : void 0, s = p ? t(p) : "";
11
- if (s)
12
- switch (s) {
13
- case T:
14
- return b;
15
- case C:
16
- return g;
17
- case M:
18
- return f;
19
- case d:
20
- return u;
21
- case v:
22
- return w;
23
- }
24
- return c;
25
- });
26
- export {
27
- r as default
28
- };
@@ -1,19 +0,0 @@
1
- import t from "./_castPath.js";
2
- import a from "./isArguments.js";
3
- import u from "./isArray.js";
4
- import o from "./_isIndex.js";
5
- import e from "./isLength.js";
6
- import g from "./_toKey.js";
7
- function P(r, m, s) {
8
- m = t(m, r);
9
- for (var n = -1, i = m.length, f = !1; ++n < i; ) {
10
- var l = g(m[n]);
11
- if (!(f = r != null && s(r, l)))
12
- break;
13
- r = r[l];
14
- }
15
- return f || ++n != i ? f : (i = r == null ? 0 : r.length, !!i && e(i) && o(l, i) && (u(r) || a(r)));
16
- }
17
- export {
18
- P as default
19
- };
@@ -1,10 +0,0 @@
1
- import o from "./_Symbol.js";
2
- import e from "./isArguments.js";
3
- import i from "./isArray.js";
4
- var t = o ? o.isConcatSpreadable : void 0;
5
- function s(r) {
6
- return i(r) || e(r) || !!(t && r && r[t]);
7
- }
8
- export {
9
- s as default
10
- };
@@ -1,12 +0,0 @@
1
- import o from "./isArray.js";
2
- import n from "./isSymbol.js";
3
- var i = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, s = /^\w*$/;
4
- function m(r, e) {
5
- if (o(r))
6
- return !1;
7
- var t = typeof r;
8
- return t == "number" || t == "symbol" || t == "boolean" || r == null || n(r) ? !0 : s.test(r) || !i.test(r) || e != null && r in Object(e);
9
- }
10
- export {
11
- m as default
12
- };
@@ -1,7 +0,0 @@
1
- import r from "./isObject.js";
2
- function o(t) {
3
- return t === t && !r(t);
4
- }
5
- export {
6
- o as default
7
- };
@@ -1,9 +0,0 @@
1
- function o(r) {
2
- var e = -1, a = Array(r.size);
3
- return r.forEach(function(n, t) {
4
- a[++e] = [t, n];
5
- }), a;
6
- }
7
- export {
8
- o as default
9
- };
@@ -1,8 +0,0 @@
1
- function e(t, r) {
2
- return function(n) {
3
- return n == null ? !1 : n[t] === r && (r !== void 0 || t in Object(n));
4
- };
5
- }
6
- export {
7
- e as default
8
- };
@@ -1,11 +0,0 @@
1
- import c from "./memoize.js";
2
- var i = 500;
3
- function m(a) {
4
- var e = c(a, function(t) {
5
- return r.size === i && r.clear(), t;
6
- }), r = e.cache;
7
- return e;
8
- }
9
- export {
10
- m as default
11
- };
@@ -1,5 +0,0 @@
1
- import e from "./_overArg.js";
2
- var t = e(Object.keys, Object);
3
- export {
4
- t as default
5
- };
@@ -1,7 +0,0 @@
1
- var t = "__lodash_hash_undefined__";
2
- function a(_) {
3
- return this.__data__.set(_, t), this;
4
- }
5
- export {
6
- a as default
7
- };
@@ -1,6 +0,0 @@
1
- function t(a) {
2
- return this.__data__.has(a);
3
- }
4
- export {
5
- t as default
6
- };
@@ -1,9 +0,0 @@
1
- function t(r) {
2
- var e = -1, a = Array(r.size);
3
- return r.forEach(function(n) {
4
- a[++e] = n;
5
- }), a;
6
- }
7
- export {
8
- t as default
9
- };
@@ -1,10 +0,0 @@
1
- import u from "./_memoizeCapped.js";
2
- var c = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, d = /\\(\\)?/g, h = u(function(e) {
3
- var r = [];
4
- return e.charCodeAt(0) === 46 && r.push(""), e.replace(c, function(a, p, o, t) {
5
- r.push(o ? t.replace(d, "$1") : p || a);
6
- }), r;
7
- });
8
- export {
9
- h as default
10
- };
@@ -1,10 +0,0 @@
1
- import i from "./isSymbol.js";
2
- function o(t) {
3
- if (typeof t == "string" || i(t))
4
- return t;
5
- var r = t + "";
6
- return r == "0" && 1 / t == -1 / 0 ? "-0" : r;
7
- }
8
- export {
9
- o as default
10
- };
@@ -1,9 +0,0 @@
1
- var r = /\s/;
2
- function a(t) {
3
- for (var e = t.length; e-- && r.test(t.charAt(e)); )
4
- ;
5
- return e;
6
- }
7
- export {
8
- a as default
9
- };
@@ -1,8 +0,0 @@
1
- import r from "./_baseFlatten.js";
2
- import o from "./map.js";
3
- function m(t, a) {
4
- return r(o(t, a));
5
- }
6
- export {
7
- m as default
8
- };
@@ -1,8 +0,0 @@
1
- import u from "./_baseGet.js";
2
- function f(e, r, t) {
3
- var n = e == null ? void 0 : u(e, r);
4
- return n === void 0 ? t : n;
5
- }
6
- export {
7
- f as default
8
- };
@@ -1,8 +0,0 @@
1
- import n from "./_baseHasIn.js";
2
- import t from "./_hasPath.js";
3
- function f(a, r) {
4
- return a != null && t(a, r, n);
5
- }
6
- export {
7
- f as default
8
- };
@@ -1,9 +0,0 @@
1
- import t from "./_baseGetTag.js";
2
- import m from "./isObjectLike.js";
3
- var r = "[object Symbol]";
4
- function i(o) {
5
- return typeof o == "symbol" || m(o) && t(o) == r;
6
- }
7
- export {
8
- i as default
9
- };
@@ -1,9 +0,0 @@
1
- import e from "./_arrayLikeKeys.js";
2
- import i from "./_baseKeys.js";
3
- import a from "./isArrayLike.js";
4
- function f(r) {
5
- return a(r) ? e(r) : i(r);
6
- }
7
- export {
8
- f as default
9
- };
@@ -1,11 +0,0 @@
1
- import t from "./_arrayMap.js";
2
- import o from "./_baseIteratee.js";
3
- import p from "./_baseMap.js";
4
- import e from "./isArray.js";
5
- function n(r, a) {
6
- var m = e(r) ? t : p;
7
- return m(r, o(a));
8
- }
9
- export {
10
- n as default
11
- };
@@ -1,10 +0,0 @@
1
- import o from "./_baseProperty.js";
2
- import e from "./_basePropertyDeep.js";
3
- import t from "./_isKey.js";
4
- import m from "./_toKey.js";
5
- function s(r) {
6
- return t(r) ? o(m(r)) : e(r);
7
- }
8
- export {
9
- s as default
10
- };
@@ -1,5 +0,0 @@
1
- import a from "./_createRange.js";
2
- var r = a();
3
- export {
4
- r as default
5
- };
@@ -1,6 +0,0 @@
1
- function r() {
2
- return [];
3
- }
4
- export {
5
- r as default
6
- };
@@ -1,14 +0,0 @@
1
- import n from "./toNumber.js";
2
- var t = 1 / 0, o = 17976931348623157e292;
3
- function I(r) {
4
- if (!r)
5
- return r === 0 ? r : 0;
6
- if (r = n(r), r === t || r === -t) {
7
- var i = r < 0 ? -1 : 1;
8
- return i * o;
9
- }
10
- return r === r ? r : 0;
11
- }
12
- export {
13
- I as default
14
- };
@@ -1,22 +0,0 @@
1
- import n from "./_baseTrim.js";
2
- import f from "./isObject.js";
3
- import o from "./isSymbol.js";
4
- var s = NaN, m = /^[-+]0x[0-9a-f]+$/i, p = /^0b[01]+$/i, e = /^0o[0-7]+$/i, b = parseInt;
5
- function O(r) {
6
- if (typeof r == "number")
7
- return r;
8
- if (o(r))
9
- return s;
10
- if (f(r)) {
11
- var t = typeof r.valueOf == "function" ? r.valueOf() : r;
12
- r = f(t) ? t + "" : t;
13
- }
14
- if (typeof r != "string")
15
- return r === 0 ? r : +r;
16
- r = n(r);
17
- var i = p.test(r);
18
- return i || e.test(r) ? b(r.slice(2), i ? 2 : 8) : m.test(r) ? s : +r;
19
- }
20
- export {
21
- O as default
22
- };
@@ -1,7 +0,0 @@
1
- import r from "./_baseToString.js";
2
- function o(t) {
3
- return t == null ? "" : r(t);
4
- }
5
- export {
6
- o as default
7
- };
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- import type { CompilerRule } from '@@/Types/html-compiler';
2
- export declare const itemsCompilerRules: CompilerRule[];
@@ -1,27 +0,0 @@
1
- import { Block, BlockCompositionType, ImmutableHtmlNode } from '@stripoinc/ui-editor-extensions';
2
- export declare const BLOCK_ID = "items-block";
3
- /**
4
- * Items Block extension for Stripo email editor.
5
- *
6
- * Displays personalized product items (cart items, browsed items, or purchased items)
7
- * in a configurable card layout with horizontal or vertical orientation.
8
- *
9
- * Features:
10
- * - Multiple product data sources (cart, browsed, purchased)
11
- * - Configurable card composition (image, name, price, quantity, button)
12
- * - Orientation control (horizontal/vertical)
13
- * - Price formatting and currency display options
14
- * - Product name trimming
15
- * - Onboarding support
16
- */
17
- export declare class ItemsBlock extends Block {
18
- getId(): string;
19
- getIcon(): string;
20
- getBlockCompositionType(): BlockCompositionType;
21
- getName(): string;
22
- getDescription(): string;
23
- getTemplate(): string;
24
- allowInnerBlocksDND(): boolean;
25
- onCreated(node: ImmutableHtmlNode): void;
26
- onSelect(node: ImmutableHtmlNode): void;
27
- }
@@ -1,14 +0,0 @@
1
- import { ImmutableHtmlNode } from '@stripoinc/ui-editor-extensions';
2
- import { CommonControl } from '../../../common-control';
3
- import { ItemsBlockControlId } from '../../enums/controlEnums';
4
- export declare const CONTROL_BLOCK_ID = ItemsBlockControlId.BUTTON_LINK;
5
- export declare class ButtonLinkControl extends CommonControl {
6
- private store;
7
- getId(): string;
8
- getTemplate(): string;
9
- onRender(): void;
10
- onTemplateNodeUpdated(node: ImmutableHtmlNode): void;
11
- _listenToFormUpdates(): void;
12
- _onLinkChange(value: string): void;
13
- _getLink(): string;
14
- }
@@ -1,33 +0,0 @@
1
- import { ImmutableHtmlNode } from '@stripoinc/ui-editor-extensions';
2
- import { CommonControl } from '../../common-control';
3
- export declare const COMPOSITION_CONTROL_BLOCK_ID = "ui-elements-items-card-composition-block";
4
- export declare class ItemsBlockCardCompositionControl extends CommonControl {
5
- private store;
6
- private visibilityState;
7
- getId(): string;
8
- getTemplate(): string;
9
- onRender(): void;
10
- onTemplateNodeUpdated(node: ImmutableHtmlNode): void;
11
- _getToggleContainer({ name, label }: {
12
- name: string;
13
- label: string;
14
- }): string;
15
- _initializeToggles(): void;
16
- _updateTogglesFromState(): void;
17
- _syncVisibilityFromAttributes(): void;
18
- /**
19
- * If itemsType is not BROWSED_ITEMS, show quantity
20
- * If itemsType is BROWSED_ITEMS, hide quantity
21
- * and mark it as '0'
22
- */
23
- _handleBrowsedItemsQuantity(): void;
24
- _applyVisibilityStyles(): void;
25
- _updateVisibilityAttribute(elementName: string, isVisible: boolean): void;
26
- _listenToFormUpdates(): void;
27
- _onProductImageChange(value: boolean): void;
28
- _onProductNameChange(value: boolean): void;
29
- _onProductQuantityChange(value: boolean): void;
30
- _onProductPriceChange(value: boolean): void;
31
- _onProductOriginalPriceChange(value: boolean): void;
32
- _onProductButtonChange(value: boolean): void;
33
- }
@@ -1,14 +0,0 @@
1
- import { ImmutableHtmlNode } from '@stripoinc/ui-editor-extensions';
2
- import { CommonControl } from '../../../common-control';
3
- import { ItemsBlockControlId } from '../../enums/controlEnums';
4
- export declare const CONTROL_BLOCK_ID = ItemsBlockControlId.IMAGE_LINK;
5
- export declare class ImageLinkControl extends CommonControl {
6
- private store;
7
- getId(): string;
8
- getTemplate(): string;
9
- onRender(): void;
10
- onTemplateNodeUpdated(node: ImmutableHtmlNode): void;
11
- _listenToFormUpdates(): void;
12
- _onLinkChange(value: string): void;
13
- _getLink(): string;
14
- }