@useinsider/guido 3.21.1-beta.aa21ac8 → 3.21.1-beta.f5fb7ac
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 +9 -0
- package/dist/@types/config/schemas.js +35 -33
- package/dist/components/Guido.vue.js +5 -5
- package/dist/components/Guido.vue2.js +100 -96
- package/dist/components/organisms/unsubscribe/LegacyUnsubscribeConvertedModal.vue.js +17 -0
- package/dist/components/organisms/unsubscribe/LegacyUnsubscribeConvertedModal.vue2.js +30 -0
- package/dist/composables/useModuleRepair.js +32 -23
- package/dist/config/migrator/index.js +10 -9
- package/dist/config/migrator/legacyUnsubscribeTextMigrator.js +16 -0
- package/dist/enums/academy.js +2 -1
- package/dist/guido.css +1 -1
- package/dist/src/@types/config/schemas.d.ts +4 -0
- package/dist/src/components/organisms/unsubscribe/LegacyUnsubscribeConvertedModal.vue.d.ts +2 -0
- package/dist/src/composables/useConfig.d.ts +2 -0
- package/dist/src/composables/useModuleRepair.d.ts +2 -11
- package/dist/src/config/migrator/legacyUnsubscribeTextMigrator.d.ts +1 -0
- package/dist/src/enums/academy.d.ts +1 -0
- package/dist/src/stores/config.d.ts +20 -0
- package/dist/src/stores/editor.d.ts +25 -0
- package/dist/src/utils/legacyUnsubscribeConversion.d.ts +10 -0
- package/dist/stores/editor.js +15 -14
- package/dist/utils/legacyUnsubscribeConversion.js +49 -0
- package/package.json +2 -2
|
@@ -1,33 +1,42 @@
|
|
|
1
|
-
import { useConfig as
|
|
2
|
-
import { useToaster as
|
|
3
|
-
import { useTranslations as
|
|
4
|
-
import { ToasterTypeOptions as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { useConfig as f } from "./useConfig.js";
|
|
2
|
+
import { useToaster as d } from "./useToaster.js";
|
|
3
|
+
import { useTranslations as C } from "./useTranslations.js";
|
|
4
|
+
import { ToasterTypeOptions as h } from "../enums/toaster.js";
|
|
5
|
+
import { useEditorStore as T } from "../stores/editor.js";
|
|
6
|
+
import { buildDynamicContentLookup as v, convertModuleDynamicContent as D } from "../utils/dynamicContentConverter.js";
|
|
7
|
+
import { flattenDynamicContentList as L } from "../utils/genericUtil.js";
|
|
7
8
|
import { repairItemsCurrencyAttributes as M } from "../utils/itemsCurrencyRepair.js";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
import { convertLegacyUnsubscribeInModuleHtml as O } from "../utils/legacyUnsubscribeConversion.js";
|
|
10
|
+
const E = "dynamic-content.unresolved-attributes-on-drop", Y = () => {
|
|
11
|
+
const { template: p, isFeatureEnabled: s } = f(), { showToaster: y } = d(), b = C();
|
|
12
|
+
return { handleModuleAdd: (t, r) => {
|
|
13
|
+
var c, l, u;
|
|
12
14
|
try {
|
|
13
|
-
if ((
|
|
15
|
+
if ((t == null ? void 0 : t.action) !== "ADD" && (t == null ? void 0 : t.action) !== "COPY")
|
|
14
16
|
return;
|
|
15
|
-
const
|
|
16
|
-
if (!
|
|
17
|
+
const e = (c = r == null ? void 0 : r.getTargetNode) == null ? void 0 : c.call(r), n = (l = e == null ? void 0 : e.getOuterHTML) == null ? void 0 : l.call(e);
|
|
18
|
+
if (!e || typeof n != "string")
|
|
17
19
|
return;
|
|
18
|
-
let
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
let o = M(n), i = !1;
|
|
21
|
+
s("legacyUnsubscribeConversion") && ({ html: o, converted: i } = O(o));
|
|
22
|
+
const a = v(L((u = p.value) == null ? void 0 : u.dynamicContentList));
|
|
23
|
+
let m = [];
|
|
24
|
+
if (a.size > 0 && ({ html: o, unresolved: m } = D(o, a, s("liquidSyntax"))), o !== n && r.modifyHtml(e).replaceWith(o), i)
|
|
25
|
+
try {
|
|
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)
|
|
24
33
|
});
|
|
25
|
-
} catch (
|
|
26
|
-
console.error("Failed to repair module on add:",
|
|
34
|
+
} catch (e) {
|
|
35
|
+
console.error("Failed to repair module on add:", e);
|
|
27
36
|
}
|
|
28
37
|
} };
|
|
29
38
|
};
|
|
30
39
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
40
|
+
E as UNRESOLVED_DYNAMIC_CONTENT_ON_DROP_KEY,
|
|
41
|
+
Y as useModuleRepair
|
|
33
42
|
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { migrateCheckbox as i } from "./checkboxMigrator.js";
|
|
2
2
|
import { migrateCouponBlock as e } from "./couponBlockMigrator.js";
|
|
3
3
|
import { migrateItemsBlock as a } from "./itemsBlockMigrator.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import { migrateLegacyUnsubscribeText as n } from "./legacyUnsubscribeTextMigrator.js";
|
|
5
|
+
import { migrateProductNameLink as c } from "./productNameLinkMigrator.js";
|
|
6
|
+
import { migrateRadioButton as g } from "./radioButtonMigrator.js";
|
|
7
|
+
import { migrateRecommendation as f } from "./recommendationMigrator.js";
|
|
8
|
+
import { migrateRecommendationPartnerScope as p } from "./recommendationPartnerMigrator.js";
|
|
9
|
+
import { migrateRecommendationTitle as s } from "./recommendationTitleMigrator.js";
|
|
9
10
|
import { migrateSocialIcons as d } from "./socialIconMigrator.js";
|
|
10
11
|
import { migrateUnsubscribe as l } from "./unsubscribeMigrator.js";
|
|
11
|
-
const
|
|
12
|
-
let m =
|
|
13
|
-
return m = i(m), m =
|
|
12
|
+
const T = async (o, t = {}, r) => {
|
|
13
|
+
let m = o;
|
|
14
|
+
return m = i(m), m = g(m), m = n(m), m = await l(m), m = e(m), m = f(m, t), r && (m = p(m, r)), m = s(m), m = a(m), m = c(m), m = d(m), m;
|
|
14
15
|
};
|
|
15
16
|
export {
|
|
16
|
-
|
|
17
|
+
T as migrate
|
|
17
18
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
};
|
package/dist/enums/academy.js
CHANGED
|
@@ -2,7 +2,8 @@ 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
|
|
5
|
+
EMAIL_RECOMMENDATION_BLOCK: `${e}/docs/new-editor-email-recommendation-block`,
|
|
6
|
+
LEGACY_UNSUBSCRIBE_MODULE: `${e}/docs/new-editor-add-unsubscribe-pages-into-emails`
|
|
6
7
|
};
|
|
7
8
|
export {
|
|
8
9
|
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-b8f24f34] .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}.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}.auto-save-toggle[data-v-2c964af4]{position:relative}.auto-save-toggle__info-box[data-v-2c964af4]{position:absolute;top:100%;left:0;z-index:10;width:280px}.editor-actions[data-v-baf7a5dd]{gap:4px}.header-wrapper[data-v-d11dd577]{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-b8f24f34] .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}.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}.auto-save-toggle[data-v-2c964af4]{position:relative}.auto-save-toggle__info-box[data-v-2c964af4]{position:absolute;top:100%;left:0;z-index:10;width:280px}.editor-actions[data-v-baf7a5dd]{gap:4px}.header-wrapper[data-v-d11dd577]{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-6cdd5182]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-6cdd5182]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-6cdd5182]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-91a26acd]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-91a26acd]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-91a26acd]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-91a26acd]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-91a26acd]{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}[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}
|
|
@@ -414,6 +414,8 @@ export declare const FeaturesSchema: v.ObjectSchema<{
|
|
|
414
414
|
/** Allow persisting a template that still has validation errors (drawer "Save and Continue" soft-save). Host sets false for transactional + unsubscribe. */
|
|
415
415
|
readonly allowSaveWithErrors: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
416
416
|
readonly reusableRecommendationStrategy: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
417
|
+
/** Convert linkless legacy unsubscribe blocks into text blocks and warn with a modal (opt-in) */
|
|
418
|
+
readonly legacyUnsubscribeConversion: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
417
419
|
}, undefined>;
|
|
418
420
|
/**
|
|
419
421
|
* Default block types available in Stripo
|
|
@@ -832,6 +834,8 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
|
|
|
832
834
|
/** Allow persisting a template that still has validation errors (drawer "Save and Continue" soft-save). Host sets false for transactional + unsubscribe. */
|
|
833
835
|
readonly allowSaveWithErrors: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
834
836
|
readonly reusableRecommendationStrategy: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
837
|
+
/** Convert linkless legacy unsubscribe blocks into text blocks and warn with a modal (opt-in) */
|
|
838
|
+
readonly legacyUnsubscribeConversion: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
835
839
|
}, undefined>, {}>;
|
|
836
840
|
/** Block configuration */
|
|
837
841
|
readonly blocks: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -0,0 +1,2 @@
|
|
|
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;
|
|
@@ -104,6 +104,7 @@ export declare const useConfig: () => {
|
|
|
104
104
|
linkTrackingIds: boolean;
|
|
105
105
|
allowSaveWithErrors: boolean;
|
|
106
106
|
reusableRecommendationStrategy: boolean;
|
|
107
|
+
legacyUnsubscribeConversion: boolean;
|
|
107
108
|
};
|
|
108
109
|
blocks: {
|
|
109
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")[];
|
|
@@ -243,6 +244,7 @@ export declare const useConfig: () => {
|
|
|
243
244
|
linkTrackingIds: boolean;
|
|
244
245
|
allowSaveWithErrors: boolean;
|
|
245
246
|
reusableRecommendationStrategy: boolean;
|
|
247
|
+
legacyUnsubscribeConversion: boolean;
|
|
246
248
|
} | null>;
|
|
247
249
|
blocks: import("vue").ComputedRef<{
|
|
248
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,17 +1,8 @@
|
|
|
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 saved modules
|
|
5
|
-
*
|
|
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`).
|
|
4
|
+
* Repairs dropped/copied saved modules (items currency, linkless legacy unsubscribe → text block,
|
|
5
|
+
* dynamic-content labels → tokens) in one write-back; wired via Stripo's `onModuleAdd` (see `useStripo`).
|
|
15
6
|
*/
|
|
16
7
|
export declare const useModuleRepair: () => {
|
|
17
8
|
handleModuleAdd: (data: ModuleAddData, modifier: ModuleModifier) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const migrateLegacyUnsubscribeText: (html: string) => string;
|
|
@@ -9,5 +9,6 @@ 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";
|
|
12
13
|
};
|
|
13
14
|
export type AcademyLinkKey = keyof typeof ACADEMY_LINKS;
|
|
@@ -109,6 +109,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
109
109
|
linkTrackingIds: boolean;
|
|
110
110
|
allowSaveWithErrors: boolean;
|
|
111
111
|
reusableRecommendationStrategy: boolean;
|
|
112
|
+
legacyUnsubscribeConversion: boolean;
|
|
112
113
|
};
|
|
113
114
|
blocks: {
|
|
114
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")[];
|
|
@@ -254,6 +255,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
254
255
|
linkTrackingIds: boolean;
|
|
255
256
|
allowSaveWithErrors: boolean;
|
|
256
257
|
reusableRecommendationStrategy: boolean;
|
|
258
|
+
legacyUnsubscribeConversion: boolean;
|
|
257
259
|
};
|
|
258
260
|
blocks: {
|
|
259
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")[];
|
|
@@ -399,6 +401,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
399
401
|
linkTrackingIds: boolean;
|
|
400
402
|
allowSaveWithErrors: boolean;
|
|
401
403
|
reusableRecommendationStrategy: boolean;
|
|
404
|
+
legacyUnsubscribeConversion: boolean;
|
|
402
405
|
};
|
|
403
406
|
blocks: {
|
|
404
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")[];
|
|
@@ -544,6 +547,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
544
547
|
linkTrackingIds: boolean;
|
|
545
548
|
allowSaveWithErrors: boolean;
|
|
546
549
|
reusableRecommendationStrategy: boolean;
|
|
550
|
+
legacyUnsubscribeConversion: boolean;
|
|
547
551
|
};
|
|
548
552
|
blocks: {
|
|
549
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")[];
|
|
@@ -689,6 +693,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
689
693
|
linkTrackingIds: boolean;
|
|
690
694
|
allowSaveWithErrors: boolean;
|
|
691
695
|
reusableRecommendationStrategy: boolean;
|
|
696
|
+
legacyUnsubscribeConversion: boolean;
|
|
692
697
|
};
|
|
693
698
|
blocks: {
|
|
694
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")[];
|
|
@@ -834,6 +839,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
834
839
|
linkTrackingIds: boolean;
|
|
835
840
|
allowSaveWithErrors: boolean;
|
|
836
841
|
reusableRecommendationStrategy: boolean;
|
|
842
|
+
legacyUnsubscribeConversion: boolean;
|
|
837
843
|
};
|
|
838
844
|
blocks: {
|
|
839
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")[];
|
|
@@ -979,6 +985,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
979
985
|
linkTrackingIds: boolean;
|
|
980
986
|
allowSaveWithErrors: boolean;
|
|
981
987
|
reusableRecommendationStrategy: boolean;
|
|
988
|
+
legacyUnsubscribeConversion: boolean;
|
|
982
989
|
};
|
|
983
990
|
blocks: {
|
|
984
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")[];
|
|
@@ -1124,6 +1131,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1124
1131
|
linkTrackingIds: boolean;
|
|
1125
1132
|
allowSaveWithErrors: boolean;
|
|
1126
1133
|
reusableRecommendationStrategy: boolean;
|
|
1134
|
+
legacyUnsubscribeConversion: boolean;
|
|
1127
1135
|
};
|
|
1128
1136
|
blocks: {
|
|
1129
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")[];
|
|
@@ -1269,6 +1277,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1269
1277
|
linkTrackingIds: boolean;
|
|
1270
1278
|
allowSaveWithErrors: boolean;
|
|
1271
1279
|
reusableRecommendationStrategy: boolean;
|
|
1280
|
+
legacyUnsubscribeConversion: boolean;
|
|
1272
1281
|
};
|
|
1273
1282
|
blocks: {
|
|
1274
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")[];
|
|
@@ -1414,6 +1423,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1414
1423
|
linkTrackingIds: boolean;
|
|
1415
1424
|
allowSaveWithErrors: boolean;
|
|
1416
1425
|
reusableRecommendationStrategy: boolean;
|
|
1426
|
+
legacyUnsubscribeConversion: boolean;
|
|
1417
1427
|
};
|
|
1418
1428
|
blocks: {
|
|
1419
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")[];
|
|
@@ -1559,6 +1569,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1559
1569
|
linkTrackingIds: boolean;
|
|
1560
1570
|
allowSaveWithErrors: boolean;
|
|
1561
1571
|
reusableRecommendationStrategy: boolean;
|
|
1572
|
+
legacyUnsubscribeConversion: boolean;
|
|
1562
1573
|
};
|
|
1563
1574
|
blocks: {
|
|
1564
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")[];
|
|
@@ -1704,6 +1715,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1704
1715
|
linkTrackingIds: boolean;
|
|
1705
1716
|
allowSaveWithErrors: boolean;
|
|
1706
1717
|
reusableRecommendationStrategy: boolean;
|
|
1718
|
+
legacyUnsubscribeConversion: boolean;
|
|
1707
1719
|
};
|
|
1708
1720
|
blocks: {
|
|
1709
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")[];
|
|
@@ -1849,6 +1861,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1849
1861
|
linkTrackingIds: boolean;
|
|
1850
1862
|
allowSaveWithErrors: boolean;
|
|
1851
1863
|
reusableRecommendationStrategy: boolean;
|
|
1864
|
+
legacyUnsubscribeConversion: boolean;
|
|
1852
1865
|
};
|
|
1853
1866
|
blocks: {
|
|
1854
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")[];
|
|
@@ -1994,6 +2007,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1994
2007
|
linkTrackingIds: boolean;
|
|
1995
2008
|
allowSaveWithErrors: boolean;
|
|
1996
2009
|
reusableRecommendationStrategy: boolean;
|
|
2010
|
+
legacyUnsubscribeConversion: boolean;
|
|
1997
2011
|
};
|
|
1998
2012
|
blocks: {
|
|
1999
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")[];
|
|
@@ -2139,6 +2153,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2139
2153
|
linkTrackingIds: boolean;
|
|
2140
2154
|
allowSaveWithErrors: boolean;
|
|
2141
2155
|
reusableRecommendationStrategy: boolean;
|
|
2156
|
+
legacyUnsubscribeConversion: boolean;
|
|
2142
2157
|
};
|
|
2143
2158
|
blocks: {
|
|
2144
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")[];
|
|
@@ -2284,6 +2299,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2284
2299
|
linkTrackingIds: boolean;
|
|
2285
2300
|
allowSaveWithErrors: boolean;
|
|
2286
2301
|
reusableRecommendationStrategy: boolean;
|
|
2302
|
+
legacyUnsubscribeConversion: boolean;
|
|
2287
2303
|
};
|
|
2288
2304
|
blocks: {
|
|
2289
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")[];
|
|
@@ -2429,6 +2445,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2429
2445
|
linkTrackingIds: boolean;
|
|
2430
2446
|
allowSaveWithErrors: boolean;
|
|
2431
2447
|
reusableRecommendationStrategy: boolean;
|
|
2448
|
+
legacyUnsubscribeConversion: boolean;
|
|
2432
2449
|
};
|
|
2433
2450
|
blocks: {
|
|
2434
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")[];
|
|
@@ -2586,6 +2603,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2586
2603
|
linkTrackingIds: boolean;
|
|
2587
2604
|
allowSaveWithErrors: boolean;
|
|
2588
2605
|
reusableRecommendationStrategy: boolean;
|
|
2606
|
+
legacyUnsubscribeConversion: boolean;
|
|
2589
2607
|
};
|
|
2590
2608
|
blocks: {
|
|
2591
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")[];
|
|
@@ -2731,6 +2749,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2731
2749
|
linkTrackingIds: boolean;
|
|
2732
2750
|
allowSaveWithErrors: boolean;
|
|
2733
2751
|
reusableRecommendationStrategy: boolean;
|
|
2752
|
+
legacyUnsubscribeConversion: boolean;
|
|
2734
2753
|
};
|
|
2735
2754
|
blocks: {
|
|
2736
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")[];
|
|
@@ -2878,6 +2897,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2878
2897
|
linkTrackingIds: boolean;
|
|
2879
2898
|
allowSaveWithErrors: boolean;
|
|
2880
2899
|
reusableRecommendationStrategy: boolean;
|
|
2900
|
+
legacyUnsubscribeConversion: boolean;
|
|
2881
2901
|
};
|
|
2882
2902
|
blocks: {
|
|
2883
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")[];
|
|
@@ -8,6 +8,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
8
8
|
hasChanges: boolean;
|
|
9
9
|
changeSeq: number;
|
|
10
10
|
isStripoInitialized: boolean;
|
|
11
|
+
isLegacyUnsubscribeModalRequested: boolean;
|
|
11
12
|
templateId: string;
|
|
12
13
|
syncModulesEnabled: boolean;
|
|
13
14
|
trackIdSessionFloor: number;
|
|
@@ -22,6 +23,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
22
23
|
hasChanges: boolean;
|
|
23
24
|
changeSeq: number;
|
|
24
25
|
isStripoInitialized: boolean;
|
|
26
|
+
isLegacyUnsubscribeModalRequested: boolean;
|
|
25
27
|
templateId: string;
|
|
26
28
|
syncModulesEnabled: boolean;
|
|
27
29
|
trackIdSessionFloor: number;
|
|
@@ -35,6 +37,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
35
37
|
hasChanges: boolean;
|
|
36
38
|
changeSeq: number;
|
|
37
39
|
isStripoInitialized: boolean;
|
|
40
|
+
isLegacyUnsubscribeModalRequested: boolean;
|
|
38
41
|
templateId: string;
|
|
39
42
|
syncModulesEnabled: boolean;
|
|
40
43
|
trackIdSessionFloor: number;
|
|
@@ -49,6 +52,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
49
52
|
hasChanges: boolean;
|
|
50
53
|
changeSeq: number;
|
|
51
54
|
isStripoInitialized: boolean;
|
|
55
|
+
isLegacyUnsubscribeModalRequested: boolean;
|
|
52
56
|
templateId: string;
|
|
53
57
|
syncModulesEnabled: boolean;
|
|
54
58
|
trackIdSessionFloor: number;
|
|
@@ -62,6 +66,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
62
66
|
hasChanges: boolean;
|
|
63
67
|
changeSeq: number;
|
|
64
68
|
isStripoInitialized: boolean;
|
|
69
|
+
isLegacyUnsubscribeModalRequested: boolean;
|
|
65
70
|
templateId: string;
|
|
66
71
|
syncModulesEnabled: boolean;
|
|
67
72
|
trackIdSessionFloor: number;
|
|
@@ -76,6 +81,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
76
81
|
hasChanges: boolean;
|
|
77
82
|
changeSeq: number;
|
|
78
83
|
isStripoInitialized: boolean;
|
|
84
|
+
isLegacyUnsubscribeModalRequested: boolean;
|
|
79
85
|
templateId: string;
|
|
80
86
|
syncModulesEnabled: boolean;
|
|
81
87
|
trackIdSessionFloor: number;
|
|
@@ -89,6 +95,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
89
95
|
hasChanges: boolean;
|
|
90
96
|
changeSeq: number;
|
|
91
97
|
isStripoInitialized: boolean;
|
|
98
|
+
isLegacyUnsubscribeModalRequested: boolean;
|
|
92
99
|
templateId: string;
|
|
93
100
|
syncModulesEnabled: boolean;
|
|
94
101
|
trackIdSessionFloor: number;
|
|
@@ -103,6 +110,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
103
110
|
hasChanges: boolean;
|
|
104
111
|
changeSeq: number;
|
|
105
112
|
isStripoInitialized: boolean;
|
|
113
|
+
isLegacyUnsubscribeModalRequested: boolean;
|
|
106
114
|
templateId: string;
|
|
107
115
|
syncModulesEnabled: boolean;
|
|
108
116
|
trackIdSessionFloor: number;
|
|
@@ -116,6 +124,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
116
124
|
hasChanges: boolean;
|
|
117
125
|
changeSeq: number;
|
|
118
126
|
isStripoInitialized: boolean;
|
|
127
|
+
isLegacyUnsubscribeModalRequested: boolean;
|
|
119
128
|
templateId: string;
|
|
120
129
|
syncModulesEnabled: boolean;
|
|
121
130
|
trackIdSessionFloor: number;
|
|
@@ -130,6 +139,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
130
139
|
hasChanges: boolean;
|
|
131
140
|
changeSeq: number;
|
|
132
141
|
isStripoInitialized: boolean;
|
|
142
|
+
isLegacyUnsubscribeModalRequested: boolean;
|
|
133
143
|
templateId: string;
|
|
134
144
|
syncModulesEnabled: boolean;
|
|
135
145
|
trackIdSessionFloor: number;
|
|
@@ -143,6 +153,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
143
153
|
hasChanges: boolean;
|
|
144
154
|
changeSeq: number;
|
|
145
155
|
isStripoInitialized: boolean;
|
|
156
|
+
isLegacyUnsubscribeModalRequested: boolean;
|
|
146
157
|
templateId: string;
|
|
147
158
|
syncModulesEnabled: boolean;
|
|
148
159
|
trackIdSessionFloor: number;
|
|
@@ -157,6 +168,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
157
168
|
hasChanges: boolean;
|
|
158
169
|
changeSeq: number;
|
|
159
170
|
isStripoInitialized: boolean;
|
|
171
|
+
isLegacyUnsubscribeModalRequested: boolean;
|
|
160
172
|
templateId: string;
|
|
161
173
|
syncModulesEnabled: boolean;
|
|
162
174
|
trackIdSessionFloor: number;
|
|
@@ -170,6 +182,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
170
182
|
hasChanges: boolean;
|
|
171
183
|
changeSeq: number;
|
|
172
184
|
isStripoInitialized: boolean;
|
|
185
|
+
isLegacyUnsubscribeModalRequested: boolean;
|
|
173
186
|
templateId: string;
|
|
174
187
|
syncModulesEnabled: boolean;
|
|
175
188
|
trackIdSessionFloor: number;
|
|
@@ -184,6 +197,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
184
197
|
hasChanges: boolean;
|
|
185
198
|
changeSeq: number;
|
|
186
199
|
isStripoInitialized: boolean;
|
|
200
|
+
isLegacyUnsubscribeModalRequested: boolean;
|
|
187
201
|
templateId: string;
|
|
188
202
|
syncModulesEnabled: boolean;
|
|
189
203
|
trackIdSessionFloor: number;
|
|
@@ -197,6 +211,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
197
211
|
hasChanges: boolean;
|
|
198
212
|
changeSeq: number;
|
|
199
213
|
isStripoInitialized: boolean;
|
|
214
|
+
isLegacyUnsubscribeModalRequested: boolean;
|
|
200
215
|
templateId: string;
|
|
201
216
|
syncModulesEnabled: boolean;
|
|
202
217
|
trackIdSessionFloor: number;
|
|
@@ -211,6 +226,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
211
226
|
hasChanges: boolean;
|
|
212
227
|
changeSeq: number;
|
|
213
228
|
isStripoInitialized: boolean;
|
|
229
|
+
isLegacyUnsubscribeModalRequested: boolean;
|
|
214
230
|
templateId: string;
|
|
215
231
|
syncModulesEnabled: boolean;
|
|
216
232
|
trackIdSessionFloor: number;
|
|
@@ -224,6 +240,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
224
240
|
hasChanges: boolean;
|
|
225
241
|
changeSeq: number;
|
|
226
242
|
isStripoInitialized: boolean;
|
|
243
|
+
isLegacyUnsubscribeModalRequested: boolean;
|
|
227
244
|
templateId: string;
|
|
228
245
|
syncModulesEnabled: boolean;
|
|
229
246
|
trackIdSessionFloor: number;
|
|
@@ -238,6 +255,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
238
255
|
hasChanges: boolean;
|
|
239
256
|
changeSeq: number;
|
|
240
257
|
isStripoInitialized: boolean;
|
|
258
|
+
isLegacyUnsubscribeModalRequested: boolean;
|
|
241
259
|
templateId: string;
|
|
242
260
|
syncModulesEnabled: boolean;
|
|
243
261
|
trackIdSessionFloor: number;
|
|
@@ -251,6 +269,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
251
269
|
hasChanges: boolean;
|
|
252
270
|
changeSeq: number;
|
|
253
271
|
isStripoInitialized: boolean;
|
|
272
|
+
isLegacyUnsubscribeModalRequested: boolean;
|
|
254
273
|
templateId: string;
|
|
255
274
|
syncModulesEnabled: boolean;
|
|
256
275
|
trackIdSessionFloor: number;
|
|
@@ -265,6 +284,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
265
284
|
hasChanges: boolean;
|
|
266
285
|
changeSeq: number;
|
|
267
286
|
isStripoInitialized: boolean;
|
|
287
|
+
isLegacyUnsubscribeModalRequested: boolean;
|
|
268
288
|
templateId: string;
|
|
269
289
|
syncModulesEnabled: boolean;
|
|
270
290
|
trackIdSessionFloor: number;
|
|
@@ -278,6 +298,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
278
298
|
hasChanges: boolean;
|
|
279
299
|
changeSeq: number;
|
|
280
300
|
isStripoInitialized: boolean;
|
|
301
|
+
isLegacyUnsubscribeModalRequested: boolean;
|
|
281
302
|
templateId: string;
|
|
282
303
|
syncModulesEnabled: boolean;
|
|
283
304
|
trackIdSessionFloor: number;
|
|
@@ -292,6 +313,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
292
313
|
hasChanges: boolean;
|
|
293
314
|
changeSeq: number;
|
|
294
315
|
isStripoInitialized: boolean;
|
|
316
|
+
isLegacyUnsubscribeModalRequested: boolean;
|
|
295
317
|
templateId: string;
|
|
296
318
|
syncModulesEnabled: boolean;
|
|
297
319
|
trackIdSessionFloor: number;
|
|
@@ -305,6 +327,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
305
327
|
hasChanges: boolean;
|
|
306
328
|
changeSeq: number;
|
|
307
329
|
isStripoInitialized: boolean;
|
|
330
|
+
isLegacyUnsubscribeModalRequested: boolean;
|
|
308
331
|
templateId: string;
|
|
309
332
|
syncModulesEnabled: boolean;
|
|
310
333
|
trackIdSessionFloor: number;
|
|
@@ -319,6 +342,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
319
342
|
hasChanges: boolean;
|
|
320
343
|
changeSeq: number;
|
|
321
344
|
isStripoInitialized: boolean;
|
|
345
|
+
isLegacyUnsubscribeModalRequested: boolean;
|
|
322
346
|
templateId: string;
|
|
323
347
|
syncModulesEnabled: boolean;
|
|
324
348
|
trackIdSessionFloor: number;
|
|
@@ -332,6 +356,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
332
356
|
hasChanges: boolean;
|
|
333
357
|
changeSeq: number;
|
|
334
358
|
isStripoInitialized: boolean;
|
|
359
|
+
isLegacyUnsubscribeModalRequested: boolean;
|
|
335
360
|
templateId: string;
|
|
336
361
|
syncModulesEnabled: boolean;
|
|
337
362
|
trackIdSessionFloor: number;
|
|
@@ -0,0 +1,10 @@
|
|
|
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;
|