@useinsider/guido 3.24.0-beta.88c24c1 → 3.24.0-beta.8e9f4e2

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 (39) hide show
  1. package/README.md +6 -2
  2. package/dist/@types/config/schemas.js +9 -11
  3. package/dist/components/Guido.vue.js +1 -1
  4. package/dist/components/Guido.vue2.js +1 -1
  5. package/dist/composables/useActionsApi.js +2 -2
  6. package/dist/composables/useEditorTrackingIds.js +49 -0
  7. package/dist/composables/useHtmlCompiler.js +2 -0
  8. package/dist/composables/useSave.js +52 -57
  9. package/dist/composables/useSaveValidation.js +110 -118
  10. package/dist/composables/useStripo.js +70 -70
  11. package/dist/composables/validators/useUnsubscribeBlockValidator.js +33 -48
  12. package/dist/config/compiler/htmlCompilerRules.js +14 -6
  13. package/dist/config/migrator/recommendation/inferLegacyConfig.js +133 -0
  14. package/dist/config/migrator/recommendationMigrator.js +69 -63
  15. package/dist/enums/save-validation.js +1 -1
  16. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +10 -8
  17. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +28 -24
  18. package/dist/extensions/Blocks/Recommendation/utils/nodeConfigWriter.js +23 -22
  19. package/dist/guido.css +1 -1
  20. package/dist/package.json.js +4 -4
  21. package/dist/services/templateLibraryApi.js +39 -36
  22. package/dist/src/@types/config/schemas.d.ts +0 -4
  23. package/dist/src/composables/useConfig.d.ts +0 -2
  24. package/dist/src/composables/useEditorTrackingIds.d.ts +7 -0
  25. package/dist/src/composables/useSaveValidation.d.ts +1 -1
  26. package/dist/src/composables/useStripo.d.ts +1 -1
  27. package/dist/src/composables/validators/useUnsubscribeBlockValidator.d.ts +0 -4
  28. package/dist/src/config/migrator/recommendation/inferLegacyConfig.d.ts +6 -0
  29. package/dist/src/config/migrator/recommendation/parseLegacyConfig.d.ts +1 -1
  30. package/dist/src/config/migrator/recommendationMigrator.d.ts +1 -5
  31. package/dist/src/enums/save-validation.d.ts +1 -2
  32. package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +2 -0
  33. package/dist/src/stores/config.d.ts +0 -20
  34. package/dist/src/utils/linkTrackingIds.d.ts +19 -0
  35. package/dist/src/utils/trimHrefWhitespace.d.ts +5 -0
  36. package/dist/utils/linkTrackingIds.js +82 -48
  37. package/dist/utils/templatePreparation.js +30 -33
  38. package/dist/utils/trimHrefWhitespace.js +10 -0
  39. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { useToaster as L } from "../../../../composables/useToaster.js";
2
2
  import { useTranslations as U } from "../../../../composables/useTranslations.js";
3
- import { getRecommendationFeedSourceMaps as F, strategyEditPath as z, strategyCreatePath as B, getOperatorOptions as M, PriceAttributes as N } from "../../../../enums/extensions/recommendationBlock.js";
3
+ import { getRecommendationFeedSourceMaps as w, strategyEditPath as z, strategyCreatePath as B, getOperatorOptions as M, PriceAttributes as N } from "../../../../enums/extensions/recommendationBlock.js";
4
4
  import { ToasterTypeOptions as E } from "../../../../enums/toaster.js";
5
5
  import { useRecommendationApi as O } from "../../../../services/recommendationApi.js";
6
6
  import { useConfigStore as R } from "../../../../stores/config.js";
@@ -8,21 +8,21 @@ import { defineStore as V } from "pinia";
8
8
  import "../constants/selectors.js";
9
9
  import { DEFAULT_MOBILE_CARDS_IN_ROW as A, DEFAULT_CARDS_IN_ROW as x } from "../constants/layout.js";
10
10
  import { CURRENT_CONFIG_VERSION as C, DEFAULT_NODE_CONFIG as T, EXCLUDED_ALGORITHM_IDS as j } from "../constants/defaultConfig.js";
11
- import { getDefaultProducts as w } from "../templates/utils.js";
11
+ import { getDefaultProducts as F } from "../templates/utils.js";
12
12
  import { generateCompleteFilterQuery as P } from "../utils/filterUtil.js";
13
13
  import { isLegacyStrategyConfig as $ } from "../utils/legacyStrategyMigration.js";
14
14
  import { getPartnerRecommendationParams as q } from "../utils/partnerCustomizations.js";
15
15
  import { sanitizeProductIds as K } from "../utils/productIds.js";
16
16
  import { isFilterValid as H } from "../validation/filterSchema.js";
17
17
  import { getInvalidFields as J, isConfigValid as Q } from "../validation/requiredFields.js";
18
- const m = O();
18
+ const u = O();
19
19
  let p = null, y = null;
20
20
  const I = /* @__PURE__ */ new Map();
21
21
  let k = null, b = 0;
22
- const u = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map();
22
+ const m = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map();
23
23
  function W(t) {
24
24
  const e = _.get(t);
25
- return e && e.token === u.get(t) ? e.outcome : !1;
25
+ return e && e.token === m.get(t) ? e.outcome : !1;
26
26
  }
27
27
  let l = null;
28
28
  const X = () => {
@@ -80,7 +80,8 @@ function G() {
80
80
  syncedConfigFingerprint: null,
81
81
  legacyConversionLoading: !1,
82
82
  configVersion: 0,
83
- adoptedSizeVersion: 0
83
+ adoptedSizeVersion: 0,
84
+ drawnProducts: null
84
85
  };
85
86
  }
