@useinsider/guido 3.18.2-beta.963f84e → 3.18.2-beta.9be830c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/config/schemas.js +15 -13
- package/dist/components/Guido.vue.js +7 -7
- package/dist/components/Guido.vue2.js +30 -30
- package/dist/components/organisms/AutoSaveController.vue2.js +10 -8
- package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.js +11 -13
- package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue2.js +51 -70
- package/dist/components/organisms/extensions/recommendation/RemoveStrategyModal.vue2.js +37 -23
- package/dist/components/organisms/header/AutoSaveStatus.vue.js +17 -0
- package/dist/components/organisms/header/AutoSaveStatus.vue2.js +27 -0
- package/dist/components/organisms/header/EditorActions.vue.js +13 -13
- package/dist/components/organisms/header/EditorActions.vue2.js +36 -52
- package/dist/components/organisms/header/EditorActionsMenu.vue.js +20 -0
- package/dist/components/organisms/header/EditorActionsMenu.vue2.js +48 -0
- package/dist/components/organisms/header/HeaderWrapper.vue.js +6 -6
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +9 -17
- package/dist/components/organisms/header/LeftSlot.vue.js +5 -5
- package/dist/components/organisms/header/LeftSlot.vue2.js +28 -23
- package/dist/components/organisms/header/MiddleSlot.vue.js +4 -4
- package/dist/components/organisms/header/MiddleSlot.vue2.js +8 -7
- package/dist/components/organisms/header/RightSlot.vue.js +9 -8
- package/dist/components/organisms/header/RightSlot.vue2.js +13 -18
- package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue.js +18 -0
- package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue2.js +37 -0
- package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue.js +24 -0
- package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue2.js +48 -0
- package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue.js +19 -0
- package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue2.js +82 -0
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +12 -12
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +54 -38
- package/dist/composables/useAccessibilityApi.js +35 -0
- package/dist/composables/useCustomInterfaceAppearance.js +45 -52
- package/dist/composables/useHtmlValidator.js +82 -87
- package/dist/composables/useRecommendation.js +35 -40
- package/dist/composables/useStripo.js +30 -30
- package/dist/config/i18n/en/labels.json.js +36 -4
- package/dist/config/i18n/en/tooltips.json.js +2 -1
- package/dist/enums/extensions/recommendationBlock.js +31 -38
- package/dist/extensions/Blocks/Recommendation/block.js +39 -43
- package/dist/extensions/Blocks/Recommendation/constants/defaultConfig.js +20 -21
- package/dist/extensions/Blocks/Recommendation/controls/main/index.js +35 -40
- package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +52 -84
- package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +74 -74
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +90 -189
- package/dist/extensions/Blocks/Recommendation/utils/nodeConfigWriter.js +16 -26
- package/dist/extensions/Blocks/Recommendation/validation/requiredFields.js +12 -21
- package/dist/guido.css +1 -1
- package/dist/node_modules/@vueuse/core/index.js +102 -0
- package/dist/node_modules/@vueuse/shared/index.js +40 -28
- package/dist/sprite.svg +6 -0
- package/dist/src/@types/config/schemas.d.ts +4 -0
- package/dist/src/components/organisms/AutoSaveController.vue.d.ts +3 -1
- package/dist/src/components/organisms/header/HeaderWrapper.vue.d.ts +1 -3
- package/dist/src/components/organisms/header/RightSlot.vue.d.ts +1 -3
- package/dist/src/components/organisms/header/accessibility/AccessibilityToolbar.vue.d.ts +2 -0
- package/dist/src/components/organisms/header/accessibility/ColorVisionSelect.vue.d.ts +2 -0
- package/dist/src/components/organisms/onboarding/EditorTabBarOnboarding.vue.d.ts +2 -0
- package/dist/src/composables/useAccessibilityApi.d.ts +15 -0
- package/dist/src/composables/useActionsApi.d.ts +2 -2
- package/dist/src/composables/useConfig.d.ts +2 -0
- package/dist/src/enums/extensions/recommendationBlock.d.ts +0 -2
- package/dist/src/extensions/Blocks/Recommendation/constants/defaultConfig.d.ts +0 -1
- package/dist/src/extensions/Blocks/Recommendation/constants/index.d.ts +1 -1
- package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +0 -2
- package/dist/src/extensions/Blocks/Recommendation/controls/main/strategy.d.ts +0 -9
- package/dist/src/extensions/Blocks/Recommendation/controls/main/utils.d.ts +2 -7
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +0 -75
- package/dist/src/extensions/Blocks/Recommendation/validation/requiredFields.d.ts +0 -4
- package/dist/src/stores/config.d.ts +18 -0
- package/dist/src/stores/editor.d.ts +107 -0
- package/dist/src/stores/onboarding.d.ts +195 -21
- package/dist/src/stores/version-history.d.ts +1 -1
- package/dist/src/utils/timeUtil.d.ts +10 -0
- package/dist/static/styles/components/accessibility.css.js +282 -0
- package/dist/static/styles/components/recommendation-strategy.css.js +4 -34
- package/dist/static/styles/variables.css.js +2 -0
- package/dist/stores/editor.js +13 -4
- package/dist/stores/onboarding.js +66 -50
- package/dist/utils/templatePreparation.js +55 -55
- package/dist/utils/timeUtil.js +7 -17
- package/package.json +1 -1
- package/dist/components/organisms/header/AutoSaveToggle.vue.js +0 -22
- package/dist/components/organisms/header/AutoSaveToggle.vue2.js +0 -19
- package/dist/components/organisms/onboarding/RecommendationStrategyOnboarding.vue.js +0 -21
- package/dist/components/organisms/onboarding/RecommendationStrategyOnboarding.vue2.js +0 -47
- package/dist/extensions/Blocks/Recommendation/utils/strategyCommit.js +0 -24
- package/dist/src/extensions/Blocks/Recommendation/utils/strategyCommit.d.ts +0 -14
- package/dist/static/styles/components/skeleton.css.js +0 -23
- /package/dist/src/components/organisms/header/{AutoSaveToggle.vue.d.ts → AutoSaveStatus.vue.d.ts} +0 -0
- /package/dist/src/components/organisms/{onboarding/RecommendationStrategyOnboarding.vue.d.ts → header/EditorActionsMenu.vue.d.ts} +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r from "./EditorActions.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
return e("div", { staticClass: "d-f editor-actions" }, [t.
|
|
3
|
+
import a from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var d = function() {
|
|
5
|
+
var o, s;
|
|
6
|
+
var i = this, e = i._self._c, t = i._self._setupProxy;
|
|
7
|
+
return e("div", { staticClass: "d-f a-i-c editor-actions" }, [t.editorStore.isPreviewModeOpen ? i._e() : e("div", { staticClass: "editor-actions__divider" }), (s = (o = t.config) == null ? void 0 : o.features) != null && s.testMessage ? e(t.InButtonV2, { attrs: { id: "guido__test-button", "left-icon": "line-architect-test-journey", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isTestButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__test-button", { staticPosition: "bottom right" }), "tooltip-text": t.trans("newsletter.test-email") }, on: { click: t.handleTestEmail } }) : i._e(), e(t.EditorActionsMenu), t.editorStore.isPreviewModeOpen ? i._e() : e("div", { staticClass: "editor-actions__divider" }), t.editorStore.isPreviewModeOpen ? i._e() : e(t.InButtonV2, { attrs: { id: "guido__save-button", "label-text": "Save", "disabled-status": !t.isSaving && t.editorStore.isSaveButtonDisabled, "loading-status": t.isSaving }, on: { click: function(n) {
|
|
8
8
|
return t.handleSave(!1);
|
|
9
|
-
} } }), e(t.MigrationConfirmModal, { ref: "migrationModalRef", on: { confirm: function(
|
|
9
|
+
} } }), e(t.MigrationConfirmModal, { ref: "migrationModalRef", on: { confirm: function(n) {
|
|
10
10
|
return t.executeSave(!1);
|
|
11
11
|
} } })], 1);
|
|
12
|
-
},
|
|
12
|
+
}, l = [], c = /* @__PURE__ */ a(
|
|
13
|
+
r,
|
|
14
|
+
d,
|
|
13
15
|
l,
|
|
14
|
-
u,
|
|
15
|
-
p,
|
|
16
16
|
!1,
|
|
17
17
|
null,
|
|
18
|
-
"
|
|
18
|
+
"29f710cf"
|
|
19
19
|
);
|
|
20
|
-
const
|
|
20
|
+
const p = c.exports;
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
p as default
|
|
23
23
|
};
|
|
@@ -1,64 +1,48 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useActionsApi as
|
|
3
|
-
import { useConfig as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
const ft = /* @__PURE__ */ q({
|
|
1
|
+
import { defineComponent as C, ref as S } from "vue";
|
|
2
|
+
import { useActionsApi as T } from "../../../composables/useActionsApi.js";
|
|
3
|
+
import { useConfig as M } from "../../../composables/useConfig.js";
|
|
4
|
+
import { useTestEmailClick as w } from "../../../composables/useGuidoActions.js";
|
|
5
|
+
import { useHtmlCompiler as x } from "../../../composables/useHtmlCompiler.js";
|
|
6
|
+
import { useSave as A } from "../../../composables/useSave.js";
|
|
7
|
+
import { useToaster as F } from "../../../composables/useToaster.js";
|
|
8
|
+
import { useTranslations as V } from "../../../composables/useTranslations.js";
|
|
9
|
+
import { useLiquidValidator as q } from "../../../composables/validators/useLiquidValidator.js";
|
|
10
|
+
import { useEditorStore as H } from "../../../stores/editor.js";
|
|
11
|
+
import { useTemplateStore as k } from "../../../stores/template.js";
|
|
12
|
+
import { getTooltipOptions as L } from "../../../utils/tooltipUtils.js";
|
|
13
|
+
import { InButtonV2 as R } from "@useinsider/design-system-vue";
|
|
14
|
+
import { storeToRefs as b } from "pinia";
|
|
15
|
+
import z from "./EditorActionsMenu.vue.js";
|
|
16
|
+
import B from "./MigrationConfirmModal.vue.js";
|
|
17
|
+
const ot = /* @__PURE__ */ C({
|
|
19
18
|
__name: "EditorActions",
|
|
20
|
-
setup(
|
|
21
|
-
const { config:
|
|
22
|
-
if (e.isVersionHistoryOpen) {
|
|
23
|
-
d();
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
f();
|
|
27
|
-
}, C = async () => {
|
|
28
|
-
i.value = !0, await p(), i.value = !1;
|
|
29
|
-
}, A = () => {
|
|
30
|
-
e.isSaveAsTemplateDrawerOpen = !0;
|
|
31
|
-
}, M = w(() => e.isVersionHistoryOpen ? s("newsletter.close-version-history") : s("newsletter.version-history")), O = w(
|
|
32
|
-
() => {
|
|
33
|
-
var t, o;
|
|
34
|
-
return ((o = (t = m.value) == null ? void 0 : t.features) == null ? void 0 : o.versionHistory) && !e.isPreviewModeOpen;
|
|
35
|
-
}
|
|
36
|
-
), E = async (t) => {
|
|
19
|
+
setup(D, { expose: E }) {
|
|
20
|
+
const { config: h, isFeatureEnabled: s } = M(), { save: n } = A(), { getCompiledEmail: m } = T(), { compileHtml: l } = x(), { validateLiquidSyntax: f } = q(), { handleError: r } = F(), e = H(), u = k(), { hasMigrations: c } = b(u), y = V(), a = S(!1), p = S(), d = w(), g = async (t) => {
|
|
37
21
|
a.value = !0, t || (e.loadingStatus = !0);
|
|
38
22
|
let o;
|
|
39
23
|
try {
|
|
40
|
-
o = await
|
|
41
|
-
} catch (
|
|
24
|
+
o = await n(t);
|
|
25
|
+
} catch (i) {
|
|
42
26
|
if (t)
|
|
43
|
-
throw
|
|
44
|
-
r(
|
|
27
|
+
throw i;
|
|
28
|
+
r(i, "Failed to save template");
|
|
45
29
|
} finally {
|
|
46
30
|
a.value = !1, !t && !o && (e.loadingStatus = !1);
|
|
47
31
|
}
|
|
48
32
|
return o;
|
|
49
|
-
},
|
|
33
|
+
}, v = (t) => {
|
|
50
34
|
var o;
|
|
51
|
-
if (!t &&
|
|
52
|
-
(o =
|
|
35
|
+
if (!t && c.value) {
|
|
36
|
+
(o = p.value) == null || o.open();
|
|
53
37
|
return;
|
|
54
38
|
}
|
|
55
|
-
return
|
|
56
|
-
},
|
|
57
|
-
if (
|
|
39
|
+
return g(t);
|
|
40
|
+
}, _ = async () => {
|
|
41
|
+
if (s("liquidSyntax")) {
|
|
58
42
|
e.loadingStatus = !0;
|
|
59
43
|
try {
|
|
60
|
-
const { html: t } = await
|
|
61
|
-
if (!await
|
|
44
|
+
const { html: t } = await m({ minimize: !0, resetDataSavedFlag: !1 }), { compiledHtml: o } = l(t);
|
|
45
|
+
if (!await f(o))
|
|
62
46
|
return;
|
|
63
47
|
} catch (t) {
|
|
64
48
|
r(t, "Failed to prepare test email");
|
|
@@ -67,13 +51,13 @@ const ft = /* @__PURE__ */ q({
|
|
|
67
51
|
e.loadingStatus = !1;
|
|
68
52
|
}
|
|
69
53
|
}
|
|
70
|
-
|
|
54
|
+
d();
|
|
71
55
|
};
|
|
72
|
-
return
|
|
73
|
-
handleSave:
|
|
74
|
-
}), { __sfc: !0, config:
|
|
56
|
+
return E({
|
|
57
|
+
handleSave: v
|
|
58
|
+
}), { __sfc: !0, config: h, isFeatureEnabled: s, save: n, getCompiledEmail: m, compileHtml: l, validateLiquidSyntax: f, handleError: r, editorStore: e, templateStore: u, hasMigrations: c, trans: y, isSaving: a, migrationModalRef: p, testEmailClick: d, executeSave: g, handleSave: v, handleTestEmail: _, getTooltipOptions: L, InButtonV2: R, EditorActionsMenu: z, MigrationConfirmModal: B };
|
|
75
59
|
}
|
|
76
60
|
});
|
|
77
61
|
export {
|
|
78
|
-
|
|
62
|
+
ot as default
|
|
79
63
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import i from "./EditorActionsMenu.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import a from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var o = function() {
|
|
5
|
+
var s = this, e = s._self._c, t = s._self._setupProxy;
|
|
6
|
+
return e("div", { ref: "root", staticClass: "editor-actions-menu p-r" }, [e(t.InButtonV2, { attrs: { id: "guido__kebab-button", "data-testid": "Editor Actions Menu", "left-icon": "line-more-vertical", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.loadingStatus, "label-text-status": !1, "selected-status": t.isPanelOpen, "tooltip-options": t.getTooltipOptions("guido__kebab-button"), "tooltip-text": t.trans("email-editor.more-actions") }, on: { click: function(l) {
|
|
7
|
+
t.isOpen = !t.isOpen;
|
|
8
|
+
} } }), t.isPanelOpen ? e("div", { staticClass: "editor-actions-menu__panel p-a" }, [t.isAutosaveVisible ? [e("p", { staticClass: "editor-actions-menu__section f-s-1 t-c-53" }, [s._v(" " + s._s(t.trans("email-editor.preferences")) + " ")]), e("div", { staticClass: "editor-actions-menu__row editor-actions-menu__row_static d-f a-i-c j-c-s-b", attrs: { id: "guido__kebab-autosave" } }, [e("span", { staticClass: "f-s-2" }, [s._v(s._s(t.trans("email-editor.auto-save")))]), e(t.InToggle, { attrs: { id: "guido__kebab-autosave-toggle", name: "guido-kebab-autosave-toggle", checked: t.autosaveStore.isOn, disable: t.editorStore.loadingStatus }, on: { click: t.toggleAutosave } })], 1), e("div", { staticClass: "editor-actions-menu__divider" })] : s._e(), e("p", { staticClass: "editor-actions-menu__section f-s-1 t-c-53" }, [s._v(" " + s._s(t.trans("email-editor.actions")) + " ")]), t.isVersionHistoryVisible ? e("button", { staticClass: "editor-actions-menu__row d-f a-i-c", attrs: { id: "guido__kebab-version-history", type: "button", disabled: t.editorStore.isVersionHistoryButtonDisabled }, on: { click: t.handleVersionHistory } }, [e(t.InIcons, { staticClass: "mr-2 editor-actions-menu__icon", attrs: { name: "line-architect-version-history", size: "24" } }), e("span", { staticClass: "f-s-2" }, [s._v(s._s(t.trans("newsletter.version-history")))])], 1) : s._e(), t.isAccessibilityVisible ? e("button", { staticClass: "editor-actions-menu__row d-f a-i-c", attrs: { id: "guido__kebab-accessibility", type: "button", disabled: t.editorStore.loadingStatus }, on: { click: t.handleAccessibility } }, [e(t.InIcons, { staticClass: "mr-2 editor-actions-menu__icon", attrs: { name: "line-accessibility", size: "24" } }), e("span", { staticClass: "f-s-2" }, [s._v(s._s(t.trans("email-editor.accessibility-test")))])], 1) : s._e(), t.isSaveAsVisible ? e("button", { staticClass: "editor-actions-menu__row d-f a-i-c", attrs: { id: "guido__kebab-save-as", type: "button", disabled: t.editorStore.isSaveAsButtonDisabled }, on: { click: t.handleSaveAs } }, [e(t.InIcons, { staticClass: "mr-2 editor-actions-menu__icon", attrs: { name: "line-newsletter-save-as-template", size: "24" } }), e("span", { staticClass: "f-s-2" }, [s._v(s._s(t.trans("newsletter.save-templates")))])], 1) : s._e(), e("button", { staticClass: "editor-actions-menu__row d-f a-i-c", attrs: { id: "guido__kebab-export", type: "button", disabled: t.isExporting || t.editorStore.isExportButtonDisabled }, on: { click: t.handleExport } }, [e(t.InIcons, { staticClass: "mr-2 editor-actions-menu__icon", attrs: { name: "line-export", size: "24" } }), e("span", { staticClass: "f-s-2" }, [s._v(s._s(t.trans("email-editor.export-html")))])], 1)], 2) : s._e()], 1);
|
|
9
|
+
}, n = [], r = /* @__PURE__ */ a(
|
|
10
|
+
i,
|
|
11
|
+
o,
|
|
12
|
+
n,
|
|
13
|
+
!1,
|
|
14
|
+
null,
|
|
15
|
+
"abe82925"
|
|
16
|
+
);
|
|
17
|
+
const b = r.exports;
|
|
18
|
+
export {
|
|
19
|
+
b as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { defineComponent as h, ref as p, computed as i, watch as w } from "vue";
|
|
2
|
+
import { useAccessibilityApi as x } from "../../../composables/useAccessibilityApi.js";
|
|
3
|
+
import { useConfig as P } from "../../../composables/useConfig.js";
|
|
4
|
+
import { useExport as I } from "../../../composables/useExport.js";
|
|
5
|
+
import { useTranslations as B } from "../../../composables/useTranslations.js";
|
|
6
|
+
import { useVersionHistoryApi as C } from "../../../composables/useVersionHistoryApi.js";
|
|
7
|
+
import { useAutosaveStore as k } from "../../../stores/autosave.js";
|
|
8
|
+
import { useEditorStore as D } from "../../../stores/editor.js";
|
|
9
|
+
import { useOnboardingStore as F } from "../../../stores/onboarding.js";
|
|
10
|
+
import { getTooltipOptions as j } from "../../../utils/tooltipUtils.js";
|
|
11
|
+
import { InToggle as q, InIcons as z, InButtonV2 as G } from "@useinsider/design-system-vue";
|
|
12
|
+
import { onClickOutside as J } from "../../../node_modules/@vueuse/core/index.js";
|
|
13
|
+
const so = /* @__PURE__ */ h({
|
|
14
|
+
__name: "EditorActionsMenu",
|
|
15
|
+
setup(K) {
|
|
16
|
+
const { config: n, isFeatureEnabled: r } = P(), { exportHtml: u } = I(), { openVersionHistory: m, closeVersionHistory: f } = C(), { toggleAccessibilityTestingMode: d } = x(), s = D(), v = k(), a = F(), g = B(), c = p(!1), y = i(() => c.value || a.isEditorActionsMenuPinned), l = p(!1), A = p(null), b = i(() => r("autosave")), V = i(
|
|
17
|
+
() => {
|
|
18
|
+
var o, t;
|
|
19
|
+
return !!((t = (o = n.value) == null ? void 0 : o.features) != null && t.versionHistory) && !s.isPreviewModeOpen;
|
|
20
|
+
}
|
|
21
|
+
), O = i(
|
|
22
|
+
() => r("accessibilityTesting") && !s.isPreviewModeOpen
|
|
23
|
+
), S = i(() => {
|
|
24
|
+
var o, t;
|
|
25
|
+
return !!((t = (o = n.value) == null ? void 0 : o.features) != null && t.saveAsTemplate);
|
|
26
|
+
}), e = () => {
|
|
27
|
+
c.value = !1;
|
|
28
|
+
};
|
|
29
|
+
w(() => a.isEditorActionsMenuPinned, (o) => {
|
|
30
|
+
o || e();
|
|
31
|
+
});
|
|
32
|
+
const E = () => {
|
|
33
|
+
s.isVersionHistoryOpen ? f() : m(), e();
|
|
34
|
+
}, H = () => {
|
|
35
|
+
d(), e();
|
|
36
|
+
}, _ = () => {
|
|
37
|
+
s.isSaveAsTemplateDrawerOpen = !0, e();
|
|
38
|
+
}, T = async () => {
|
|
39
|
+
l.value = !0, await u(), l.value = !1, e();
|
|
40
|
+
}, M = (o) => {
|
|
41
|
+
v.isOn = o;
|
|
42
|
+
};
|
|
43
|
+
return J(A, e), { __sfc: !0, config: n, isFeatureEnabled: r, exportHtml: u, openVersionHistory: m, closeVersionHistory: f, toggleAccessibilityTestingMode: d, editorStore: s, autosaveStore: v, onboardingStore: a, trans: g, isOpen: c, isPanelOpen: y, isExporting: l, root: A, isAutosaveVisible: b, isVersionHistoryVisible: V, isAccessibilityVisible: O, isSaveAsVisible: S, close: e, handleVersionHistory: E, handleAccessibility: H, handleSaveAs: _, handleExport: T, toggleAutosave: M, getTooltipOptions: j, InButtonV2: G, InIcons: z, InToggle: q };
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
export {
|
|
47
|
+
so as default
|
|
48
|
+
};
|
|
@@ -3,16 +3,16 @@ import o from "./HeaderWrapper.vue2.js";
|
|
|
3
3
|
import a from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
4
|
var s = function() {
|
|
5
5
|
var t = this, r = t._self._c, e = t._self._setupProxy;
|
|
6
|
-
return r(e.InContainer, { attrs: { border: "bor-w-0 bor-b-w-1 bor-s-s bor-c-6", "border-radius": "bor-r-0", "data-testid": "guido-header" } }, [r("div", { staticClass: "header-wrapper w-1 d-f a-i-c j-c-s-b p-3" }, [r(e.LeftSlot), r(e.MiddleSlot), r(e.RightSlot
|
|
7
|
-
},
|
|
6
|
+
return r(e.InContainer, { attrs: { border: "bor-w-0 bor-b-w-1 bor-s-s bor-c-6", "border-radius": "bor-r-0", "data-testid": "guido-header" } }, [r("div", { staticClass: "header-wrapper w-1 d-f a-i-c j-c-s-b p-3" }, [r(e.LeftSlot), r(e.MiddleSlot), r(e.RightSlot)], 1)]);
|
|
7
|
+
}, n = [], d = /* @__PURE__ */ a(
|
|
8
8
|
o,
|
|
9
9
|
s,
|
|
10
|
-
|
|
10
|
+
n,
|
|
11
11
|
!1,
|
|
12
12
|
null,
|
|
13
|
-
"
|
|
13
|
+
"3c713746"
|
|
14
14
|
);
|
|
15
|
-
const
|
|
15
|
+
const f = d.exports;
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
f as default
|
|
18
18
|
};
|
|
@@ -1,22 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { InContainer as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as o } from "vue";
|
|
2
|
+
import { InContainer as r } from "@useinsider/design-system-vue";
|
|
3
|
+
import t from "./LeftSlot.vue.js";
|
|
4
|
+
import e from "./MiddleSlot.vue.js";
|
|
5
|
+
import m from "./RightSlot.vue.js";
|
|
6
|
+
const s = /* @__PURE__ */ o({
|
|
7
7
|
__name: "HeaderWrapper",
|
|
8
|
-
setup(
|
|
9
|
-
|
|
10
|
-
return r({
|
|
11
|
-
// Stryker disable next-line OptionalChaining: RightSlot is always rendered (no
|
|
12
|
-
// v-if), so rightSlotRef.value is never null and `?.` cannot short-circuit.
|
|
13
|
-
handleSave: (t) => {
|
|
14
|
-
var o;
|
|
15
|
-
return (o = e.value) == null ? void 0 : o.handleSave(t);
|
|
16
|
-
}
|
|
17
|
-
}), { __sfc: !0, rightSlotRef: e, InContainer: a, LeftSlot: f, MiddleSlot: p, RightSlot: i };
|
|
8
|
+
setup(p) {
|
|
9
|
+
return { __sfc: !0, InContainer: r, LeftSlot: t, MiddleSlot: e, RightSlot: m };
|
|
18
10
|
}
|
|
19
11
|
});
|
|
20
12
|
export {
|
|
21
|
-
|
|
13
|
+
s as default
|
|
22
14
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import o from "./LeftSlot.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
var
|
|
3
|
+
import n from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var a = function() {
|
|
5
5
|
var e = this, s = e._self._c, t = e._self._setupProxy;
|
|
6
6
|
return s("div", { staticClass: "d-f a-i-c" }, [s(t.InButtonV2, { attrs: { id: "guido__back-button", "left-icon": "line-arrow-left", styling: "ghost", type: "secondary", "disabled-status": t.isBackButtonDisabled, "label-text": t.backButtonLabel, "skeleton-sizing": { width: 150, height: 26 }, "skeleton-status": t.editorStore.loadingStatus }, on: { click: t.handleBackClick } })], 1);
|
|
7
|
-
}, i = [], r = /* @__PURE__ */
|
|
7
|
+
}, i = [], r = /* @__PURE__ */ n(
|
|
8
8
|
o,
|
|
9
|
-
|
|
9
|
+
a,
|
|
10
10
|
i,
|
|
11
11
|
!1,
|
|
12
12
|
null,
|
|
13
|
-
"
|
|
13
|
+
"2f127fb6"
|
|
14
14
|
);
|
|
15
15
|
const f = r.exports;
|
|
16
16
|
export {
|
|
@@ -1,36 +1,41 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { defineComponent as p, computed as d, ref as b } from "vue";
|
|
2
|
+
import { useAccessibilityApi as k } from "../../../composables/useAccessibilityApi.js";
|
|
3
|
+
import { useConfig as B } from "../../../composables/useConfig.js";
|
|
4
|
+
import { useBack as v } from "../../../composables/useGuidoActions.js";
|
|
5
|
+
import { usePreviewMode as y } from "../../../composables/usePreviewMode.js";
|
|
6
|
+
import { useTranslations as A } from "../../../composables/useTranslations.js";
|
|
6
7
|
import { useVersionHistoryApi as _ } from "../../../composables/useVersionHistoryApi.js";
|
|
7
|
-
import { useEditorStore as
|
|
8
|
-
import { InButtonV2 as
|
|
9
|
-
import { useDebounceFn as
|
|
10
|
-
const
|
|
8
|
+
import { useEditorStore as g } from "../../../stores/editor.js";
|
|
9
|
+
import { InButtonV2 as O } from "@useinsider/design-system-vue";
|
|
10
|
+
import { useDebounceFn as M } from "../../../node_modules/@vueuse/shared/index.js";
|
|
11
|
+
const F = /* @__PURE__ */ p({
|
|
11
12
|
__name: "LeftSlot",
|
|
12
|
-
setup(
|
|
13
|
-
const e =
|
|
14
|
-
var
|
|
15
|
-
return e.isVersionHistoryOpen || e.isPreviewModeOpen ? o("email-editor.back-to-editor") : (m = (
|
|
16
|
-
}),
|
|
13
|
+
setup(V) {
|
|
14
|
+
const e = g(), s = v(), { closeVersionHistory: r } = _(), { closePreviewMode: n } = y(), { closeAccessibilityTestingMode: c } = k(), o = A(), { config: t } = B(), f = d(() => {
|
|
15
|
+
var l, m;
|
|
16
|
+
return e.isVersionHistoryOpen || e.isPreviewModeOpen || e.isAccessibilityTestingOpen ? o("email-editor.back-to-editor") : (m = (l = t.value) == null ? void 0 : l.ui) != null && m.backButtonLabel ? t.value.ui.backButtonLabel : o("email-editor.back-to-design");
|
|
17
|
+
}), i = b(!1), a = () => {
|
|
17
18
|
if (e.isVersionHistoryOpen) {
|
|
18
|
-
|
|
19
|
+
r();
|
|
19
20
|
return;
|
|
20
21
|
}
|
|
21
22
|
if (e.isPreviewModeOpen) {
|
|
22
|
-
|
|
23
|
+
n();
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
if (e.isAccessibilityTestingOpen) {
|
|
27
|
+
c();
|
|
23
28
|
return;
|
|
24
29
|
}
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
|
|
30
|
+
s();
|
|
31
|
+
}, u = M(() => {
|
|
32
|
+
a(), i.value = !1;
|
|
28
33
|
}, 500);
|
|
29
|
-
return { __sfc: !0, editorStore: e, handleBack:
|
|
30
|
-
|
|
31
|
-
}, InButtonV2:
|
|
34
|
+
return { __sfc: !0, editorStore: e, handleBack: s, closeVersionHistory: r, closePreviewMode: n, closeAccessibilityTestingMode: c, trans: o, config: t, backButtonLabel: f, isBackButtonDisabled: i, executeBackAction: a, debouncedBackAction: u, handleBackClick: () => {
|
|
35
|
+
i.value = !0, u();
|
|
36
|
+
}, InButtonV2: O };
|
|
32
37
|
}
|
|
33
38
|
});
|
|
34
39
|
export {
|
|
35
|
-
|
|
40
|
+
F as default
|
|
36
41
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import r from "./MiddleSlot.vue2.js";
|
|
2
2
|
import s from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
3
|
var t = function() {
|
|
4
|
-
var o = this,
|
|
5
|
-
return
|
|
4
|
+
var o = this, i = o._self._c, e = o._self._setupProxy;
|
|
5
|
+
return i("div", { staticClass: "d-f a-i-c" }, [e.editorStore.isVersionHistoryOpen ? i("div", { staticClass: "d-f" }, [i(e.VersionHistory), i(e.VersionHistoryViewOptions)], 1) : e.editorStore.isPreviewModeOpen ? i("div", { staticClass: "d-f" }, [i(e.EmailSizeIndicator), i(e.AmpToggle)], 1) : e.editorStore.isAccessibilityTestingOpen ? i(e.AccessibilityToolbar) : o._e(), i(e.EditorToolbar, { directives: [{ name: "show", rawName: "v-show", value: e.editorStore.isEditorToolbarVisible, expression: "editorStore.isEditorToolbarVisible" }] })], 1);
|
|
6
6
|
}, a = [], n = /* @__PURE__ */ s(
|
|
7
7
|
r,
|
|
8
8
|
t,
|
|
@@ -11,7 +11,7 @@ var t = function() {
|
|
|
11
11
|
null,
|
|
12
12
|
null
|
|
13
13
|
);
|
|
14
|
-
const
|
|
14
|
+
const _ = n.exports;
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
_ as default
|
|
17
17
|
};
|
|
@@ -2,15 +2,16 @@ import { defineComponent as o } from "vue";
|
|
|
2
2
|
import r from "../email-preview/amp/AmpToggle.vue.js";
|
|
3
3
|
import t from "../email-preview/desktop-preview/EmailSizeIndicator.vue.js";
|
|
4
4
|
import { useEditorStore as i } from "../../../stores/editor.js";
|
|
5
|
-
import e from "./
|
|
6
|
-
import m from "./
|
|
7
|
-
import p from "./version-history/
|
|
8
|
-
|
|
5
|
+
import e from "./accessibility/AccessibilityToolbar.vue.js";
|
|
6
|
+
import m from "./EditorToolbar.vue.js";
|
|
7
|
+
import p from "./version-history/VersionHistory.vue.js";
|
|
8
|
+
import s from "./version-history/ViewOptions.vue.js";
|
|
9
|
+
const y = /* @__PURE__ */ o({
|
|
9
10
|
__name: "MiddleSlot",
|
|
10
|
-
setup(
|
|
11
|
-
return { __sfc: !0, editorStore: i(), AmpToggle: r, EmailSizeIndicator: t,
|
|
11
|
+
setup(f) {
|
|
12
|
+
return { __sfc: !0, editorStore: i(), AmpToggle: r, EmailSizeIndicator: t, AccessibilityToolbar: e, EditorToolbar: m, VersionHistory: p, VersionHistoryViewOptions: s };
|
|
12
13
|
}
|
|
13
14
|
});
|
|
14
15
|
export {
|
|
15
|
-
|
|
16
|
+
y as default
|
|
16
17
|
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import i from "./RightSlot.vue2.js";
|
|
2
|
+
/* empty css */
|
|
2
3
|
import o from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
4
|
var r = function() {
|
|
4
|
-
var
|
|
5
|
-
return
|
|
6
|
-
}, a = [],
|
|
7
|
-
|
|
5
|
+
var e = this, s = e._self._c, t = e._self._setupProxy;
|
|
6
|
+
return s("div", { staticClass: "d-f a-i-c right-slot" }, [t.isNormalMode ? s(t.AutoSaveStatus) : e._e(), t.isLiquidEnabled && t.isNormalMode ? s(t.InChips, { attrs: { id: "guido__liquid-tag-chip", styles: "stroke", type: "default", value: "liquid-tags", "close-button": !1, "disabled-status": t.editorStore.loadingStatus, interactive: !1, text: t.trans("email-editor.liquid-tags-enabled") } }) : e._e(), t.isNormalMode ? s(t.EditorActions) : t.editorStore.isVersionHistoryOpen ? s(t.RestoreButton) : e._e()], 1);
|
|
7
|
+
}, a = [], l = /* @__PURE__ */ o(
|
|
8
|
+
i,
|
|
8
9
|
r,
|
|
9
10
|
a,
|
|
10
11
|
!1,
|
|
11
12
|
null,
|
|
12
|
-
|
|
13
|
+
"efc32e0d"
|
|
13
14
|
);
|
|
14
|
-
const
|
|
15
|
+
const c = l.exports;
|
|
15
16
|
export {
|
|
16
|
-
|
|
17
|
+
c as default
|
|
17
18
|
};
|
|
@@ -1,23 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useConfig as
|
|
3
|
-
import { useTranslations as
|
|
4
|
-
import { useEditorStore as
|
|
5
|
-
import { InChips as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
const
|
|
1
|
+
import { defineComponent as m, computed as r } from "vue";
|
|
2
|
+
import { useConfig as n } from "../../../composables/useConfig.js";
|
|
3
|
+
import { useTranslations as a } from "../../../composables/useTranslations.js";
|
|
4
|
+
import { useEditorStore as p } from "../../../stores/editor.js";
|
|
5
|
+
import { InChips as u } from "@useinsider/design-system-vue";
|
|
6
|
+
import f from "./AutoSaveStatus.vue.js";
|
|
7
|
+
import d from "./EditorActions.vue.js";
|
|
8
|
+
import c from "./version-history/RestoreButton.vue.js";
|
|
9
|
+
const x = /* @__PURE__ */ m({
|
|
10
10
|
__name: "RightSlot",
|
|
11
|
-
setup(
|
|
12
|
-
const { isFeatureEnabled: o } =
|
|
13
|
-
return
|
|
14
|
-
handleSave: (m) => {
|
|
15
|
-
var e;
|
|
16
|
-
return (e = t.value) == null ? void 0 : e.handleSave(m);
|
|
17
|
-
}
|
|
18
|
-
}), { __sfc: !0, isFeatureEnabled: o, trans: i, editorStore: n, editorActionsRef: t, isLiquidEnabled: s, InChips: c, AutoSaveToggle: _, EditorActions: S, RestoreButton: g };
|
|
11
|
+
setup(l) {
|
|
12
|
+
const { isFeatureEnabled: o } = n(), i = a(), t = p(), e = r(() => o("liquidSyntax")), s = r(() => t.isNormalMode);
|
|
13
|
+
return { __sfc: !0, isFeatureEnabled: o, trans: i, editorStore: t, isLiquidEnabled: e, isNormalMode: s, InChips: u, AutoSaveStatus: f, EditorActions: d, RestoreButton: c };
|
|
19
14
|
}
|
|
20
15
|
});
|
|
21
16
|
export {
|
|
22
|
-
|
|
17
|
+
x as default
|
|
23
18
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import i from "./AccessibilityToolbar.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import s from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var a = function() {
|
|
5
|
+
var o = this, e = o._self._c, t = o._self._setupProxy;
|
|
6
|
+
return e("div", { staticClass: "d-f a-i-c accessibility-toolbar" }, [e(t.InButtonV2, { attrs: { id: "guido__a11y-no-images", "data-testid": "Accessibility No Images", "left-icon": "line-image", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.loadingStatus, "label-text-status": !1, "selected-status": t.editorStore.imagesHidden, "tooltip-options": t.getTooltipOptions("guido__a11y-no-images"), "tooltip-text": t.imagesTooltip }, on: { click: t.toggleImages } }), e(t.InButtonV2, { attrs: { id: "guido__a11y-code", "data-testid": "Accessibility Code Editor", "left-icon": "line-code", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.loadingStatus, "label-text-status": !1, "selected-status": t.editorStore.isCodeEditorOpen, "tooltip-options": t.getTooltipOptions("guido__a11y-code"), "tooltip-text": t.trans("newsletter.html-editor") }, on: { click: t.toggleCodeEditor } }), e(t.ColorVisionSelect), e(t.InSegments, { attrs: { id: "guido__a11y-view-selection", "with-icon": "", "segment-list": t.segmentList, selected: t.editorStore.editorVisualMode }, on: { click: t.handleView } })], 1);
|
|
7
|
+
}, l = [], d = /* @__PURE__ */ s(
|
|
8
|
+
i,
|
|
9
|
+
a,
|
|
10
|
+
l,
|
|
11
|
+
!1,
|
|
12
|
+
null,
|
|
13
|
+
"a5b9b5d5"
|
|
14
|
+
);
|
|
15
|
+
const _ = d.exports;
|
|
16
|
+
export {
|
|
17
|
+
_ as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineComponent as d, computed as n } from "vue";
|
|
2
|
+
import { useAccessibilityApi as c } from "../../../../composables/useAccessibilityApi.js";
|
|
3
|
+
import { useTranslations as g } from "../../../../composables/useTranslations.js";
|
|
4
|
+
import { useEditorStore as u } from "../../../../stores/editor.js";
|
|
5
|
+
import { getTooltipOptions as e } from "../../../../utils/tooltipUtils.js";
|
|
6
|
+
import { InSegments as _, InButtonV2 as f } from "@useinsider/design-system-vue";
|
|
7
|
+
import w from "./ColorVisionSelect.vue.js";
|
|
8
|
+
const A = /* @__PURE__ */ d({
|
|
9
|
+
__name: "AccessibilityToolbar",
|
|
10
|
+
setup(b) {
|
|
11
|
+
const t = u(), o = g(), {
|
|
12
|
+
toggleImages: r,
|
|
13
|
+
toggleCodeEditor: m,
|
|
14
|
+
switchToDesktopPreview: i,
|
|
15
|
+
switchToMobilePreview: s
|
|
16
|
+
} = c(), l = n(() => [
|
|
17
|
+
{
|
|
18
|
+
text: "",
|
|
19
|
+
icon: "line-desktop",
|
|
20
|
+
value: "desktop",
|
|
21
|
+
tooltipText: o("newsletter.desktop"),
|
|
22
|
+
tooltipOptions: e("guido__a11y-view-desktop")
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
text: "",
|
|
26
|
+
icon: "line-menu-mobileapp",
|
|
27
|
+
value: "mobile",
|
|
28
|
+
tooltipText: o("newsletter.mobile"),
|
|
29
|
+
tooltipOptions: e("guido__a11y-view-mobile")
|
|
30
|
+
}
|
|
31
|
+
]), p = n(() => t.imagesHidden ? o("email-editor.a11y-show-images") : o("email-editor.a11y-hide-images"));
|
|
32
|
+
return { __sfc: !0, editorStore: t, trans: o, toggleImages: r, toggleCodeEditor: m, switchToDesktopPreview: i, switchToMobilePreview: s, segmentList: l, imagesTooltip: p, handleView: (a) => a === "mobile" ? s() : i(), getTooltipOptions: e, InButtonV2: f, InSegments: _, ColorVisionSelect: w };
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
export {
|
|
36
|
+
A as default
|
|
37
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import n from "./ColorVisionSelect.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import i from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var l = function() {
|
|
5
|
+
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
6
|
+
return o("div", { ref: "root", staticClass: "color-vision-select p-r" }, [o(e.InButtonV2, { attrs: { id: "guido__a11y-color-vision-trigger", "left-icon": "line-show-on", "right-icon": "line-chevron-small-down", type: "secondary", "disabled-status": e.editorStore.loadingStatus, "label-text": e.selectedLabel }, on: { click: function(s) {
|
|
7
|
+
e.isOpen = !e.isOpen;
|
|
8
|
+
} } }), e.isOpen ? o("div", { staticClass: "color-vision-select__menu p-a" }, t._l(e.OPTIONS, function(s) {
|
|
9
|
+
return o("button", { key: s.value || "none", staticClass: "color-vision-select__option d-f f-d-c", class: { "color-vision-select__option_selected": s.value === e.editorStore.colorVisionDeficiency }, attrs: { type: "button" }, on: { click: function(_) {
|
|
10
|
+
return e.select(s.value);
|
|
11
|
+
} } }, [o("span", { staticClass: "color-vision-select__option-label f-s-2" }, [t._v(t._s(e.trans(s.labelKey)))]), s.descriptionKey ? o("span", { staticClass: "color-vision-select__option-description f-s-1 t-c-53" }, [t._v(" " + t._s(e.trans(s.descriptionKey)) + " ")]) : t._e()]);
|
|
12
|
+
}), 0) : t._e()], 1);
|
|
13
|
+
}, r = [], c = /* @__PURE__ */ i(
|
|
14
|
+
n,
|
|
15
|
+
l,
|
|
16
|
+
r,
|
|
17
|
+
!1,
|
|
18
|
+
null,
|
|
19
|
+
"869e2871"
|
|
20
|
+
);
|
|
21
|
+
const f = c.exports;
|
|
22
|
+
export {
|
|
23
|
+
f as default
|
|
24
|
+
};
|