@useinsider/guido 3.4.1-beta.ac571e2 → 3.4.1-beta.ea1fec9
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.
|
@@ -21,9 +21,9 @@ const v = () => {
|
|
|
21
21
|
resetDataSavedFlag: !1,
|
|
22
22
|
disableLineHeightsReplace: !0
|
|
23
23
|
}, ...t }, s = {
|
|
24
|
-
callback: (l,
|
|
24
|
+
callback: (l, r, d, c, u) => {
|
|
25
25
|
l ? a(l) : e({
|
|
26
|
-
html:
|
|
26
|
+
html: r,
|
|
27
27
|
ampHtml: d,
|
|
28
28
|
ampErrors: c,
|
|
29
29
|
displayConditions: u
|
|
@@ -36,11 +36,11 @@ const v = () => {
|
|
|
36
36
|
return {
|
|
37
37
|
getCompiledEmail: m,
|
|
38
38
|
getTemplateData: () => new Promise((t) => {
|
|
39
|
-
const e = ({ html: a, css: i, width: o, height:
|
|
39
|
+
const e = ({ html: a, css: i, width: o, height: p, utmParams: s, syncModulesIds: l }) => t({
|
|
40
40
|
html: a,
|
|
41
41
|
css: i,
|
|
42
42
|
width: o,
|
|
43
|
-
height:
|
|
43
|
+
height: p,
|
|
44
44
|
utmParams: s,
|
|
45
45
|
syncModulesIds: l
|
|
46
46
|
});
|
|
@@ -91,11 +91,7 @@ const v = () => {
|
|
|
91
91
|
},
|
|
92
92
|
editorSave: () => new Promise((t) => {
|
|
93
93
|
window.StripoEditorApi.actionsApi.save((e) => {
|
|
94
|
-
|
|
95
|
-
n(e, "Failed to save template"), t(!1);
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
t(!0);
|
|
94
|
+
e && n(e, "Failed to save template"), t();
|
|
99
95
|
});
|
|
100
96
|
})
|
|
101
97
|
};
|
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import { useActionsApi as x } from "./useActionsApi.js";
|
|
2
2
|
import { useConfig as y } from "./useConfig.js";
|
|
3
3
|
import { useSaveStart as w, useSaveComplete as C } from "./useGuidoActions.js";
|
|
4
|
-
import { useSyncModuleExtractor as
|
|
5
|
-
import { useStripoApi as
|
|
6
|
-
import { useTemplatePreparation as
|
|
7
|
-
import { useHtmlValidator as
|
|
8
|
-
import { useCouponBlockValidator as
|
|
9
|
-
import { useLiquidValidator as
|
|
10
|
-
const
|
|
11
|
-
const o = w(), s = C(), { validateHtml: r } =
|
|
4
|
+
import { useSyncModuleExtractor as H } from "./useSyncModuleExtractor.js";
|
|
5
|
+
import { useStripoApi as b } from "../services/stripoApi.js";
|
|
6
|
+
import { useTemplatePreparation as q } from "../utils/templatePreparation.js";
|
|
7
|
+
import { useHtmlValidator as L } from "./useHtmlValidator.js";
|
|
8
|
+
import { useCouponBlockValidator as P } from "./validators/useCouponBlockValidator.js";
|
|
9
|
+
import { useLiquidValidator as E } from "./validators/useLiquidValidator.js";
|
|
10
|
+
const j = () => {
|
|
11
|
+
const o = w(), s = C(), { validateHtml: r } = L(), { validateLiquidSyntax: l } = E(), { validateCouponBlockTags: n } = P(), { callbacks: a, isFeatureEnabled: d } = y(), { extractSyncModuleData: u } = H(), { setSyncModuleUnsubscriptionPages: c } = b(), { editorSave: m } = x();
|
|
12
12
|
return { save: async (p = !1, f = !1) => {
|
|
13
13
|
var i;
|
|
14
14
|
o();
|
|
15
|
-
const { prepareTemplateDetails: v } =
|
|
16
|
-
if (!
|
|
15
|
+
const { prepareTemplateDetails: v } = q(), t = await v();
|
|
16
|
+
if (!n(t.compiledHtml))
|
|
17
17
|
return;
|
|
18
18
|
if (d("liquidSyntax")) {
|
|
19
|
-
if (!await
|
|
19
|
+
if (!await l(t.compiledHtml))
|
|
20
20
|
return;
|
|
21
21
|
} else if (!await r(t.compiledHtml, t.dynamicContentList, !0))
|
|
22
22
|
return;
|
|
23
|
-
if ((i = a.value) != null && i.externalValidation && !await a.value.externalValidation(t)
|
|
23
|
+
if ((i = a.value) != null && i.externalValidation && !await a.value.externalValidation(t))
|
|
24
24
|
return;
|
|
25
|
+
await m();
|
|
25
26
|
const { unsubscribePayload: S, stripoModules: V } = u(t.rawHtml);
|
|
26
27
|
return await c(S), t.modules = V, p || s({ ...t, silent: f }), t;
|
|
27
28
|
} };
|
|
28
29
|
};
|
|
29
30
|
export {
|
|
30
|
-
|
|
31
|
+
j as useSave
|
|
31
32
|
};
|
|
@@ -1,85 +1,91 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
var f = Object.defineProperty;
|
|
2
|
+
var I = (o, t, e) => t in o ? f(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
|
|
3
|
+
var T = (o, t, e) => I(o, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import y from "../../extensions/Blocks/Checkbox/template.js";
|
|
5
|
+
const _ = /font-weight\s*:\s*[^;]*;?/gi, x = /font-style\s*:\s*[^;]*;?/gi, b = /;\s*;/g, d = /^;|;$/g, S = /display\s*:\s*inline/gi, A = /display\s*:/i, L = /font-weight\s*:\s*bold/i, R = /font-style\s*:\s*italic/i, $ = /^<(?:strong|b)\b/i, k = /^<(?:em|i)\b/i;
|
|
6
|
+
class O {
|
|
6
7
|
constructor() {
|
|
7
|
-
|
|
8
|
+
T(this, "parser");
|
|
8
9
|
this.parser = new DOMParser();
|
|
9
10
|
}
|
|
10
11
|
migrate(t) {
|
|
11
12
|
try {
|
|
12
|
-
const e = this.parser.parseFromString(t, "text/html"),
|
|
13
|
-
|
|
13
|
+
const e = this.parser.parseFromString(t, "text/html"), l = e.querySelectorAll("td.checkbox-block");
|
|
14
|
+
if (l.length === 0)
|
|
15
|
+
return t;
|
|
16
|
+
let s = !1;
|
|
17
|
+
return l.forEach((r) => {
|
|
14
18
|
if (r.classList.contains("checkbox-block-v2"))
|
|
15
19
|
return;
|
|
16
|
-
const
|
|
17
|
-
`<table id="tempDoc"><tbody><tr>${
|
|
20
|
+
const i = r.getAttribute("id"), n = this.extractTextFromElement(r, "ins-title"), m = this.extractTextFromElement(r, "ins-description"), c = this.buildTextBlock(n), a = this.buildTextBlock(m), p = y.replace("{-{-TITLE-}-}", c).replace("{-{-DESCRIPTION-}-}", a), u = this.parser.parseFromString(
|
|
21
|
+
`<table id="tempDoc"><tbody><tr>${p}</tr></tbody></table>`,
|
|
18
22
|
"text/html"
|
|
19
23
|
).querySelector(".checkbox-block-v2");
|
|
20
|
-
|
|
21
|
-
}), e.documentElement.outerHTML
|
|
24
|
+
u && r.parentNode && (u.setAttribute("id", i || ""), r.parentNode.replaceChild(u, r), s = !0);
|
|
25
|
+
}), s ? e.documentElement.outerHTML : t;
|
|
22
26
|
} catch (e) {
|
|
23
27
|
return console.error("CheckboxMigrator failed:", e), t;
|
|
24
28
|
}
|
|
25
29
|
}
|
|
26
30
|
extractTextFromElement(t, e) {
|
|
27
|
-
var
|
|
28
|
-
const
|
|
29
|
-
if (!
|
|
31
|
+
var c, a;
|
|
32
|
+
const l = e === "ins-title" ? "Title" : "Description", s = t.querySelector(`.${e}`);
|
|
33
|
+
if (!s)
|
|
30
34
|
return {
|
|
31
|
-
|
|
32
|
-
isBold: !1,
|
|
33
|
-
isItalic: !1,
|
|
35
|
+
paragraphs: [{ innerHtml: l, isBold: !1, isItalic: !1, styles: "" }],
|
|
34
36
|
align: "left",
|
|
35
|
-
|
|
37
|
+
classList: ""
|
|
36
38
|
};
|
|
37
|
-
const r =
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
const r = Array.from(s.querySelectorAll("p")), i = s.getAttribute("align") || ((c = r[0]) == null ? void 0 : c.getAttribute("align")) || "left", n = s.getAttribute("class") || "";
|
|
40
|
+
return r.length === 0 ? {
|
|
41
|
+
paragraphs: [{
|
|
42
|
+
innerHtml: ((a = s.textContent) == null ? void 0 : a.trim()) || l,
|
|
41
43
|
isBold: !1,
|
|
42
44
|
isItalic: !1,
|
|
43
|
-
align: i.getAttribute("align") || "left",
|
|
44
45
|
styles: ""
|
|
46
|
+
}],
|
|
47
|
+
align: i,
|
|
48
|
+
classList: ""
|
|
49
|
+
} : { paragraphs: r.map((p) => {
|
|
50
|
+
const g = p.getAttribute("style") || "", u = L.test(g) || !!p.querySelector("b, strong"), h = R.test(g) || !!p.querySelector("i, em"), E = this.removeFontEmphasisProperties(g);
|
|
51
|
+
return {
|
|
52
|
+
// Legacy parity: empty <p> → fallback placeholder; <p><br></p> is not empty.
|
|
53
|
+
innerHtml: p.innerHTML.trim() || l,
|
|
54
|
+
isBold: u,
|
|
55
|
+
isItalic: h,
|
|
56
|
+
styles: this.convertInlineToBlock(E)
|
|
45
57
|
};
|
|
46
|
-
|
|
47
|
-
return {
|
|
48
|
-
text: n,
|
|
49
|
-
isBold: a,
|
|
50
|
-
isItalic: p,
|
|
51
|
-
align: c,
|
|
52
|
-
styles: u
|
|
53
|
-
};
|
|
58
|
+
}), align: i, classList: n };
|
|
54
59
|
}
|
|
55
60
|
buildTextBlock(t) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
61
|
+
const e = t.align ? ` align="${t.align}"` : "", l = t.paragraphs.map((s, r) => {
|
|
62
|
+
const i = r + 1;
|
|
63
|
+
let n = s.innerHtml;
|
|
64
|
+
const m = s.isBold && !$.test(n), c = s.isItalic && !k.test(n);
|
|
65
|
+
m && c ? n = `<strong path="${i},0"><em path="${i},0,0">${n}</em></strong>` : m ? n = `<strong path="${i},0">${n}</strong>` : c && (n = `<em path="${i},0">${n}</em>`);
|
|
66
|
+
const a = s.styles ? ` style="${s.styles.replaceAll('"', "'")}"` : "";
|
|
67
|
+
return `<p path="${i}"${a}>${n}</p>`;
|
|
68
|
+
}).join(`
|
|
69
|
+
`);
|
|
59
70
|
return `
|
|
60
|
-
<td class="esd-block-text" ${
|
|
61
|
-
|
|
62
|
-
${e}
|
|
63
|
-
</p>
|
|
71
|
+
<td class="esd-block-text ${t.classList}" ${e}>
|
|
72
|
+
${l}
|
|
64
73
|
</td>
|
|
65
74
|
`;
|
|
66
75
|
}
|
|
67
|
-
|
|
68
|
-
return t ?
|
|
69
|
-
const l = new RegExp(`${n}\\s*:\\s*[^;]*;?`, "gi");
|
|
70
|
-
return r.replace(l, "");
|
|
71
|
-
}, t).replace(/;\s*;/g, ";").replace(/^;|;$/g, "").trim() : "";
|
|
76
|
+
removeFontEmphasisProperties(t) {
|
|
77
|
+
return t ? t.replace(_, "").replace(x, "").replace(b, ";").replace(d, "").trim() : "";
|
|
72
78
|
}
|
|
73
79
|
convertInlineToBlock(t) {
|
|
74
80
|
if (!t)
|
|
75
81
|
return "";
|
|
76
|
-
let e = t.replace(
|
|
77
|
-
return
|
|
82
|
+
let e = t.replace(S, "display: block");
|
|
83
|
+
return A.test(e) || (e = e ? `${e}; display: block` : "display: block"), e.replace(b, ";").replace(d, "").trim();
|
|
78
84
|
}
|
|
79
85
|
}
|
|
80
|
-
function
|
|
81
|
-
return new
|
|
86
|
+
function N(o) {
|
|
87
|
+
return new O().migrate(o);
|
|
82
88
|
}
|
|
83
89
|
export {
|
|
84
|
-
|
|
90
|
+
N as migrateCheckbox
|
|
85
91
|
};
|
|
@@ -1,109 +1,109 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
var S = Object.defineProperty;
|
|
2
|
+
var I = (p, t, e) => t in p ? S(p, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[t] = e;
|
|
3
|
+
var y = (p, t, e) => I(p, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import R from "../../extensions/Blocks/RadioButton/template.js";
|
|
5
|
+
const L = /font-weight\s*:\s*[^;]*;?/gi, _ = /font-style\s*:\s*[^;]*;?/gi, f = /;\s*;/g, E = /^;|;$/g, x = /display\s*:\s*inline/gi, A = /display\s*:/i, B = /font-weight\s*:\s*bold/i, $ = /font-style\s*:\s*italic/i, N = /^<(?:strong|b)\b/i, O = /^<(?:em|i)\b/i;
|
|
6
|
+
class H {
|
|
6
7
|
constructor() {
|
|
7
|
-
|
|
8
|
+
y(this, "parser");
|
|
8
9
|
this.parser = new DOMParser();
|
|
9
10
|
}
|
|
10
|
-
migrate(
|
|
11
|
+
migrate(t) {
|
|
11
12
|
try {
|
|
12
|
-
const
|
|
13
|
-
if (
|
|
14
|
-
return
|
|
15
|
-
let
|
|
16
|
-
return
|
|
13
|
+
const e = this.parser.parseFromString(t, "text/html"), o = e.querySelectorAll("td.radio-button-block"), n = e.querySelectorAll("td.radio-button-v2");
|
|
14
|
+
if (o.length === 0 && n.length === 0)
|
|
15
|
+
return t;
|
|
16
|
+
let i = !1;
|
|
17
|
+
return o.forEach((r) => {
|
|
17
18
|
if (r.classList.contains("radio-button-v2"))
|
|
18
19
|
return;
|
|
19
|
-
const
|
|
20
|
+
const s = r.getAttribute("id"), c = this.extractTextFromElement(r, "ins-title"), u = this.extractTextFromElement(r, "ins-description"), l = this.extractTextFromElement(r, "ins-subscribe"), a = this.extractTextFromElement(r, "ins-unsubscribe"), d = this.buildTextBlock(c), m = this.buildTextBlock(u), T = this.buildTextBlock({ ...l, classList: "" }), b = this.buildTextBlock({ ...a, classList: "" }), h = R.replace("{-{-TITLE-}-}", d).replace("{-{-DESCRIPTION-}-}", m).replace("{-{-YES-}-}", T).replace("{-{-NO-}-}", b), g = this.parser.parseFromString(
|
|
20
21
|
`<table id="tempDoc"><tbody><tr>${h}</tr></tbody></table>`,
|
|
21
22
|
"text/html"
|
|
22
23
|
).querySelector(".radio-button-v2");
|
|
23
|
-
|
|
24
|
-
}),
|
|
25
|
-
} catch (
|
|
26
|
-
return console.error("RadioButtonMigrator failed:",
|
|
24
|
+
g && r.parentNode && (g.setAttribute("id", s || ""), r.parentNode.replaceChild(g, r), i = !0);
|
|
25
|
+
}), i = this.healRadioButtonV2(e) || i, i ? e.documentElement.outerHTML : t;
|
|
26
|
+
} catch (e) {
|
|
27
|
+
return console.error("RadioButtonMigrator failed:", e), t;
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
|
-
healRadioButtonV2(
|
|
30
|
-
let
|
|
31
|
-
return
|
|
32
|
-
var
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
if (!
|
|
30
|
+
healRadioButtonV2(t) {
|
|
31
|
+
let e = !1;
|
|
32
|
+
return t.querySelectorAll("td.radio-button-v2").forEach((o) => {
|
|
33
|
+
var m;
|
|
34
|
+
o.classList.contains("radio-button-block") || (o.classList.add("radio-button-block"), e = !0);
|
|
35
|
+
const n = o.querySelector("input#radioYes"), i = o.querySelector("input#radioNo");
|
|
36
|
+
if (!n || !i)
|
|
36
37
|
return;
|
|
37
|
-
const r = ((
|
|
38
|
-
if (!r && !
|
|
38
|
+
const r = ((m = n.parentElement) == null ? void 0 : m.querySelector(":scope > p")) || null;
|
|
39
|
+
if (!r && !n.hasAttribute("align"))
|
|
39
40
|
return;
|
|
40
|
-
const
|
|
41
|
-
if (!
|
|
41
|
+
const s = n.closest("tr"), c = i.closest("tr");
|
|
42
|
+
if (!s || !c || s === c || !s.parentNode)
|
|
42
43
|
return;
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
}),
|
|
44
|
+
const u = (r == null ? void 0 : r.innerHTML.trim()) || "Yes", l = c.cloneNode(!0), a = l.querySelector("input#radioNo"), d = l.querySelector("p");
|
|
45
|
+
a && (a.setAttribute("id", "radioYes"), a.removeAttribute("align")), d && (d.innerHTML = u), s.parentNode.replaceChild(l, s), e = !0;
|
|
46
|
+
}), e;
|
|
46
47
|
}
|
|
47
|
-
extractTextFromElement(
|
|
48
|
-
var
|
|
49
|
-
const
|
|
50
|
-
if (!
|
|
48
|
+
extractTextFromElement(t, e) {
|
|
49
|
+
var u, l;
|
|
50
|
+
const o = e === "ins-title" ? "Title" : "Description", n = t.querySelector(`.${e}`);
|
|
51
|
+
if (!n)
|
|
51
52
|
return {
|
|
52
|
-
|
|
53
|
-
isBold: !1,
|
|
54
|
-
isItalic: !1,
|
|
53
|
+
paragraphs: [{ innerHtml: o, isBold: !1, isItalic: !1, styles: "" }],
|
|
55
54
|
align: "left",
|
|
56
|
-
styles: "",
|
|
57
55
|
classList: ""
|
|
58
56
|
};
|
|
59
|
-
const i =
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
const i = Array.from(n.querySelectorAll("p")), r = n.getAttribute("align") || ((u = i[0]) == null ? void 0 : u.getAttribute("align")) || "left", s = n.getAttribute("class") || "";
|
|
58
|
+
return i.length === 0 ? {
|
|
59
|
+
paragraphs: [{
|
|
60
|
+
innerHtml: ((l = n.textContent) == null ? void 0 : l.trim()) || o,
|
|
63
61
|
isBold: !1,
|
|
64
62
|
isItalic: !1,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
63
|
+
styles: ""
|
|
64
|
+
}],
|
|
65
|
+
align: r,
|
|
66
|
+
classList: ""
|
|
67
|
+
} : { paragraphs: i.map((a) => {
|
|
68
|
+
const d = a.getAttribute("style") || "", m = B.test(d) || !!a.querySelector("b, strong"), T = $.test(d) || !!a.querySelector("i, em"), b = this.removeFontEmphasisProperties(d);
|
|
69
|
+
return {
|
|
70
|
+
// Legacy parity: empty <p> → fallback placeholder; <p><br></p> is not empty.
|
|
71
|
+
innerHtml: a.innerHTML.trim() || o,
|
|
72
|
+
isBold: m,
|
|
73
|
+
isItalic: T,
|
|
74
|
+
styles: this.convertInlineToBlock(b)
|
|
68
75
|
};
|
|
69
|
-
|
|
70
|
-
return {
|
|
71
|
-
text: o,
|
|
72
|
-
isBold: a,
|
|
73
|
-
isItalic: g,
|
|
74
|
-
align: n,
|
|
75
|
-
styles: u,
|
|
76
|
-
classList: p
|
|
77
|
-
};
|
|
76
|
+
}), align: r, classList: s };
|
|
78
77
|
}
|
|
79
|
-
buildTextBlock(
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
78
|
+
buildTextBlock(t) {
|
|
79
|
+
const e = t.align ? ` align="${t.align}"` : "", o = t.paragraphs.map((n, i) => {
|
|
80
|
+
const r = i + 1;
|
|
81
|
+
let s = n.innerHtml;
|
|
82
|
+
const c = n.isBold && !N.test(s), u = n.isItalic && !O.test(s);
|
|
83
|
+
c && u ? s = `<strong path="${r},0"><em path="${r},0,0">${s}</em></strong>` : c ? s = `<strong path="${r},0">${s}</strong>` : u && (s = `<em path="${r},0">${s}</em>`);
|
|
84
|
+
const l = n.styles ? ` style="${n.styles.replaceAll('"', "'")}"` : "";
|
|
85
|
+
return `<p path="${r}"${l}>${s}</p>`;
|
|
86
|
+
}).join(`
|
|
87
|
+
`);
|
|
83
88
|
return `
|
|
84
|
-
<td class="esd-block-text ${
|
|
85
|
-
|
|
86
|
-
${t}
|
|
87
|
-
</p>
|
|
89
|
+
<td class="esd-block-text ${t.classList}" ${e}>
|
|
90
|
+
${o}
|
|
88
91
|
</td>
|
|
89
92
|
`;
|
|
90
93
|
}
|
|
91
|
-
|
|
92
|
-
return
|
|
93
|
-
const r = new RegExp(`${o}\\s*:\\s*[^;]*;?`, "gi");
|
|
94
|
-
return i.replace(r, "");
|
|
95
|
-
}, e).replace(/;\s*;/g, ";").replace(/^;|;$/g, "").trim() : "";
|
|
94
|
+
removeFontEmphasisProperties(t) {
|
|
95
|
+
return t ? t.replace(L, "").replace(_, "").replace(f, ";").replace(E, "").trim() : "";
|
|
96
96
|
}
|
|
97
|
-
convertInlineToBlock(
|
|
98
|
-
if (!
|
|
97
|
+
convertInlineToBlock(t) {
|
|
98
|
+
if (!t)
|
|
99
99
|
return "";
|
|
100
|
-
let
|
|
101
|
-
return
|
|
100
|
+
let e = t.replace(x, "display: block");
|
|
101
|
+
return A.test(e) || (e = e ? `${e}; display: block` : "display: block"), e.replace(f, ";").replace(E, "").trim();
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
return new
|
|
104
|
+
function C(p) {
|
|
105
|
+
return new H().migrate(p);
|
|
106
106
|
}
|
|
107
107
|
export {
|
|
108
|
-
|
|
108
|
+
C as migrateRadioButton
|
|
109
109
|
};
|
|
@@ -7,5 +7,5 @@ export declare const useActionsApi: () => {
|
|
|
7
7
|
getPreviewData: (options?: CompileEmailOptions) => Promise<CompiledEmailResult>;
|
|
8
8
|
updateTimerInClonedTemplate: () => Promise<string | null>;
|
|
9
9
|
updateHtmlAndCss: (html: string, css: string) => void;
|
|
10
|
-
editorSave: () => Promise<
|
|
10
|
+
editorSave: () => Promise<void>;
|
|
11
11
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "3.4.1-beta.
|
|
3
|
+
"version": "3.4.1-beta.ea1fec9",
|
|
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",
|