@useinsider/guido 1.0.2-beta.e5fcba7 â 1.0.2-beta.efaabbe
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 +1 -24
- package/dist/@types/events.d.ts +0 -6
- package/dist/@types/generic.d.ts +0 -4
- package/dist/components/Guido.vue.js +2 -2
- package/dist/components/Guido.vue2.js +35 -37
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +2 -3
- package/dist/components/organisms/header/LeftSlot.vue.js +10 -10
- package/dist/components/organisms/header/LeftSlot.vue2.js +10 -23
- package/dist/components/organisms/header/ViewOptions.vue.js +11 -11
- package/dist/components/organisms/header/ViewOptions.vue2.js +5 -5
- package/dist/components/organisms/header/version-history/ViewOptions.vue.js +11 -11
- package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +5 -5
- package/dist/composables/useCustomInterfaceAppearance.js +18 -22
- package/dist/composables/useHtmlValidator.d.ts +1 -2
- package/dist/composables/useHtmlValidator.js +75 -85
- package/dist/composables/usePartner.d.ts +0 -1
- package/dist/composables/usePartner.js +9 -16
- package/dist/composables/useSave.js +6 -6
- package/dist/composables/useStripo.js +22 -24
- package/dist/composables/useVersionHistoryApi.js +9 -10
- package/dist/enums/defaults.d.ts +0 -1
- package/dist/enums/defaults.js +10 -42
- package/dist/guido.css +1 -1
- package/dist/static/styles/components/alert-message.css.js +2 -32
- package/dist/static/styles/components/button.css.js +2 -32
- package/dist/static/styles/components/wide-panel.css.js +1 -5
- package/dist/static/styles/customEditorStyle.css.js +0 -6
- package/dist/static/styles/variables.css.js +0 -10
- package/dist/stores/dynamic-content.d.ts +0 -12
- package/dist/stores/dynamic-content.js +6 -7
- package/dist/stores/editor.d.ts +0 -21
- package/dist/stores/editor.js +1 -2
- package/dist/utils/genericUtil.js +6 -9
- package/package.json +1 -1
- package/dist/components/organisms/onboarding/AMPOnboarding.vue.d.ts +0 -2
- package/dist/components/organisms/onboarding/AMPOnboarding.vue.js +0 -20
- package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +0 -37
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.d.ts +0 -2
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +0 -21
- package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +0 -83
- package/dist/components/organisms/onboarding/NewVersionPopup.vue.d.ts +0 -2
- package/dist/components/organisms/onboarding/NewVersionPopup.vue.js +0 -17
- package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +0 -30
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue.d.ts +0 -2
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +0 -19
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +0 -43
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.d.ts +0 -2
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +0 -21
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +0 -74
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.d.ts +0 -2
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +0 -20
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +0 -37
- package/dist/composables/useStripoEventHandler.d.ts +0 -3
- package/dist/composables/useStripoEventHandler.js +0 -20
- package/dist/enums/onboarding.d.ts +0 -1
- package/dist/enums/onboarding.js +0 -8
- package/dist/mock/api/user-modal-state.d.ts +0 -2
- package/dist/services/onboardingApi.d.ts +0 -4
- package/dist/services/onboardingApi.js +0 -23
- package/dist/static/assets/onboarding-img.svg.js +0 -4
- package/dist/static/styles/components/notification.css.js +0 -55
- package/dist/static/styles/components/popup.css.js +0 -68
- package/dist/stores/onboarding.d.ts +0 -1068
- package/dist/stores/onboarding.js +0 -95
package/README.md
CHANGED
|
@@ -16,30 +16,7 @@ npm install @useinsider/guido
|
|
|
16
16
|
```
|
|
17
17
|
### Prerequisites
|
|
18
18
|
đ Your project should have `pinia`
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
âšī¸ It helps to optimize your dependencies and sharing by Guido. This is why Guido pretty fast and tiny.
|
|
22
|
-
|
|
23
|
-
#### For Webpack
|
|
24
|
-
`/webpack.config.js` or `/vue.config.js`
|
|
25
|
-
```js
|
|
26
|
-
// ... Previous Configs
|
|
27
|
-
shared: {
|
|
28
|
-
vue: { singleton: true },
|
|
29
|
-
pinia: { singleton: true },
|
|
30
|
-
},
|
|
31
|
-
// ... Upcoming Configs
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
##### For Vite:
|
|
35
|
-
`/vite.config.js`
|
|
36
|
-
```js
|
|
37
|
-
// ... Previous Configs
|
|
38
|
-
resolve: {
|
|
39
|
-
dedupe: ['vue', 'pinia'],
|
|
40
|
-
},
|
|
41
|
-
// ... Upcoming Configs
|
|
42
|
-
```
|
|
19
|
+
|
|
43
20
|
---
|
|
44
21
|
## đ Usage
|
|
45
22
|
|
package/dist/@types/events.d.ts
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
1
|
export type StripoEventType = 'save' | 'export' | 'close' | 'autosave' | 'publish' | 'export:requested' | 'export:ready';
|
|
2
|
-
export interface EventHandler {
|
|
3
|
-
(params: Record<string, string>): void | Promise<void>;
|
|
4
|
-
}
|
|
5
|
-
export interface EventHandlers {
|
|
6
|
-
[eventType: string]: EventHandler;
|
|
7
|
-
}
|
package/dist/@types/generic.d.ts
CHANGED
|
@@ -3,14 +3,14 @@ import a from "./Guido.vue2.js";
|
|
|
3
3
|
import i from "../_virtual/_plugin-vue2_normalizer.js";
|
|
4
4
|
var t = function() {
|
|
5
5
|
var o = this, r = o._self._c, e = o._self._setupProxy;
|
|
6
|
-
return r("div", { staticClass: "guido-editor__wrapper", class: { "guido-editor__no-header": e.noHeader } }, [r(e.HeaderWrapper, { ref: "headerWrapperRef" }), e.editorStore.isPreviewModeOpen ? r(e.PreviewContainer) : o._e(), r("div", { directives: [{ name: "show", rawName: "v-show", value: !e.previewStore.isLoaded, expression: "!previewStore.isLoaded" }], staticClass: "guido-editor__container", class: { "guido-editor__no-header": e.noHeader }, attrs: { id: "guido-editor" } }), r(e.Toaster), r(e.SaveAsTemplateDrawer),
|
|
6
|
+
return r("div", { staticClass: "guido-editor__wrapper", class: { "guido-editor__no-header": e.noHeader } }, [r(e.HeaderWrapper, { ref: "headerWrapperRef" }), e.editorStore.isPreviewModeOpen ? r(e.PreviewContainer) : o._e(), r("div", { directives: [{ name: "show", rawName: "v-show", value: !e.previewStore.isLoaded, expression: "!previewStore.isLoaded" }], staticClass: "guido-editor__container", class: { "guido-editor__no-header": e.noHeader }, attrs: { id: "guido-editor" } }), r(e.Toaster), r(e.SaveAsTemplateDrawer), r(e.LoadingWrapper)], 1);
|
|
7
7
|
}, s = [], d = /* @__PURE__ */ i(
|
|
8
8
|
a,
|
|
9
9
|
t,
|
|
10
10
|
s,
|
|
11
11
|
!1,
|
|
12
12
|
null,
|
|
13
|
-
"
|
|
13
|
+
"0defec6a"
|
|
14
14
|
);
|
|
15
15
|
const v = d.exports;
|
|
16
16
|
export {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { provideGuidoActions as
|
|
3
|
-
import { usePartner as
|
|
4
|
-
import { useStripo as
|
|
5
|
-
import { DefaultUsername as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { useStripoApi as
|
|
11
|
-
import { useDynamicContentStore as
|
|
12
|
-
import { useEditorStore as
|
|
13
|
-
import { usePreviewStore as
|
|
14
|
-
import
|
|
15
|
-
const
|
|
1
|
+
import { defineComponent as k, defineAsyncComponent as A, ref as N, computed as T, watch as W, onMounted as H, onUnmounted as R } from "vue";
|
|
2
|
+
import { provideGuidoActions as U } from "../composables/useGuidoActions.js";
|
|
3
|
+
import { usePartner as x } from "../composables/usePartner.js";
|
|
4
|
+
import { useStripo as F } from "../composables/useStripo.js";
|
|
5
|
+
import { DefaultUsername as M, DefaultMessageType as z, DefaultGuidoConfig as B } from "../enums/defaults.js";
|
|
6
|
+
import K from "./organisms/base/Toaster.vue.js";
|
|
7
|
+
import j from "./organisms/header/HeaderWrapper.vue.js";
|
|
8
|
+
import q from "./organisms/LoadingWrapper.vue.js";
|
|
9
|
+
import J from "./organisms/save-as-template/SaveAsTemplateDrawer.vue.js";
|
|
10
|
+
import { useStripoApi as O } from "../services/stripoApi.js";
|
|
11
|
+
import { useDynamicContentStore as Q } from "../stores/dynamic-content.js";
|
|
12
|
+
import { useEditorStore as V } from "../stores/editor.js";
|
|
13
|
+
import { usePreviewStore as X } from "../stores/preview.js";
|
|
14
|
+
import Y from "../node_modules/lodash-es/merge.js";
|
|
15
|
+
const ue = /* @__PURE__ */ k({
|
|
16
16
|
__name: "Guido",
|
|
17
17
|
props: {
|
|
18
18
|
templateId: null,
|
|
@@ -27,12 +27,10 @@ const ge = /* @__PURE__ */ N({
|
|
|
27
27
|
guidoConfig: null
|
|
28
28
|
},
|
|
29
29
|
emits: ["dynamic-content:open", "back", "save:start", "save:complete", "on-change", "ready"],
|
|
30
|
-
setup(
|
|
31
|
-
const n =
|
|
30
|
+
setup(G, { expose: I, emit: o }) {
|
|
31
|
+
const n = G, L = A(
|
|
32
32
|
() => import("./organisms/email-preview/PreviewContainer.vue.js")
|
|
33
|
-
),
|
|
34
|
-
() => import("./organisms/onboarding/OnboardingWrapper.vue.js")
|
|
35
|
-
), c = H(), r = X(), d = Y(), W = Z(), t = G(() => d.hasChanges), a = n.preselectedDynamicContentList || [], { getPartnerName: m, getProductType: l, isTestPartner: k } = M(), u = () => {
|
|
33
|
+
), c = N(), r = Q(), d = V(), P = X(), t = T(() => d.hasChanges), a = n.preselectedDynamicContentList || [], { getPartnerName: m, getProductType: l } = x(), u = () => {
|
|
36
34
|
var e;
|
|
37
35
|
return (e = c.value) == null ? void 0 : e.handleSave(!0);
|
|
38
36
|
}, {
|
|
@@ -43,15 +41,15 @@ const ge = /* @__PURE__ */ N({
|
|
|
43
41
|
css: v = "",
|
|
44
42
|
partnerName: i = m(),
|
|
45
43
|
productType: s = l(),
|
|
46
|
-
messageType: C =
|
|
47
|
-
username: h =
|
|
44
|
+
messageType: C = z,
|
|
45
|
+
username: h = M
|
|
48
46
|
} = n;
|
|
49
|
-
window.GuidoConfig =
|
|
47
|
+
window.GuidoConfig = Y(B, f), window.GuidoConfig.partner = {
|
|
50
48
|
partnerName: i,
|
|
51
49
|
productType: s,
|
|
52
50
|
messageType: C
|
|
53
51
|
};
|
|
54
|
-
const { initPlugin: w } =
|
|
52
|
+
const { initPlugin: w } = F({
|
|
55
53
|
emailId: p,
|
|
56
54
|
userId: g,
|
|
57
55
|
username: h,
|
|
@@ -61,11 +59,11 @@ const ge = /* @__PURE__ */ N({
|
|
|
61
59
|
onReady: () => {
|
|
62
60
|
console.debug("guido:ready"), o("ready");
|
|
63
61
|
}
|
|
64
|
-
}), { getDefaultTemplate: S } =
|
|
62
|
+
}), { getDefaultTemplate: S } = O(), _ = T(() => {
|
|
65
63
|
var e;
|
|
66
64
|
return !((e = window.GuidoConfig) != null && e.useHeader);
|
|
67
65
|
});
|
|
68
|
-
|
|
66
|
+
U({
|
|
69
67
|
onBack: () => {
|
|
70
68
|
console.debug("guido:back"), o("back");
|
|
71
69
|
},
|
|
@@ -76,14 +74,14 @@ const ge = /* @__PURE__ */ N({
|
|
|
76
74
|
console.debug("guido:save:complete", e), o("save:complete", e);
|
|
77
75
|
}
|
|
78
76
|
});
|
|
79
|
-
const
|
|
77
|
+
const D = (e) => {
|
|
80
78
|
console.debug("dynamic-content:close", e), r.setSelectedDynamicContent(e), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: e }));
|
|
81
|
-
},
|
|
79
|
+
}, b = () => {
|
|
82
80
|
console.debug("dynamic-content:close", "Without Data"), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: { text: "", value: "" } }));
|
|
83
81
|
};
|
|
84
|
-
return
|
|
82
|
+
return W(() => t.value, () => {
|
|
85
83
|
o("on-change", t.value);
|
|
86
|
-
}),
|
|
84
|
+
}), H(async () => {
|
|
87
85
|
console.debug("Guido says happy coding đ"), console.debug("đ Ka-Chow");
|
|
88
86
|
try {
|
|
89
87
|
let e = {
|
|
@@ -97,10 +95,10 @@ const ge = /* @__PURE__ */ N({
|
|
|
97
95
|
console.error("Failed to initialize Stripo editor:", e);
|
|
98
96
|
}
|
|
99
97
|
document.addEventListener("dynamic-content:open", (e) => {
|
|
100
|
-
const
|
|
101
|
-
console.debug("dynamic-content:open",
|
|
98
|
+
const E = e;
|
|
99
|
+
console.debug("dynamic-content:open", E.detail), o("dynamic-content:open", E.detail);
|
|
102
100
|
});
|
|
103
|
-
}),
|
|
101
|
+
}), R(() => {
|
|
104
102
|
try {
|
|
105
103
|
window.UIEditor.removeEditor();
|
|
106
104
|
} catch {
|
|
@@ -108,14 +106,14 @@ const ge = /* @__PURE__ */ N({
|
|
|
108
106
|
}
|
|
109
107
|
}), I({
|
|
110
108
|
dynamicContent: {
|
|
111
|
-
insert:
|
|
112
|
-
close:
|
|
109
|
+
insert: D,
|
|
110
|
+
close: b
|
|
113
111
|
},
|
|
114
112
|
hasChanges: t,
|
|
115
113
|
saveSilent: u
|
|
116
|
-
}), { __sfc: !0, PreviewContainer: L,
|
|
114
|
+
}), { __sfc: !0, PreviewContainer: L, headerWrapperRef: c, dynamicContentStore: r, props: n, editorStore: d, previewStore: P, hasChanges: t, preselectedDynamicContentList: a, getPartnerName: m, getProductType: l, saveSilent: u, templateId: p, userId: g, guidoConfig: f, html: y, css: v, partnerName: i, productType: s, messageType: C, username: h, emit: o, initPlugin: w, getDefaultTemplate: S, noHeader: _, insertDynamicContent: D, closeDynamicContent: b, Toaster: K, HeaderWrapper: j, LoadingWrapper: q, SaveAsTemplateDrawer: J };
|
|
117
115
|
}
|
|
118
116
|
});
|
|
119
117
|
export {
|
|
120
|
-
|
|
118
|
+
ue as default
|
|
121
119
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import o from "./AmpToggle.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
2
|
import n from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
3
|
var s = function() {
|
|
5
4
|
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-2 d-f a-i-c b-c-11 b-c-h-11 t-c-4 t-c-h-4 i-c-4 bor-w-1 bor-s-s bor-c-11 bor-r-2", attrs: { id: "guido__amp-error-button", "left-icon": "line-error-box", type: "danger", "label-text-status": !1 }, on: { click: function(
|
|
5
|
+
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-2 d-f a-i-c b-c-11 b-c-h-11 t-c-4 t-c-h-4 i-c-4 bor-w-1 bor-s-s bor-c-11 bor-r-2", attrs: { id: "guido__amp-error-button", "left-icon": "line-error-box", type: "danger", "label-text-status": !1 }, on: { click: function(c) {
|
|
7
6
|
return e.previewStore.openErrorModal();
|
|
8
7
|
} } }) : r._e()], 1)]);
|
|
9
8
|
}, a = [], i = /* @__PURE__ */ n(
|
|
@@ -12,7 +11,7 @@ var s = function() {
|
|
|
12
11
|
a,
|
|
13
12
|
!1,
|
|
14
13
|
null,
|
|
15
|
-
|
|
14
|
+
null
|
|
16
15
|
);
|
|
17
16
|
const d = i.exports;
|
|
18
17
|
export {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "./LeftSlot.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
-
var
|
|
5
|
-
var e = this,
|
|
6
|
-
return
|
|
7
|
-
},
|
|
8
|
-
|
|
9
|
-
n,
|
|
4
|
+
var a = function() {
|
|
5
|
+
var e = this, s = e._self._c, t = e._self._setupProxy;
|
|
6
|
+
return s("div", { staticClass: "d-f a-i-c" }, [s(t.InButtonV2, { staticClass: "p-2", attrs: { id: "guido__back-button", "label-text": "Back", "left-icon": "line-arrow-left", styling: "text", type: "secondary" }, on: { click: t.handleBack } }), t.editorStore.isVersionHistoryOpen ? s(t.RestoreButton, { staticClass: "ml-3" }) : e._e()], 1);
|
|
7
|
+
}, n = [], i = /* @__PURE__ */ r(
|
|
8
|
+
o,
|
|
10
9
|
a,
|
|
10
|
+
n,
|
|
11
11
|
!1,
|
|
12
12
|
null,
|
|
13
|
-
"
|
|
13
|
+
"a18ac2d3"
|
|
14
14
|
);
|
|
15
|
-
const
|
|
15
|
+
const d = i.exports;
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
d as default
|
|
18
18
|
};
|
|
@@ -1,28 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useBack as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
import { InButtonV2 as f } from "@useinsider/design-system-vue";
|
|
8
|
-
import l from "./version-history/RestoreButton.vue.js";
|
|
9
|
-
const O = /* @__PURE__ */ s({
|
|
1
|
+
import { defineComponent as r } from "vue";
|
|
2
|
+
import { useBack as e } from "../../../composables/useGuidoActions.js";
|
|
3
|
+
import { useEditorStore as m } from "../../../stores/editor.js";
|
|
4
|
+
import { InButtonV2 as n } from "@useinsider/design-system-vue";
|
|
5
|
+
import s from "./version-history/RestoreButton.vue.js";
|
|
6
|
+
const c = /* @__PURE__ */ r({
|
|
10
7
|
__name: "LeftSlot",
|
|
11
|
-
setup(
|
|
12
|
-
const o =
|
|
13
|
-
return { __sfc: !0, editorStore: o, handleBack:
|
|
14
|
-
if (o.isVersionHistoryOpen) {
|
|
15
|
-
t();
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
if (o.isPreviewModeOpen) {
|
|
19
|
-
i();
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
r();
|
|
23
|
-
}, InButtonV2: f, RestoreButton: l };
|
|
8
|
+
setup(f) {
|
|
9
|
+
const o = m(), t = e();
|
|
10
|
+
return { __sfc: !0, editorStore: o, handleBack: t, InButtonV2: n, RestoreButton: s };
|
|
24
11
|
}
|
|
25
12
|
});
|
|
26
13
|
export {
|
|
27
|
-
|
|
14
|
+
c as default
|
|
28
15
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "./ViewOptions.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
var
|
|
5
|
-
var t = this,
|
|
6
|
-
return
|
|
7
|
-
},
|
|
8
|
-
|
|
9
|
-
n,
|
|
3
|
+
import s from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var r = function() {
|
|
5
|
+
var t = this, i = t._self._c, e = t._self._setupProxy;
|
|
6
|
+
return i(e.InSegments, { attrs: { id: "guido__view-option-selection", "with-icon": "", disable: e.editorStore.isViewOptionsDisabled, "segment-list": e.segmentList, selected: e.editorStore.editorVisualMode } });
|
|
7
|
+
}, n = [], _ = /* @__PURE__ */ s(
|
|
8
|
+
o,
|
|
10
9
|
r,
|
|
10
|
+
n,
|
|
11
11
|
!1,
|
|
12
12
|
null,
|
|
13
|
-
"
|
|
13
|
+
"ad3cf7cc"
|
|
14
14
|
);
|
|
15
|
-
const
|
|
15
|
+
const m = _.exports;
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
m as default
|
|
18
18
|
};
|
|
@@ -2,10 +2,10 @@ import { defineComponent as n } from "vue";
|
|
|
2
2
|
import { useTranslations as p } from "../../../composables/useTranslations.js";
|
|
3
3
|
import { useEditorStore as s } from "../../../stores/editor.js";
|
|
4
4
|
import { getTooltipOptions as o } from "../../../utils/tooltipUtils.js";
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
5
|
+
import { InSegments as r } from "@useinsider/design-system-vue";
|
|
6
|
+
const d = /* @__PURE__ */ n({
|
|
7
7
|
__name: "ViewOptions",
|
|
8
|
-
setup(
|
|
8
|
+
setup(m) {
|
|
9
9
|
const e = s(), t = p(), i = [
|
|
10
10
|
{
|
|
11
11
|
text: "",
|
|
@@ -26,9 +26,9 @@ const f = /* @__PURE__ */ n({
|
|
|
26
26
|
tooltipOptions: o("guido__view-option-mobile")
|
|
27
27
|
}
|
|
28
28
|
];
|
|
29
|
-
return { __sfc: !0, editorStore: e, trans: t, segmentList: i, InSegments:
|
|
29
|
+
return { __sfc: !0, editorStore: e, trans: t, segmentList: i, InSegments: r };
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
d as default
|
|
34
34
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import s from "./ViewOptions.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
return
|
|
7
|
-
},
|
|
8
|
-
|
|
9
|
-
n,
|
|
3
|
+
import i from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var r = function() {
|
|
5
|
+
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
6
|
+
return o(e.InSegments, { attrs: { id: "guido__verion-history-view-option-selection", "with-icon": "", "segment-list": e.segmentList, selected: e.versionHistoryStore.editorVisualMode }, on: { click: e.changeVisualMode } });
|
|
7
|
+
}, n = [], _ = /* @__PURE__ */ i(
|
|
8
|
+
s,
|
|
10
9
|
r,
|
|
10
|
+
n,
|
|
11
11
|
!1,
|
|
12
12
|
null,
|
|
13
|
-
"
|
|
13
|
+
"421ffc13"
|
|
14
14
|
);
|
|
15
|
-
const
|
|
15
|
+
const f = _.exports;
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
f as default
|
|
18
18
|
};
|
|
@@ -3,10 +3,10 @@ import { useTranslations as m } from "../../../../composables/useTranslations.js
|
|
|
3
3
|
import { useVersionHistoryApi as l } from "../../../../composables/useVersionHistoryApi.js";
|
|
4
4
|
import { useVersionHistoryStore as a } from "../../../../stores/version-history.js";
|
|
5
5
|
import { getTooltipOptions as n } from "../../../../utils/tooltipUtils.js";
|
|
6
|
-
import {
|
|
7
|
-
const
|
|
6
|
+
import { InSegments as c } from "@useinsider/design-system-vue";
|
|
7
|
+
const h = /* @__PURE__ */ p({
|
|
8
8
|
__name: "ViewOptions",
|
|
9
|
-
setup(
|
|
9
|
+
setup(u) {
|
|
10
10
|
const t = a(), { switchToDesktopPreview: e, switchToMobilePreview: i } = l(), o = m(), r = [
|
|
11
11
|
{
|
|
12
12
|
text: "",
|
|
@@ -33,9 +33,9 @@ const T = /* @__PURE__ */ p({
|
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
35
|
e();
|
|
36
|
-
}, InSegments:
|
|
36
|
+
}, InSegments: c };
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
export {
|
|
40
|
-
|
|
40
|
+
h as default
|
|
41
41
|
};
|
|
@@ -1,34 +1,32 @@
|
|
|
1
1
|
import S from "../static/styles/base.css.js";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import e from "../static/styles/components/alert-message.css.js";
|
|
3
|
+
import m from "../static/styles/components/amp-block.css.js";
|
|
4
4
|
import i from "../static/styles/components/base-input.css.js";
|
|
5
5
|
import p from "../static/styles/components/button-group.css.js";
|
|
6
6
|
import n from "../static/styles/components/button.css.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
7
|
+
import s from "../static/styles/components/combobox.css.js";
|
|
8
|
+
import C from "../static/styles/components/counter.css.js";
|
|
9
9
|
import f from "../static/styles/components/dropdown-menu.css.js";
|
|
10
10
|
import a from "../static/styles/components/loader.css.js";
|
|
11
11
|
import u from "../static/styles/components/narrow-panel.css.js";
|
|
12
|
-
import c from "../static/styles/components/
|
|
13
|
-
import d from "../static/styles/components/
|
|
14
|
-
import l from "../static/styles/components/
|
|
15
|
-
import h from "../static/styles/components/
|
|
16
|
-
import w from "../static/styles/components/
|
|
17
|
-
import y from "../static/styles/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const A = [
|
|
21
|
-
b,
|
|
12
|
+
import c from "../static/styles/components/switcher.css.js";
|
|
13
|
+
import d from "../static/styles/components/tabs.css.js";
|
|
14
|
+
import l from "../static/styles/components/tools.css.js";
|
|
15
|
+
import h from "../static/styles/components/version-history.css.js";
|
|
16
|
+
import w from "../static/styles/components/wide-panel.css.js";
|
|
17
|
+
import y from "../static/styles/variables.css.js";
|
|
18
|
+
const B = [
|
|
19
|
+
y,
|
|
22
20
|
// Must be on top
|
|
23
21
|
S,
|
|
24
22
|
// Must be on top
|
|
25
|
-
m,
|
|
26
23
|
e,
|
|
24
|
+
m,
|
|
27
25
|
i,
|
|
28
26
|
p,
|
|
29
27
|
n,
|
|
30
|
-
C,
|
|
31
28
|
s,
|
|
29
|
+
C,
|
|
32
30
|
f,
|
|
33
31
|
a,
|
|
34
32
|
u,
|
|
@@ -36,14 +34,12 @@ const A = [
|
|
|
36
34
|
d,
|
|
37
35
|
l,
|
|
38
36
|
h,
|
|
39
|
-
w
|
|
40
|
-
y,
|
|
41
|
-
B
|
|
37
|
+
w
|
|
42
38
|
].join(`
|
|
43
39
|
|
|
44
|
-
`),
|
|
40
|
+
`), R = () => ({ importCss: () => {
|
|
45
41
|
const o = new CSSStyleSheet();
|
|
46
|
-
o.replaceSync(
|
|
42
|
+
o.replaceSync(B);
|
|
47
43
|
const r = document.querySelector("ui-editor");
|
|
48
44
|
if (!r)
|
|
49
45
|
return;
|
|
@@ -51,5 +47,5 @@ const A = [
|
|
|
51
47
|
t && (t.adoptedStyleSheets = [o]);
|
|
52
48
|
} });
|
|
53
49
|
export {
|
|
54
|
-
|
|
50
|
+
R as useCustomInterfaceAppearance
|
|
55
51
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { DynamicContent } from '@@/Types/generic';
|
|
2
1
|
export declare const useHtmlValidator: () => {
|
|
3
|
-
validateHtml: (html: string, customFields:
|
|
2
|
+
validateHtml: (html: string, customFields: string[], isOnSaveValidation?: boolean) => Promise<boolean>;
|
|
4
3
|
};
|