@templatical/editor 0.19.0 → 0.20.0
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/{AiChatSidebar-DAQTFuvi.js → AiChatSidebar-ChrE6pUq.js} +7 -7
- package/dist/{AiFeatureMenu-aFSO20PR.js → AiFeatureMenu-DkQ9HhQ6.js} +4 -4
- package/dist/{BlockIssueBadge-BQmq1bxn.js → BlockIssueBadge-B4QjePax.js} +2 -2
- package/dist/{CloudEditor-D0K-m1GA.js → CloudEditor-CfX-aMiV.js} +15 -15
- package/dist/{CollaboratorBar-CJO3l6Dt.js → CollaboratorBar-DTibhQ1j.js} +2 -2
- package/dist/{ColorPicker-BsgpTJqK.js → ColorPicker-4vDYhdGe.js} +1 -1
- package/dist/{CommentsSidebar-BYMVucZh.js → CommentsSidebar-D-o5Stlg.js} +8 -8
- package/dist/{CountdownToolbar-PJI3ffi1.js → CountdownToolbar-D7yQqnA2.js} +2 -2
- package/dist/{DesignReferenceSidebar-QfAV8XT9.js → DesignReferenceSidebar-DnO6ZdwS.js} +5 -5
- package/dist/{IssuesPanel-CTjRgz8w.js → IssuesPanel-X_vkNGrs.js} +5 -5
- package/dist/{ModuleBrowserModal-BNalLx0k.js → ModuleBrowserModal-AJt--JPh.js} +6 -6
- package/dist/{ModulePreviewCanvas-BwObwisa.js → ModulePreviewCanvas-BKYOcVCh.js} +1 -1
- package/dist/{NumberWithSuffix-D3BKz66W.js → NumberWithSuffix-Bf3rNxza.js} +1 -1
- package/dist/{ParagraphEditor-Cf75UfSo.js → ParagraphEditor-C5ixOIYb.js} +7 -7
- package/dist/{RichTextEditorContent-MdaLz6Q3.js → RichTextEditorContent-DwhDnMsG.js} +3 -3
- package/dist/{SaveModuleDialog-MTjwiF9D.js → SaveModuleDialog-B4QX9eiv.js} +3 -3
- package/dist/{SnapshotHistory-C_Y1LzAY.js → SnapshotHistory-DaVueFv6.js} +5 -5
- package/dist/{TemplateScoringPanel-DikuKc6i.js → TemplateScoringPanel-B0UHoTLx.js} +10 -10
- package/dist/{TestEmailModal-BW8aTtzf.js → TestEmailModal-BkauxF7j.js} +3 -3
- package/dist/{TitleEditor-CCUkbRN0.js → TitleEditor-n6WDVDjW.js} +4 -4
- package/dist/{TplModal-DoOwUKlT.js → TplModal-BDDyvT-C.js} +1 -1
- package/dist/{blockTypeIcons-BlPKjD7M.js → blockTypeIcons-4D0aFXNg.js} +2 -2
- package/dist/bundle-stats.json +5 -5
- package/dist/cdn/chunks/{AiFeatureMenu-RwJiaPXZ.js → AiFeatureMenu-CIBHAGSz.js} +2 -2
- package/dist/cdn/chunks/{AiFeatureMenu-RwJiaPXZ.js.map → AiFeatureMenu-CIBHAGSz.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-DM-TDKbr.js → BlockIssueBadge-CxMiLo3p.js} +4 -4
- package/dist/cdn/chunks/{BlockIssueBadge-DM-TDKbr.js.map → BlockIssueBadge-CxMiLo3p.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-Dufl354p.js → CloudEditor-CEa3Xgqh.js} +131 -131
- package/dist/cdn/chunks/{CloudEditor-Dufl354p.js.map → CloudEditor-CEa3Xgqh.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-xsU20iPl.js → CollaboratorBar-Bk1gD02G.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-xsU20iPl.js.map → CollaboratorBar-Bk1gD02G.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-y_obnw4o.js → ColorPicker-ll8pynws.js} +179 -179
- package/dist/cdn/chunks/ColorPicker-ll8pynws.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-sHsRMe1q.js → CountdownBlock-eGUE7hhw.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-sHsRMe1q.js.map → CountdownBlock-eGUE7hhw.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-Ckc_jEi-.js → CountdownToolbar-C1bkSjUR.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-Ckc_jEi-.js.map → CountdownToolbar-C1bkSjUR.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DF5Ajuna.js → IssuesPanel-Csasylf_.js} +5 -5
- package/dist/cdn/chunks/{IssuesPanel-DF5Ajuna.js.map → IssuesPanel-Csasylf_.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-DG4AVFjH.js → ModuleBrowserModal-DznWWtBI.js} +7 -7
- package/dist/cdn/chunks/{ModuleBrowserModal-DG4AVFjH.js.map → ModuleBrowserModal-DznWWtBI.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-Bc_PcJuc.js → ModulePreviewCanvas-D-h7fr87.js} +20 -20
- package/dist/cdn/chunks/{ModulePreviewCanvas-Bc_PcJuc.js.map → ModulePreviewCanvas-D-h7fr87.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-8fOO-LC_.js → NumberWithSuffix-Dt-0odUN.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-8fOO-LC_.js.map → NumberWithSuffix-Dt-0odUN.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-BkafKSju.js → ParagraphEditor-v0_XEL-v.js} +18 -18
- package/dist/cdn/chunks/{ParagraphEditor-BkafKSju.js.map → ParagraphEditor-v0_XEL-v.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-BthhzOZS.js → RichTextEditorContent-NQExNsaV.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-BthhzOZS.js.map → RichTextEditorContent-NQExNsaV.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-DhsfYf2n.js → SaveModuleDialog-BpFhTi-k.js} +5 -5
- package/dist/cdn/chunks/{SaveModuleDialog-DhsfYf2n.js.map → SaveModuleDialog-BpFhTi-k.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-DLv9cXba.js → TitleEditor-CS-_MzYs.js} +8 -8
- package/dist/cdn/chunks/{TitleEditor-DLv9cXba.js.map → TitleEditor-CS-_MzYs.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-B0uibGX7.js → blockTypeIcons-B0Hjh42a.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-B0uibGX7.js.map → blockTypeIcons-B0Hjh42a.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-DLHvZ0UH.js → extensions-Di3hdIRT.js} +22 -22
- package/dist/cdn/chunks/{extensions-DLHvZ0UH.js.map → extensions-Di3hdIRT.js.map} +1 -1
- package/dist/cdn/chunks/{features-Cnfv4QAY.js → features-CLIZ7Q-Y.js} +1490 -1447
- package/dist/cdn/chunks/features-CLIZ7Q-Y.js.map +1 -0
- package/dist/cdn/chunks/{icons-DbcM69bb.js → icons-GX40Qm2W.js} +2 -2
- package/dist/cdn/chunks/{icons-DbcM69bb.js.map → icons-GX40Qm2W.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-DpSMwHd4.js → media-library-yYAkAagU.js} +80 -80
- package/dist/cdn/chunks/{media-library-DpSMwHd4.js.map → media-library-yYAkAagU.js.map} +1 -1
- package/dist/cdn/chunks/{pusher-CIwiKF8H.js → pusher-R0v5p99W.js} +27 -22
- package/dist/cdn/chunks/pusher-R0v5p99W.js.map +1 -0
- package/dist/cdn/chunks/quality-DffYv9j5.js +2180 -0
- package/dist/cdn/chunks/{quality-D9QqkRcU.js.map → quality-DffYv9j5.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-BsLQZNXU.js → renderer-DpBGiXOg.js} +13 -13
- package/dist/cdn/chunks/{renderer-BsLQZNXU.js.map → renderer-DpBGiXOg.js.map} +1 -1
- package/dist/cdn/chunks/{src-zu1ehVNN.js → src-9K6uFiuK.js} +4 -4
- package/dist/cdn/chunks/{src-zu1ehVNN.js.map → src-9K6uFiuK.js.map} +1 -1
- package/dist/cdn/chunks/{styles-Dx-jXeCd.js → styles-DHSmjlpX.js} +837 -833
- package/dist/cdn/chunks/styles-DHSmjlpX.js.map +1 -0
- package/dist/cdn/editor.js +11 -11
- package/dist/{check-Cg6Mc2pP.js → check-Bl4J_tYV.js} +1 -1
- package/dist/{chevron-down-dClfxKrJ.js → chevron-down-COEcl2iP.js} +1 -1
- package/dist/{circle-alert-Bhzm-fNA.js → circle-alert-CvHi5etc.js} +1 -1
- package/dist/{clock-m7TwQw4b.js → clock-CZZw62e8.js} +1 -1
- package/dist/{createLucideIcon-FSF4peHQ.js → createLucideIcon-_peTZQtY.js} +2 -2
- package/dist/{image-up-CDEgJqwA.js → image-up-D26rNdfX.js} +1 -1
- package/dist/{info-BNP8yGsK.js → info-CE3JSTqk.js} +1 -1
- package/dist/{list-checks-jepi4iYr.js → list-checks-BQsLrtBB.js} +1 -1
- package/dist/{loader-circle-BT38qSm3.js → loader-circle-s9Rh5lLd.js} +1 -1
- package/dist/{message-circle-BAHcL9S-.js → message-circle-CI62d690.js} +1 -1
- package/dist/{refresh-cw-as5Bmg4X.js → refresh-cw-DlYfl65Y.js} +1 -1
- package/dist/{scan-line-IAMjPtRw.js → scan-line-CHadrYVb.js} +1 -1
- package/dist/{send-DvMay6bt.js → send-CbP40otC.js} +1 -1
- package/dist/{shield-check-YYDhGroE.js → shield-check-Bnj9aRoJ.js} +1 -1
- package/dist/{sparkles-CCwQMMMZ.js → sparkles-CncWT57a.js} +1 -1
- package/dist/{styles-64uLkPJV.js → styles-DkF_-uX8.js} +658 -654
- package/dist/templatical-editor.js +4 -4
- package/dist/{text-align-start-BwsA6QzC.js → text-align-start-B458vzYw.js} +1 -1
- package/dist/{trash-2-CRBDolnR.js → trash-2-DO0yjSU1.js} +1 -1
- package/dist/{triangle-alert-B2g0ALvq.js → triangle-alert-C18_ima6.js} +1 -1
- package/dist/{upload-y4gxiFp5.js → upload-DsCd2zTR.js} +1 -1
- package/dist/{useEditorCore-ea9OrrH3.js → useEditorCore-kKUemYY6.js} +910 -867
- package/dist/{x-Ctg_250T.js → x-BCFQuE_q.js} +1 -1
- package/package.json +10 -10
- package/dist/cdn/chunks/ColorPicker-y_obnw4o.js.map +0 -1
- package/dist/cdn/chunks/features-Cnfv4QAY.js.map +0 -1
- package/dist/cdn/chunks/pusher-CIwiKF8H.js.map +0 -1
- package/dist/cdn/chunks/quality-D9QqkRcU.js +0 -2180
- package/dist/cdn/chunks/styles-Dx-jXeCd.js.map +0 -1
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, l as d, m as f, n as p, ot as m, p as h, r as g, s as _, st as v, v as ee, x as y, y as b } from "./chunks/draggable-D840DIZB.js";
|
|
2
|
-
import {
|
|
3
|
-
import { S as te } from "./chunks/icons-
|
|
4
|
-
import { a as ne, c as re, d as ie, f as ae, i as oe, l as se, n as ce, o as le, r as ue, s as de, t as fe, u as pe } from "./chunks/styles-
|
|
2
|
+
import { In as x, On as S, Vn as C, X as w, et as T, ir as E, k as D, st as O } from "./chunks/features-CLIZ7Q-Y.js";
|
|
3
|
+
import { S as te } from "./chunks/icons-GX40Qm2W.js";
|
|
4
|
+
import { a as ne, c as re, d as ie, f as ae, i as oe, l as se, n as ce, o as le, r as ue, s as de, t as fe, u as pe } from "./chunks/styles-DHSmjlpX.js";
|
|
5
5
|
//#region src/Editor.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var me = ["data-tpl-theme"], k = {
|
|
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)]",
|
|
@@ -22,7 +22,7 @@ var me = ["data-tpl-theme"], k = {
|
|
|
22
22
|
let y = t, x = S({
|
|
23
23
|
content: y.config.content,
|
|
24
24
|
templateDefaults: y.config.templateDefaults
|
|
25
|
-
}), C = a(null), T =
|
|
25
|
+
}), C = a(null), T = D({
|
|
26
26
|
editor: x,
|
|
27
27
|
containerEl: C,
|
|
28
28
|
config: {
|
|
@@ -46,7 +46,7 @@ var me = ["data-tpl-theme"], k = {
|
|
|
46
46
|
fontsManager: y.fontsManager,
|
|
47
47
|
autoSaveOptions: y.config.onChange ? { onChange: () => y.config.onChange(JSON.parse(JSON.stringify(x.state.content))) } : null,
|
|
48
48
|
editorRoot: y.shadowRoot
|
|
49
|
-
}), { showNotice:
|
|
49
|
+
}), { showNotice: E } = w(() => y.config.smallScreenNotice);
|
|
50
50
|
return e(async () => {
|
|
51
51
|
await y.fontsManager.loadCustomFonts();
|
|
52
52
|
}), u(() => {
|
|
@@ -144,7 +144,7 @@ var me = ["data-tpl-theme"], k = {
|
|
|
144
144
|
}, null, 512),
|
|
145
145
|
b(ce),
|
|
146
146
|
b(fe),
|
|
147
|
-
l(
|
|
147
|
+
l(E) ? (r(), f(de, { key: 1 })) : c("", !0)
|
|
148
148
|
], 46, me));
|
|
149
149
|
}
|
|
150
150
|
}), [["__scopeId", "data-v-5cb4e459"]]), F = /* #__PURE__ */ Object.assign({
|
|
@@ -203,7 +203,7 @@ function ye() {
|
|
|
203
203
|
async function be(e) {
|
|
204
204
|
let t;
|
|
205
205
|
try {
|
|
206
|
-
t = await import("./chunks/renderer-
|
|
206
|
+
t = await import("./chunks/renderer-DpBGiXOg.js").then((e) => e.t);
|
|
207
207
|
} catch {
|
|
208
208
|
throw Error("[Templatical] toMjml() requires the @templatical/renderer package. Please install it.");
|
|
209
209
|
}
|
|
@@ -267,7 +267,7 @@ async function we(e) {
|
|
|
267
267
|
}), Y = n;
|
|
268
268
|
let l = {
|
|
269
269
|
getContent() {
|
|
270
|
-
return
|
|
270
|
+
return x(s.value ? s.value.getContent() : e.content ?? C());
|
|
271
271
|
},
|
|
272
272
|
setContent(t) {
|
|
273
273
|
s.value && s.value.setContent(t), e.content = t;
|
|
@@ -294,13 +294,13 @@ function $(e) {
|
|
|
294
294
|
async function Te(e) {
|
|
295
295
|
let n = typeof e.container == "string" ? document.querySelector(e.container) : e.container;
|
|
296
296
|
if (!n) throw Error(`[Templatical] Container element not found: ${e.container}`);
|
|
297
|
-
let { default: r } = await import("./chunks/CloudEditor-
|
|
297
|
+
let { default: r } = await import("./chunks/CloudEditor-CEa3Xgqh.js"), [i, o] = await Promise.all([G(e.locale ?? "en"), he(e.locale ?? "en")]), s = T(e.fonts);
|
|
298
298
|
$(n);
|
|
299
299
|
let c = q(n, e.shadowDom ?? !0), l = a(null);
|
|
300
300
|
return await new Promise((a, u) => {
|
|
301
301
|
let d = setTimeout(() => {
|
|
302
302
|
u(/* @__PURE__ */ Error("[Templatical] Cloud editor initialization timed out"));
|
|
303
|
-
},
|
|
303
|
+
}, E), f = g({ setup() {
|
|
304
304
|
return () => t(r, {
|
|
305
305
|
config: e,
|
|
306
306
|
translations: i,
|
|
@@ -320,7 +320,7 @@ async function Te(e) {
|
|
|
320
320
|
}), Q = n;
|
|
321
321
|
}), {
|
|
322
322
|
getContent() {
|
|
323
|
-
return
|
|
323
|
+
return x(l.value ? l.value.getContent() : e.content ?? C());
|
|
324
324
|
},
|
|
325
325
|
setContent(e) {
|
|
326
326
|
l.value && l.value.setContent(e);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { s as e, x as t, y as n } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/@lucide+vue@1.
|
|
2
|
+
//#region ../../node_modules/.pnpm/@lucide+vue@1.26.0_vue@3.5.40_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/shared/src/utils/isEmptyString.mjs
|
|
3
3
|
var r = (e) => e === "", i = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), a = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), o = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), s = (e) => {
|
|
4
4
|
let t = o(e);
|
|
5
5
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
@@ -18,7 +18,7 @@ function u() {
|
|
|
18
18
|
return t(l, {});
|
|
19
19
|
}
|
|
20
20
|
//#endregion
|
|
21
|
-
//#region ../../node_modules/.pnpm/@lucide+vue@1.
|
|
21
|
+
//#region ../../node_modules/.pnpm/@lucide+vue@1.26.0_vue@3.5.40_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/Icon.mjs
|
|
22
22
|
var d = ({ name: t, iconNode: o, "icon-node": l, absoluteStrokeWidth: d, "absolute-stroke-width": f, strokeWidth: p, "stroke-width": m, size: h, color: g, ..._ }, { slots: v }) => {
|
|
23
23
|
let { size: y, color: b, strokeWidth: x = 2, absoluteStrokeWidth: S = !1, class: C = "" } = u(), w = e(() => {
|
|
24
24
|
let e = r(d) || r(f) || d === !0 || f === !0 || S === !0, t = p || m || x || c["stroke-width"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./createLucideIcon-
|
|
1
|
+
import { t as e } from "./createLucideIcon-_peTZQtY.js";
|
|
2
2
|
var t = e("message-circle", [["path", {
|
|
3
3
|
d: "M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",
|
|
4
4
|
key: "1sd12s"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./createLucideIcon-
|
|
1
|
+
import { t as e } from "./createLucideIcon-_peTZQtY.js";
|
|
2
2
|
var t = e("eye", [["path", {
|
|
3
3
|
d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",
|
|
4
4
|
key: "1nclc0"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./createLucideIcon-
|
|
1
|
+
import { t as e } from "./createLucideIcon-_peTZQtY.js";
|
|
2
2
|
var t = e("send", [["path", {
|
|
3
3
|
d: "M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",
|
|
4
4
|
key: "1ffxy3"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./createLucideIcon-
|
|
1
|
+
import { t as e } from "./createLucideIcon-_peTZQtY.js";
|
|
2
2
|
var t = e("shield-check", [["path", {
|
|
3
3
|
d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
|
|
4
4
|
key: "oel41y"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./createLucideIcon-
|
|
1
|
+
import { t as e } from "./createLucideIcon-_peTZQtY.js";
|
|
2
2
|
var t = e("sparkles", [
|
|
3
3
|
["path", {
|
|
4
4
|
d: "M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",
|