@useinsider/guido 3.26.0-beta.d0b09c0 → 3.26.0-beta.e7ade20
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.
- package/dist/components/Guido.vue.js +1 -1
- package/dist/components/Guido.vue2.js +46 -45
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +5 -5
- package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +15 -15
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue.js +6 -6
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue2.js +28 -27
- package/dist/components/organisms/onboarding/RecommendationLegacyStrategyOnboarding.vue.js +1 -1
- package/dist/components/organisms/onboarding/RecommendationLegacyStrategyOnboarding.vue2.js +42 -27
- package/dist/composables/useCustomInterfaceAppearance.js +50 -50
- package/dist/composables/useFullStoryBridge.js +10 -9
- package/dist/config/migrator/unsubscribeMigrator.js +100 -114
- package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +52 -40
- package/dist/extensions/Blocks/Unsubscribe/block.js +96 -104
- package/dist/extensions/Blocks/Unsubscribe/utils/constants.js +3 -4
- package/dist/extensions/Blocks/common-control.js +19 -19
- package/dist/extensions/DynamicContent/dynamic-content.js +15 -17
- package/dist/guido.css +1 -1
- package/dist/package.json.js +4 -4
- package/dist/src/extensions/Blocks/Recommendation/controls/main/strategy.d.ts +2 -0
- package/dist/src/extensions/Blocks/Unsubscribe/utils/constants.d.ts +0 -1
- package/dist/src/stores/onboarding.d.ts +1 -0
- package/dist/src/utils/editorShadowRoot.d.ts +1 -0
- package/dist/stores/onboarding.js +4 -1
- package/dist/utils/editorShadowRoot.js +8 -0
- package/package.json +1 -1
- package/dist/extensions/Blocks/Unsubscribe/utils/swapMergeTagInHref.js +0 -5
- package/dist/src/extensions/Blocks/Unsubscribe/utils/swapMergeTagInHref.d.ts +0 -1
|
@@ -1,49 +1,48 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { useToaster as
|
|
5
|
-
import { ToasterTypeOptions as
|
|
6
|
-
import { PAGE_TYPES as
|
|
7
|
-
import { useEditorStore as
|
|
8
|
-
import { useUnsubscribeStore as
|
|
9
|
-
import { Block as
|
|
10
|
-
import { getDefaultTemplate as
|
|
11
|
-
import { UNSUBSCRIBE_BLOCK_SELECTOR as
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
[
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
N(), U();
|
|
1
|
+
var y = Object.defineProperty;
|
|
2
|
+
var I = (c, o, e) => o in c ? y(c, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[o] = e;
|
|
3
|
+
var g = (c, o, e) => I(c, typeof o != "symbol" ? o + "" : o, e);
|
|
4
|
+
import { useToaster as L } from "../../../composables/useToaster.js";
|
|
5
|
+
import { ToasterTypeOptions as C } from "../../../enums/toaster.js";
|
|
6
|
+
import { PAGE_TYPES as m } from "../../../enums/unsubscribe.js";
|
|
7
|
+
import { useEditorStore as N } from "../../../stores/editor.js";
|
|
8
|
+
import { useUnsubscribeStore as a } from "../../../stores/unsubscribe.js";
|
|
9
|
+
import { Block as U, BlockCompositionType as R, ContextActionType as f, ModificationDescription as u, BlockType as v } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
10
|
+
import { getDefaultTemplate as D } from "./template.js";
|
|
11
|
+
import { UNSUBSCRIBE_BLOCK_SELECTOR as B, DATA_ATTRIBUTES as n, UNSUBSCRIBE_EVENTS as h } from "./utils/constants.js";
|
|
12
|
+
import { parsePageList as S } from "./utils/utils.js";
|
|
13
|
+
const w = "unsubscribe-block", E = 'a[data-unsubscribe-link="true"]', P = "{{ins-unsubscribe-link}}", x = "https://academy.insiderone.com/docs/adding-unsubscribe-pages-into-emails", G = "Removing the unsubscribe text leaves an empty block, but an active unsubscribe link is required. Undo your last action to restore the text, or delete the unsubscribe block entirely.", M = {
|
|
14
|
+
[m.GLOBAL_UNSUBSCRIBE]: "{{ins-global-unsubscribe-link}}",
|
|
15
|
+
[m.SUBSCRIPTION_PREFERENCE_CENTER]: "{{ins-preferences-unsubscribe-link}}"
|
|
16
|
+
}, O = 3;
|
|
17
|
+
let d = null, p = null;
|
|
18
|
+
const A = () => {
|
|
19
|
+
d && (document.removeEventListener(h.SELECT, d), d = null);
|
|
20
|
+
}, T = () => {
|
|
21
|
+
p && (document.removeEventListener(h.CANCEL, p), p = null);
|
|
22
|
+
}, q = () => {
|
|
23
|
+
A(), T();
|
|
25
24
|
};
|
|
26
|
-
class
|
|
25
|
+
class J extends U {
|
|
27
26
|
constructor() {
|
|
28
27
|
super();
|
|
29
|
-
|
|
28
|
+
g(this, "currentNode");
|
|
30
29
|
// Per-block "did this instance have a link last time we saw it?" tracking.
|
|
31
30
|
// Keyed by the stable `data-unsubscribe-block-id` we assign, because
|
|
32
31
|
// ImmutableHtmlNode instances are recreated on every document mutation and
|
|
33
32
|
// can't be used as Map keys directly. A singleton boolean here would be
|
|
34
33
|
// polluted across blocks since Stripo fires onDocumentChanged per-instance.
|
|
35
|
-
|
|
34
|
+
g(this, "linkStateByBlockId", /* @__PURE__ */ new Map());
|
|
36
35
|
// Per-block prepend retry counter for the leading text guard (SD-143097).
|
|
37
|
-
|
|
36
|
+
g(this, "guardAttemptsByBlockId", /* @__PURE__ */ new Map());
|
|
38
37
|
}
|
|
39
38
|
getId() {
|
|
40
|
-
return
|
|
39
|
+
return w;
|
|
41
40
|
}
|
|
42
41
|
getIcon() {
|
|
43
42
|
return "unsubscribe-icon";
|
|
44
43
|
}
|
|
45
44
|
getBlockCompositionType() {
|
|
46
|
-
return
|
|
45
|
+
return R.BLOCK;
|
|
47
46
|
}
|
|
48
47
|
getName() {
|
|
49
48
|
return this.api.translate("Unsubscribe Block");
|
|
@@ -52,16 +51,16 @@ class se extends P {
|
|
|
52
51
|
return this.api.translate("Unsubscribe Block Description");
|
|
53
52
|
}
|
|
54
53
|
getTemplate() {
|
|
55
|
-
return
|
|
54
|
+
return D();
|
|
56
55
|
}
|
|
57
56
|
getContextActionsIds() {
|
|
58
|
-
return [
|
|
57
|
+
return [f.MOVE, f.REMOVE];
|
|
59
58
|
}
|
|
60
59
|
onSelect(e) {
|
|
61
|
-
if (this.currentNode = e,
|
|
60
|
+
if (this.currentNode = e, N().isPreviewModeOpen)
|
|
62
61
|
return;
|
|
63
62
|
const t = this._getOrAssignBlockId(e);
|
|
64
|
-
t && this.linkStateByBlockId.set(t, this._hasUnsubscribeLink(e)), this._setupSelectEventListener(), this._setupCancelEventListener(t), !("getAttribute" in e && e.getAttribute("data-migration")) && (this._resetStoreState(), t && (
|
|
63
|
+
t && this.linkStateByBlockId.set(t, this._hasUnsubscribeLink(e)), this._setupSelectEventListener(), this._setupCancelEventListener(t), !("getAttribute" in e && e.getAttribute("data-migration")) && (this._resetStoreState(), t && (a().pendingBlockId = t), this._loadBlockState(e), this._checkExistingBlocks(), this._openDrawer());
|
|
65
64
|
}
|
|
66
65
|
onCreated(e) {
|
|
67
66
|
this._ensureLeadingTextGuard(e);
|
|
@@ -69,7 +68,7 @@ class se extends P {
|
|
|
69
68
|
onDocumentInit() {
|
|
70
69
|
try {
|
|
71
70
|
const e = this.api.getDocumentRoot();
|
|
72
|
-
e && "querySelectorAll" in e && e.querySelectorAll(
|
|
71
|
+
e && "querySelectorAll" in e && e.querySelectorAll(B).forEach((t) => {
|
|
73
72
|
this._ensureLeadingTextGuard(t);
|
|
74
73
|
});
|
|
75
74
|
} catch {
|
|
@@ -80,11 +79,11 @@ class se extends P {
|
|
|
80
79
|
const t = this._getOrAssignBlockId(e);
|
|
81
80
|
if (!t)
|
|
82
81
|
return;
|
|
83
|
-
const
|
|
84
|
-
this.linkStateByBlockId.get(t) === !0 && !
|
|
82
|
+
const s = this._hasUnsubscribeLink(e);
|
|
83
|
+
this.linkStateByBlockId.get(t) === !0 && !s && this._warnLinkRemoved(), this.linkStateByBlockId.set(t, s);
|
|
85
84
|
}
|
|
86
85
|
onDelete(e) {
|
|
87
|
-
|
|
86
|
+
q(), this._removeBlockTemplatesFromStore(e), this._resetStoreState();
|
|
88
87
|
const t = this._readBlockId(e);
|
|
89
88
|
t && (this.linkStateByBlockId.delete(t), this.guardAttemptsByBlockId.delete(t));
|
|
90
89
|
}
|
|
@@ -96,38 +95,38 @@ class se extends P {
|
|
|
96
95
|
_ensureLeadingTextGuard(e) {
|
|
97
96
|
if (!("querySelector" in e))
|
|
98
97
|
return;
|
|
99
|
-
const t = e.querySelector(
|
|
98
|
+
const t = e.querySelector(E);
|
|
100
99
|
if (!t)
|
|
101
100
|
return;
|
|
102
|
-
let
|
|
101
|
+
let s = t, r = s.parent();
|
|
103
102
|
for (; r && "getTagName" in r && r.getTagName().toLowerCase() !== "p"; )
|
|
104
|
-
|
|
103
|
+
s = r, r = r.parent();
|
|
105
104
|
if (!r || !("getTagName" in r) || r.getTagName().toLowerCase() !== "p")
|
|
106
105
|
return;
|
|
107
|
-
const
|
|
108
|
-
if (!!(
|
|
109
|
-
const
|
|
110
|
-
|
|
106
|
+
const i = s.previousSibling();
|
|
107
|
+
if (!!(i && i.getType() === "text" && i.getTextContent())) {
|
|
108
|
+
const b = this._readBlockId(e);
|
|
109
|
+
b && this.guardAttemptsByBlockId.delete(b);
|
|
111
110
|
return;
|
|
112
111
|
}
|
|
113
|
-
const
|
|
114
|
-
if (!
|
|
112
|
+
const k = this._getOrAssignBlockId(e);
|
|
113
|
+
if (!k)
|
|
115
114
|
return;
|
|
116
|
-
const
|
|
117
|
-
if (!(
|
|
118
|
-
this.guardAttemptsByBlockId.set(
|
|
115
|
+
const _ = this.guardAttemptsByBlockId.get(k) ?? 0;
|
|
116
|
+
if (!(_ >= O)) {
|
|
117
|
+
this.guardAttemptsByBlockId.set(k, _ + 1);
|
|
119
118
|
try {
|
|
120
|
-
this.api.getDocumentModifier().modifyHtml(r).prepend(" ").apply(new
|
|
121
|
-
} catch (
|
|
122
|
-
console.warn("[UnsubscribeBlock] Failed to ensure link text guard:",
|
|
119
|
+
this.api.getDocumentModifier().modifyHtml(r).prepend(" ").apply(new u("Ensure unsubscribe link text guard"));
|
|
120
|
+
} catch (b) {
|
|
121
|
+
console.warn("[UnsubscribeBlock] Failed to ensure link text guard:", b);
|
|
123
122
|
}
|
|
124
123
|
}
|
|
125
124
|
}
|
|
126
125
|
_hasUnsubscribeLink(e) {
|
|
127
|
-
return "querySelector" in e ? !!e.querySelector(
|
|
126
|
+
return "querySelector" in e ? !!e.querySelector(E) : !1;
|
|
128
127
|
}
|
|
129
128
|
_readBlockId(e) {
|
|
130
|
-
return "getAttribute" in e ? e.getAttribute(
|
|
129
|
+
return "getAttribute" in e ? e.getAttribute(n.BLOCK_ID) : null;
|
|
131
130
|
}
|
|
132
131
|
/**
|
|
133
132
|
* Returns the block's stable id, assigning one via the document modifier if
|
|
@@ -141,13 +140,13 @@ class se extends P {
|
|
|
141
140
|
return t;
|
|
142
141
|
if (!("getAttribute" in e))
|
|
143
142
|
return null;
|
|
144
|
-
const
|
|
143
|
+
const s = this._generateNextBlockId();
|
|
145
144
|
try {
|
|
146
|
-
this.api.getDocumentModifier().modifyHtml(e).setAttribute(
|
|
145
|
+
this.api.getDocumentModifier().modifyHtml(e).setAttribute(n.BLOCK_ID, s).apply(new u(`Assign unsubscribe block id ${s}`));
|
|
147
146
|
} catch (r) {
|
|
148
147
|
return console.warn("[UnsubscribeBlock] Failed to assign block id:", r), null;
|
|
149
148
|
}
|
|
150
|
-
return
|
|
149
|
+
return s;
|
|
151
150
|
}
|
|
152
151
|
/**
|
|
153
152
|
* Generates a unique id by scanning the document for the highest existing
|
|
@@ -158,10 +157,10 @@ class se extends P {
|
|
|
158
157
|
let e = 0;
|
|
159
158
|
try {
|
|
160
159
|
const t = this.api.getDocumentRoot();
|
|
161
|
-
t && "querySelectorAll" in t && t.querySelectorAll(
|
|
160
|
+
t && "querySelectorAll" in t && t.querySelectorAll(B).forEach((r) => {
|
|
162
161
|
if ("getAttribute" in r) {
|
|
163
|
-
const
|
|
164
|
-
|
|
162
|
+
const i = r.getAttribute(n.BLOCK_ID), l = i ? parseInt(i) : 0;
|
|
163
|
+
l > e && (e = l);
|
|
165
164
|
}
|
|
166
165
|
});
|
|
167
166
|
} catch {
|
|
@@ -170,14 +169,14 @@ class se extends P {
|
|
|
170
169
|
}
|
|
171
170
|
_warnLinkRemoved() {
|
|
172
171
|
try {
|
|
173
|
-
const { showToaster: e } =
|
|
172
|
+
const { showToaster: e } = L();
|
|
174
173
|
e({
|
|
175
|
-
type:
|
|
176
|
-
message: this.api.translate(
|
|
174
|
+
type: C.Warning,
|
|
175
|
+
message: this.api.translate(G),
|
|
177
176
|
actionButton: {
|
|
178
177
|
text: this.api.translate("Visit Academy"),
|
|
179
178
|
onClick: () => {
|
|
180
|
-
window.open(
|
|
179
|
+
window.open(x, "_blank", "noopener,noreferrer");
|
|
181
180
|
}
|
|
182
181
|
}
|
|
183
182
|
});
|
|
@@ -186,62 +185,55 @@ class se extends P {
|
|
|
186
185
|
}
|
|
187
186
|
}
|
|
188
187
|
_setupSelectEventListener() {
|
|
189
|
-
|
|
190
|
-
const t = e, { collectionType:
|
|
191
|
-
this._updateBlock(
|
|
192
|
-
}, document.addEventListener(
|
|
188
|
+
A(), d = (e) => {
|
|
189
|
+
const t = e, { collectionType: s, selectedPages: r } = t.detail;
|
|
190
|
+
this._updateBlock(s, r.join(","));
|
|
191
|
+
}, document.addEventListener(h.SELECT, d);
|
|
193
192
|
}
|
|
194
193
|
_setupCancelEventListener(e) {
|
|
195
|
-
|
|
196
|
-
const { detail:
|
|
197
|
-
((
|
|
198
|
-
}, document.addEventListener(
|
|
194
|
+
T(), p = (t) => {
|
|
195
|
+
const { detail: s } = t;
|
|
196
|
+
((s == null ? void 0 : s.blockId) ?? null) === e && this._handleCancel();
|
|
197
|
+
}, document.addEventListener(h.CANCEL, p);
|
|
199
198
|
}
|
|
200
199
|
_handleCancel() {
|
|
201
200
|
try {
|
|
202
201
|
if (!this.currentNode)
|
|
203
202
|
return;
|
|
204
|
-
this.api.getDocumentModifier().modifyHtml(this.currentNode).replaceWith(`<${
|
|
203
|
+
this.api.getDocumentModifier().modifyHtml(this.currentNode).replaceWith(`<${v.EMPTY_CONTAINER}/>`).apply(new u("Removed unsubscribe block due to cancel"));
|
|
205
204
|
} catch (e) {
|
|
206
205
|
console.warn("[UnsubscribeBlock] Failed to remove unsubscribe block:", e);
|
|
207
206
|
}
|
|
208
207
|
}
|
|
209
208
|
_updateBlock(e, t) {
|
|
210
|
-
var a;
|
|
211
209
|
if (!this.currentNode || !("querySelector" in this.currentNode))
|
|
212
210
|
return;
|
|
213
|
-
const
|
|
214
|
-
if (!
|
|
211
|
+
const s = this.currentNode.querySelector(E);
|
|
212
|
+
if (!s)
|
|
215
213
|
return;
|
|
216
|
-
const r = this._getMergeTag(e)
|
|
217
|
-
|
|
218
|
-
var T;
|
|
219
|
-
if (!("getAttribute" in m) || m.getAttribute("data-unsubscribe-link") === "true")
|
|
220
|
-
return;
|
|
221
|
-
const S = m.getAttribute("href") ?? "", A = (T = S.match(I)) == null ? void 0 : T[0];
|
|
222
|
-
A && p.includes(A) && s.modifyHtml(m).setAttribute("href", q(S, r));
|
|
223
|
-
}), s.modifyHtml(this.currentNode).setAttribute(o.PAGE_TYPE, e.toString()).setAttribute(o.PAGE_LIST, t), s.apply(new k(`Updated unsubscribe link to ${r}`));
|
|
214
|
+
const r = this._getMergeTag(e);
|
|
215
|
+
this.api.getDocumentModifier().modifyHtml(s).setAttribute("href", r).apply(new u(`Updated unsubscribe link to ${r}`)), this.api.getDocumentModifier().modifyHtml(this.currentNode).setAttribute(n.PAGE_TYPE, e.toString()).setAttribute(n.PAGE_LIST, t).apply(new u("Updated unsubscribe block metadata"));
|
|
224
216
|
}
|
|
225
217
|
_getMergeTag(e) {
|
|
226
|
-
return
|
|
218
|
+
return M[e] ?? P;
|
|
227
219
|
}
|
|
228
220
|
_openDrawer() {
|
|
229
221
|
if (!(this.currentNode && this.currentNode.getAttribute("data-unsubscribe-page-type")))
|
|
230
222
|
try {
|
|
231
|
-
const e =
|
|
223
|
+
const e = a();
|
|
232
224
|
e.typeSelectionDrawerStatus = !0;
|
|
233
225
|
} catch (e) {
|
|
234
226
|
console.error("[UnsubscribeBlock] Failed to open drawer:", e);
|
|
235
227
|
}
|
|
236
228
|
}
|
|
237
229
|
_checkExistingBlocks() {
|
|
238
|
-
const e =
|
|
239
|
-
e.isGlobalUnsubscribeDisabled = !1, e.isSubscriptionPreferencesCenterDisabled = !1, this.api.getDocumentRoot().querySelectorAll(
|
|
240
|
-
if ("getAttribute" in
|
|
241
|
-
const r =
|
|
230
|
+
const e = a();
|
|
231
|
+
e.isGlobalUnsubscribeDisabled = !1, e.isSubscriptionPreferencesCenterDisabled = !1, this.api.getDocumentRoot().querySelectorAll(B).forEach((s) => {
|
|
232
|
+
if ("getAttribute" in s) {
|
|
233
|
+
const r = s.getAttribute(n.PAGE_TYPE);
|
|
242
234
|
if (r) {
|
|
243
|
-
const
|
|
244
|
-
|
|
235
|
+
const i = Number(r);
|
|
236
|
+
i === m.GLOBAL_UNSUBSCRIBE ? e.isGlobalUnsubscribeDisabled = !0 : i === m.SUBSCRIPTION_PREFERENCE_CENTER && (e.isSubscriptionPreferencesCenterDisabled = !0);
|
|
245
237
|
}
|
|
246
238
|
}
|
|
247
239
|
});
|
|
@@ -249,27 +241,27 @@ class se extends P {
|
|
|
249
241
|
async _loadBlockState(e) {
|
|
250
242
|
if (!("getAttribute" in e))
|
|
251
243
|
return;
|
|
252
|
-
const t = e.getAttribute(
|
|
253
|
-
if (!t || !
|
|
244
|
+
const t = e.getAttribute(n.PAGE_TYPE), s = e.getAttribute(n.PAGE_LIST);
|
|
245
|
+
if (!t || !s)
|
|
254
246
|
return;
|
|
255
|
-
const r =
|
|
256
|
-
await r.fetchTemplates(), r.setCollectionWithoutAutoSelection(
|
|
247
|
+
const r = a(), i = Number(t), l = S(s);
|
|
248
|
+
await r.fetchTemplates(), r.setCollectionWithoutAutoSelection(i), r.loadSelectedTemplates(l);
|
|
257
249
|
}
|
|
258
250
|
_resetStoreState() {
|
|
259
|
-
|
|
251
|
+
a().$reset();
|
|
260
252
|
}
|
|
261
253
|
_removeBlockTemplatesFromStore(e) {
|
|
262
254
|
if (!("getAttribute" in e))
|
|
263
255
|
return;
|
|
264
|
-
const t = e.getAttribute(
|
|
256
|
+
const t = e.getAttribute(n.PAGE_LIST);
|
|
265
257
|
if (!t)
|
|
266
258
|
return;
|
|
267
|
-
const
|
|
268
|
-
|
|
259
|
+
const s = a(), r = S(t);
|
|
260
|
+
s.removeUnsubscribePages(r);
|
|
269
261
|
}
|
|
270
262
|
}
|
|
271
263
|
export {
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
264
|
+
w as UNSUBSCRIBE_BLOCK_ID,
|
|
265
|
+
J as UnsubscribeBlock,
|
|
266
|
+
q as disposeUnsubscribeListeners
|
|
275
267
|
};
|
|
@@ -5,11 +5,10 @@ const s = {
|
|
|
5
5
|
PAGE_TYPE: "data-unsubscribe-page-type",
|
|
6
6
|
PAGE_LIST: "data-unsubscribe-page-list",
|
|
7
7
|
BLOCK_ID: "data-unsubscribe-block-id"
|
|
8
|
-
},
|
|
8
|
+
}, c = ".unsubscribe-block-v2", u = 'a[data-unsubscribe-link="true"], a.unsubscribe-link';
|
|
9
9
|
export {
|
|
10
10
|
b as DATA_ATTRIBUTES,
|
|
11
|
-
|
|
11
|
+
c as UNSUBSCRIBE_BLOCK_SELECTOR,
|
|
12
12
|
s as UNSUBSCRIBE_EVENTS,
|
|
13
|
-
|
|
14
|
-
E as UNSUBSCRIBE_MERGE_TAG_REGEX
|
|
13
|
+
u as UNSUBSCRIBE_LINK_SELECTOR
|
|
15
14
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
var u = Object.defineProperty;
|
|
2
|
-
var c = (l,
|
|
3
|
-
var i = (l,
|
|
4
|
-
import {
|
|
5
|
-
|
|
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 {
|
|
6
7
|
constructor() {
|
|
7
8
|
super(...arguments);
|
|
8
9
|
i(this, "currentNode");
|
|
@@ -11,8 +12,7 @@ class _ extends I {
|
|
|
11
12
|
i(this, "isAwaitingPanelNode", !1);
|
|
12
13
|
}
|
|
13
14
|
getContainer() {
|
|
14
|
-
|
|
15
|
-
return (e = document.querySelector("ui-editor")) == null ? void 0 : e.shadowRoot;
|
|
15
|
+
return I();
|
|
16
16
|
}
|
|
17
17
|
onTemplateNodeUpdated(e) {
|
|
18
18
|
this.currentNode = e;
|
|
@@ -98,13 +98,13 @@ class _ extends I {
|
|
|
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}"]`),
|
|
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) ?? "";
|
|
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
|
-
${
|
|
107
|
+
${s}
|
|
108
108
|
<div class="service-element alert-message-text">
|
|
109
109
|
${t}
|
|
110
110
|
</div>
|
|
@@ -133,15 +133,15 @@ class _ extends I {
|
|
|
133
133
|
placeholder: t,
|
|
134
134
|
options: o,
|
|
135
135
|
className: a = "es-180w",
|
|
136
|
-
searchable:
|
|
136
|
+
searchable: E = !1
|
|
137
137
|
}) {
|
|
138
138
|
return `
|
|
139
139
|
<${n.SELECTPICKER}
|
|
140
140
|
class="${a}"
|
|
141
141
|
${$.SELECTPICKER.name}="${e}"
|
|
142
|
-
${
|
|
142
|
+
${E ? `${$.SELECTPICKER.searchable}="true"` : ""}
|
|
143
143
|
${$.SELECTPICKER.placeholder}="${t}">
|
|
144
|
-
${o.map((
|
|
144
|
+
${o.map((s) => this._GuSelectItem(s)).join("")}
|
|
145
145
|
</${n.SELECTPICKER}>
|
|
146
146
|
`;
|
|
147
147
|
}
|
|
@@ -183,14 +183,14 @@ class _ extends I {
|
|
|
183
183
|
</${n.RADIO_BUTTONS}>
|
|
184
184
|
`;
|
|
185
185
|
}
|
|
186
|
-
_GuButton({ name: e, label: t, id: o = "", className: a = "", icon:
|
|
186
|
+
_GuButton({ name: e, label: t, id: o = "", className: a = "", icon: E = "", disabled: s = !1 }) {
|
|
187
187
|
return `
|
|
188
188
|
<${n.BUTTON}
|
|
189
189
|
${$.BUTTON.name}="${e}"
|
|
190
190
|
${o ? `id="${o}"` : ""}
|
|
191
191
|
${a ? `class="${a}"` : ""}
|
|
192
|
-
${
|
|
193
|
-
${
|
|
192
|
+
${E ? `${$.BUTTON.icon}="${E}"` : ""}
|
|
193
|
+
${s ? `${$.BUTTON.disabled}="true"` : ""}
|
|
194
194
|
${$.BUTTON.caption}="${t}">
|
|
195
195
|
</${n.BUTTON}>
|
|
196
196
|
`;
|
|
@@ -240,11 +240,11 @@ class _ extends I {
|
|
|
240
240
|
*/
|
|
241
241
|
_GuOrderable(e, t) {
|
|
242
242
|
let o = "";
|
|
243
|
-
t.forEach((
|
|
244
|
-
const
|
|
243
|
+
t.forEach((E) => {
|
|
244
|
+
const s = $.ORDERABLE_ITEM && "name" in $.ORDERABLE_ITEM ? $.ORDERABLE_ITEM.name : "name";
|
|
245
245
|
o += `
|
|
246
|
-
<${n.ORDERABLE_ITEM} ${
|
|
247
|
-
${
|
|
246
|
+
<${n.ORDERABLE_ITEM} ${s}="${E.key}">
|
|
247
|
+
${E.content}
|
|
248
248
|
</${n.ORDERABLE_ITEM}>
|
|
249
249
|
`;
|
|
250
250
|
});
|
|
@@ -315,5 +315,5 @@ class _ extends I {
|
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
export {
|
|
318
|
-
|
|
318
|
+
R as CommonControl
|
|
319
319
|
};
|
|
@@ -2,16 +2,17 @@ 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 {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
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";
|
|
8
9
|
const l = "external-dynamic-content-ui-element", L = "button-add-dynamic-content";
|
|
9
|
-
class
|
|
10
|
+
class B extends C {
|
|
10
11
|
registerUiElements(s) {
|
|
11
12
|
s[a.MERGETAGS] = l;
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
|
-
class
|
|
15
|
+
class x extends T {
|
|
15
16
|
constructor() {
|
|
16
17
|
super(...arguments);
|
|
17
18
|
r(this, "mergeTagsButton", null);
|
|
@@ -44,7 +45,7 @@ class f extends h {
|
|
|
44
45
|
onAttributeUpdated(t, e) {
|
|
45
46
|
if (t !== "mergeTag" || !(e != null && e.value))
|
|
46
47
|
return;
|
|
47
|
-
const n =
|
|
48
|
+
const n = u(e), i = this._getLastClickedPosition();
|
|
48
49
|
this.lastClickedElement = null, this.lastClickedFrame = null, this._openDynamicContentLibrary(n, i);
|
|
49
50
|
}
|
|
50
51
|
openMergeTagLibrary() {
|
|
@@ -56,12 +57,12 @@ class f extends h {
|
|
|
56
57
|
* Dispatches event with dynamic content data and position
|
|
57
58
|
*/
|
|
58
59
|
_openDynamicContentLibrary(t, e) {
|
|
59
|
-
this.mergeTagsLibrary || (this.mergeTagsLibrary = new
|
|
60
|
+
this.mergeTagsLibrary || (this.mergeTagsLibrary = new E()), this.mergeTagsLibrary.openMergeTagsLibrary(
|
|
60
61
|
t,
|
|
61
62
|
(n) => {
|
|
62
63
|
if (n.text && n.value) {
|
|
63
64
|
const { isFeatureEnabled: i } = d();
|
|
64
|
-
this.api.triggerValueChange(
|
|
65
|
+
this.api.triggerValueChange(h([n], i("liquidSyntax"))[0]);
|
|
65
66
|
} else
|
|
66
67
|
this.api.triggerValueChange(null);
|
|
67
68
|
},
|
|
@@ -94,12 +95,9 @@ class f extends h {
|
|
|
94
95
|
* Gets the editor iframe element
|
|
95
96
|
*/
|
|
96
97
|
_getEditorFrame() {
|
|
97
|
-
var n;
|
|
98
|
-
const t =
|
|
99
|
-
|
|
100
|
-
return null;
|
|
101
|
-
const e = t.shadowRoot.querySelector("iframe");
|
|
102
|
-
return (n = e == null ? void 0 : e.contentWindow) != null && n.document ? e : null;
|
|
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;
|
|
103
101
|
}
|
|
104
102
|
/**
|
|
105
103
|
* Finds merge tag element in the element tree
|
|
@@ -147,7 +145,7 @@ class f extends h {
|
|
|
147
145
|
<${a.BUTTON}
|
|
148
146
|
id="guido__btn-add-dynamic-content"
|
|
149
147
|
class="btn btn-primary"
|
|
150
|
-
${
|
|
148
|
+
${y.BUTTON.name}="${L}">
|
|
151
149
|
<${a.ICON} src="plus" class="icon icon-button color-primary">
|
|
152
150
|
</${a.ICON}>
|
|
153
151
|
${this.api.translate("Add Dynamic Content")}
|
|
@@ -156,6 +154,6 @@ class f extends h {
|
|
|
156
154
|
}
|
|
157
155
|
}
|
|
158
156
|
export {
|
|
159
|
-
|
|
160
|
-
|
|
157
|
+
B as DynamicContentTagRegistry,
|
|
158
|
+
x as DynamicContentUiElementExtension
|
|
161
159
|
};
|
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-
|
|
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-aa586bbf] .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}
|
package/dist/package.json.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const o = "3.26.0-beta.
|
|
1
|
+
const o = "3.26.0-beta.e7ade20", e = { stripo: { version: "2.83.1" } }, s = {
|
|
2
2
|
version: o,
|
|
3
|
-
guido:
|
|
3
|
+
guido: e
|
|
4
4
|
};
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
s as default,
|
|
7
|
+
e as guido,
|
|
8
8
|
o as version
|
|
9
9
|
};
|
|
@@ -9,5 +9,4 @@ export declare const DATA_ATTRIBUTES: {
|
|
|
9
9
|
readonly BLOCK_ID: "data-unsubscribe-block-id";
|
|
10
10
|
};
|
|
11
11
|
export declare const UNSUBSCRIBE_BLOCK_SELECTOR = ".unsubscribe-block-v2";
|
|
12
|
-
export declare const UNSUBSCRIBE_MERGE_TAG_REGEX: RegExp;
|
|
13
12
|
export declare const UNSUBSCRIBE_LINK_SELECTOR = "a[data-unsubscribe-link=\"true\"], a.unsubscribe-link";
|
|
@@ -3120,6 +3120,7 @@ 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;
|
|
3123
3124
|
close(type: OnboardingType): Promise<void>;
|
|
3124
3125
|
next(type: OnboardingType): void;
|
|
3125
3126
|
previous(type: OnboardingType): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const findEditorShadowRoot: () => ShadowRoot | null;
|