@templatical/editor 0.8.1 → 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/{AiChatSidebar-B74X6tIx.js → AiChatSidebar-CXpsSTbt.js} +13 -13
- package/dist/{AiFeatureMenu-BPOVM_Ou.js → AiFeatureMenu-De9ow6Ej.js} +7 -7
- package/dist/{BlockIssueBadge-DJTiT1eF.js → BlockIssueBadge-FEuyG1p0.js} +5 -5
- package/dist/{CloudEditor-wAkx8TH_.js → CloudEditor-Ccoru8Up.js} +19 -19
- package/dist/{CollaboratorBar-DIr5ZUv9.js → CollaboratorBar-CmHq6XiL.js} +4 -4
- package/dist/{CommentsSidebar-Qvppl-DR.js → CommentsSidebar-DaWP5ZGl.js} +12 -12
- package/dist/{CountdownBlock-D0IiMliC.js → CountdownBlock-C51M6s-J.js} +3 -3
- package/dist/{CountdownToolbar-BVVT8U5C.js → CountdownToolbar-C2QkG8S0.js} +3 -3
- package/dist/{DesignReferenceSidebar-ucgtoDll.js → DesignReferenceSidebar-BwIRFmpA.js} +9 -9
- package/dist/{IssuesPanel-XVdvrgmq.js → IssuesPanel-B6ukjc1i.js} +8 -8
- package/dist/{LoadingTrack-CFkDkjBb.js → LoadingTrack-CZ6tO326.js} +1 -1
- package/dist/{ModuleBrowserModal-VqGNisDp.js → ModuleBrowserModal-0n6DoZtA.js} +11 -11
- package/dist/{ModulePreviewCanvas-DmzW6I_9.js → ModulePreviewCanvas-DEtTEvMM.js} +3 -3
- package/dist/{NumberWithSuffix-n-cr7lpU.js → NumberWithSuffix-wOM0319c.js} +3 -3
- package/dist/{ParagraphEditor-BQTPI8j8.js → ParagraphEditor-PQZp1plL.js} +25 -25
- package/dist/{RichTextEditorContent-Cu9NEkKd.js → RichTextEditorContent-C02UzFoS.js} +6 -6
- package/dist/{SaveModuleDialog-DhgHOGgX.js → SaveModuleDialog-WWMn87Oi.js} +7 -7
- package/dist/{SnapshotHistory-DJOsWv4i.js → SnapshotHistory-Dy_Iy7VG.js} +9 -9
- package/dist/{TemplateScoringPanel-BzDVdfOx.js → TemplateScoringPanel-BpQgtaDl.js} +14 -14
- package/dist/{TestEmailModal-Dqj50aHe.js → TestEmailModal--4EVFj1A.js} +5 -5
- package/dist/{TitleEditor-PQYXfY6W.js → TitleEditor-C6z6Jzeg.js} +12 -12
- package/dist/{TplModal-Dy6RXBV_.js → TplModal-D5xlYbls.js} +4 -4
- package/dist/{blockTypeIcons-qnUeTls5.js → blockTypeIcons-jZR-IBPY.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-Cr6_Q9Zv.js → AiFeatureMenu-8gbvVwXD.js} +3 -3
- package/dist/cdn/chunks/{AiFeatureMenu-Cr6_Q9Zv.js.map → AiFeatureMenu-8gbvVwXD.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-D0_mYpkl.js → BlockIssueBadge-CYoY-wyI.js} +3 -3
- package/dist/cdn/chunks/{BlockIssueBadge-D0_mYpkl.js.map → BlockIssueBadge-CYoY-wyI.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-BtAkuQB4.js → CloudEditor-DGAV0qxk.js} +8 -8
- package/dist/cdn/chunks/{CloudEditor-BtAkuQB4.js.map → CloudEditor-DGAV0qxk.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-C-P00I9l.js → CollaboratorBar-BrzkrQJM.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-C-P00I9l.js.map → CollaboratorBar-BrzkrQJM.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-BEWsiqgw.js → CountdownBlock-BSEKrpZY.js} +3 -3
- package/dist/cdn/chunks/{CountdownBlock-BEWsiqgw.js.map → CountdownBlock-BSEKrpZY.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CdjFGEI7.js → CountdownToolbar-DME9toD5.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-CdjFGEI7.js.map → CountdownToolbar-DME9toD5.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DJOLYNAJ.js → IssuesPanel-BqGOXisb.js} +4 -4
- package/dist/cdn/chunks/{IssuesPanel-DJOLYNAJ.js.map → IssuesPanel-BqGOXisb.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-hnbUUl8w.js → ModuleBrowserModal-Bz2oCRS9.js} +6 -6
- package/dist/cdn/chunks/{ModuleBrowserModal-hnbUUl8w.js.map → ModuleBrowserModal-Bz2oCRS9.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-_DoUZGQh.js → ModulePreviewCanvas-8i2U3rd6.js} +3 -3
- package/dist/cdn/chunks/{ModulePreviewCanvas-_DoUZGQh.js.map → ModulePreviewCanvas-8i2U3rd6.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-ryhWFnCJ.js → NumberWithSuffix-C6HZCvvh.js} +3 -3
- package/dist/cdn/chunks/{NumberWithSuffix-ryhWFnCJ.js.map → NumberWithSuffix-C6HZCvvh.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-BtzinrI_.js → ParagraphEditor-DfKVmv1W.js} +19 -19
- package/dist/cdn/chunks/{ParagraphEditor-BtzinrI_.js.map → ParagraphEditor-DfKVmv1W.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-CRlcjuMH.js → RichTextEditorContent-B-HY9asd.js} +3 -3
- package/dist/cdn/chunks/{RichTextEditorContent-CRlcjuMH.js.map → RichTextEditorContent-B-HY9asd.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-D-g-nYuL.js → SaveModuleDialog-BgwBxW_S.js} +3 -3
- package/dist/cdn/chunks/{SaveModuleDialog-D-g-nYuL.js.map → SaveModuleDialog-BgwBxW_S.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-Bzsbpajt.js → TitleEditor-C2p3SosJ.js} +9 -9
- package/dist/cdn/chunks/{TitleEditor-Bzsbpajt.js.map → TitleEditor-C2p3SosJ.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-B_klsmQ1.js → blockTypeIcons-Bck6aYVw.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-B_klsmQ1.js.map → blockTypeIcons-Bck6aYVw.js.map} +1 -1
- package/dist/cdn/chunks/de-BBEGQDsd.js.map +1 -1
- package/dist/cdn/chunks/de-DG1WWVXM.js.map +1 -1
- package/dist/cdn/chunks/de-RQrZR56a.js.map +1 -1
- package/dist/cdn/chunks/{draggable-P6QWzy4g.js → draggable-CLpL3kf8.js} +6 -6
- package/dist/cdn/chunks/draggable-CLpL3kf8.js.map +1 -0
- package/dist/cdn/chunks/emojiData-EMFlj6FJ.js.map +1 -1
- package/dist/cdn/chunks/en-BE6OV83-.js.map +1 -1
- package/dist/cdn/chunks/en-Bl1ecfRF.js.map +1 -1
- package/dist/cdn/chunks/en-CHha-_ta.js.map +1 -1
- package/dist/cdn/chunks/{extensions-DIHxPVrP.js → extensions-DdH6DxVo.js} +4 -4
- package/dist/cdn/chunks/{extensions-DIHxPVrP.js.map → extensions-DdH6DxVo.js.map} +1 -1
- package/dist/cdn/chunks/{features-BsW4aFcn.js → features-BOcQhi9B.js} +69 -48
- package/dist/cdn/chunks/features-BOcQhi9B.js.map +1 -0
- package/dist/cdn/chunks/{icons-BgPk6tUq.js → icons-BVyDCkxF.js} +12 -12
- package/dist/cdn/chunks/{icons-BgPk6tUq.js.map → icons-BVyDCkxF.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-lQbkge2E.js → liquid.browser-cpFt-Vmw.js} +674 -612
- package/dist/cdn/chunks/liquid.browser-cpFt-Vmw.js.map +1 -0
- package/dist/cdn/chunks/{media-library-C1Ue4At9.js → media-library-CPZI4Yxq.js} +6 -5
- package/dist/cdn/chunks/{media-library-C1Ue4At9.js.map → media-library-CPZI4Yxq.js.map} +1 -1
- package/dist/cdn/chunks/pt-BR-BYRTP5Ww.js.map +1 -1
- package/dist/cdn/chunks/pt-BR-CFomv2R8.js.map +1 -1
- package/dist/cdn/chunks/pt-BR-CQl2JxRp.js.map +1 -1
- package/dist/cdn/chunks/pusher-bjpcqCZG.js.map +1 -1
- package/dist/cdn/chunks/quality-Cytz80Z5.js +2140 -0
- package/dist/cdn/chunks/quality-Cytz80Z5.js.map +1 -0
- package/dist/cdn/chunks/readableTextColor-DhoK4XiZ.js.map +1 -1
- package/dist/cdn/chunks/{renderer-BdjvKDwC.js → renderer-Bsqzjvsr.js} +11 -5
- package/dist/cdn/chunks/{renderer-BdjvKDwC.js.map → renderer-Bsqzjvsr.js.map} +1 -1
- package/dist/cdn/chunks/{src-BI22RLP6.js → src-BRhJ_W0W.js} +5 -5
- package/dist/cdn/chunks/{src-BI22RLP6.js.map → src-BRhJ_W0W.js.map} +1 -1
- package/dist/cdn/chunks/styleConstants-DP1VOca8.js.map +1 -1
- package/dist/cdn/chunks/{styles-BkubbXy8.js → styles-MrOGXwzJ.js} +17 -17
- package/dist/cdn/chunks/{styles-BkubbXy8.js.map → styles-MrOGXwzJ.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-BwTCLVWl.js → tiptap-BCvhHXDe.js} +711 -692
- package/dist/cdn/chunks/tiptap-BCvhHXDe.js.map +1 -0
- package/dist/cdn/editor.js +6 -6
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-BF4bEbCU.js → check-DwVS7v3N.js} +1 -1
- package/dist/{chevron-down-4NzWtv6Y.js → chevron-down-CytfFjil.js} +1 -1
- package/dist/{circle-alert-CPIth9bC.js → circle-alert-9J8Q4fwU.js} +1 -1
- package/dist/{clock-B9-ct9r_.js → clock-CL2fYWmc.js} +1 -1
- package/dist/{cloud-k0DgeCo2.js → cloud-DHsOqOnH.js} +1 -1
- package/dist/{createLucideIcon-Di4mqmGn.js → createLucideIcon-DTECxBv6.js} +4 -4
- package/dist/{dist-DVwOAodp.js → dist-3RAjjDZq.js} +2 -2
- package/dist/{dist-hfu7I2rO.js → dist-B5FKze93.js} +375 -353
- package/dist/dist-BWVK8w_m.js +5 -0
- package/dist/{dist-CISFttkF.js → dist-BjSjVZRA.js} +2 -2
- package/dist/{dist-DD-9hatO.js → dist-BoGj0ys1.js} +8 -8
- package/dist/{dist-BzRLLpfq.js → dist-CkhqaMca.js} +6 -5
- package/dist/{dist-U5guDm2w.js → dist-D8IxYzaU.js} +125 -125
- package/dist/{dist-B2jcQhv8.js → dist-DPiqL9q5.js} +17 -17
- package/dist/{dist-v8h02hhE.js → dist-DgD8K8y0.js} +2 -2
- package/dist/{dist-DxD1kSdH.js → dist-DiYYRj9J.js} +22 -48
- package/dist/{dist-CQQS9SRN.js → dist-DpF3BN6Y.js} +85 -62
- package/dist/dist-UekZXGFH.js +5 -0
- package/dist/{dist-DUvhjQ2-.js → dist-qFGe50Kc.js} +2 -2
- package/dist/{extensions-C-FpnfJn.js → extensions-BTheidN4.js} +19 -19
- package/dist/{image-up-CubAveUO.js → image-up-YgXg9o1y.js} +1 -1
- package/dist/index.d.ts +39 -92
- package/dist/{info-DiINxXfZ.js → info-W-213KLD.js} +1 -1
- package/dist/{keys-CY3tkCsv.js → keys-XS_XrjqL.js} +1 -1
- package/dist/{liquid.browser-DX8ZHRdq.js → liquid.browser-Dc30h4PN.js} +673 -611
- package/dist/{list-checks-CMtEXe9l.js → list-checks-BQrZlWzC.js} +1 -1
- package/dist/{loader-circle-_9bP23op.js → loader-circle-BQPHssrF.js} +1 -1
- package/dist/{message-circle-gzy2ZGJ3.js → message-circle-iMgHXBeH.js} +1 -1
- package/dist/{refresh-cw-C9_M6yB3.js → refresh-cw-DFozdLYp.js} +1 -1
- package/dist/{scan-line-DUEg6DoT.js → scan-line-D3NN0Gre.js} +1 -1
- package/dist/{send-BatIZC9a.js → send-DBhq0GU2.js} +1 -1
- package/dist/{shield-check-C5Gv2cM1.js → shield-check-DquM3-E5.js} +1 -1
- package/dist/{sparkles-D1IGi_cC.js → sparkles-CTGknLJy.js} +1 -1
- package/dist/{styles-BEhOSxt5.js → styles-DfdDKEGV.js} +33 -33
- package/dist/templatical-editor.js +4 -4
- package/dist/{text-align-start-DG3aAH7Y.js → text-align-end-BPOHCD7K.js} +11 -11
- package/dist/{trash-2-424iqbpN.js → trash-2-VyX2kcG0.js} +1 -1
- package/dist/{triangle-alert-DWQySIE2.js → triangle-alert-HIqW9Hwv.js} +1 -1
- package/dist/{useAliveFlag-D8GoB4VE.js → useAliveFlag-t3e0dokQ.js} +1 -1
- package/dist/{useCloudI18n-BPUHj2CZ.js → useCloudI18n-oETj4WiF.js} +2 -2
- package/dist/{useEditorCore-DnCOsekL.js → useEditorCore-YaOoz7QB.js} +37 -31
- package/dist/{useI18n-CWX9ZTCW.js → useI18n-tMHqPsE4.js} +2 -2
- package/dist/{useMergeTag-B3F9VR04.js → useMergeTag-Bv8ASt6n.js} +2 -2
- package/dist/usePopoverRoot-Bs6kLsI3.js +8 -0
- package/dist/{vue.runtime.esm-bundler-Bxqkjqhc.js → vue.runtime.esm-bundler-xiAB6UTz.js} +15 -12
- package/dist/{x-Dlaenqta.js → x-C1j-AamY.js} +1 -1
- package/package.json +33 -34
- package/dist/cdn/chunks/draggable-P6QWzy4g.js.map +0 -1
- package/dist/cdn/chunks/features-BsW4aFcn.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-lQbkge2E.js.map +0 -1
- package/dist/cdn/chunks/quality-BDr54nMA.js +0 -1878
- package/dist/cdn/chunks/quality-BDr54nMA.js.map +0 -1
- package/dist/cdn/chunks/tiptap-BwTCLVWl.js.map +0 -1
- package/dist/dist-BYt3jdCR.js +0 -5
- package/dist/dist-CfQPBf15.js +0 -5
- package/dist/usePopoverRoot-BKJcxsst.js +0 -8
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as e, B as t, E as n, M as r, S as i, X as a, a as o, at as s, b as c, c as l, d as u, f as d, h as f, l as p, m, n as h, ot as g, p as _, rt as v, s as y, st as b, z as x } from "./vue.runtime.esm-bundler-
|
|
1
|
+
import { A as e, B as t, E as n, M as r, S as i, X as a, a as o, at as s, b as c, c as l, d as u, f as d, h as f, l as p, m, n as h, ot as g, p as _, rt as v, s as y, st as b, z as x } from "./vue.runtime.esm-bundler-xiAB6UTz.js";
|
|
2
2
|
import { C as S, D as C, n as w, w as T } from "./dist-DJmnUmW9.js";
|
|
3
|
-
import { t as E } from "./useI18n-
|
|
4
|
-
import { t as D } from "./useMergeTag-
|
|
5
|
-
import { F as O,
|
|
6
|
-
import { n as L, t as R } from "./dist-
|
|
3
|
+
import { t as E } from "./useI18n-tMHqPsE4.js";
|
|
4
|
+
import { t as D } from "./useMergeTag-Bv8ASt6n.js";
|
|
5
|
+
import { F as O, Kt as k, Sn as A, i as j, o as M, p as N, u as P, vn as F, xn as ee, yn as I } from "./dist-DpF3BN6Y.js";
|
|
6
|
+
import { n as L, t as R } from "./dist-D8IxYzaU.js";
|
|
7
7
|
//#region src/extensions/FontSize.ts
|
|
8
|
-
var te =
|
|
8
|
+
var te = j.create({
|
|
9
9
|
name: "fontSize",
|
|
10
10
|
addOptions() {
|
|
11
11
|
return { types: ["textStyle"] };
|
|
@@ -26,7 +26,7 @@ var te = M.create({
|
|
|
26
26
|
unsetFontSize: () => ({ chain: e }) => e().setMark("textStyle", { fontSize: null }).removeEmptyTextStyle().run()
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
}), ne =
|
|
29
|
+
}), ne = j.create({
|
|
30
30
|
name: "letterSpacing",
|
|
31
31
|
addOptions() {
|
|
32
32
|
return { types: ["textStyle"] };
|
|
@@ -47,7 +47,7 @@ var te = M.create({
|
|
|
47
47
|
unsetLetterSpacing: () => ({ chain: e }) => e().setMark("textStyle", { letterSpacing: null }).removeEmptyTextStyle().run()
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
}), re =
|
|
50
|
+
}), re = j.create({
|
|
51
51
|
name: "lineHeight",
|
|
52
52
|
addOptions() {
|
|
53
53
|
return {
|
|
@@ -181,7 +181,7 @@ function W(e) {
|
|
|
181
181
|
}
|
|
182
182
|
//#endregion
|
|
183
183
|
//#region src/extensions/LogicMergeTagNode.ts
|
|
184
|
-
var G =
|
|
184
|
+
var G = P.create({
|
|
185
185
|
name: "logicMergeTagNode",
|
|
186
186
|
group: "inline",
|
|
187
187
|
inline: !0,
|
|
@@ -230,7 +230,7 @@ var G = F.create({
|
|
|
230
230
|
};
|
|
231
231
|
},
|
|
232
232
|
addInputRules() {
|
|
233
|
-
return [new
|
|
233
|
+
return [new M({
|
|
234
234
|
find: RegExp(this.options.syntax.logic.source + "$", ""),
|
|
235
235
|
handler: ({ state: e, range: t, match: n }) => {
|
|
236
236
|
let r = n[0];
|
|
@@ -244,7 +244,7 @@ var G = F.create({
|
|
|
244
244
|
})];
|
|
245
245
|
},
|
|
246
246
|
addPasteRules() {
|
|
247
|
-
return [new
|
|
247
|
+
return [new N({
|
|
248
248
|
find: new RegExp(this.options.syntax.logic.source, "g"),
|
|
249
249
|
handler: ({ state: e, range: t, match: n }) => {
|
|
250
250
|
let r = n[0];
|
|
@@ -337,7 +337,7 @@ var G = F.create({
|
|
|
337
337
|
_: 1
|
|
338
338
|
}));
|
|
339
339
|
}
|
|
340
|
-
}), Y =
|
|
340
|
+
}), Y = P.create({
|
|
341
341
|
name: "mergeTagNode",
|
|
342
342
|
group: "inline",
|
|
343
343
|
inline: !0,
|
|
@@ -390,7 +390,7 @@ var G = F.create({
|
|
|
390
390
|
};
|
|
391
391
|
},
|
|
392
392
|
addInputRules() {
|
|
393
|
-
return [new
|
|
393
|
+
return [new M({
|
|
394
394
|
find: RegExp(this.options.syntax.value.source + "$", ""),
|
|
395
395
|
handler: ({ state: e, range: t, match: n }) => {
|
|
396
396
|
let r = n[0], i = T(r, this.options.mergeTags), a = this.type.create({
|
|
@@ -402,7 +402,7 @@ var G = F.create({
|
|
|
402
402
|
})];
|
|
403
403
|
},
|
|
404
404
|
addPasteRules() {
|
|
405
|
-
return [new
|
|
405
|
+
return [new N({
|
|
406
406
|
find: new RegExp(this.options.syntax.value.source, "g"),
|
|
407
407
|
handler: ({ state: e, range: t, match: n }) => {
|
|
408
408
|
let r = n[0], i = T(r, this.options.mergeTags), a = this.type.create({
|
|
@@ -415,7 +415,7 @@ var G = F.create({
|
|
|
415
415
|
}
|
|
416
416
|
});
|
|
417
417
|
//#endregion
|
|
418
|
-
//#region ../../node_modules/.pnpm/@tiptap+suggestion@3.
|
|
418
|
+
//#region ../../node_modules/.pnpm/@tiptap+suggestion@3.23.4_@tiptap+core@3.23.4_@tiptap+pm@3.23.4__@tiptap+pm@3.23.4/node_modules/@tiptap/suggestion/dist/index.js
|
|
419
419
|
function ie(e) {
|
|
420
420
|
let { char: t, allowSpaces: n, allowToIncludeChar: r, allowedPrefixes: i, startOfLine: a, $position: o } = e, s = n && !r, c = O(t), l = RegExp(`\\s${c}$`), u = a ? "^" : "", d = r ? "" : c, f = RegExp(s ? `${u}${c}.*?(?=\\s${d}|$)` : `${u}(?:^)?${c}[^\\s${d}]*`, "gm"), p = o.nodeBefore?.isText && o.nodeBefore.text;
|
|
421
421
|
if (!p) return null;
|
|
@@ -441,7 +441,7 @@ function ae(e) {
|
|
|
441
441
|
return /\s/.test(n);
|
|
442
442
|
}) : !1;
|
|
443
443
|
}
|
|
444
|
-
var oe = new
|
|
444
|
+
var oe = new A("suggestion");
|
|
445
445
|
function se({ pluginKey: e = oe, editor: t, char: n = "@", allowSpaces: r = !1, allowToIncludeChar: i = !1, allowedPrefixes: a = [" "], startOfLine: o = !1, decorationTag: s = "span", decorationClass: c = "suggestion", decorationContent: l = "", decorationEmptyClass: u = "is-empty", command: d = () => null, items: f = () => [], render: p = () => ({}), allow: m = () => !0, findSuggestionMatch: h = ie, shouldShow: g, shouldResetDismissed: _ }) {
|
|
446
446
|
let v, y = p?.(), b = r && !i, x = () => {
|
|
447
447
|
let e = t.state.selection.$anchor.pos, { top: n, right: r, bottom: i, left: a } = t.view.coordsAtPos(e);
|
|
@@ -489,7 +489,7 @@ function se({ pluginKey: e = oe, editor: t, char: n = "@", allowSpaces: r = !1,
|
|
|
489
489
|
let a = n.state.tr.setMeta(r, { exit: !0 });
|
|
490
490
|
n.dispatch(a);
|
|
491
491
|
}
|
|
492
|
-
let T = new
|
|
492
|
+
let T = new ee({
|
|
493
493
|
key: e,
|
|
494
494
|
view() {
|
|
495
495
|
return {
|
|
@@ -602,7 +602,7 @@ function se({ pluginKey: e = oe, editor: t, char: n = "@", allowSpaces: r = !1,
|
|
|
602
602
|
let { active: t, range: n, decorationId: r, query: i } = T.getState(e);
|
|
603
603
|
if (!t) return null;
|
|
604
604
|
let a = !i?.length, o = [c];
|
|
605
|
-
return a && o.push(u),
|
|
605
|
+
return a && o.push(u), I.create(e.doc, [F.inline(n.from, n.to, {
|
|
606
606
|
nodeName: s,
|
|
607
607
|
class: o.join(" "),
|
|
608
608
|
"data-decoration-id": r,
|
|
@@ -667,7 +667,7 @@ function Q(e, t) {
|
|
|
667
667
|
function $(e, t, n, r) {
|
|
668
668
|
return t.length === 0 ? e.key === "Enter" || e.key === "Tab" : e.key === "ArrowDown" ? (n.value = (n.value + 1) % t.length, !0) : e.key === "ArrowUp" ? (n.value = (n.value - 1 + t.length) % t.length, !0) : e.key === "Enter" || e.key === "Tab" ? (r(t[n.value]), !0) : !1;
|
|
669
669
|
}
|
|
670
|
-
var he =
|
|
670
|
+
var he = j.create({
|
|
671
671
|
name: "mergeTagSuggestion",
|
|
672
672
|
addOptions() {
|
|
673
673
|
return {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,41 +1,27 @@
|
|
|
1
|
-
import { AiConfig } from '
|
|
2
|
-
import { BlockDefaults } from '
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { CommentEvent } from '../../../types/src/index.ts';
|
|
1
|
+
import type { AiConfig } from '@templatical/types';
|
|
2
|
+
import { BlockDefaults } from '@templatical/types';
|
|
3
|
+
import type { CollaborationConfig } from '@templatical/types';
|
|
4
|
+
import type { CommentEvent } from '@templatical/types';
|
|
6
5
|
import { ComputedRef } from 'vue';
|
|
7
|
-
import { CustomBlock } from '
|
|
8
|
-
import { CustomBlockDefinition } from '
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { McpConfig } from '../../../types/src/index.ts';
|
|
19
|
-
import { MediaItem } from '../../../media-library/src/index.ts';
|
|
20
|
-
import { MediaRequestContext } from '../../media-library/src/index.ts';
|
|
21
|
-
import { MediaRequestContext as MediaRequestContext_2 } from '../../../media-library/src/index.ts';
|
|
22
|
-
import { MediaResult } from '../../types/src/index.ts';
|
|
23
|
-
import { MergeTagsConfig } from '../../types/src/index.ts';
|
|
24
|
-
import { MergeTagsConfig as MergeTagsConfig_2 } from '../../../types/src/index.ts';
|
|
6
|
+
import type { CustomBlock } from '@templatical/types';
|
|
7
|
+
import { CustomBlockDefinition } from '@templatical/types';
|
|
8
|
+
import { CustomFont } from '@templatical/types';
|
|
9
|
+
import { DisplayConditionsConfig } from '@templatical/types';
|
|
10
|
+
import { FontsConfig } from '@templatical/types';
|
|
11
|
+
import { LintOptions } from '@templatical/quality';
|
|
12
|
+
import type { McpConfig } from '@templatical/types';
|
|
13
|
+
import type { MediaItem } from '@templatical/media-library';
|
|
14
|
+
import type { MediaRequestContext } from '@templatical/media-library';
|
|
15
|
+
import type { MediaResult } from '@templatical/types';
|
|
16
|
+
import { MergeTagsConfig } from '@templatical/types';
|
|
25
17
|
import { Ref } from 'vue';
|
|
26
|
-
import { SaveResult } from '
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import { TemplateDefaults as TemplateDefaults_2 } from '../../../types/src/index.ts';
|
|
34
|
-
import { ThemeOverrides } from '../../types/src/index.ts';
|
|
35
|
-
import { ThemeOverrides as ThemeOverrides_2 } from '../../../types/src/index.ts';
|
|
36
|
-
import { UiTheme } from '../../types/src/index.ts';
|
|
37
|
-
import { UiTheme as UiTheme_2 } from '../../../types/src/index.ts';
|
|
38
|
-
import { ViewportSize } from '../../types/src/index.ts';
|
|
18
|
+
import { SaveResult } from '@templatical/types';
|
|
19
|
+
import { Template } from '@templatical/types';
|
|
20
|
+
import { TemplateContent } from '@templatical/types';
|
|
21
|
+
import { TemplateDefaults } from '@templatical/types';
|
|
22
|
+
import { ThemeOverrides } from '@templatical/types';
|
|
23
|
+
import { UiTheme } from '@templatical/types';
|
|
24
|
+
import { ViewportSize } from '@templatical/types';
|
|
39
25
|
|
|
40
26
|
export { BlockDefaults }
|
|
41
27
|
|
|
@@ -121,7 +107,7 @@ export declare interface TemplaticalCloudEditor extends TemplaticalEditorBase {
|
|
|
121
107
|
|
|
122
108
|
export declare interface TemplaticalCloudEditorConfig {
|
|
123
109
|
container: string | HTMLElement;
|
|
124
|
-
content?:
|
|
110
|
+
content?: TemplateContent;
|
|
125
111
|
/**
|
|
126
112
|
* Mount the editor inside a Shadow DOM (open mode) for CSS isolation
|
|
127
113
|
* from the host page. Defaults to `true` — host stylesheets cannot
|
|
@@ -152,8 +138,8 @@ export declare interface TemplaticalCloudEditorConfig {
|
|
|
152
138
|
credentials?: RequestCredentials;
|
|
153
139
|
};
|
|
154
140
|
};
|
|
155
|
-
theme?:
|
|
156
|
-
uiTheme?:
|
|
141
|
+
theme?: ThemeOverrides;
|
|
142
|
+
uiTheme?: UiTheme;
|
|
157
143
|
locale?: string;
|
|
158
144
|
/**
|
|
159
145
|
* Show the "Powered by Templatical" footer. Defaults to `true`.
|
|
@@ -165,23 +151,23 @@ export declare interface TemplaticalCloudEditorConfig {
|
|
|
165
151
|
commenting?: boolean;
|
|
166
152
|
collaboration?: CollaborationConfig;
|
|
167
153
|
mcp?: McpConfig;
|
|
168
|
-
blockDefaults?:
|
|
169
|
-
templateDefaults?:
|
|
154
|
+
blockDefaults?: BlockDefaults;
|
|
155
|
+
templateDefaults?: TemplateDefaults;
|
|
170
156
|
modules?: boolean;
|
|
171
157
|
autoSave?: boolean;
|
|
172
158
|
autoSaveDebounce?: number;
|
|
173
|
-
mergeTags?:
|
|
174
|
-
displayConditions?:
|
|
175
|
-
customBlocks?:
|
|
176
|
-
fonts?:
|
|
177
|
-
onChange?: (content:
|
|
178
|
-
onSave?: (result:
|
|
179
|
-
onCreate?: (template:
|
|
180
|
-
onLoad?: (template:
|
|
159
|
+
mergeTags?: MergeTagsConfig;
|
|
160
|
+
displayConditions?: DisplayConditionsConfig;
|
|
161
|
+
customBlocks?: CustomBlockDefinition[];
|
|
162
|
+
fonts?: FontsConfig;
|
|
163
|
+
onChange?: (content: TemplateContent) => void;
|
|
164
|
+
onSave?: (result: SaveResult) => void;
|
|
165
|
+
onCreate?: (template: Template) => void;
|
|
166
|
+
onLoad?: (template: Template) => void;
|
|
181
167
|
onError?: (error: Error) => void;
|
|
182
168
|
onComment?: (event: CommentEvent) => void;
|
|
183
169
|
onUnmount?: () => void;
|
|
184
|
-
onRequestMedia?: (context:
|
|
170
|
+
onRequestMedia?: (context: MediaRequestContext) => Promise<MediaItem | null>;
|
|
185
171
|
onBeforeTestEmail?: (html: string) => string | Promise<string>;
|
|
186
172
|
/**
|
|
187
173
|
* Template linter (`@templatical/quality`) configuration. Runs every
|
|
@@ -189,7 +175,7 @@ export declare interface TemplaticalCloudEditorConfig {
|
|
|
189
175
|
* additionally merges `planConfig.accessibility` from the server (server
|
|
190
176
|
* policy wins on conflict) — this option sets the consumer-supplied baseline.
|
|
191
177
|
*/
|
|
192
|
-
lint?:
|
|
178
|
+
lint?: LintOptions;
|
|
193
179
|
}
|
|
194
180
|
|
|
195
181
|
export declare interface TemplaticalEditor extends TemplaticalEditorBase {
|
|
@@ -280,13 +266,13 @@ export { UiTheme }
|
|
|
280
266
|
*/
|
|
281
267
|
export declare function unmount(): void;
|
|
282
268
|
|
|
283
|
-
export declare function useFonts(config?:
|
|
269
|
+
export declare function useFonts(config?: FontsConfig): UseFontsReturn;
|
|
284
270
|
|
|
285
271
|
export declare interface UseFontsReturn {
|
|
286
272
|
fonts: ComputedRef<FontOption[]>;
|
|
287
273
|
defaultFont: ComputedRef<string>;
|
|
288
274
|
defaultFallback: ComputedRef<string>;
|
|
289
|
-
customFonts: Ref<
|
|
275
|
+
customFonts: Ref<CustomFont[]>;
|
|
290
276
|
customFontsEnabled: Ref<boolean>;
|
|
291
277
|
isLoaded: Ref<boolean>;
|
|
292
278
|
setCustomFontsEnabled: (enabled: boolean) => void;
|
|
@@ -299,42 +285,3 @@ export declare interface UseFontsReturn {
|
|
|
299
285
|
export { ViewportSize }
|
|
300
286
|
|
|
301
287
|
export { }
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
declare module "@tiptap/core" {
|
|
305
|
-
interface Commands<ReturnType> {
|
|
306
|
-
fontSize: {
|
|
307
|
-
setFontSize: (size: string) => ReturnType;
|
|
308
|
-
unsetFontSize: () => ReturnType;
|
|
309
|
-
};
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
declare module "@tiptap/core" {
|
|
315
|
-
interface Commands<ReturnType> {
|
|
316
|
-
letterSpacing: {
|
|
317
|
-
setLetterSpacing: (spacing: string) => ReturnType;
|
|
318
|
-
unsetLetterSpacing: () => ReturnType;
|
|
319
|
-
};
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
declare module "@tiptap/core" {
|
|
325
|
-
interface Commands<ReturnType> {
|
|
326
|
-
lineHeight: {
|
|
327
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
328
|
-
unsetLineHeight: () => ReturnType;
|
|
329
|
-
};
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
declare module "@tiptap/core" {
|
|
335
|
-
interface Commands<ReturnType> {
|
|
336
|
-
mergeTagNode: {
|
|
337
|
-
insertMergeTag: (attrs: MergeTag) => ReturnType;
|
|
338
|
-
};
|
|
339
|
-
}
|
|
340
|
-
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { w as e } from "./vue.runtime.esm-bundler-
|
|
1
|
+
import { w as e } from "./vue.runtime.esm-bundler-xiAB6UTz.js";
|
|
2
2
|
//#region src/keys.ts
|
|
3
3
|
var t = Symbol("translations"), n = Symbol("editor"), r = Symbol("history"), i = Symbol("blockActions"), a = Symbol("conditionPreview"), o = Symbol("fontsManager"), s = Symbol("themeStyles"), c = Symbol("tplUiTheme"), l = Symbol("blockDefaults"), u = Symbol("blockRegistry"), d = Symbol("customBlockDefinitions"), f = Symbol("mergeTags"), p = Symbol("mergeTagSyntax"), m = Symbol("onRequestMergeTag"), h = Symbol("mergeTagAutocomplete"), g = Symbol("onRequestMedia"), _ = Symbol("displayConditions"), v = Symbol("allowCustomConditions"), y = Symbol("capabilities"), b = Symbol("keyboardReorder"), x = Symbol("templateLint"), S = Symbol("editorRoot"), C = Symbol("popoverRoot"), w = Symbol("authManager"), T = Symbol("aiConfig"), E = Symbol("comments"), D = Symbol("savedModulesHeadless"), O = Symbol("scoring"), k = Symbol("cloudTranslations");
|
|
4
4
|
function A(t, n) {
|