@aswin.dev/editor 0.7.1 → 0.7.2
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/LICENSE +56 -0
- package/dist/{AccessibilityPanel-COL6Wm7p.js → AccessibilityPanel-EmQ19wiS.js} +1 -1
- package/dist/{AiChatSidebar-DWGPVtvC.js → AiChatSidebar-DeB0w_32.js} +38 -52
- package/dist/{AiFeatureMenu-duUFSfDf.js → AiFeatureMenu-DoLD5Cde.js} +5 -5
- package/dist/{BlockA11yBadge-Qs6HtXid.js → BlockA11yBadge-DkNbDvJA.js} +1 -1
- package/dist/{CloudEditor-CFldoCOb.js → CloudEditor-zo9PjjvY.js} +255 -248
- package/dist/{CollaboratorBar-Bw-lbt61.js → CollaboratorBar-BsXMY-8e.js} +3 -3
- package/dist/{CommentsSidebar-BaD5F53-.js → CommentsSidebar-DIWIa4rS.js} +6 -6
- package/dist/{CountdownToolbar-Dg4F8MTk.js → CountdownToolbar-BuS8p5ju.js} +2 -2
- package/dist/{DesignReferenceSidebar-BSH7uNP_.js → DesignReferenceSidebar-RDlnhL-6.js} +5 -5
- package/dist/{LoadingTrack-Ba2pfF57.js → LoadingTrack-BJ59h9ok.js} +1 -1
- package/dist/{ModuleBrowserModal-6phxZSKI.js → ModuleBrowserModal-b7HbpByz.js} +7 -7
- package/dist/{ModulePreviewCanvas-BW8L3eQX.js → ModulePreviewCanvas-D__YlOLS.js} +1 -1
- package/dist/{NumberWithSuffix-BpUzQOJt.js → NumberWithSuffix-Ca3vNY84.js} +1 -1
- package/dist/{ParagraphEditor-DNSzAB-I.js → ParagraphEditor-B1aYPO-6.js} +18 -18
- package/dist/{RichTextEditorContent-CrqPQdnk.js → RichTextEditorContent-BmEVMrkJ.js} +1 -1
- package/dist/{SaveModuleDialog-zMQTpez7.js → SaveModuleDialog-ClovqI6h.js} +3 -3
- package/dist/{SnapshotHistory-Do-A5rYU.js → SnapshotHistory-DoqtH0cw.js} +3 -3
- package/dist/{TemplateScoringPanel-CS7o62zS.js → TemplateScoringPanel-DQv2ZAiL.js} +7 -7
- package/dist/{TestEmailModal-DGj_9V1u.js → TestEmailModal-iIeYJYsj.js} +3 -3
- package/dist/{TitleEditor-C7IDnAoS.js → TitleEditor-CTDIwRF_.js} +7 -7
- package/dist/{TplModal-BAsVzcTb.js → TplModal-CBq1J1pG.js} +1 -1
- package/dist/{blockTypeIcons-C6LDKvmd.js → blockTypeIcons-QkC6f5UE.js} +1 -1
- package/dist/bundle-stats.json +7 -7
- package/dist/cdn/chunks/AccessibilityPanel-BeU8nz7A.js +97 -0
- package/dist/cdn/chunks/AccessibilityPanel-BeU8nz7A.js.map +1 -0
- package/dist/cdn/chunks/AiFeatureMenu-B2mhscyP.js +59 -0
- package/dist/cdn/chunks/AiFeatureMenu-B2mhscyP.js.map +1 -0
- package/dist/cdn/chunks/BlockA11yBadge-C4g77gF0.js +33 -0
- package/dist/cdn/chunks/BlockA11yBadge-C4g77gF0.js.map +1 -0
- package/dist/cdn/chunks/CloudEditor-Btyr0b0_.js +1183 -0
- package/dist/cdn/chunks/CloudEditor-Btyr0b0_.js.map +1 -0
- package/dist/cdn/chunks/CollaboratorBar-YBiIjiRh.js +51 -0
- package/dist/cdn/chunks/CollaboratorBar-YBiIjiRh.js.map +1 -0
- package/dist/cdn/chunks/CountdownBlock-B06UZoWe.js +93 -0
- package/dist/cdn/chunks/CountdownBlock-B06UZoWe.js.map +1 -0
- package/dist/cdn/chunks/CountdownToolbar-C9XZr33O.js +212 -0
- package/dist/cdn/chunks/CountdownToolbar-C9XZr33O.js.map +1 -0
- package/dist/cdn/chunks/ModuleBrowserModal-C2CDWKW6.js +195 -0
- package/dist/cdn/chunks/ModuleBrowserModal-C2CDWKW6.js.map +1 -0
- package/dist/cdn/chunks/ModulePreviewCanvas-Drt8Evai.js +109 -0
- package/dist/cdn/chunks/ModulePreviewCanvas-Drt8Evai.js.map +1 -0
- package/dist/cdn/chunks/NumberWithSuffix-Ty1bp9vB.js +423 -0
- package/dist/cdn/chunks/NumberWithSuffix-Ty1bp9vB.js.map +1 -0
- package/dist/cdn/chunks/ParagraphEditor-BA1WbHI7.js +544 -0
- package/dist/cdn/chunks/ParagraphEditor-BA1WbHI7.js.map +1 -0
- package/dist/cdn/chunks/RichTextEditorContent-BtWCA_Oc.js +106 -0
- package/dist/cdn/chunks/RichTextEditorContent-BtWCA_Oc.js.map +1 -0
- package/dist/cdn/chunks/SaveModuleDialog-AwL0tkCV.js +119 -0
- package/dist/cdn/chunks/SaveModuleDialog-AwL0tkCV.js.map +1 -0
- package/dist/cdn/chunks/TitleEditor-DbSyeixS.js +171 -0
- package/dist/cdn/chunks/TitleEditor-DbSyeixS.js.map +1 -0
- package/dist/cdn/chunks/blockTypeIcons-pQIkxJzc.js +23 -0
- package/dist/cdn/chunks/blockTypeIcons-pQIkxJzc.js.map +1 -0
- package/dist/cdn/chunks/de-Ce-LbJ2J.js +89 -0
- package/dist/cdn/chunks/de-Ce-LbJ2J.js.map +1 -0
- package/dist/cdn/chunks/de-RQrZR56a.js +209 -0
- package/dist/cdn/chunks/de-RQrZR56a.js.map +1 -0
- package/dist/cdn/chunks/de-_tooy3Q8.js +771 -0
- package/dist/cdn/chunks/de-_tooy3Q8.js.map +1 -0
- package/dist/cdn/chunks/draggable-C-1_gch3.js +11572 -0
- package/dist/cdn/chunks/draggable-C-1_gch3.js.map +1 -0
- package/dist/cdn/chunks/emojiData-EMFlj6FJ.js +19 -0
- package/dist/cdn/chunks/emojiData-EMFlj6FJ.js.map +1 -0
- package/dist/cdn/chunks/en-Bl1ecfRF.js +209 -0
- package/dist/cdn/chunks/en-Bl1ecfRF.js.map +1 -0
- package/dist/cdn/chunks/en-CNqLoIm9.js +771 -0
- package/dist/cdn/chunks/en-CNqLoIm9.js.map +1 -0
- package/dist/cdn/chunks/en-DiCWK5fG.js +89 -0
- package/dist/cdn/chunks/en-DiCWK5fG.js.map +1 -0
- package/dist/cdn/chunks/extensions-BVKQw_sp.js +598 -0
- package/dist/cdn/chunks/extensions-BVKQw_sp.js.map +1 -0
- package/dist/cdn/chunks/features-DIBEo4xl.js +7913 -0
- package/dist/cdn/chunks/features-DIBEo4xl.js.map +1 -0
- package/dist/cdn/chunks/icons-C1Gg-ov-.js +992 -0
- package/dist/cdn/chunks/icons-C1Gg-ov-.js.map +1 -0
- package/dist/cdn/chunks/liquid.browser-lQbkge2E.js +3279 -0
- package/dist/cdn/chunks/liquid.browser-lQbkge2E.js.map +1 -0
- package/dist/cdn/chunks/media-library-BTF_Ko70.js +6014 -0
- package/dist/cdn/chunks/media-library-BTF_Ko70.js.map +1 -0
- package/dist/cdn/chunks/pusher-CDbNlZBE.js +2508 -0
- package/dist/cdn/chunks/pusher-CDbNlZBE.js.map +1 -0
- package/dist/cdn/chunks/quality-C5AmotmP.js +1456 -0
- package/dist/cdn/chunks/quality-C5AmotmP.js.map +1 -0
- package/dist/cdn/chunks/readableTextColor-DhoK4XiZ.js +32 -0
- package/dist/cdn/chunks/readableTextColor-DhoK4XiZ.js.map +1 -0
- package/dist/cdn/chunks/renderer-D0L44Vlp.js +642 -0
- package/dist/cdn/chunks/renderer-D0L44Vlp.js.map +1 -0
- package/dist/cdn/chunks/rolldown-runtime-BNuo_Jkg.js +20 -0
- package/dist/cdn/chunks/src-RKexlYjA.js +497 -0
- package/dist/cdn/chunks/src-RKexlYjA.js.map +1 -0
- package/dist/cdn/chunks/styleConstants-PgmvNBzQ.js +57 -0
- package/dist/cdn/chunks/styleConstants-PgmvNBzQ.js.map +1 -0
- package/dist/cdn/chunks/styles-CQR6ed13.js +4976 -0
- package/dist/cdn/chunks/styles-CQR6ed13.js.map +1 -0
- package/dist/cdn/chunks/tiptap-CDzAbF2j.js +14654 -0
- package/dist/cdn/chunks/tiptap-CDzAbF2j.js.map +1 -0
- package/dist/cdn/editor.css +2 -0
- package/dist/cdn/editor.js +338 -0
- package/dist/cdn/editor.js.map +1 -0
- package/dist/{cloud-6ZmAvF0j.js → cloud-DJG4tb4_.js} +1 -1
- package/dist/{de-DWcgp-7T.js → de-2LEvILeZ.js} +40 -0
- package/dist/{dist-DtiDUrX-.js → dist-BHAeXaUY.js} +1 -1
- package/dist/{dist-BUzw1buG.js → dist-BSJvAvH3.js} +1 -1
- package/dist/{dist-COSzWQUs.js → dist-BeFnymxK.js} +1 -1
- package/dist/dist-Bmir0gYb.js +1167 -0
- package/dist/{dist-C3T2AKtB.js → dist-BvPgo-UK.js} +1 -1
- package/dist/{dist-C9ckKEZL.js → dist-CPVBKMmd.js} +1 -1
- package/dist/{dist-BadNx4qo.js → dist-Df4ie7vZ.js} +1 -1
- package/dist/{dist-CBItRG-Z.js → dist-DxOoemkW.js} +1 -1
- package/dist/{dist-Dzt5foyL.js → dist-HEQ52gTJ.js} +1 -1
- package/dist/{dist-BZyY-SS4.js → dist-b-XUqAoF.js} +1 -1
- package/dist/{dist-Bz3M4RXG.js → dist-kZfaVUpW.js} +3 -3
- package/dist/{dist-BesOh2mk.js → dist-wfAedlzi.js} +1 -1
- package/dist/{en-Cxd4fhNm.js → en-D2RU2Poj.js} +40 -0
- package/dist/{extensions-D__hOlV1.js → extensions-BQ1xXx3d.js} +21 -21
- package/dist/index.d.ts +17 -6
- package/dist/style.css +1 -1
- package/dist/{styles-B4tjX5SP.js → styles-CavWjvol.js} +1573 -1310
- package/dist/templatical-editor.js +161 -132
- package/dist/undo-2-Cg8I7obC.js +16 -0
- package/dist/{useEditorCore-wslttMH-.js → useEditorCore-BGnzcT7p.js} +37 -37
- package/dist/{useMergeTag-DX0XG5V9.js → useMergeTag-CfuZq2fF.js} +3 -3
- package/package.json +12 -12
- package/dist/dist-C04s_fLA.js +0 -563
- /package/dist/{CountdownBlock-DaYGxKqo.js → CountdownBlock-BCi7-DAM.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-BVAJ4lgT.js → _plugin-vue_export-helper-Bwh4ceeO.js} +0 -0
- /package/dist/{de-GOtR9DwW.js → de-D2npYjrZ.js} +0 -0
- /package/dist/{dist-DXa1uAMh.js → dist-DvHLtWVP.js} +0 -0
- /package/dist/{emojiData-DrBuvEoP.js → emojiData-DvQBBzmO.js} +0 -0
- /package/dist/{en-dFFQVzNn.js → en-ib-4h3_o.js} +0 -0
- /package/dist/{formatRelativeTime-BhhO8yCl.js → formatRelativeTime-CFDZnEIs.js} +0 -0
- /package/dist/{liquid.browser-BvCyLQII.js → liquid.browser-7Rv0QDiO.js} +0 -0
- /package/dist/{readableTextColor-DVuzNX1y.js → readableTextColor-C_9OpzBw.js} +0 -0
- /package/dist/{scan-line-CzfFJO1o.js → scan-line-DlghmhNf.js} +0 -0
- /package/dist/{send-D2eSo4GH.js → send-DDdhIRj8.js} +0 -0
- /package/dist/{shield-check-jkpgcC0-.js → shield-check-OSQ-JVTX.js} +0 -0
- /package/dist/{sparkles-Chm5CZfb.js → sparkles-BN4a-CoF.js} +0 -0
- /package/dist/{styleConstants-34eUKPOZ.js → styleConstants-wWRbcuEK.js} +0 -0
- /package/dist/{text-align-start-CzBnJsW8.js → text-align-start-D1weisjS.js} +0 -0
- /package/dist/{trash-2-CtK2apEH.js → trash-2-CMWvQ5KX.js} +0 -0
- /package/dist/{triangle-alert-KpDVNbpn.js → triangle-alert-DyidRNX_.js} +0 -0
- /package/dist/{useCloudI18n-DOKSZql1.js → useCloudI18n-BTTNBk5i.js} +0 -0
- /package/dist/{x-BkaOMosX.js → x-CgIhNcT9.js} +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { a as e, i as t, n, r, t as i } from "./rolldown-runtime-BZGGJVDF.js";
|
|
2
2
|
import { $ as a, A as o, At as s, C as c, Ct as l, D as u, Dt as d, Et as f, F as p, Ft as m, G as h, I as g, It as _, J as v, Mt as y, N as b, Nt as x, Ot as S, P as C, Pt as w, Q as T, R as E, S as D, St as O, Tt as ee, U as te, V as k, W as ne, Y as re, Z as ie, _ as ae, _t as oe, a as se, b as ce, bt as le, ct as ue, d as A, dt as de, et as j, f as fe, ft as pe, g as me, gt as he, h as M, ht as ge, j as _e, jt as N, k as ve, kt as ye, l as be, lt as xe, m as P, mt as Se, nt as Ce, o as we, ot as Te, pt as Ee, q as De, r as Oe, st as F, u as ke, ut as Ae, v as I, vt as je, wt as Me, x as L, xt as Ne, yt as Pe } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
3
|
-
import {
|
|
3
|
+
import { A as Fe, C as Ie, D as Le, E as Re, F as ze, L as Be, R as Ve, S as He, T as Ue, _ as We, b as Ge, c as Ke, d as qe, g as Je, h as Ye, l as Xe, p as Ze, s as Qe, t as $e, u as et, v as tt, w as nt, x as rt, y as it, z as at } from "./dist-Bmir0gYb.js";
|
|
4
4
|
import { d as ot, i as st, l as ct, n as lt, r as ut, s as dt, u as ft } from "./dist-CivF9P8b.js";
|
|
5
5
|
import { A as pt, C as mt, D as ht, O as gt, S as _t, _ as vt, a as yt, b as bt, c as xt, d as St, f as Ct, g as wt, h as Tt, k as Et, m as Dt, o as Ot, p as kt, r as At, s as jt, t as Mt, v as Nt, x as Pt, y as Ft } from "./keys-CvX8D-8C.js";
|
|
6
6
|
import { t as It } from "./useI18n-C2xQZ6K9.js";
|
|
7
7
|
import { t as Lt } from "./createLucideIcon-ClREiSx3.js";
|
|
8
8
|
import { t as Rt } from "./message-circle-B39qAHxs.js";
|
|
9
|
-
import { t as zt } from "./trash-2-
|
|
10
|
-
import { t as Bt } from "./triangle-alert-
|
|
11
|
-
import { t as Vt } from "./LoadingTrack-
|
|
12
|
-
import { t as Ht } from "./_plugin-vue_export-helper-
|
|
13
|
-
import "./useCloudI18n-
|
|
14
|
-
import { t as Ut } from "./useMergeTag-
|
|
9
|
+
import { t as zt } from "./trash-2-CMWvQ5KX.js";
|
|
10
|
+
import { t as Bt } from "./triangle-alert-DyidRNX_.js";
|
|
11
|
+
import { t as Vt } from "./LoadingTrack-BJ59h9ok.js";
|
|
12
|
+
import { t as Ht } from "./_plugin-vue_export-helper-Bwh4ceeO.js";
|
|
13
|
+
import "./useCloudI18n-BTTNBk5i.js";
|
|
14
|
+
import { t as Ut } from "./useMergeTag-CfuZq2fF.js";
|
|
15
15
|
//#region ../core/dist/index.js
|
|
16
16
|
v();
|
|
17
17
|
function Wt(e) {
|
|
18
18
|
let t = T({
|
|
19
|
-
content: ze(e.content ??
|
|
19
|
+
content: ze(e.content ?? Ze(e.defaultFontFamily, e.templateDefaults)),
|
|
20
20
|
selectedBlockId: null,
|
|
21
21
|
viewport: "desktop",
|
|
22
22
|
darkMode: !1,
|
|
@@ -270,14 +270,14 @@ function Jt(e) {
|
|
|
270
270
|
function Yt(e) {
|
|
271
271
|
let { addBlock: t, removeBlock: n, updateBlock: r, selectBlock: i } = e;
|
|
272
272
|
function a(n, r, a) {
|
|
273
|
-
let o =
|
|
273
|
+
let o = Ke(n, e.blockDefaults);
|
|
274
274
|
return t(o, r, a), i(o.id), o;
|
|
275
275
|
}
|
|
276
276
|
function o(e, n, r) {
|
|
277
277
|
let a = JSON.parse(JSON.stringify(e));
|
|
278
|
-
return a.id =
|
|
278
|
+
return a.id = Le(), a.type === "section" && (a.children = a.children.map((e) => e.map((e) => {
|
|
279
279
|
let t = JSON.parse(JSON.stringify(e));
|
|
280
|
-
return t.id =
|
|
280
|
+
return t.id = Le(), t;
|
|
281
281
|
}))), t(a, n, r), i(a.id), a;
|
|
282
282
|
}
|
|
283
283
|
function s(e) {
|
|
@@ -610,7 +610,7 @@ function dn() {
|
|
|
610
610
|
function n(t, n) {
|
|
611
611
|
let r = `custom:${t.type}`, i = {
|
|
612
612
|
component: n,
|
|
613
|
-
createBlock: () =>
|
|
613
|
+
createBlock: () => qe(t),
|
|
614
614
|
sidebarItem: {
|
|
615
615
|
type: r,
|
|
616
616
|
label: t.name,
|
|
@@ -648,7 +648,7 @@ function dn() {
|
|
|
648
648
|
let t = o(e.customType);
|
|
649
649
|
if (!t) return s("Block definition not found");
|
|
650
650
|
try {
|
|
651
|
-
let { Liquid: n } = await import("./liquid.browser-
|
|
651
|
+
let { Liquid: n } = await import("./liquid.browser-7Rv0QDiO.js");
|
|
652
652
|
return await new n({
|
|
653
653
|
strictVariables: !1,
|
|
654
654
|
strictFilters: !1
|
|
@@ -677,22 +677,22 @@ var fn = [
|
|
|
677
677
|
{
|
|
678
678
|
type: "section",
|
|
679
679
|
label: "Section",
|
|
680
|
-
createBlock:
|
|
680
|
+
createBlock: rt
|
|
681
681
|
},
|
|
682
682
|
{
|
|
683
683
|
type: "title",
|
|
684
684
|
label: "Title",
|
|
685
|
-
createBlock:
|
|
685
|
+
createBlock: Ue
|
|
686
686
|
},
|
|
687
687
|
{
|
|
688
688
|
type: "paragraph",
|
|
689
689
|
label: "Paragraph",
|
|
690
|
-
createBlock:
|
|
690
|
+
createBlock: Ge
|
|
691
691
|
},
|
|
692
692
|
{
|
|
693
693
|
type: "image",
|
|
694
694
|
label: "Image",
|
|
695
|
-
createBlock:
|
|
695
|
+
createBlock: We
|
|
696
696
|
},
|
|
697
697
|
{
|
|
698
698
|
type: "button",
|
|
@@ -702,37 +702,37 @@ var fn = [
|
|
|
702
702
|
{
|
|
703
703
|
type: "input",
|
|
704
704
|
label: "Input",
|
|
705
|
-
createBlock:
|
|
705
|
+
createBlock: tt
|
|
706
706
|
},
|
|
707
707
|
{
|
|
708
708
|
type: "divider",
|
|
709
709
|
label: "Divider",
|
|
710
|
-
createBlock:
|
|
710
|
+
createBlock: Ye
|
|
711
711
|
},
|
|
712
712
|
{
|
|
713
713
|
type: "video",
|
|
714
714
|
label: "Video",
|
|
715
|
-
createBlock:
|
|
715
|
+
createBlock: Re
|
|
716
716
|
},
|
|
717
717
|
{
|
|
718
718
|
type: "social",
|
|
719
719
|
label: "Social",
|
|
720
|
-
createBlock:
|
|
720
|
+
createBlock: He
|
|
721
721
|
},
|
|
722
722
|
{
|
|
723
723
|
type: "menu",
|
|
724
724
|
label: "Menu",
|
|
725
|
-
createBlock:
|
|
725
|
+
createBlock: it
|
|
726
726
|
},
|
|
727
727
|
{
|
|
728
728
|
type: "table",
|
|
729
729
|
label: "Table",
|
|
730
|
-
createBlock:
|
|
730
|
+
createBlock: nt
|
|
731
731
|
},
|
|
732
732
|
{
|
|
733
733
|
type: "spacer",
|
|
734
734
|
label: "Spacer",
|
|
735
|
-
createBlock:
|
|
735
|
+
createBlock: Ie
|
|
736
736
|
},
|
|
737
737
|
{
|
|
738
738
|
type: "html",
|
|
@@ -742,7 +742,7 @@ var fn = [
|
|
|
742
742
|
{
|
|
743
743
|
type: "countdown",
|
|
744
744
|
label: "Countdown",
|
|
745
|
-
createBlock:
|
|
745
|
+
createBlock: et
|
|
746
746
|
}
|
|
747
747
|
];
|
|
748
748
|
function pn(e, t) {
|
|
@@ -1103,7 +1103,7 @@ function Ln() {
|
|
|
1103
1103
|
r = !0;
|
|
1104
1104
|
}), k(e, async (e) => {
|
|
1105
1105
|
if (e && n.value.length === 0) {
|
|
1106
|
-
let { emojiCategories: e } = await import("./emojiData-
|
|
1106
|
+
let { emojiCategories: e } = await import("./emojiData-DvQBBzmO.js");
|
|
1107
1107
|
if (r) return;
|
|
1108
1108
|
n.value = e;
|
|
1109
1109
|
}
|
|
@@ -1330,7 +1330,7 @@ function Un(e) {
|
|
|
1330
1330
|
//#endregion
|
|
1331
1331
|
//#region src/composables/useRichTextEditor.ts
|
|
1332
1332
|
function Wn(e) {
|
|
1333
|
-
let t = u(Dt, null), { mergeTags: n, canRequestMergeTag: r, isRequesting: i, requestMergeTag: a, syntax: s, autocomplete: c } = Ut(), l = u(gt, null), d = (re(l) ? l.value : l)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", f =
|
|
1333
|
+
let t = u(Dt, null), { mergeTags: n, canRequestMergeTag: r, isRequesting: i, requestMergeTag: a, syntax: s, autocomplete: c } = Ut(), l = u(gt, null), d = (re(l) ? l.value : l)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", f = Fe(s), p = Ce(null), { showLinkDialog: m, linkUrl: h, linkDialogRef: g, openLinkDialog: _, insertLink: v, removeLink: y, closeLinkDialog: b, handleLinkKeydown: x } = Un(p), { start: S, stop: C } = ct(() => p.value?.commands.focus("end"), 0, { immediate: !1 }), w = Ce(null), T = j(!0), E = j(null), D = !1;
|
|
1334
1334
|
async function O() {
|
|
1335
1335
|
E.value = null, T.value = !0;
|
|
1336
1336
|
try {
|
|
@@ -1539,7 +1539,7 @@ var Gn = { class: "tpl:w-full" }, Kn = {
|
|
|
1539
1539
|
display: "block",
|
|
1540
1540
|
margin: n.block.align === "center" ? "0 auto" : void 0,
|
|
1541
1541
|
marginLeft: n.block.align === "right" ? "auto" : void 0
|
|
1542
|
-
})), f = P(() =>
|
|
1542
|
+
})), f = P(() => Qe(n.block.src, a));
|
|
1543
1543
|
return (t, n) => (b(), I("div", {
|
|
1544
1544
|
class: "tpl:w-full",
|
|
1545
1545
|
style: N(l.value)
|
|
@@ -1712,7 +1712,7 @@ var Gn = { class: "tpl:w-full" }, Kn = {
|
|
|
1712
1712
|
//#endregion
|
|
1713
1713
|
//#region src/composables/useEditableTextBlock.ts
|
|
1714
1714
|
function Er(e) {
|
|
1715
|
-
let t = u(Ft, []), { syntax: n } = Ut(), r = P(() => Be(
|
|
1715
|
+
let t = u(Ft, []), { syntax: n } = Ut(), r = P(() => Be(Ve(e(), t), n)), i = j(!1), a = j(null), { top: o, left: s } = lt(a), c = P(() => ({
|
|
1716
1716
|
top: o.value - 8,
|
|
1717
1717
|
left: s.value
|
|
1718
1718
|
}));
|
|
@@ -1740,7 +1740,7 @@ var Dr = ["innerHTML"], Or = /* @__PURE__ */ c({
|
|
|
1740
1740
|
viewport: {}
|
|
1741
1741
|
},
|
|
1742
1742
|
setup(e) {
|
|
1743
|
-
let t = e, n = D(() => import("./ParagraphEditor-
|
|
1743
|
+
let t = e, n = D(() => import("./ParagraphEditor-B1aYPO-6.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = Er(() => t.block.content);
|
|
1744
1744
|
return (t, l) => (b(), I("div", {
|
|
1745
1745
|
ref_key: "blockRef",
|
|
1746
1746
|
ref: i,
|
|
@@ -1804,7 +1804,7 @@ var jr = ["data-block-id", "data-block-type"], Mr = ["aria-label"], Nr = [
|
|
|
1804
1804
|
},
|
|
1805
1805
|
emits: ["select"],
|
|
1806
1806
|
setup(e, { emit: t }) {
|
|
1807
|
-
let n = D(() => import("./BlockA11yBadge-
|
|
1807
|
+
let n = D(() => import("./BlockA11yBadge-DkNbDvJA.js")), r = e, i = t, { t: a, format: o } = It(), c = u(Nt, null), l = j(null), d = P(() => c?.liftedBlockId.value === r.block.id), f = P(() => d.value ? o(a.blockActions.dragLifted, { block: r.block.type }) : a.blockActions.drag);
|
|
1808
1808
|
async function p() {
|
|
1809
1809
|
await ve(), l.value?.focus();
|
|
1810
1810
|
}
|
|
@@ -1939,9 +1939,9 @@ var jr = ["data-block-id", "data-block-type"], Mr = ["aria-label"], Nr = [
|
|
|
1939
1939
|
viewport: {}
|
|
1940
1940
|
},
|
|
1941
1941
|
setup(e) {
|
|
1942
|
-
let t = e, n = D(() => import("./TitleEditor-
|
|
1942
|
+
let t = e, n = D(() => import("./TitleEditor-CTDIwRF_.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = Er(() => t.block.content), l = P(() => {
|
|
1943
1943
|
let e = {
|
|
1944
|
-
fontSize: `${
|
|
1944
|
+
fontSize: `${$e[t.block.level]}px`,
|
|
1945
1945
|
color: t.block.color,
|
|
1946
1946
|
textAlign: t.block.textAlign
|
|
1947
1947
|
};
|
|
@@ -9369,13 +9369,13 @@ var Qf = ["src", "alt"], $f = {
|
|
|
9369
9369
|
viewport: {}
|
|
9370
9370
|
},
|
|
9371
9371
|
setup(e) {
|
|
9372
|
-
let t = e, { t: n } = It(), { syntax: r } = Ut(), i = P(() =>
|
|
9372
|
+
let t = e, { t: n } = It(), { syntax: r } = Ut(), i = P(() => Qe(t.block.url, r) || Qe(t.block.thumbnailUrl, r)), a = P(() => i.value ? null : Zf(t.block.url, t.block.thumbnailUrl)), o = P(() => ({ textAlign: t.block.align })), s = P(() => ({
|
|
9373
9373
|
maxWidth: "100%",
|
|
9374
9374
|
width: t.block.width === "full" ? "100%" : `${t.block.width}px`,
|
|
9375
9375
|
display: "block",
|
|
9376
9376
|
margin: t.block.align === "center" ? "0 auto" : void 0,
|
|
9377
9377
|
marginLeft: t.block.align === "right" ? "auto" : void 0
|
|
9378
|
-
})), c = P(() =>
|
|
9378
|
+
})), c = P(() => Qe(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
|
|
9379
9379
|
return (t, r) => (b(), I("div", {
|
|
9380
9380
|
class: "tpl:w-full",
|
|
9381
9381
|
style: N(o.value)
|
|
@@ -9436,7 +9436,7 @@ var Qf = ["src", "alt"], $f = {
|
|
|
9436
9436
|
table: Jf,
|
|
9437
9437
|
spacer: Hf,
|
|
9438
9438
|
html: or,
|
|
9439
|
-
countdown: D(() => import("./CountdownBlock-
|
|
9439
|
+
countdown: D(() => import("./CountdownBlock-BCi7-DAM.js").then((e) => e.n))
|
|
9440
9440
|
};
|
|
9441
9441
|
function op(e) {
|
|
9442
9442
|
let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: a, format: o } = It(r);
|
|
@@ -9484,7 +9484,7 @@ function op(e) {
|
|
|
9484
9484
|
});
|
|
9485
9485
|
}
|
|
9486
9486
|
ut(document, "keydown", v), C(gt, r), C(Dt, t), C(Tt, en(n.editorType)), C(vt, u), C(yt, d), C(St, f), C(wt, i), C(ht, l), C(Et, s), C(Ot, n.blockDefaults), C(jt, g), C(Ct, n.customBlocks ?? []);
|
|
9487
|
-
let y =
|
|
9487
|
+
let y = at(n.mergeTags?.syntax);
|
|
9488
9488
|
C(Ft, n.mergeTags?.tags ?? []), C(Pt, y), C(mt, n.mergeTags?.onRequest ?? null), C(bt, n.mergeTags?.autocomplete !== !1), C(_t, n.onRequestMedia ?? null), C(kt, n.displayConditions?.conditions ?? []), C(At, n.displayConditions?.allowCustom ?? !1), C(xt, e.capabilities ?? {}), C(Nt, h);
|
|
9489
9489
|
let b = n.accessibility?.disabled === !0 ? null : tn({
|
|
9490
9490
|
content: t.content,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { D as e, et as t } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
-
import {
|
|
2
|
+
import { N as n, i as r, k as i } from "./dist-Bmir0gYb.js";
|
|
3
3
|
import { C as a, b as o, x as s, y as c } from "./keys-CvX8D-8C.js";
|
|
4
4
|
//#region src/composables/useMergeTag.ts
|
|
5
5
|
function l() {
|
|
6
|
-
let l = e(c, []), u = e(s,
|
|
6
|
+
let l = e(c, []), u = e(s, r.liquid), d = e(a, null), f = e(o, !0), p = t(!1);
|
|
7
7
|
function m(e) {
|
|
8
8
|
return n(e, u);
|
|
9
9
|
}
|
|
10
10
|
function h(e) {
|
|
11
|
-
return
|
|
11
|
+
return i(e, l);
|
|
12
12
|
}
|
|
13
13
|
async function g() {
|
|
14
14
|
if (!d) return null;
|
package/package.json
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aswin.dev/editor",
|
|
3
3
|
"description": "Vue 3 visual drag-and-drop email editor powered by Templatical",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.2",
|
|
5
5
|
"bugs": "https://github.com/templatical/sdk/issues",
|
|
6
6
|
"devDependencies": {
|
|
7
7
|
"@lucide/vue": "^1.11.0",
|
|
8
|
-
"@aswin.dev/core": "workspace:*",
|
|
9
|
-
"@aswin.dev/quality": "workspace:*",
|
|
10
|
-
"@aswin.dev/types": "workspace:*",
|
|
11
8
|
"@tiptap/core": "^3.22.4",
|
|
12
9
|
"@tiptap/extension-color": "^3.22.4",
|
|
13
10
|
"@tiptap/extension-font-family": "^3.22.4",
|
|
@@ -35,7 +32,10 @@
|
|
|
35
32
|
"vitest": "^4.1.5",
|
|
36
33
|
"vue": "^3.5.33",
|
|
37
34
|
"vue-tsc": "^3.2.7",
|
|
38
|
-
"vuedraggable": "^4.1.0"
|
|
35
|
+
"vuedraggable": "^4.1.0",
|
|
36
|
+
"@aswin.dev/core": "0.7.2",
|
|
37
|
+
"@aswin.dev/types": "0.7.2",
|
|
38
|
+
"@aswin.dev/quality": "0.7.2"
|
|
39
39
|
},
|
|
40
40
|
"exports": {
|
|
41
41
|
".": {
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
"license": "SEE LICENSE IN LICENSE",
|
|
64
64
|
"module": "./dist/templatical-editor.js",
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@aswin.dev/media-library": "
|
|
67
|
-
"@aswin.dev/quality": "
|
|
68
|
-
"@aswin.dev/renderer": "
|
|
66
|
+
"@aswin.dev/media-library": "0.7.2",
|
|
67
|
+
"@aswin.dev/quality": "0.7.2",
|
|
68
|
+
"@aswin.dev/renderer": "0.7.2"
|
|
69
69
|
},
|
|
70
70
|
"peerDependenciesMeta": {
|
|
71
71
|
"@aswin.dev/renderer": {
|
|
@@ -86,6 +86,8 @@
|
|
|
86
86
|
"url": "git+https://github.com/templatical/sdk.git",
|
|
87
87
|
"directory": "packages/editor"
|
|
88
88
|
},
|
|
89
|
+
"type": "module",
|
|
90
|
+
"types": "./dist/index.d.ts",
|
|
89
91
|
"scripts": {
|
|
90
92
|
"build": "vite build",
|
|
91
93
|
"build:all": "vite build && vite build --config vite.cdn.config.ts",
|
|
@@ -93,7 +95,5 @@
|
|
|
93
95
|
"test": "vitest run",
|
|
94
96
|
"typecheck": "vue-tsc --noEmit",
|
|
95
97
|
"verify:pack": "node scripts/verify-pack.mjs"
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
"types": "./dist/index.d.ts"
|
|
99
|
-
}
|
|
98
|
+
}
|
|
99
|
+
}
|