@useinsider/guido 3.26.0-beta.8251afd → 3.26.0-beta.a188943

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 (69) hide show
  1. package/dist/components/Guido.vue.js +1 -1
  2. package/dist/components/Guido.vue2.js +46 -45
  3. package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.js +5 -6
  4. package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue2.js +19 -18
  5. package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +5 -5
  6. package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +15 -15
  7. package/dist/components/organisms/onboarding/ItemsOnboarding.vue.js +6 -6
  8. package/dist/components/organisms/onboarding/ItemsOnboarding.vue2.js +28 -27
  9. package/dist/components/organisms/onboarding/RecommendationLegacyStrategyOnboarding.vue.js +3 -3
  10. package/dist/components/organisms/onboarding/RecommendationLegacyStrategyOnboarding.vue2.js +42 -27
  11. package/dist/composables/useCustomInterfaceAppearance.js +50 -50
  12. package/dist/composables/useFullStoryBridge.js +10 -9
  13. package/dist/composables/useSave.js +17 -19
  14. package/dist/composables/useSaveValidation.js +249 -142
  15. package/dist/composables/useTranslations.js +9 -14
  16. package/dist/enums/save-validation.js +1 -1
  17. package/dist/extensions/Blocks/Recommendation/controls/main/filters.js +14 -14
  18. package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +52 -40
  19. package/dist/extensions/Blocks/Recommendation/controls/syncInfoMessage.js +15 -15
  20. package/dist/extensions/Blocks/Recommendation/utils/priceFormatter.js +17 -15
  21. package/dist/extensions/Blocks/common-control.js +25 -25
  22. package/dist/extensions/DynamicContent/dynamic-content.js +15 -17
  23. package/dist/guido.css +1 -1
  24. package/dist/node_modules/valibot/dist/index.js +122 -184
  25. package/dist/package.json.js +1 -1
  26. package/dist/src/composables/useSaveValidation.d.ts +2 -2
  27. package/dist/src/enums/save-validation.d.ts +14 -3
  28. package/dist/src/extensions/Blocks/Recommendation/controls/main/strategy.d.ts +2 -0
  29. package/dist/src/extensions/Blocks/common-control.d.ts +1 -1
  30. package/dist/src/stores/onboarding.d.ts +1 -0
  31. package/dist/src/utils/editorShadowRoot.d.ts +1 -0
  32. package/dist/stores/onboarding.js +4 -1
  33. package/dist/utils/editorShadowRoot.js +8 -0
  34. package/package.json +11 -3
  35. package/dist/@types/email-be/html-validation.js +0 -24
  36. package/dist/enums/email-be.js +0 -27
  37. package/dist/services/emailBe/errors/ApiError.js +0 -50
  38. package/dist/services/emailBe/errors/handleApiError.js +0 -31
  39. package/dist/services/emailBe/errors/toApiError.js +0 -71
  40. package/dist/services/emailBe/html/HtmlValidationService.js +0 -35
  41. package/dist/services/emailBe/html/index.js +0 -6
  42. package/dist/services/emailBe/http/HttpManager.js +0 -68
  43. package/dist/services/emailBe/http/RetryStack.js +0 -23
  44. package/dist/services/emailBe/http/client.js +0 -61
  45. package/dist/services/emailBe/http/index.js +0 -10
  46. package/dist/services/emailBe/http/transportErrors.js +0 -20
  47. package/dist/src/@types/email-be/html-validation.d.ts +0 -35
  48. package/dist/src/enums/email-be.d.ts +0 -26
  49. package/dist/src/extensions/Blocks/_Boilerplate/block.d.ts +0 -11
  50. package/dist/src/extensions/Blocks/_Boilerplate/constants/controlIds.d.ts +0 -7
  51. package/dist/src/extensions/Blocks/_Boilerplate/constants/index.d.ts +0 -10
  52. package/dist/src/extensions/Blocks/_Boilerplate/constants/selectors.d.ts +0 -16
  53. package/dist/src/extensions/Blocks/_Boilerplate/control.d.ts +0 -17
  54. package/dist/src/extensions/Blocks/_Boilerplate/controls/blockBackground/index.d.ts +0 -15
  55. package/dist/src/extensions/Blocks/_Boilerplate/extension.d.ts +0 -2
  56. package/dist/src/extensions/Blocks/_Boilerplate/iconsRegistry.d.ts +0 -4
  57. package/dist/src/extensions/Blocks/_Boilerplate/settingsPanel.d.ts +0 -4
  58. package/dist/src/extensions/Blocks/_Boilerplate/template.d.ts +0 -6
  59. package/dist/src/services/emailBe/errors/ApiError.d.ts +0 -40
  60. package/dist/src/services/emailBe/errors/handleApiError.d.ts +0 -11
  61. package/dist/src/services/emailBe/errors/toApiError.d.ts +0 -2
  62. package/dist/src/services/emailBe/html/HtmlValidationService.d.ts +0 -8
  63. package/dist/src/services/emailBe/html/index.d.ts +0 -2
  64. package/dist/src/services/emailBe/http/HttpManager.d.ts +0 -13
  65. package/dist/src/services/emailBe/http/RetryStack.d.ts +0 -6
  66. package/dist/src/services/emailBe/http/client.d.ts +0 -3
  67. package/dist/src/services/emailBe/http/index.d.ts +0 -2
  68. package/dist/src/services/emailBe/http/transportErrors.d.ts +0 -15
  69. package/dist/src/services/emailBe/http/types.d.ts +0 -46
