@templatical/editor 0.8.2 → 0.8.3
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/{AiFeatureMenu-CBtADSlv.js → AiFeatureMenu-De9ow6Ej.js} +1 -1
- package/dist/{CloudEditor-C5iH4_HX.js → CloudEditor-Ccoru8Up.js} +4 -4
- package/dist/{CollaboratorBar-Bqp1kjPK.js → CollaboratorBar-CmHq6XiL.js} +1 -1
- package/dist/{ModuleBrowserModal-DvhbtQ5Q.js → ModuleBrowserModal-0n6DoZtA.js} +4 -4
- package/dist/{ModulePreviewCanvas-DJbx-ARl.js → ModulePreviewCanvas-DEtTEvMM.js} +1 -1
- package/dist/{ParagraphEditor-DcVQcYUK.js → ParagraphEditor-PQZp1plL.js} +1 -1
- package/dist/{SaveModuleDialog-C0Hcbpfe.js → SaveModuleDialog-WWMn87Oi.js} +2 -2
- package/dist/{SnapshotHistory-ByXaMG1n.js → SnapshotHistory-Dy_Iy7VG.js} +1 -1
- package/dist/{TestEmailModal-Rdi8WxSm.js → TestEmailModal--4EVFj1A.js} +2 -2
- package/dist/{TitleEditor-CT4asLZe.js → TitleEditor-C6z6Jzeg.js} +1 -1
- package/dist/{TplModal-anuE6Hb0.js → TplModal-D5xlYbls.js} +1 -1
- package/dist/{blockTypeIcons-8MdDzKgP.js → blockTypeIcons-jZR-IBPY.js} +1 -1
- package/dist/bundle-stats.json +5 -5
- package/dist/cdn/chunks/{AiFeatureMenu-B2lX_OPX.js → AiFeatureMenu-8gbvVwXD.js} +2 -2
- package/dist/cdn/chunks/{AiFeatureMenu-B2lX_OPX.js.map → AiFeatureMenu-8gbvVwXD.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-CrmWF2hu.js → BlockIssueBadge-CYoY-wyI.js} +2 -2
- package/dist/cdn/chunks/{BlockIssueBadge-CrmWF2hu.js.map → BlockIssueBadge-CYoY-wyI.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-Do4-w8x5.js → CloudEditor-DGAV0qxk.js} +7 -7
- package/dist/cdn/chunks/{CloudEditor-Do4-w8x5.js.map → CloudEditor-DGAV0qxk.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-Xmam6lHp.js → CollaboratorBar-BrzkrQJM.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-Xmam6lHp.js.map → CollaboratorBar-BrzkrQJM.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-DadDprcu.js → CountdownBlock-BSEKrpZY.js} +2 -2
- package/dist/cdn/chunks/{CountdownBlock-DadDprcu.js.map → CountdownBlock-BSEKrpZY.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-qQC07x3l.js → CountdownToolbar-DME9toD5.js} +3 -3
- package/dist/cdn/chunks/{CountdownToolbar-qQC07x3l.js.map → CountdownToolbar-DME9toD5.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DWoYjpo4.js → IssuesPanel-BqGOXisb.js} +3 -3
- package/dist/cdn/chunks/{IssuesPanel-DWoYjpo4.js.map → IssuesPanel-BqGOXisb.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-BQ2-bR4y.js → ModuleBrowserModal-Bz2oCRS9.js} +5 -5
- package/dist/cdn/chunks/{ModuleBrowserModal-BQ2-bR4y.js.map → ModuleBrowserModal-Bz2oCRS9.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-B57d9ZNW.js → ModulePreviewCanvas-8i2U3rd6.js} +2 -2
- package/dist/cdn/chunks/{ModulePreviewCanvas-B57d9ZNW.js.map → ModulePreviewCanvas-8i2U3rd6.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-CJFH3eNR.js → NumberWithSuffix-C6HZCvvh.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-CJFH3eNR.js.map → NumberWithSuffix-C6HZCvvh.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DPFK_KjR.js → ParagraphEditor-DfKVmv1W.js} +5 -5
- package/dist/cdn/chunks/{ParagraphEditor-DPFK_KjR.js.map → ParagraphEditor-DfKVmv1W.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-frc9A4J9.js → RichTextEditorContent-B-HY9asd.js} +2 -2
- package/dist/cdn/chunks/{RichTextEditorContent-frc9A4J9.js.map → RichTextEditorContent-B-HY9asd.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-OgP9rNwp.js → SaveModuleDialog-BgwBxW_S.js} +2 -2
- package/dist/cdn/chunks/{SaveModuleDialog-OgP9rNwp.js.map → SaveModuleDialog-BgwBxW_S.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-DZ_v-LQC.js → TitleEditor-C2p3SosJ.js} +5 -5
- package/dist/cdn/chunks/{TitleEditor-DZ_v-LQC.js.map → TitleEditor-C2p3SosJ.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-DYAslSVB.js → blockTypeIcons-Bck6aYVw.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-DYAslSVB.js.map → blockTypeIcons-Bck6aYVw.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-IwIDJ7T-.js → extensions-DdH6DxVo.js} +2 -2
- package/dist/cdn/chunks/{extensions-IwIDJ7T-.js.map → extensions-DdH6DxVo.js.map} +1 -1
- package/dist/cdn/chunks/{features-svfaXiyQ.js → features-BOcQhi9B.js} +26 -20
- package/dist/cdn/chunks/{features-svfaXiyQ.js.map → features-BOcQhi9B.js.map} +1 -1
- package/dist/cdn/chunks/{icons-BWmUvlwk.js → icons-BVyDCkxF.js} +2 -2
- package/dist/cdn/chunks/{icons-BWmUvlwk.js.map → icons-BVyDCkxF.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-DyxGPQvA.js → media-library-CPZI4Yxq.js} +3 -3
- package/dist/cdn/chunks/{media-library-DyxGPQvA.js.map → media-library-CPZI4Yxq.js.map} +1 -1
- package/dist/cdn/chunks/{quality-DLJBm0Sf.js → quality-Cytz80Z5.js} +2 -2
- package/dist/cdn/chunks/{quality-DLJBm0Sf.js.map → quality-Cytz80Z5.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-BDRxApzE.js → renderer-Bsqzjvsr.js} +3 -3
- package/dist/cdn/chunks/{renderer-BDRxApzE.js.map → renderer-Bsqzjvsr.js.map} +1 -1
- package/dist/cdn/chunks/{src-DBcvijiJ.js → src-BRhJ_W0W.js} +4 -4
- package/dist/cdn/chunks/{src-DBcvijiJ.js.map → src-BRhJ_W0W.js.map} +1 -1
- package/dist/cdn/chunks/{styles--HrprHTR.js → styles-MrOGXwzJ.js} +8 -8
- package/dist/cdn/chunks/{styles--HrprHTR.js.map → styles-MrOGXwzJ.js.map} +1 -1
- package/dist/cdn/editor.js +5 -5
- package/dist/{styles-BUp0dVGV.js → styles-DfdDKEGV.js} +2 -2
- package/dist/templatical-editor.js +3 -3
- package/dist/{useEditorCore-CJB2x6Ts.js → useEditorCore-YaOoz7QB.js} +22 -16
- package/package.json +7 -7
package/dist/cdn/editor.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as e, C as t, H as n, M as r, V as i, Z as a, ct as o, g as s, h as c, it as l, j as u, m as d, n as f, ot as p, p as m, r as h, s as g, st as ee, v as _, x as v, y } from "./chunks/draggable-CLpL3kf8.js";
|
|
2
|
-
import { A as b, X as x, pn as te, rt as S, zn as C } from "./chunks/features-
|
|
3
|
-
import { C as ne } from "./chunks/icons-
|
|
4
|
-
import { a as re, c as ie, i as w, n as T, o as E, r as D, s as O, t as k } from "./chunks/styles
|
|
2
|
+
import { A as b, X as x, pn as te, rt as S, zn as C } from "./chunks/features-BOcQhi9B.js";
|
|
3
|
+
import { C as ne } from "./chunks/icons-BVyDCkxF.js";
|
|
4
|
+
import { a as re, c as ie, i as w, n as T, o as E, r as D, s as O, t as k } from "./chunks/styles-MrOGXwzJ.js";
|
|
5
5
|
//#region src/Editor.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var A = ["data-tpl-theme"], j = {
|
|
7
7
|
class: "tpl-header tpl:absolute tpl:top-0 tpl:right-0 tpl:left-0 tpl:z-50 tpl:grid tpl:h-14 tpl:grid-cols-[1fr_auto_1fr] tpl:items-center tpl:px-4 tpl:shadow-[var(--tpl-shadow-md)] tpl:border-b tpl:border-[var(--tpl-border)]",
|
|
@@ -188,7 +188,7 @@ function de() {
|
|
|
188
188
|
async function fe(e) {
|
|
189
189
|
let t;
|
|
190
190
|
try {
|
|
191
|
-
t = await import("./chunks/renderer-
|
|
191
|
+
t = await import("./chunks/renderer-Bsqzjvsr.js").then((e) => e.t);
|
|
192
192
|
} catch {
|
|
193
193
|
throw Error("[Templatical] toMjml() requires the @templatical/renderer package. Please install it.");
|
|
194
194
|
}
|
|
@@ -272,7 +272,7 @@ function $(e) {
|
|
|
272
272
|
async function _e(e) {
|
|
273
273
|
let n = typeof e.container == "string" ? document.querySelector(e.container) : e.container;
|
|
274
274
|
if (!n) throw Error(`[Templatical] Container element not found: ${e.container}`);
|
|
275
|
-
let { default: r } = await import("./chunks/CloudEditor-
|
|
275
|
+
let { default: r } = await import("./chunks/CloudEditor-DGAV0qxk.js"), [i, o] = await Promise.all([W(e.locale ?? "en"), G(e.locale ?? "en")]), s = x(e.fonts);
|
|
276
276
|
$(n);
|
|
277
277
|
let c = q(n, e.shadowDom ?? !0), l = a(null);
|
|
278
278
|
return await new Promise((a, u) => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { A as e, B as t, E as n, F as r, J as i, L as a, M as o, N as s, U as c, X as l, _ as u, a as d, at as f, b as p, c as m, d as h, f as g, h as _, l as v, m as y, o as b, ot as x, p as S, q as C, rt as w, s as T, st as E, t as D, v as O, w as k, y as A, z as j } from "./vue.runtime.esm-bundler-xiAB6UTz.js";
|
|
2
2
|
import { C as ee, D as M, E as te, S as N, a as P, l as F, n as ne, o as I } from "./dist-DJmnUmW9.js";
|
|
3
|
-
import { A as L, F as re, I as ie, M as ae, N as oe, T as R, _ as se, a as ce, c as le, d as ue, g as de, h as fe, i as pe, j as me, k as he, l as ge, m as _e, n as ve, o as ye, p as be, r as xe, s as Se, u as Ce, v as we, y as Te } from "./useEditorCore-
|
|
3
|
+
import { A as L, F as re, I as ie, M as ae, N as oe, T as R, _ as se, a as ce, c as le, d as ue, g as de, h as fe, i as pe, j as me, k as he, l as ge, m as _e, n as ve, o as ye, p as be, r as xe, s as Se, u as Ce, v as we, y as Te } from "./useEditorCore-YaOoz7QB.js";
|
|
4
4
|
import { s as Ee } from "./dist-CkhqaMca.js";
|
|
5
5
|
import { A as De, E as Oe, a as ke, b as Ae, d as je, f as Me, h as Ne, n as Pe, o as Fe, p as Ie, s as Le, u as Re, x as ze } from "./keys-XS_XrjqL.js";
|
|
6
6
|
import { t as z } from "./useI18n-tMHqPsE4.js";
|
|
7
7
|
import { t as B } from "./createLucideIcon-DTECxBv6.js";
|
|
8
8
|
import { t as Be } from "./chevron-down-CytfFjil.js";
|
|
9
9
|
import { t as Ve } from "./circle-alert-9J8Q4fwU.js";
|
|
10
|
-
import { n as He, r as V, t as Ue } from "./blockTypeIcons-
|
|
10
|
+
import { n as He, r as V, t as Ue } from "./blockTypeIcons-jZR-IBPY.js";
|
|
11
11
|
import { n as We, t as Ge } from "./refresh-cw-DFozdLYp.js";
|
|
12
12
|
import { t as Ke } from "./image-up-YgXg9o1y.js";
|
|
13
13
|
import { t as qe } from "./info-W-213KLD.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as e, B as t, O as n, S as r, X as i, _ as a, at as o, b as s, f as c, h as l, k as u, m as d, n as f, o as p, ot as m, p as h, rt as g, st as _, t as v, v as y, z as b } from "./vue.runtime.esm-bundler-xiAB6UTz.js";
|
|
2
2
|
import { r as x } from "./timeouts-BSGxjuUF.js";
|
|
3
|
-
import { L as ee, t as te, x as S } from "./useEditorCore-
|
|
4
|
-
import { a as ne, c as re, i as ie, l as ae, n as C, o as oe, r as w, s as T, t as E } from "./styles-
|
|
3
|
+
import { L as ee, t as te, x as S } from "./useEditorCore-YaOoz7QB.js";
|
|
4
|
+
import { a as ne, c as re, i as ie, l as ae, n as C, o as oe, r as w, s as T, t as E } from "./styles-DfdDKEGV.js";
|
|
5
5
|
import { t as D } from "./_plugin-vue_export-helper-B0hnzhyu.js";
|
|
6
6
|
//#region src/Editor.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var O = ["data-tpl-theme"], k = {
|
|
@@ -273,7 +273,7 @@ function $(e) {
|
|
|
273
273
|
async function _e(e) {
|
|
274
274
|
let t = typeof e.container == "string" ? document.querySelector(e.container) : e.container;
|
|
275
275
|
if (!t) throw Error(`[Templatical] Container element not found: ${e.container}`);
|
|
276
|
-
let { default: n } = await import("./CloudEditor-
|
|
276
|
+
let { default: n } = await import("./CloudEditor-Ccoru8Up.js"), [a, o] = await Promise.all([H(e.locale ?? "en"), U(e.locale ?? "en")]), s = S(e.fonts);
|
|
277
277
|
$(t);
|
|
278
278
|
let c = q(t, e.shadowDom ?? !0), l = i(null);
|
|
279
279
|
return await new Promise((i, u) => {
|
|
@@ -1542,13 +1542,16 @@ var Tn = { class: "tpl:w-full" }, En = {
|
|
|
1542
1542
|
e.alt && (t.alt = e.alt), i("update", t);
|
|
1543
1543
|
}
|
|
1544
1544
|
}
|
|
1545
|
-
let d = x(() => ({ textAlign: r.block.align })), f = x(() =>
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1545
|
+
let d = x(() => ({ textAlign: r.block.align })), f = x(() => {
|
|
1546
|
+
let e = r.block.align;
|
|
1547
|
+
return {
|
|
1548
|
+
maxWidth: "100%",
|
|
1549
|
+
width: r.block.width === "full" ? "100%" : `${r.block.width}px`,
|
|
1550
|
+
display: "block",
|
|
1551
|
+
marginLeft: e === "center" || e === "right" ? "auto" : void 0,
|
|
1552
|
+
marginRight: e === "center" ? "auto" : void 0
|
|
1553
|
+
};
|
|
1554
|
+
}), p = x(() => pe(r.block.src, o));
|
|
1552
1555
|
return (n, r) => (e(), w("div", {
|
|
1553
1556
|
class: "tpl:w-full",
|
|
1554
1557
|
style: A(d.value)
|
|
@@ -1749,7 +1752,7 @@ var lr = ["innerHTML"], ur = /* @__PURE__ */ y({
|
|
|
1749
1752
|
viewport: {}
|
|
1750
1753
|
},
|
|
1751
1754
|
setup(t) {
|
|
1752
|
-
let n = t, r = se(() => import("./ParagraphEditor-
|
|
1755
|
+
let n = t, r = se(() => import("./ParagraphEditor-PQZp1plL.js")), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = cr(() => n.block.content);
|
|
1753
1756
|
return (n, u) => (e(), w("div", {
|
|
1754
1757
|
ref_key: "blockRef",
|
|
1755
1758
|
ref: a,
|
|
@@ -1965,7 +1968,7 @@ var Dr = /* @__PURE__ */ y({
|
|
|
1965
1968
|
viewport: {}
|
|
1966
1969
|
},
|
|
1967
1970
|
setup(t) {
|
|
1968
|
-
let n = t, r = se(() => import("./TitleEditor-
|
|
1971
|
+
let n = t, r = se(() => import("./TitleEditor-C6z6Jzeg.js")), { isEditing: a, blockRef: o, toolbarPosition: s, resolvedContent: c, handleDoubleClick: l, handleEditorDone: u } = cr(() => n.block.content), d = x(() => {
|
|
1969
1972
|
let e = {
|
|
1970
1973
|
fontSize: `${De[n.block.level]}px`,
|
|
1971
1974
|
color: n.block.color,
|
|
@@ -3845,13 +3848,16 @@ var Bo = ["src", "alt"], Vo = {
|
|
|
3845
3848
|
viewport: {}
|
|
3846
3849
|
},
|
|
3847
3850
|
setup(t) {
|
|
3848
|
-
let n = t, { t: r } = lt(), { syntax: i } = ht(), a = x(() => pe(n.block.url, i) || pe(n.block.thumbnailUrl, i)), o = x(() => a.value ? null : zo(n.block.url, n.block.thumbnailUrl)), s = x(() => ({ textAlign: n.block.align })), c = x(() =>
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3851
|
+
let n = t, { t: r } = lt(), { syntax: i } = ht(), a = x(() => pe(n.block.url, i) || pe(n.block.thumbnailUrl, i)), o = x(() => a.value ? null : zo(n.block.url, n.block.thumbnailUrl)), s = x(() => ({ textAlign: n.block.align })), c = x(() => {
|
|
3852
|
+
let e = n.block.align;
|
|
3853
|
+
return {
|
|
3854
|
+
maxWidth: "100%",
|
|
3855
|
+
width: n.block.width === "full" ? "100%" : `${n.block.width}px`,
|
|
3856
|
+
display: "block",
|
|
3857
|
+
marginLeft: e === "center" || e === "right" ? "auto" : void 0,
|
|
3858
|
+
marginRight: e === "center" ? "auto" : void 0
|
|
3859
|
+
};
|
|
3860
|
+
}), l = x(() => pe(n.block.url, i) ? n.block.url : n.block.thumbnailUrl);
|
|
3855
3861
|
return (n, i) => (e(), w("div", {
|
|
3856
3862
|
class: "tpl:w-full",
|
|
3857
3863
|
style: A(s.value)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@templatical/editor",
|
|
3
3
|
"description": "Vue 3 visual drag-and-drop email editor powered by Templatical",
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.3",
|
|
5
5
|
"bugs": "https://github.com/templatical/sdk/issues",
|
|
6
6
|
"devDependencies": {
|
|
7
7
|
"@lucide/vue": "^1.16.0",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"vue": "^3.5.34",
|
|
33
33
|
"vue-draggable-plus": "^0.6.1",
|
|
34
34
|
"vue-tsc": "^3.2.9",
|
|
35
|
-
"@templatical/core": "0.8.
|
|
36
|
-
"@templatical/quality": "0.8.
|
|
37
|
-
"@templatical/types": "0.8.
|
|
35
|
+
"@templatical/core": "0.8.3",
|
|
36
|
+
"@templatical/quality": "0.8.3",
|
|
37
|
+
"@templatical/types": "0.8.3"
|
|
38
38
|
},
|
|
39
39
|
"exports": {
|
|
40
40
|
".": {
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"license": "SEE LICENSE IN LICENSE",
|
|
63
63
|
"module": "./dist/templatical-editor.js",
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@templatical/media-library": "0.8.
|
|
66
|
-
"@templatical/quality": "0.8.
|
|
67
|
-
"@templatical/renderer": "0.8.
|
|
65
|
+
"@templatical/media-library": "0.8.3",
|
|
66
|
+
"@templatical/quality": "0.8.3",
|
|
67
|
+
"@templatical/renderer": "0.8.3"
|
|
68
68
|
},
|
|
69
69
|
"peerDependenciesMeta": {
|
|
70
70
|
"@templatical/renderer": {
|