@useinsider/guido 1.0.0-beta.e73b90d → 1.0.0-beta.e760ea9
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/Guido.vue.d.ts +4 -0
- package/dist/components/Guido.vue.js +1 -1
- package/dist/components/Guido.vue2.js +46 -31
- package/dist/components/organisms/header/LeftSlot.vue.js +5 -5
- package/dist/components/organisms/header/LeftSlot.vue2.js +12 -8
- package/dist/components/organisms/header/RightSlot.vue.js +1 -1
- package/dist/components/organisms/header/RightSlot.vue2.js +28 -14
- package/dist/composables/useGuidoActions.d.ts +46 -0
- package/dist/composables/useGuidoActions.js +37 -0
- package/dist/composables/useProvideInject.d.ts +14 -0
- package/dist/composables/useProvideInject.js +17 -0
- package/dist/composables/useStripo.js +15 -15
- package/dist/guido.css +1 -1
- package/dist/services/stripoApi.js +6 -2
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DynamicContent, GuidoConfig } from '@@/Types/generic';
|
|
2
|
+
import type { Template } from '@@/Types/stripo';
|
|
2
3
|
type __VLS_Props = {
|
|
3
4
|
templateId: string;
|
|
4
5
|
userId: string;
|
|
@@ -16,6 +17,9 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__
|
|
|
16
17
|
};
|
|
17
18
|
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {
|
|
18
19
|
"dynamic-content:open": (detail: DynamicContent | null) => void;
|
|
20
|
+
back: () => void;
|
|
21
|
+
"save:start": () => void;
|
|
22
|
+
"save:complete": (template: Omit<Template, "forceRecreate">) => void;
|
|
19
23
|
}, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
|
|
20
24
|
export default _default;
|
|
21
25
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as h, onMounted as w } from "vue";
|
|
2
|
+
import { provideGuidoActions as D } from "../composables/useGuidoActions.js";
|
|
2
3
|
import { usePartner as E } from "../composables/usePartner.js";
|
|
3
|
-
import { useStripo as
|
|
4
|
-
import { DefaultUsername as
|
|
5
|
-
import
|
|
6
|
-
import { useStripoApi as
|
|
7
|
-
const
|
|
4
|
+
import { useStripo as S } from "../composables/useStripo.js";
|
|
5
|
+
import { DefaultUsername as _, DefaultGuidoConfig as G } from "../enums/defaults.js";
|
|
6
|
+
import I from "./organisms/header/HeaderWrapper.vue.js";
|
|
7
|
+
import { useStripoApi as k } from "../services/stripoApi.js";
|
|
8
|
+
const B = /* @__PURE__ */ h({
|
|
8
9
|
__name: "Guido",
|
|
9
10
|
props: {
|
|
10
11
|
templateId: null,
|
|
@@ -16,50 +17,64 @@ const A = /* @__PURE__ */ w({
|
|
|
16
17
|
css: null,
|
|
17
18
|
guidoConfig: null
|
|
18
19
|
},
|
|
19
|
-
emits: ["dynamic-content:open"],
|
|
20
|
-
setup(
|
|
21
|
-
const
|
|
20
|
+
emits: ["dynamic-content:open", "back", "save:start", "save:complete"],
|
|
21
|
+
setup(C, { expose: b, emit: t }) {
|
|
22
|
+
const o = C, { getPartnerName: n, getProductType: a } = E(), {
|
|
22
23
|
templateId: c,
|
|
23
|
-
userId:
|
|
24
|
-
guidoConfig:
|
|
25
|
-
html:
|
|
24
|
+
userId: s,
|
|
25
|
+
guidoConfig: i,
|
|
26
|
+
html: r = "",
|
|
26
27
|
css: l = "",
|
|
27
|
-
partnerName: d =
|
|
28
|
-
productType:
|
|
29
|
-
username:
|
|
30
|
-
} =
|
|
28
|
+
partnerName: d = n(),
|
|
29
|
+
productType: u = a(),
|
|
30
|
+
username: m = _
|
|
31
|
+
} = o;
|
|
31
32
|
window.GuidoConfig = {
|
|
32
|
-
...
|
|
33
|
-
...
|
|
33
|
+
...G,
|
|
34
|
+
...i
|
|
34
35
|
};
|
|
35
|
-
const { initPlugin: p } =
|
|
36
|
+
const { initPlugin: p } = S({ emailId: c, userId: s, username: m, partnerName: d, productType: u }), { getDefaultTemplate: g } = k();
|
|
37
|
+
D({
|
|
38
|
+
onBack: () => {
|
|
39
|
+
console.debug("guido:back"), t("back");
|
|
40
|
+
},
|
|
41
|
+
onSaveStart: () => {
|
|
42
|
+
console.debug("guido:save:start"), t("save:start");
|
|
43
|
+
},
|
|
44
|
+
onSaveComplete: (e) => {
|
|
45
|
+
console.debug("guido:save:complete", e), t("save:complete", e);
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
const f = (e) => {
|
|
36
49
|
console.debug("dynamic-content:close", e), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: e }));
|
|
37
|
-
},
|
|
50
|
+
}, y = () => {
|
|
38
51
|
console.debug("dynamic-content:close", "Without Data"), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: { text: "", value: "" } }));
|
|
39
52
|
};
|
|
40
|
-
return
|
|
53
|
+
return w(async () => {
|
|
41
54
|
console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow");
|
|
42
55
|
try {
|
|
43
56
|
let e = {
|
|
44
|
-
html:
|
|
45
|
-
css: l
|
|
57
|
+
html: r,
|
|
58
|
+
css: l,
|
|
59
|
+
forceRecreate: !0
|
|
60
|
+
// TODO: It should be false for old templates. We will communicate with Stripo
|
|
46
61
|
};
|
|
47
|
-
e.html || (e = await
|
|
62
|
+
e.html || (e = await g()), await p(e);
|
|
48
63
|
} catch (e) {
|
|
49
64
|
console.error("Failed to initialize Stripo editor:", e);
|
|
50
65
|
}
|
|
51
66
|
document.addEventListener("dynamic-content:open", (e) => {
|
|
52
|
-
const
|
|
53
|
-
console.debug("dynamic-content:open",
|
|
67
|
+
const v = e;
|
|
68
|
+
console.debug("dynamic-content:open", v.detail), t("dynamic-content:open", v.detail);
|
|
54
69
|
});
|
|
55
|
-
}),
|
|
70
|
+
}), b({
|
|
56
71
|
dynamicContent: {
|
|
57
|
-
insert:
|
|
58
|
-
close:
|
|
72
|
+
insert: f,
|
|
73
|
+
close: y
|
|
59
74
|
}
|
|
60
|
-
}), { __sfc: !0, props:
|
|
75
|
+
}), { __sfc: !0, props: o, getPartnerName: n, getProductType: a, templateId: c, userId: s, guidoConfig: i, html: r, css: l, partnerName: d, productType: u, username: m, emit: t, initPlugin: p, getDefaultTemplate: g, insertDynamicContent: f, closeDynamicContent: y, HeaderWrapper: I };
|
|
61
76
|
}
|
|
62
77
|
});
|
|
63
78
|
export {
|
|
64
|
-
|
|
79
|
+
B as default
|
|
65
80
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import n from "./LeftSlot.vue2.js";
|
|
2
2
|
import o from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
return
|
|
3
|
+
var r = function() {
|
|
4
|
+
var e = this, s = e._self._c, t = e._self._setupProxy;
|
|
5
|
+
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);
|
|
6
6
|
}, a = [], i = /* @__PURE__ */ o(
|
|
7
|
-
r,
|
|
8
7
|
n,
|
|
8
|
+
r,
|
|
9
9
|
a,
|
|
10
10
|
!1,
|
|
11
11
|
null,
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { defineComponent as r } from "vue";
|
|
2
|
+
import { useBack as e } from "../../../composables/useGuidoActions.js";
|
|
3
|
+
import { useEditorStore as n } from "../../../stores/editor.js";
|
|
4
|
+
import { InButtonV2 as m } from "@useinsider/design-system-vue";
|
|
5
|
+
import s from "./version-history/RestoreButton.vue.js";
|
|
6
|
+
const d = /* @__PURE__ */ r({
|
|
6
7
|
__name: "LeftSlot",
|
|
7
|
-
setup(
|
|
8
|
-
|
|
8
|
+
setup(a) {
|
|
9
|
+
const t = n(), o = e();
|
|
10
|
+
return { __sfc: !0, editorStore: t, back: o, handleBack: () => {
|
|
11
|
+
o();
|
|
12
|
+
}, InButtonV2: m, RestoreButton: s };
|
|
9
13
|
}
|
|
10
14
|
});
|
|
11
15
|
export {
|
|
12
|
-
|
|
16
|
+
d as default
|
|
13
17
|
};
|
|
@@ -2,7 +2,7 @@ import o from "./RightSlot.vue2.js";
|
|
|
2
2
|
import i from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
3
|
var n = function() {
|
|
4
4
|
var s = this, e = s._self._c, t = s._self._setupProxy;
|
|
5
|
-
return e("div", { staticClass: "d-f" }, [e(t.InButtonV2, { attrs: { id: "guido__history-button", "left-icon": "line-architect-version-history", styling: "ghost", type: "secondary", "label-text-status": !1, "selected-status": t.editorStore.isVersionHistoryOpen }, on: { click: t.handleVersionHistory } }), e(t.InButtonV2, { attrs: { id: "guido__export-button", "left-icon": "line-export", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryOpen, "label-text-status": !1 }, on: { click: t.exportHtml } }), e(t.InButtonV2, { attrs: { id: "guido__save-as-button", "left-icon": "line-newsletter-save-as-template", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryOpen, "label-text-status": !1 } }), e(t.InButtonV2, { attrs: { id: "guido__test-button", "left-icon": "line-architect-test-journey", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryOpen, "label-text-status": !1 } }), e(t.InButtonV2, { staticClass: "ml-3", attrs: { id: "guido__save-button", "label-text": "Save", "disabled-status": t.editorStore.isVersionHistoryOpen } })], 1);
|
|
5
|
+
return e("div", { staticClass: "d-f" }, [e(t.InButtonV2, { attrs: { id: "guido__history-button", "left-icon": "line-architect-version-history", styling: "ghost", type: "secondary", "label-text-status": !1, "selected-status": t.editorStore.isVersionHistoryOpen }, on: { click: t.handleVersionHistory } }), e(t.InButtonV2, { attrs: { id: "guido__export-button", "left-icon": "line-export", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryOpen, "label-text-status": !1 }, on: { click: t.exportHtml } }), e(t.InButtonV2, { attrs: { id: "guido__save-as-button", "left-icon": "line-newsletter-save-as-template", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryOpen, "label-text-status": !1 } }), e(t.InButtonV2, { attrs: { id: "guido__test-button", "left-icon": "line-architect-test-journey", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryOpen, "label-text-status": !1 } }), e(t.InButtonV2, { staticClass: "ml-3", attrs: { id: "guido__save-button", "label-text": "Save", "disabled-status": t.editorStore.isVersionHistoryOpen }, on: { click: t.handleSave } })], 1);
|
|
6
6
|
}, r = [], a = /* @__PURE__ */ i(
|
|
7
7
|
o,
|
|
8
8
|
n,
|
|
@@ -1,21 +1,35 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { defineComponent as m } from "vue";
|
|
2
|
+
import { useActionsApi as p } from "../../../composables/useActionsApi.js";
|
|
3
|
+
import { useExport as c } from "../../../composables/useExport.js";
|
|
4
|
+
import { useSaveStart as l, useSaveComplete as f } from "../../../composables/useGuidoActions.js";
|
|
5
|
+
import { useVersionHistoryApi as u } from "../../../composables/useVersionHistoryApi.js";
|
|
6
|
+
import { useEditorStore as d } from "../../../stores/editor.js";
|
|
7
|
+
import { InButtonV2 as S } from "@useinsider/design-system-vue";
|
|
8
|
+
const E = /* @__PURE__ */ m({
|
|
7
9
|
__name: "RightSlot",
|
|
8
|
-
setup(
|
|
9
|
-
const { exportHtml:
|
|
10
|
-
return { __sfc: !0, exportHtml: e, openVersionHistory:
|
|
11
|
-
if (
|
|
12
|
-
|
|
10
|
+
setup(h) {
|
|
11
|
+
const { exportHtml: a } = c(), { getCompiledEmail: t } = p(), e = l(), r = f(), { openVersionHistory: s, closeVersionHistory: n } = u(), i = d();
|
|
12
|
+
return { __sfc: !0, exportHtml: a, getCompiledEmail: t, saveStart: e, saveComplete: r, openVersionHistory: s, closeVersionHistory: n, editorStore: i, handleVersionHistory: () => {
|
|
13
|
+
if (i.isVersionHistoryOpen) {
|
|
14
|
+
n();
|
|
13
15
|
return;
|
|
14
16
|
}
|
|
15
|
-
|
|
16
|
-
},
|
|
17
|
+
s();
|
|
18
|
+
}, handleSave: async () => {
|
|
19
|
+
e();
|
|
20
|
+
try {
|
|
21
|
+
const { html: o } = await t();
|
|
22
|
+
r({
|
|
23
|
+
html: o || "",
|
|
24
|
+
css: ""
|
|
25
|
+
// CSS is embedded in HTML from Stripo
|
|
26
|
+
});
|
|
27
|
+
} catch (o) {
|
|
28
|
+
console.error("Failed to get template data for save:", o);
|
|
29
|
+
}
|
|
30
|
+
}, InButtonV2: S };
|
|
17
31
|
}
|
|
18
32
|
});
|
|
19
33
|
export {
|
|
20
|
-
|
|
34
|
+
E as default
|
|
21
35
|
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { Template } from '@@/Types/stripo';
|
|
2
|
+
import type { InjectionKey } from 'vue';
|
|
3
|
+
export type BackHandler = () => void;
|
|
4
|
+
export type SaveStartHandler = () => void;
|
|
5
|
+
export type SaveCompleteHandler = (template: Omit<Template, 'forceRecreate'>) => void;
|
|
6
|
+
export declare const BACK_KEY: InjectionKey<BackHandler>;
|
|
7
|
+
export declare const SAVE_START_KEY: InjectionKey<SaveStartHandler>;
|
|
8
|
+
export declare const SAVE_COMPLETE_KEY: InjectionKey<SaveCompleteHandler>;
|
|
9
|
+
/**
|
|
10
|
+
* Provides Guido action handlers to child components
|
|
11
|
+
*/
|
|
12
|
+
export declare const provideGuidoActions: (actions: {
|
|
13
|
+
onBack: BackHandler;
|
|
14
|
+
onSaveStart: SaveStartHandler;
|
|
15
|
+
onSaveComplete: SaveCompleteHandler;
|
|
16
|
+
}) => void;
|
|
17
|
+
/**
|
|
18
|
+
* Provides individual Guido action handlers
|
|
19
|
+
*/
|
|
20
|
+
export declare const provideBackHandler: (handler: BackHandler) => void;
|
|
21
|
+
export declare const provideSaveStartHandler: (handler: SaveStartHandler) => void;
|
|
22
|
+
export declare const provideSaveCompleteHandler: (handler: SaveCompleteHandler) => void;
|
|
23
|
+
/**
|
|
24
|
+
* Hook to use the back navigation handler
|
|
25
|
+
* @returns Back navigation function
|
|
26
|
+
*/
|
|
27
|
+
export declare const useBack: () => BackHandler;
|
|
28
|
+
/**
|
|
29
|
+
* Hook to use the save start handler
|
|
30
|
+
* @returns Save start function
|
|
31
|
+
*/
|
|
32
|
+
export declare const useSaveStart: () => SaveStartHandler;
|
|
33
|
+
/**
|
|
34
|
+
* Hook to use the save complete handler
|
|
35
|
+
* @returns Save complete function
|
|
36
|
+
*/
|
|
37
|
+
export declare const useSaveComplete: () => SaveCompleteHandler;
|
|
38
|
+
/**
|
|
39
|
+
* Convenience hook to get all Guido actions
|
|
40
|
+
* @returns Object containing all action handlers
|
|
41
|
+
*/
|
|
42
|
+
export declare const useGuidoActions: () => {
|
|
43
|
+
back: BackHandler;
|
|
44
|
+
saveStart: SaveStartHandler;
|
|
45
|
+
saveComplete: SaveCompleteHandler;
|
|
46
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { provideValue as o, useInjectedValue as t } from "./useProvideInject.js";
|
|
2
|
+
const r = Symbol.for("guido.back"), n = Symbol.for("guido.save.start"), a = Symbol.for("guido.save.complete"), s = (e) => {
|
|
3
|
+
o(r, e.onBack), o(n, e.onSaveStart), o(a, e.onSaveComplete);
|
|
4
|
+
}, u = () => {
|
|
5
|
+
try {
|
|
6
|
+
return t(r);
|
|
7
|
+
} catch {
|
|
8
|
+
throw new Error(
|
|
9
|
+
"useBack: No back handler provided. Make sure Guido component is in the component tree."
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
}, d = () => {
|
|
13
|
+
try {
|
|
14
|
+
return t(n);
|
|
15
|
+
} catch {
|
|
16
|
+
throw new Error(
|
|
17
|
+
"useSaveStart: No save start handler provided. Make sure Guido component is in the component tree."
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
}, i = () => {
|
|
21
|
+
try {
|
|
22
|
+
return t(a);
|
|
23
|
+
} catch {
|
|
24
|
+
throw new Error(
|
|
25
|
+
"useSaveComplete: No save complete handler provided. Make sure Guido component is in the component tree."
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
r as BACK_KEY,
|
|
31
|
+
a as SAVE_COMPLETE_KEY,
|
|
32
|
+
n as SAVE_START_KEY,
|
|
33
|
+
s as provideGuidoActions,
|
|
34
|
+
u as useBack,
|
|
35
|
+
i as useSaveComplete,
|
|
36
|
+
d as useSaveStart
|
|
37
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type InjectionKey } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Provides a value using Vue's provide/inject system
|
|
4
|
+
* @param key - The injection key
|
|
5
|
+
* @param value - The value to provide
|
|
6
|
+
*/
|
|
7
|
+
export declare const provideValue: <T>(key: InjectionKey<T>, value: T) => void;
|
|
8
|
+
/**
|
|
9
|
+
* Injects a value using Vue's provide/inject system
|
|
10
|
+
* @param key - The injection key
|
|
11
|
+
* @param defaultValue - Optional default value if injection fails
|
|
12
|
+
* @returns The injected value
|
|
13
|
+
*/
|
|
14
|
+
export declare const useInjectedValue: <T>(key: InjectionKey<T>, defaultValue?: T) => T;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { provide as t, inject as i } from "vue";
|
|
2
|
+
const d = (e, o) => {
|
|
3
|
+
t(e, o);
|
|
4
|
+
}, s = (e, o) => {
|
|
5
|
+
const r = i(e, o);
|
|
6
|
+
if (r === void 0 && o === void 0) {
|
|
7
|
+
const n = e.description || String(e);
|
|
8
|
+
throw new Error(
|
|
9
|
+
`useInjectedValue: No provider found for key "${n}". Make sure a parent component provides this value.`
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
return r;
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
d as provideValue,
|
|
16
|
+
s as useInjectedValue
|
|
17
|
+
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { useActionsApi as
|
|
2
|
-
import { useCustomInterfaceAppearance as
|
|
3
|
-
import { useToaster as
|
|
4
|
-
import { displayConditions as
|
|
5
|
-
import
|
|
6
|
-
import { useStripoApi as
|
|
7
|
-
import { useEditorStore as
|
|
8
|
-
const
|
|
9
|
-
const { handleError: d } =
|
|
10
|
-
const i =
|
|
1
|
+
import { useActionsApi as g } from "./useActionsApi.js";
|
|
2
|
+
import { useCustomInterfaceAppearance as f } from "./useCustomInterfaceAppearance.js";
|
|
3
|
+
import { useToaster as E } from "./useToaster.js";
|
|
4
|
+
import { displayConditions as S } from "../enums/displayConditions.js";
|
|
5
|
+
import y from "../extensions/DynamicContent/extension.js";
|
|
6
|
+
import { useStripoApi as C } from "../services/stripoApi.js";
|
|
7
|
+
import { useEditorStore as w } from "../stores/editor.js";
|
|
8
|
+
const A = (a) => {
|
|
9
|
+
const { handleError: d } = E(), { getToken: c, getCustomFonts: u } = C(), l = (e, r = []) => {
|
|
10
|
+
const i = w(), { html: t, css: s, forceRecreate: m } = e;
|
|
11
11
|
window.UIEditor.initEditor(
|
|
12
12
|
document.querySelector("#guido-editor"),
|
|
13
13
|
{
|
|
14
14
|
metadata: a,
|
|
15
15
|
html: t,
|
|
16
16
|
css: s,
|
|
17
|
-
forceRecreate:
|
|
17
|
+
forceRecreate: m,
|
|
18
18
|
locale: "en",
|
|
19
19
|
undoButtonSelector: "#guido__undo-button",
|
|
20
20
|
redoButtonSelector: "#guido__redo-button",
|
|
@@ -30,7 +30,7 @@ const x = (a) => {
|
|
|
30
30
|
`,
|
|
31
31
|
conditionsEnabled: !0,
|
|
32
32
|
customConditionsEnabled: !0,
|
|
33
|
-
conditionCategories:
|
|
33
|
+
conditionCategories: S,
|
|
34
34
|
messageSettingsEnabled: !1,
|
|
35
35
|
editorFonts: {
|
|
36
36
|
showDefaultStandardFonts: !0,
|
|
@@ -47,7 +47,7 @@ const x = (a) => {
|
|
|
47
47
|
},
|
|
48
48
|
onTemplateLoaded() {
|
|
49
49
|
try {
|
|
50
|
-
const { importCss: o } =
|
|
50
|
+
const { importCss: o } = f(), { activateCustomViewStyles: n } = g();
|
|
51
51
|
o(), n();
|
|
52
52
|
} catch (o) {
|
|
53
53
|
d(o, "Failed to load custom interface appearance");
|
|
@@ -63,7 +63,7 @@ const x = (a) => {
|
|
|
63
63
|
i.isVersionHistoryOpen = o;
|
|
64
64
|
},
|
|
65
65
|
ignoreClickOutsideSelectors: ["#guido-dynamic-content-modal"],
|
|
66
|
-
extensions: [
|
|
66
|
+
extensions: [y]
|
|
67
67
|
}
|
|
68
68
|
);
|
|
69
69
|
}, p = (e) => new Promise((r, i) => {
|
|
@@ -87,5 +87,5 @@ const x = (a) => {
|
|
|
87
87
|
} };
|
|
88
88
|
};
|
|
89
89
|
export {
|
|
90
|
-
|
|
90
|
+
A as useStripo
|
|
91
91
|
};
|
package/dist/guido.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history-wrapper[data-v-52a77eec]{gap:8px}[data-v-6a2bde67] .guido__verion-history-view-option-selection-desktop svg,[data-v-6a2bde67] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-6a2bde67] .in-segments-wrapper__button_selected,[data-v-6a2bde67] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-0fff376c] .guido__view-option-selection-desktop svg,[data-v-0fff376c] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-0fff376c] .in-segments-wrapper__button_selected,[data-v-0fff376c] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.guido-editor__wrapper[data-v-
|
|
1
|
+
.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history-wrapper[data-v-52a77eec]{gap:8px}[data-v-6a2bde67] .guido__verion-history-view-option-selection-desktop svg,[data-v-6a2bde67] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-6a2bde67] .in-segments-wrapper__button_selected,[data-v-6a2bde67] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-0fff376c] .guido__view-option-selection-desktop svg,[data-v-0fff376c] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-0fff376c] .in-segments-wrapper__button_selected,[data-v-0fff376c] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.guido-editor__wrapper[data-v-89bedf08],.guido-editor__container[data-v-89bedf08]{width:100%;height:calc(100vh - 75px)}
|
|
@@ -25,12 +25,16 @@ const m = () => {
|
|
|
25
25
|
getDefaultTemplate: async () => {
|
|
26
26
|
const t = {
|
|
27
27
|
html: "",
|
|
28
|
-
css: ""
|
|
28
|
+
css: "",
|
|
29
|
+
forceRecreate: !0
|
|
29
30
|
};
|
|
30
31
|
try {
|
|
31
32
|
const { data: e } = await r("/stripo/default-template");
|
|
32
33
|
try {
|
|
33
|
-
return
|
|
34
|
+
return {
|
|
35
|
+
...JSON.parse(e),
|
|
36
|
+
forceRecreate: !0
|
|
37
|
+
};
|
|
34
38
|
} catch {
|
|
35
39
|
return t;
|
|
36
40
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.e760ea9",
|
|
4
4
|
"description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
|
|
5
5
|
"main": "./dist/guido.umd.cjs",
|
|
6
6
|
"module": "./dist/library.js",
|