@useinsider/guido 3.23.0-beta.1fabb2e → 3.23.0-beta.20253bd
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/README.md +0 -9
- package/dist/@types/config/schemas.js +16 -18
- package/dist/components/Guido.vue.js +4 -4
- package/dist/components/Guido.vue2.js +84 -88
- package/dist/composables/useModuleRepair.js +23 -32
- package/dist/config/migrator/index.js +9 -10
- package/dist/enums/academy.js +1 -2
- package/dist/guido.css +1 -1
- package/dist/package.json.js +2 -2
- package/dist/src/@types/config/schemas.d.ts +0 -4
- package/dist/src/composables/useConfig.d.ts +0 -2
- package/dist/src/composables/useModuleRepair.d.ts +11 -2
- package/dist/src/enums/academy.d.ts +0 -1
- package/dist/src/stores/config.d.ts +0 -20
- package/dist/src/stores/editor.d.ts +0 -27
- package/dist/stores/editor.js +0 -1
- package/package.json +1 -1
- package/dist/components/organisms/unsubscribe/LegacyUnsubscribeConvertedModal.vue.js +0 -17
- package/dist/components/organisms/unsubscribe/LegacyUnsubscribeConvertedModal.vue2.js +0 -30
- package/dist/config/migrator/legacyUnsubscribeTextMigrator.js +0 -16
- package/dist/src/components/organisms/unsubscribe/LegacyUnsubscribeConvertedModal.vue.d.ts +0 -2
- package/dist/src/config/migrator/legacyUnsubscribeTextMigrator.d.ts +0 -1
- package/dist/src/utils/legacyUnsubscribeConversion.d.ts +0 -10
- package/dist/utils/legacyUnsubscribeConversion.js +0 -49
package/README.md
CHANGED
|
@@ -166,7 +166,6 @@ const config: GuidoConfigInput = {
|
|
|
166
166
|
allowlistEnabled?: boolean, // Default: false - Pre-save domain-allowlist check (opt-in). Guido self-serves the block toaster (role lookup, deep-link, copy from window.trans).
|
|
167
167
|
allowSaveWithErrors?: boolean, // Default: true - Allow the validation drawer's "Save and Continue" soft-save. Set false to hard-block invalid saves (transactional + unsubscribe pages).
|
|
168
168
|
reusableRecommendationStrategy?: boolean, // Default: false - Assign an RRS strategy to recommendation blocks instead of per-block algorithm/filters/shuffle/product-count settings.
|
|
169
|
-
legacyUnsubscribeConversion?: boolean, // Default: false - Convert legacy unsubscribe blocks that have no unsubscribe link into text blocks (on load and on module drop/copy) and show a warning modal.
|
|
170
169
|
accessibilityTesting?: boolean, // Default: false - Show the Accessibility Test entry in the header kebab menu (Stripo's checker: contrast, image alternatives, colour-vision simulation) and the tab-bar onboarding tour that points at it.
|
|
171
170
|
},
|
|
172
171
|
|
|
@@ -700,14 +699,6 @@ multiple partners (e.g. architect) should key by partner and place the active pa
|
|
|
700
699
|
first. Omit the prop and the repair is a safe no-op — nothing is rewritten and no
|
|
701
700
|
toaster fires (useful before the host has wired the catalog).
|
|
702
701
|
|
|
703
|
-
With `features.legacyUnsubscribeConversion: true`, a dropped or copied module's legacy
|
|
704
|
-
unsubscribe block that has no unsubscribe link (the old editor reused it as plain text,
|
|
705
|
-
e.g. a company address) becomes a plain text block that keeps its content, and a warning
|
|
706
|
-
modal explains it. The same conversion runs when a template is opened. Register these
|
|
707
|
-
keys host-side: `email-editor.legacy-unsubscribe-converted-modal-title`,
|
|
708
|
-
`email-editor.legacy-unsubscribe-converted-modal-message` and
|
|
709
|
-
`email-editor.legacy-unsubscribe-converted-modal-visit-academy` (OK reuses `action-builder.ok`).
|
|
710
|
-
|
|
711
702
|
---
|
|
712
703
|
|
|
713
704
|
## Development
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ModuleFolderDefaults as
|
|
2
|
-
import { object as a, number as s, optional as e, string as t, picklist as m, pipe as i, minLength as b, custom as k, boolean as o, array as c, transform as
|
|
1
|
+
import { ModuleFolderDefaults as S } from "../../enums/defaults.js";
|
|
2
|
+
import { object as a, number as s, optional as e, string as t, picklist as m, pipe as i, minLength as b, custom as k, boolean as o, array as c, transform as y, unknown as r, record as g, fallback as R, literal as u, looseObject as C, variant as T, union as h, lazy as I } from "../../node_modules/valibot/dist/index.js";
|
|
3
3
|
const p = {
|
|
4
4
|
/** Promotional/marketing emails */
|
|
5
5
|
PROMOTIONAL: 1,
|
|
@@ -84,10 +84,10 @@ const p = {
|
|
|
84
84
|
children: e(c(f)),
|
|
85
85
|
// eslint-disable-next-line camelcase -- backend field name
|
|
86
86
|
select_items: e(c(f))
|
|
87
|
-
})),
|
|
87
|
+
})), N = g(
|
|
88
88
|
t(),
|
|
89
89
|
R(c(f), [])
|
|
90
|
-
),
|
|
90
|
+
), P = C({
|
|
91
91
|
/** Block ID (matches the dictionary key and the legacy HTML element id) */
|
|
92
92
|
id: e(s()),
|
|
93
93
|
/** Decimal places for price display (legacy data may use string or number) */
|
|
@@ -132,7 +132,7 @@ const p = {
|
|
|
132
132
|
isPriceMovedToNextLine: e(o()),
|
|
133
133
|
/** Legacy "Hide if same as discounted" / delete-price-for-zero-sale toggle */
|
|
134
134
|
isPriceDeletedForZeroSale: e(o())
|
|
135
|
-
}),
|
|
135
|
+
}), v = a({
|
|
136
136
|
/**
|
|
137
137
|
* Legacy recommendation block configs keyed by block ID.
|
|
138
138
|
* Pass this when loading a template authored with the v1
|
|
@@ -140,7 +140,7 @@ const p = {
|
|
|
140
140
|
* strategy, currency, locale, and layout data.
|
|
141
141
|
*/
|
|
142
142
|
recommendationConfigs: e(
|
|
143
|
-
g(t(),
|
|
143
|
+
g(t(), P),
|
|
144
144
|
{}
|
|
145
145
|
)
|
|
146
146
|
}), x = a({
|
|
@@ -159,7 +159,7 @@ const p = {
|
|
|
159
159
|
* (first) partner's leaf attributes into the label→token map that repairs
|
|
160
160
|
* label-form placeholders (`{{ Phone Number }}`) in dropped saved modules.
|
|
161
161
|
*/
|
|
162
|
-
dynamicContentList: e(
|
|
162
|
+
dynamicContentList: e(N, {}),
|
|
163
163
|
/** Valid custom field attribute names from the partner's categorized fields */
|
|
164
164
|
customFieldAttributes: e(c(t()), []),
|
|
165
165
|
/** Selected unsubscribe page IDs */
|
|
@@ -176,7 +176,7 @@ const p = {
|
|
|
176
176
|
trackIdCounter: e(
|
|
177
177
|
i(
|
|
178
178
|
s(),
|
|
179
|
-
|
|
179
|
+
y((n) => Number.isFinite(n) ? Math.max(0, Math.floor(n)) : 0)
|
|
180
180
|
),
|
|
181
181
|
0
|
|
182
182
|
),
|
|
@@ -190,11 +190,11 @@ const p = {
|
|
|
190
190
|
recommendationCampaignUrls: e(
|
|
191
191
|
i(
|
|
192
192
|
r(),
|
|
193
|
-
|
|
193
|
+
y((n) => n && typeof n == "object" ? { ...n } : void 0)
|
|
194
194
|
)
|
|
195
195
|
),
|
|
196
196
|
/** Migration-only inputs (legacy block configs) */
|
|
197
|
-
migration: e(
|
|
197
|
+
migration: e(v, {})
|
|
198
198
|
}), D = a({
|
|
199
199
|
/** Sender display name */
|
|
200
200
|
senderName: e(t(), ""),
|
|
@@ -210,9 +210,9 @@ const p = {
|
|
|
210
210
|
/** Email header settings */
|
|
211
211
|
emailHeader: e(D, { senderName: "", subject: "" }),
|
|
212
212
|
/** Folder name for user-saved modules (used by Stripo plugin panel for path construction) */
|
|
213
|
-
savedModulesFolderName: e(t(),
|
|
213
|
+
savedModulesFolderName: e(t(), S.SAVED_MODULES),
|
|
214
214
|
/** Folder name for default/prebuilt modules (used by Stripo plugin panel for path construction) */
|
|
215
|
-
defaultModulesFolderName: e(t(),
|
|
215
|
+
defaultModulesFolderName: e(t(), S.DEFAULT_MODULES)
|
|
216
216
|
}), F = a({
|
|
217
217
|
/** Whether to show the header bar */
|
|
218
218
|
showHeader: e(o(), !0),
|
|
@@ -244,9 +244,7 @@ const p = {
|
|
|
244
244
|
linkTrackingIds: e(o(), !1),
|
|
245
245
|
/** Allow persisting a template that still has validation errors (drawer "Save and Continue" soft-save). Host sets false for transactional + unsubscribe. */
|
|
246
246
|
allowSaveWithErrors: e(o(), !0),
|
|
247
|
-
reusableRecommendationStrategy: e(o(), !1)
|
|
248
|
-
/** Convert linkless legacy unsubscribe blocks into text blocks and warn with a modal (opt-in) */
|
|
249
|
-
legacyUnsubscribeConversion: e(o(), !1)
|
|
247
|
+
reusableRecommendationStrategy: e(o(), !1)
|
|
250
248
|
}), w = m([
|
|
251
249
|
"amp-accordion",
|
|
252
250
|
"amp-carousel",
|
|
@@ -369,7 +367,7 @@ export {
|
|
|
369
367
|
B as CustomBlockTypeSchema,
|
|
370
368
|
G as CustomRuleSchema,
|
|
371
369
|
w as DefaultBlockTypeSchema,
|
|
372
|
-
|
|
370
|
+
N as DynamicContentListSchema,
|
|
373
371
|
f as DynamicContentNodeSchema,
|
|
374
372
|
M as DynamicContentSchema,
|
|
375
373
|
O as EditorSchema,
|
|
@@ -378,14 +376,14 @@ export {
|
|
|
378
376
|
U as FeaturesSchema,
|
|
379
377
|
K as GuidoConfigSchema,
|
|
380
378
|
A as IdentitySchema,
|
|
381
|
-
|
|
379
|
+
P as LegacyRecommendationConfigSchema,
|
|
382
380
|
p as MessageType,
|
|
383
381
|
E as PartnerSchema,
|
|
384
382
|
l as ProductType,
|
|
385
383
|
_ as RegexRuleSchema,
|
|
386
384
|
q as RemoveRuleSchema,
|
|
387
385
|
H as ReplaceRuleSchema,
|
|
388
|
-
|
|
386
|
+
v as TemplateMigrationSchema,
|
|
389
387
|
x as TemplateSchema,
|
|
390
388
|
F as UISchema
|
|
391
389
|
};
|
|
@@ -3,7 +3,7 @@ import o from "./Guido.vue2.js";
|
|
|
3
3
|
import i from "../_virtual/_plugin-vue2_normalizer.js";
|
|
4
4
|
var t = function() {
|
|
5
5
|
var a = this, r = a._self._c, e = a._self._setupProxy;
|
|
6
|
-
return r("div", { ref: "wrapperRef", staticClass: "guido-editor__wrapper", class: { "guido-editor__no-header": e.noHeader } }, [r(e.HeaderWrapper), r(e.AutoSaveController, { ref: "autoSaveControllerRef" }), e.editorStore.isPreviewModeOpen ? r(e.PreviewContainer) : a._e(), r("div", { directives: [{ name: "show", rawName: "v-show", value: !e.previewStore.isLoaded, expression: "!previewStore.isLoaded" }], staticClass: "guido-editor__container", class: { "guido-editor__no-header": e.noHeader }, attrs: { id: "guido-editor" } }), r(e.Toaster), r(e.AuthErrorModal), r(e.FilterSelectionDrawer), e.isRrsEnabled || e.hasAssignedStrategy ? r(e.AssignStrategyDrawer) : a._e(), e.isRrsEnabled || e.hasAssignedStrategy ? r(e.RemoveStrategyModal) : a._e(), e.isRrsEnabled ? r(e.LegacyStrategyUpdatedModal) : a._e(),
|
|
6
|
+
return r("div", { ref: "wrapperRef", staticClass: "guido-editor__wrapper", class: { "guido-editor__no-header": e.noHeader } }, [r(e.HeaderWrapper), r(e.AutoSaveController, { ref: "autoSaveControllerRef" }), e.editorStore.isPreviewModeOpen ? r(e.PreviewContainer) : a._e(), r("div", { directives: [{ name: "show", rawName: "v-show", value: !e.previewStore.isLoaded, expression: "!previewStore.isLoaded" }], staticClass: "guido-editor__container", class: { "guido-editor__no-header": e.noHeader }, attrs: { id: "guido-editor" } }), r(e.Toaster), r(e.AuthErrorModal), r(e.FilterSelectionDrawer), e.isRrsEnabled || e.hasAssignedStrategy ? r(e.AssignStrategyDrawer) : a._e(), e.isRrsEnabled || e.hasAssignedStrategy ? r(e.RemoveStrategyModal) : a._e(), e.isRrsEnabled ? r(e.LegacyStrategyUpdatedModal) : a._e(), r(e.SaveAsTemplateDrawer), e.isSaveValidationEnabled ? r(e.ValidationErrorDrawer) : a._e(), e.isTestPartner() ? a._e() : r(e.OnboardingWrapper, { on: { "onboarding-finished": function(_) {
|
|
7
7
|
return e.emit("onboarding:finished");
|
|
8
8
|
} } }), r(e.UnsubscribeWrapper), r(e.LoadingWrapper)], 1);
|
|
9
9
|
}, s = [], n = /* @__PURE__ */ i(
|
|
@@ -12,9 +12,9 @@ var t = function() {
|
|
|
12
12
|
s,
|
|
13
13
|
!1,
|
|
14
14
|
null,
|
|
15
|
-
"
|
|
15
|
+
"8422eef8"
|
|
16
16
|
);
|
|
17
|
-
const
|
|
17
|
+
const c = n.exports;
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
c as default
|
|
20
20
|
};
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useCortexBlueprintBridge as
|
|
3
|
-
import { useEditorLock as
|
|
4
|
-
import { startEditorOpenMetrics as
|
|
5
|
-
import { provideGuidoActions as
|
|
6
|
-
import { useGuidoStateBridge as
|
|
7
|
-
import { usePartner as
|
|
8
|
-
import { useSaveValidationRollout as
|
|
9
|
-
import { useStripo as
|
|
10
|
-
import { useTimerClone as
|
|
11
|
-
import { useToaster as
|
|
12
|
-
import { useTranslations as
|
|
13
|
-
import { migrate as
|
|
1
|
+
import { defineComponent as le, defineAsyncComponent as l, ref as W, computed as f, watch as G, onMounted as ue, onUnmounted as pe } from "vue";
|
|
2
|
+
import { useCortexBlueprintBridge as fe } from "../composables/useCortexBlueprintBridge.js";
|
|
3
|
+
import { useEditorLock as ye } from "../composables/useEditorLock.js";
|
|
4
|
+
import { startEditorOpenMetrics as ge } from "../composables/useEditorOpenMetrics.js";
|
|
5
|
+
import { provideGuidoActions as ve } from "../composables/useGuidoActions.js";
|
|
6
|
+
import { useGuidoStateBridge as Se } from "../composables/useGuidoStateBridge.js";
|
|
7
|
+
import { usePartner as be } from "../composables/usePartner.js";
|
|
8
|
+
import { useSaveValidationRollout as he } from "../composables/useSaveValidationRollout.js";
|
|
9
|
+
import { useStripo as Ee } from "../composables/useStripo.js";
|
|
10
|
+
import { useTimerClone as we } from "../composables/useTimerClone.js";
|
|
11
|
+
import { useToaster as Te } from "../composables/useToaster.js";
|
|
12
|
+
import { useTranslations as ke } from "../composables/useTranslations.js";
|
|
13
|
+
import { migrate as Ce } from "../config/migrator/index.js";
|
|
14
14
|
import { ModuleFolderDefaults as $ } from "../enums/defaults.js";
|
|
15
|
-
import { RIBBON_SELECTOR as
|
|
16
|
-
import { ToasterTypeOptions as
|
|
17
|
-
import { useRecommendationExtensionStore as z, disposeStrategyPageReturnListeners as
|
|
18
|
-
import { disposeUnsubscribeListeners as
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import { useStripoApi as
|
|
29
|
-
import { useConfigStore as
|
|
30
|
-
import { useDynamicContentStore as
|
|
31
|
-
import { useEditorStore as
|
|
32
|
-
import { usePreviewStore as
|
|
33
|
-
import { useSaveValidationStore as
|
|
34
|
-
import { useTemplateStore as
|
|
35
|
-
import { useUnsubscribeStore as
|
|
15
|
+
import { RIBBON_SELECTOR as De } from "../enums/onboarding.js";
|
|
16
|
+
import { ToasterTypeOptions as Ie } from "../enums/toaster.js";
|
|
17
|
+
import { useRecommendationExtensionStore as z, disposeStrategyPageReturnListeners as Fe } from "../extensions/Blocks/Recommendation/store/recommendation.js";
|
|
18
|
+
import { disposeUnsubscribeListeners as Me } from "../extensions/Blocks/Unsubscribe/block.js";
|
|
19
|
+
import Re from "./organisms/AutoSaveController.vue.js";
|
|
20
|
+
import Le from "./organisms/base/AuthErrorModal.vue.js";
|
|
21
|
+
import Oe from "./organisms/base/Toaster.vue.js";
|
|
22
|
+
import Ue from "./organisms/extensions/recommendation/FilterSelectionDrawer.vue.js";
|
|
23
|
+
import Ne from "./organisms/header/HeaderWrapper.vue.js";
|
|
24
|
+
import _e from "./organisms/LoadingWrapper.vue.js";
|
|
25
|
+
import Ae from "./organisms/save-as-template/SaveAsTemplateDrawer.vue.js";
|
|
26
|
+
import Be from "./organisms/unsubscribe/UnsubscribeWrapper.vue.js";
|
|
27
|
+
import Pe from "./organisms/validation/ValidationErrorDrawer.vue.js";
|
|
28
|
+
import { useStripoApi as xe } from "../services/stripoApi.js";
|
|
29
|
+
import { useConfigStore as He } from "../stores/config.js";
|
|
30
|
+
import { useDynamicContentStore as Ve } from "../stores/dynamic-content.js";
|
|
31
|
+
import { useEditorStore as w } from "../stores/editor.js";
|
|
32
|
+
import { usePreviewStore as We } from "../stores/preview.js";
|
|
33
|
+
import { useSaveValidationStore as Ge } from "../stores/save-validation.js";
|
|
34
|
+
import { useTemplateStore as $e } from "../stores/template.js";
|
|
35
|
+
import { useUnsubscribeStore as ze } from "../stores/unsubscribe.js";
|
|
36
36
|
import { readTrackFloor as q } from "../utils/linkTrackingIds.js";
|
|
37
|
-
const
|
|
37
|
+
const Ft = /* @__PURE__ */ le({
|
|
38
38
|
__name: "Guido",
|
|
39
39
|
props: {
|
|
40
40
|
config: null,
|
|
@@ -42,35 +42,33 @@ const Lt = /* @__PURE__ */ pe({
|
|
|
42
42
|
},
|
|
43
43
|
emits: ["dynamic-content:open", "back", "save:start", "save:complete", "on-change", "ready", "onboarding:finished", "test-email:click"],
|
|
44
44
|
setup(K, { expose: j, emit: s }) {
|
|
45
|
-
const a = K, n =
|
|
45
|
+
const a = K, n = ge(), J = l(
|
|
46
46
|
() => import("./organisms/email-preview/PreviewContainer.vue.js")
|
|
47
|
-
), Q =
|
|
47
|
+
), Q = l(
|
|
48
48
|
() => import("./organisms/onboarding/OnboardingWrapper.vue.js")
|
|
49
|
-
), X =
|
|
49
|
+
), X = l(
|
|
50
50
|
() => import("./organisms/extensions/recommendation/AssignStrategyDrawer.vue.js")
|
|
51
|
-
), Y =
|
|
51
|
+
), Y = l(
|
|
52
52
|
() => import("./organisms/extensions/recommendation/RemoveStrategyModal.vue.js")
|
|
53
|
-
),
|
|
53
|
+
), T = W(), Z = l(
|
|
54
54
|
() => import("./organisms/extensions/recommendation/LegacyStrategyUpdatedModal.vue.js")
|
|
55
|
-
),
|
|
56
|
-
() => import("./organisms/unsubscribe/LegacyUnsubscribeConvertedModal.vue.js")
|
|
57
|
-
), y = W(), g = Ge(), T = Ke(), o = We();
|
|
55
|
+
), y = W(), g = Ve(), k = ze(), o = He();
|
|
58
56
|
a.ready && o.init(a.config);
|
|
59
|
-
const c =
|
|
57
|
+
const c = w(), ee = We(), u = f(() => c.hasChanges), { isTestPartner: te } = be(), { isEnabled: oe, loadRollout: C } = he(), { showToaster: D } = Te(), I = ke(), F = () => {
|
|
60
58
|
var t;
|
|
61
59
|
if (c.isVersionHistoryOpen) {
|
|
62
60
|
console.debug("guido:save:silent:blocked", { isVersionHistoryOpen: !0 }), D({
|
|
63
|
-
type:
|
|
64
|
-
message:
|
|
61
|
+
type: Ie.Warning,
|
|
62
|
+
message: I("email-editor.save-blocked-outside-editor")
|
|
65
63
|
});
|
|
66
64
|
return;
|
|
67
65
|
}
|
|
68
|
-
return (t =
|
|
66
|
+
return (t = T.value) == null ? void 0 : t.saveSilent();
|
|
69
67
|
}, M = (t) => {
|
|
70
68
|
c.loadingStatus = t;
|
|
71
69
|
};
|
|
72
|
-
|
|
73
|
-
const
|
|
70
|
+
fe(), Se();
|
|
71
|
+
const v = () => {
|
|
74
72
|
var t, e;
|
|
75
73
|
return {
|
|
76
74
|
emailId: o.templateId,
|
|
@@ -80,17 +78,15 @@ const Lt = /* @__PURE__ */ pe({
|
|
|
80
78
|
savedModulesFolderName: ((t = o.editor) == null ? void 0 : t.savedModulesFolderName) || $.SAVED_MODULES,
|
|
81
79
|
defaultModulesFolderName: ((e = o.editor) == null ? void 0 : e.defaultModulesFolderName) || $.DEFAULT_MODULES
|
|
82
80
|
};
|
|
83
|
-
}, { initPlugin:
|
|
84
|
-
let
|
|
85
|
-
const { getDefaultTemplate: N } =
|
|
81
|
+
}, { initPlugin: R, preloadRuntime: L } = Ee(n), { runExclusive: O, beginMount: U, isCurrentMount: S } = ye();
|
|
82
|
+
let p = 0;
|
|
83
|
+
const { getDefaultTemplate: N } = xe(), { cloneTimersOnSave: _, hasTimerBlocks: A } = we(), re = f(() => {
|
|
86
84
|
var t;
|
|
87
85
|
return !((t = o.ui) != null && t.showHeader);
|
|
88
|
-
}),
|
|
89
|
-
() => o.isFeatureEnabled("legacyUnsubscribeConversion")
|
|
90
|
-
), ae = u(
|
|
86
|
+
}), ne = f(() => o.isFeatureEnabled("reusableRecommendationStrategy")), se = f(
|
|
91
87
|
() => !!z().recommendationConfigs.strategyId
|
|
92
88
|
);
|
|
93
|
-
|
|
89
|
+
ve({
|
|
94
90
|
onBack: () => {
|
|
95
91
|
console.debug("guido:back"), s("back");
|
|
96
92
|
},
|
|
@@ -98,7 +94,7 @@ const Lt = /* @__PURE__ */ pe({
|
|
|
98
94
|
console.debug("guido:save:start"), s("save:start");
|
|
99
95
|
},
|
|
100
96
|
onSaveComplete: (t) => {
|
|
101
|
-
const e = { ...t, metadata:
|
|
97
|
+
const e = { ...t, metadata: v() };
|
|
102
98
|
console.debug("guido:save:complete", e), s("save:complete", e);
|
|
103
99
|
},
|
|
104
100
|
onTestEmailClick: () => {
|
|
@@ -110,17 +106,17 @@ const Lt = /* @__PURE__ */ pe({
|
|
|
110
106
|
}, P = () => {
|
|
111
107
|
console.debug("dynamic-content:close", "Without Data"), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: { text: "", value: "" } }));
|
|
112
108
|
};
|
|
113
|
-
G(() =>
|
|
114
|
-
s("on-change",
|
|
109
|
+
G(() => u.value, () => {
|
|
110
|
+
s("on-change", u.value);
|
|
115
111
|
});
|
|
116
|
-
const
|
|
117
|
-
const e = t, { attribute: i, position:
|
|
118
|
-
console.debug("dynamic-content:open", e.detail), s("dynamic-content:open", i,
|
|
112
|
+
const b = (t) => {
|
|
113
|
+
const e = t, { attribute: i, position: m } = e.detail;
|
|
114
|
+
console.debug("dynamic-content:open", e.detail), s("dynamic-content:open", i, m);
|
|
119
115
|
};
|
|
120
116
|
let d = null;
|
|
121
117
|
const h = () => {
|
|
122
118
|
var e;
|
|
123
|
-
const t = document.querySelector(
|
|
119
|
+
const t = document.querySelector(De);
|
|
124
120
|
(e = y.value) == null || e.style.setProperty("--ribbon-offset", `${(t == null ? void 0 : t.offsetHeight) ?? 0}px`);
|
|
125
121
|
}, E = async () => {
|
|
126
122
|
var t;
|
|
@@ -132,56 +128,56 @@ const Lt = /* @__PURE__ */ pe({
|
|
|
132
128
|
templateId: o.templateId,
|
|
133
129
|
variationId: o.variationId
|
|
134
130
|
});
|
|
135
|
-
const e = o.template, i = (e == null ? void 0 : e.html) || "",
|
|
136
|
-
|
|
137
|
-
const
|
|
131
|
+
const e = o.template, i = (e == null ? void 0 : e.html) || "", m = (e == null ? void 0 : e.css) || "", x = (e == null ? void 0 : e.preselectedDynamicContent) || [];
|
|
132
|
+
k.selectedUnsubscribePages = (e == null ? void 0 : e.selectedUnsubscribePages) || [];
|
|
133
|
+
const ie = ((t = e == null ? void 0 : e.migration) == null ? void 0 : t.recommendationConfigs) ?? {}, H = o.isFeatureEnabled("linkTrackingIds"), ae = {
|
|
138
134
|
partnerName: o.partnerName,
|
|
139
135
|
campaignUrls: e == null ? void 0 : e.recommendationCampaignUrls,
|
|
140
136
|
rrsEnabled: o.isFeatureEnabled("reusableRecommendationStrategy")
|
|
141
|
-
}, V = (
|
|
137
|
+
}, V = (me) => n.timed(
|
|
142
138
|
"migration",
|
|
143
|
-
() =>
|
|
139
|
+
() => Ce(me, ie, ae)
|
|
144
140
|
);
|
|
145
141
|
let r = {
|
|
146
142
|
html: i && await V(i),
|
|
147
|
-
css:
|
|
143
|
+
css: m
|
|
148
144
|
};
|
|
149
145
|
r.html || (r = await n.timed("default_template", () => N()), r.html = await V(r.html));
|
|
150
|
-
const
|
|
151
|
-
A(r.html) && (r.html = await n.timed("timer_clone", () => _(r.html))), H && (c.trackIdSessionFloor = Math.max(
|
|
152
|
-
const
|
|
146
|
+
const ce = H ? q(r.html, (e == null ? void 0 : e.trackIdCounter) || 0) : 0;
|
|
147
|
+
A(r.html) && (r.html = await n.timed("timer_clone", () => _(r.html))), H && (c.trackIdSessionFloor = Math.max(ce, q(r.html)));
|
|
148
|
+
const de = {
|
|
153
149
|
preselectedDynamicContentList: x,
|
|
154
150
|
onReady: () => {
|
|
155
151
|
console.debug("guido:ready"), s("ready");
|
|
156
152
|
}
|
|
157
153
|
};
|
|
158
|
-
|
|
154
|
+
p = U(), await R(r, v(), de), g.selectedDynamicContentList = x;
|
|
159
155
|
} catch (e) {
|
|
160
156
|
console.error("Failed to initialize Stripo editor:", e), n.markFailed();
|
|
161
157
|
}
|
|
162
158
|
};
|
|
163
|
-
return
|
|
159
|
+
return ue(async () => {
|
|
164
160
|
var e;
|
|
165
|
-
console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow"), z().$reset(),
|
|
161
|
+
console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow"), z().$reset(), w().$reset(), $e().$reset(), Ge().$reset(), C(), h();
|
|
166
162
|
const t = (e = y.value) == null ? void 0 : e.parentElement;
|
|
167
|
-
if (t && (d = new ResizeObserver(h), d.observe(t)),
|
|
163
|
+
if (t && (d = new ResizeObserver(h), d.observe(t)), L(), a.ready)
|
|
168
164
|
await E();
|
|
169
165
|
else {
|
|
170
|
-
const i = G(() => a.ready, (
|
|
171
|
-
|
|
166
|
+
const i = G(() => a.ready, (m) => {
|
|
167
|
+
m && (i(), E());
|
|
172
168
|
});
|
|
173
169
|
}
|
|
174
|
-
document.addEventListener("dynamic-content:open",
|
|
175
|
-
}),
|
|
176
|
-
if (
|
|
170
|
+
document.addEventListener("dynamic-content:open", b);
|
|
171
|
+
}), pe(() => {
|
|
172
|
+
if (Me(), Fe(), n.dispose(), d == null || d.disconnect(), document.removeEventListener("dynamic-content:open", b), S(p))
|
|
177
173
|
try {
|
|
178
|
-
const t =
|
|
174
|
+
const t = w();
|
|
179
175
|
t.isStripoInitialized = !1, t.isAccessibilityTestingOpen = !1, t.imagesHidden = !1, t.colorVisionDeficiency = "";
|
|
180
176
|
} catch (t) {
|
|
181
177
|
console.debug("Failed to close the editor readiness gate on unmount", t);
|
|
182
178
|
}
|
|
183
|
-
|
|
184
|
-
if (
|
|
179
|
+
O(async () => {
|
|
180
|
+
if (S(p))
|
|
185
181
|
try {
|
|
186
182
|
window.UIEditor.removeEditor();
|
|
187
183
|
} catch {
|
|
@@ -193,12 +189,12 @@ const Lt = /* @__PURE__ */ pe({
|
|
|
193
189
|
insert: B,
|
|
194
190
|
close: P
|
|
195
191
|
},
|
|
196
|
-
hasChanges:
|
|
197
|
-
saveSilent:
|
|
192
|
+
hasChanges: u,
|
|
193
|
+
saveSilent: F,
|
|
198
194
|
setLoading: M
|
|
199
|
-
}), { __sfc: !0, openMetrics: n, PreviewContainer: J, OnboardingWrapper: Q, AssignStrategyDrawer: X, RemoveStrategyModal: Y, autoSaveControllerRef:
|
|
195
|
+
}), { __sfc: !0, openMetrics: n, PreviewContainer: J, OnboardingWrapper: Q, AssignStrategyDrawer: X, RemoveStrategyModal: Y, autoSaveControllerRef: T, LegacyStrategyUpdatedModal: Z, wrapperRef: y, dynamicContentStore: g, unsubscribeStore: k, props: a, configStore: o, editorStore: c, previewStore: ee, hasChanges: u, isTestPartner: te, isSaveValidationEnabled: oe, loadRollout: C, showToaster: D, trans: I, saveSilent: F, setLoading: M, emit: s, buildMetadata: v, initPlugin: R, preloadRuntime: L, runExclusive: O, beginMount: U, isCurrentMount: S, mountGeneration: p, getDefaultTemplate: N, cloneTimersOnSave: _, hasTimerBlocks: A, noHeader: re, isRrsEnabled: ne, hasAssignedStrategy: se, insertDynamicContent: B, closeDynamicContent: P, handleDynamicContentOpen: b, ribbonObserver: d, updateRibbonOffset: h, startEditor: E, AutoSaveController: Re, AuthErrorModal: Le, Toaster: Oe, FilterSelectionDrawer: Ue, HeaderWrapper: Ne, LoadingWrapper: _e, SaveAsTemplateDrawer: Ae, UnsubscribeWrapper: Be, ValidationErrorDrawer: Pe };
|
|
200
196
|
}
|
|
201
197
|
});
|
|
202
198
|
export {
|
|
203
|
-
|
|
199
|
+
Ft as default
|
|
204
200
|
};
|
|
@@ -1,42 +1,33 @@
|
|
|
1
|
-
import { useConfig as
|
|
2
|
-
import { useToaster as
|
|
3
|
-
import { useTranslations as
|
|
4
|
-
import { ToasterTypeOptions as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { flattenDynamicContentList as L } from "../utils/genericUtil.js";
|
|
1
|
+
import { useConfig as C } from "./useConfig.js";
|
|
2
|
+
import { useToaster as T } from "./useToaster.js";
|
|
3
|
+
import { useTranslations as g } from "./useTranslations.js";
|
|
4
|
+
import { ToasterTypeOptions as D } from "../enums/toaster.js";
|
|
5
|
+
import { buildDynamicContentLookup as f, convertModuleDynamicContent as h } from "../utils/dynamicContentConverter.js";
|
|
6
|
+
import { flattenDynamicContentList as O } from "../utils/genericUtil.js";
|
|
8
7
|
import { repairItemsCurrencyAttributes as M } from "../utils/itemsCurrencyRepair.js";
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
var c, l, u;
|
|
8
|
+
const N = "dynamic-content.unresolved-attributes-on-drop", R = () => {
|
|
9
|
+
const { template: p, isFeatureEnabled: m } = C(), { showToaster: a } = T(), y = g();
|
|
10
|
+
return { handleModuleAdd: (e, o) => {
|
|
11
|
+
var s, l, u;
|
|
14
12
|
try {
|
|
15
|
-
if ((
|
|
13
|
+
if ((e == null ? void 0 : e.action) !== "ADD" && (e == null ? void 0 : e.action) !== "COPY")
|
|
16
14
|
return;
|
|
17
|
-
const
|
|
18
|
-
if (!
|
|
15
|
+
const t = (s = o == null ? void 0 : o.getTargetNode) == null ? void 0 : s.call(o), r = (l = t == null ? void 0 : t.getOuterHTML) == null ? void 0 : l.call(t);
|
|
16
|
+
if (!t || typeof r != "string")
|
|
19
17
|
return;
|
|
20
|
-
let
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
T().isLegacyUnsubscribeModalRequested = !0;
|
|
27
|
-
} catch (g) {
|
|
28
|
-
console.error("Failed to request the legacy unsubscribe modal:", g);
|
|
29
|
-
}
|
|
30
|
-
m.length > 0 && y({
|
|
31
|
-
type: h.Warning,
|
|
32
|
-
message: b(E)
|
|
18
|
+
let n = M(r);
|
|
19
|
+
const c = f(O((u = p.value) == null ? void 0 : u.dynamicContentList));
|
|
20
|
+
let i = [];
|
|
21
|
+
c.size > 0 && ({ html: n, unresolved: i } = h(n, c, m("liquidSyntax"))), n !== r && o.modifyHtml(t).replaceWith(n), i.length > 0 && a({
|
|
22
|
+
type: D.Warning,
|
|
23
|
+
message: y(N)
|
|
33
24
|
});
|
|
34
|
-
} catch (
|
|
35
|
-
console.error("Failed to repair module on add:",
|
|
25
|
+
} catch (t) {
|
|
26
|
+
console.error("Failed to repair module on add:", t);
|
|
36
27
|
}
|
|
37
28
|
} };
|
|
38
29
|
};
|
|
39
30
|
export {
|
|
40
|
-
|
|
41
|
-
|
|
31
|
+
N as UNRESOLVED_DYNAMIC_CONTENT_ON_DROP_KEY,
|
|
32
|
+
R as useModuleRepair
|
|
42
33
|
};
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { migrateCheckbox as i } from "./checkboxMigrator.js";
|
|
2
2
|
import { migrateCouponBlock as e } from "./couponBlockMigrator.js";
|
|
3
3
|
import { migrateFullStoryScripts as a } from "./fullStoryScriptMigrator.js";
|
|
4
|
-
import { migrateItemsBlock as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { migrateRecommendationPartnerScope as s } from "./recommendationPartnerMigrator.js";
|
|
4
|
+
import { migrateItemsBlock as n } from "./itemsBlockMigrator.js";
|
|
5
|
+
import { migrateProductNameLink as c } from "./productNameLinkMigrator.js";
|
|
6
|
+
import { migrateRadioButton as g } from "./radioButtonMigrator.js";
|
|
7
|
+
import { migrateRecommendation as p } from "./recommendationMigrator.js";
|
|
8
|
+
import { migrateRecommendationPartnerScope as f } from "./recommendationPartnerMigrator.js";
|
|
10
9
|
import { migrateRecommendationTitle as l } from "./recommendationTitleMigrator.js";
|
|
11
|
-
import { migrateSocialIcons as
|
|
10
|
+
import { migrateSocialIcons as s } from "./socialIconMigrator.js";
|
|
12
11
|
import { migrateUnsubscribe as d } from "./unsubscribeMigrator.js";
|
|
13
|
-
const
|
|
12
|
+
const h = async (o, t = {}, r) => {
|
|
14
13
|
let m = o;
|
|
15
|
-
return m = i(m), m =
|
|
14
|
+
return m = i(m), m = g(m), m = await d(m), m = e(m), m = p(m, t), r && (m = f(m, r)), m = l(m), m = n(m), m = c(m), m = s(m), m = a(m), m;
|
|
16
15
|
};
|
|
17
16
|
export {
|
|
18
|
-
|
|
17
|
+
h as migrate
|
|
19
18
|
};
|
package/dist/enums/academy.js
CHANGED
|
@@ -2,8 +2,7 @@ const e = "https://academy.insiderone.com", o = {
|
|
|
2
2
|
EMAIL_EDITOR: `${e}/docs/email-drag-and-drop-editor`,
|
|
3
3
|
GLOBAL_UNSUBSCRIBE: `${e}/docs/global-unsubscribe-preference-center`,
|
|
4
4
|
AMP_FOR_EMAILS: `${e}/docs/amp-for-emails`,
|
|
5
|
-
EMAIL_RECOMMENDATION_BLOCK: `${e}/docs/new-editor-email-recommendation-block
|
|
6
|
-
LEGACY_UNSUBSCRIBE_MODULE: `${e}/docs/new-editor-add-unsubscribe-pages-into-emails`
|
|
5
|
+
EMAIL_RECOMMENDATION_BLOCK: `${e}/docs/new-editor-email-recommendation-block`
|
|
7
6
|
};
|
|
8
7
|
export {
|
|
9
8
|
o as ACADEMY_LINKS
|
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-8422eef8]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-8422eef8]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-8422eef8]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-eaf8e461]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-eaf8e461]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-eaf8e461]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-eaf8e461]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-eaf8e461]{object-fit:cover;transform:scale(1)}[data-v-b9a93c6e] .guido__verion-history-view-option-selection-desktop svg,[data-v-b9a93c6e] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-b9a93c6e] .in-segments-wrapper__button_selected,[data-v-b9a93c6e] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.error-list[data-v-c3fd5d4b]{gap:16px}.desktop-browser-header[data-v-d86c5af5]{height:79px;min-height:79px}.desktop-browser-header__left[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:378px}.desktop-browser-header__center[data-v-d86c5af5]{height:79px;background-repeat:repeat-x;background-size:auto 100%;background-position:left top}.desktop-browser-header__right[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:112px}.desktop-preview[data-v-cf946232]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-cf946232]{min-height:504px}.iframe-wrapper[data-v-f255b2bb]{width:258px}.iframe-scaled[data-v-f255b2bb]{width:320px;height:124.0310077519%;transform:scale(.80625);transform-origin:top left}.cropped-text[data-v-eb3d05d7]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-preview-wrapper__phone[data-v-3f472f96]{width:282px}.mobile-preview-wrapper__phone img[data-v-3f472f96]{object-fit:cover;border-radius:44px}.mobile-preview-wrapper__content[data-v-3f472f96]{width:258px;height:450px;left:12px}[data-v-6bcaca8a] .vueperslides__parallax-wrapper{padding-bottom:110px!important}.guido-tab-bar-onboarding[data-v-219b4f7c]{z-index:21}[data-v-f16f20f8] .vueperslides__bullets{pointer-events:none!important}[data-v-f16f20f8] .vueperslides__parallax-wrapper{padding-bottom:110px!important}[data-v-bb3cca55] .vueperslides__bullets{pointer-events:none!important}[data-v-bb3cca55] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-19d8cb42] .vueperslides__bullets,[data-v-ec2027ff] .vueperslides__bullets,[data-v-b09e80c4] .vueperslides__bullets{pointer-events:none!important}[data-v-b09e80c4] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-9bdef600] .vueperslides__parallax-wrapper{padding-bottom:110px!important}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd]{width:100%;max-width:none}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd] .in-skeleton{width:100%!important}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd] .in-dropdown-box__container{width:413px}.assign-strategy-drawer .spaced-dot-sep{background-image:linear-gradient(90deg,#91949f 20%,#fff0 0);background-position:center bottom;background-repeat:repeat-x;background-size:5px 1px}.assign-strategy-drawer .spaced-dot-sep--top{background-position:center top}.assign-strategy-drawer .spaced-dot-sep--fc-n:first-child{background:none}.legacy-strategy-updated-modal[data-v-da2225a1]{position:relative;z-index:145}
|
package/dist/package.json.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const o = "3.23.0-beta.
|
|
1
|
+
const o = "3.23.0-beta.20253bd", s = { stripo: { version: "2.83.1" } }, t = {
|
|
2
2
|
version: o,
|
|
3
3
|
guido: s
|
|
4
4
|
};
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
t as default,
|
|
7
7
|
s as guido,
|
|
8
8
|
o as version
|
|
9
9
|
};
|
|
@@ -415,8 +415,6 @@ export declare const FeaturesSchema: v.ObjectSchema<{
|
|
|
415
415
|
/** Allow persisting a template that still has validation errors (drawer "Save and Continue" soft-save). Host sets false for transactional + unsubscribe. */
|
|
416
416
|
readonly allowSaveWithErrors: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
417
417
|
readonly reusableRecommendationStrategy: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
418
|
-
/** Convert linkless legacy unsubscribe blocks into text blocks and warn with a modal (opt-in) */
|
|
419
|
-
readonly legacyUnsubscribeConversion: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
420
418
|
}, undefined>;
|
|
421
419
|
/**
|
|
422
420
|
* Default block types available in Stripo
|
|
@@ -836,8 +834,6 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
|
|
|
836
834
|
/** Allow persisting a template that still has validation errors (drawer "Save and Continue" soft-save). Host sets false for transactional + unsubscribe. */
|
|
837
835
|
readonly allowSaveWithErrors: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
838
836
|
readonly reusableRecommendationStrategy: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
839
|
-
/** Convert linkless legacy unsubscribe blocks into text blocks and warn with a modal (opt-in) */
|
|
840
|
-
readonly legacyUnsubscribeConversion: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
841
837
|
}, undefined>, {}>;
|
|
842
838
|
/** Block configuration */
|
|
843
839
|
readonly blocks: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -105,7 +105,6 @@ export declare const useConfig: () => {
|
|
|
105
105
|
linkTrackingIds: boolean;
|
|
106
106
|
allowSaveWithErrors: boolean;
|
|
107
107
|
reusableRecommendationStrategy: boolean;
|
|
108
|
-
legacyUnsubscribeConversion: boolean;
|
|
109
108
|
};
|
|
110
109
|
blocks: {
|
|
111
110
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -246,7 +245,6 @@ export declare const useConfig: () => {
|
|
|
246
245
|
linkTrackingIds: boolean;
|
|
247
246
|
allowSaveWithErrors: boolean;
|
|
248
247
|
reusableRecommendationStrategy: boolean;
|
|
249
|
-
legacyUnsubscribeConversion: boolean;
|
|
250
248
|
} | null>;
|
|
251
249
|
blocks: import("vue").ComputedRef<{
|
|
252
250
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import type { ModuleAddData, ModuleModifier } from '@@/Types/stripo';
|
|
2
2
|
export declare const UNRESOLVED_DYNAMIC_CONTENT_ON_DROP_KEY = "dynamic-content.unresolved-attributes-on-drop";
|
|
3
3
|
/**
|
|
4
|
-
* Repairs
|
|
5
|
-
*
|
|
4
|
+
* Repairs saved modules as they are dropped or copied into the editor, in one pass
|
|
5
|
+
* over the module HTML. Two independent repairs run through a single write-back:
|
|
6
|
+
*
|
|
7
|
+
* - Dynamic content: saved modules serialize merge-tag chips by their display label
|
|
8
|
+
* (`{{ Phone Number }}`); this maps them back to their canonical token
|
|
9
|
+
* (`{{phone_number}}`) using the account's dynamic-content list.
|
|
10
|
+
* - Items currency: v2 Items blocks can carry price `data-curency` /
|
|
11
|
+
* `data-currency_symbol` attrs that drifted from their `esd-ext-config`; these are
|
|
12
|
+
* healed from config (the export contract reads those exact attrs).
|
|
13
|
+
*
|
|
14
|
+
* Wired into Stripo via the `onModuleAdd` init callback (see `useStripo`).
|
|
6
15
|
*/
|
|
7
16
|
export declare const useModuleRepair: () => {
|
|
8
17
|
handleModuleAdd: (data: ModuleAddData, modifier: ModuleModifier) => void;
|
|
@@ -9,6 +9,5 @@ export declare const ACADEMY_LINKS: {
|
|
|
9
9
|
readonly GLOBAL_UNSUBSCRIBE: "https://academy.insiderone.com/docs/global-unsubscribe-preference-center";
|
|
10
10
|
readonly AMP_FOR_EMAILS: "https://academy.insiderone.com/docs/amp-for-emails";
|
|
11
11
|
readonly EMAIL_RECOMMENDATION_BLOCK: "https://academy.insiderone.com/docs/new-editor-email-recommendation-block";
|
|
12
|
-
readonly LEGACY_UNSUBSCRIBE_MODULE: "https://academy.insiderone.com/docs/new-editor-add-unsubscribe-pages-into-emails";
|
|
13
12
|
};
|
|
14
13
|
export type AcademyLinkKey = keyof typeof ACADEMY_LINKS;
|
|
@@ -110,7 +110,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
110
110
|
linkTrackingIds: boolean;
|
|
111
111
|
allowSaveWithErrors: boolean;
|
|
112
112
|
reusableRecommendationStrategy: boolean;
|
|
113
|
-
legacyUnsubscribeConversion: boolean;
|
|
114
113
|
};
|
|
115
114
|
blocks: {
|
|
116
115
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -257,7 +256,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
257
256
|
linkTrackingIds: boolean;
|
|
258
257
|
allowSaveWithErrors: boolean;
|
|
259
258
|
reusableRecommendationStrategy: boolean;
|
|
260
|
-
legacyUnsubscribeConversion: boolean;
|
|
261
259
|
};
|
|
262
260
|
blocks: {
|
|
263
261
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -404,7 +402,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
404
402
|
linkTrackingIds: boolean;
|
|
405
403
|
allowSaveWithErrors: boolean;
|
|
406
404
|
reusableRecommendationStrategy: boolean;
|
|
407
|
-
legacyUnsubscribeConversion: boolean;
|
|
408
405
|
};
|
|
409
406
|
blocks: {
|
|
410
407
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -551,7 +548,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
551
548
|
linkTrackingIds: boolean;
|
|
552
549
|
allowSaveWithErrors: boolean;
|
|
553
550
|
reusableRecommendationStrategy: boolean;
|
|
554
|
-
legacyUnsubscribeConversion: boolean;
|
|
555
551
|
};
|
|
556
552
|
blocks: {
|
|
557
553
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -698,7 +694,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
698
694
|
linkTrackingIds: boolean;
|
|
699
695
|
allowSaveWithErrors: boolean;
|
|
700
696
|
reusableRecommendationStrategy: boolean;
|
|
701
|
-
legacyUnsubscribeConversion: boolean;
|
|
702
697
|
};
|
|
703
698
|
blocks: {
|
|
704
699
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -845,7 +840,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
845
840
|
linkTrackingIds: boolean;
|
|
846
841
|
allowSaveWithErrors: boolean;
|
|
847
842
|
reusableRecommendationStrategy: boolean;
|
|
848
|
-
legacyUnsubscribeConversion: boolean;
|
|
849
843
|
};
|
|
850
844
|
blocks: {
|
|
851
845
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -992,7 +986,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
992
986
|
linkTrackingIds: boolean;
|
|
993
987
|
allowSaveWithErrors: boolean;
|
|
994
988
|
reusableRecommendationStrategy: boolean;
|
|
995
|
-
legacyUnsubscribeConversion: boolean;
|
|
996
989
|
};
|
|
997
990
|
blocks: {
|
|
998
991
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -1139,7 +1132,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1139
1132
|
linkTrackingIds: boolean;
|
|
1140
1133
|
allowSaveWithErrors: boolean;
|
|
1141
1134
|
reusableRecommendationStrategy: boolean;
|
|
1142
|
-
legacyUnsubscribeConversion: boolean;
|
|
1143
1135
|
};
|
|
1144
1136
|
blocks: {
|
|
1145
1137
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -1286,7 +1278,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1286
1278
|
linkTrackingIds: boolean;
|
|
1287
1279
|
allowSaveWithErrors: boolean;
|
|
1288
1280
|
reusableRecommendationStrategy: boolean;
|
|
1289
|
-
legacyUnsubscribeConversion: boolean;
|
|
1290
1281
|
};
|
|
1291
1282
|
blocks: {
|
|
1292
1283
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -1433,7 +1424,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1433
1424
|
linkTrackingIds: boolean;
|
|
1434
1425
|
allowSaveWithErrors: boolean;
|
|
1435
1426
|
reusableRecommendationStrategy: boolean;
|
|
1436
|
-
legacyUnsubscribeConversion: boolean;
|
|
1437
1427
|
};
|
|
1438
1428
|
blocks: {
|
|
1439
1429
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -1580,7 +1570,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1580
1570
|
linkTrackingIds: boolean;
|
|
1581
1571
|
allowSaveWithErrors: boolean;
|
|
1582
1572
|
reusableRecommendationStrategy: boolean;
|
|
1583
|
-
legacyUnsubscribeConversion: boolean;
|
|
1584
1573
|
};
|
|
1585
1574
|
blocks: {
|
|
1586
1575
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -1727,7 +1716,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1727
1716
|
linkTrackingIds: boolean;
|
|
1728
1717
|
allowSaveWithErrors: boolean;
|
|
1729
1718
|
reusableRecommendationStrategy: boolean;
|
|
1730
|
-
legacyUnsubscribeConversion: boolean;
|
|
1731
1719
|
};
|
|
1732
1720
|
blocks: {
|
|
1733
1721
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -1874,7 +1862,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1874
1862
|
linkTrackingIds: boolean;
|
|
1875
1863
|
allowSaveWithErrors: boolean;
|
|
1876
1864
|
reusableRecommendationStrategy: boolean;
|
|
1877
|
-
legacyUnsubscribeConversion: boolean;
|
|
1878
1865
|
};
|
|
1879
1866
|
blocks: {
|
|
1880
1867
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -2021,7 +2008,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2021
2008
|
linkTrackingIds: boolean;
|
|
2022
2009
|
allowSaveWithErrors: boolean;
|
|
2023
2010
|
reusableRecommendationStrategy: boolean;
|
|
2024
|
-
legacyUnsubscribeConversion: boolean;
|
|
2025
2011
|
};
|
|
2026
2012
|
blocks: {
|
|
2027
2013
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -2168,7 +2154,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2168
2154
|
linkTrackingIds: boolean;
|
|
2169
2155
|
allowSaveWithErrors: boolean;
|
|
2170
2156
|
reusableRecommendationStrategy: boolean;
|
|
2171
|
-
legacyUnsubscribeConversion: boolean;
|
|
2172
2157
|
};
|
|
2173
2158
|
blocks: {
|
|
2174
2159
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -2315,7 +2300,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2315
2300
|
linkTrackingIds: boolean;
|
|
2316
2301
|
allowSaveWithErrors: boolean;
|
|
2317
2302
|
reusableRecommendationStrategy: boolean;
|
|
2318
|
-
legacyUnsubscribeConversion: boolean;
|
|
2319
2303
|
};
|
|
2320
2304
|
blocks: {
|
|
2321
2305
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -2462,7 +2446,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2462
2446
|
linkTrackingIds: boolean;
|
|
2463
2447
|
allowSaveWithErrors: boolean;
|
|
2464
2448
|
reusableRecommendationStrategy: boolean;
|
|
2465
|
-
legacyUnsubscribeConversion: boolean;
|
|
2466
2449
|
};
|
|
2467
2450
|
blocks: {
|
|
2468
2451
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -2621,7 +2604,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2621
2604
|
linkTrackingIds: boolean;
|
|
2622
2605
|
allowSaveWithErrors: boolean;
|
|
2623
2606
|
reusableRecommendationStrategy: boolean;
|
|
2624
|
-
legacyUnsubscribeConversion: boolean;
|
|
2625
2607
|
};
|
|
2626
2608
|
blocks: {
|
|
2627
2609
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -2768,7 +2750,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2768
2750
|
linkTrackingIds: boolean;
|
|
2769
2751
|
allowSaveWithErrors: boolean;
|
|
2770
2752
|
reusableRecommendationStrategy: boolean;
|
|
2771
|
-
legacyUnsubscribeConversion: boolean;
|
|
2772
2753
|
};
|
|
2773
2754
|
blocks: {
|
|
2774
2755
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -2917,7 +2898,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2917
2898
|
linkTrackingIds: boolean;
|
|
2918
2899
|
allowSaveWithErrors: boolean;
|
|
2919
2900
|
reusableRecommendationStrategy: boolean;
|
|
2920
|
-
legacyUnsubscribeConversion: boolean;
|
|
2921
2901
|
};
|
|
2922
2902
|
blocks: {
|
|
2923
2903
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -12,7 +12,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
12
12
|
hasChanges: boolean;
|
|
13
13
|
changeSeq: number;
|
|
14
14
|
isStripoInitialized: boolean;
|
|
15
|
-
isLegacyUnsubscribeModalRequested: boolean;
|
|
16
15
|
templateId: string;
|
|
17
16
|
syncModulesEnabled: boolean;
|
|
18
17
|
trackIdSessionFloor: number;
|
|
@@ -30,7 +29,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
30
29
|
hasChanges: boolean;
|
|
31
30
|
changeSeq: number;
|
|
32
31
|
isStripoInitialized: boolean;
|
|
33
|
-
isLegacyUnsubscribeModalRequested: boolean;
|
|
34
32
|
templateId: string;
|
|
35
33
|
syncModulesEnabled: boolean;
|
|
36
34
|
trackIdSessionFloor: number;
|
|
@@ -47,7 +45,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
47
45
|
hasChanges: boolean;
|
|
48
46
|
changeSeq: number;
|
|
49
47
|
isStripoInitialized: boolean;
|
|
50
|
-
isLegacyUnsubscribeModalRequested: boolean;
|
|
51
48
|
templateId: string;
|
|
52
49
|
syncModulesEnabled: boolean;
|
|
53
50
|
trackIdSessionFloor: number;
|
|
@@ -65,7 +62,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
65
62
|
hasChanges: boolean;
|
|
66
63
|
changeSeq: number;
|
|
67
64
|
isStripoInitialized: boolean;
|
|
68
|
-
isLegacyUnsubscribeModalRequested: boolean;
|
|
69
65
|
templateId: string;
|
|
70
66
|
syncModulesEnabled: boolean;
|
|
71
67
|
trackIdSessionFloor: number;
|
|
@@ -82,7 +78,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
82
78
|
hasChanges: boolean;
|
|
83
79
|
changeSeq: number;
|
|
84
80
|
isStripoInitialized: boolean;
|
|
85
|
-
isLegacyUnsubscribeModalRequested: boolean;
|
|
86
81
|
templateId: string;
|
|
87
82
|
syncModulesEnabled: boolean;
|
|
88
83
|
trackIdSessionFloor: number;
|
|
@@ -100,7 +95,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
100
95
|
hasChanges: boolean;
|
|
101
96
|
changeSeq: number;
|
|
102
97
|
isStripoInitialized: boolean;
|
|
103
|
-
isLegacyUnsubscribeModalRequested: boolean;
|
|
104
98
|
templateId: string;
|
|
105
99
|
syncModulesEnabled: boolean;
|
|
106
100
|
trackIdSessionFloor: number;
|
|
@@ -117,7 +111,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
117
111
|
hasChanges: boolean;
|
|
118
112
|
changeSeq: number;
|
|
119
113
|
isStripoInitialized: boolean;
|
|
120
|
-
isLegacyUnsubscribeModalRequested: boolean;
|
|
121
114
|
templateId: string;
|
|
122
115
|
syncModulesEnabled: boolean;
|
|
123
116
|
trackIdSessionFloor: number;
|
|
@@ -135,7 +128,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
135
128
|
hasChanges: boolean;
|
|
136
129
|
changeSeq: number;
|
|
137
130
|
isStripoInitialized: boolean;
|
|
138
|
-
isLegacyUnsubscribeModalRequested: boolean;
|
|
139
131
|
templateId: string;
|
|
140
132
|
syncModulesEnabled: boolean;
|
|
141
133
|
trackIdSessionFloor: number;
|
|
@@ -152,7 +144,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
152
144
|
hasChanges: boolean;
|
|
153
145
|
changeSeq: number;
|
|
154
146
|
isStripoInitialized: boolean;
|
|
155
|
-
isLegacyUnsubscribeModalRequested: boolean;
|
|
156
147
|
templateId: string;
|
|
157
148
|
syncModulesEnabled: boolean;
|
|
158
149
|
trackIdSessionFloor: number;
|
|
@@ -170,7 +161,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
170
161
|
hasChanges: boolean;
|
|
171
162
|
changeSeq: number;
|
|
172
163
|
isStripoInitialized: boolean;
|
|
173
|
-
isLegacyUnsubscribeModalRequested: boolean;
|
|
174
164
|
templateId: string;
|
|
175
165
|
syncModulesEnabled: boolean;
|
|
176
166
|
trackIdSessionFloor: number;
|
|
@@ -187,7 +177,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
187
177
|
hasChanges: boolean;
|
|
188
178
|
changeSeq: number;
|
|
189
179
|
isStripoInitialized: boolean;
|
|
190
|
-
isLegacyUnsubscribeModalRequested: boolean;
|
|
191
180
|
templateId: string;
|
|
192
181
|
syncModulesEnabled: boolean;
|
|
193
182
|
trackIdSessionFloor: number;
|
|
@@ -205,7 +194,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
205
194
|
hasChanges: boolean;
|
|
206
195
|
changeSeq: number;
|
|
207
196
|
isStripoInitialized: boolean;
|
|
208
|
-
isLegacyUnsubscribeModalRequested: boolean;
|
|
209
197
|
templateId: string;
|
|
210
198
|
syncModulesEnabled: boolean;
|
|
211
199
|
trackIdSessionFloor: number;
|
|
@@ -222,7 +210,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
222
210
|
hasChanges: boolean;
|
|
223
211
|
changeSeq: number;
|
|
224
212
|
isStripoInitialized: boolean;
|
|
225
|
-
isLegacyUnsubscribeModalRequested: boolean;
|
|
226
213
|
templateId: string;
|
|
227
214
|
syncModulesEnabled: boolean;
|
|
228
215
|
trackIdSessionFloor: number;
|
|
@@ -240,7 +227,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
240
227
|
hasChanges: boolean;
|
|
241
228
|
changeSeq: number;
|
|
242
229
|
isStripoInitialized: boolean;
|
|
243
|
-
isLegacyUnsubscribeModalRequested: boolean;
|
|
244
230
|
templateId: string;
|
|
245
231
|
syncModulesEnabled: boolean;
|
|
246
232
|
trackIdSessionFloor: number;
|
|
@@ -257,7 +243,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
257
243
|
hasChanges: boolean;
|
|
258
244
|
changeSeq: number;
|
|
259
245
|
isStripoInitialized: boolean;
|
|
260
|
-
isLegacyUnsubscribeModalRequested: boolean;
|
|
261
246
|
templateId: string;
|
|
262
247
|
syncModulesEnabled: boolean;
|
|
263
248
|
trackIdSessionFloor: number;
|
|
@@ -275,7 +260,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
275
260
|
hasChanges: boolean;
|
|
276
261
|
changeSeq: number;
|
|
277
262
|
isStripoInitialized: boolean;
|
|
278
|
-
isLegacyUnsubscribeModalRequested: boolean;
|
|
279
263
|
templateId: string;
|
|
280
264
|
syncModulesEnabled: boolean;
|
|
281
265
|
trackIdSessionFloor: number;
|
|
@@ -292,7 +276,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
292
276
|
hasChanges: boolean;
|
|
293
277
|
changeSeq: number;
|
|
294
278
|
isStripoInitialized: boolean;
|
|
295
|
-
isLegacyUnsubscribeModalRequested: boolean;
|
|
296
279
|
templateId: string;
|
|
297
280
|
syncModulesEnabled: boolean;
|
|
298
281
|
trackIdSessionFloor: number;
|
|
@@ -310,7 +293,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
310
293
|
hasChanges: boolean;
|
|
311
294
|
changeSeq: number;
|
|
312
295
|
isStripoInitialized: boolean;
|
|
313
|
-
isLegacyUnsubscribeModalRequested: boolean;
|
|
314
296
|
templateId: string;
|
|
315
297
|
syncModulesEnabled: boolean;
|
|
316
298
|
trackIdSessionFloor: number;
|
|
@@ -327,7 +309,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
327
309
|
hasChanges: boolean;
|
|
328
310
|
changeSeq: number;
|
|
329
311
|
isStripoInitialized: boolean;
|
|
330
|
-
isLegacyUnsubscribeModalRequested: boolean;
|
|
331
312
|
templateId: string;
|
|
332
313
|
syncModulesEnabled: boolean;
|
|
333
314
|
trackIdSessionFloor: number;
|
|
@@ -345,7 +326,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
345
326
|
hasChanges: boolean;
|
|
346
327
|
changeSeq: number;
|
|
347
328
|
isStripoInitialized: boolean;
|
|
348
|
-
isLegacyUnsubscribeModalRequested: boolean;
|
|
349
329
|
templateId: string;
|
|
350
330
|
syncModulesEnabled: boolean;
|
|
351
331
|
trackIdSessionFloor: number;
|
|
@@ -362,7 +342,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
362
342
|
hasChanges: boolean;
|
|
363
343
|
changeSeq: number;
|
|
364
344
|
isStripoInitialized: boolean;
|
|
365
|
-
isLegacyUnsubscribeModalRequested: boolean;
|
|
366
345
|
templateId: string;
|
|
367
346
|
syncModulesEnabled: boolean;
|
|
368
347
|
trackIdSessionFloor: number;
|
|
@@ -380,7 +359,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
380
359
|
hasChanges: boolean;
|
|
381
360
|
changeSeq: number;
|
|
382
361
|
isStripoInitialized: boolean;
|
|
383
|
-
isLegacyUnsubscribeModalRequested: boolean;
|
|
384
362
|
templateId: string;
|
|
385
363
|
syncModulesEnabled: boolean;
|
|
386
364
|
trackIdSessionFloor: number;
|
|
@@ -397,7 +375,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
397
375
|
hasChanges: boolean;
|
|
398
376
|
changeSeq: number;
|
|
399
377
|
isStripoInitialized: boolean;
|
|
400
|
-
isLegacyUnsubscribeModalRequested: boolean;
|
|
401
378
|
templateId: string;
|
|
402
379
|
syncModulesEnabled: boolean;
|
|
403
380
|
trackIdSessionFloor: number;
|
|
@@ -415,7 +392,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
415
392
|
hasChanges: boolean;
|
|
416
393
|
changeSeq: number;
|
|
417
394
|
isStripoInitialized: boolean;
|
|
418
|
-
isLegacyUnsubscribeModalRequested: boolean;
|
|
419
395
|
templateId: string;
|
|
420
396
|
syncModulesEnabled: boolean;
|
|
421
397
|
trackIdSessionFloor: number;
|
|
@@ -432,7 +408,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
432
408
|
hasChanges: boolean;
|
|
433
409
|
changeSeq: number;
|
|
434
410
|
isStripoInitialized: boolean;
|
|
435
|
-
isLegacyUnsubscribeModalRequested: boolean;
|
|
436
411
|
templateId: string;
|
|
437
412
|
syncModulesEnabled: boolean;
|
|
438
413
|
trackIdSessionFloor: number;
|
|
@@ -450,7 +425,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
450
425
|
hasChanges: boolean;
|
|
451
426
|
changeSeq: number;
|
|
452
427
|
isStripoInitialized: boolean;
|
|
453
|
-
isLegacyUnsubscribeModalRequested: boolean;
|
|
454
428
|
templateId: string;
|
|
455
429
|
syncModulesEnabled: boolean;
|
|
456
430
|
trackIdSessionFloor: number;
|
|
@@ -467,7 +441,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
467
441
|
hasChanges: boolean;
|
|
468
442
|
changeSeq: number;
|
|
469
443
|
isStripoInitialized: boolean;
|
|
470
|
-
isLegacyUnsubscribeModalRequested: boolean;
|
|
471
444
|
templateId: string;
|
|
472
445
|
syncModulesEnabled: boolean;
|
|
473
446
|
trackIdSessionFloor: number;
|
package/dist/stores/editor.js
CHANGED
|
@@ -16,7 +16,6 @@ const o = e("guidoEditor", {
|
|
|
16
16
|
// that need every change (the outbound state bridge) watch this instead.
|
|
17
17
|
changeSeq: 0,
|
|
18
18
|
isStripoInitialized: !1,
|
|
19
|
-
isLegacyUnsubscribeModalRequested: !1,
|
|
20
19
|
templateId: "",
|
|
21
20
|
syncModulesEnabled: !1,
|
|
22
21
|
// In-session id high-water mark; floors tracking-id minting so ids
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "3.23.0-beta.
|
|
3
|
+
"version": "3.23.0-beta.20253bd",
|
|
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,17 +0,0 @@
|
|
|
1
|
-
import s from "./LegacyUnsubscribeConvertedModal.vue2.js";
|
|
2
|
-
import r from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
-
var n = function() {
|
|
4
|
-
var o = this, t = o._self._c, e = o._self._setupProxy;
|
|
5
|
-
return e.isVisible ? t(e.WpModal, { attrs: { id: "guido__legacy-unsubscribe-converted-modal", "close-on-outside-click": !1, "footer-button-options": e.footerButtonOptions, title: e.trans("email-editor.legacy-unsubscribe-converted-modal-title") }, on: { close: e.close, "primary-action": e.close, "secondary-action": e.openAcademy } }, [t("p", [o._v(o._s(e.trans("email-editor.legacy-unsubscribe-converted-modal-message")))])]) : o._e();
|
|
6
|
-
}, a = [], c = /* @__PURE__ */ r(
|
|
7
|
-
s,
|
|
8
|
-
n,
|
|
9
|
-
a,
|
|
10
|
-
!1,
|
|
11
|
-
null,
|
|
12
|
-
null
|
|
13
|
-
);
|
|
14
|
-
const d = c.exports;
|
|
15
|
-
export {
|
|
16
|
-
d as default
|
|
17
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { defineComponent as n, computed as t } from "vue";
|
|
2
|
-
import i from "../../wrappers/WpModal.vue.js";
|
|
3
|
-
import { useTranslations as a } from "../../../composables/useTranslations.js";
|
|
4
|
-
import { ACADEMY_LINKS as c } from "../../../enums/academy.js";
|
|
5
|
-
import { useEditorStore as p } from "../../../stores/editor.js";
|
|
6
|
-
const L = /* @__PURE__ */ n({
|
|
7
|
-
__name: "LegacyUnsubscribeConvertedModal",
|
|
8
|
-
setup(d) {
|
|
9
|
-
const o = a(), e = p(), r = t(
|
|
10
|
-
() => e.isLegacyUnsubscribeModalRequested && e.isStripoInitialized
|
|
11
|
-
), s = t(() => ({
|
|
12
|
-
secondaryButton: {
|
|
13
|
-
type: "subtle-primary",
|
|
14
|
-
labelText: o("email-editor.legacy-unsubscribe-converted-modal-visit-academy")
|
|
15
|
-
},
|
|
16
|
-
primaryButton: {
|
|
17
|
-
type: "primary",
|
|
18
|
-
labelText: o("action-builder.ok")
|
|
19
|
-
}
|
|
20
|
-
}));
|
|
21
|
-
return { __sfc: !0, trans: o, editorStore: e, isVisible: r, footerButtonOptions: s, close: () => {
|
|
22
|
-
e.isLegacyUnsubscribeModalRequested = !1;
|
|
23
|
-
}, openAcademy: () => {
|
|
24
|
-
window.open(c.LEGACY_UNSUBSCRIBE_MODULE, "_blank", "noopener,noreferrer");
|
|
25
|
-
}, WpModal: i };
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
export {
|
|
29
|
-
L as default
|
|
30
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { useConfigStore as o } from "../../stores/config.js";
|
|
2
|
-
import { useEditorStore as s } from "../../stores/editor.js";
|
|
3
|
-
import { hasLegacyUnsubscribeClass as c, convertLegacyUnsubscribeInDocumentHtml as i } from "../../utils/legacyUnsubscribeConversion.js";
|
|
4
|
-
const b = (e) => {
|
|
5
|
-
try {
|
|
6
|
-
if (!c(e) || !o().isFeatureEnabled("legacyUnsubscribeConversion"))
|
|
7
|
-
return e;
|
|
8
|
-
const { html: r, converted: t } = i(e);
|
|
9
|
-
return t && (s().isLegacyUnsubscribeModalRequested = !0), r;
|
|
10
|
-
} catch (r) {
|
|
11
|
-
return console.error("LegacyUnsubscribeTextMigrator failed:", r), e;
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
b as migrateLegacyUnsubscribeText
|
|
16
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const migrateLegacyUnsubscribeText: (html: string) => string;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const LEGACY_UNSUBSCRIBE_SELECTOR = "td.unsubscribe-block";
|
|
2
|
-
export declare const LEGACY_UNSUBSCRIBE_LINK_SELECTORS: readonly ["a.unsubscribe-link", "a[href*=\"unsubscribe\"]"];
|
|
3
|
-
export interface LegacyUnsubscribeConversionResult {
|
|
4
|
-
html: string;
|
|
5
|
-
converted: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const hasLegacyUnsubscribeClass: (html: string) => boolean;
|
|
8
|
-
export declare const convertLinklessLegacyUnsubscribeBlocks: (root: ParentNode) => number;
|
|
9
|
-
export declare const convertLegacyUnsubscribeInModuleHtml: (html: string) => LegacyUnsubscribeConversionResult;
|
|
10
|
-
export declare const convertLegacyUnsubscribeInDocumentHtml: (html: string) => LegacyUnsubscribeConversionResult;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { protectLiquid as a, restoreLiquid as u } from "./liquidProtection.js";
|
|
2
|
-
const b = "td.unsubscribe-block", l = ["a.unsubscribe-link", 'a[href*="unsubscribe"]'], d = "esd-block-text", m = [
|
|
3
|
-
"unsubscribe-block",
|
|
4
|
-
"esd-extension",
|
|
5
|
-
"esd-extension-block",
|
|
6
|
-
"esd-unsubscribe-block",
|
|
7
|
-
"esd-block-unsubscribe"
|
|
8
|
-
], L = "esd-extension-block-id", S = "data-unsubscribe-", E = "address,article,aside,blockquote,center,details,dialog,dir,div,dd,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,hr,li,listing,main,menu,nav,ol,p,plaintext,pre,search,section,summary,table,ul,xmp", f = new RegExp(`class\\s*=\\s*(?:["'][^"']*)?(?<![\\w-])unsubscribe-block(?![\\w-])`, "i"), p = (e) => typeof e == "string" && f.test(e), y = (e) => l.some((t) => e.querySelector(t) !== null), g = (e) => {
|
|
9
|
-
e.classList.remove(...m), e.classList.add(d), e.removeAttribute(L), Array.from(e.attributes).filter(({ name: t }) => t.startsWith(S)).forEach(({ name: t }) => e.removeAttribute(t)), e.querySelector(E) || (e.innerHTML = `<p path="1">${e.innerHTML}</p>`);
|
|
10
|
-
}, h = (e) => {
|
|
11
|
-
const t = Array.from(e.querySelectorAll(b)).filter((r) => !y(r));
|
|
12
|
-
return t.forEach(g), t.length;
|
|
13
|
-
}, v = (e) => {
|
|
14
|
-
const t = e.trimStart(), r = new DOMParser();
|
|
15
|
-
return /^<t[dh][\s>]/i.test(t) ? r.parseFromString(`<table><tbody><tr>${e}</tr></tbody></table>`, "text/html").querySelector("tr") : /^<tr[\s>]/i.test(t) ? r.parseFromString(`<table><tbody>${e}</tbody></table>`, "text/html").querySelector("tbody") : /^<table[\s>]/i.test(t) ? r.parseFromString(e, "text/html").body : (console.debug("[LegacyUnsubscribeConversion] Skipped module with a non-table root"), null);
|
|
16
|
-
}, c = (e) => {
|
|
17
|
-
const t = e.search(/<html[\s>]/i), r = [...e.matchAll(/<\/html\s*>/gi)].at(-1), s = (r == null ? void 0 : r.index) === void 0 ? -1 : r.index + r[0].length;
|
|
18
|
-
return t < 0 || s <= t ? { head: "", root: e, tail: "" } : { head: e.slice(0, t), root: e.slice(t, s), tail: e.slice(s) };
|
|
19
|
-
}, i = (e, t, r, s) => {
|
|
20
|
-
if (!p(e))
|
|
21
|
-
return { html: e, converted: !1 };
|
|
22
|
-
try {
|
|
23
|
-
const o = a(e), n = t(o);
|
|
24
|
-
return !n || h(n) === 0 ? { html: e, converted: !1 } : { html: u(r(n, o)), converted: !0 };
|
|
25
|
-
} catch (o) {
|
|
26
|
-
return console.error(`Failed to convert legacy unsubscribe blocks in ${s}:`, o), { html: e, converted: !1 };
|
|
27
|
-
}
|
|
28
|
-
}, C = (e) => i(
|
|
29
|
-
e,
|
|
30
|
-
v,
|
|
31
|
-
(t) => t.innerHTML,
|
|
32
|
-
"module"
|
|
33
|
-
), _ = (e) => i(
|
|
34
|
-
e,
|
|
35
|
-
(t) => new DOMParser().parseFromString(c(t).root, "text/html"),
|
|
36
|
-
(t, r) => {
|
|
37
|
-
const { head: s, tail: o } = c(r);
|
|
38
|
-
return `${s}${t.documentElement.outerHTML}${o}`;
|
|
39
|
-
},
|
|
40
|
-
"document"
|
|
41
|
-
);
|
|
42
|
-
export {
|
|
43
|
-
l as LEGACY_UNSUBSCRIBE_LINK_SELECTORS,
|
|
44
|
-
b as LEGACY_UNSUBSCRIBE_SELECTOR,
|
|
45
|
-
_ as convertLegacyUnsubscribeInDocumentHtml,
|
|
46
|
-
C as convertLegacyUnsubscribeInModuleHtml,
|
|
47
|
-
h as convertLinklessLegacyUnsubscribeBlocks,
|
|
48
|
-
p as hasLegacyUnsubscribeClass
|
|
49
|
-
};
|