@useinsider/guido 2.0.0-beta.eee5ecc → 2.0.0-beta.f66b754
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/organisms/email-preview/PreviewContainer.vue.js +3 -3
- package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.js +6 -6
- package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue2.js +17 -13
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +6 -6
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue2.js +14 -12
- package/dist/components/organisms/email-preview/desktop-preview/DesktopBrowserHeader.vue.js +18 -0
- package/dist/components/organisms/email-preview/desktop-preview/DesktopBrowserHeader.vue2.js +15 -0
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.js +16 -15
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +14 -22
- package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.js +3 -3
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.js +11 -10
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.js +12 -10
- package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.js +11 -10
- package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue2.js +15 -14
- package/dist/components/organisms/header/EditorActions.vue.js +21 -0
- package/dist/components/organisms/header/EditorActions.vue2.js +41 -0
- package/dist/components/organisms/header/EditorToolbar.vue.js +18 -0
- package/dist/components/organisms/header/EditorToolbar.vue2.js +17 -0
- package/dist/components/organisms/header/HeaderWrapper.vue.js +6 -5
- package/dist/components/organisms/header/LeftSlot.vue.js +9 -9
- package/dist/components/organisms/header/LeftSlot.vue2.js +13 -14
- package/dist/components/organisms/header/MiddleSlot.vue.js +7 -7
- package/dist/components/organisms/header/MiddleSlot.vue2.js +11 -15
- package/dist/components/organisms/header/RightSlot.vue.js +11 -14
- package/dist/components/organisms/header/RightSlot.vue2.js +13 -30
- package/dist/components/organisms/header/version-history/VersionHistory.vue.js +5 -5
- package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +15 -15
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +1 -1
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +20 -19
- package/dist/config/migrator/itemsBlockMigrator.js +72 -64
- package/dist/enums/academy.js +8 -0
- package/dist/enums/onboarding.js +1 -2
- package/dist/enums/unsubscribe.js +20 -21
- package/dist/extensions/Blocks/Items/block.js +23 -20
- package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +38 -32
- package/dist/extensions/Blocks/Items/controls/settingsControl.js +69 -75
- package/dist/extensions/Blocks/Items/enums/settingsEnums.js +2 -0
- package/dist/extensions/Blocks/Items/extension.js +8 -9
- package/dist/extensions/Blocks/Items/template.js +210 -221
- package/dist/extensions/Blocks/Items/utils/nodeConfigUtils.js +61 -53
- package/dist/guido.css +1 -1
- package/dist/src/components/organisms/email-preview/desktop-preview/DesktopBrowserHeader.vue.d.ts +2 -0
- package/dist/src/components/organisms/header/EditorActions.vue.d.ts +4 -0
- package/dist/src/components/organisms/header/EditorToolbar.vue.d.ts +2 -0
- package/dist/src/components/organisms/header/RightSlot.vue.d.ts +1 -1
- package/dist/src/enums/academy.d.ts +12 -0
- package/dist/src/enums/onboarding.d.ts +0 -1
- package/dist/src/enums/unsubscribe.d.ts +0 -1
- package/dist/src/extensions/Blocks/Items/enums/settingsEnums.d.ts +2 -0
- package/dist/src/extensions/Blocks/Items/template.d.ts +1 -1
- package/dist/src/extensions/Blocks/Items/utils/nodeConfigUtils.d.ts +2 -5
- package/dist/src/stores/editor.d.ts +21 -0
- package/dist/static/assets/desktop/desktop-mockup-center.svg.js +4 -0
- package/dist/static/assets/desktop/desktop-mockup-left.svg.js +4 -0
- package/dist/static/assets/desktop/desktop-mockup-right.svg.js +4 -0
- package/dist/static/assets/mobile/email-mockup.svg.js +4 -0
- package/dist/static/assets/mobile/inbox-mockup.svg.js +4 -0
- package/dist/static/styles/components/wide-panel.css.js +1 -1
- package/dist/stores/editor.js +1 -0
- package/package.json +1 -1
- package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.js +0 -17
- package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue2.js +0 -20
- package/dist/static/assets/inbox-mockup.svg.js +0 -4
- package/dist/static/assets/phone-mockup.svg.js +0 -4
|
@@ -2,7 +2,7 @@ import s from "./PreviewContainer.vue2.js";
|
|
|
2
2
|
import t from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
3
|
var i = function() {
|
|
4
4
|
var o = this, r = o._self._c, e = o._self._setupProxy;
|
|
5
|
-
return e.previewStore.isLoaded ? r("div", { staticClass: "d-f f-d-c h-1 b-c-5 bor-r-2
|
|
5
|
+
return e.previewStore.isLoaded ? r("div", { staticClass: "d-f f-d-c h-1 b-c-5 bor-r-2" }, [r("div", { staticClass: "f-g-1 d-f p-5 o-a g-4 min-h-600" }, [r(e.DesktopPreview, { staticClass: "f-g-1 min-w-0" }), r(e.MobilePreview, { staticClass: "f-0 min-w-a" })], 1), e.previewStore.isAMPErrorModalVisible ? r(e.AmpErrorModal, { on: { close: function(_) {
|
|
6
6
|
return e.previewStore.closeErrorModal();
|
|
7
7
|
} } }) : o._e()], 1) : o._e();
|
|
8
8
|
}, n = [], a = /* @__PURE__ */ t(
|
|
@@ -13,7 +13,7 @@ var i = function() {
|
|
|
13
13
|
null,
|
|
14
14
|
null
|
|
15
15
|
);
|
|
16
|
-
const
|
|
16
|
+
const d = a.exports;
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
d as default
|
|
19
19
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import i from "./AmpErrorModal.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import a from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
4
|
var n = function() {
|
|
5
5
|
var e = this, r = e._self._c, t = e._self._setupProxy;
|
|
6
|
-
return r(t.WpModal, { attrs: { id: "amp-error-modal", size: "
|
|
6
|
+
return r(t.WpModal, { attrs: { id: "amp-error-modal", size: "small", description: t.ampValidationDescription, "footer-button-options": t.footerButtonOptions, title: t.trans("email-editor.amp-validation-title") }, on: { close: function(o) {
|
|
7
7
|
return t.emit("close");
|
|
8
|
-
}, "primary-action": t.handleFixInCodeEditor } }, [r("div", { staticClass: "d-f f-d-c" }, [r("div", { staticClass: "mb-3" }, [r("div", { staticClass: "l-s-5 f-s-1 f-w-600 t-c-55 t-t-u" }, [e._v(" " + e._s(t.errorCountText) + " ")])]), r("div", { staticClass: "d-f f-d-c g-13
|
|
9
|
-
return r(t.InOnPageMessage, { key:
|
|
8
|
+
}, "primary-action": t.handleFixInCodeEditor } }, [r("div", { staticClass: "d-f f-d-c" }, [r("div", { staticClass: "mb-3" }, [r("div", { staticClass: "l-s-5 f-s-1 f-w-600 t-c-55 t-t-u" }, [e._v(" " + e._s(t.errorCountText) + " ")])]), r("div", { staticClass: "d-f f-d-c g-13 error-list" }, e._l(t.previewStore.ampErrors, function(o, s) {
|
|
9
|
+
return r(t.InOnPageMessage, { key: s, attrs: { icon: "filled-error-box", size: "small", type: "alert", text: o } });
|
|
10
10
|
}), 1)])]);
|
|
11
11
|
}, l = [], d = /* @__PURE__ */ a(
|
|
12
|
-
|
|
12
|
+
i,
|
|
13
13
|
n,
|
|
14
14
|
l,
|
|
15
15
|
!1,
|
|
16
16
|
null,
|
|
17
|
-
"
|
|
17
|
+
"c3fd5d4b"
|
|
18
18
|
);
|
|
19
19
|
const _ = d.exports;
|
|
20
20
|
export {
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { useCodeEditorApi as
|
|
1
|
+
import { defineComponent as m, ref as c, computed as d } from "vue";
|
|
2
|
+
import l from "../../../wrappers/WpModal.vue.js";
|
|
3
|
+
import { useCodeEditorApi as f } from "../../../../composables/useCodeEditorApi.js";
|
|
4
4
|
import { usePreviewMode as u } from "../../../../composables/usePreviewMode.js";
|
|
5
|
-
import { useTranslations as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
5
|
+
import { useTranslations as _ } from "../../../../composables/useTranslations.js";
|
|
6
|
+
import { ACADEMY_LINKS as M } from "../../../../enums/academy.js";
|
|
7
|
+
import { usePreviewStore as y } from "../../../../stores/preview.js";
|
|
8
|
+
import { InOnPageMessage as E } from "@useinsider/design-system-vue";
|
|
9
|
+
const O = /* @__PURE__ */ m({
|
|
9
10
|
__name: "AmpErrorModal",
|
|
10
11
|
emits: ["close"],
|
|
11
|
-
setup(
|
|
12
|
-
const o =
|
|
12
|
+
setup(g, { emit: e }) {
|
|
13
|
+
const o = _(), { closePreviewMode: r } = u(), { openCodeEditor: t } = f(), i = y(), n = c({
|
|
13
14
|
cancelOrBackButton: {
|
|
14
15
|
type: "secondary",
|
|
15
16
|
labelText: o("campaign-builder.cancel"),
|
|
@@ -19,12 +20,15 @@ const P = /* @__PURE__ */ p({
|
|
|
19
20
|
type: "primary",
|
|
20
21
|
labelText: o("email-editor.amp-validation-fix")
|
|
21
22
|
}
|
|
22
|
-
}),
|
|
23
|
+
}), a = () => {
|
|
23
24
|
e("close"), r(), t();
|
|
24
|
-
},
|
|
25
|
-
|
|
25
|
+
}, s = o(
|
|
26
|
+
"email-editor.amp-validation-description",
|
|
27
|
+
{ academyLink: M.AMP_FOR_EMAILS }
|
|
28
|
+
), p = d(() => `${o("products.errors")} (${i.ampErrors.length})`);
|
|
29
|
+
return { __sfc: !0, emit: e, trans: o, closePreviewMode: r, openCodeEditor: t, previewStore: i, footerButtonOptions: n, handleFixInCodeEditor: a, ampValidationDescription: s, errorCountText: p, WpModal: l, InOnPageMessage: E };
|
|
26
30
|
}
|
|
27
31
|
});
|
|
28
32
|
export {
|
|
29
|
-
|
|
33
|
+
O as default
|
|
30
34
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import o from "./AmpToggle.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import n from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
-
var
|
|
4
|
+
var i = function() {
|
|
5
5
|
var r = this, t = r._self._c, e = r._self._setupProxy;
|
|
6
|
-
return t("div", [t("div", { staticClass: "d-f a-i-c ml-3" }, [t(e.InSegments, { attrs: { id: "guido__amp-toggle", "segment-list": e.segmentList, selected: e.previewStore.emailFormat }, on: { click: e.handleFormatChange } }), e.previewStore.showAMPErrorButton ? t(e.InButtonV2, { staticClass: "ml-3
|
|
6
|
+
return t("div", [t("div", { staticClass: "d-f a-i-c ml-3" }, [t(e.InSegments, { attrs: { id: "guido__amp-toggle", "with-icon": "", "segment-list": e.segmentList, selected: e.previewStore.emailFormat }, on: { click: e.handleFormatChange } }), e.previewStore.showAMPErrorButton ? t(e.InButtonV2, { staticClass: "ml-3", attrs: { id: "guido__amp-error-button", "left-icon": "filled-amp", type: "danger", "label-text": e.trans("email-editor.check-amp-errors", { count: e.previewStore.ampErrors.length }) }, on: { click: function(m) {
|
|
7
7
|
return e.previewStore.openErrorModal();
|
|
8
8
|
} } }) : r._e()], 1)]);
|
|
9
|
-
}, a = [],
|
|
9
|
+
}, a = [], s = /* @__PURE__ */ n(
|
|
10
10
|
o,
|
|
11
|
-
|
|
11
|
+
i,
|
|
12
12
|
a,
|
|
13
13
|
!1,
|
|
14
14
|
null,
|
|
15
|
-
"
|
|
15
|
+
"22226124"
|
|
16
16
|
);
|
|
17
|
-
const d =
|
|
17
|
+
const d = s.exports;
|
|
18
18
|
export {
|
|
19
19
|
d as default
|
|
20
20
|
};
|
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useTranslations as
|
|
3
|
-
import { usePreviewStore as
|
|
1
|
+
import { defineComponent as n, computed as i } from "vue";
|
|
2
|
+
import { useTranslations as m } from "../../../../composables/useTranslations.js";
|
|
3
|
+
import { usePreviewStore as r } from "../../../../stores/preview.js";
|
|
4
4
|
import { InButtonV2 as s, InSegments as l } from "@useinsider/design-system-vue";
|
|
5
|
-
const _ = /* @__PURE__ */
|
|
5
|
+
const _ = /* @__PURE__ */ n({
|
|
6
6
|
__name: "AmpToggle",
|
|
7
7
|
setup(p) {
|
|
8
|
-
const
|
|
8
|
+
const e = r(), t = m(), o = i(() => [
|
|
9
9
|
{
|
|
10
|
-
text:
|
|
11
|
-
value: "html"
|
|
10
|
+
text: t("dynamic-creatives.html"),
|
|
11
|
+
value: "html",
|
|
12
|
+
icon: "line-code"
|
|
12
13
|
},
|
|
13
14
|
{
|
|
14
|
-
text:
|
|
15
|
+
text: t("email-editor.amp-html"),
|
|
15
16
|
value: "AMP",
|
|
16
|
-
|
|
17
|
+
icon: "filled-amp",
|
|
18
|
+
tooltipText: e.hasAMP ? "" : t("email-editor.preview-amp-unavailable-tooltip"),
|
|
17
19
|
position: "bottom",
|
|
18
20
|
align: "center",
|
|
19
|
-
disable: !
|
|
21
|
+
disable: !e.hasAMP
|
|
20
22
|
}
|
|
21
23
|
]);
|
|
22
|
-
return { __sfc: !0, previewStore:
|
|
23
|
-
|
|
24
|
+
return { __sfc: !0, previewStore: e, trans: t, segmentList: o, handleFormatChange: (a) => {
|
|
25
|
+
e.setEmailFormat(a);
|
|
24
26
|
}, InSegments: l, InButtonV2: s };
|
|
25
27
|
}
|
|
26
28
|
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import r from "./DesktopBrowserHeader.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import o from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var a = function() {
|
|
5
|
+
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
6
|
+
return e("div", { staticClass: "desktop-browser-header d-f w-1 f-sh-0" }, [e("img", { staticClass: "desktop-browser-header__left f-sh-0", attrs: { alt: "", src: s.desktopMockupLeft } }), e("div", { staticClass: "desktop-browser-header__center f-g-1", style: s.centerBackgroundStyle }), e("img", { staticClass: "desktop-browser-header__right f-sh-0", attrs: { alt: "", src: s.desktopMockupRight } })]);
|
|
7
|
+
}, _ = [], c = /* @__PURE__ */ o(
|
|
8
|
+
r,
|
|
9
|
+
a,
|
|
10
|
+
_,
|
|
11
|
+
!1,
|
|
12
|
+
null,
|
|
13
|
+
"d86c5af5"
|
|
14
|
+
);
|
|
15
|
+
const p = c.exports;
|
|
16
|
+
export {
|
|
17
|
+
p as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { defineComponent as e, computed as o } from "vue";
|
|
2
|
+
import t from "../../../../static/assets/desktop/desktop-mockup-center.svg.js";
|
|
3
|
+
import r from "../../../../static/assets/desktop/desktop-mockup-left.svg.js";
|
|
4
|
+
import p from "../../../../static/assets/desktop/desktop-mockup-right.svg.js";
|
|
5
|
+
const k = /* @__PURE__ */ e({
|
|
6
|
+
__name: "DesktopBrowserHeader",
|
|
7
|
+
setup(n) {
|
|
8
|
+
return { __sfc: !0, centerBackgroundStyle: o(() => ({
|
|
9
|
+
backgroundImage: `url("${t}")`
|
|
10
|
+
})), desktopMockupLeft: r, desktopMockupRight: p };
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
k as default
|
|
15
|
+
};
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r from "./DesktopPreview.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
return
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
import o from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var a = function() {
|
|
5
|
+
var s = this, e = s._self._c, t = s._self._setupProxy;
|
|
6
|
+
return e("div", { staticClass: "desktop-preview-wrapper" }, [e("p", { staticClass: "f-s-1 f-w-600 l-h-1 t-t-u t-c-53 mb-6 l-s-5" }, [s._v(" " + s._s(t.trans("email-editor.desktop-preview")) + " ")]), e("div", { ref: "containerRef", staticClass: "desktop-preview d-f f-d-c o-h s-1" }, [e(t.DesktopBrowserHeader), e("div", { staticClass: "desktop-preview__content d-f f-g-1 o-h b-c-5 min-h-0" }, [e("div", { staticClass: "f-g-1 h-1 o-h b-c-4 min-w-0" }, [t.isContainerReady ? e("iframe", { staticClass: "desktop-preview__iframe d-b w-1 h-1 b-c-4 bor-s-n", attrs: { sandbox: `
|
|
7
|
+
allow-same-origin
|
|
8
|
+
allow-popups
|
|
9
|
+
allow-forms
|
|
10
|
+
allow-scripts
|
|
11
|
+
allow-popups-to-escape-sandbox`, srcdoc: t.previewStore.previewHtml } }) : s._e()])])], 1)]);
|
|
12
|
+
}, i = [], p = /* @__PURE__ */ o(
|
|
13
|
+
r,
|
|
14
|
+
a,
|
|
14
15
|
i,
|
|
15
16
|
!1,
|
|
16
17
|
null,
|
|
17
|
-
"
|
|
18
|
+
"988f8da6"
|
|
18
19
|
);
|
|
19
|
-
const
|
|
20
|
+
const _ = p.exports;
|
|
20
21
|
export {
|
|
21
|
-
|
|
22
|
+
_ as default
|
|
22
23
|
};
|
|
@@ -1,31 +1,23 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
const B = /* @__PURE__ */ d({
|
|
1
|
+
import { defineComponent as f, ref as s, onMounted as c, onBeforeUnmount as m, nextTick as u } from "vue";
|
|
2
|
+
import { useTranslations as p } from "../../../../composables/useTranslations.js";
|
|
3
|
+
import { usePreviewStore as l } from "../../../../stores/preview.js";
|
|
4
|
+
import _ from "./DesktopBrowserHeader.vue.js";
|
|
5
|
+
const x = /* @__PURE__ */ f({
|
|
7
6
|
__name: "DesktopPreview",
|
|
8
|
-
setup(
|
|
9
|
-
const
|
|
10
|
-
if (!t.value)
|
|
11
|
-
return;
|
|
12
|
-
const o = t.value.querySelector(".in-container");
|
|
13
|
-
if (!o)
|
|
14
|
-
return;
|
|
15
|
-
const u = o.getBoundingClientRect(), s = o.querySelector(".in-container__header"), f = s ? s.getBoundingClientRect().height : 0, p = u.height - f;
|
|
16
|
-
i.value = `${p}px`;
|
|
17
|
-
};
|
|
7
|
+
setup(v) {
|
|
8
|
+
const a = p(), o = s(), n = s(!1), i = l();
|
|
18
9
|
let e = null;
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
10
|
+
const t = () => {
|
|
11
|
+
o.value && (e = new ResizeObserver(() => {
|
|
12
|
+
}), e.observe(o.value), u(() => {
|
|
13
|
+
n.value = !0;
|
|
22
14
|
}));
|
|
23
|
-
},
|
|
15
|
+
}, r = () => {
|
|
24
16
|
e == null || e.disconnect();
|
|
25
17
|
};
|
|
26
|
-
return
|
|
18
|
+
return c(t), m(r), { __sfc: !0, trans: a, containerRef: o, isContainerReady: n, previewStore: i, resizeObserver: e, initIframe: t, cleanIframe: r, DesktopBrowserHeader: _ };
|
|
27
19
|
}
|
|
28
20
|
});
|
|
29
21
|
export {
|
|
30
|
-
|
|
22
|
+
x as default
|
|
31
23
|
};
|
|
@@ -2,15 +2,15 @@ import i from "./EmailSizeIndicator.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
4
|
var o = function() {
|
|
5
|
-
var
|
|
6
|
-
return e("div", { staticClass: "d-f a-i-c j-c-c" }, [e
|
|
5
|
+
var t = this, s = t._self._c, e = t._self._setupProxy;
|
|
6
|
+
return e.previewStore.previewHtml ? s("div", { staticClass: "d-f a-i-c j-c-c" }, [s(e.InProgress, { staticClass: "min-w-15-s", attrs: { id: "email-size-progress", "description-status": "", "description-position": "left", description: e.htmlSize, "max-value": e.MAX_EMAIL_SIZE_IN_KB, type: e.progress.type, value: e.progress.value } }), s(e.InTooltip, { staticClass: "d-f ml-1", attrs: { id: "email-size-tooltip", align: "center", position: "bottom", text: e.trans("email-editor.preview-design-size-tooltip") } })], 1) : t._e();
|
|
7
7
|
}, a = [], n = /* @__PURE__ */ r(
|
|
8
8
|
i,
|
|
9
9
|
o,
|
|
10
10
|
a,
|
|
11
11
|
!1,
|
|
12
12
|
null,
|
|
13
|
-
"
|
|
13
|
+
"913a3417"
|
|
14
14
|
);
|
|
15
15
|
const m = n.exports;
|
|
16
16
|
export {
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import e from "./ContentView.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import n from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
4
|
var o = function() {
|
|
4
|
-
var
|
|
5
|
+
var t = this, s = t._self._c, a = t._self._setupProxy;
|
|
5
6
|
return s("div", { staticClass: "w-1 h-1 b-c-4 d-f f-d-c" }, [s("div", { staticClass: "d-f j-c-s-b a-i-c p-2 h-6-s" }, [s("div", { staticClass: "d-f a-i-c cur-p", on: { click: function(l) {
|
|
6
|
-
return
|
|
7
|
-
} } }, [s(
|
|
8
|
-
},
|
|
9
|
-
|
|
7
|
+
return t.$emit("back-to-inbox");
|
|
8
|
+
} } }, [s(a.InIcons, { staticClass: "f-s-3 i-c-7", attrs: { name: "line-chevron-left" } }), s("span", { staticClass: "ml-2 f-s-1 f-w-400 l-h-1 t-c-7" }, [t._v(t._s(a.trans("newsletter.inbox")))])], 1), s("div", { staticClass: "d-f a-i-c" }, [s(a.InIcons, { staticClass: "i-c-52", attrs: { name: "line-chevron-down" } }), s(a.InIcons, { staticClass: "ml-1 i-c-52", attrs: { name: "line-chevron-up" } })], 1)]), s("div", { staticClass: "iframe-wrapper f-g-1 o-h" }, [s("iframe", { ref: "iframeRef", staticClass: "iframe-scaled d-b b-c-4 bor-s-n", attrs: { sandbox: "allow-same-origin allow-popups allow-forms allow-scripts allow-popups-to-escape-sandbox", srcdoc: a.previewStore.previewHtml }, on: { load: a.onLoad } })])]);
|
|
9
|
+
}, i = [], r = /* @__PURE__ */ n(
|
|
10
|
+
e,
|
|
10
11
|
o,
|
|
11
|
-
|
|
12
|
+
i,
|
|
12
13
|
!1,
|
|
13
14
|
null,
|
|
14
|
-
|
|
15
|
+
"e0424e99"
|
|
15
16
|
);
|
|
16
|
-
const d =
|
|
17
|
+
const d = r.exports;
|
|
17
18
|
export {
|
|
18
19
|
d as default
|
|
19
20
|
};
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r from "./InboxView.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
3
|
+
import i from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
4
|
var a = function() {
|
|
5
5
|
var s = this, t = s._self._c, c = s._self._setupProxy;
|
|
6
|
-
return t("div", { staticClass: "p-y-13 p-x-3 bor-b-w-1 bor-b-s-s bor-b-c-50 cur-p b-c-4 b-c-h-5 p-3", on: { click: function(
|
|
6
|
+
return t("div", { staticClass: "inbox-view" }, [t("div", { staticClass: "p-y-13 p-x-3 bor-b-w-1 bor-b-s-s bor-b-c-50 cur-p b-c-4 b-c-h-5 p-3", on: { click: function(e) {
|
|
7
7
|
return c.emit("open-email");
|
|
8
|
-
} } }, [t("div", { staticClass: "d-f j-c-s-b a-i-c w-1" }, [t("div", { staticClass: "f-g-1 min-w-0-s" }, [t("div", { staticClass: "f-s-1 f-w-600 t-c-53 l-h-1
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
} } }, [t("div", { staticClass: "d-f j-c-s-b a-i-c w-1" }, [t("div", { staticClass: "f-g-1 min-w-0-s" }, [t("div", { staticClass: "f-s-1 f-w-600 t-c-53 l-h-1 cropped-text" }, [s._v(" " + s._s(c.senderName) + " ")]), t("div", { staticClass: "f-s-12 f-w-400 t-c-55 l-h-1 cropped-text" }, [s._v(" " + s._s(c.subject) + " ")])]), t("div", { staticClass: "f-sh-0 ml-2 f-s-12 f-w-400 t-c-55 l-h-1" }, [s._v(" " + s._s(c.trans("product-catalog.today")) + " ")]), t(c.InIcons, { staticClass: "i-c-52", attrs: { name: "line-chevron-right" } })], 1)]), s._l(5, function(e) {
|
|
9
|
+
return t("div", { key: e, staticClass: "h-9-s bor-b-w-1 bor-b-s-s bor-b-c-50" });
|
|
10
|
+
})], 2);
|
|
11
|
+
}, n = [], o = /* @__PURE__ */ i(
|
|
12
|
+
r,
|
|
11
13
|
a,
|
|
12
|
-
|
|
14
|
+
n,
|
|
13
15
|
!1,
|
|
14
16
|
null,
|
|
15
|
-
"
|
|
17
|
+
"eb3d05d7"
|
|
16
18
|
);
|
|
17
|
-
const
|
|
19
|
+
const b = o.exports;
|
|
18
20
|
export {
|
|
19
|
-
|
|
21
|
+
b as default
|
|
20
22
|
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
},
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import s from "./MobilePreview.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import i from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var r = function() {
|
|
5
|
+
var o = this, t = o._self._c, e = o._self._setupProxy;
|
|
6
|
+
return t("div", { staticClass: "mobile-preview-wrapper" }, [t("p", { staticClass: "f-s-1 f-w-600 l-h-1 t-t-u t-c-53 ml-5 mb-6 l-s-5" }, [o._v(" " + o._s(e.trans("email-editor.mobile-preview")) + " ")]), t("div", { staticClass: "d-f j-c-c pl-5" }, [t("div", { staticClass: "mobile-preview-wrapper__phone p-r" }, [t("img", { staticClass: "w-1 h-1 d-b p-e-n s-2", attrs: { alt: e.mockup.alt, src: e.mockup.image } }), t("div", { staticClass: "mobile-preview-wrapper__content p-a o-h", style: { top: e.phoneScreenTopMargin } }, [e.showInbox ? t(e.InboxView, { on: { "open-email": e.openEmail } }) : t(e.ContentView, { on: { "back-to-inbox": e.backToInbox } })], 1)])])]);
|
|
7
|
+
}, a = [], n = /* @__PURE__ */ i(
|
|
8
|
+
s,
|
|
9
9
|
r,
|
|
10
|
+
a,
|
|
10
11
|
!1,
|
|
11
12
|
null,
|
|
12
|
-
|
|
13
|
+
"3f472f96"
|
|
13
14
|
);
|
|
14
|
-
const _ =
|
|
15
|
+
const _ = n.exports;
|
|
15
16
|
export {
|
|
16
17
|
_ as default
|
|
17
18
|
};
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import c from "../../../../static/assets/
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
1
|
+
import { defineComponent as a, ref as i, computed as e } from "vue";
|
|
2
|
+
import { useTranslations as s } from "../../../../composables/useTranslations.js";
|
|
3
|
+
import c from "../../../../static/assets/mobile/email-mockup.svg.js";
|
|
4
|
+
import u from "../../../../static/assets/mobile/inbox-mockup.svg.js";
|
|
5
|
+
import f from "./ContentView.vue.js";
|
|
6
|
+
import l from "./InboxView.vue.js";
|
|
7
|
+
const k = /* @__PURE__ */ a({
|
|
7
8
|
__name: "MobilePreview",
|
|
8
|
-
setup(
|
|
9
|
-
const o = i(!1),
|
|
10
|
-
image: o.value ?
|
|
9
|
+
setup(v) {
|
|
10
|
+
const n = s(), o = i(!1), r = e(() => ({
|
|
11
|
+
image: o.value ? u : c,
|
|
11
12
|
alt: o.value ? "Inbox mockup" : "Phone mockup"
|
|
12
|
-
})),
|
|
13
|
+
})), t = () => {
|
|
13
14
|
o.value = !1;
|
|
14
|
-
},
|
|
15
|
+
}, m = () => {
|
|
15
16
|
o.value = !0;
|
|
16
|
-
}, p = e(() => o.value ? "
|
|
17
|
-
return { __sfc: !0, showInbox: o, mockup:
|
|
17
|
+
}, p = e(() => o.value ? "83px" : "64px");
|
|
18
|
+
return { __sfc: !0, trans: n, showInbox: o, mockup: r, openEmail: t, backToInbox: m, phoneScreenTopMargin: p, ContentView: f, InboxView: l };
|
|
18
19
|
}
|
|
19
20
|
});
|
|
20
21
|
export {
|
|
21
|
-
|
|
22
|
+
k as default
|
|
22
23
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import l from "./EditorActions.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import r from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var d = function() {
|
|
5
|
+
var s, i, n, a;
|
|
6
|
+
var e = this, o = e._self._c, t = e._self._setupProxy;
|
|
7
|
+
return o("div", { staticClass: "d-f editor-actions" }, [t.isVersionHistoryButtonVisible ? o(t.InButtonV2, { attrs: { id: "guido__history-button", "left-icon": "line-architect-version-history", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isVersionHistoryOpen, "tooltip-options": t.getTooltipOptions("guido__history-button"), "tooltip-text": t.versionHistoryTooltipText }, on: { click: t.handleVersionHistory } }) : e._e(), o(t.InButtonV2, { attrs: { id: "guido__export-button", "left-icon": "line-export", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isExportButtonDisabled, "label-text-status": !1, "loading-status": t.isExporting, "tooltip-options": t.getTooltipOptions("guido__export-button"), "tooltip-text": t.trans("newsletter.export") }, on: { click: t.handleExport } }), (i = (s = t.config) == null ? void 0 : s.features) != null && i.saveAsTemplate ? o(t.InButtonV2, { attrs: { id: "guido__save-as-button", "left-icon": "line-newsletter-save-as-template", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isSaveAsButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__save-as-button"), "tooltip-text": t.trans("newsletter.save-templates") }, on: { click: t.handleSaveAs } }) : e._e(), (a = (n = t.config) == null ? void 0 : n.features) != null && a.testMessage ? o(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.testEmailClick } }) : e._e(), t.editorStore.isPreviewModeOpen ? e._e() : o(t.InButtonV2, { staticClass: "ml-3", attrs: { id: "guido__save-button", "label-text": "Save", "disabled-status": !t.isSaving && t.editorStore.isSaveButtonDisabled, "loading-status": t.isSaving }, on: { click: function(_) {
|
|
8
|
+
return t.handleSave(!1);
|
|
9
|
+
} } })], 1);
|
|
10
|
+
}, u = [], p = /* @__PURE__ */ r(
|
|
11
|
+
l,
|
|
12
|
+
d,
|
|
13
|
+
u,
|
|
14
|
+
!1,
|
|
15
|
+
null,
|
|
16
|
+
"17dd4d8b"
|
|
17
|
+
);
|
|
18
|
+
const v = p.exports;
|
|
19
|
+
export {
|
|
20
|
+
v as default
|
|
21
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineComponent as g, ref as u, computed as f } from "vue";
|
|
2
|
+
import { useConfig as E } from "../../../composables/useConfig.js";
|
|
3
|
+
import { useExport as h } from "../../../composables/useExport.js";
|
|
4
|
+
import { useTestEmailClick as w } from "../../../composables/useGuidoActions.js";
|
|
5
|
+
import { useSave as x } from "../../../composables/useSave.js";
|
|
6
|
+
import { useTranslations as T } from "../../../composables/useTranslations.js";
|
|
7
|
+
import { useVersionHistoryApi as O } from "../../../composables/useVersionHistoryApi.js";
|
|
8
|
+
import { useEditorStore as A } from "../../../stores/editor.js";
|
|
9
|
+
import { getTooltipOptions as C } from "../../../utils/tooltipUtils.js";
|
|
10
|
+
import { InButtonV2 as k } from "@useinsider/design-system-vue";
|
|
11
|
+
const J = /* @__PURE__ */ g({
|
|
12
|
+
__name: "EditorActions",
|
|
13
|
+
setup(B, { expose: v }) {
|
|
14
|
+
const { config: n } = E(), { exportHtml: a } = h(), { save: l } = x(), { openVersionHistory: p, closeVersionHistory: c } = O(), o = A(), s = T(), r = u(!1), i = u(!1), d = w(), y = () => {
|
|
15
|
+
if (o.isVersionHistoryOpen) {
|
|
16
|
+
c();
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
p();
|
|
20
|
+
}, H = async () => {
|
|
21
|
+
r.value = !0, await a(), r.value = !1;
|
|
22
|
+
}, V = () => {
|
|
23
|
+
o.isSaveAsTemplateDrawerOpen = !0;
|
|
24
|
+
}, S = f(() => o.isVersionHistoryOpen ? s("newsletter.close-version-history") : s("newsletter.version-history")), _ = f(
|
|
25
|
+
() => {
|
|
26
|
+
var t, e;
|
|
27
|
+
return ((e = (t = n.value) == null ? void 0 : t.features) == null ? void 0 : e.versionHistory) && !o.isPreviewModeOpen;
|
|
28
|
+
}
|
|
29
|
+
), m = async (t) => {
|
|
30
|
+
i.value = !0, o.loadingStatus = !0;
|
|
31
|
+
const e = await l(t);
|
|
32
|
+
return i.value = !1, (t || !e) && (o.loadingStatus = !1), e;
|
|
33
|
+
};
|
|
34
|
+
return v({
|
|
35
|
+
handleSave: m
|
|
36
|
+
}), { __sfc: !0, config: n, exportHtml: a, save: l, openVersionHistory: p, closeVersionHistory: c, editorStore: o, trans: s, isExporting: r, isSaving: i, testEmailClick: d, handleVersionHistory: y, handleExport: H, handleSaveAs: V, versionHistoryTooltipText: S, isVersionHistoryButtonVisible: _, handleSave: m, getTooltipOptions: C, InButtonV2: k };
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
J as default
|
|
41
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import i from "./EditorToolbar.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import s from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var n = function() {
|
|
5
|
+
var e = this, o = e._self._c, t = e._self._setupProxy;
|
|
6
|
+
return o("div", { staticClass: "d-f editor-toolbar" }, [o(t.InButtonV2, { attrs: { id: "guido__undo-button", "left-icon": "line-undo", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isUndoButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__undo-button"), "tooltip-text": t.trans("action-builder.undo") } }), o(t.InButtonV2, { attrs: { id: "guido__redo-button", "left-icon": "line-redo", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isRedoButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__redo-button"), "tooltip-text": t.trans("action-builder.redo") } }), o(t.InButtonV2, { attrs: { id: "guido__code-button", "data-testid": "Code Editor", "left-icon": "line-code", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isCodeEditorButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isCodeEditorOpen, "tooltip-options": t.getTooltipOptions("guido__code-button"), "tooltip-text": t.codeEditorTooltipText } }), o(t.InButtonV2, { attrs: { id: "guido__preview-button", "left-icon": "line-show-on", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isPreviewButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isPreviewModeOpen, "tooltip-options": t.getTooltipOptions("guido__preview-button"), "tooltip-text": t.previewTooltipText }, on: { click: t.handlePreviewToggle } }), o(t.ViewOptions, { staticClass: "ml-2" })], 1);
|
|
7
|
+
}, d = [], l = /* @__PURE__ */ s(
|
|
8
|
+
i,
|
|
9
|
+
n,
|
|
10
|
+
d,
|
|
11
|
+
!1,
|
|
12
|
+
null,
|
|
13
|
+
"173c3a40"
|
|
14
|
+
);
|
|
15
|
+
const _ = l.exports;
|
|
16
|
+
export {
|
|
17
|
+
_ as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { defineComponent as p, computed as i } from "vue";
|
|
2
|
+
import { usePreviewMode as m } from "../../../composables/usePreviewMode.js";
|
|
3
|
+
import { useTranslations as l } from "../../../composables/useTranslations.js";
|
|
4
|
+
import { useEditorStore as d } from "../../../stores/editor.js";
|
|
5
|
+
import { getTooltipOptions as w } from "../../../utils/tooltipUtils.js";
|
|
6
|
+
import { InButtonV2 as c } from "@useinsider/design-system-vue";
|
|
7
|
+
import a from "./ViewOptions.vue.js";
|
|
8
|
+
const h = /* @__PURE__ */ p({
|
|
9
|
+
__name: "EditorToolbar",
|
|
10
|
+
setup(f) {
|
|
11
|
+
const o = d(), e = l(), { openPreviewMode: t, closePreviewMode: r } = m(), n = i(() => o.isPreviewModeOpen ? e("newsletter.close-email-preview") : e("newsletter.email-preview")), s = i(() => o.isCodeEditorOpen ? e("newsletter.close-html-editor") : e("newsletter.html-editor"));
|
|
12
|
+
return { __sfc: !0, editorStore: o, trans: e, openPreviewMode: t, closePreviewMode: r, previewTooltipText: n, codeEditorTooltipText: s, handlePreviewToggle: () => o.isPreviewModeOpen ? r() : t(), getTooltipOptions: w, InButtonV2: c, ViewOptions: a };
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
h as default
|
|
17
|
+
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import o from "./HeaderWrapper.vue2.js";
|
|
2
|
+
/* empty css */
|
|
2
3
|
import s from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
-
var
|
|
4
|
+
var a = function() {
|
|
4
5
|
var t = this, r = t._self._c, e = t._self._setupProxy;
|
|
5
|
-
return r(e.InContainer, { attrs: { border: "bor-w-0 bor-b-w-1 bor-s-s bor-c-6", "border-radius": "bor-r-0" } }, [r("div", { staticClass: "w-1 d-f a-i-c j-c-s-b p-3" }, [r(e.LeftSlot), r(e.MiddleSlot), r(e.RightSlot, { ref: "rightSlotRef" })], 1)]);
|
|
6
|
-
},
|
|
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" } }, [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, { ref: "rightSlotRef" })], 1)]);
|
|
7
|
+
}, n = [], _ = /* @__PURE__ */ s(
|
|
7
8
|
o,
|
|
8
|
-
n,
|
|
9
9
|
a,
|
|
10
|
+
n,
|
|
10
11
|
!1,
|
|
11
12
|
null,
|
|
12
|
-
|
|
13
|
+
"5df46e7a"
|
|
13
14
|
);
|
|
14
15
|
const c = _.exports;
|
|
15
16
|
export {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import n from "./LeftSlot.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
3
|
+
import s from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
4
|
var r = function() {
|
|
5
|
-
var e = this,
|
|
6
|
-
return
|
|
7
|
-
},
|
|
8
|
-
|
|
5
|
+
var e = this, o = e._self._c, t = e._self._setupProxy;
|
|
6
|
+
return o("div", { staticClass: "d-f a-i-c" }, [o(t.InButtonV2, { attrs: { id: "guido__back-button", "left-icon": "line-arrow-left", styling: "ghost", type: "secondary", "label-text": t.backButtonLabel, "skeleton-sizing": { width: 150, height: 26 }, "skeleton-status": t.editorStore.loadingStatus }, on: { click: t.handleBackClick } })], 1);
|
|
7
|
+
}, a = [], i = /* @__PURE__ */ s(
|
|
8
|
+
n,
|
|
9
9
|
r,
|
|
10
|
-
|
|
10
|
+
a,
|
|
11
11
|
!1,
|
|
12
12
|
null,
|
|
13
|
-
"
|
|
13
|
+
"c722b9f4"
|
|
14
14
|
);
|
|
15
|
-
const d =
|
|
15
|
+
const d = i.exports;
|
|
16
16
|
export {
|
|
17
17
|
d as default
|
|
18
18
|
};
|