@useinsider/guido 3.26.0-beta.511b49f → 3.26.0-beta.565b77f

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,34 +1,34 @@
1
- var A = Object.defineProperty;
2
- var N = (g, o, t) => o in g ? A(g, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : g[o] = t;
3
- var r = (g, o, t) => N(g, typeof o != "symbol" ? o + "" : o, t);
4
- import { useLegacyStrategyConversion as O } from "../../../../../composables/useLegacyStrategyConversion.js";
5
- import { ACADEMY_LINKS as w } from "../../../../../enums/academy.js";
6
- import { useOnboardingStore as $ } from "../../../../../stores/onboarding.js";
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
7
  import { CommonControl as R } from "../../../common-control.js";
8
8
  import { RRS_CONFIG_VERSION as E } from "../../constants/defaultConfig.js";
9
- import { RecommendationConfigService as k } from "../../services/configService.js";
10
- import { useRecommendationExtensionStore as I } from "../../store/recommendation.js";
11
- const q = "recommendation-strategy-control", y = "recommendationLegacyStrategyOnboarding";
12
- class Y extends R {
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 {
13
13
  constructor() {
14
14
  super(...arguments);
15
- r(this, "store", I());
16
- r(this, "onboardingStore", $());
17
- r(this, "legacyConversion", O());
18
- r(this, "storeUnsubscription", () => {
15
+ i(this, "store", O());
16
+ i(this, "onboardingStore", A());
17
+ i(this, "legacyConversion", L());
18
+ i(this, "storeUnsubscription", () => {
19
19
  });
20
- r(this, "listeners", []);
21
- r(this, "lastPaintedState", null);
20
+ i(this, "listeners", []);
21
+ i(this, "lastPaintedState", null);
22
22
  }
23
23
  getId() {
24
- return q;
24
+ return I;
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"), i = this.api.translate("Legacy Strategy"), s = this.api.translate(
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(
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
- ), l = this.api.translate(
31
+ ), g = this.api.translate(
32
32
  "The recommendation strategy used in the recommendation block is no longer available. You can assign a different strategy to it."
33
33
  );
34
34
  return `
@@ -54,7 +54,7 @@ class Y extends R {
54
54
  ${t}
55
55
  ${e}
56
56
  <a
57
- href="${w.EMAIL_RECOMMENDATION_BLOCK}"
57
+ href="${$.EMAIL_RECOMMENDATION_BLOCK}"
58
58
  target="_blank"
59
59
  rel="noopener noreferrer">${a}</a>.
60
60
  </p>
@@ -78,7 +78,7 @@ class Y extends R {
78
78
  <div data-strategy-unavailable-state style="display: none;">
79
79
  <div class="strategy-control-notice-row">
80
80
  <div class="strategy-control-notice strategy-control-notice--error" role="alert">
81
- <p class="strategy-control-notice-text">${l}</p>
81
+ <p class="strategy-control-notice-text">${g}</p>
82
82
  </div>
83
83
  </div>
84
84
  ${this._GuTwoColumns([
@@ -103,7 +103,7 @@ class Y extends R {
103
103
  </div>
104
104
  </div>
105
105
  <div class="strategy-control-name-band">
106
- <span class="strategy-control-name">${i}</span>
106
+ <span class="strategy-control-name">${r}</span>
107
107
  ${this._strategyAction({
108
108
  id: "guido__btn-update-legacy-strategy",
109
109
  label: this.api.translate("Update"),
@@ -170,15 +170,13 @@ class Y extends R {
170
170
  * strategyId) for an assigned block.
171
171
  */
172
172
  _isNodeUnassigned() {
173
- if (!k.hasConfig(this.currentNode))
173
+ if (!C.hasConfig(this.currentNode))
174
174
  return !1;
175
- const t = k.getConfig(this.currentNode);
175
+ const t = C.getConfig(this.currentNode);
176
176
  return !t.strategyId && (t.configVersion ?? 0) >= E;
177
177
  }
178
178
  onDestroy() {
179
- this._teardown(), requestAnimationFrame(() => {
180
- this.store.strategyPanelOpen || this._closeLegacyOnboarding();
181
- });
179
+ this._teardown();
182
180
  }
183
181
  _teardown() {
184
182
  this.store.strategyPanelOpen = !1, this.storeUnsubscription(), this.storeUnsubscription = () => {
@@ -188,47 +186,37 @@ class Y extends R {
188
186
  const t = this.getContainer();
189
187
  if (!t)
190
188
  return;
191
- const e = (a, i) => {
189
+ const e = (a, r) => {
192
190
  const s = t.querySelector(a);
193
- s && (s.addEventListener("click", i), this.listeners.push({ element: s, handler: i }));
191
+ s && (s.addEventListener("click", r), this.listeners.push({ element: s, handler: r }));
194
192
  };
195
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", () => {
196
194
  this.legacyConversion.convertLegacyStrategy();
197
195
  });
198
196
  }
199
- _closeLegacyOnboarding() {
200
- this.onboardingStore.isActive(y) && this.onboardingStore.resetOnboarding(y);
201
- }
202
- _syncLegacyOnboarding(t) {
203
- if (!t) {
204
- this._closeLegacyOnboarding();
205
- return;
206
- }
207
- this.onboardingStore.closedThisSession.includes(y) || this.onboardingStore.startOnboarding(y);
208
- }
209
197
  _renderState() {
210
- var L;
211
- const { strategyId: t } = this.store.recommendationConfigs, e = t ? ((L = this.store.assignedStrategy) == null ? void 0 : L.name) ?? "" : "", a = !!t && !e && (this.store.strategiesLoading || !this.store.strategiesSettled), i = !!t && !e && !a && this.store.strategiesFetched, s = this.store.legacyConversionLoading, l = this.store.isLegacyStrategyBlock, v = [t, e, a, i, s, l].join("\0");
212
- if (v === this.lastPaintedState)
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)
213
201
  return;
214
202
  const n = this.getContainer();
215
203
  if (!n)
216
204
  return;
217
- const h = n.querySelector("[data-strategy-empty-state]"), u = n.querySelector("[data-strategy-assigned-state]"), c = n.querySelector("[data-strategy-legacy-state]"), m = n.querySelector("[data-strategy-unavailable-state]"), b = n.querySelector("[data-strategy-loading-state]"), _ = n.querySelector("[data-strategy-content]"), p = n.querySelector("[data-strategy-name]"), S = n.querySelector("[data-strategy-name-skeleton]");
218
- if (!h || !u || !c || !m)
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)
219
207
  return;
220
- b && (b.style.display = "none"), _ && (_.style.display = "");
221
- const f = t ? i ? m : u : l ? c : h;
222
- [h, u, c, m].forEach((d) => {
223
- d.style.display = d === f ? "" : "none";
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";
224
212
  }), c.querySelectorAll("button").forEach((d) => {
225
213
  d.disabled = s;
226
214
  }), c.classList.toggle("is-converting", s), !t && this._isNodeUnassigned() && this.onboardingStore.startOnboarding("recommendationStrategyOnboarding");
227
- const C = this.store.currentRecommendationId;
228
- C !== null && this.store.blockStates[C] && this._syncLegacyOnboarding(f === c), p && (p.style.display = a ? "none" : "", t && !a && (p.textContent = e || `#${t}`)), S && (S.style.display = a ? "block" : "none"), this.lastPaintedState = v;
215
+ 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;
229
217
  }
230
218
  }
231
219
  export {
232
- q as STRATEGY_CONTROL_ID,
233
- Y as StrategyControl
220
+ I as STRATEGY_CONTROL_ID,
221
+ P as StrategyControl
234
222
  };
@@ -1,9 +1,8 @@
1
1
  var u = Object.defineProperty;
2
- var c = (l, r, e) => r in l ? u(l, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[r] = e;
3
- var i = (l, r, e) => c(l, typeof r != "symbol" ? r + "" : r, e);
4
- import { findEditorShadowRoot as I } from "../../utils/editorShadowRoot.js";
5
- import { Control as O, UIElementType as n, UEAttr as $ } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
6
- class R extends O {
2
+ var c = (l, E, e) => E in l ? u(l, E, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[E] = e;
3
+ var i = (l, E, e) => c(l, typeof E != "symbol" ? E + "" : E, e);
4
+ import { Control as I, UIElementType as n, UEAttr as $ } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
5
+ class _ extends I {
7
6
  constructor() {
8
7
  super(...arguments);
9
8
  i(this, "currentNode");
@@ -12,7 +11,8 @@ class R extends O {
12
11
  i(this, "isAwaitingPanelNode", !1);
13
12
  }
14
13
  getContainer() {
15
- return I();
14
+ var e;
15
+ return (e = document.querySelector("ui-editor")) == null ? void 0 : e.shadowRoot;
16
16
  }
17
17
  onTemplateNodeUpdated(e) {
18
18
  this.currentNode = e;
@@ -98,13 +98,13 @@ class R extends O {
98
98
  * and combines it with the text in Stripo's alert-message layout.
99
99
  */
100
100
  _setInfoMessageValue(e, t) {
101
- const o = this.getContainer(), a = o.querySelector(`[data-icon-key="${e}"]`), E = a == null ? void 0 : a.querySelector("ue-icon-component"), s = (E == null ? void 0 : E.outerHTML) ?? "";
101
+ const o = this.getContainer(), a = o.querySelector(`[data-icon-key="${e}"]`), s = a == null ? void 0 : a.querySelector("ue-icon-component"), r = (s == null ? void 0 : s.outerHTML) ?? "";
102
102
  this.api.setUIEAttribute(
103
103
  e,
104
104
  "value",
105
105
  `
106
106
  <div class="service-element alert-message-main" style="align-items: start;">
107
- ${s}
107
+ ${r}
108
108
  <div class="service-element alert-message-text">
109
109
  ${t}
110
110
  </div>
@@ -133,15 +133,15 @@ class R extends O {
133
133
  placeholder: t,
134
134
  options: o,
135
135
  className: a = "es-180w",
136
- searchable: E = !1
136
+ searchable: s = !1
137
137
  }) {
138
138
  return `
139
139
  <${n.SELECTPICKER}
140
140
  class="${a}"
141
141
  ${$.SELECTPICKER.name}="${e}"
142
- ${E ? `${$.SELECTPICKER.searchable}="true"` : ""}
142
+ ${s ? `${$.SELECTPICKER.searchable}="true"` : ""}
143
143
  ${$.SELECTPICKER.placeholder}="${t}">
144
- ${o.map((s) => this._GuSelectItem(s)).join("")}
144
+ ${o.map((r) => this._GuSelectItem(r)).join("")}
145
145
  </${n.SELECTPICKER}>
146
146
  `;
147
147
  }
@@ -183,14 +183,14 @@ class R extends O {
183
183
  </${n.RADIO_BUTTONS}>
184
184
  `;
185
185
  }
186
- _GuButton({ name: e, label: t, id: o = "", className: a = "", icon: E = "", disabled: s = !1 }) {
186
+ _GuButton({ name: e, label: t, id: o = "", className: a = "", icon: s = "", disabled: r = !1 }) {
187
187
  return `
188
188
  <${n.BUTTON}
189
189
  ${$.BUTTON.name}="${e}"
190
190
  ${o ? `id="${o}"` : ""}
191
191
  ${a ? `class="${a}"` : ""}
192
- ${E ? `${$.BUTTON.icon}="${E}"` : ""}
193
- ${s ? `${$.BUTTON.disabled}="true"` : ""}
192
+ ${s ? `${$.BUTTON.icon}="${s}"` : ""}
193
+ ${r ? `${$.BUTTON.disabled}="true"` : ""}
194
194
  ${$.BUTTON.caption}="${t}">
195
195
  </${n.BUTTON}>
196
196
  `;
@@ -240,11 +240,11 @@ class R extends O {
240
240
  */
241
241
  _GuOrderable(e, t) {
242
242
  let o = "";
243
- t.forEach((E) => {
244
- const s = $.ORDERABLE_ITEM && "name" in $.ORDERABLE_ITEM ? $.ORDERABLE_ITEM.name : "name";
243
+ t.forEach((s) => {
244
+ const r = $.ORDERABLE_ITEM && "name" in $.ORDERABLE_ITEM ? $.ORDERABLE_ITEM.name : "name";
245
245
  o += `
246
- <${n.ORDERABLE_ITEM} ${s}="${E.key}">
247
- ${E.content}
246
+ <${n.ORDERABLE_ITEM} ${r}="${s.key}">
247
+ ${s.content}
248
248
  </${n.ORDERABLE_ITEM}>
249
249
  `;
250
250
  });
@@ -315,5 +315,5 @@ class R extends O {
315
315
  }
316
316
  }
317
317
  export {
318
- R as CommonControl
318
+ _ as CommonControl
319
319
  };
@@ -2,17 +2,16 @@ var c = Object.defineProperty;
2
2
  var g = (o, s, t) => s in o ? c(o, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[s] = t;
3
3
  var r = (o, s, t) => g(o, typeof s != "symbol" ? s + "" : s, t);
4
4
  import { useConfig as d } from "../../composables/useConfig.js";
5
- import { findEditorShadowRoot as m } from "../../utils/editorShadowRoot.js";
6
- import { mergeTagToDynamicContent as u, dynamicContentToMergeTags as h } from "../../utils/genericUtil.js";
7
- import { UIElement as T, UIElementType as a, UEAttr as y, UIElementTagRegistry as C } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
8
- import { ExternalMergeTagsLibrary as E } from "./dynamic-content-modal.js";
5
+ import { mergeTagToDynamicContent as m, dynamicContentToMergeTags as u } from "../../utils/genericUtil.js";
6
+ import { UIElement as h, UIElementType as a, UEAttr as T, UIElementTagRegistry as y } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
7
+ import { ExternalMergeTagsLibrary as C } from "./dynamic-content-modal.js";
9
8
  const l = "external-dynamic-content-ui-element", L = "button-add-dynamic-content";
10
- class B extends C {
9
+ class w extends y {
11
10
  registerUiElements(s) {
12
11
  s[a.MERGETAGS] = l;
13
12
  }
14
13
  }
15
- class x extends T {
14
+ class f extends h {
16
15
  constructor() {
17
16
  super(...arguments);
18
17
  r(this, "mergeTagsButton", null);
@@ -45,7 +44,7 @@ class x extends T {
45
44
  onAttributeUpdated(t, e) {
46
45
  if (t !== "mergeTag" || !(e != null && e.value))
47
46
  return;
48
- const n = u(e), i = this._getLastClickedPosition();
47
+ const n = m(e), i = this._getLastClickedPosition();
49
48
  this.lastClickedElement = null, this.lastClickedFrame = null, this._openDynamicContentLibrary(n, i);
50
49
  }
51
50
  openMergeTagLibrary() {
@@ -57,12 +56,12 @@ class x extends T {
57
56
  * Dispatches event with dynamic content data and position
58
57
  */
59
58
  _openDynamicContentLibrary(t, e) {
60
- this.mergeTagsLibrary || (this.mergeTagsLibrary = new E()), this.mergeTagsLibrary.openMergeTagsLibrary(
59
+ this.mergeTagsLibrary || (this.mergeTagsLibrary = new C()), this.mergeTagsLibrary.openMergeTagsLibrary(
61
60
  t,
62
61
  (n) => {
63
62
  if (n.text && n.value) {
64
63
  const { isFeatureEnabled: i } = d();
65
- this.api.triggerValueChange(h([n], i("liquidSyntax"))[0]);
64
+ this.api.triggerValueChange(u([n], i("liquidSyntax"))[0]);
66
65
  } else
67
66
  this.api.triggerValueChange(null);
68
67
  },
@@ -95,9 +94,12 @@ class x extends T {
95
94
  * Gets the editor iframe element
96
95
  */
97
96
  _getEditorFrame() {
98
- var e, n;
99
- const t = (e = m()) == null ? void 0 : e.querySelector("iframe");
100
- return (n = t == null ? void 0 : t.contentWindow) != null && n.document ? t : null;
97
+ var n;
98
+ const t = document.querySelector("ui-editor");
99
+ if (!(t != null && t.shadowRoot))
100
+ return null;
101
+ const e = t.shadowRoot.querySelector("iframe");
102
+ return (n = e == null ? void 0 : e.contentWindow) != null && n.document ? e : null;
101
103
  }
102
104
  /**
103
105
  * Finds merge tag element in the element tree
@@ -145,7 +147,7 @@ class x extends T {
145
147
  <${a.BUTTON}
146
148
  id="guido__btn-add-dynamic-content"
147
149
  class="btn btn-primary"
148
- ${y.BUTTON.name}="${L}">
150
+ ${T.BUTTON.name}="${L}">
149
151
  <${a.ICON} src="plus" class="icon icon-button color-primary">
150
152
  </${a.ICON}>
151
153
  ${this.api.translate("Add Dynamic Content")}
@@ -154,6 +156,6 @@ class x extends T {
154
156
  }
155
157
  }
156
158
  export {
157
- B as DynamicContentTagRegistry,
158
- x as DynamicContentUiElementExtension
159
+ w as DynamicContentTagRegistry,
160
+ f as DynamicContentUiElementExtension
159
161
  };
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-8fc59697]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-8fc59697]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-8fc59697]{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-fcba7e99] .vueperslides__bullets{pointer-events:none!important}[data-v-fcba7e99] .vueperslides__parallax-wrapper{padding-bottom:110px!important}[data-v-1a34025a] .vueperslides__bullets{pointer-events:none!important}[data-v-1a34025a] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-8fc96a58] .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}.guido-display-condition-create__separator[data-v-929822bc]{height:1px;margin:0 0 24px;background-image:linear-gradient(to right,currentColor 1px,transparent 1px);background-size:5px 1px}.guido-display-condition-create__methods[data-v-929822bc]{gap:16px}.guido-display-condition-select-root[data-v-0d740001] .in-drawer__footer{justify-content:flex-start}.guido-display-condition-select__delete-modal[data-v-0d740001]{position:relative;z-index:145}.guido-display-condition-select__delete-modal[data-v-0d740001] .in-modal-v2-wrapper__header-title{margin-bottom:0}.guido-display-condition-select-root[data-v-0d740001] .in-drawer__content>div{display:flex;flex-direction:column;min-height:100%}.guido-display-condition-select__list[data-v-0d740001]{display:flex;flex-direction:column;gap:24px;margin:0;padding:0;list-style:none}.guido-display-condition-card__header[data-v-0d740001]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px}.guido-display-condition-card__text[data-v-0d740001]{min-width:0}.guido-display-condition-card__name[data-v-0d740001],.guido-display-condition-card__description[data-v-0d740001]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.guido-display-condition-card__actions[data-v-0d740001]{display:flex;flex-shrink:0;align-items:center;gap:16px}.guido-display-condition-card__split[data-v-0d740001]{position:relative;display:flex;gap:1px}.guido-display-condition-card__menu[data-v-0d740001]{z-index:2;min-width:115px}.guido-display-condition-card__divider[data-v-0d740001]{width:1px;height:24px}.guido-display-condition-card__code[data-v-0d740001]{margin:1px 15px 15px;padding:8px;font-family:inherit;white-space:pre-wrap;word-break:break-word}.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-ed74fdf8]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-ed74fdf8]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-ed74fdf8]{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}.guido-display-condition-create__separator[data-v-929822bc]{height:1px;margin:0 0 24px;background-image:linear-gradient(to right,currentColor 1px,transparent 1px);background-size:5px 1px}.guido-display-condition-create__methods[data-v-929822bc]{gap:16px}.guido-display-condition-select-root[data-v-0d740001] .in-drawer__footer{justify-content:flex-start}.guido-display-condition-select__delete-modal[data-v-0d740001]{position:relative;z-index:145}.guido-display-condition-select__delete-modal[data-v-0d740001] .in-modal-v2-wrapper__header-title{margin-bottom:0}.guido-display-condition-select-root[data-v-0d740001] .in-drawer__content>div{display:flex;flex-direction:column;min-height:100%}.guido-display-condition-select__list[data-v-0d740001]{display:flex;flex-direction:column;gap:24px;margin:0;padding:0;list-style:none}.guido-display-condition-card__header[data-v-0d740001]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px}.guido-display-condition-card__text[data-v-0d740001]{min-width:0}.guido-display-condition-card__name[data-v-0d740001],.guido-display-condition-card__description[data-v-0d740001]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.guido-display-condition-card__actions[data-v-0d740001]{display:flex;flex-shrink:0;align-items:center;gap:16px}.guido-display-condition-card__split[data-v-0d740001]{position:relative;display:flex;gap:1px}.guido-display-condition-card__menu[data-v-0d740001]{z-index:2;min-width:115px}.guido-display-condition-card__divider[data-v-0d740001]{width:1px;height:24px}.guido-display-condition-card__code[data-v-0d740001]{margin:1px 15px 15px;padding:8px;font-family:inherit;white-space:pre-wrap;word-break:break-word}.legacy-strategy-updated-modal[data-v-da2225a1]{position:relative;z-index:145}
@@ -1,4 +1,4 @@
1
- const o = "3.26.0-beta.511b49f", s = { stripo: { version: "2.83.1" } }, t = {
1
+ const o = "3.26.0-beta.565b77f", s = { stripo: { version: "2.83.1" } }, t = {
2
2
  version: o,
3
3
  guido: s
4
4
  };
@@ -22,7 +22,5 @@ export declare class StrategyControl extends CommonControl {
22
22
  onDestroy(): void;
23
23
  private _teardown;
24
24
  private _setupButtonListeners;
25
- private _closeLegacyOnboarding;
26
- private _syncLegacyOnboarding;
27
25
  private _renderState;
28
26
  }
@@ -3120,7 +3120,6 @@ export declare const useOnboardingStore: import("pinia").StoreDefinition<"guidoO
3120
3120
  start(type: OnboardingType): void;
3121
3121
  startOnboarding(type: OnboardingType): void;
3122
3122
  closeForSession(type: OnboardingType): void;
3123
- resetOnboarding(type: OnboardingType): void;
3124
3123
  close(type: OnboardingType): Promise<void>;
3125
3124
  next(type: OnboardingType): void;
3126
3125
  previous(type: OnboardingType): void;
@@ -89,10 +89,7 @@ const e = () => ({
89
89
  this.shouldShowOnboarding(n) && !this.isActive(n) && this.start(n);
90
90
  },
91
91
  closeForSession(n) {
92
- this.resetOnboarding(n), this.closedThisSession.push(n);
93
- },
94
- resetOnboarding(n) {
95
- this.closedThisSession = this.closedThisSession.filter((o) => o !== n), this.onboardings[n].isActive = !1, this.onboardings[n].cardIndex = 0, this.onboardings[n].config = [], this.onboardings[n].cardOffset = 0;
92
+ this.closedThisSession.includes(n) || this.closedThisSession.push(n), this.onboardings[n].isActive = !1, this.onboardings[n].cardIndex = 0, this.onboardings[n].config = [], this.onboardings[n].cardOffset = 0;
96
93
  },
97
94
  async close(n) {
98
95
  this.closeForSession(n);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "3.26.0-beta.511b49f",
3
+ "version": "3.26.0-beta.565b77f",
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",
@@ -1 +0,0 @@
1
- export declare const findEditorShadowRoot: () => ShadowRoot | null;
@@ -1,8 +0,0 @@
1
- import { UI_EDITOR_SELECTOR as t } from "../enums/onboarding.js";
2
- const n = () => {
3
- const o = document.querySelector(t);
4
- return (o == null ? void 0 : o.shadowRoot) ?? null;
5
- };
6
- export {
7
- n as findEditorShadowRoot
8
- };