@useinsider/guido 3.30.0-beta.232ea3c → 3.30.0-beta.2d741af
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 +12 -1
- package/dist/components/Guido.vue.js +5 -5
- package/dist/components/Guido.vue2.js +112 -106
- package/dist/components/organisms/unsubscribe/SfmcUnsubscribeConvertedModal.vue.js +17 -0
- package/dist/components/organisms/unsubscribe/SfmcUnsubscribeConvertedModal.vue2.js +30 -0
- package/dist/composables/useModuleRepair.js +56 -50
- package/dist/composables/useStripo.js +87 -79
- package/dist/config/migrator/index.js +10 -9
- package/dist/config/migrator/sfmcUnsubscribeTextMigrator.js +20 -0
- package/dist/enums/academy.js +2 -1
- package/dist/guido.css +1 -1
- package/dist/package.json.js +2 -2
- package/dist/src/components/organisms/unsubscribe/SfmcUnsubscribeConvertedModal.vue.d.ts +2 -0
- package/dist/src/composables/useModuleRepair.d.ts +1 -1
- package/dist/src/config/migrator/sfmcUnsubscribeTextMigrator.d.ts +1 -0
- package/dist/src/enums/academy.d.ts +1 -0
- package/dist/src/stores/editor.d.ts +54 -0
- package/dist/src/utils/legacyUnsubscribeConversion.d.ts +3 -0
- package/dist/stores/editor.js +2 -0
- package/dist/utils/legacyUnsubscribeConversion.js +69 -28
- package/package.json +1 -1
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
import { useActionsApi as
|
|
2
|
-
import { useAmbiguousDynamicContent as
|
|
3
|
-
import { useBlocksConfig as
|
|
4
|
-
import { useConfig as
|
|
5
|
-
import { useCustomInterfaceAppearance as
|
|
6
|
-
import { useFullStoryBridge as
|
|
7
|
-
import { useModuleRepair as
|
|
8
|
-
import { useStripoEventHandler as
|
|
9
|
-
import { useStripoNotifications as
|
|
10
|
-
import { useToaster as
|
|
11
|
-
import { localePatch as
|
|
12
|
-
import { en as
|
|
13
|
-
import { ToasterTypeOptions as
|
|
14
|
-
import { useStripoApi as
|
|
15
|
-
import
|
|
1
|
+
import { useActionsApi as z } from "./useActionsApi.js";
|
|
2
|
+
import { useAmbiguousDynamicContent as $ } from "./useAmbiguousDynamicContent.js";
|
|
3
|
+
import { useBlocksConfig as G } from "./useBlocksConfig.js";
|
|
4
|
+
import { useConfig as X } from "./useConfig.js";
|
|
5
|
+
import { useCustomInterfaceAppearance as B } from "./useCustomInterfaceAppearance.js";
|
|
6
|
+
import { useFullStoryBridge as J } from "./useFullStoryBridge.js";
|
|
7
|
+
import { useModuleRepair as K } from "./useModuleRepair.js";
|
|
8
|
+
import { useStripoEventHandler as Q } from "./useStripoEventHandler.js";
|
|
9
|
+
import { useStripoNotifications as W } from "./useStripoNotifications.js";
|
|
10
|
+
import { useToaster as Y } from "./useToaster.js";
|
|
11
|
+
import { localePatch as Z } from "../config/i18n/index.js";
|
|
12
|
+
import { en as F } from "../config/i18n/en/index.js";
|
|
13
|
+
import { ToasterTypeOptions as ee } from "../enums/toaster.js";
|
|
14
|
+
import { useStripoApi as te } from "../services/stripoApi.js";
|
|
15
|
+
import oe from "../static/styles/customEditorStyle.css.js";
|
|
16
16
|
import { useEditorStore as T } from "../stores/editor.js";
|
|
17
|
-
import { buildMergeTagEntries as
|
|
18
|
-
import { getStripoRuntimeBaseUrl as
|
|
19
|
-
let d = null,
|
|
20
|
-
const
|
|
21
|
-
const { features:
|
|
17
|
+
import { buildMergeTagEntries as re, flattenDynamicContentList as ie } from "../utils/genericUtil.js";
|
|
18
|
+
import { getStripoRuntimeBaseUrl as ne } from "../utils/stripoRuntime.js";
|
|
19
|
+
let d = null, A = !1;
|
|
20
|
+
const Be = (o) => {
|
|
21
|
+
const { features: m, template: p, isFeatureEnabled: f } = X(), { handleError: g, showToaster: P } = Y(), { getToken: U, getCustomFonts: R, getSyncModulesStatus: D } = te(), { handleEvent: V } = Q(), { handleModuleAdd: L } = K(), { restorePending: I } = $(), { getStripoBlocksConfig: O } = G(), { getStripoNotifications: q } = W(), S = () => d || (d = new Promise((n, a) => {
|
|
22
22
|
if (document.getElementById("UiEditorScript")) {
|
|
23
23
|
n();
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
|
-
const i =
|
|
26
|
+
const i = ne();
|
|
27
27
|
if (!i) {
|
|
28
|
-
|
|
28
|
+
a(
|
|
29
29
|
new Error("guido.stripo.version is not set in package.json. Please configure the Stripo version.")
|
|
30
30
|
);
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
}, document.body.appendChild(
|
|
33
|
+
const s = `${i}UIEditor.js`, t = document.createElement("script");
|
|
34
|
+
t.id = "UiEditorScript", t.type = "module", t.src = s, t.onload = () => {
|
|
35
|
+
A = !0, n();
|
|
36
|
+
}, t.onerror = () => {
|
|
37
|
+
t.remove(), a(new Error(`Failed to load Stripo UIEditor script from S3: ${s}`));
|
|
38
|
+
}, document.body.appendChild(t);
|
|
39
39
|
}), d.catch(() => {
|
|
40
40
|
d = null;
|
|
41
|
-
}), d), x = async (n,
|
|
42
|
-
var w, k,
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
const
|
|
46
|
-
|
|
41
|
+
}), d), x = async (n, a, i, s = [], t = !1, c = !1) => {
|
|
42
|
+
var w, k, _, v;
|
|
43
|
+
const e = T(), { html: y, css: h } = n, { baseBlocks: C, extensions: H } = await O();
|
|
44
|
+
o.mark("blocks_config_ready");
|
|
45
|
+
const E = ((w = m.value) == null ? void 0 : w.displayConditions) ?? !0, M = ((k = m.value) == null ? void 0 : k.modulesDisabled) ?? !1, b = c || (((_ = p.value) == null ? void 0 : _.forceRecreate) ?? !1), N = "https://email-static.useinsider.com https://edge.fullstory.com https://rs.fullstory.com";
|
|
46
|
+
o.setTemplate({ html: y, css: h, forceRecreate: b }), B().importCss(), o.mark("init_editor"), await window.UIEditor.initEditor(
|
|
47
47
|
document.querySelector("#guido-editor"),
|
|
48
48
|
{
|
|
49
|
-
metadata:
|
|
50
|
-
html:
|
|
51
|
-
css:
|
|
52
|
-
forceRecreate:
|
|
49
|
+
metadata: a,
|
|
50
|
+
html: y,
|
|
51
|
+
css: h,
|
|
52
|
+
forceRecreate: b,
|
|
53
53
|
locale: "en",
|
|
54
54
|
undoButtonSelector: "#guido__undo-button",
|
|
55
55
|
redoButtonSelector: "#guido__redo-button",
|
|
56
56
|
mobileViewButtonSelector: ".guido__view-option-selection-mobile",
|
|
57
57
|
desktopViewButtonSelector: ".guido__view-option-selection-desktop",
|
|
58
58
|
codeEditorButtonSelector: "#guido__code-button",
|
|
59
|
-
customAppearanceMergetags: !
|
|
59
|
+
customAppearanceMergetags: !f("liquidSyntax"),
|
|
60
60
|
customAppearanceMergetagsBorderColor: "#f1f3fe",
|
|
61
61
|
customAppearanceMergetagsBackgroundColor: "#f1f3fe",
|
|
62
|
-
customViewStyles:
|
|
63
|
-
conditionsEnabled:
|
|
64
|
-
customConditionsEnabled:
|
|
62
|
+
customViewStyles: oe,
|
|
63
|
+
conditionsEnabled: E,
|
|
64
|
+
customConditionsEnabled: E,
|
|
65
65
|
enableXSSSecurity: !0,
|
|
66
|
-
modulesDisabled:
|
|
67
|
-
syncModulesEnabled:
|
|
66
|
+
modulesDisabled: M,
|
|
67
|
+
syncModulesEnabled: t,
|
|
68
68
|
messageSettingsEnabled: !0,
|
|
69
69
|
displayGmailAnnotations: !0,
|
|
70
70
|
displayHiddenPreheader: !1,
|
|
@@ -74,55 +74,63 @@ const ve = (t) => {
|
|
|
74
74
|
copyPasteEnabled: !1,
|
|
75
75
|
selectElementAfterDrop: !0,
|
|
76
76
|
sameFontSizeForOutlook: !0,
|
|
77
|
-
allowedScriptSourceDomains:
|
|
78
|
-
...
|
|
77
|
+
allowedScriptSourceDomains: N,
|
|
78
|
+
...C ? { baseBlocks: C } : {},
|
|
79
79
|
editorFonts: {
|
|
80
80
|
showDefaultStandardFonts: !0,
|
|
81
81
|
showDefaultNotStandardFonts: !0,
|
|
82
|
-
customFonts:
|
|
82
|
+
customFonts: s
|
|
83
83
|
},
|
|
84
84
|
mergeTags: [
|
|
85
85
|
{
|
|
86
|
-
entries:
|
|
86
|
+
entries: re(
|
|
87
87
|
i.preselectedDynamicContentList,
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
ie((v = p.value) == null ? void 0 : v.dynamicContentList),
|
|
89
|
+
f("liquidSyntax")
|
|
90
90
|
)
|
|
91
91
|
}
|
|
92
92
|
],
|
|
93
93
|
async onTokenRefreshRequest(r) {
|
|
94
94
|
try {
|
|
95
|
-
|
|
96
|
-
const l = await
|
|
97
|
-
|
|
95
|
+
o.mark("token_start");
|
|
96
|
+
const l = await U();
|
|
97
|
+
o.mark("token_end"), r(l);
|
|
98
98
|
} catch (l) {
|
|
99
|
-
|
|
99
|
+
g(l, "Failed to refresh token");
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
102
|
onTemplateLoaded() {
|
|
103
103
|
try {
|
|
104
|
-
const { activateCustomViewStyles: r, updateTimerInClonedTemplate: l } =
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
const { activateCustomViewStyles: r, updateTimerInClonedTemplate: l } = z(), { injectFullStory: j } = J();
|
|
105
|
+
B().importCss(), r(), j(), I(), l(), i.onReady(), e.isStripoInitialized = !0, e.loadingStatus = !1, setTimeout(() => {
|
|
106
|
+
try {
|
|
107
|
+
if (e.isUnsubscribeConvertedOnLoad) {
|
|
108
|
+
const u = e.hasChanges;
|
|
109
|
+
e.hasChanges = !0, e.changeSeq += 1, e.isUnsubscribeConvertedOnLoad = !1, u && i.onLoadConversionSettled();
|
|
110
|
+
} else
|
|
111
|
+
e.hasChanges = !1;
|
|
112
|
+
} catch (u) {
|
|
113
|
+
console.error("Failed to settle the change state after template load:", u);
|
|
114
|
+
}
|
|
115
|
+
}, 1e3), o.markReady();
|
|
108
116
|
} catch (r) {
|
|
109
|
-
|
|
117
|
+
g(r, "Failed to load custom interface appearance");
|
|
110
118
|
}
|
|
111
119
|
},
|
|
112
120
|
onCodeEditorVisibilityChanged(r) {
|
|
113
|
-
|
|
121
|
+
e.isCodeEditorOpen = r;
|
|
114
122
|
},
|
|
115
123
|
onEditorVisualModeChanged(r) {
|
|
116
|
-
|
|
124
|
+
e.editorVisualMode = r.toLowerCase();
|
|
117
125
|
},
|
|
118
126
|
onVersionHistoryVisibilityChanged(r) {
|
|
119
|
-
|
|
127
|
+
e.isVersionHistoryOpen = r;
|
|
120
128
|
},
|
|
121
129
|
onDataChanged() {
|
|
122
|
-
|
|
130
|
+
e.hasChanges = !0, e.changeSeq += 1;
|
|
123
131
|
},
|
|
124
|
-
onEvent:
|
|
125
|
-
onModuleAdd:
|
|
132
|
+
onEvent: V,
|
|
133
|
+
onModuleAdd: L,
|
|
126
134
|
notifications: q(),
|
|
127
135
|
// Stripo deselects the block on any click outside the canvas, so every surface
|
|
128
136
|
// that belongs to the block's own flow has to be listed here (SD-153273).
|
|
@@ -133,35 +141,35 @@ const ve = (t) => {
|
|
|
133
141
|
".in-modal-v2-wrapper",
|
|
134
142
|
".in-toasts-wrapper"
|
|
135
143
|
],
|
|
136
|
-
extensions:
|
|
137
|
-
localePatch:
|
|
144
|
+
extensions: H,
|
|
145
|
+
localePatch: Z
|
|
138
146
|
}
|
|
139
147
|
);
|
|
140
148
|
};
|
|
141
|
-
return { initPlugin: async (n,
|
|
142
|
-
const
|
|
149
|
+
return { initPlugin: async (n, a, i, s = !1) => {
|
|
150
|
+
const t = T();
|
|
143
151
|
try {
|
|
144
|
-
|
|
145
|
-
const [c,
|
|
152
|
+
o.mark("plugin_start"), o.setScriptPreloaded(A), await S(), o.mark("script_ready");
|
|
153
|
+
const [c, e] = await Promise.all([
|
|
146
154
|
R(),
|
|
147
155
|
D()
|
|
148
156
|
]);
|
|
149
|
-
|
|
157
|
+
o.mark("fonts_sync_ready"), t.syncModulesEnabled = e, await x(n, a, i, c, e, s);
|
|
150
158
|
} catch {
|
|
151
|
-
|
|
152
|
-
type:
|
|
153
|
-
message:
|
|
159
|
+
t.loadingStatus = !1, P({
|
|
160
|
+
type: ee.Error,
|
|
161
|
+
message: F["An error has occurred. Please report the error code to support."],
|
|
154
162
|
actionButton: {
|
|
155
|
-
text:
|
|
163
|
+
text: F["Reload page"],
|
|
156
164
|
onClick: () => window.location.reload()
|
|
157
165
|
}
|
|
158
|
-
}),
|
|
166
|
+
}), o.markFailed();
|
|
159
167
|
}
|
|
160
168
|
}, preloadRuntime: () => {
|
|
161
|
-
|
|
169
|
+
S().catch(() => {
|
|
162
170
|
});
|
|
163
171
|
} };
|
|
164
172
|
};
|
|
165
173
|
export {
|
|
166
|
-
|
|
174
|
+
Be as useStripo
|
|
167
175
|
};
|
|
@@ -5,16 +5,17 @@ import { migrateItemsBlock as g } from "./itemsBlockMigrator.js";
|
|
|
5
5
|
import { migrateItemsPriceFormat as n } from "./itemsPriceFormatMigrator.js";
|
|
6
6
|
import { migrateLegacyUnsubscribeText as p } from "./legacyUnsubscribeTextMigrator.js";
|
|
7
7
|
import { migrateProductNameLink as f } from "./productNameLinkMigrator.js";
|
|
8
|
-
import { migrateRadioButton as
|
|
9
|
-
import { migrateRecommendation as
|
|
10
|
-
import { migrateRecommendationPartnerScope as
|
|
11
|
-
import { migrateRecommendationTitle as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
8
|
+
import { migrateRadioButton as s } from "./radioButtonMigrator.js";
|
|
9
|
+
import { migrateRecommendation as l } from "./recommendationMigrator.js";
|
|
10
|
+
import { migrateRecommendationPartnerScope as b } from "./recommendationPartnerMigrator.js";
|
|
11
|
+
import { migrateRecommendationTitle as d } from "./recommendationTitleMigrator.js";
|
|
12
|
+
import { migrateSfmcUnsubscribeText as k } from "./sfmcUnsubscribeTextMigrator.js";
|
|
13
|
+
import { migrateSocialIcons as u } from "./socialIconMigrator.js";
|
|
14
|
+
import { migrateUnsubscribe as x } from "./unsubscribeMigrator.js";
|
|
15
|
+
const N = async (t, i = {}, o, r) => {
|
|
15
16
|
let m = t;
|
|
16
|
-
return m = e(m), m =
|
|
17
|
+
return m = e(m), m = s(m), m = k(m), m = p(m), m = await x(m), m = a(m), m = l(m, i), o && (m = b(m, o)), m = d(m), m = g(m), r != null && r.itemsPriceFormatting && (m = n(m)), m = f(m), m = u(m), m = c(m), m;
|
|
17
18
|
};
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
N as migrate
|
|
20
21
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { useConfigStore as s } from "../../stores/config.js";
|
|
2
|
+
import { useEditorStore as n } from "../../stores/editor.js";
|
|
3
|
+
import { hasAnyUnsubscribeClass as i, convertAllUnsubscribeInDocumentHtml as c } from "../../utils/legacyUnsubscribeConversion.js";
|
|
4
|
+
const a = (r) => {
|
|
5
|
+
try {
|
|
6
|
+
if (!i(r) || !s().isFeatureEnabled("blockUnsubscribeLinks"))
|
|
7
|
+
return r;
|
|
8
|
+
const { html: e, converted: o } = c(r);
|
|
9
|
+
if (o) {
|
|
10
|
+
const t = n();
|
|
11
|
+
t.isSfmcUnsubscribeModalRequested = !0, t.isUnsubscribeConvertedOnLoad = !0;
|
|
12
|
+
}
|
|
13
|
+
return e;
|
|
14
|
+
} catch (e) {
|
|
15
|
+
return console.error("SfmcUnsubscribeTextMigrator failed:", e), r;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
a as migrateSfmcUnsubscribeText
|
|
20
|
+
};
|
package/dist/enums/academy.js
CHANGED
|
@@ -4,7 +4,8 @@ const e = "https://academy.insiderone.com", o = {
|
|
|
4
4
|
AMP_FOR_EMAILS: `${e}/docs/amp-for-emails`,
|
|
5
5
|
EMAIL_DISPLAY_CONDITIONS: `${e}/docs/new-editor-add-display-conditions-to-an-email`,
|
|
6
6
|
EMAIL_RECOMMENDATION_BLOCK: `${e}/docs/new-editor-email-recommendation-block`,
|
|
7
|
-
LEGACY_UNSUBSCRIBE_MODULE: `${e}/docs/new-editor-add-unsubscribe-pages-into-emails
|
|
7
|
+
LEGACY_UNSUBSCRIBE_MODULE: `${e}/docs/new-editor-add-unsubscribe-pages-into-emails`,
|
|
8
|
+
SFMC_RELAY: `${e}/docs/sfmc-relay`
|
|
8
9
|
};
|
|
9
10
|
export {
|
|
10
11
|
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-e038bbf8]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-e038bbf8]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-e038bbf8]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-eaf8e461]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-eaf8e461]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-eaf8e461]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-eaf8e461]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-eaf8e461]{object-fit:cover;transform:scale(1)}[data-v-b9a93c6e] .guido__verion-history-view-option-selection-desktop svg,[data-v-b9a93c6e] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-b9a93c6e] .in-segments-wrapper__button_selected,[data-v-b9a93c6e] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.error-list[data-v-c3fd5d4b]{gap:16px}.desktop-browser-header[data-v-d86c5af5]{height:79px;min-height:79px}.desktop-browser-header__left[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:378px}.desktop-browser-header__center[data-v-d86c5af5]{height:79px;background-repeat:repeat-x;background-size:auto 100%;background-position:left top}.desktop-browser-header__right[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:112px}.desktop-preview[data-v-cf946232]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-cf946232]{min-height:504px}.iframe-wrapper[data-v-f255b2bb]{width:258px}.iframe-scaled[data-v-f255b2bb]{width:320px;height:124.0310077519%;transform:scale(.80625);transform-origin:top left}.cropped-text[data-v-eb3d05d7]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-preview-wrapper__phone[data-v-3f472f96]{width:282px}.mobile-preview-wrapper__phone img[data-v-3f472f96]{object-fit:cover;border-radius:44px}.mobile-preview-wrapper__content[data-v-3f472f96]{width:258px;height:450px;left:12px}[data-v-6bcaca8a] .vueperslides__parallax-wrapper{padding-bottom:110px!important}.guido-tab-bar-onboarding[data-v-219b4f7c]{z-index:21}[data-v-fcba7e99] .vueperslides__bullets{pointer-events:none!important}[data-v-fcba7e99] .vueperslides__parallax-wrapper{padding-bottom:110px!important}[data-v-1a34025a] .vueperslides__bullets{pointer-events:none!important}[data-v-1a34025a] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-8fc96a58] .vueperslides__bullets,[data-v-ec2027ff] .vueperslides__bullets,[data-v-b09e80c4] .vueperslides__bullets{pointer-events:none!important}[data-v-b09e80c4] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-9bdef600] .vueperslides__parallax-wrapper{padding-bottom:110px!important}.assign-strategy-drawer .spaced-dot-sep{background-image:linear-gradient(90deg,#91949f 20%,#fff0 0);background-position:center bottom;background-repeat:repeat-x;background-size:5px 1px}.assign-strategy-drawer .spaced-dot-sep--top{background-position:center top}.assign-strategy-drawer .spaced-dot-sep--fc-n:first-child{background:none}.guido-display-condition-create__separator[data-v-929822bc]{height:1px;margin:0 0 24px;background-image:linear-gradient(to right,currentColor 1px,transparent 1px);background-size:5px 1px}.guido-display-condition-create__methods[data-v-929822bc]{gap:16px}.guido-display-condition-select-root[data-v-0d740001] .in-drawer__footer{justify-content:flex-start}.guido-display-condition-select__delete-modal[data-v-0d740001]{position:relative;z-index:145}.guido-display-condition-select__delete-modal[data-v-0d740001] .in-modal-v2-wrapper__header-title{margin-bottom:0}.guido-display-condition-select-root[data-v-0d740001] .in-drawer__content>div{display:flex;flex-direction:column;min-height:100%}.guido-display-condition-select__list[data-v-0d740001]{display:flex;flex-direction:column;gap:24px;margin:0;padding:0;list-style:none}.guido-display-condition-card__header[data-v-0d740001]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px}.guido-display-condition-card__text[data-v-0d740001]{min-width:0}.guido-display-condition-card__name[data-v-0d740001],.guido-display-condition-card__description[data-v-0d740001]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.guido-display-condition-card__actions[data-v-0d740001]{display:flex;flex-shrink:0;align-items:center;gap:16px}.guido-display-condition-card__split[data-v-0d740001]{position:relative;display:flex;gap:1px}.guido-display-condition-card__menu[data-v-0d740001]{z-index:2;min-width:115px}.guido-display-condition-card__divider[data-v-0d740001]{width:1px;height:24px}.guido-display-condition-card__code[data-v-0d740001]{margin:1px 15px 15px;padding:8px;font-family:inherit;white-space:pre-wrap;word-break:break-word}.legacy-strategy-updated-modal[data-v-da2225a1]{position:relative;z-index:145}.ambiguous-dynamic-content-modal__content[data-v-2643213c]{padding-bottom:150px}
|
package/dist/package.json.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const o = "3.30.0-beta.
|
|
1
|
+
const o = "3.30.0-beta.2d741af", s = { stripo: { version: "2.87.0" } }, 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
|
};
|
|
@@ -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;
|
|
@@ -4,7 +4,7 @@ import { type DynamicContentConversionResult } from '@@/Utils/dynamicContentConv
|
|
|
4
4
|
export declare const UNRESOLVED_DYNAMIC_CONTENT_ON_DROP_KEY = "dynamic-content.unresolved-attributes-on-drop";
|
|
5
5
|
export declare const registerUsedAttributes: (html: string, candidates: DynamicContentCandidate[]) => void;
|
|
6
6
|
/**
|
|
7
|
-
* Repairs dropped/copied saved modules (items currency,
|
|
7
|
+
* Repairs dropped/copied saved modules (items currency, unsubscribe → text block,
|
|
8
8
|
* dynamic-content labels → tokens) in one write-back; wired via Stripo's `onModuleAdd` (see `useStripo`).
|
|
9
9
|
*/
|
|
10
10
|
export declare const useModuleRepair: () => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const migrateSfmcUnsubscribeText: (html: string) => string;
|
|
@@ -11,5 +11,6 @@ export declare const ACADEMY_LINKS: {
|
|
|
11
11
|
readonly EMAIL_DISPLAY_CONDITIONS: "https://academy.insiderone.com/docs/new-editor-add-display-conditions-to-an-email";
|
|
12
12
|
readonly EMAIL_RECOMMENDATION_BLOCK: "https://academy.insiderone.com/docs/new-editor-email-recommendation-block";
|
|
13
13
|
readonly LEGACY_UNSUBSCRIBE_MODULE: "https://academy.insiderone.com/docs/new-editor-add-unsubscribe-pages-into-emails";
|
|
14
|
+
readonly SFMC_RELAY: "https://academy.insiderone.com/docs/sfmc-relay";
|
|
14
15
|
};
|
|
15
16
|
export type AcademyLinkKey = keyof typeof ACADEMY_LINKS;
|
|
@@ -13,6 +13,8 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
13
13
|
changeSeq: number;
|
|
14
14
|
isStripoInitialized: boolean;
|
|
15
15
|
isLegacyUnsubscribeModalRequested: boolean;
|
|
16
|
+
isSfmcUnsubscribeModalRequested: boolean;
|
|
17
|
+
isUnsubscribeConvertedOnLoad: boolean;
|
|
16
18
|
templateId: string;
|
|
17
19
|
syncModulesEnabled: boolean;
|
|
18
20
|
trackIdSessionFloor: number;
|
|
@@ -31,6 +33,8 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
31
33
|
changeSeq: number;
|
|
32
34
|
isStripoInitialized: boolean;
|
|
33
35
|
isLegacyUnsubscribeModalRequested: boolean;
|
|
36
|
+
isSfmcUnsubscribeModalRequested: boolean;
|
|
37
|
+
isUnsubscribeConvertedOnLoad: boolean;
|
|
34
38
|
templateId: string;
|
|
35
39
|
syncModulesEnabled: boolean;
|
|
36
40
|
trackIdSessionFloor: number;
|
|
@@ -48,6 +52,8 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
48
52
|
changeSeq: number;
|
|
49
53
|
isStripoInitialized: boolean;
|
|
50
54
|
isLegacyUnsubscribeModalRequested: boolean;
|
|
55
|
+
isSfmcUnsubscribeModalRequested: boolean;
|
|
56
|
+
isUnsubscribeConvertedOnLoad: boolean;
|
|
51
57
|
templateId: string;
|
|
52
58
|
syncModulesEnabled: boolean;
|
|
53
59
|
trackIdSessionFloor: number;
|
|
@@ -66,6 +72,8 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
66
72
|
changeSeq: number;
|
|
67
73
|
isStripoInitialized: boolean;
|
|
68
74
|
isLegacyUnsubscribeModalRequested: boolean;
|
|
75
|
+
isSfmcUnsubscribeModalRequested: boolean;
|
|
76
|
+
isUnsubscribeConvertedOnLoad: boolean;
|
|
69
77
|
templateId: string;
|
|
70
78
|
syncModulesEnabled: boolean;
|
|
71
79
|
trackIdSessionFloor: number;
|
|
@@ -83,6 +91,8 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
83
91
|
changeSeq: number;
|
|
84
92
|
isStripoInitialized: boolean;
|
|
85
93
|
isLegacyUnsubscribeModalRequested: boolean;
|
|
94
|
+
isSfmcUnsubscribeModalRequested: boolean;
|
|
95
|
+
isUnsubscribeConvertedOnLoad: boolean;
|
|
86
96
|
templateId: string;
|
|
87
97
|
syncModulesEnabled: boolean;
|
|
88
98
|
trackIdSessionFloor: number;
|
|
@@ -101,6 +111,8 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
101
111
|
changeSeq: number;
|
|
102
112
|
isStripoInitialized: boolean;
|
|
103
113
|
isLegacyUnsubscribeModalRequested: boolean;
|
|
114
|
+
isSfmcUnsubscribeModalRequested: boolean;
|
|
115
|
+
isUnsubscribeConvertedOnLoad: boolean;
|
|
104
116
|
templateId: string;
|
|
105
117
|
syncModulesEnabled: boolean;
|
|
106
118
|
trackIdSessionFloor: number;
|
|
@@ -118,6 +130,8 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
118
130
|
changeSeq: number;
|
|
119
131
|
isStripoInitialized: boolean;
|
|
120
132
|
isLegacyUnsubscribeModalRequested: boolean;
|
|
133
|
+
isSfmcUnsubscribeModalRequested: boolean;
|
|
134
|
+
isUnsubscribeConvertedOnLoad: boolean;
|
|
121
135
|
templateId: string;
|
|
122
136
|
syncModulesEnabled: boolean;
|
|
123
137
|
trackIdSessionFloor: number;
|
|
@@ -136,6 +150,8 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
136
150
|
changeSeq: number;
|
|
137
151
|
isStripoInitialized: boolean;
|
|
138
152
|
isLegacyUnsubscribeModalRequested: boolean;
|
|
153
|
+
isSfmcUnsubscribeModalRequested: boolean;
|
|
154
|
+
isUnsubscribeConvertedOnLoad: boolean;
|
|
139
155
|
templateId: string;
|
|
140
156
|
syncModulesEnabled: boolean;
|
|
141
157
|
trackIdSessionFloor: number;
|
|
@@ -153,6 +169,8 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
153
169
|
changeSeq: number;
|
|
154
170
|
isStripoInitialized: boolean;
|
|
155
171
|
isLegacyUnsubscribeModalRequested: boolean;
|
|
172
|
+
isSfmcUnsubscribeModalRequested: boolean;
|
|
173
|
+
isUnsubscribeConvertedOnLoad: boolean;
|
|
156
174
|
templateId: string;
|
|
157
175
|
syncModulesEnabled: boolean;
|
|
158
176
|
trackIdSessionFloor: number;
|
|
@@ -171,6 +189,8 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
171
189
|
changeSeq: number;
|
|
172
190
|
isStripoInitialized: boolean;
|
|
173
191
|
isLegacyUnsubscribeModalRequested: boolean;
|
|
192
|
+
isSfmcUnsubscribeModalRequested: boolean;
|
|
193
|
+
isUnsubscribeConvertedOnLoad: boolean;
|
|
174
194
|
templateId: string;
|
|
175
195
|
syncModulesEnabled: boolean;
|
|
176
196
|
trackIdSessionFloor: number;
|
|
@@ -188,6 +208,8 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
188
208
|
changeSeq: number;
|
|
189
209
|
isStripoInitialized: boolean;
|
|
190
210
|
isLegacyUnsubscribeModalRequested: boolean;
|
|
211
|
+
isSfmcUnsubscribeModalRequested: boolean;
|
|
212
|
+
isUnsubscribeConvertedOnLoad: boolean;
|
|
191
213
|
templateId: string;
|
|
192
214
|
syncModulesEnabled: boolean;
|
|
193
215
|
trackIdSessionFloor: number;
|
|
@@ -206,6 +228,8 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
206
228
|
changeSeq: number;
|
|
207
229
|
isStripoInitialized: boolean;
|
|
208
230
|
isLegacyUnsubscribeModalRequested: boolean;
|
|
231
|
+
isSfmcUnsubscribeModalRequested: boolean;
|
|
232
|
+
isUnsubscribeConvertedOnLoad: boolean;
|
|
209
233
|
templateId: string;
|
|
210
234
|
syncModulesEnabled: boolean;
|
|
211
235
|
trackIdSessionFloor: number;
|
|
@@ -223,6 +247,8 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
223
247
|
changeSeq: number;
|
|
224
248
|
isStripoInitialized: boolean;
|
|
225
249
|
isLegacyUnsubscribeModalRequested: boolean;
|
|
250
|
+
isSfmcUnsubscribeModalRequested: boolean;
|
|
251
|
+
isUnsubscribeConvertedOnLoad: boolean;
|
|
226
252
|
templateId: string;
|
|
227
253
|
syncModulesEnabled: boolean;
|
|
228
254
|
trackIdSessionFloor: number;
|
|
@@ -241,6 +267,8 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
241
267
|
changeSeq: number;
|
|
242
268
|
isStripoInitialized: boolean;
|
|
243
269
|
isLegacyUnsubscribeModalRequested: boolean;
|
|
270
|
+
isSfmcUnsubscribeModalRequested: boolean;
|
|
271
|
+
isUnsubscribeConvertedOnLoad: boolean;
|
|
244
272
|
templateId: string;
|
|
245
273
|
syncModulesEnabled: boolean;
|
|
246
274
|
trackIdSessionFloor: number;
|
|
@@ -258,6 +286,8 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
258
286
|
changeSeq: number;
|
|
259
287
|
isStripoInitialized: boolean;
|
|
260
288
|
isLegacyUnsubscribeModalRequested: boolean;
|
|
289
|
+
isSfmcUnsubscribeModalRequested: boolean;
|
|
290
|
+
isUnsubscribeConvertedOnLoad: boolean;
|
|
261
291
|
templateId: string;
|
|
262
292
|
syncModulesEnabled: boolean;
|
|
263
293
|
trackIdSessionFloor: number;
|
|
@@ -276,6 +306,8 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
276
306
|
changeSeq: number;
|
|
277
307
|
isStripoInitialized: boolean;
|
|
278
308
|
isLegacyUnsubscribeModalRequested: boolean;
|
|
309
|
+
isSfmcUnsubscribeModalRequested: boolean;
|
|
310
|
+
isUnsubscribeConvertedOnLoad: boolean;
|
|
279
311
|
templateId: string;
|
|
280
312
|
syncModulesEnabled: boolean;
|
|
281
313
|
trackIdSessionFloor: number;
|
|
@@ -293,6 +325,8 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
293
325
|
changeSeq: number;
|
|
294
326
|
isStripoInitialized: boolean;
|
|
295
327
|
isLegacyUnsubscribeModalRequested: boolean;
|
|
328
|
+
isSfmcUnsubscribeModalRequested: boolean;
|
|
329
|
+
isUnsubscribeConvertedOnLoad: boolean;
|
|
296
330
|
templateId: string;
|
|
297
331
|
syncModulesEnabled: boolean;
|
|
298
332
|
trackIdSessionFloor: number;
|
|
@@ -311,6 +345,8 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
311
345
|
changeSeq: number;
|
|
312
346
|
isStripoInitialized: boolean;
|
|
313
347
|
isLegacyUnsubscribeModalRequested: boolean;
|
|
348
|
+
isSfmcUnsubscribeModalRequested: boolean;
|
|
349
|
+
isUnsubscribeConvertedOnLoad: boolean;
|
|
314
350
|
templateId: string;
|
|
315
351
|
syncModulesEnabled: boolean;
|
|
316
352
|
trackIdSessionFloor: number;
|
|
@@ -328,6 +364,8 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
328
364
|
changeSeq: number;
|
|
329
365
|
isStripoInitialized: boolean;
|
|
330
366
|
isLegacyUnsubscribeModalRequested: boolean;
|
|
367
|
+
isSfmcUnsubscribeModalRequested: boolean;
|
|
368
|
+
isUnsubscribeConvertedOnLoad: boolean;
|
|
331
369
|
templateId: string;
|
|
332
370
|
syncModulesEnabled: boolean;
|
|
333
371
|
trackIdSessionFloor: number;
|
|
@@ -346,6 +384,8 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
346
384
|
changeSeq: number;
|
|
347
385
|
isStripoInitialized: boolean;
|
|
348
386
|
isLegacyUnsubscribeModalRequested: boolean;
|
|
387
|
+
isSfmcUnsubscribeModalRequested: boolean;
|
|
388
|
+
isUnsubscribeConvertedOnLoad: boolean;
|
|
349
389
|
templateId: string;
|
|
350
390
|
syncModulesEnabled: boolean;
|
|
351
391
|
trackIdSessionFloor: number;
|
|
@@ -363,6 +403,8 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
363
403
|
changeSeq: number;
|
|
364
404
|
isStripoInitialized: boolean;
|
|
365
405
|
isLegacyUnsubscribeModalRequested: boolean;
|
|
406
|
+
isSfmcUnsubscribeModalRequested: boolean;
|
|
407
|
+
isUnsubscribeConvertedOnLoad: boolean;
|
|
366
408
|
templateId: string;
|
|
367
409
|
syncModulesEnabled: boolean;
|
|
368
410
|
trackIdSessionFloor: number;
|
|
@@ -381,6 +423,8 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
381
423
|
changeSeq: number;
|
|
382
424
|
isStripoInitialized: boolean;
|
|
383
425
|
isLegacyUnsubscribeModalRequested: boolean;
|
|
426
|
+
isSfmcUnsubscribeModalRequested: boolean;
|
|
427
|
+
isUnsubscribeConvertedOnLoad: boolean;
|
|
384
428
|
templateId: string;
|
|
385
429
|
syncModulesEnabled: boolean;
|
|
386
430
|
trackIdSessionFloor: number;
|
|
@@ -398,6 +442,8 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
398
442
|
changeSeq: number;
|
|
399
443
|
isStripoInitialized: boolean;
|
|
400
444
|
isLegacyUnsubscribeModalRequested: boolean;
|
|
445
|
+
isSfmcUnsubscribeModalRequested: boolean;
|
|
446
|
+
isUnsubscribeConvertedOnLoad: boolean;
|
|
401
447
|
templateId: string;
|
|
402
448
|
syncModulesEnabled: boolean;
|
|
403
449
|
trackIdSessionFloor: number;
|
|
@@ -416,6 +462,8 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
416
462
|
changeSeq: number;
|
|
417
463
|
isStripoInitialized: boolean;
|
|
418
464
|
isLegacyUnsubscribeModalRequested: boolean;
|
|
465
|
+
isSfmcUnsubscribeModalRequested: boolean;
|
|
466
|
+
isUnsubscribeConvertedOnLoad: boolean;
|
|
419
467
|
templateId: string;
|
|
420
468
|
syncModulesEnabled: boolean;
|
|
421
469
|
trackIdSessionFloor: number;
|
|
@@ -433,6 +481,8 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
433
481
|
changeSeq: number;
|
|
434
482
|
isStripoInitialized: boolean;
|
|
435
483
|
isLegacyUnsubscribeModalRequested: boolean;
|
|
484
|
+
isSfmcUnsubscribeModalRequested: boolean;
|
|
485
|
+
isUnsubscribeConvertedOnLoad: boolean;
|
|
436
486
|
templateId: string;
|
|
437
487
|
syncModulesEnabled: boolean;
|
|
438
488
|
trackIdSessionFloor: number;
|
|
@@ -451,6 +501,8 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
451
501
|
changeSeq: number;
|
|
452
502
|
isStripoInitialized: boolean;
|
|
453
503
|
isLegacyUnsubscribeModalRequested: boolean;
|
|
504
|
+
isSfmcUnsubscribeModalRequested: boolean;
|
|
505
|
+
isUnsubscribeConvertedOnLoad: boolean;
|
|
454
506
|
templateId: string;
|
|
455
507
|
syncModulesEnabled: boolean;
|
|
456
508
|
trackIdSessionFloor: number;
|
|
@@ -468,6 +520,8 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
468
520
|
changeSeq: number;
|
|
469
521
|
isStripoInitialized: boolean;
|
|
470
522
|
isLegacyUnsubscribeModalRequested: boolean;
|
|
523
|
+
isSfmcUnsubscribeModalRequested: boolean;
|
|
524
|
+
isUnsubscribeConvertedOnLoad: boolean;
|
|
471
525
|
templateId: string;
|
|
472
526
|
syncModulesEnabled: boolean;
|
|
473
527
|
trackIdSessionFloor: number;
|
|
@@ -5,6 +5,9 @@ export interface LegacyUnsubscribeConversionResult {
|
|
|
5
5
|
converted: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare const hasLegacyUnsubscribeClass: (html: string) => boolean;
|
|
8
|
+
export declare const hasAnyUnsubscribeClass: (html: string) => boolean;
|
|
8
9
|
export declare const convertLinklessLegacyUnsubscribeBlocks: (root: ParentNode) => number;
|
|
9
10
|
export declare const convertLegacyUnsubscribeInModuleHtml: (html: string) => LegacyUnsubscribeConversionResult;
|
|
10
11
|
export declare const convertLegacyUnsubscribeInDocumentHtml: (html: string) => LegacyUnsubscribeConversionResult;
|
|
12
|
+
export declare const convertAllUnsubscribeInModuleHtml: (html: string) => LegacyUnsubscribeConversionResult;
|
|
13
|
+
export declare const convertAllUnsubscribeInDocumentHtml: (html: string) => LegacyUnsubscribeConversionResult;
|
package/dist/stores/editor.js
CHANGED
|
@@ -17,6 +17,8 @@ const o = e("guidoEditor", {
|
|
|
17
17
|
changeSeq: 0,
|
|
18
18
|
isStripoInitialized: !1,
|
|
19
19
|
isLegacyUnsubscribeModalRequested: !1,
|
|
20
|
+
isSfmcUnsubscribeModalRequested: !1,
|
|
21
|
+
isUnsubscribeConvertedOnLoad: !1,
|
|
20
22
|
templateId: "",
|
|
21
23
|
syncModulesEnabled: !1,
|
|
22
24
|
// In-session id high-water mark; floors tracking-id minting so ids
|