@@ -1,6 +1,6 @@
1
1
  let m;
2
2
  // @__NO_SIDE_EFFECTS__
3
- function x(n) {
3
+ function g(n) {
4
4
  return {
5
5
  lang: (n == null ? void 0 : n.lang) ?? (m == null ? void 0 : m.lang),
6
6
  message: n == null ? void 0 : n.message,
@@ -10,7 +10,7 @@ function x(n) {
10
10
  }
11
11
  let E;
12
12
  // @__NO_SIDE_EFFECTS__
13
- function I(n) {
13
+ function A(n) {
14
14
  return E == null ? void 0 : E.get(n);
15
15
  }
16
16
  let j;
@@ -25,27 +25,27 @@ function q(n, r) {
25
25
  return (e = _ == null ? void 0 : _.get(n)) == null ? void 0 : e.get(r);
26
26
  }
27
27
  // @__NO_SIDE_EFFECTS__
28
- function D(n) {
28
+ function w(n) {
29
29
  var e, s;
30
30
  const r = typeof n;
31
31
  return r === "string" ? `"${n}"` : r === "number" || r === "bigint" || r === "boolean" ? `${n}` : r === "object" || r === "function" ? (n && ((s = (e = Object.getPrototypeOf(n)) == null ? void 0 : e.constructor) == null ? void 0 : s.name)) ?? "null" : r;
32
32
  }
33
33
  function f(n, r, e, s, t) {
34
- const l = t && "input" in t ? t.input : e.value, u = (t == null ? void 0 : t.expected) ?? n.expects ?? null, p = (t == null ? void 0 : t.received) ?? /* @__PURE__ */ D(l), i = {
34
+ const l = t && "input" in t ? t.input : e.value, u = (t == null ? void 0 : t.expected) ?? n.expects ?? null, a = (t == null ? void 0 : t.received) ?? /* @__PURE__ */ w(l), i = {
35
35
  kind: n.kind,
36
36
  type: n.type,
37
37
  input: l,
38
38
  expected: u,
39
- received: p,
40
- message: `Invalid ${r}: ${u ? `Expected ${u} but r` : "R"}eceived ${p}`,
39
+ received: a,
40
+ message: `Invalid ${r}: ${u ? `Expected ${u} but r` : "R"}eceived ${a}`,
41
41
  requirement: n.requirement,
42
42
  path: t == null ? void 0 : t.path,
43
43
  issues: t == null ? void 0 : t.issues,
44
44
  lang: s.lang,
45
45
  abortEarly: s.abortEarly,
46
46
  abortPipeEarly: s.abortPipeEarly
47
- }, c = n.kind === "schema", a = (t == null ? void 0 : t.message) ?? n.message ?? /* @__PURE__ */ q(n.reference, i.lang) ?? (c ? /* @__PURE__ */ V(i.lang) : null) ?? s.message ?? /* @__PURE__ */ I(i.lang);
48
- a !== void 0 && (i.message = typeof a == "function" ? a(i) : a), c && (e.typed = !1), e.issues ? e.issues.push(i) : e.issues = [i];
47
+ }, p = n.kind === "schema", c = (t == null ? void 0 : t.message) ?? n.message ?? /* @__PURE__ */ q(n.reference, i.lang) ?? (p ? /* @__PURE__ */ V(i.lang) : null) ?? s.message ?? /* @__PURE__ */ A(i.lang);
48
+ c !== void 0 && (i.message = typeof c == "function" ? c(i) : c), p && (e.typed = !1), e.issues ? e.issues.push(i) : e.issues = [i];
49
49
  }
50
50
  // @__NO_SIDE_EFFECTS__
51
51
  function o(n) {
@@ -53,16 +53,16 @@ function o(n) {
53
53
  version: 1,
54
54
  vendor: "valibot",
55
55
  validate(r) {
56
- return n["~run"]({ value: r }, /* @__PURE__ */ x());
56
+ return n["~run"]({ value: r }, /* @__PURE__ */ g());
57
57
  }
58
58
  };
59
59
  }
60
60
  // @__NO_SIDE_EFFECTS__
61
- function S(n, r) {
61
+ function I(n, r) {
62
62
  return Object.hasOwn(n, r) && r !== "__proto__" && r !== "prototype" && r !== "constructor";
63
63
  }
64
64
  // @__NO_SIDE_EFFECTS__
65
- function w(n, r) {
65
+ function D(n, r) {
66
66
  const e = [...new Set(n)];
67
67
  return e.length > 1 ? `(${e.join(` ${r} `)})` : e[0] ?? "never";
68
68
  }
@@ -165,7 +165,7 @@ function P(n, r, e) {
165
165
  return typeof n.fallback == "function" ? n.fallback(r, e) : n.fallback;
166
166
  }
167
167
  // @__NO_SIDE_EFFECTS__
168
- function ue(n, r) {
168
+ function se(n, r) {
169
169
  return {
170
170
  ...n,
171
171
  fallback: r,
@@ -182,7 +182,7 @@ function ue(n, r) {
182
182
  };
183
183
  }
184
184
  // @__NO_SIDE_EFFECTS__
185
- function k(n, r, e) {
185
+ function x(n, r, e) {
186
186
  return typeof n.default == "function" ? n.default(r, e) : n.default;
187
187
  }
188
188
  // @__NO_SIDE_EFFECTS__
@@ -204,17 +204,17 @@ function F(n, r) {
204
204
  if (Array.isArray(t)) {
205
205
  e.typed = !0, e.value = [];
206
206
  for (let u = 0; u < t.length; u++) {
207
- const p = t[u], i = this.item["~run"]({ value: p }, s);
207
+ const a = t[u], i = this.item["~run"]({ value: a }, s);
208
208
  if (i.issues) {
209
- const c = {
209
+ const p = {
210
210
  type: "array",
211
211
  origin: "value",
212
212
  input: t,
213
213
  key: u,
214
- value: p
214
+ value: a
215
215
  };
216
- for (const a of i.issues)
217
- a.path ? a.path.unshift(c) : a.path = [c], (l = e.issues) == null || l.push(a);
216
+ for (const c of i.issues)
217
+ c.path ? c.path.unshift(p) : c.path = [p], (l = e.issues) == null || l.push(c);
218
218
  if (e.issues || (e.issues = i.issues), s.abortEarly) {
219
219
  e.typed = !1;
220
220
  break;
@@ -285,7 +285,7 @@ function J(n, r) {
285
285
  kind: "schema",
286
286
  type: "literal",
287
287
  reference: J,
288
- expects: /* @__PURE__ */ D(n),
288
+ expects: /* @__PURE__ */ w(n),
289
289
  async: !1,
290
290
  literal: n,
291
291
  message: r,
@@ -316,27 +316,27 @@ function Q(n, r) {
316
316
  if (t && typeof t == "object") {
317
317
  e.typed = !0, e.value = {};
318
318
  for (const u in this.entries) {
319
- const p = this.entries[u];
320
- if (u in t || (p.type === "exact_optional" || p.type === "optional" || p.type === "nullish") && p.default !== void 0) {
321
- const i = u in t ? t[u] : /* @__PURE__ */ k(p), c = p["~run"]({ value: i }, s);
322
- if (c.issues) {
323
- const a = {
319
+ const a = this.entries[u];
320
+ if (u in t || (a.type === "exact_optional" || a.type === "optional" || a.type === "nullish") && a.default !== void 0) {
321
+ const i = u in t ? t[u] : /* @__PURE__ */ x(a), p = a["~run"]({ value: i }, s);
322
+ if (p.issues) {
323
+ const c = {
324
324
  type: "object",
325
325
  origin: "value",
326
326
  input: t,
327
327
  key: u,
328
328
  value: i
329
329
  };
330
- for (const y of c.issues)
331
- y.path ? y.path.unshift(a) : y.path = [a], (l = e.issues) == null || l.push(y);
332
- if (e.issues || (e.issues = c.issues), s.abortEarly) {
330
+ for (const y of p.issues)
331
+ y.path ? y.path.unshift(c) : y.path = [c], (l = e.issues) == null || l.push(y);
332
+ if (e.issues || (e.issues = p.issues), s.abortEarly) {
333
333
  e.typed = !1;
334
334
  break;
335
335
  }
336
336
  }
337
- c.typed || (e.typed = !1), e.value[u] = c.value;
338
- } else if (p.fallback !== void 0) e.value[u] = /* @__PURE__ */ P(p);
339
- else if (p.type !== "exact_optional" && p.type !== "optional" && p.type !== "nullish" && (f(this, "key", e, s, {
337
+ p.typed || (e.typed = !1), e.value[u] = p.value;
338
+ } else if (a.fallback !== void 0) e.value[u] = /* @__PURE__ */ P(a);
339
+ else if (a.type !== "exact_optional" && a.type !== "optional" && a.type !== "nullish" && (f(this, "key", e, s, {
340
340
  input: void 0,
341
341
  expected: `"${u}"`,
342
342
  path: [{
@@ -350,7 +350,7 @@ function Q(n, r) {
350
350
  break;
351
351
  }
352
352
  if (!e.issues || !s.abortEarly)
353
- for (const u in t) /* @__PURE__ */ S(t, u) && !(u in this.entries) && (e.value[u] = t[u]);
353
+ for (const u in t) /* @__PURE__ */ I(t, u) && !(u in this.entries) && (e.value[u] = t[u]);
354
354
  } else f(this, "type", e, s);
355
355
  return e;
356
356
  }
@@ -358,28 +358,10 @@ function Q(n, r) {
358
358
  }
359
359
  // @__NO_SIDE_EFFECTS__
360
360
  function T(n, r) {
361
- return {
362
- kind: "schema",
363
- type: "nullable",
364
- reference: T,
365
- expects: `(${n.expects} | null)`,
366
- async: !1,
367
- wrapped: n,
368
- default: r,
369
- get "~standard"() {
370
- return /* @__PURE__ */ o(this);
371
- },
372
- "~run"(e, s) {
373
- return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ k(this, e, s)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, s);
374
- }
375
- };
376
- }
377
- // @__NO_SIDE_EFFECTS__
378
- function U(n, r) {
379
361
  return {
380
362
  kind: "schema",
381
363
  type: "nullish",
382
- reference: U,
364
+ reference: T,
383
365
  expects: `(${n.expects} | null | undefined)`,
384
366
  async: !1,
385
367
  wrapped: n,
@@ -388,16 +370,16 @@ function U(n, r) {
388
370
  return /* @__PURE__ */ o(this);
389
371
  },
390
372
  "~run"(e, s) {
391
- return (e.value === null || e.value === void 0) && (this.default !== void 0 && (e.value = /* @__PURE__ */ k(this, e, s)), e.value === null || e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, s);
373
+ return (e.value === null || e.value === void 0) && (this.default !== void 0 && (e.value = /* @__PURE__ */ x(this, e, s)), e.value === null || e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, s);
392
374
  }
393
375
  };
394
376
  }
395
377
  // @__NO_SIDE_EFFECTS__
396
- function W(n) {
378
+ function U(n) {
397
379
  return {
398
380
  kind: "schema",
399
381
  type: "number",
400
- reference: W,
382
+ reference: U,
401
383
  expects: "number",
402
384
  async: !1,
403
385
  message: n,
@@ -410,11 +392,11 @@ function W(n) {
410
392
  };
411
393
  }
412
394
  // @__NO_SIDE_EFFECTS__
413
- function X(n, r) {
395
+ function W(n, r) {
414
396
  return {
415
397
  kind: "schema",
416
398
  type: "object",
417
- reference: X,
399
+ reference: W,
418
400
  expects: "Object",
419
401
  async: !1,
420
402
  entries: n,
@@ -428,27 +410,27 @@ function X(n, r) {
428
410
  if (t && typeof t == "object") {
429
411
  e.typed = !0, e.value = {};
430
412
  for (const u in this.entries) {
431
- const p = this.entries[u];
432
- if (u in t || (p.type === "exact_optional" || p.type === "optional" || p.type === "nullish") && p.default !== void 0) {
433
- const i = u in t ? t[u] : /* @__PURE__ */ k(p), c = p["~run"]({ value: i }, s);
434
- if (c.issues) {
435
- const a = {
413
+ const a = this.entries[u];
414
+ if (u in t || (a.type === "exact_optional" || a.type === "optional" || a.type === "nullish") && a.default !== void 0) {
415
+ const i = u in t ? t[u] : /* @__PURE__ */ x(a), p = a["~run"]({ value: i }, s);
416
+ if (p.issues) {
417
+ const c = {
436
418
  type: "object",
437
419
  origin: "value",
438
420
  input: t,
439
421
  key: u,
440
422
  value: i
441
423
  };
442
- for (const y of c.issues)
443
- y.path ? y.path.unshift(a) : y.path = [a], (l = e.issues) == null || l.push(y);
444
- if (e.issues || (e.issues = c.issues), s.abortEarly) {
424
+ for (const y of p.issues)
425
+ y.path ? y.path.unshift(c) : y.path = [c], (l = e.issues) == null || l.push(y);
426
+ if (e.issues || (e.issues = p.issues), s.abortEarly) {
445
427
  e.typed = !1;
446
428
  break;
447
429
  }
448
430
  }
449
- c.typed || (e.typed = !1), e.value[u] = c.value;
450
- } else if (p.fallback !== void 0) e.value[u] = /* @__PURE__ */ P(p);
451
- else if (p.type !== "exact_optional" && p.type !== "optional" && p.type !== "nullish" && (f(this, "key", e, s, {
431
+ p.typed || (e.typed = !1), e.value[u] = p.value;
432
+ } else if (a.fallback !== void 0) e.value[u] = /* @__PURE__ */ P(a);
433
+ else if (a.type !== "exact_optional" && a.type !== "optional" && a.type !== "nullish" && (f(this, "key", e, s, {
452
434
  input: void 0,
453
435
  expected: `"${u}"`,
454
436
  path: [{
@@ -467,11 +449,11 @@ function X(n, r) {
467
449
  };
468
450
  }
469
451
  // @__NO_SIDE_EFFECTS__
470
- function Y(n, r) {
452
+ function X(n, r) {
471
453
  return {
472
454
  kind: "schema",
473
455
  type: "optional",
474
- reference: Y,
456
+ reference: X,
475
457
  expects: `(${n.expects} | undefined)`,
476
458
  async: !1,
477
459
  wrapped: n,
@@ -480,17 +462,17 @@ function Y(n, r) {
480
462
  return /* @__PURE__ */ o(this);
481
463
  },
482
464
  "~run"(e, s) {
483
- return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ k(this, e, s)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, s);
465
+ return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ x(this, e, s)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, s);
484
466
  }
485
467
  };
486
468
  }
487
469
  // @__NO_SIDE_EFFECTS__
488
- function Z(n, r) {
470
+ function Y(n, r) {
489
471
  return {
490
472
  kind: "schema",
491
473
  type: "picklist",
492
- reference: Z,
493
- expects: /* @__PURE__ */ w(n.map(D), "|"),
474
+ reference: Y,
475
+ expects: /* @__PURE__ */ D(n.map(w), "|"),
494
476
  async: !1,
495
477
  options: n,
496
478
  message: r,
@@ -503,11 +485,11 @@ function Z(n, r) {
503
485
  };
504
486
  }
505
487
  // @__NO_SIDE_EFFECTS__
506
- function $(n, r, e) {
488
+ function Z(n, r, e) {
507
489
  return {
508
490
  kind: "schema",
509
491
  type: "record",
510
- reference: $,
492
+ reference: Z,
511
493
  expects: "Object",
512
494
  async: !1,
513
495
  key: n,
@@ -517,44 +499,44 @@ function $(n, r, e) {
517
499
  return /* @__PURE__ */ o(this);
518
500
  },
519
501
  "~run"(s, t) {
520
- var u, p;
502
+ var u, a;
521
503
  const l = s.value;
522
504
  if (l && typeof l == "object") {
523
505
  s.typed = !0, s.value = {};
524
- for (const i in l) if (/* @__PURE__ */ S(l, i)) {
525
- const c = l[i], a = this.key["~run"]({ value: i }, t);
526
- if (a.issues) {
506
+ for (const i in l) if (/* @__PURE__ */ I(l, i)) {
507
+ const p = l[i], c = this.key["~run"]({ value: i }, t);
508
+ if (c.issues) {
527
509
  const b = {
528
510
  type: "object",
529
511
  origin: "key",
530
512
  input: l,
531
513
  key: i,
532
- value: c
514
+ value: p
533
515
  };
534
- for (const h of a.issues)
516
+ for (const h of c.issues)
535
517
  h.path = [b], (u = s.issues) == null || u.push(h);
536
- if (s.issues || (s.issues = a.issues), t.abortEarly) {
518
+ if (s.issues || (s.issues = c.issues), t.abortEarly) {
537
519
  s.typed = !1;
538
520
  break;
539
521
  }
540
522
  }
541
- const y = this.value["~run"]({ value: c }, t);
523
+ const y = this.value["~run"]({ value: p }, t);
542
524
  if (y.issues) {
543
525
  const b = {
544
526
  type: "object",
545
527
  origin: "value",
546
528
  input: l,
547
529
  key: i,
548
- value: c
530
+ value: p
549
531
  };
550
532
  for (const h of y.issues)
551
- h.path ? h.path.unshift(b) : h.path = [b], (p = s.issues) == null || p.push(h);
533
+ h.path ? h.path.unshift(b) : h.path = [b], (a = s.issues) == null || a.push(h);
552
534
  if (s.issues || (s.issues = y.issues), t.abortEarly) {
553
535
  s.typed = !1;
554
536
  break;
555
537
  }
556
538
  }
557
- (!a.typed || !y.typed) && (s.typed = !1), a.typed && (s.value[a.value] = y.value);
539
+ (!c.typed || !y.typed) && (s.typed = !1), c.typed && (s.value[c.value] = y.value);
558
540
  }
559
541
  } else f(this, "type", s, t);
560
542
  return s;
@@ -562,11 +544,11 @@ function $(n, r, e) {
562
544
  };
563
545
  }
564
546
  // @__NO_SIDE_EFFECTS__
565
- function ee(n) {
547
+ function $(n) {
566
548
  return {
567
549
  kind: "schema",
568
550
  type: "string",
569
- reference: ee,
551
+ reference: $,
570
552
  expects: "string",
571
553
  async: !1,
572
554
  message: n,
@@ -579,60 +561,18 @@ function ee(n) {
579
561
  };
580
562
  }
581
563
  // @__NO_SIDE_EFFECTS__
582
- function ne(n, r) {
583
- return {
584
- kind: "schema",
585
- type: "tuple",
586
- reference: ne,
587
- expects: "Array",
588
- async: !1,
589
- items: n,
590
- message: r,
591
- get "~standard"() {
592
- return /* @__PURE__ */ o(this);
593
- },
594
- "~run"(e, s) {
595
- var l;
596
- const t = e.value;
597
- if (Array.isArray(t)) {
598
- e.typed = !0, e.value = [];
599
- for (let u = 0; u < this.items.length; u++) {
600
- const p = t[u], i = this.items[u]["~run"]({ value: p }, s);
601
- if (i.issues) {
602
- const c = {
603
- type: "array",
604
- origin: "value",
605
- input: t,
606
- key: u,
607
- value: p
608
- };
609
- for (const a of i.issues)
610
- a.path ? a.path.unshift(c) : a.path = [c], (l = e.issues) == null || l.push(a);
611
- if (e.issues || (e.issues = i.issues), s.abortEarly) {
612
- e.typed = !1;
613
- break;
614
- }
615
- }
616
- i.typed || (e.typed = !1), e.value.push(i.value);
617
- }
618
- } else f(this, "type", e, s);
619
- return e;
620
- }
621
- };
622
- }
623
- // @__NO_SIDE_EFFECTS__
624
- function A(n) {
564
+ function S(n) {
625
565
  let r;
626
566
  if (n) for (const e of n) r ? r.push(...e.issues) : r = e.issues;
627
567
  return r;
628
568
  }
629
569
  // @__NO_SIDE_EFFECTS__
630
- function re(n, r) {
570
+ function ee(n, r) {
631
571
  return {
632
572
  kind: "schema",
633
573
  type: "union",
634
- reference: re,
635
- expects: /* @__PURE__ */ w(n.map((e) => e.expects), "|"),
574
+ reference: ee,
575
+ expects: /* @__PURE__ */ D(n.map((e) => e.expects), "|"),
636
576
  async: !1,
637
577
  options: n,
638
578
  message: r,
@@ -641,8 +581,8 @@ function re(n, r) {
641
581
  },
642
582
  "~run"(e, s) {
643
583
  let t, l, u;
644
- for (const p of this.options) {
645
- const i = p["~run"]({ value: e.value }, s);
584
+ for (const a of this.options) {
585
+ const i = a["~run"]({ value: e.value }, s);
646
586
  if (i.typed) if (i.issues) l ? l.push(i) : l = [i];
647
587
  else {
648
588
  t = i;
@@ -653,21 +593,21 @@ function re(n, r) {
653
593
  if (t) return t;
654
594
  if (l) {
655
595
  if (l.length === 1) return l[0];
656
- f(this, "type", e, s, { issues: /* @__PURE__ */ A(l) }), e.typed = !0;
596
+ f(this, "type", e, s, { issues: /* @__PURE__ */ S(l) }), e.typed = !0;
657
597
  } else {
658
598
  if ((u == null ? void 0 : u.length) === 1) return u[0];
659
- f(this, "type", e, s, { issues: /* @__PURE__ */ A(u) });
599
+ f(this, "type", e, s, { issues: /* @__PURE__ */ S(u) });
660
600
  }
661
601
  return e;
662
602
  }
663
603
  };
664
604
  }
665
605
  // @__NO_SIDE_EFFECTS__
666
- function se() {
606
+ function ne() {
667
607
  return {
668
608
  kind: "schema",
669
609
  type: "unknown",
670
- reference: se,
610
+ reference: ne,
671
611
  expects: "unknown",
672
612
  async: !1,
673
613
  get "~standard"() {
@@ -679,11 +619,11 @@ function se() {
679
619
  };
680
620
  }
681
621
  // @__NO_SIDE_EFFECTS__
682
- function te(n, r, e) {
622
+ function re(n, r, e) {
683
623
  return {
684
624
  kind: "schema",
685
625
  type: "variant",
686
- reference: te,
626
+ reference: re,
687
627
  expects: "Object",
688
628
  async: !1,
689
629
  key: n,
@@ -695,22 +635,22 @@ function te(n, r, e) {
695
635
  "~run"(s, t) {
696
636
  const l = s.value;
697
637
  if (l && typeof l == "object") {
698
- let u, p = 0, i = this.key, c = [];
699
- const a = (y, b) => {
638
+ let u, a = 0, i = this.key, p = [];
639
+ const c = (y, b) => {
700
640
  for (const h of y.options) {
701
- if (h.type === "variant") a(h, new Set(b).add(h.key));
641
+ if (h.type === "variant") c(h, new Set(b).add(h.key));
702
642
  else {
703
- let O = !0, d = 0;
643
+ let O = !0, k = 0;
704
644
  for (const v of b) {
705
- const g = h.entries[v];
706
- if (v in l ? g["~run"]({
645
+ const d = h.entries[v];
646
+ if (v in l ? d["~run"]({
707
647
  typed: !1,
708
648
  value: l[v]
709
- }, { abortEarly: !0 }).issues : g.type !== "exact_optional" && g.type !== "optional" && g.type !== "nullish") {
710
- O = !1, i !== v && (p < d || p === d && v in l && !(i in l)) && (p = d, i = v, c = []), i === v && c.push(h.entries[v].expects);
649
+ }, { abortEarly: !0 }).issues : d.type !== "exact_optional" && d.type !== "optional" && d.type !== "nullish") {
650
+ O = !1, i !== v && (a < k || a === k && v in l && !(i in l)) && (a = k, i = v, p = []), i === v && p.push(h.entries[v].expects);
711
651
  break;
712
652
  }
713
- d++;
653
+ k++;
714
654
  }
715
655
  if (O) {
716
656
  const v = h["~run"]({ value: l }, t);
@@ -720,10 +660,10 @@ function te(n, r, e) {
720
660
  if (u && !u.issues) break;
721
661
  }
722
662
  };
723
- if (a(this, /* @__PURE__ */ new Set([this.key])), u) return u;
663
+ if (c(this, /* @__PURE__ */ new Set([this.key])), u) return u;
724
664
  f(this, "type", s, t, {
725
665
  input: l[i],
726
- expected: /* @__PURE__ */ w(c, "|"),
666
+ expected: /* @__PURE__ */ D(p, "|"),
727
667
  path: [{
728
668
  type: "object",
729
669
  origin: "value",
@@ -737,13 +677,13 @@ function te(n, r, e) {
737
677
  }
738
678
  };
739
679
  }
740
- function ie(n, r, e) {
741
- const s = n["~run"]({ value: r }, /* @__PURE__ */ x(e));
680
+ function te(n, r, e) {
681
+ const s = n["~run"]({ value: r }, /* @__PURE__ */ g(e));
742
682
  if (s.issues) throw new K(s.issues);
743
683
  return s.value;
744
684
  }
745
685
  // @__NO_SIDE_EFFECTS__
746
- function le(...n) {
686
+ function ue(...n) {
747
687
  return {
748
688
  ...n[0],
749
689
  pipe: n,
@@ -763,7 +703,7 @@ function le(...n) {
763
703
  };
764
704
  }
765
705
  // @__NO_SIDE_EFFECTS__
766
- function pe(...n) {
706
+ function ie(...n) {
767
707
  return {
768
708
  ...n[0],
769
709
  pipe: n,
@@ -784,8 +724,8 @@ function pe(...n) {
784
724
  };
785
725
  }
786
726
  // @__NO_SIDE_EFFECTS__
787
- function ae(n, r, e) {
788
- const s = n["~run"]({ value: r }, /* @__PURE__ */ x(e));
727
+ function le(n, r, e) {
728
+ const s = n["~run"]({ value: r }, /* @__PURE__ */ g(e));
789
729
  return {
790
730
  typed: s.typed,
791
731
  success: !s.issues,
@@ -794,8 +734,8 @@ function ae(n, r, e) {
794
734
  };
795
735
  }
796
736
  // @__NO_SIDE_EFFECTS__
797
- async function ce(n, r, e) {
798
- const s = await n["~run"]({ value: r }, /* @__PURE__ */ x(e));
737
+ async function ae(n, r, e) {
738
+ const s = await n["~run"]({ value: r }, /* @__PURE__ */ g(e));
799
739
  return {
800
740
  typed: s.typed,
801
741
  success: !s.issues,
@@ -807,18 +747,18 @@ export {
807
747
  K as ValiError,
808
748
  f as _addIssue,
809
749
  o as _getStandardProps,
810
- S as _isValidObjectKey,
811
- w as _joinExpects,
812
- D as _stringify,
750
+ I as _isValidObjectKey,
751
+ D as _joinExpects,
752
+ w as _stringify,
813
753
  F as array,
814
754
  R as boolean,
815
755
  M as checkAsync,
816
756
  B as custom,
817
- ue as fallback,
818
- k as getDefault,
757
+ se as fallback,
758
+ x as getDefault,
819
759
  P as getFallback,
820
- x as getGlobalConfig,
821
- I as getGlobalMessage,
760
+ g as getGlobalConfig,
761
+ A as getGlobalMessage,
822
762
  V as getSchemaMessage,
823
763
  q as getSpecificMessage,
824
764
  H as lazy,
@@ -827,23 +767,21 @@ export {
827
767
  z as maxLength,
828
768
  G as minLength,
829
769
  L as nonEmpty,
830
- T as nullable,
831
- U as nullish,
832
- W as number,
833
- X as object,
834
- Y as optional,
835
- ie as parse,
836
- Z as picklist,
837
- le as pipe,
838
- pe as pipeAsync,
839
- $ as record,
840
- ae as safeParse,
841
- ce as safeParseAsync,
842
- ee as string,
770
+ T as nullish,
771
+ U as number,
772
+ W as object,
773
+ X as optional,
774
+ te as parse,
775
+ Y as picklist,
776
+ ue as pipe,
777
+ ie as pipeAsync,
778
+ Z as record,
779
+ le as safeParse,
780
+ ae as safeParseAsync,
781
+ $ as string,
843
782
  N as transform,
844
783
  C as trim,
845
- ne as tuple,
846
- re as union,
847
- se as unknown,
848
- te as variant
784
+ ee as union,
785
+ ne as unknown,
786
+ re as variant
849
787
  };
@@ -1,4 +1,4 @@
1
- const o = "3.26.0-beta.8251afd", s = { stripo: { version: "2.83.1" } }, t = {
1
+ const o = "3.26.0-beta.a188943", s = { stripo: { version: "2.83.1" } }, t = {
2
2
  version: o,
3
3
  guido: s
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import type { DynamicContent } from '@@/Types/generic';
2
2
  import type { SaveValidationError } from '@@/Types/save-validation';
3
3
  export declare const useSaveValidation: () => {
4
- collectSaveValidationErrors: (compiledHtml: string, dynamicContentList: DynamicContent[], rawHtml: string) => Promise<SaveValidationError[] | null>;
5
- validateCurrentTemplate: () => Promise<SaveValidationError[] | null>;
4
+ collectSaveValidationErrors: (compiledHtml: string, dynamicContentList: DynamicContent[], rawHtml: string) => Promise<SaveValidationError[]>;
5
+ validateCurrentTemplate: () => Promise<SaveValidationError[]>;
6
6
  };