@templatical/editor 0.8.3 → 0.8.5
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-CXpsSTbt.js → AiChatSidebar-uhkhnXQd.js} +14 -14
- package/dist/{AiFeatureMenu-De9ow6Ej.js → AiFeatureMenu-DXNKvXP5.js} +8 -8
- package/dist/{BlockIssueBadge-FEuyG1p0.js → BlockIssueBadge-DM-vXeD6.js} +5 -5
- package/dist/{CloudEditor-Ccoru8Up.js → CloudEditor-BSkPQjwo.js} +23 -23
- package/dist/{CollaboratorBar-CmHq6XiL.js → CollaboratorBar-CP76Sh6c.js} +5 -5
- package/dist/{CommentsSidebar-DaWP5ZGl.js → CommentsSidebar-_llWQ4VT.js} +14 -14
- package/dist/{CountdownBlock-C51M6s-J.js → CountdownBlock-I99sC0C5.js} +4 -4
- package/dist/{CountdownToolbar-C2QkG8S0.js → CountdownToolbar-BUhOUiQ9.js} +4 -4
- package/dist/{DesignReferenceSidebar-BwIRFmpA.js → DesignReferenceSidebar-CfJqJ7l6.js} +11 -11
- package/dist/{IssuesPanel-B6ukjc1i.js → IssuesPanel-4MKZe8yP.js} +8 -8
- package/dist/{LoadingTrack-CZ6tO326.js → LoadingTrack-xCOLUR3o.js} +2 -2
- package/dist/{ModuleBrowserModal-0n6DoZtA.js → ModuleBrowserModal-BFQTm6uY.js} +11 -11
- package/dist/{ModulePreviewCanvas-DEtTEvMM.js → ModulePreviewCanvas-DeqMpo73.js} +3 -3
- package/dist/{NumberWithSuffix-wOM0319c.js → NumberWithSuffix-CxMFy_j3.js} +4 -4
- package/dist/{ParagraphEditor-PQZp1plL.js → ParagraphEditor-DqomSbW3.js} +28 -28
- package/dist/{RichTextEditorContent-C02UzFoS.js → RichTextEditorContent-B_KCY6T1.js} +6 -6
- package/dist/{SaveModuleDialog-WWMn87Oi.js → SaveModuleDialog-DKcpPeWd.js} +7 -7
- package/dist/{SnapshotHistory-Dy_Iy7VG.js → SnapshotHistory-Z9RQj53S.js} +10 -10
- package/dist/{TemplateScoringPanel-BpQgtaDl.js → TemplateScoringPanel-BIwEwFxD.js} +15 -15
- package/dist/{TestEmailModal--4EVFj1A.js → TestEmailModal-C8DhylO1.js} +5 -5
- package/dist/{TitleEditor-C6z6Jzeg.js → TitleEditor-CgLrn6R3.js} +15 -15
- package/dist/{TplModal-D5xlYbls.js → TplModal-CbwRwmR3.js} +4 -4
- package/dist/{blockTypeIcons-jZR-IBPY.js → blockTypeIcons-CccKujXP.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-8gbvVwXD.js → AiFeatureMenu-ChNv7XXj.js} +3 -3
- package/dist/cdn/chunks/{AiFeatureMenu-8gbvVwXD.js.map → AiFeatureMenu-ChNv7XXj.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-CYoY-wyI.js → BlockIssueBadge-BovmWgok.js} +3 -3
- package/dist/cdn/chunks/{BlockIssueBadge-CYoY-wyI.js.map → BlockIssueBadge-BovmWgok.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-DGAV0qxk.js → CloudEditor-CHF_P5OL.js} +9 -9
- package/dist/cdn/chunks/{CloudEditor-DGAV0qxk.js.map → CloudEditor-CHF_P5OL.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-BrzkrQJM.js → CollaboratorBar-Bjr5YSh0.js} +5 -5
- package/dist/cdn/chunks/{CollaboratorBar-BrzkrQJM.js.map → CollaboratorBar-Bjr5YSh0.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-BSEKrpZY.js → CountdownBlock-KyzvhjMF.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-BSEKrpZY.js.map → CountdownBlock-KyzvhjMF.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-DME9toD5.js → CountdownToolbar-bJtMHGYz.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-DME9toD5.js.map → CountdownToolbar-bJtMHGYz.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BqGOXisb.js → IssuesPanel-DFSYTQXy.js} +4 -4
- package/dist/cdn/chunks/{IssuesPanel-BqGOXisb.js.map → IssuesPanel-DFSYTQXy.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-Bz2oCRS9.js → ModuleBrowserModal-DS0BGRhZ.js} +6 -6
- package/dist/cdn/chunks/{ModuleBrowserModal-Bz2oCRS9.js.map → ModuleBrowserModal-DS0BGRhZ.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-8i2U3rd6.js → ModulePreviewCanvas-Dwn2cA5a.js} +3 -3
- package/dist/cdn/chunks/{ModulePreviewCanvas-8i2U3rd6.js.map → ModulePreviewCanvas-Dwn2cA5a.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-C6HZCvvh.js → NumberWithSuffix-BNBeHv0P.js} +4 -4
- package/dist/cdn/chunks/{NumberWithSuffix-C6HZCvvh.js.map → NumberWithSuffix-BNBeHv0P.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DfKVmv1W.js → ParagraphEditor-C4TrTIOm.js} +21 -21
- package/dist/cdn/chunks/ParagraphEditor-C4TrTIOm.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-B-HY9asd.js → RichTextEditorContent-HNFFL4aK.js} +3 -3
- package/dist/cdn/chunks/{RichTextEditorContent-B-HY9asd.js.map → RichTextEditorContent-HNFFL4aK.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-BgwBxW_S.js → SaveModuleDialog-CbHqqeID.js} +3 -3
- package/dist/cdn/chunks/{SaveModuleDialog-BgwBxW_S.js.map → SaveModuleDialog-CbHqqeID.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-C2p3SosJ.js → TitleEditor-gr-eBUq_.js} +12 -12
- package/dist/cdn/chunks/TitleEditor-gr-eBUq_.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-Bck6aYVw.js → blockTypeIcons-BUlgu9JL.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-Bck6aYVw.js.map → blockTypeIcons-BUlgu9JL.js.map} +1 -1
- package/dist/cdn/chunks/{de-RQrZR56a.js → de-CTYXVU9v.js} +1 -1
- package/dist/cdn/chunks/{de-RQrZR56a.js.map → de-CTYXVU9v.js.map} +1 -1
- package/dist/cdn/chunks/{de-DG1WWVXM.js → de-DFYCT4QU.js} +1 -1
- package/dist/cdn/chunks/{de-DG1WWVXM.js.map → de-DFYCT4QU.js.map} +1 -1
- package/dist/cdn/chunks/{de-BBEGQDsd.js → de-ED7c5RpG.js} +1 -2
- package/dist/cdn/chunks/{de-BBEGQDsd.js.map → de-ED7c5RpG.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-CLpL3kf8.js → draggable-BwWMFq33.js} +2 -2
- package/dist/cdn/chunks/{draggable-CLpL3kf8.js.map → draggable-BwWMFq33.js.map} +1 -1
- package/dist/cdn/chunks/{emojiData-EMFlj6FJ.js → emojiData-6m0DBh7O.js} +1 -1
- package/dist/cdn/chunks/{emojiData-EMFlj6FJ.js.map → emojiData-6m0DBh7O.js.map} +1 -1
- package/dist/cdn/chunks/{en-Bl1ecfRF.js → en-BtmIaJeb.js} +1 -1
- package/dist/cdn/chunks/{en-Bl1ecfRF.js.map → en-BtmIaJeb.js.map} +1 -1
- package/dist/cdn/chunks/{en-BE6OV83-.js → en-DE_y1YWU.js} +1 -1
- package/dist/cdn/chunks/{en-BE6OV83-.js.map → en-DE_y1YWU.js.map} +1 -1
- package/dist/cdn/chunks/{en-CHha-_ta.js → en-ivilDUn0.js} +1 -2
- package/dist/cdn/chunks/{en-CHha-_ta.js.map → en-ivilDUn0.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-DdH6DxVo.js → extensions-DK_lVs7A.js} +4 -4
- package/dist/cdn/chunks/{extensions-DdH6DxVo.js.map → extensions-DK_lVs7A.js.map} +1 -1
- package/dist/cdn/chunks/{features-BOcQhi9B.js → features-LiilsBqW.js} +1037 -1004
- package/dist/cdn/chunks/features-LiilsBqW.js.map +1 -0
- package/dist/cdn/chunks/{icons-BVyDCkxF.js → icons-Bn2SIR30.js} +2 -2
- package/dist/cdn/chunks/{icons-BVyDCkxF.js.map → icons-Bn2SIR30.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-cpFt-Vmw.js → liquid.browser-rMoPo2t_.js} +1 -1
- package/dist/cdn/chunks/{liquid.browser-cpFt-Vmw.js.map → liquid.browser-rMoPo2t_.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-CPZI4Yxq.js → media-library-Bb2PavAd.js} +5 -5
- package/dist/cdn/chunks/{media-library-CPZI4Yxq.js.map → media-library-Bb2PavAd.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-CQl2JxRp.js → pt-BR-B2ZvFlRL.js} +1 -1
- package/dist/cdn/chunks/{pt-BR-CQl2JxRp.js.map → pt-BR-B2ZvFlRL.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-CFomv2R8.js → pt-BR-B5tm2iBl.js} +1 -2
- package/dist/cdn/chunks/{pt-BR-CFomv2R8.js.map → pt-BR-B5tm2iBl.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-BYRTP5Ww.js → pt-BR-BibOQm-o.js} +1 -1
- package/dist/cdn/chunks/{pt-BR-BYRTP5Ww.js.map → pt-BR-BibOQm-o.js.map} +1 -1
- package/dist/cdn/chunks/{pusher-bjpcqCZG.js → pusher-CHo5Cua0.js} +2 -2
- package/dist/cdn/chunks/{pusher-bjpcqCZG.js.map → pusher-CHo5Cua0.js.map} +1 -1
- package/dist/cdn/chunks/{quality-Cytz80Z5.js → quality-Bpj6kNxR.js} +181 -155
- package/dist/cdn/chunks/{quality-Cytz80Z5.js.map → quality-Bpj6kNxR.js.map} +1 -1
- package/dist/cdn/chunks/{readableTextColor-DhoK4XiZ.js → readableTextColor-f8Kykfnh.js} +1 -1
- package/dist/cdn/chunks/{readableTextColor-DhoK4XiZ.js.map → readableTextColor-f8Kykfnh.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-Bsqzjvsr.js → renderer-CYYyu-Di.js} +133 -99
- package/dist/cdn/chunks/{renderer-Bsqzjvsr.js.map → renderer-CYYyu-Di.js.map} +1 -1
- package/dist/cdn/chunks/{src-BRhJ_W0W.js → src-CQjZnxvw.js} +8 -8
- package/dist/cdn/chunks/{src-BRhJ_W0W.js.map → src-CQjZnxvw.js.map} +1 -1
- package/dist/cdn/chunks/{styleConstants-DP1VOca8.js → styleConstants-lGobwiLH.js} +1 -1
- package/dist/cdn/chunks/{styleConstants-DP1VOca8.js.map → styleConstants-lGobwiLH.js.map} +1 -1
- package/dist/cdn/chunks/{styles-MrOGXwzJ.js → styles-5g8XOS68.js} +11 -11
- package/dist/cdn/chunks/{styles-MrOGXwzJ.js.map → styles-5g8XOS68.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-BCvhHXDe.js → tiptap-BBbH3IT9.js} +856 -732
- package/dist/cdn/chunks/tiptap-BBbH3IT9.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +13 -13
- package/dist/{check-DwVS7v3N.js → check-ChQyfxJ3.js} +1 -1
- package/dist/{chevron-down-CytfFjil.js → chevron-down-DJjo0jSV.js} +1 -1
- package/dist/{circle-alert-9J8Q4fwU.js → circle-alert-CPH6l3Lc.js} +1 -1
- package/dist/{clock-CL2fYWmc.js → clock-DHl_BIkU.js} +1 -1
- package/dist/{cloud-DHsOqOnH.js → cloud-VxYMtfXC.js} +2 -2
- package/dist/{createLucideIcon-DTECxBv6.js → createLucideIcon-XgXOJ05E.js} +1 -1
- package/dist/{de-KFqjrxG3.js → de-ED7c5RpG.js} +0 -1
- package/dist/{dist-B5FKze93.js → dist-BDgf2G-V.js} +453 -314
- package/dist/{dist-BoGj0ys1.js → dist-BxP6TB0l.js} +2 -2
- package/dist/{dist-DpF3BN6Y.js → dist-BzuC8o3y.js} +451 -459
- package/dist/{dist-DiYYRj9J.js → dist-C0jo8wtG.js} +2 -2
- package/dist/{dist-3RAjjDZq.js → dist-C8wMh_gi.js} +2 -2
- package/dist/{dist-DJmnUmW9.js → dist-CIV3Brg-.js} +37 -4
- package/dist/{dist-BjSjVZRA.js → dist-CUpJmrjt.js} +2 -2
- package/dist/dist-D5lmdi1F.js +5 -0
- package/dist/{dist-D8IxYzaU.js → dist-D8C6jIXM.js} +170 -177
- package/dist/dist-DILjuzSv.js +5 -0
- package/dist/{dist-DPiqL9q5.js → dist-DXaxGLsw.js} +33 -33
- package/dist/{dist-qFGe50Kc.js → dist-DYO-w_Jf.js} +2 -2
- package/dist/{dist-CkhqaMca.js → dist-HO0vjY5Z.js} +1 -1
- package/dist/{dist-DgD8K8y0.js → dist-UK-lbEBc.js} +2 -2
- package/dist/{en-CNm94YYD.js → en-ivilDUn0.js} +0 -1
- package/dist/{extensions-BTheidN4.js → extensions-DeNHyWwh.js} +29 -29
- package/dist/{formatRelativeTime-bvx5sFh5.js → formatRelativeTime-CyDg5cDD.js} +1 -1
- package/dist/{image-up-YgXg9o1y.js → image-up-CPBCOMit.js} +1 -1
- package/dist/{info-W-213KLD.js → info-DIY9mguM.js} +1 -1
- package/dist/{keys-XS_XrjqL.js → keys-B8K7Z7Ef.js} +1 -1
- package/dist/{list-checks-BQrZlWzC.js → list-checks-CSCyu3fH.js} +1 -1
- package/dist/{loader-circle-BQPHssrF.js → loader-circle-Rz_4vJLH.js} +1 -1
- package/dist/{message-circle-iMgHXBeH.js → message-circle-D-umK_MU.js} +1 -1
- package/dist/{pt-BR-gxZZAUWp.js → pt-BR-B5tm2iBl.js} +0 -1
- package/dist/{refresh-cw-DFozdLYp.js → refresh-cw-CvWF4jfR.js} +1 -1
- package/dist/{scan-line-D3NN0Gre.js → scan-line-wanvAFDr.js} +1 -1
- package/dist/{send-DBhq0GU2.js → send-BhbhbIFT.js} +1 -1
- package/dist/{shield-check-DquM3-E5.js → shield-check-CXPPMWth.js} +1 -1
- package/dist/{sparkles-CTGknLJy.js → sparkles-CrUN0KWY.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{styles-DfdDKEGV.js → styles-Bgqv7rLA.js} +29 -29
- package/dist/templatical-editor.js +13 -13
- package/dist/{text-align-end-BPOHCD7K.js → text-align-end-Bkq8oBrD.js} +1 -1
- package/dist/{trash-2-VyX2kcG0.js → trash-2-BpY5BCLT.js} +1 -1
- package/dist/{triangle-alert-HIqW9Hwv.js → triangle-alert-MwJBKR2e.js} +1 -1
- package/dist/{useAliveFlag-t3e0dokQ.js → useAliveFlag-BLyG8L4d.js} +1 -1
- package/dist/{useCloudI18n-oETj4WiF.js → useCloudI18n-DFzVgYhJ.js} +2 -2
- package/dist/{useEditorCore-YaOoz7QB.js → useEditorCore-CaOVDL_m.js} +20 -20
- package/dist/{useI18n-tMHqPsE4.js → useI18n-CBbStVlD.js} +2 -2
- package/dist/{useMergeTag-Bv8ASt6n.js → useMergeTag-RWsgUcSh.js} +3 -3
- package/dist/usePopoverRoot-62PlZQQ3.js +8 -0
- package/dist/{vue.runtime.esm-bundler-xiAB6UTz.js → vue.runtime.esm-bundler-BDSGA5hA.js} +1 -1
- package/dist/{x-C1j-AamY.js → x-rcnxRG8Y.js} +1 -1
- package/package.json +23 -23
- package/dist/cdn/chunks/ParagraphEditor-DfKVmv1W.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-C2p3SosJ.js.map +0 -1
- package/dist/cdn/chunks/features-BOcQhi9B.js.map +0 -1
- package/dist/cdn/chunks/tiptap-BCvhHXDe.js.map +0 -1
- package/dist/dist-BWVK8w_m.js +0 -5
- package/dist/dist-UekZXGFH.js +0 -5
- package/dist/usePopoverRoot-Bs6kLsI3.js +0 -8
- /package/dist/{_plugin-vue_export-helper-B0hnzhyu.js → _plugin-vue_export-helper-B3ysoDQm.js} +0 -0
- /package/dist/cdn/chunks/{rolldown-runtime-C266TIVP.js → rolldown-runtime-Dqa2HsxW.js} +0 -0
- /package/dist/{de-GOtR9DwW.js → de-CTYXVU9v.js} +0 -0
- /package/dist/{emojiData-DrBuvEoP.js → emojiData-6m0DBh7O.js} +0 -0
- /package/dist/{en-dFFQVzNn.js → en-BtmIaJeb.js} +0 -0
- /package/dist/{liquid.browser-Dc30h4PN.js → liquid.browser-IgQrXHPQ.js} +0 -0
- /package/dist/{pt-BR-iOr79aDg.js → pt-BR-B2ZvFlRL.js} +0 -0
- /package/dist/{readableTextColor-CXzrEnNb.js → readableTextColor-f8Kykfnh.js} +0 -0
- /package/dist/{rolldown-runtime-CAFD8bLK.js → rolldown-runtime-Dy4uBu1J.js} +0 -0
- /package/dist/{styleConstants-DkfOPzGu.js → styleConstants-lGobwiLH.js} +0 -0
- /package/dist/{timeouts-BSGxjuUF.js → timeouts-Bmi_yePw.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region ../../node_modules/.pnpm/@tiptap+extension-text-style@3.23.
|
|
1
|
+
import { Gt as e, c as t, dt as n, i as r } from "./dist-BzuC8o3y.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@tiptap+extension-text-style@3.23.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6_/node_modules/@tiptap/extension-text-style/dist/index.js
|
|
3
3
|
var i = 20, a = (e, t = 0) => {
|
|
4
4
|
let n = [];
|
|
5
5
|
return !e.children.length || t > i || Array.from(e.children).forEach((e) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region ../../node_modules/.pnpm/@tiptap+extension-subscript@3.23.
|
|
1
|
+
import { Gt as e, c as t } from "./dist-BzuC8o3y.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@tiptap+extension-subscript@3.23.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6__@tiptap+pm@3.23.6/node_modules/@tiptap/extension-subscript/dist/index.js
|
|
3
3
|
var n = t.create({
|
|
4
4
|
name: "subscript",
|
|
5
5
|
addOptions() {
|
|
@@ -326,7 +326,7 @@ function q(e, t) {
|
|
|
326
326
|
return n ? n.label : e;
|
|
327
327
|
}
|
|
328
328
|
function J(e, t) {
|
|
329
|
-
return e
|
|
329
|
+
return $(e, "data-merge-tag", (e) => q(e, t));
|
|
330
330
|
}
|
|
331
331
|
function Y(e, t) {
|
|
332
332
|
if (!e) return !1;
|
|
@@ -341,9 +341,42 @@ function Z(e, t) {
|
|
|
341
341
|
return r && r[1] ? r[1].toUpperCase() : e;
|
|
342
342
|
}
|
|
343
343
|
function Q(e, t) {
|
|
344
|
-
return e
|
|
344
|
+
return $(e, "data-logic-merge-tag", (e) => Z(e, t));
|
|
345
|
+
}
|
|
346
|
+
function $(e, t, n) {
|
|
347
|
+
let r = RegExp(`(?:^|\\s)${t}="([^"<>]*)"`), i = "", a = 0;
|
|
348
|
+
for (; a < e.length;) {
|
|
349
|
+
let t = e.indexOf("<span", a);
|
|
350
|
+
if (t === -1) {
|
|
351
|
+
i += e.substring(a);
|
|
352
|
+
break;
|
|
353
|
+
}
|
|
354
|
+
let o = e[t + 5];
|
|
355
|
+
if (o !== ">" && o !== " " && o !== " " && o !== "\n" && o !== "\r" && o !== "/") {
|
|
356
|
+
i += e.substring(a, t + 5), a = t + 5;
|
|
357
|
+
continue;
|
|
358
|
+
}
|
|
359
|
+
let s = e.indexOf(">", t + 5);
|
|
360
|
+
if (s === -1) {
|
|
361
|
+
i += e.substring(a);
|
|
362
|
+
break;
|
|
363
|
+
}
|
|
364
|
+
let c = e.indexOf("</span>", s + 1);
|
|
365
|
+
if (c === -1) {
|
|
366
|
+
i += e.substring(a);
|
|
367
|
+
break;
|
|
368
|
+
}
|
|
369
|
+
let l = e.substring(t + 5, s), u = r.exec(l);
|
|
370
|
+
if (!u) {
|
|
371
|
+
i += e.substring(a, t + 5), a = t + 5;
|
|
372
|
+
continue;
|
|
373
|
+
}
|
|
374
|
+
let d = u[1], f = n(d);
|
|
375
|
+
i += e.substring(a, s + 1), i += f, i += "</span>", a = c + 7;
|
|
376
|
+
}
|
|
377
|
+
return i;
|
|
345
378
|
}
|
|
346
|
-
var
|
|
379
|
+
var ee = class extends Error {
|
|
347
380
|
constructor(e, t) {
|
|
348
381
|
super(e), this.statusCode = t, this.name = "SdkError";
|
|
349
382
|
}
|
|
@@ -359,4 +392,4 @@ var $ = class extends Error {
|
|
|
359
392
|
}
|
|
360
393
|
};
|
|
361
394
|
//#endregion
|
|
362
|
-
export { J as A, Z as C, X as D, t as E, K as O, b as S, U as T, A as _, Y as a, C as b, I as c, D as d, M as f, O as g, w as h, B as i, W as j, Q as k, R as l, N as m, V as n, z as o, T as p,
|
|
395
|
+
export { J as A, Z as C, X as D, t as E, K as O, b as S, U as T, A as _, Y as a, C as b, I as c, D as d, M as f, O as g, w as h, B as i, W as j, Q as k, R as l, N as m, V as n, z as o, T as p, ee as r, E as s, e as t, v as u, j as v, q as w, k as x, F as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region ../../node_modules/.pnpm/@tiptap+extension-superscript@3.23.
|
|
1
|
+
import { Gt as e, c as t } from "./dist-BzuC8o3y.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@tiptap+extension-superscript@3.23.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6__@tiptap+pm@3.23.6/node_modules/@tiptap/extension-superscript/dist/index.js
|
|
3
3
|
var n = t.create({
|
|
4
4
|
name: "superscript",
|
|
5
5
|
addOptions() {
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FontFamily as e } from "./dist-C0jo8wtG.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@tiptap+extension-font-family@3.23.6_@tiptap+extension-text-style@3.23.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6__/node_modules/@tiptap/extension-font-family/dist/index.js
|
|
3
|
+
var t = e;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { e as FontFamily, t as default };
|
|
@@ -1,146 +1,144 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-
|
|
2
|
-
import { $ as t, D as n, E as r, H as i, J as a, K as o, O as ee, Q as te, R as s, S as c, X as l, b as u, j as d, r as f, rt as ne, x as re } from "./vue.runtime.esm-bundler-
|
|
3
|
-
import { $ as ie, $t as ae, A as oe, At as se, B as ce, Bt as le, C as ue, Ct as
|
|
4
|
-
//#region ../../node_modules/.pnpm/@tiptap+vue-3@3.23.
|
|
5
|
-
var
|
|
6
|
-
CommandManager: () =>
|
|
7
|
-
Editor: () =>
|
|
8
|
-
EditorContent: () =>
|
|
9
|
-
Extendable: () =>
|
|
10
|
-
Extension: () =>
|
|
11
|
-
Fragment: () =>
|
|
12
|
-
InputRule: () =>
|
|
13
|
-
MappablePosition: () =>
|
|
14
|
-
Mark: () =>
|
|
15
|
-
MarkView: () =>
|
|
16
|
-
MarkViewContent: () =>
|
|
17
|
-
Node: () =>
|
|
18
|
-
NodePos: () =>
|
|
19
|
-
NodeView: () =>
|
|
20
|
-
NodeViewContent: () =>
|
|
21
|
-
NodeViewWrapper: () =>
|
|
22
|
-
PasteRule: () =>
|
|
23
|
-
ResizableNodeView: () =>
|
|
24
|
-
ResizableNodeview: () =>
|
|
25
|
-
Tracker: () =>
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { $ as t, D as n, E as r, H as i, J as a, K as o, O as ee, Q as te, R as s, S as c, X as l, b as u, j as d, r as f, rt as ne, x as re } from "./vue.runtime.esm-bundler-BDSGA5hA.js";
|
|
3
|
+
import { $ as ie, $t as ae, A as oe, At as se, B as ce, Bt as le, C as ue, Ct as p, D as m, Dt as h, E as g, Et as _, F as v, Ft as y, G as b, Gt as x, H as S, Ht as C, I as w, It as T, J as E, Jt as D, K as O, Kt as k, L as A, Lt as j, M, Mt as N, N as P, Nt as F, O as I, Ot as L, P as R, Pt as z, Q as B, Qt as V, R as H, Rt as U, S as de, St as fe, T as pe, Tt as me, U as he, Ut as ge, V as _e, Vt as ve, W as ye, Wt as be, X as xe, Xt as Se, Y as Ce, Yt as we, Z as Te, Zt as Ee, _ as De, _t as W, a as Oe, an as ke, at as Ae, b as je, bt as Me, c as Ne, cn as Pe, ct as Fe, d as Ie, dn as Le, dt as Re, en as ze, et as Be, f as G, fn as Ve, ft as He, g as Ue, gt as We, h as Ge, ht as Ke, i as qe, in as Je, it as Ye, j as Xe, jt as Ze, k as Qe, kt as $e, l as K, ln as et, lt as tt, m as nt, mn as rt, mt as it, n as at, nn as ot, nt as st, o as ct, on as lt, ot as ut, p as dt, pn as ft, pt, q as mt, qt as ht, r as gt, rn as _t, rt as vt, s as yt, sn as bt, st as xt, t as St, tn as Ct, tt as wt, u as Tt, un as Et, ut as Dt, v as Ot, vt as kt, w as At, wt as jt, x as Mt, xt as Nt, y as Pt, yt as Ft, z as It, zt as Lt } from "./dist-BzuC8o3y.js";
|
|
4
|
+
//#region ../../node_modules/.pnpm/@tiptap+vue-3@3.23.6_@floating-ui+dom@1.7.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6__@tip_22724918e2e64612c755751af7cf1745/node_modules/@tiptap/vue-3/dist/index.js
|
|
5
|
+
var Rt = /* @__PURE__ */ e({
|
|
6
|
+
CommandManager: () => St,
|
|
7
|
+
Editor: () => J,
|
|
8
|
+
EditorContent: () => zt,
|
|
9
|
+
Extendable: () => gt,
|
|
10
|
+
Extension: () => qe,
|
|
11
|
+
Fragment: () => Oe,
|
|
12
|
+
InputRule: () => ct,
|
|
13
|
+
MappablePosition: () => yt,
|
|
14
|
+
Mark: () => Ne,
|
|
15
|
+
MarkView: () => K,
|
|
16
|
+
MarkViewContent: () => Ht,
|
|
17
|
+
Node: () => Tt,
|
|
18
|
+
NodePos: () => Ie,
|
|
19
|
+
NodeView: () => G,
|
|
20
|
+
NodeViewContent: () => Bt,
|
|
21
|
+
NodeViewWrapper: () => Y,
|
|
22
|
+
PasteRule: () => dt,
|
|
23
|
+
ResizableNodeView: () => nt,
|
|
24
|
+
ResizableNodeview: () => Ge,
|
|
25
|
+
Tracker: () => Ue,
|
|
26
26
|
VueMarkView: () => Q,
|
|
27
|
-
VueMarkViewRenderer: () =>
|
|
27
|
+
VueMarkViewRenderer: () => Ut,
|
|
28
28
|
VueNodeViewRenderer: () => $,
|
|
29
|
-
VueRenderer: () =>
|
|
30
|
-
callOrReturn: () =>
|
|
31
|
-
canInsertNode: () =>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
deleteProps: () => A,
|
|
29
|
+
VueRenderer: () => X,
|
|
30
|
+
callOrReturn: () => De,
|
|
31
|
+
canInsertNode: () => Ot,
|
|
32
|
+
combineTransactionSteps: () => Pt,
|
|
33
|
+
commands: () => je,
|
|
34
|
+
createAtomBlockMarkdownSpec: () => Mt,
|
|
35
|
+
createBlockMarkdownSpec: () => de,
|
|
36
|
+
createChainableState: () => ue,
|
|
37
|
+
createDocument: () => At,
|
|
38
|
+
createElement: () => W,
|
|
39
|
+
createInlineMarkdownSpec: () => pe,
|
|
40
|
+
createMappablePosition: () => g,
|
|
41
|
+
createNodeFromContent: () => m,
|
|
42
|
+
createStyleTag: () => I,
|
|
43
|
+
decodeHtmlEntities: () => Qe,
|
|
44
|
+
defaultBlockAt: () => oe,
|
|
45
|
+
deleteProps: () => Xe,
|
|
47
46
|
elementFromString: () => M,
|
|
48
|
-
encodeHtmlEntities: () =>
|
|
49
|
-
escapeForRegEx: () =>
|
|
50
|
-
extensions: () =>
|
|
51
|
-
findChildren: () =>
|
|
52
|
-
findChildrenInRange: () =>
|
|
53
|
-
findDuplicates: () =>
|
|
54
|
-
findParentNode: () =>
|
|
55
|
-
findParentNodeClosestToPos: () =>
|
|
56
|
-
flattenExtensions: () =>
|
|
57
|
-
fromString: () =>
|
|
58
|
-
generateHTML: () =>
|
|
59
|
-
generateJSON: () =>
|
|
60
|
-
generateText: () =>
|
|
61
|
-
getAttributes: () =>
|
|
62
|
-
getAttributesFromExtensions: () =>
|
|
63
|
-
getChangedRanges: () =>
|
|
47
|
+
encodeHtmlEntities: () => P,
|
|
48
|
+
escapeForRegEx: () => R,
|
|
49
|
+
extensions: () => v,
|
|
50
|
+
findChildren: () => w,
|
|
51
|
+
findChildrenInRange: () => A,
|
|
52
|
+
findDuplicates: () => H,
|
|
53
|
+
findParentNode: () => It,
|
|
54
|
+
findParentNodeClosestToPos: () => ce,
|
|
55
|
+
flattenExtensions: () => _e,
|
|
56
|
+
fromString: () => S,
|
|
57
|
+
generateHTML: () => he,
|
|
58
|
+
generateJSON: () => ye,
|
|
59
|
+
generateText: () => b,
|
|
60
|
+
getAttributes: () => O,
|
|
61
|
+
getAttributesFromExtensions: () => mt,
|
|
62
|
+
getChangedRanges: () => E,
|
|
64
63
|
getDebugJSON: () => Ce,
|
|
65
|
-
getExtensionField: () =>
|
|
66
|
-
getHTMLFromFragment: () =>
|
|
67
|
-
getMarkAttributes: () =>
|
|
68
|
-
getMarkRange: () =>
|
|
69
|
-
getMarkType: () =>
|
|
70
|
-
getMarksBetween: () =>
|
|
71
|
-
getNodeAtPosition: () =>
|
|
72
|
-
getNodeAttributes: () =>
|
|
73
|
-
getNodeType: () =>
|
|
74
|
-
getRenderedAttributes: () =>
|
|
75
|
-
getSchema: () =>
|
|
76
|
-
getSchemaByResolvedExtensions: () =>
|
|
77
|
-
getSchemaTypeByName: () =>
|
|
78
|
-
getSchemaTypeNameByName: () =>
|
|
79
|
-
getSplittedAttributes: () =>
|
|
80
|
-
getStyleProperty: () =>
|
|
81
|
-
getText: () =>
|
|
82
|
-
getTextBetween: () =>
|
|
83
|
-
getTextContentFromNodes: () =>
|
|
84
|
-
getTextSerializersFromSchema: () =>
|
|
85
|
-
getUpdatedPosition: () =>
|
|
86
|
-
h: () =>
|
|
87
|
-
injectExtensionAttributesToParseRule: () =>
|
|
88
|
-
inputRulesPlugin: () =>
|
|
89
|
-
isActive: () =>
|
|
90
|
-
isAndroid: () =>
|
|
91
|
-
isAtEndOfNode: () =>
|
|
92
|
-
isAtStartOfNode: () =>
|
|
93
|
-
isEmptyObject: () =>
|
|
94
|
-
isExtensionRulesEnabled: () =>
|
|
95
|
-
isFirefox: () =>
|
|
96
|
-
isFunction: () =>
|
|
97
|
-
isList: () =>
|
|
98
|
-
isMacOS: () =>
|
|
99
|
-
isMarkActive: () =>
|
|
100
|
-
isNodeActive: () =>
|
|
64
|
+
getExtensionField: () => xe,
|
|
65
|
+
getHTMLFromFragment: () => Te,
|
|
66
|
+
getMarkAttributes: () => B,
|
|
67
|
+
getMarkRange: () => ie,
|
|
68
|
+
getMarkType: () => Be,
|
|
69
|
+
getMarksBetween: () => wt,
|
|
70
|
+
getNodeAtPosition: () => st,
|
|
71
|
+
getNodeAttributes: () => vt,
|
|
72
|
+
getNodeType: () => Ye,
|
|
73
|
+
getRenderedAttributes: () => Ae,
|
|
74
|
+
getSchema: () => ut,
|
|
75
|
+
getSchemaByResolvedExtensions: () => xt,
|
|
76
|
+
getSchemaTypeByName: () => Fe,
|
|
77
|
+
getSchemaTypeNameByName: () => tt,
|
|
78
|
+
getSplittedAttributes: () => Dt,
|
|
79
|
+
getStyleProperty: () => Re,
|
|
80
|
+
getText: () => He,
|
|
81
|
+
getTextBetween: () => pt,
|
|
82
|
+
getTextContentFromNodes: () => it,
|
|
83
|
+
getTextSerializersFromSchema: () => Ke,
|
|
84
|
+
getUpdatedPosition: () => We,
|
|
85
|
+
h: () => W,
|
|
86
|
+
injectExtensionAttributesToParseRule: () => kt,
|
|
87
|
+
inputRulesPlugin: () => Ft,
|
|
88
|
+
isActive: () => Me,
|
|
89
|
+
isAndroid: () => Nt,
|
|
90
|
+
isAtEndOfNode: () => fe,
|
|
91
|
+
isAtStartOfNode: () => p,
|
|
92
|
+
isEmptyObject: () => jt,
|
|
93
|
+
isExtensionRulesEnabled: () => me,
|
|
94
|
+
isFirefox: () => _,
|
|
95
|
+
isFunction: () => h,
|
|
96
|
+
isList: () => L,
|
|
97
|
+
isMacOS: () => $e,
|
|
98
|
+
isMarkActive: () => se,
|
|
99
|
+
isNodeActive: () => Ze,
|
|
101
100
|
isNodeEmpty: () => N,
|
|
102
|
-
isNodeSelection: () =>
|
|
103
|
-
isNodeViewSelected: () =>
|
|
104
|
-
isNumber: () =>
|
|
105
|
-
isPlainObject: () =>
|
|
106
|
-
isRegExp: () =>
|
|
107
|
-
isSafari: () =>
|
|
108
|
-
isString: () =>
|
|
109
|
-
isTextSelection: () =>
|
|
110
|
-
isiOS: () =>
|
|
111
|
-
markInputRule: () =>
|
|
112
|
-
markPasteRule: () =>
|
|
113
|
-
markViewProps: () =>
|
|
114
|
-
markdown: () =>
|
|
115
|
-
mergeAttributes: () =>
|
|
116
|
-
mergeDeep: () =>
|
|
117
|
-
minMax: () =>
|
|
118
|
-
nodeInputRule: () =>
|
|
101
|
+
isNodeSelection: () => F,
|
|
102
|
+
isNodeViewSelected: () => z,
|
|
103
|
+
isNumber: () => y,
|
|
104
|
+
isPlainObject: () => T,
|
|
105
|
+
isRegExp: () => j,
|
|
106
|
+
isSafari: () => U,
|
|
107
|
+
isString: () => Lt,
|
|
108
|
+
isTextSelection: () => le,
|
|
109
|
+
isiOS: () => ve,
|
|
110
|
+
markInputRule: () => C,
|
|
111
|
+
markPasteRule: () => ge,
|
|
112
|
+
markViewProps: () => Z,
|
|
113
|
+
markdown: () => be,
|
|
114
|
+
mergeAttributes: () => x,
|
|
115
|
+
mergeDeep: () => k,
|
|
116
|
+
minMax: () => ht,
|
|
117
|
+
nodeInputRule: () => D,
|
|
119
118
|
nodePasteRule: () => we,
|
|
120
|
-
nodeViewProps: () =>
|
|
121
|
-
objectIncludes: () =>
|
|
122
|
-
parseAttributes: () =>
|
|
123
|
-
parseIndentedBlocks: () =>
|
|
124
|
-
pasteRulesPlugin: () =>
|
|
125
|
-
posToDOMRect: () =>
|
|
126
|
-
removeDuplicates: () =>
|
|
127
|
-
renderNestedMarkdownContent: () =>
|
|
128
|
-
resolveExtensions: () =>
|
|
129
|
-
resolveFocusPosition: () =>
|
|
130
|
-
rewriteUnknownContent: () =>
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
wrappingInputRule: () => qe
|
|
119
|
+
nodeViewProps: () => Wt,
|
|
120
|
+
objectIncludes: () => Se,
|
|
121
|
+
parseAttributes: () => Ee,
|
|
122
|
+
parseIndentedBlocks: () => V,
|
|
123
|
+
pasteRulesPlugin: () => ae,
|
|
124
|
+
posToDOMRect: () => ze,
|
|
125
|
+
removeDuplicates: () => Ct,
|
|
126
|
+
renderNestedMarkdownContent: () => ot,
|
|
127
|
+
resolveExtensions: () => _t,
|
|
128
|
+
resolveFocusPosition: () => Je,
|
|
129
|
+
rewriteUnknownContent: () => ke,
|
|
130
|
+
selectionToInsertionEnd: () => lt,
|
|
131
|
+
serializeAttributes: () => bt,
|
|
132
|
+
sortExtensions: () => Pe,
|
|
133
|
+
splitExtensions: () => et,
|
|
134
|
+
textInputRule: () => Et,
|
|
135
|
+
textPasteRule: () => Le,
|
|
136
|
+
textblockTypeInputRule: () => Ve,
|
|
137
|
+
updateMarkViewAttributes: () => ft,
|
|
138
|
+
useEditor: () => Vt,
|
|
139
|
+
wrappingInputRule: () => rt
|
|
142
140
|
});
|
|
143
|
-
function
|
|
141
|
+
function q(e) {
|
|
144
142
|
return i((t, n) => ({
|
|
145
143
|
get() {
|
|
146
144
|
return t(), e;
|
|
@@ -154,9 +152,9 @@ function J(e) {
|
|
|
154
152
|
}
|
|
155
153
|
}));
|
|
156
154
|
}
|
|
157
|
-
var
|
|
155
|
+
var J = class extends at {
|
|
158
156
|
constructor(e = {}) {
|
|
159
|
-
return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState =
|
|
157
|
+
return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState = q(this.view.state), this.reactiveExtensionStorage = q(this.extensionStorage), this.on("beforeTransaction", ({ nextState: e }) => {
|
|
160
158
|
this.reactiveState.value = e, this.reactiveExtensionStorage.value = this.extensionStorage;
|
|
161
159
|
}), o(this);
|
|
162
160
|
}
|
|
@@ -174,7 +172,7 @@ var Y = class extends ut {
|
|
|
174
172
|
let t = super.unregisterPlugin(e);
|
|
175
173
|
return this.reactiveState && t && (this.reactiveState.value = t), t;
|
|
176
174
|
}
|
|
177
|
-
},
|
|
175
|
+
}, zt = u({
|
|
178
176
|
name: "EditorContent",
|
|
179
177
|
props: { editor: {
|
|
180
178
|
default: null,
|
|
@@ -202,7 +200,7 @@ var Y = class extends ut {
|
|
|
202
200
|
this.rootEl = e;
|
|
203
201
|
} });
|
|
204
202
|
}
|
|
205
|
-
}),
|
|
203
|
+
}), Bt = u({
|
|
206
204
|
name: "NodeViewContent",
|
|
207
205
|
props: { as: {
|
|
208
206
|
type: String,
|
|
@@ -214,7 +212,7 @@ var Y = class extends ut {
|
|
|
214
212
|
"data-node-view-content": ""
|
|
215
213
|
});
|
|
216
214
|
}
|
|
217
|
-
}),
|
|
215
|
+
}), Y = u({
|
|
218
216
|
name: "NodeViewWrapper",
|
|
219
217
|
props: { as: {
|
|
220
218
|
type: String,
|
|
@@ -230,15 +228,15 @@ var Y = class extends ut {
|
|
|
230
228
|
onDragstart: this.onDragStart
|
|
231
229
|
}, (e = this.$slots).default?.call(e));
|
|
232
230
|
}
|
|
233
|
-
}),
|
|
231
|
+
}), Vt = (e = {}) => {
|
|
234
232
|
let t = te();
|
|
235
233
|
return ee(() => {
|
|
236
|
-
t.value = new
|
|
234
|
+
t.value = new J(e);
|
|
237
235
|
}), n(() => {
|
|
238
236
|
var e;
|
|
239
237
|
(e = t.value) == null || e.destroy();
|
|
240
238
|
}), t;
|
|
241
|
-
},
|
|
239
|
+
}, X = class {
|
|
242
240
|
constructor(e, { props: t = {}, editor: n }) {
|
|
243
241
|
this.destroyed = !1, this.editor = n, this.component = o(e), this.el = document.createElement("div"), this.props = a(t), this.renderedComponent = this.renderComponent();
|
|
244
242
|
}
|
|
@@ -267,7 +265,7 @@ var Y = class extends ut {
|
|
|
267
265
|
destroy() {
|
|
268
266
|
this.destroyed || (this.destroyed = !0, this.renderedComponent.destroy());
|
|
269
267
|
}
|
|
270
|
-
},
|
|
268
|
+
}, Z = {
|
|
271
269
|
editor: {
|
|
272
270
|
type: Object,
|
|
273
271
|
required: !0
|
|
@@ -296,7 +294,7 @@ var Y = class extends ut {
|
|
|
296
294
|
type: Object,
|
|
297
295
|
required: !0
|
|
298
296
|
}
|
|
299
|
-
},
|
|
297
|
+
}, Ht = u({
|
|
300
298
|
name: "MarkViewContent",
|
|
301
299
|
props: { as: {
|
|
302
300
|
type: String,
|
|
@@ -308,7 +306,7 @@ var Y = class extends ut {
|
|
|
308
306
|
"data-mark-view-content": ""
|
|
309
307
|
});
|
|
310
308
|
}
|
|
311
|
-
}), Q = class extends
|
|
309
|
+
}), Q = class extends K {
|
|
312
310
|
constructor(e, t, n) {
|
|
313
311
|
super(e, t, n);
|
|
314
312
|
let r = {
|
|
@@ -324,7 +322,7 @@ var Y = class extends ut {
|
|
|
324
322
|
__name: e.__name,
|
|
325
323
|
__file: e.__file
|
|
326
324
|
});
|
|
327
|
-
this.renderer = new
|
|
325
|
+
this.renderer = new X(i, {
|
|
328
326
|
editor: this.editor,
|
|
329
327
|
props: r
|
|
330
328
|
});
|
|
@@ -343,10 +341,10 @@ var Y = class extends ut {
|
|
|
343
341
|
this.renderer.destroy();
|
|
344
342
|
}
|
|
345
343
|
};
|
|
346
|
-
function
|
|
344
|
+
function Ut(e, t = {}) {
|
|
347
345
|
return (n) => n.editor.contentComponent ? new Q(e, n, t) : {};
|
|
348
346
|
}
|
|
349
|
-
var
|
|
347
|
+
var Wt = {
|
|
350
348
|
editor: {
|
|
351
349
|
type: Object,
|
|
352
350
|
required: !0
|
|
@@ -391,9 +389,12 @@ var Kt = {
|
|
|
391
389
|
type: Object,
|
|
392
390
|
required: !0
|
|
393
391
|
}
|
|
394
|
-
},
|
|
395
|
-
constructor() {
|
|
396
|
-
super(
|
|
392
|
+
}, Gt = class extends G {
|
|
393
|
+
constructor(e, t, n) {
|
|
394
|
+
super(e, t, n), this.cachedExtensionWithSyncedStorage = null, this.handlePositionUpdate = () => {
|
|
395
|
+
let e = this.getPos();
|
|
396
|
+
typeof e != "number" || e === this.currentPos || (this.currentPos = e, this.renderer.updateProps({ getPos: () => this.getPos() }));
|
|
397
|
+
}, this.options.trackNodeViewPosition && this.editor.on("update", this.handlePositionUpdate);
|
|
397
398
|
}
|
|
398
399
|
get extensionWithSyncedStorage() {
|
|
399
400
|
if (!this.cachedExtensionWithSyncedStorage) {
|
|
@@ -417,28 +418,24 @@ var Kt = {
|
|
|
417
418
|
getPos: () => this.getPos(),
|
|
418
419
|
updateAttributes: (e = {}) => this.updateAttributes(e),
|
|
419
420
|
deleteNode: () => this.deleteNode()
|
|
420
|
-
}, t = this.onDragStart.bind(this);
|
|
421
|
+
}, t = e, n = this.onDragStart.bind(this);
|
|
421
422
|
this.decorationClasses = l(this.getDecorationClasses());
|
|
422
|
-
let
|
|
423
|
+
let r = u({
|
|
423
424
|
extends: { ...this.component },
|
|
424
425
|
props: Object.keys(e),
|
|
425
426
|
template: this.component.template,
|
|
426
427
|
setup: (e) => {
|
|
427
|
-
var
|
|
428
|
-
return d("onDragStart",
|
|
428
|
+
var t;
|
|
429
|
+
return d("onDragStart", n), d("decorationClasses", this.decorationClasses), (t = this.component).setup?.call(t, e, { expose: () => void 0 });
|
|
429
430
|
},
|
|
430
431
|
__scopeId: this.component.__scopeId,
|
|
431
432
|
__cssModules: this.component.__cssModules,
|
|
432
433
|
__name: this.component.__name,
|
|
433
434
|
__file: this.component.__file
|
|
434
435
|
});
|
|
435
|
-
this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this), this.editor.on("selectionUpdate", this.handleSelectionUpdate), this.currentPos = this.getPos(), this.
|
|
436
|
-
if (!this.renderer) return;
|
|
437
|
-
let e = this.getPos();
|
|
438
|
-
typeof e != "number" || e === this.currentPos || (this.currentPos = e, this.renderer.updateProps({ getPos: () => this.getPos() }));
|
|
439
|
-
}, W(this.editor, this.positionCheckCallback), this.renderer = new Z(n, {
|
|
436
|
+
this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this), this.editor.on("selectionUpdate", this.handleSelectionUpdate), this.currentPos = this.getPos(), this.renderer = new X(r, {
|
|
440
437
|
editor: this.editor,
|
|
441
|
-
props:
|
|
438
|
+
props: t
|
|
442
439
|
});
|
|
443
440
|
}
|
|
444
441
|
get dom() {
|
|
@@ -450,7 +447,7 @@ var Kt = {
|
|
|
450
447
|
}
|
|
451
448
|
handleSelectionUpdate() {
|
|
452
449
|
let e = this.getPos();
|
|
453
|
-
if (typeof e == "number") if (
|
|
450
|
+
if (typeof e == "number") if (z({
|
|
454
451
|
selection: this.editor.state.selection,
|
|
455
452
|
pos: e,
|
|
456
453
|
nodeSize: this.node.nodeSize,
|
|
@@ -469,7 +466,7 @@ var Kt = {
|
|
|
469
466
|
};
|
|
470
467
|
if (typeof this.options.update == "function") {
|
|
471
468
|
let i = this.node, a = this.decorations, o = this.innerDecorations;
|
|
472
|
-
return this.node = e, this.decorations = t, this.innerDecorations = n, this.
|
|
469
|
+
return this.node = e, this.decorations = t, this.innerDecorations = n, this.options.update({
|
|
473
470
|
oldNode: i,
|
|
474
471
|
oldDecorations: a,
|
|
475
472
|
newNode: e,
|
|
@@ -485,19 +482,15 @@ var Kt = {
|
|
|
485
482
|
});
|
|
486
483
|
}
|
|
487
484
|
if (e.type !== this.node.type) return !1;
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
decorations: t,
|
|
492
|
-
innerDecorations: n,
|
|
493
|
-
extension: this.extensionWithSyncedStorage,
|
|
494
|
-
getPos: () => this.getPos()
|
|
495
|
-
}), !0) : (this.node = e, this.decorations = t, this.innerDecorations = n, this.currentPos = i, r({
|
|
485
|
+
if (e === this.node) return this.node = e, this.decorations = t, this.innerDecorations = n, this.decorationClasses.value = this.getDecorationClasses(), !0;
|
|
486
|
+
this.node = e, this.decorations = t, this.innerDecorations = n, this.currentPos = this.getPos();
|
|
487
|
+
let i = {
|
|
496
488
|
node: e,
|
|
497
489
|
decorations: t,
|
|
498
490
|
innerDecorations: n,
|
|
499
491
|
extension: this.extensionWithSyncedStorage
|
|
500
|
-
}
|
|
492
|
+
};
|
|
493
|
+
return this.options.trackNodeViewPosition && (i.getPos = () => this.getPos()), r(i), !0;
|
|
501
494
|
}
|
|
502
495
|
selectNode() {
|
|
503
496
|
this.renderer.updateProps({ selected: !0 }), this.renderer.element && this.renderer.element.classList.add("ProseMirror-selectednode");
|
|
@@ -509,11 +502,11 @@ var Kt = {
|
|
|
509
502
|
return this.decorations.flatMap((e) => e.type.attrs.class).join(" ");
|
|
510
503
|
}
|
|
511
504
|
destroy() {
|
|
512
|
-
this.renderer.destroy(), this.editor.off("selectionUpdate", this.handleSelectionUpdate), this.
|
|
505
|
+
this.renderer.destroy(), this.editor.off("selectionUpdate", this.handleSelectionUpdate), this.options.trackNodeViewPosition && this.editor.off("update", this.handlePositionUpdate);
|
|
513
506
|
}
|
|
514
507
|
};
|
|
515
508
|
function $(e, t) {
|
|
516
|
-
return (n) => n.editor.contentComponent ? new
|
|
509
|
+
return (n) => n.editor.contentComponent ? new Gt(typeof e == "function" && "__vccOpts" in e ? e.__vccOpts : e, n, t) : {};
|
|
517
510
|
}
|
|
518
511
|
//#endregion
|
|
519
|
-
export { $ as n,
|
|
512
|
+
export { $ as n, Rt as r, Y as t };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Color as e } from "./dist-C0jo8wtG.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@tiptap+extension-color@3.23.6_@tiptap+extension-text-style@3.23.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6__/node_modules/@tiptap/extension-color/dist/index.js
|
|
3
|
+
var t = e;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { e as Color, t as default };
|