@useinsider/guido 3.19.0-beta.cac604e → 3.19.0-beta.dcea8c0

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.
@@ -1,35 +1,33 @@
1
- var w = Object.defineProperty;
2
- var N = (l, o, t) => o in l ? w(l, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[o] = t;
3
- var i = (l, o, t) => N(l, typeof o != "symbol" ? o + "" : o, t);
4
- import { useLegacyStrategyConversion as L } from "../../../../../composables/useLegacyStrategyConversion.js";
5
- import { ACADEMY_LINKS as $ } from "../../../../../enums/academy.js";
6
- import { useOnboardingStore as A } from "../../../../../stores/onboarding.js";
7
- import { CommonControl as R } from "../../../common-control.js";
8
- import { RRS_CONFIG_VERSION as E } from "../../constants/defaultConfig.js";
9
- import { RecommendationConfigService as C } from "../../services/configService.js";
10
- import { useRecommendationExtensionStore as O } from "../../store/recommendation.js";
11
- const I = "recommendation-strategy-control";
12
- class P extends R {
1
+ var C = Object.defineProperty;
2
+ var $ = (c, n, t) => n in c ? C(c, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[n] = t;
3
+ var i = (c, n, t) => $(c, typeof n != "symbol" ? n + "" : n, t);
4
+ import { useLegacyStrategyConversion as k } from "../../../../../composables/useLegacyStrategyConversion.js";
5
+ import { ACADEMY_LINKS as L } from "../../../../../enums/academy.js";
6
+ import { useOnboardingStore as w } from "../../../../../stores/onboarding.js";
7
+ import { CommonControl as A } from "../../../common-control.js";
8
+ import { RRS_CONFIG_VERSION as N } from "../../constants/defaultConfig.js";
9
+ import { RecommendationConfigService as b } from "../../services/configService.js";
10
+ import { useRecommendationExtensionStore as R } from "../../store/recommendation.js";
11
+ const E = "recommendation-strategy-control";
12
+ class M extends A {
13
13
  constructor() {
14
14
  super(...arguments);
15
- i(this, "store", O());
16
- i(this, "onboardingStore", A());
17
- i(this, "legacyConversion", L());
15
+ i(this, "store", R());
16
+ i(this, "onboardingStore", w());
17
+ i(this, "legacyConversion", k());
18
18
  i(this, "storeUnsubscription", () => {
19
19
  });
20
20
  i(this, "listeners", []);
21
21
  i(this, "lastPaintedState", null);
22
22
  }
23
23
  getId() {
24
- return I;
24
+ return E;
25
25
  }
26
26
  getTemplate() {
27
27
  const t = this.api.translate(
28
28
  "You can assign a recommendation strategy by selecting an existing one or creating a new one to show specific content."
29
- ), e = this.api.translate("For more information, you can"), a = this.api.translate("visit Academy"), r = this.api.translate("Legacy Strategy"), s = this.api.translate(
29
+ ), e = this.api.translate("For more information, you can"), s = this.api.translate("visit Academy"), o = this.api.translate("Legacy Strategy"), a = this.api.translate(
30
30
  "Note that this is an older version of the Recommendation Strategy. We recommend you update it to the new Recommendation Strategy for an improved experience."
31
- ), g = this.api.translate(
32
- "The recommendation strategy used in the recommendation block is no longer available. You can assign a different strategy to it."
33
31
  );
34
32
  return `
35
33
  <div class="strategy-control-container">
@@ -54,9 +52,9 @@ class P extends R {
54
52
  ${t}
55
53
  ${e}
56
54
  <a
57
- href="${$.EMAIL_RECOMMENDATION_BLOCK}"
55
+ href="${L.EMAIL_RECOMMENDATION_BLOCK}"
58
56
  target="_blank"
59
- rel="noopener noreferrer">${a}</a>.
57
+ rel="noopener noreferrer">${s}</a>.
60
58
  </p>
61
59
  </div>
62
60
  <div data-strategy-empty-state style="display: none;">
@@ -73,37 +71,16 @@ class P extends R {
73
71
  id: "guido__btn-create-strategy",
74
72
  className: "strategy-control-cta primary"
75
73
  })
76
- ], "strategy-control-cta-row")}
77
- </div>
78
- <div data-strategy-unavailable-state style="display: none;">
79
- <div class="strategy-control-notice-row">
80
- <div class="strategy-control-notice strategy-control-notice--error" role="alert">
81
- <p class="strategy-control-notice-text">${g}</p>
82
- </div>
83
- </div>
84
- ${this._GuTwoColumns([
85
- this._GuButton({
86
- name: "assignUnavailableStrategy",
87
- label: this.api.translate("Assign Strategy"),
88
- id: "guido__btn-assign-unavailable-strategy",
89
- className: "strategy-control-cta on"
90
- }),
91
- this._GuButton({
92
- name: "createUnavailableStrategy",
93
- label: this.api.translate("Create New Strategy"),
94
- id: "guido__btn-create-unavailable-strategy",
95
- className: "strategy-control-cta primary"
96
- })
97
74
  ], "strategy-control-cta-row")}
98
75
  </div>
99
76
  <div data-strategy-legacy-state style="display: none;">
100
77
  <div class="strategy-control-notice-row">
101
78
  <div class="strategy-control-notice">
102
- <p class="strategy-control-notice-text">${s}</p>
79
+ <p class="strategy-control-notice-text">${a}</p>
103
80
  </div>
104
81
  </div>
105
82
  <div class="strategy-control-name-band">
106
- <span class="strategy-control-name">${r}</span>
83
+ <span class="strategy-control-name">${o}</span>
107
84
  ${this._strategyAction({
108
85
  id: "guido__btn-update-legacy-strategy",
109
86
  label: this.api.translate("Update"),
@@ -146,12 +123,12 @@ class P extends R {
146
123
  </div>
147
124
  `;
148
125
  }
149
- _strategyAction({ id: t, label: e, modifier: a }) {
126
+ _strategyAction({ id: t, label: e, modifier: s }) {
150
127
  return `
151
128
  <button
152
129
  id="${t}"
153
130
  type="button"
154
- class="strategy-control-action strategy-control-action--${a}">
131
+ class="strategy-control-action strategy-control-action--${s}">
155
132
  <span>${e}</span>
156
133
  </button>
157
134
  `;
@@ -159,8 +136,8 @@ class P extends R {
159
136
  onRender() {
160
137
  this._teardown(), this.store.strategyPanelOpen = !0, this._setupButtonListeners(), this._renderState(), this.storeUnsubscription = this.store.$subscribe(() => {
161
138
  this._renderState();
162
- }), this.store.recommendationConfigs.strategyId && !this.store.strategiesLoading && (this.store.invalidateStrategies(), this.store.fetchStrategies().catch(() => {
163
- }));
139
+ }), this.store.recommendationConfigs.strategyId && !this.store.strategiesFetched && this.store.fetchStrategies().catch(() => {
140
+ });
164
141
  }
165
142
  /**
166
143
  * Whether the document itself says this block has no strategy.
@@ -170,10 +147,10 @@ class P extends R {
170
147
  * strategyId) for an assigned block.
171
148
  */
172
149
  _isNodeUnassigned() {
173
- if (!C.hasConfig(this.currentNode))
150
+ if (!b.hasConfig(this.currentNode))
174
151
  return !1;
175
- const t = C.getConfig(this.currentNode);
176
- return !t.strategyId && (t.configVersion ?? 0) >= E;
152
+ const t = b.getConfig(this.currentNode);
153
+ return !t.strategyId && (t.configVersion ?? 0) >= N;
177
154
  }
178
155
  onDestroy() {
179
156
  this._teardown();
@@ -186,37 +163,37 @@ class P extends R {
186
163
  const t = this.getContainer();
187
164
  if (!t)
188
165
  return;
189
- const e = (a, r) => {
190
- const s = t.querySelector(a);
191
- s && (s.addEventListener("click", r), this.listeners.push({ element: s, handler: r }));
166
+ const e = (s, o) => {
167
+ const a = t.querySelector(s);
168
+ a && (a.addEventListener("click", o), this.listeners.push({ element: a, handler: o }));
192
169
  };
193
- e("#guido__btn-assign-strategy", () => this.store.openAssignStrategyDrawer()), e("#guido__btn-create-strategy", () => this.store.openStrategyCreation()), e("#guido__btn-assign-unavailable-strategy", () => this.store.openAssignStrategyDrawer()), e("#guido__btn-create-unavailable-strategy", () => this.store.openStrategyCreation()), e("#guido__btn-change-strategy", () => this.store.openAssignStrategyDrawer()), e("#guido__btn-change-legacy-strategy", () => this.store.openAssignStrategyDrawer()), e("#guido__btn-remove-strategy", () => this.store.openRemoveStrategyModal()), e("#guido__btn-remove-legacy-strategy", () => this.store.openRemoveStrategyModal()), e("#guido__btn-update-legacy-strategy", () => {
170
+ e("#guido__btn-assign-strategy", () => this.store.openAssignStrategyDrawer()), e("#guido__btn-create-strategy", () => this.store.openStrategyCreation()), e("#guido__btn-change-strategy", () => this.store.openAssignStrategyDrawer()), e("#guido__btn-change-legacy-strategy", () => this.store.openAssignStrategyDrawer()), e("#guido__btn-remove-strategy", () => this.store.openRemoveStrategyModal()), e("#guido__btn-remove-legacy-strategy", () => this.store.openRemoveStrategyModal()), e("#guido__btn-update-legacy-strategy", () => {
194
171
  this.legacyConversion.convertLegacyStrategy();
195
172
  });
196
173
  }
197
174
  _renderState() {
198
- var f;
199
- const { strategyId: t } = this.store.recommendationConfigs, e = t ? ((f = this.store.assignedStrategy) == null ? void 0 : f.name) ?? "" : "", a = !!t && !e && (this.store.strategiesLoading || !this.store.strategiesSettled), r = !!t && !e && !a && this.store.strategiesFetched, s = this.store.legacyConversionLoading, g = this.store.isLegacyStrategyBlock, p = [t, e, a, r, s, g].join("\0");
200
- if (p === this.lastPaintedState)
175
+ var _;
176
+ const { strategyId: t } = this.store.recommendationConfigs, e = t ? ((_ = this.store.assignedStrategy) == null ? void 0 : _.name) ?? "" : "", s = !!t && !e && (this.store.strategiesLoading || !this.store.strategiesSettled), o = this.store.legacyConversionLoading, a = this.store.isLegacyStrategyBlock, h = `${t}\0${e}\0${s}\0${o}\0${a}`;
177
+ if (h === this.lastPaintedState)
201
178
  return;
202
- const n = this.getContainer();
203
- if (!n)
179
+ const r = this.getContainer();
180
+ if (!r)
204
181
  return;
205
- const y = n.querySelector("[data-strategy-empty-state]"), u = n.querySelector("[data-strategy-assigned-state]"), c = n.querySelector("[data-strategy-legacy-state]"), h = n.querySelector("[data-strategy-unavailable-state]"), v = n.querySelector("[data-strategy-loading-state]"), b = n.querySelector("[data-strategy-content]"), m = n.querySelector("[data-strategy-name]"), _ = n.querySelector("[data-strategy-name-skeleton]");
206
- if (!y || !u || !c || !h)
182
+ const d = r.querySelector("[data-strategy-empty-state]"), y = r.querySelector("[data-strategy-assigned-state]"), g = r.querySelector("[data-strategy-legacy-state]"), p = r.querySelector("[data-strategy-loading-state]"), u = r.querySelector("[data-strategy-content]"), m = r.querySelector("[data-strategy-name]"), v = r.querySelector("[data-strategy-name-skeleton]");
183
+ if (!d || !y || !g)
207
184
  return;
208
- v && (v.style.display = "none"), b && (b.style.display = "");
209
- const k = t ? r ? h : u : g ? c : y;
210
- [y, u, c, h].forEach((d) => {
211
- d.style.display = d === k ? "" : "none";
212
- }), c.querySelectorAll("button").forEach((d) => {
213
- d.disabled = s;
214
- }), c.classList.toggle("is-converting", s), !t && this._isNodeUnassigned() && this.onboardingStore.startOnboarding("recommendationStrategyOnboarding");
185
+ p && (p.style.display = "none"), u && (u.style.display = "");
186
+ const f = t ? y : a ? g : d;
187
+ [d, y, g].forEach((l) => {
188
+ l.style.display = l === f ? "" : "none";
189
+ }), g.querySelectorAll("button").forEach((l) => {
190
+ l.disabled = o;
191
+ }), g.classList.toggle("is-converting", o), !t && this._isNodeUnassigned() && this.onboardingStore.startOnboarding("recommendationStrategyOnboarding");
215
192
  const S = this.store.currentRecommendationId;
216
- g && S !== null && this.store.blockStates[S] && this.onboardingStore.startOnboarding("recommendationLegacyStrategyOnboarding"), m && (m.style.display = a ? "none" : "", t && !a && (m.textContent = e || `#${t}`)), _ && (_.style.display = a ? "block" : "none"), this.lastPaintedState = p;
193
+ a && S !== null && this.store.blockStates[S] && this.onboardingStore.startOnboarding("recommendationLegacyStrategyOnboarding"), m && (m.style.display = s ? "none" : "", t && !s && (m.textContent = e || `#${t}`)), v && (v.style.display = s ? "block" : "none"), this.lastPaintedState = h;
217
194
  }
218
195
  }
219
196
  export {
220
- I as STRATEGY_CONTROL_ID,
221
- P as StrategyControl
197
+ E as STRATEGY_CONTROL_ID,
198
+ M as StrategyControl
222
199
  };
@@ -3,7 +3,7 @@ import { useTranslations as L } from "../../../../composables/useTranslations.js
3
3
  import { getRecommendationFeedSourceMaps as F, strategyEditPath as U, URLS as E, getOperatorOptions as N, PriceAttributes as M } from "../../../../enums/extensions/recommendationBlock.js";
4
4
  import { ToasterTypeOptions as A } from "../../../../enums/toaster.js";
5
5
  import { useRecommendationApi as T } from "../../../../services/recommendationApi.js";
6
- import { useConfigStore as R } from "../../../../stores/config.js";
6
+ import { useConfigStore as k } from "../../../../stores/config.js";
7
7
  import { defineStore as B } from "pinia";
8
8
  import "../constants/selectors.js";
9
9
  import { DEFAULT_MOBILE_CARDS_IN_ROW as O, DEFAULT_CARDS_IN_ROW as z } from "../constants/layout.js";
@@ -12,11 +12,11 @@ import { getDefaultProducts as w } from "../templates/utils.js";
12
12
  import { generateCompleteFilterQuery as P } from "../utils/filterUtil.js";
13
13
  import { isLegacyStrategyConfig as j } from "../utils/legacyStrategyMigration.js";
14
14
  import { getPartnerRecommendationParams as $ } from "../utils/partnerCustomizations.js";
15
- import { sanitizeProductIds as K } from "../utils/productIds.js";
16
- import { isFilterValid as q } from "../validation/filterSchema.js";
15
+ import { sanitizeProductIds as q } from "../utils/productIds.js";
16
+ import { isFilterValid as K } from "../validation/filterSchema.js";
17
17
  import { getInvalidFields as H, isConfigValid as J } from "../validation/requiredFields.js";
18
18
  const m = T();
19
- let S = null, p = null, y = null, b = "", k = null, I = 0;
19
+ let S = null, p = null, y = null, I = "", R = null, b = 0;
20
20
  const g = /* @__PURE__ */ new Map();
21
21
  let l = null;
22
22
  function _() {
@@ -45,7 +45,7 @@ function _() {
45
45
  // that default is what reached buildCampaignUrl and baked a most-popular feed URL
46
46
  // for a block the user never configured (SD-149916). Legacy blocks still get their real
47
47
  // algorithm from the node-config sync or the save-time seed.
48
- strategy: R().isFeatureEnabled("reusableRecommendationStrategy") ? "" : "mostPopular",
48
+ strategy: k().isFeatureEnabled("reusableRecommendationStrategy") ? "" : "mostPopular",
49
49
  strategyId: "",
50
50
  nodeConfigVersion: C,
51
51
  textTrimming: !0,
@@ -119,7 +119,7 @@ const Q = () => ({
119
119
  return t.currentRecommendationId !== null && t.blockStates[t.currentRecommendationId] ? t.blockStates[t.currentRecommendationId].removeStrategyModalStatus : !1;
120
120
  },
121
121
  isLegacyStrategyBlock() {
122
- return R().isFeatureEnabled("reusableRecommendationStrategy") && j(this.recommendationConfigs);
122
+ return k().isFeatureEnabled("reusableRecommendationStrategy") && j(this.recommendationConfigs);
123
123
  },
124
124
  legacyConversionLoading(t) {
125
125
  return t.currentRecommendationId !== null && t.blockStates[t.currentRecommendationId] ? t.blockStates[t.currentRecommendationId].legacyConversionLoading ?? !1 : !1;
@@ -234,7 +234,7 @@ const Q = () => ({
234
234
  const r = this.blockStates[t];
235
235
  if (r) {
236
236
  const o = structuredClone(r);
237
- o.recommendationConfigs.id = e, o.recommendationConfigs.strategyId && R().isFeatureEnabled("reusableRecommendationStrategy") && (o.isInitialized = !1, o.syncedConfigFingerprint = null), this.blockStates = {
237
+ o.recommendationConfigs.id = e, o.recommendationConfigs.strategyId && k().isFeatureEnabled("reusableRecommendationStrategy") && (o.isInitialized = !1, o.syncedConfigFingerprint = null), this.blockStates = {
238
238
  ...this.blockStates,
239
239
  [e]: o
240
240
  };
@@ -380,50 +380,31 @@ const Q = () => ({
380
380
  this.currentRecommendationId === null || !this.blockStates[this.currentRecommendationId] || (this.blockStates[this.currentRecommendationId].removeStrategyModalStatus = !1);
381
381
  },
382
382
  async fetchStrategies() {
383
- for (; k; )
383
+ for (; R; )
384
384
  try {
385
- await k;
385
+ await R;
386
386
  } catch {
387
387
  }
388
388
  if (this.strategiesFetched)
389
389
  return;
390
- const t = I, e = (async () => {
390
+ const t = b, e = (async () => {
391
391
  this.strategiesLoading = !0;
392
392
  try {
393
393
  const r = await m.fetchRecommendationStrategies();
394
- if (t !== I)
394
+ if (t !== b)
395
395
  return;
396
396
  this.strategies = r, this.strategiesFetched = !0;
397
397
  } finally {
398
- this.strategiesLoading = !1, t === I && (this.strategiesSettled = !0);
398
+ this.strategiesLoading = !1, t === b && (this.strategiesSettled = !0);
399
399
  }
400
400
  })();
401
- k = e;
401
+ R = e;
402
402
  try {
403
403
  await e;
404
404
  } finally {
405
- k = null;
405
+ R = null;
406
406
  }
407
407
  },
408
- /**
409
- * Drops what the store still holds for a block whose account-scoped config was just
410
- * reset in the document (SD-151945), so the panel re-seeds from the emptied node.
411
- */
412
- resetPartnerScopedConfig(t) {
413
- const e = t.toString();
414
- if (this.recommendationCampaignUrls[e] !== void 0) {
415
- const n = { ...this.recommendationCampaignUrls };
416
- delete n[e], this.recommendationCampaignUrls = n;
417
- }
418
- const r = this.blockStates[t];
419
- r && (r.recommendationConfigs = {
420
- ...r.recommendationConfigs,
421
- strategyId: "",
422
- strategy: "",
423
- filters: [],
424
- productIds: []
425
- }, r.isInitialized = !1, r.syncedConfigFingerprint = null, this.currentRecommendationId === t && this.configVersion++);
426
- },
427
408
  /**
428
409
  * Clears what a block inherited from the id it arrived holding, so the panel fetches for it.
429
410
  * A re-dropped saved module can keep the source's id — and its "already fetched" entry —
@@ -435,7 +416,7 @@ const Q = () => ({
435
416
  }));
436
417
  },
437
418
  invalidateStrategies() {
438
- this.strategiesFetched = !1, this.strategiesSettled = !1, I += 1;
419
+ this.strategiesFetched = !1, this.strategiesSettled = !1, b += 1;
439
420
  },
440
421
  /**
441
422
  * Opens a Smart Recommender strategy page in a new tab and refreshes the list every time
@@ -626,7 +607,7 @@ const Q = () => ({
626
607
  const n = [...e.recommendationConfigs.filters];
627
608
  n[r] = {
628
609
  ...t,
629
- isValid: q(t)
610
+ isValid: K(t)
630
611
  }, e.recommendationConfigs.filters = n;
631
612
  }
632
613
  },
@@ -690,22 +671,22 @@ const Q = () => ({
690
671
  const t = [
691
672
  this.currentRecommendationId,
692
673
  this.configVersion,
693
- I
674
+ b
694
675
  ].join(":");
695
- if (y && b === t) {
676
+ if (y && I === t) {
696
677
  await y;
697
678
  return;
698
679
  }
699
- b = t, y = this._doFetchProducts();
680
+ I = t, y = this._doFetchProducts();
700
681
  try {
701
682
  await y;
702
683
  } finally {
703
- b === t && (y = null, b = "");
684
+ I === t && (y = null, I = "");
704
685
  }
705
686
  },
706
687
  async _doFetchProducts() {
707
688
  var h;
708
- const t = this.currentRecommendationId, e = this.blockStates[t], { recommendationConfigs: r } = e, n = R();
689
+ const t = this.currentRecommendationId, e = this.blockStates[t], { recommendationConfigs: r } = e, n = k();
709
690
  if (r.strategyId && n.isFeatureEnabled("reusableRecommendationStrategy")) {
710
691
  await this._doFetchStrategyProducts(t);
711
692
  return;
@@ -725,7 +706,7 @@ const Q = () => ({
725
706
  details: !0,
726
707
  campaignId: n.variationId
727
708
  };
728
- r.strategy === "manualMerchandising" ? c.productId = K(r.productIds) : r.strategy === "similarViewed" && (c.productId = "{itemId}"), r.strategy === "userBased" && (c.userId = "{user_id}"), a && (c.filter = a), r.shuffleProducts && (c.shuffle = !0), Object.assign(
709
+ r.strategy === "manualMerchandising" ? c.productId = q(r.productIds) : r.strategy === "similarViewed" && (c.productId = "{itemId}"), r.strategy === "userBased" && (c.userId = "{user_id}"), a && (c.filter = a), r.shuffleProducts && (c.shuffle = !0), Object.assign(
729
710
  c,
730
711
  $(n.partnerName, r.strategy)
731
712
  );
@@ -278,14 +278,6 @@ export declare const TemplateSchema: v.ObjectSchema<{
278
278
  * mount. Non-numbers still fail, like every other field in this schema.
279
279
  */
280
280
  readonly trackIdCounter: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, number>]>, 0>;
281
- /**
282
- * The variation's saved `recommendationCampaignUrls`, keyed by block id. A block
283
- * that still names a strategy but has no entry here had it dropped by a
284
- * cross-account duplicate, so Guido resets it on load (SD-151945). Omit it and
285
- * that check is off, and so is any non-object value such as `null`, because a reset
286
- * cannot be undone. Hosts send `[]` for an empty map.
287
- */
288
- readonly recommendationCampaignUrls: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnknownSchema, v.TransformAction<unknown, Record<string, unknown> | undefined>]>, undefined>;
289
281
  /** Migration-only inputs (legacy block configs) */
290
282
  readonly migration: v.OptionalSchema<v.ObjectSchema<{
291
283
  /**
@@ -709,14 +701,6 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
709
701
  * mount. Non-numbers still fail, like every other field in this schema.
710
702
  */
711
703
  readonly trackIdCounter: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, number>]>, 0>;
712
- /**
713
- * The variation's saved `recommendationCampaignUrls`, keyed by block id. A block
714
- * that still names a strategy but has no entry here had it dropped by a
715
- * cross-account duplicate, so Guido resets it on load (SD-151945). Omit it and
716
- * that check is off, and so is any non-object value such as `null`, because a reset
717
- * cannot be undone. Hosts send `[]` for an empty map.
718
- */
719
- readonly recommendationCampaignUrls: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnknownSchema, v.TransformAction<unknown, Record<string, unknown> | undefined>]>, undefined>;
720
704
  /** Migration-only inputs (legacy block configs) */
721
705
  readonly migration: v.OptionalSchema<v.ObjectSchema<{
722
706
  /**
@@ -43,7 +43,6 @@ export declare const useConfig: () => {
43
43
  selectedUnsubscribePages: number[];
44
44
  forceRecreate: boolean;
45
45
  trackIdCounter: number;
46
- recommendationCampaignUrls?: Record<string, unknown> | undefined;
47
46
  migration: {
48
47
  recommendationConfigs: {
49
48
  [x: string]: {
@@ -181,7 +180,6 @@ export declare const useConfig: () => {
181
180
  selectedUnsubscribePages: number[];
182
181
  forceRecreate: boolean;
183
182
  trackIdCounter: number;
184
- recommendationCampaignUrls?: Record<string, unknown> | undefined;
185
183
  migration: {
186
184
  recommendationConfigs: {
187
185
  [x: string]: {
@@ -137,12 +137,6 @@ export declare class RecommendationBlock extends Block {
137
137
  * heals templates saved before this feature without dirtying current ones.
138
138
  */
139
139
  private _healHidePriceAttr;
140
- /**
141
- * Empties a block copied in from another account: its strategy and attribute types
142
- * are account-scoped and would not resolve here (SD-151945). Layout, locale and
143
- * currency stay. The write stamps the current account, so the next pass is a no-op.
144
- */
145
- private _resetForeignPartnerConfig;
146
140
  /**
147
141
  * Gets the recommendation-id from a block node
148
142
  */
@@ -543,11 +543,6 @@ export declare const useRecommendationExtensionStore: import("pinia").StoreDefin
543
543
  openRemoveStrategyModal(): void;
544
544
  closeRemoveStrategyModal(): void;
545
545
  fetchStrategies(): Promise<void>;
546
- /**
547
- * Drops what the store still holds for a block whose account-scoped config was just
548
- * reset in the document (SD-151945), so the panel re-seeds from the emptied node.
549
- */
550
- resetPartnerScopedConfig(id: number): void;
551
546
  /**
552
547
  * Clears what a block inherited from the id it arrived holding, so the panel fetches for it.
553
548
  * A re-dropped saved module can keep the source's id — and its "already fetched" entry —
@@ -83,12 +83,6 @@ export interface RecommendationNodeConfig {
83
83
  */
84
84
  filters: Filter[];
85
85
  strategyId: string;
86
- /**
87
- * Account (`config.partner.name`) that last wrote the strategy config. Strategy ids and
88
- * attribute types are account-scoped, so a block opened under another account is reset.
89
- * Absent on blocks saved before SD-151945.
90
- */
91
- partnerName?: string;
92
86
  /**
93
87
  * Layout orientation
94
88
  * - 'grid': Products in a grid, attributes aligned across products
@@ -48,7 +48,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
48
48
  selectedUnsubscribePages: number[];
49
49
  forceRecreate: boolean;
50
50
  trackIdCounter: number;
51
- recommendationCampaignUrls?: Record<string, unknown> | undefined;
52
51
  migration: {
53
52
  recommendationConfigs: {
54
53
  [x: string]: {
@@ -192,7 +191,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
192
191
  selectedUnsubscribePages: number[];
193
192
  forceRecreate: boolean;
194
193
  trackIdCounter: number;
195
- recommendationCampaignUrls?: Record<string, unknown> | undefined;
196
194
  migration: {
197
195
  recommendationConfigs: {
198
196
  [x: string]: {
@@ -336,7 +334,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
336
334
  selectedUnsubscribePages: number[];
337
335
  forceRecreate: boolean;
338
336
  trackIdCounter: number;
339
- recommendationCampaignUrls?: Record<string, unknown> | undefined;
340
337
  migration: {
341
338
  recommendationConfigs: {
342
339
  [x: string]: {
@@ -480,7 +477,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
480
477
  selectedUnsubscribePages: number[];
481
478
  forceRecreate: boolean;
482
479
  trackIdCounter: number;
483
- recommendationCampaignUrls?: Record<string, unknown> | undefined;
484
480
  migration: {
485
481
  recommendationConfigs: {
486
482
  [x: string]: {
@@ -624,7 +620,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
624
620
  selectedUnsubscribePages: number[];
625
621
  forceRecreate: boolean;
626
622
  trackIdCounter: number;
627
- recommendationCampaignUrls?: Record<string, unknown> | undefined;
628
623
  migration: {
629
624
  recommendationConfigs: {
630
625
  [x: string]: {
@@ -768,7 +763,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
768
763
  selectedUnsubscribePages: number[];
769
764
  forceRecreate: boolean;
770
765
  trackIdCounter: number;
771
- recommendationCampaignUrls?: Record<string, unknown> | undefined;
772
766
  migration: {
773
767
  recommendationConfigs: {
774
768
  [x: string]: {
@@ -912,7 +906,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
912
906
  selectedUnsubscribePages: number[];
913
907
  forceRecreate: boolean;
914
908
  trackIdCounter: number;
915
- recommendationCampaignUrls?: Record<string, unknown> | undefined;
916
909
  migration: {
917
910
  recommendationConfigs: {
918
911
  [x: string]: {
@@ -1056,7 +1049,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1056
1049
  selectedUnsubscribePages: number[];
1057
1050
  forceRecreate: boolean;
1058
1051
  trackIdCounter: number;
1059
- recommendationCampaignUrls?: Record<string, unknown> | undefined;
1060
1052
  migration: {
1061
1053
  recommendationConfigs: {
1062
1054
  [x: string]: {
@@ -1200,7 +1192,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1200
1192
  selectedUnsubscribePages: number[];
1201
1193
  forceRecreate: boolean;
1202
1194
  trackIdCounter: number;
1203
- recommendationCampaignUrls?: Record<string, unknown> | undefined;
1204
1195
  migration: {
1205
1196
  recommendationConfigs: {
1206
1197
  [x: string]: {
@@ -1344,7 +1335,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1344
1335
  selectedUnsubscribePages: number[];
1345
1336
  forceRecreate: boolean;
1346
1337
  trackIdCounter: number;
1347
- recommendationCampaignUrls?: Record<string, unknown> | undefined;
1348
1338
  migration: {
1349
1339
  recommendationConfigs: {
1350
1340
  [x: string]: {
@@ -1488,7 +1478,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1488
1478
  selectedUnsubscribePages: number[];
1489
1479
  forceRecreate: boolean;
1490
1480
  trackIdCounter: number;
1491
- recommendationCampaignUrls?: Record<string, unknown> | undefined;
1492
1481
  migration: {
1493
1482
  recommendationConfigs: {
1494
1483
  [x: string]: {
@@ -1632,7 +1621,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1632
1621
  selectedUnsubscribePages: number[];
1633
1622
  forceRecreate: boolean;
1634
1623
  trackIdCounter: number;
1635
- recommendationCampaignUrls?: Record<string, unknown> | undefined;
1636
1624
  migration: {
1637
1625
  recommendationConfigs: {
1638
1626
  [x: string]: {
@@ -1776,7 +1764,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1776
1764
  selectedUnsubscribePages: number[];
1777
1765
  forceRecreate: boolean;
1778
1766
  trackIdCounter: number;
1779
- recommendationCampaignUrls?: Record<string, unknown> | undefined;
1780
1767
  migration: {
1781
1768
  recommendationConfigs: {
1782
1769
  [x: string]: {
@@ -1920,7 +1907,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1920
1907
  selectedUnsubscribePages: number[];
1921
1908
  forceRecreate: boolean;
1922
1909
  trackIdCounter: number;
1923
- recommendationCampaignUrls?: Record<string, unknown> | undefined;
1924
1910
  migration: {
1925
1911
  recommendationConfigs: {
1926
1912
  [x: string]: {
@@ -2064,7 +2050,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2064
2050
  selectedUnsubscribePages: number[];
2065
2051
  forceRecreate: boolean;
2066
2052
  trackIdCounter: number;
2067
- recommendationCampaignUrls?: Record<string, unknown> | undefined;
2068
2053
  migration: {
2069
2054
  recommendationConfigs: {
2070
2055
  [x: string]: {
@@ -2208,7 +2193,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2208
2193
  selectedUnsubscribePages: number[];
2209
2194
  forceRecreate: boolean;
2210
2195
  trackIdCounter: number;
2211
- recommendationCampaignUrls?: Record<string, unknown> | undefined;
2212
2196
  migration: {
2213
2197
  recommendationConfigs: {
2214
2198
  [x: string]: {
@@ -2352,7 +2336,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2352
2336
  selectedUnsubscribePages: number[];
2353
2337
  forceRecreate: boolean;
2354
2338
  trackIdCounter: number;
2355
- recommendationCampaignUrls?: Record<string, unknown> | undefined;
2356
2339
  migration: {
2357
2340
  recommendationConfigs: {
2358
2341
  [x: string]: {
@@ -2496,7 +2479,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2496
2479
  selectedUnsubscribePages: number[];
2497
2480
  forceRecreate: boolean;
2498
2481
  trackIdCounter: number;
2499
- recommendationCampaignUrls?: Record<string, unknown> | undefined;
2500
2482
  migration: {
2501
2483
  recommendationConfigs: {
2502
2484
  [x: string]: {
@@ -2640,7 +2622,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2640
2622
  selectedUnsubscribePages: number[];
2641
2623
  forceRecreate: boolean;
2642
2624
  trackIdCounter: number;
2643
- recommendationCampaignUrls?: Record<string, unknown> | undefined;
2644
2625
  migration: {
2645
2626
  recommendationConfigs: {
2646
2627
  [x: string]: {
@@ -2786,7 +2767,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2786
2767
  selectedUnsubscribePages: number[];
2787
2768
  forceRecreate: boolean;
2788
2769
  trackIdCounter: number;
2789
- recommendationCampaignUrls?: Record<string, unknown> | undefined;
2790
2770
  migration: {
2791
2771
  recommendationConfigs: {
2792
2772
  [x: string]: {
@@ -52,15 +52,6 @@ const n = `.strategy-control-header {
52
52
  mask-size: 24px 24px;
53
53
  }
54
54
 
55
- .strategy-control-notice--error {
56
- border-color: var(--guido-color-border-onpage-message-error);
57
- background-color: var(--guido-color-background-onpage-message-error);
58
- }
59
-
60
- .strategy-control-notice--error::before {
61
- background-color: var(--guido-color-border-onpage-message-error);
62
- }
63
-
64
55
  .strategy-control-notice-text {
65
56
  margin: 0;
66
57
  padding: 4px 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "3.19.0-beta.cac604e",
3
+ "version": "3.19.0-beta.dcea8c0",
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",
@@ -38,7 +38,6 @@
38
38
  "test:e2e-mutation": "node scripts/e2e-mutation-check.mjs",
39
39
  "type-check": "vue-tsc --noEmit --project tsconfig.config.json && vue-tsc --noEmit --project tsconfig.app.json",
40
40
  "test": "vitest run --coverage",
41
- "test:run": "vitest run",
42
41
  "test:watch": "vitest",
43
42
  "test:visual-update": "npx playwright test --update-snapshots --reporter html",
44
43
  "test:e2e:coverage": "E2E_COVERAGE=true playwright test",