@useinsider/guido 3.28.1-beta.5919d57 → 3.28.1-beta.6aafa21

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.
@@ -417,6 +417,8 @@ export declare const FeaturesSchema: v.ObjectSchema<{
417
417
  /** Allow persisting a template that still has validation errors (drawer "Save and Continue" soft-save). Host sets false for transactional + unsubscribe. */
418
418
  readonly allowSaveWithErrors: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
419
419
  readonly reusableRecommendationStrategy: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
420
+ /** List the dynamic-content catalogue as Stripo special links in the link type selector */
421
+ readonly dynamicContentSpecialLinks: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
420
422
  /** Convert linkless legacy unsubscribe blocks into text blocks and warn with a modal (opt-in) */
421
423
  readonly legacyUnsubscribeConversion: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
422
424
  /** Items block: Recommendation-style price formatting (root currency-* attrs, raw price tags). Released dark. */
@@ -844,6 +846,8 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
844
846
  /** Allow persisting a template that still has validation errors (drawer "Save and Continue" soft-save). Host sets false for transactional + unsubscribe. */
845
847
  readonly allowSaveWithErrors: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
846
848
  readonly reusableRecommendationStrategy: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
849
+ /** List the dynamic-content catalogue as Stripo special links in the link type selector */
850
+ readonly dynamicContentSpecialLinks: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
847
851
  /** Convert linkless legacy unsubscribe blocks into text blocks and warn with a modal (opt-in) */
848
852
  readonly legacyUnsubscribeConversion: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
849
853
  /** Items block: Recommendation-style price formatting (root currency-* attrs, raw price tags). Released dark. */
@@ -22,6 +22,8 @@ export type DynamicContentNode = {
22
22
  text?: string;
23
23
  tag_text?: string;
24
24
  value?: string;
25
+ description?: string;
26
+ type?: string;
25
27
  children?: DynamicContentNode[];
26
28
  select_items?: DynamicContentNode[];
27
29
  };
@@ -44,6 +46,14 @@ export type MergeTag = BaseDynamicContent & {
44
46
  selEnd?: number;
45
47
  hidden?: boolean;
46
48
  };
49
+ export type SpecialLinkGroup = {
50
+ category: string;
51
+ entries: {
52
+ label: string;
53
+ value: string;
54
+ hidden?: boolean;
55
+ }[];
56
+ };
47
57
  export type PositionData = {
48
58
  x: number;
49
59
  y: number;
@@ -106,6 +106,7 @@ export declare const useConfig: () => {
106
106
  linkTrackingIds: boolean;
107
107
  allowSaveWithErrors: boolean;
108
108
  reusableRecommendationStrategy: boolean;
109
+ dynamicContentSpecialLinks: boolean;
109
110
  legacyUnsubscribeConversion: boolean;
110
111
  itemsPriceFormatting: boolean;
111
112
  blockUnsubscribeLinks: boolean;
@@ -250,6 +251,7 @@ export declare const useConfig: () => {
250
251
  linkTrackingIds: boolean;
251
252
  allowSaveWithErrors: boolean;
252
253
  reusableRecommendationStrategy: boolean;
254
+ dynamicContentSpecialLinks: boolean;
253
255
  legacyUnsubscribeConversion: boolean;
254
256
  itemsPriceFormatting: boolean;
255
257
  blockUnsubscribeLinks: boolean;
@@ -111,6 +111,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
111
111
  linkTrackingIds: boolean;
112
112
  allowSaveWithErrors: boolean;
113
113
  reusableRecommendationStrategy: boolean;
114
+ dynamicContentSpecialLinks: boolean;
114
115
  legacyUnsubscribeConversion: boolean;
115
116
  itemsPriceFormatting: boolean;
116
117
  blockUnsubscribeLinks: boolean;
@@ -261,6 +262,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
261
262
  linkTrackingIds: boolean;
262
263
  allowSaveWithErrors: boolean;
263
264
  reusableRecommendationStrategy: boolean;
265
+ dynamicContentSpecialLinks: boolean;
264
266
  legacyUnsubscribeConversion: boolean;
265
267
  itemsPriceFormatting: boolean;
266
268
  blockUnsubscribeLinks: boolean;
@@ -411,6 +413,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
411
413
  linkTrackingIds: boolean;
412
414
  allowSaveWithErrors: boolean;
413
415
  reusableRecommendationStrategy: boolean;
416
+ dynamicContentSpecialLinks: boolean;
414
417
  legacyUnsubscribeConversion: boolean;
415
418
  itemsPriceFormatting: boolean;
416
419
  blockUnsubscribeLinks: boolean;
@@ -561,6 +564,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
561
564
  linkTrackingIds: boolean;
562
565
  allowSaveWithErrors: boolean;
563
566
  reusableRecommendationStrategy: boolean;
567
+ dynamicContentSpecialLinks: boolean;
564
568
  legacyUnsubscribeConversion: boolean;
565
569
  itemsPriceFormatting: boolean;
566
570
  blockUnsubscribeLinks: boolean;
@@ -711,6 +715,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
711
715
  linkTrackingIds: boolean;
712
716
  allowSaveWithErrors: boolean;
713
717
  reusableRecommendationStrategy: boolean;
718
+ dynamicContentSpecialLinks: boolean;
714
719
  legacyUnsubscribeConversion: boolean;
715
720
  itemsPriceFormatting: boolean;
716
721
  blockUnsubscribeLinks: boolean;
@@ -861,6 +866,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
861
866
  linkTrackingIds: boolean;
862
867
  allowSaveWithErrors: boolean;
863
868
  reusableRecommendationStrategy: boolean;
869
+ dynamicContentSpecialLinks: boolean;
864
870
  legacyUnsubscribeConversion: boolean;
865
871
  itemsPriceFormatting: boolean;
866
872
  blockUnsubscribeLinks: boolean;
@@ -1011,6 +1017,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1011
1017
  linkTrackingIds: boolean;
1012
1018
  allowSaveWithErrors: boolean;
1013
1019
  reusableRecommendationStrategy: boolean;
1020
+ dynamicContentSpecialLinks: boolean;
1014
1021
  legacyUnsubscribeConversion: boolean;
1015
1022
  itemsPriceFormatting: boolean;
1016
1023
  blockUnsubscribeLinks: boolean;
@@ -1161,6 +1168,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1161
1168
  linkTrackingIds: boolean;
1162
1169
  allowSaveWithErrors: boolean;
1163
1170
  reusableRecommendationStrategy: boolean;
1171
+ dynamicContentSpecialLinks: boolean;
1164
1172
  legacyUnsubscribeConversion: boolean;
1165
1173
  itemsPriceFormatting: boolean;
1166
1174
  blockUnsubscribeLinks: boolean;
@@ -1311,6 +1319,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1311
1319
  linkTrackingIds: boolean;
1312
1320
  allowSaveWithErrors: boolean;
1313
1321
  reusableRecommendationStrategy: boolean;
1322
+ dynamicContentSpecialLinks: boolean;
1314
1323
  legacyUnsubscribeConversion: boolean;
1315
1324
  itemsPriceFormatting: boolean;
1316
1325
  blockUnsubscribeLinks: boolean;
@@ -1461,6 +1470,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1461
1470
  linkTrackingIds: boolean;
1462
1471
  allowSaveWithErrors: boolean;
1463
1472
  reusableRecommendationStrategy: boolean;
1473
+ dynamicContentSpecialLinks: boolean;
1464
1474
  legacyUnsubscribeConversion: boolean;
1465
1475
  itemsPriceFormatting: boolean;
1466
1476
  blockUnsubscribeLinks: boolean;
@@ -1611,6 +1621,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1611
1621
  linkTrackingIds: boolean;
1612
1622
  allowSaveWithErrors: boolean;
1613
1623
  reusableRecommendationStrategy: boolean;
1624
+ dynamicContentSpecialLinks: boolean;
1614
1625
  legacyUnsubscribeConversion: boolean;
1615
1626
  itemsPriceFormatting: boolean;
1616
1627
  blockUnsubscribeLinks: boolean;
@@ -1761,6 +1772,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1761
1772
  linkTrackingIds: boolean;
1762
1773
  allowSaveWithErrors: boolean;
1763
1774
  reusableRecommendationStrategy: boolean;
1775
+ dynamicContentSpecialLinks: boolean;
1764
1776
  legacyUnsubscribeConversion: boolean;
1765
1777
  itemsPriceFormatting: boolean;
1766
1778
  blockUnsubscribeLinks: boolean;
@@ -1911,6 +1923,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1911
1923
  linkTrackingIds: boolean;
1912
1924
  allowSaveWithErrors: boolean;
1913
1925
  reusableRecommendationStrategy: boolean;
1926
+ dynamicContentSpecialLinks: boolean;
1914
1927
  legacyUnsubscribeConversion: boolean;
1915
1928
  itemsPriceFormatting: boolean;
1916
1929
  blockUnsubscribeLinks: boolean;
@@ -2061,6 +2074,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2061
2074
  linkTrackingIds: boolean;
2062
2075
  allowSaveWithErrors: boolean;
2063
2076
  reusableRecommendationStrategy: boolean;
2077
+ dynamicContentSpecialLinks: boolean;
2064
2078
  legacyUnsubscribeConversion: boolean;
2065
2079
  itemsPriceFormatting: boolean;
2066
2080
  blockUnsubscribeLinks: boolean;
@@ -2211,6 +2225,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2211
2225
  linkTrackingIds: boolean;
2212
2226
  allowSaveWithErrors: boolean;
2213
2227
  reusableRecommendationStrategy: boolean;
2228
+ dynamicContentSpecialLinks: boolean;
2214
2229
  legacyUnsubscribeConversion: boolean;
2215
2230
  itemsPriceFormatting: boolean;
2216
2231
  blockUnsubscribeLinks: boolean;
@@ -2361,6 +2376,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2361
2376
  linkTrackingIds: boolean;
2362
2377
  allowSaveWithErrors: boolean;
2363
2378
  reusableRecommendationStrategy: boolean;
2379
+ dynamicContentSpecialLinks: boolean;
2364
2380
  legacyUnsubscribeConversion: boolean;
2365
2381
  itemsPriceFormatting: boolean;
2366
2382
  blockUnsubscribeLinks: boolean;
@@ -2511,6 +2527,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2511
2527
  linkTrackingIds: boolean;
2512
2528
  allowSaveWithErrors: boolean;
2513
2529
  reusableRecommendationStrategy: boolean;
2530
+ dynamicContentSpecialLinks: boolean;
2514
2531
  legacyUnsubscribeConversion: boolean;
2515
2532
  itemsPriceFormatting: boolean;
2516
2533
  blockUnsubscribeLinks: boolean;
@@ -2673,6 +2690,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2673
2690
  linkTrackingIds: boolean;
2674
2691
  allowSaveWithErrors: boolean;
2675
2692
  reusableRecommendationStrategy: boolean;
2693
+ dynamicContentSpecialLinks: boolean;
2676
2694
  legacyUnsubscribeConversion: boolean;
2677
2695
  itemsPriceFormatting: boolean;
2678
2696
  blockUnsubscribeLinks: boolean;
@@ -2823,6 +2841,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2823
2841
  linkTrackingIds: boolean;
2824
2842
  allowSaveWithErrors: boolean;
2825
2843
  reusableRecommendationStrategy: boolean;
2844
+ dynamicContentSpecialLinks: boolean;
2826
2845
  legacyUnsubscribeConversion: boolean;
2827
2846
  itemsPriceFormatting: boolean;
2828
2847
  blockUnsubscribeLinks: boolean;
@@ -2973,6 +2992,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2973
2992
  linkTrackingIds: boolean;
2974
2993
  allowSaveWithErrors: boolean;
2975
2994
  reusableRecommendationStrategy: boolean;
2995
+ dynamicContentSpecialLinks: boolean;
2976
2996
  legacyUnsubscribeConversion: boolean;
2977
2997
  itemsPriceFormatting: boolean;
2978
2998
  blockUnsubscribeLinks: boolean;
@@ -3125,6 +3145,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
3125
3145
  linkTrackingIds: boolean;
3126
3146
  allowSaveWithErrors: boolean;
3127
3147
  reusableRecommendationStrategy: boolean;
3148
+ dynamicContentSpecialLinks: boolean;
3128
3149
  legacyUnsubscribeConversion: boolean;
3129
3150
  itemsPriceFormatting: boolean;
3130
3151
  blockUnsubscribeLinks: boolean;
@@ -1,4 +1,4 @@
1
- import type { DynamicContent, DynamicContentCandidate, DynamicContentList, MergeTag } from '@@/Types/generic';
1
+ import type { DynamicContent, DynamicContentCandidate, DynamicContentList, MergeTag, SpecialLinkGroup } from '@@/Types/generic';
2
2
  export declare const mergeTagToDynamicContent: (mergeTag: MergeTag) => DynamicContent;
3
3
  export declare const dynamicContentToMergeTags: (dynamicContentList: DynamicContent[], liquidSyntax?: boolean) => MergeTag[];
4
4
  /**
@@ -14,6 +14,11 @@ export declare const flattenDynamicContentList: (list: DynamicContentList | unde
14
14
  * token — including ones repaired on module drop — render as a chip.
15
15
  */
16
16
  export declare const buildMergeTagEntries: (preselected: DynamicContent[], available: DynamicContent[], liquidSyntax?: boolean) => MergeTag[];
17
+ /**
18
+ * Groups the active partner's URL attributes and every Call an API variable under
19
+ * their top-level category for Stripo's `specialLinks` option.
20
+ */
21
+ export declare const buildSpecialLinkGroups: (list: DynamicContentList | undefined | null, liquidSyntax?: boolean) => SpecialLinkGroup[];
17
22
  export declare const getCsrfToken: () => string;
18
23
  /**
19
24
  * URL Parameter utilities
@@ -1,78 +1,88 @@
1
- import { formatToLiquidFilter as y, liquidFilterToFormat as g, quoteArgument as m } from "./liquidDynamicContent.js";
2
- const v = (t) => {
1
+ import { formatToLiquidFilter as g, liquidFilterToFormat as p, quoteArgument as y } from "./liquidDynamicContent.js";
2
+ const m = (t) => {
3
3
  if (!t.includes("="))
4
4
  return null;
5
- const [r, e] = t.split("=");
6
- return { key: r.trim(), value: e.trim() };
7
- }, u = "default:", i = (t) => {
5
+ const [a, e] = t.split("=");
6
+ return { key: a.trim(), value: e.trim() };
7
+ }, u = "default:", b = (t) => {
8
8
  if (!t.startsWith(u))
9
9
  return t;
10
- const r = t.slice(u.length).trim(), e = (n) => r.length >= 2 && r.startsWith(n) && r.endsWith(n);
11
- return e('"') || e("'") ? r.slice(1, -1) : r;
12
- }, $ = (t) => {
13
- const e = t.value.match(/\{\{([^}]+)\}\}/)[1].split("|").map((a) => a.trim()), [n] = e, s = {
10
+ const a = t.slice(u.length).trim(), e = (r) => a.length >= 2 && a.startsWith(r) && a.endsWith(r);
11
+ return e('"') || e("'") ? a.slice(1, -1) : a;
12
+ }, A = (t) => {
13
+ const e = t.value.match(/\{\{([^}]+)\}\}/)[1].split("|").map((n) => n.trim()), [r] = e, l = {
14
14
  text: t.label,
15
- value: n || ""
15
+ value: r || ""
16
16
  };
17
17
  if (e.length >= 2) {
18
- const [, a, o] = e;
19
- if (a.startsWith(u))
20
- s.fallback = i(a);
18
+ const [, n, c] = e;
19
+ if (n.startsWith(u))
20
+ l.fallback = b(n);
21
21
  else {
22
- const l = g(a) ?? v(a);
23
- l ? s.format = l : o || (s.fallback = a), o && (s.fallback = i(o));
22
+ const s = p(n) ?? m(n);
23
+ s ? l.format = s : c || (l.fallback = n), c && (l.fallback = b(c));
24
24
  }
25
25
  }
26
- return s;
27
- }, h = (t) => {
28
- const e = !Number.isNaN(Number(t)) && t.trim() !== "" ? t : m(t);
26
+ return l;
27
+ }, d = (t) => {
28
+ const e = !Number.isNaN(Number(t)) && t.trim() !== "" ? t : y(t);
29
29
  return e === null ? null : `${u} ${e}`;
30
- }, p = (t) => {
31
- const r = t.format ? y(t.format) : null, e = t.fallback ? h(t.fallback) : null, n = [t.value, r, e].filter(Boolean);
30
+ }, v = (t) => {
31
+ const a = t.format ? g(t.format) : null, e = t.fallback ? d(t.fallback) : null, r = [t.value, a, e].filter(Boolean);
32
32
  return {
33
- label: [t.text, r, e && t.fallback].filter(Boolean).join(" | "),
34
- value: `{{ ${n.join(" | ")} }}`
33
+ label: [t.text, a, e && t.fallback].filter(Boolean).join(" | "),
34
+ value: `{{ ${r.join(" | ")} }}`
35
35
  };
36
- }, b = (t, r = !1) => t.map((e) => r ? p(e) : e.format ? {
36
+ }, i = (t, a = !1) => t.map((e) => a ? v(e) : e.format ? {
37
37
  label: `${e.text} | ${e.format.key}=${e.format.value}`,
38
38
  value: `{{${e.value}|${e.format.key}=${e.format.value}}}`
39
39
  } : {
40
40
  label: e.fallback ? `${e.text} | ${e.fallback}` : e.text,
41
41
  value: e.fallback ? `{{${e.value}|${e.fallback}}}` : `{{${e.value}}}`
42
- }), k = (t) => {
43
- const r = [], e = /* @__PURE__ */ new Set(), n = (a, o) => {
44
- Array.isArray(a) && a.forEach((l) => {
45
- const f = [...l.children ?? [], ...l.select_items ?? []], c = l.text || l.tag_text;
42
+ }), T = (t) => {
43
+ const a = [], e = /* @__PURE__ */ new Set(), r = (n, c) => {
44
+ Array.isArray(n) && n.forEach((s) => {
45
+ const f = [...s.children ?? [], ...s.select_items ?? []], o = s.text || s.tag_text;
46
46
  if (f.length > 0) {
47
- n(f, c ? [...o, c] : o);
47
+ r(f, o ? [...c, o] : c);
48
48
  return;
49
49
  }
50
- c && l.value && !e.has(l.value) && (e.add(l.value), r.push({ value: l.value, text: c, tagText: l.tag_text || c, path: o }));
50
+ o && s.value && !e.has(s.value) && (e.add(s.value), a.push({ value: s.value, text: o, tagText: s.tag_text || o, path: c }));
51
51
  });
52
- }, [s] = Object.values(t ?? {});
53
- return n(s, []), r;
54
- }, x = (t) => k(t).map(({ text: r, value: e }) => ({ text: r, value: e })), T = (t, r, e = !1) => {
55
- const n = new Set(t.map((a) => a.value)), s = r.filter((a) => n.has(a.value) ? !1 : (n.add(a.value), !0));
52
+ }, [l] = Object.values(t ?? {});
53
+ return r(l, []), a;
54
+ }, h = (t) => T(t).map(({ text: a, value: e }) => ({ text: a, value: e })), L = (t, a, e = !1) => {
55
+ const r = new Set(t.map((n) => n.value)), l = a.filter((n) => r.has(n.value) ? !1 : (r.add(n.value), !0));
56
56
  return [
57
- ...b(t, e),
58
- ...b(s, e)
57
+ ...i(t, e),
58
+ ...i(l, e)
59
59
  ];
60
+ }, k = /url(_\d+)?$/i, _ = /^call_an_api_response_/, $ = (t) => k.test(t) || _.test(t), P = (t, a = !1) => {
61
+ const [e] = Object.values(t ?? {});
62
+ return (e ?? []).map((r) => {
63
+ const l = h({ node: [r] }).filter((n) => $(n.value));
64
+ return {
65
+ category: r.text || r.tag_text || "",
66
+ entries: i(l, a).map(({ label: n, value: c }) => ({ label: n, value: c }))
67
+ };
68
+ }).filter((r) => r.category && r.entries.length > 0);
60
69
  }, F = () => {
61
70
  var t;
62
71
  return ((t = document.head.querySelector('meta[name="csrf-token"]')) == null ? void 0 : t.getAttribute("content")) ?? "";
63
- }, P = (t) => typeof t == "string" ? t : typeof t == "number" ? String(t) : "", j = (t) => {
72
+ }, N = (t) => typeof t == "string" ? t : typeof t == "number" ? String(t) : "", C = (t) => {
64
73
  if (t === null || typeof t != "object" || Array.isArray(t))
65
74
  return !1;
66
- const r = Object.getPrototypeOf(t);
67
- return r === Object.prototype || r === null;
75
+ const a = Object.getPrototypeOf(t);
76
+ return a === Object.prototype || a === null;
68
77
  };
69
78
  export {
70
- P as asText,
71
- T as buildMergeTagEntries,
72
- b as dynamicContentToMergeTags,
73
- k as flattenDynamicContentCandidates,
74
- x as flattenDynamicContentList,
79
+ N as asText,
80
+ L as buildMergeTagEntries,
81
+ P as buildSpecialLinkGroups,
82
+ i as dynamicContentToMergeTags,
83
+ T as flattenDynamicContentCandidates,
84
+ h as flattenDynamicContentList,
75
85
  F as getCsrfToken,
76
- j as isPlainObject,
77
- $ as mergeTagToDynamicContent
86
+ C as isPlainObject,
87
+ A as mergeTagToDynamicContent
78
88
  };
@@ -50,17 +50,17 @@ const Y = () => {
50
50
  const n = L(), s = N(), o = z(), { getCompiledEmail: r, getTemplateData: e } = x(), { writeTrackingIds: i } = F(), { compileHtml: t, compileAmpHtml: c } = I(), { isFeatureEnabled: a } = D();
51
51
  return {
52
52
  prepareTemplateDetails: async (h) => {
53
- let { html: m, css: p, syncModulesIds: u = [] } = h ?? await e();
53
+ let { html: m, css: u, syncModulesIds: f = [] } = h ?? await e();
54
54
  if (a("linkTrackingIds")) {
55
55
  const { changed: P, nextSeq: E } = i(s.trackIdSessionFloor);
56
- s.trackIdSessionFloor = E, P && ({ html: m, css: p, syncModulesIds: u = [] } = await e());
56
+ s.trackIdSessionFloor = E, P && ({ html: m, css: u, syncModulesIds: f = [] } = await e());
57
57
  }
58
58
  const { html: T, ampHtml: d = "", ampErrors: w = [] } = await r({
59
59
  minimize: !0,
60
60
  resetDataSavedFlag: !1
61
- });
62
- o.selectedUnsubscribePages.length && await o.fetchTemplates(), await S(m);
63
- const { compiledHtml: A, stats: l, appliedRules: y } = t(T), C = d && c(d).compiledHtml, k = n.getSelectedDynamicContentList, H = b(), f = M(m);
61
+ }), p = M(m);
62
+ (p.length || o.selectedUnsubscribePages.length) && await o.fetchTemplates(), await S(m);
63
+ const { compiledHtml: A, stats: l, appliedRules: y } = t(T), C = d && c(d).compiledHtml, k = n.getSelectedDynamicContentList, H = b();
64
64
  return console.debug("HTML Compilation Stats:", {
65
65
  originalSize: l.originalSize,
66
66
  compiledSize: l.compiledSize,
@@ -71,17 +71,17 @@ const Y = () => {
71
71
  dynamicContentList: k,
72
72
  compiledHtml: A,
73
73
  rawHtml: m,
74
- css: p,
74
+ css: u,
75
75
  ampHtml: C,
76
76
  ampErrors: w,
77
- modules: u.map(Number),
77
+ modules: f.map(Number),
78
78
  recommendation: {
79
79
  campaignUrls: H.recommendationCampaignUrls,
80
80
  configs: {}
81
81
  },
82
82
  unsubscribe: {
83
- status: f.length > 0,
84
- config: f
83
+ status: p.length > 0,
84
+ config: p
85
85
  }
86
86
  };
87
87
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "3.28.1-beta.5919d57",
3
+ "version": "3.28.1-beta.6aafa21",
4
4
  "description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
5
5
  "main": "./dist/guido.umd.cjs",
6
6
  "module": "./dist/library.js",
@@ -60,7 +60,7 @@
60
60
  "license": "ISC",
61
61
  "dependencies": {
62
62
  "@stripoinc/ui-editor-extensions": "3.11.0",
63
- "@useinsider/design-system-organisms": "0.0.3-beta.d816f06",
63
+ "@useinsider/design-system-organisms": "0.4.0",
64
64
  "@useinsider/design-system-vue": "2.5.0",
65
65
  "@vueuse/core": "11.3.0",
66
66
  "lodash-es": "4.17.21",