86
87
  const Y = () => ({
@@ -173,7 +174,7 @@ const Y = () => ({
173
174
  return [...new Set(t.map((e) => e.filterGroup))].sort((e, n) => e - n);
174
175
  },
175
176
  getActivePredictiveAlgorithms: (t) => {
176
- const e = F(), n = [];
177
+ const e = w(), n = [];
177
178
  return t.activePredictiveAlgorithms.filter((r) => !j.includes(r)).forEach((r) => {
178
179
  n.push(...e.filter((o) => o.id === r));
179
180
  }), n.map((r) => ({
@@ -245,7 +246,7 @@ const Y = () => ({
245
246
  const n = this.blockStates[t];
246
247
  if (n) {
247
248
  const s = structuredClone(n);
248
- s.recommendationConfigs.id = e, s.recommendationConfigs.strategyId && R().isFeatureEnabled("reusableRecommendationStrategy") && (s.isInitialized = !1, s.syncedConfigFingerprint = null), this.blockStates = {
249
+ s.recommendationConfigs.id = e, s.drawnProducts = null, s.recommendationConfigs.strategyId && R().isFeatureEnabled("reusableRecommendationStrategy") && (s.isInitialized = !1, s.syncedConfigFingerprint = null), this.blockStates = {
249
250
  ...this.blockStates,
250
251
  [e]: s
251
252
  };
@@ -256,6 +257,9 @@ const Y = () => ({
256
257
  [o]: i
257
258
  });
258
259
  },
260
+ markProductsDrawn(t, e) {
261
+ this.blockStates[t] && (this.blockStates[t].drawnProducts = e);
262
+ },
259
263
  /**
260
264
  * Marks a block as initialized (initial API data has been fetched).
261
265
  * Automatically cleaned up when removeBlockState deletes the block entry.
@@ -401,7 +405,7 @@ const Y = () => ({
401
405
  const t = b, e = (async () => {
402
406
  this.strategiesLoading = !0;
403
407
  try {
404
- const n = await m.fetchRecommendationStrategies();
408
+ const n = await u.fetchRecommendationStrategies();
405
409
  if (t !== b)
406
410
  return;
407
411
  this.strategies = n, this.strategiesFetched = !0;
@@ -495,7 +499,7 @@ const Y = () => ({
495
499
  const n = typeof t.updated_at == "string" ? t.updated_at : "", r = n ? `${t.strategy_id}:${n}:${e}` : "", o = r ? this.strategyUrlTemplates[r] : void 0;
496
500
  if (o)
497
501
  return o;
498
- const { full_path: i = "" } = await m.generateStrategyEndpoint(t, e) ?? {};
502
+ const { full_path: i = "" } = await u.generateStrategyEndpoint(t, e) ?? {};
499
503
  return r && i && (this.strategyUrlTemplates = {
500
504
  ...this.strategyUrlTemplates,
501
505
  [r]: i
@@ -513,7 +517,7 @@ const Y = () => ({
513
517
  throw new Error("[Guido] convertLegacyStrategy called without an active block");
514
518
  this.blockStates[n].legacyConversionLoading = !0;
515
519
  try {
516
- const r = await m.migrateLegacyStrategy(t, e);
520
+ const r = await u.migrateLegacyStrategy(t, e);
517
521
  this.invalidateStrategies();
518
522
  try {
519
523
  await this.fetchStrategies();
@@ -562,7 +566,7 @@ const Y = () => ({
562
566
  activePredictiveAlgorithms: t,
563
567
  languages: e,
564
568
  currencies: n
565
- } = await m.fetchRecommendationCreateData();
569
+ } = await u.fetchRecommendationCreateData();
566
570
  if (this.activePredictiveAlgorithms = t, this.languages = e, this.currentRecommendationId !== null && this.blockStates[this.currentRecommendationId]) {
567
571
  const r = this.blockStates[this.currentRecommendationId];
568
572
  r.filterStatus = !!r.recommendationConfigs.filters.length;
@@ -583,7 +587,7 @@ const Y = () => ({
583
587
  return;
584
588
  }
585
589
  y = (async () => {
586
- const t = await m.fetchRecommendationFilters();
590
+ const t = await u.fetchRecommendationFilters();
587
591
  this.filterList = t;
588
592
  })();
589
593
  try {
@@ -709,14 +713,14 @@ const Y = () => ({
709
713
  await this._doFetchStrategyProducts(e);
710
714
  return;
711
715
  }
712
- const i = (u.get(e) ?? 0) + 1;
713
- u.set(e, i);
716
+ const i = (m.get(e) ?? 0) + 1;
717
+ m.set(e, i);
714
718
  const s = parseInt(r.size) || 6;
715
719
  if (!r.strategy) {
716
720
  this._setBlockProducts(e, [], s);
717
721
  return;
718
722
  }
719
- const a = r.filters.filter((h) => h.isValid), d = P(a), f = ((S = F().find((h) => h.key === r.strategy)) == null ? void 0 : S.path) || "", c = {
723
+ const a = r.filters.filter((h) => h.isValid), d = P(a), f = ((S = w().find((h) => h.key === r.strategy)) == null ? void 0 : S.path) || "", c = {
720
724
  locale: r.language,
721
725
  currency: r.currencySettings.value,
722
726
  partnerName: o.partnerName,
@@ -730,11 +734,11 @@ const Y = () => ({
730
734
  );
731
735
  let g;
732
736
  try {
733
- g = await m.fetchRecommendationProducts(f, c);
737
+ g = await u.fetchRecommendationProducts(f, c);
734
738
  } catch {
735
739
  g = [];
736
740
  }
737
- u.get(e) === i && this._setBlockProducts(e, g, s);
741
+ m.get(e) === i && this._setBlockProducts(e, g, s);
738
742
  },
739
743
  /**
740
744
  * Block-scoped counterpart of `fetchRecommendationProducts`, which only serves the selected block:
@@ -773,8 +777,8 @@ const Y = () => ({
773
777
  return !0;
774
778
  },
775
779
  _doFetchStrategyProducts(t, e = {}) {
776
- const n = (u.get(t) ?? 0) + 1;
777
- u.set(t, n);
780
+ const n = (m.get(t) ?? 0) + 1;
781
+ m.set(t, n);
778
782
  const r = this._loadStrategyProducts(t, n, e);
779
783
  return _.set(t, { token: n, outcome: r }), r;
780
784
  },
@@ -789,20 +793,20 @@ const Y = () => ({
789
793
  if (s) {
790
794
  i = parseInt(String(s.size ?? "")) || i;
791
795
  const a = r.currencySettings.value, f = (await this.resolveStrategyUrlTemplate(s, a)).replaceAll("{locale}", r.language).replaceAll("{currency}", a), c = f.indexOf("?"), g = c === -1 ? f : f.slice(0, c), S = (c === -1 ? "" : f.slice(c + 1)).split("&").filter((v) => v && !v.startsWith("user_id=")), h = S.length ? `${g}?${S.join("&")}` : g;
792
- h && (o = await m.fetchRecommendationProductsByUrl(h));
796
+ h && (o = await u.fetchRecommendationProductsByUrl(h));
793
797
  }
794
798
  } catch {
795
799
  o = [];
796
800
  }
797
- return u.get(t) !== e ? W(t) : !o.length && n ? !1 : (this._setBlockProducts(t, o, i), o.length > 0);
801
+ return m.get(t) !== e ? W(t) : !o.length && n ? !1 : (this._setBlockProducts(t, o, i), o.length > 0);
798
802
  },
799
803
  _setBlockProducts(t, e, n) {
800
804
  if (!this.blockStates[t])
801
805
  return;
802
- const r = e.length > 0 ? e : w(n);
806
+ const r = e.length > 0 ? e : F(n);
803
807
  this.blockStates[t].recommendationProducts = [
804
808
  ...r.slice(0, n),
805
- ...w(Math.max(0, n - r.length))
809
+ ...F(Math.max(0, n - r.length))
806
810
  ];
807
811
  }
808
812
  }
@@ -1,13 +1,13 @@
1
1
  import { ModificationDescription as a } from "../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
2
  import { RECOMMENDATION_ID_ATTR as m } from "../constants/selectors.js";
3
- import { isPartnerManagedBlock as y, updateProductContentInPlace as I, regenerateProductRowsWithStyles as N } from "../controls/main/utils.js";
3
+ import { isPartnerManagedBlock as N, updateProductContentInPlace as I, regenerateProductRowsWithStyles as O } from "../controls/main/utils.js";
4
4
  import { RecommendationConfigService as c } from "../services/configService.js";
5
- import { useRecommendationExtensionStore as O } from "../store/recommendation.js";
5
+ import { useRecommendationExtensionStore as C } from "../store/recommendation.js";
6
6
  let r = null;
7
- function $(t) {
7
+ function T(t) {
8
8
  r = t;
9
9
  }
10
- function C(t) {
10
+ function p(t) {
11
11
  const n = r == null ? void 0 : r.getDocumentRootHtmlNode();
12
12
  return !n || !("querySelector" in n) ? null : n.querySelector(`[${m}="${t}"]`) ?? null;
13
13
  }
@@ -19,18 +19,18 @@ function R(t, n) {
19
19
  const o = c.getConfig(t);
20
20
  return ["filters", "strategy", "strategyId", "size", "productIds"].some((e) => e in n && JSON.stringify(o[e]) !== JSON.stringify(n[e]));
21
21
  }
22
- const p = "Updated product IDs";
23
- function S(t, n) {
22
+ const S = "Updated product IDs";
23
+ function y(t, n) {
24
24
  if (!("productIds" in n))
25
25
  return !1;
26
26
  const o = c.getConfig(t);
27
27
  return JSON.stringify(o.productIds) !== JSON.stringify(n.productIds);
28
28
  }
29
29
  function h(t, n, o) {
30
- return S(t, n) ? p : o;
30
+ return y(t, n) ? S : o;
31
31
  }
32
- function k(t, n, o) {
33
- const e = C(t);
32
+ function $(t, n, o) {
33
+ const e = p(t);
34
34
  if (!r || !e)
35
35
  return !1;
36
36
  if (R(e, n)) {
@@ -40,7 +40,7 @@ function k(t, n, o) {
40
40
  return !0;
41
41
  }
42
42
  function P(t, n) {
43
- const o = O(), e = o.currentRecommendationId;
43
+ const o = C(), e = o.currentRecommendationId;
44
44
  if (e === t || !o.blockStates[t]) {
45
45
  n();
46
46
  return;
@@ -52,16 +52,17 @@ function P(t, n) {
52
52
  o.$patch({ currentRecommendationId: e });
53
53
  }
54
54
  }
55
- function q(t) {
55
+ function k(t) {
56
56
  const n = r == null ? void 0 : r.getDocumentRootHtmlNode();
57
57
  return !n || !("querySelectorAll" in n) ? [] : n.querySelectorAll(`[${m}="${t}"]`).map((o) => c.getConfig(o));
58
58
  }
59
- function w(t, n, o, e) {
60
- const i = C(t);
59
+ function q(t, n, o, e) {
60
+ const i = p(t);
61
61
  if (!r || !i)
62
62
  return !1;
63
- const f = r.getDocumentModifier(), d = D(i, n), g = S(i, n), s = g ? p : e, l = { currentNode: i, documentModifier: f, products: o, ...g ? { description: s } : {} };
64
- if (c.stageConfig(f, i, n), y(i))
63
+ C().markProductsDrawn(t, o);
64
+ const f = r.getDocumentModifier(), d = D(i, n), g = y(i, n), s = g ? S : e, l = { currentNode: i, documentModifier: f, products: o, ...g ? { description: s } : {} };
65
+ if (c.stageConfig(f, i, n), N(i))
65
66
  return d && f.apply(new a(s)), !0;
66
67
  let u = !1;
67
68
  return P(t, () => {
@@ -70,16 +71,16 @@ function w(t, n, o, e) {
70
71
  onApplied: () => {
71
72
  u = !0;
72
73
  }
73
- }) || (u = N(l));
74
+ }) || (u = O(l));
74
75
  }), !u && d && f.apply(new a(s)), !0;
75
76
  }
76
77
  export {
77
- p as PRODUCT_IDS_DESCRIPTION,
78
- w as commitBlockChangeOutsidePanel,
78
+ S as PRODUCT_IDS_DESCRIPTION,
79
+ q as commitBlockChangeOutsidePanel,
79
80
  R as hasEditedConfigChange,
80
- S as isProductIdsChange,
81
+ y as isProductIdsChange,
81
82
  h as pickConfigDescription,
82
- q as readBlockNodeConfigs,
83
- $ as registerNodeConfigWriter,
84
- k as writeBlockConfigOutsidePanel
83
+ k as readBlockNodeConfigs,
84
+ T as registerNodeConfigWriter,
85
+ $ as writeBlockConfigOutsidePanel
85
86
  };
package/dist/guido.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";.auth-error-modal[data-v-b4d7ae51]{position:relative;z-index:145}.gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-9d988e4b] .in-button-v2__wrapper{line-height:0}[data-v-22226124] .in-segments-wrapper__button_selected,[data-v-22226124] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb;color:#0010ac;border-color:#0010ac}[data-v-2cb418af] .in-progress-wrapper__progress p span:last-child{display:none!important}[data-v-2cb418af] .in-progress-description-status{display:none!important}.color-vision-select__dropdown[data-v-64cb50da]{z-index:20;width:387px}.accessibility-toolbar[data-v-391019bc]{gap:16px}.accessibility-toolbar[data-v-391019bc] .in-segments-wrapper__button svg{margin-right:0}.accessibility-toolbar[data-v-391019bc] .in-segments-wrapper__button .clearfix:after{content:none}.view-options-wrapper[data-v-87033101]{position:relative;display:inline-block}.new-tag[data-v-87033101]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-87033101] .guido__view-option-selection-desktop svg,[data-v-87033101] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-87033101] .in-segments-wrapper__button_selected,[data-v-87033101] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-87033101] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-toolbar[data-v-173c3a40]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-fad98586]{gap:8px}.version-history__toolbar[data-v-fad98586]{gap:4px}.view-options-wrapper[data-v-6ebabfe4]{position:relative;display:inline-block}.new-tag[data-v-6ebabfe4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-6ebabfe4] .guido__verion-history-view-option-selection-desktop svg,[data-v-6ebabfe4] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-6ebabfe4] .in-segments-wrapper__button_selected,[data-v-6ebabfe4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-6ebabfe4] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-actions-menu__dropdown[data-v-bdb3b37a]{z-index:20;width:222px}.editor-actions[data-v-9a028d08]{gap:16px}.editor-actions__divider[data-v-9a028d08]{width:1px;height:40px;background-color:#e1e1e1}.right-slot[data-v-77451c9a]{gap:16px}.header-wrapper[data-v-3c713746]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.validation-error-list[data-v-e48cebe9]{gap:16px}.validation-error-row[data-v-e48cebe9]{gap:8px;padding:24px;border:1px solid #E1E1E1;border-radius:8px}.validation-error-row__icon[data-v-e48cebe9]{flex-shrink:0;font-size:24px;line-height:0}.validation-error-row__text[data-v-e48cebe9]{font-size:13px;line-height:16px;color:#292929;word-break:break-word}.guido-editor__wrapper[data-v-8422eef8]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-8422eef8]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-8422eef8]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-eaf8e461]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-eaf8e461]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-eaf8e461]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-eaf8e461]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-eaf8e461]{object-fit:cover;transform:scale(1)}[data-v-b9a93c6e] .guido__verion-history-view-option-selection-desktop svg,[data-v-b9a93c6e] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-b9a93c6e] .in-segments-wrapper__button_selected,[data-v-b9a93c6e] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.error-list[data-v-c3fd5d4b]{gap:16px}.desktop-browser-header[data-v-d86c5af5]{height:79px;min-height:79px}.desktop-browser-header__left[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:378px}.desktop-browser-header__center[data-v-d86c5af5]{height:79px;background-repeat:repeat-x;background-size:auto 100%;background-position:left top}.desktop-browser-header__right[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:112px}.desktop-preview[data-v-cf946232]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-cf946232]{min-height:504px}.iframe-wrapper[data-v-f255b2bb]{width:258px}.iframe-scaled[data-v-f255b2bb]{width:320px;height:124.0310077519%;transform:scale(.80625);transform-origin:top left}.cropped-text[data-v-eb3d05d7]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-preview-wrapper__phone[data-v-3f472f96]{width:282px}.mobile-preview-wrapper__phone img[data-v-3f472f96]{object-fit:cover;border-radius:44px}.mobile-preview-wrapper__content[data-v-3f472f96]{width:258px;height:450px;left:12px}[data-v-6bcaca8a] .vueperslides__parallax-wrapper{padding-bottom:110px!important}.guido-tab-bar-onboarding[data-v-219b4f7c]{z-index:21}[data-v-f16f20f8] .vueperslides__bullets{pointer-events:none!important}[data-v-f16f20f8] .vueperslides__parallax-wrapper{padding-bottom:110px!important}[data-v-bb3cca55] .vueperslides__bullets{pointer-events:none!important}[data-v-bb3cca55] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-19d8cb42] .vueperslides__bullets,[data-v-ec2027ff] .vueperslides__bullets,[data-v-b09e80c4] .vueperslides__bullets{pointer-events:none!important}[data-v-b09e80c4] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-9bdef600] .vueperslides__parallax-wrapper{padding-bottom:110px!important}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd]{width:100%;max-width:none}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd] .in-skeleton{width:100%!important}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd] .in-dropdown-box__container{width:413px}.assign-strategy-drawer .spaced-dot-sep{background-image:linear-gradient(90deg,#91949f 20%,#fff0 0);background-position:center bottom;background-repeat:repeat-x;background-size:5px 1px}.assign-strategy-drawer .spaced-dot-sep--top{background-position:center top}.assign-strategy-drawer .spaced-dot-sep--fc-n:first-child{background:none}.legacy-strategy-updated-modal[data-v-da2225a1]{position:relative;z-index:145}
1
+ @charset "UTF-8";.auth-error-modal[data-v-b4d7ae51]{position:relative;z-index:145}.gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-9d988e4b] .in-button-v2__wrapper{line-height:0}[data-v-22226124] .in-segments-wrapper__button_selected,[data-v-22226124] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb;color:#0010ac;border-color:#0010ac}[data-v-2cb418af] .in-progress-wrapper__progress p span:last-child{display:none!important}[data-v-2cb418af] .in-progress-description-status{display:none!important}.color-vision-select__dropdown[data-v-64cb50da]{z-index:20;width:387px}.accessibility-toolbar[data-v-391019bc]{gap:16px}.accessibility-toolbar[data-v-391019bc] .in-segments-wrapper__button svg{margin-right:0}.accessibility-toolbar[data-v-391019bc] .in-segments-wrapper__button .clearfix:after{content:none}.view-options-wrapper[data-v-87033101]{position:relative;display:inline-block}.new-tag[data-v-87033101]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-87033101] .guido__view-option-selection-desktop svg,[data-v-87033101] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-87033101] .in-segments-wrapper__button_selected,[data-v-87033101] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-87033101] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-toolbar[data-v-173c3a40]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-fad98586]{gap:8px}.version-history__toolbar[data-v-fad98586]{gap:4px}.view-options-wrapper[data-v-6ebabfe4]{position:relative;display:inline-block}.new-tag[data-v-6ebabfe4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-6ebabfe4] .guido__verion-history-view-option-selection-desktop svg,[data-v-6ebabfe4] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-6ebabfe4] .in-segments-wrapper__button_selected,[data-v-6ebabfe4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-6ebabfe4] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-actions-menu__dropdown[data-v-bdb3b37a]{z-index:20;width:222px}.editor-actions[data-v-9a028d08]{gap:16px}.editor-actions__divider[data-v-9a028d08]{width:1px;height:40px;background-color:#e1e1e1}.right-slot[data-v-77451c9a]{gap:16px}.header-wrapper[data-v-3c713746]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.validation-error-list[data-v-e48cebe9]{gap:16px}.validation-error-row[data-v-e48cebe9]{gap:8px;padding:24px;border:1px solid #E1E1E1;border-radius:8px}.validation-error-row__icon[data-v-e48cebe9]{flex-shrink:0;font-size:24px;line-height:0}.validation-error-row__text[data-v-e48cebe9]{font-size:13px;line-height:16px;color:#292929;word-break:break-word}.guido-editor__wrapper[data-v-0191951d]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-0191951d]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-0191951d]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-eaf8e461]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-eaf8e461]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-eaf8e461]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-eaf8e461]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-eaf8e461]{object-fit:cover;transform:scale(1)}[data-v-b9a93c6e] .guido__verion-history-view-option-selection-desktop svg,[data-v-b9a93c6e] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-b9a93c6e] .in-segments-wrapper__button_selected,[data-v-b9a93c6e] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.error-list[data-v-c3fd5d4b]{gap:16px}.desktop-browser-header[data-v-d86c5af5]{height:79px;min-height:79px}.desktop-browser-header__left[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:378px}.desktop-browser-header__center[data-v-d86c5af5]{height:79px;background-repeat:repeat-x;background-size:auto 100%;background-position:left top}.desktop-browser-header__right[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:112px}.desktop-preview[data-v-cf946232]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-cf946232]{min-height:504px}.iframe-wrapper[data-v-f255b2bb]{width:258px}.iframe-scaled[data-v-f255b2bb]{width:320px;height:124.0310077519%;transform:scale(.80625);transform-origin:top left}.cropped-text[data-v-eb3d05d7]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-preview-wrapper__phone[data-v-3f472f96]{width:282px}.mobile-preview-wrapper__phone img[data-v-3f472f96]{object-fit:cover;border-radius:44px}.mobile-preview-wrapper__content[data-v-3f472f96]{width:258px;height:450px;left:12px}[data-v-6bcaca8a] .vueperslides__parallax-wrapper{padding-bottom:110px!important}.guido-tab-bar-onboarding[data-v-219b4f7c]{z-index:21}[data-v-f16f20f8] .vueperslides__bullets{pointer-events:none!important}[data-v-f16f20f8] .vueperslides__parallax-wrapper{padding-bottom:110px!important}[data-v-bb3cca55] .vueperslides__bullets{pointer-events:none!important}[data-v-bb3cca55] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-19d8cb42] .vueperslides__bullets,[data-v-ec2027ff] .vueperslides__bullets,[data-v-b09e80c4] .vueperslides__bullets{pointer-events:none!important}[data-v-b09e80c4] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-9bdef600] .vueperslides__parallax-wrapper{padding-bottom:110px!important}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd]{width:100%;max-width:none}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd] .in-skeleton{width:100%!important}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd] .in-dropdown-box__container{width:413px}.assign-strategy-drawer .spaced-dot-sep{background-image:linear-gradient(90deg,#91949f 20%,#fff0 0);background-position:center bottom;background-repeat:repeat-x;background-size:5px 1px}.assign-strategy-drawer .spaced-dot-sep--top{background-position:center top}.assign-strategy-drawer .spaced-dot-sep--fc-n:first-child{background:none}.legacy-strategy-updated-modal[data-v-da2225a1]{position:relative;z-index:145}
@@ -1,9 +1,9 @@
1
- const o = "3.24.0-beta.88c24c1", s = { stripo: { version: "2.83.1" } }, t = {
1
+ const o = "3.24.0-beta.8e9f4e2", e = { stripo: { version: "2.83.1" } }, s = {
2
2
  version: o,
3
- guido: s
3
+ guido: e
4
4
  };
5
5
  export {
6
- t as default,
7
- s as guido,
6
+ s as default,
7
+ e as guido,
8
8
  o as version
9
9
  };
@@ -1,60 +1,63 @@
1
- import { useActionsApi as h } from "../composables/useActionsApi.js";
1
+ import { useActionsApi as A } from "../composables/useActionsApi.js";
2
2
  import { useConfig as S } from "../composables/useConfig.js";
3
- import { useHttp as v } from "../composables/useHttp.js";
3
+ import { useHttp as E } from "../composables/useHttp.js";
4
4
  import { useToaster as x } from "../composables/useToaster.js";
5
- import { useTranslations as A } from "../composables/useTranslations.js";
6
- import { useHtmlDocumentCountValidator as E } from "../composables/validators/useHtmlDocumentCountValidator.js";
5
+ import { useTranslations as P } from "../composables/useTranslations.js";
6
+ import { useHtmlDocumentCountValidator as L } from "../composables/validators/useHtmlDocumentCountValidator.js";
7
7
  import { useLiquidValidator as N } from "../composables/validators/useLiquidValidator.js";
8
8
  import { EditorType as H } from "../enums/defaults.js";
9
- import { ToasterTypeOptions as P } from "../enums/toaster.js";
9
+ import { ToasterTypeOptions as T } from "../enums/toaster.js";
10
10
  import { useRecommendationExtensionStore as D } from "../extensions/Blocks/Recommendation/store/recommendation.js";
11
- import { useSaveAsTemplateStore as L } from "../stores/save-as-template.js";
11
+ import { useSaveAsTemplateStore as q } from "../stores/save-as-template.js";
12
12
  import { base64EncodeWithSpecialChars as r } from "../utils/base64.js";
13
- import { isPlainObject as q } from "../utils/genericUtil.js";
13
+ import { isPlainObject as w } from "../utils/genericUtil.js";
14
14
  import { useTemplatePreparation as F } from "../utils/templatePreparation.js";
15
15
  const Z = () => {
16
- const { get: n, post: m } = v(), { handleError: s, showToaster: l } = x(), { config: c, isFeatureEnabled: p } = S(), { validateLiquidSyntax: T } = N(), { validateSingleHtmlDocument: w } = E(), { getTemplateData: b } = h(), u = A();
16
+ const { get: l, post: c } = E(), { handleError: o, showToaster: i } = x(), { config: p, isFeatureEnabled: u } = S(), { validateLiquidSyntax: b } = N(), { validateSingleHtmlDocument: C } = L(), { getTemplateData: h } = A(), n = P();
17
17
  return {
18
18
  getCategories: async () => {
19
19
  try {
20
- const { data: e = [] } = await n("/newsletter/template-library/get-template-categories");
21
- return e;
20
+ const { data: e } = await l("/newsletter/template-library/get-template-categories");
21
+ return Array.isArray(e) ? e : ((!w(e) || e.type !== "alert") && console.error("[TEMPLATE_LIBRARY_API] Unexpected get-template-categories response", e), i({
22
+ message: n("newsletter.template-library-service-error"),
23
+ type: T.Error
24
+ }), []);
22
25
  } catch (e) {
23
- return s(e, "Failed to fetch template categories"), [];
26
+ return o(e, "Failed to fetch template categories"), [];
24
27
  }
25
28
  },
26
29
  checkTemplateNameAvailability: async (e) => {
27
- const { data: { status: t = !1 } } = await n(
30
+ const { data: { status: t = !1 } } = await l(
28
31
  `/newsletter/template-library/template-name-exists?name=${e}`
29
32
  );
30
33
  return !t;
31
34
  },
32
35
  createCategory: async (e) => {
33
36
  try {
34
- const { data: { id: t } } = await m(
37
+ const { data: { id: t } } = await c(
35
38
  "/newsletter/template-library/create-category",
36
39
  { name: e }
37
40
  );
38
41
  return t.toString();
39
42
  } catch (t) {
40
- return s(t, "Failed to create category"), "";
43
+ return o(t, "Failed to create category"), "";
41
44
  }
42
45
  },
43
46
  createTemplate: async () => {
44
47
  var e, t, d, y;
45
48
  try {
46
- const { prepareTemplateDetails: i } = F(), o = L(), g = await b();
47
- if (!w(g.html))
49
+ const { prepareTemplateDetails: m } = F(), s = q(), g = await h();
50
+ if (!C(g.html))
48
51
  return !1;
49
- const a = await i(g);
50
- if (p("liquidSyntax") && !await T(a.compiledHtml))
52
+ const a = await m(g);
53
+ if (u("liquidSyntax") && !await b(a.compiledHtml))
51
54
  return !1;
52
- const C = {
53
- name: o.getTemplateName,
54
- categories: o.getSelectedCategoryIds,
55
- productId: ((t = (e = c.value) == null ? void 0 : e.partner) == null ? void 0 : t.productType) || 0,
55
+ const v = {
56
+ name: s.getTemplateName,
57
+ categories: s.getSelectedCategoryIds,
58
+ productId: ((t = (e = p.value) == null ? void 0 : e.partner) == null ? void 0 : t.productType) || 0,
56
59
  editorType: H,
57
- messageType: ((y = (d = c.value) == null ? void 0 : d.partner) == null ? void 0 : y.messageType) || 0,
60
+ messageType: ((y = (d = p.value) == null ? void 0 : d.partner) == null ? void 0 : y.messageType) || 0,
58
61
  content: r(a.compiledHtml),
59
62
  css: r(a.css),
60
63
  unsubscriptionPreferencePageStatus: !1,
@@ -65,34 +68,34 @@ const Z = () => {
65
68
  recommendationConfigs: r({}),
66
69
  isGuido: !0,
67
70
  // eslint-disable-next-line camelcase
68
- template_engine: p("liquidSyntax") ? 1 : 0,
71
+ template_engine: u("liquidSyntax") ? 1 : 0,
69
72
  stripoConfig: r({
70
73
  editor: "stripo",
71
74
  html: a.rawHtml,
72
75
  css: a.css,
73
76
  dynamicContentList: a.dynamicContentList
74
77
  })
75
- }, { data: f } = await m(
78
+ }, { data: f } = await c(
76
79
  "/newsletter/template-library/create-template",
77
- C
80
+ v
78
81
  );
79
- if (!q(f))
82
+ if (!w(f))
80
83
  throw new Error("Unexpected create-template response");
81
- return f.type === "alert" ? (l({
82
- message: u(
84
+ return f.type === "alert" ? (i({
85
+ message: n(
83
86
  "newsletter.template-library-save-alert",
84
- { templateName: o.getTemplateName }
87
+ { templateName: s.getTemplateName }
85
88
  ),
86
- type: P.Error
87
- }), !1) : (l({
88
- message: u(
89
+ type: T.Error
90
+ }), !1) : (i({
91
+ message: n(
89
92
  "newsletter.template-library-save-success",
90
- { templateName: o.getTemplateName }
93
+ { templateName: s.getTemplateName }
91
94
  ),
92
95
  type: "success"
93
96
  }), !0);
94
- } catch (i) {
95
- return s(i, "Failed to create template"), !1;
97
+ } catch (m) {
98
+ return o(m, "Failed to create template"), !1;
96
99
  }
97
100
  }
98
101
  };
@@ -415,8 +415,6 @@ export declare const FeaturesSchema: v.ObjectSchema<{
415
415
  /** Allow persisting a template that still has validation errors (drawer "Save and Continue" soft-save). Host sets false for transactional + unsubscribe. */
416
416
  readonly allowSaveWithErrors: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
417
417
  readonly reusableRecommendationStrategy: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
418
- /** Warn on save when the design carries an Insider unsubscribe link or code (host sets true for SFMC accounts) */
419
- readonly blockUnsubscribeLinks: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
420
418
  }, undefined>;
421
419
  /**
422
420
  * Default block types available in Stripo
@@ -836,8 +834,6 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
836
834
  /** Allow persisting a template that still has validation errors (drawer "Save and Continue" soft-save). Host sets false for transactional + unsubscribe. */
837
835
  readonly allowSaveWithErrors: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
838
836
  readonly reusableRecommendationStrategy: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
839
- /** Warn on save when the design carries an Insider unsubscribe link or code (host sets true for SFMC accounts) */
840
- readonly blockUnsubscribeLinks: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
841
837
  }, undefined>, {}>;
842
838
  /** Block configuration */
843
839
  readonly blocks: v.OptionalSchema<v.ObjectSchema<{
@@ -105,7 +105,6 @@ export declare const useConfig: () => {
105
105
  linkTrackingIds: boolean;
106
106
  allowSaveWithErrors: boolean;
107
107
  reusableRecommendationStrategy: boolean;
108
- blockUnsubscribeLinks: boolean;
109
108
  };
110
109
  blocks: {
111
110
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -246,7 +245,6 @@ export declare const useConfig: () => {
246
245
  linkTrackingIds: boolean;
247
246
  allowSaveWithErrors: boolean;
248
247
  reusableRecommendationStrategy: boolean;
249
- blockUnsubscribeLinks: boolean;
250
248
  } | null>;
251
249
  blocks: import("vue").ComputedRef<{
252
250
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -0,0 +1,7 @@
1
+ export interface EditorTrackingIdsResult {
2
+ changed: boolean;
3
+ nextSeq: number;
4
+ }
5
+ export declare const useEditorTrackingIds: () => {
6
+ writeTrackingIds: (floor: number) => EditorTrackingIdsResult;
7
+ };
@@ -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[]>;
4
+ collectSaveValidationErrors: (compiledHtml: string, dynamicContentList: DynamicContent[]) => Promise<SaveValidationError[]>;
5
5
  validateCurrentTemplate: () => Promise<SaveValidationError[]>;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import type { EditorOpenMetrics } from '@@/Composables/useEditorOpenMetrics';
2
2
  import type { Metadata, Options, Template } from '@@/Types/stripo';
3
3
  export declare const useStripo: (openMetrics: EditorOpenMetrics) => {
4
- initPlugin: (template: Template, metadata: Metadata, options: Options) => Promise<void>;
4
+ initPlugin: (template: Template, metadata: Metadata, options: Options, htmlChanged?: boolean) => Promise<void>;
5
5
  preloadRuntime: () => void;
6
6
  };
@@ -3,9 +3,6 @@ declare const SINGLETON_BLOCK_RULES: {
3
3
  messageKey: string;
4
4
  }[];
5
5
  export declare const EMPTY_BLOCK_KEY = "unsubscription-preference.select-page-to-continue";
6
- export declare const EXTERNALLY_MANAGED_UNSUBSCRIBE_KEY = "newsletter.sfmc-remove-unsubscribe-link";
7
- /** Pure core: whether the html carries an Insider unsubscribe merge tag or ASM unsubscribe code. */
8
- export declare function hasInsiderUnsubscribeCode(html: string): boolean;
9
6
  /** Pure core: the singleton rules whose page type appears more than once. */
10
7
  export declare function findDuplicateUnsubPageTypes(html: string): typeof SINGLETON_BLOCK_RULES;
11
8
  /** Pure core: count of unsubscribe blocks with no page type or page list chosen. */
@@ -13,6 +10,5 @@ export declare function countUnsubBlocksWithoutPage(html: string): number;
13
10
  export declare const useUnsubscribeBlockValidator: () => {
14
11
  validateUnsubscribeBlockUniqueness: (html: string) => boolean;
15
12
  validateUnsubscribeBlockHasTemplate: (html: string) => boolean;
16
- validateNoInsiderUnsubscribeCode: (html: string, silent?: boolean) => boolean;
17
13
  };
18
14
  export {};
@@ -0,0 +1,6 @@
1
+ import type { LegacyProductConfig } from './types';
2
+ /**
3
+ * Rebuilds the `esd-dev-product-config` a pre-Guido block never carried from what it rendered.
4
+ * Null when no product card renders or a card cell cannot be mapped (the rebuild would lose it); other fields default.
5
+ */
6
+ export declare function inferLegacyConfig(block: Element, id: number): LegacyProductConfig | null;
@@ -3,7 +3,7 @@ import type { LegacyProductConfig } from './types';
3
3
  * `esd-dev-product-config` is double-HTML-encoded JSON: serialization
4
4
  * escapes once to embed inside the attribute, and Stripo's templating
5
5
  * layer escapes a second time when round-tripping. Returns `null` when
6
- * the attribute is missing or unable to be parsed — the caller treats
6
+ * the attribute is empty or unable to be parsed — the caller treats
7
7
  * either case as an abort.
8
8
  */
9
9
  export declare function parseLegacyConfig(block: Element): LegacyProductConfig | null;
@@ -1,8 +1,4 @@
1
- /**
2
- * Idempotent: the selector matches only blocks that have
3
- * `esd-dev-product-config` AND lack `recommendation-block-v2`, so
4
- * re-running on a migrated template is a no-op.
5
- */
1
+ /** Idempotent: the selector excludes `recommendation-block-v2`, so re-running on a migrated template is a no-op. */
6
2
  import type { LegacyRecommendationConfig } from '@@/Types/config';
7
3
  /**
8
4
  * Migrate all legacy Recommendation Blocks in the given HTML string.
@@ -23,6 +23,5 @@ export declare enum SaveValidationRule {
23
23
  RecommendationFilters = "recommendation-filters",
24
24
  InvalidImageType = "invalid-image-type",
25
25
  CheckboxUnsubGroup = "checkbox-unsub-group",
26
- RadioButtonUnsubGroup = "radio-button-unsub-group",
27
- ExternallyManagedUnsubscribe = "externally-managed-unsubscribe"
26
+ RadioButtonUnsubGroup = "radio-button-unsub-group"
28
27
  }
@@ -57,6 +57,7 @@ interface PerBlockState {
57
57
  legacyConversionLoading: boolean;
58
58
  configVersion: number;
59
59
  adoptedSizeVersion: number;
60
+ drawnProducts: RecommendationProduct[] | null;
60
61
  }
61
62
  /**
62
63
  * Persisted-config subset used by `seedBlockUrlConfig` to reconstruct
@@ -491,6 +492,7 @@ export declare const useRecommendationExtensionStore: import("pinia").StoreDefin
491
492
  * (SD-149916).
492
493
  */
493
494
  cloneBlockState(sourceId: number, newId: number): void;
495
+ markProductsDrawn(id: number, products: RecommendationProduct[]): void;
494
496
  /**
495
497
  * Marks a block as initialized (initial API data has been fetched).
496
498
  * Automatically cleaned up when removeBlockState deletes the block entry.