@templatical/editor 0.56.0 → 0.56.1
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/{AiAltTextPopover-DdsvhE78.js → AiAltTextPopover-CpZ7UeAZ.js} +3 -3
- package/dist/{AiAltTextReview-P6to1_0t.js → AiAltTextReview-LYxvn7Qe.js} +4 -4
- package/dist/{AiChatPanel-BSlmzMRC.js → AiChatPanel-Cy05P-iO.js} +53 -53
- package/dist/{AiPanels-DAsnX-a3.js → AiPanels-CwKmXzyr.js} +1 -1
- package/dist/{AiRewriteMenu-DIISOR6U.js → AiRewriteMenu-DgqJHnza.js} +8 -8
- package/dist/{BlockIssueBadge-Bmtc50BQ.js → BlockIssueBadge-CxHJmuOh.js} +3 -3
- package/dist/{BlockPreviewCanvas-BYIzNn-9.js → BlockPreviewCanvas-DEmNZkEG.js} +44 -44
- package/dist/{CloudPanels-w34W8_BP.js → CloudPanels-Bmlf05Il.js} +11 -11
- package/dist/{CollaborationNotices-HTbCebjV.js → CollaborationNotices-C27GCMvK.js} +7 -7
- package/dist/{CommentsPanel-C5qG17Ki.js → CommentsPanel-B5NqPMmY.js} +1 -1
- package/dist/{CommentsSidebar-C7CWcUYZ.js → CommentsSidebar-BDrcrDxS.js} +42 -42
- package/dist/{CountdownBlock-BTXcCvjZ.js → CountdownBlock-D8dqjm3F.js} +6 -6
- package/dist/{CountdownToolbar-CP-pkntQ.js → CountdownToolbar-IjpCOjCd.js} +30 -30
- package/dist/{IssuesPanel-CiiNBzH0.js → IssuesPanel-uwuzeMSW.js} +87 -87
- package/dist/LanguageMenu-C-eQ0lFy.js +403 -0
- package/dist/{LocaleNotices-CTCZ7BYv.js → LocaleNotices-CDK_9D7P.js} +8 -8
- package/dist/{LogicTagInsertButton-DEOPc4RC.js → LogicTagInsertButton-BSolF7Fd.js} +3 -3
- package/dist/{MediaEditModal-DJsPLTwP.js → MediaEditModal-C8yc9dxt.js} +7 -7
- package/dist/{MediaPanels-D2WD2aE2.js → MediaPanels-FI4I8asn.js} +1 -1
- package/dist/{MergeTagInput-C9icdxw7.js → MergeTagInput-B1nl2ZMT.js} +12 -12
- package/dist/{MergeTagTextarea-CrAcmT3A.js → MergeTagTextarea-DJlf3VbS.js} +1 -1
- package/dist/{ParagraphEditor-BWBQ3jKz.js → ParagraphEditor-Dqco128s.js} +156 -156
- package/dist/{RestoreVersionDialog-CqAp16yQ.js → RestoreVersionDialog-hqLCuGV5.js} +12 -12
- package/dist/{RichTextEditorContent-xbBjVPVQ.js → RichTextEditorContent-xIEF0Y3Z.js} +2 -2
- package/dist/{SaveBlockDialog-pebNJBTc.js → SaveBlockDialog-CQlCP_XC.js} +46 -46
- package/dist/{SavedBlocksBrowserModal-CvagMcv7.js → SavedBlocksBrowserModal-BXA32Fx6.js} +23 -23
- package/dist/{SavedBlocksPanels-B9AAVBDm.js → SavedBlocksPanels-BKUzbamj.js} +1 -1
- package/dist/{SavedBlocksPickBar-BIANWe3i.js → SavedBlocksPickBar-BlvF-4UF.js} +9 -9
- package/dist/{TemplateSettings-ORq4PbCN.js → TemplateSettings-CYFtR8zv.js} +41 -41
- package/dist/{TestEmailModal-DRjCpcPl.js → TestEmailModal-BbaL17HO.js} +20 -20
- package/dist/{TestEmailPanel-H0v8El__.js → TestEmailPanel-DhB1CSpg.js} +1 -1
- package/dist/{TitleEditor-CEGbJXeU.js → TitleEditor-3BRl8u5l.js} +21 -21
- package/dist/{Toolbar-XT-uGA9J.js → Toolbar-pzNIakGM.js} +656 -656
- package/dist/{TplModal-7NQq5-VW.js → TplModal-WNuWhHZm.js} +4 -4
- package/dist/{VersionHistoryMenu-C8BE3Pr-.js → VersionHistoryMenu--T-Qp_mH.js} +15 -15
- package/dist/{VersionHistoryPanels-CuKuOSJG.js → VersionHistoryPanels-BPubvYIE.js} +1 -1
- package/dist/{VersionPreviewBanner-BVFBkveR.js → VersionPreviewBanner-ClL3Wkln.js} +7 -7
- package/dist/{WrapperBlock-Bdw-072t.js → WrapperBlock-CjfCPceb.js} +11 -11
- package/dist/{blockTypeIcons-CGplGmmr.js → blockTypeIcons-12OMwVyN.js} +1 -1
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiAltTextPopover-x999Gimz.js → AiAltTextPopover-PFjTrl0y.js} +4 -4
- package/dist/cdn/chunks/{AiAltTextPopover-x999Gimz.js.map → AiAltTextPopover-PFjTrl0y.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-DjnFz1wO.js → AiAltTextReview-BMjzvApH.js} +5 -5
- package/dist/cdn/chunks/{AiAltTextReview-DjnFz1wO.js.map → AiAltTextReview-BMjzvApH.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-DKDu9cs7.js → AiChatPanel-C2gpq4kP.js} +107 -107
- package/dist/cdn/chunks/{AiChatPanel-DKDu9cs7.js.map → AiChatPanel-C2gpq4kP.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-jMLVaiKx.js → AiPanels-Cx3PE2mE.js} +2 -2
- package/dist/cdn/chunks/{AiPanels-jMLVaiKx.js.map → AiPanels-Cx3PE2mE.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-s79rmHFy.js → AiRewriteMenu-CnkyjPEu.js} +11 -11
- package/dist/cdn/chunks/{AiRewriteMenu-s79rmHFy.js.map → AiRewriteMenu-CnkyjPEu.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-Bnmq_M4G.js → BlockIssueBadge-DncZ-HDf.js} +4 -4
- package/dist/cdn/chunks/{BlockIssueBadge-Bnmq_M4G.js.map → BlockIssueBadge-DncZ-HDf.js.map} +1 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-CCSEzL46.js +156 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-B3HkuENF.js.map → BlockPreviewCanvas-CCSEzL46.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-DQnlH_YJ.js → CloudPanels-CRztnw4M.js} +2 -2
- package/dist/cdn/chunks/{CloudPanels-DQnlH_YJ.js.map → CloudPanels-CRztnw4M.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-CHqUGhOZ.js → CollaborationNotices-IuLYT2x7.js} +8 -8
- package/dist/cdn/chunks/{CollaborationNotices-CHqUGhOZ.js.map → CollaborationNotices-IuLYT2x7.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-EtdTzTmq.js → CommentsPanel-lgjJNrrY.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-EtdTzTmq.js.map → CommentsPanel-lgjJNrrY.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-Qmj049QX.js → CommentsSidebar-DTold7iy.js} +214 -214
- package/dist/cdn/chunks/{CommentsSidebar-Qmj049QX.js.map → CommentsSidebar-DTold7iy.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-DyGsh92b.js → CountdownBlock-8aPSExrv.js} +7 -7
- package/dist/cdn/chunks/{CountdownBlock-DyGsh92b.js.map → CountdownBlock-8aPSExrv.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-Ddj2erNm.js → CountdownToolbar-CnWQEW5g.js} +50 -50
- package/dist/cdn/chunks/{CountdownToolbar-Ddj2erNm.js.map → CountdownToolbar-CnWQEW5g.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DnSnEh1X.js → IssuesPanel-CrplCzo8.js} +11 -11
- package/dist/cdn/chunks/{IssuesPanel-DnSnEh1X.js.map → IssuesPanel-CrplCzo8.js.map} +1 -1
- package/dist/cdn/chunks/{LanguageMenu-C2I_yTL5.js → LanguageMenu-B6MNInCL.js} +110 -110
- package/dist/cdn/chunks/{LanguageMenu-C2I_yTL5.js.map → LanguageMenu-B6MNInCL.js.map} +1 -1
- package/dist/cdn/chunks/{LocaleNotices-Dr9LRCAg.js → LocaleNotices-TxeAl8Iq.js} +9 -9
- package/dist/cdn/chunks/{LocaleNotices-Dr9LRCAg.js.map → LocaleNotices-TxeAl8Iq.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-BdzE9-l7.js → LogicTagInsertButton-DvSVx2DB.js} +4 -4
- package/dist/cdn/chunks/{LogicTagInsertButton-BdzE9-l7.js.map → LogicTagInsertButton-DvSVx2DB.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-CMJFXu_o.js → MediaEditModal-tGK6htBl.js} +8 -8
- package/dist/cdn/chunks/{MediaEditModal-CMJFXu_o.js.map → MediaEditModal-tGK6htBl.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-C790ZXuY.js → MediaPanels-BVrQYz2C.js} +2 -2
- package/dist/cdn/chunks/{MediaPanels-C790ZXuY.js.map → MediaPanels-BVrQYz2C.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-CmrX8Md6.js → MergeTagInput-DeuNH3re.js} +13 -13
- package/dist/cdn/chunks/{MergeTagInput-CmrX8Md6.js.map → MergeTagInput-DeuNH3re.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-KOnd2teB.js → MergeTagTextarea-B2xxIU3e.js} +2 -2
- package/dist/cdn/chunks/{MergeTagTextarea-KOnd2teB.js.map → MergeTagTextarea-B2xxIU3e.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-I9lbKaPk.js → ParagraphEditor-Bx_Hlw8d.js} +106 -106
- package/dist/cdn/chunks/{ParagraphEditor-I9lbKaPk.js.map → ParagraphEditor-Bx_Hlw8d.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-DqbULAbc.js → RestoreVersionDialog-CPrrWTsT.js} +12 -12
- package/dist/cdn/chunks/{RestoreVersionDialog-DqbULAbc.js.map → RestoreVersionDialog-CPrrWTsT.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-_O22z0pn.js → RichTextEditorContent-Dze4C9VI.js} +3 -3
- package/dist/cdn/chunks/{RichTextEditorContent-_O22z0pn.js.map → RichTextEditorContent-Dze4C9VI.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CClRLXgF.js → SaveBlockDialog-CXVwnfsy.js} +51 -51
- package/dist/cdn/chunks/{SaveBlockDialog-CClRLXgF.js.map → SaveBlockDialog-CXVwnfsy.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BIaxaxw9.js → SavedBlocksBrowserModal-BDTmenOE.js} +23 -23
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BIaxaxw9.js.map → SavedBlocksBrowserModal-BDTmenOE.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-Dfu9N6YW.js → SavedBlocksPanels-B41Rk_v1.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-Dfu9N6YW.js.map → SavedBlocksPanels-B41Rk_v1.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DiMW_dbJ.js → SavedBlocksPickBar-B97z_rFH.js} +11 -11
- package/dist/cdn/chunks/{SavedBlocksPickBar-DiMW_dbJ.js.map → SavedBlocksPickBar-B97z_rFH.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-JMUo0LIV.js → TemplateSettings-YwwRbxPc.js} +102 -102
- package/dist/cdn/chunks/{TemplateSettings-JMUo0LIV.js.map → TemplateSettings-YwwRbxPc.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-D52VtwBZ.js → TestEmailModal-BiFP2Cbx.js} +20 -20
- package/dist/cdn/chunks/{TestEmailModal-D52VtwBZ.js.map → TestEmailModal-BiFP2Cbx.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-D9ezVDHd.js → TestEmailPanel-BrivPMk2.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-D9ezVDHd.js.map → TestEmailPanel-BrivPMk2.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-D04vvbUc.js → TitleEditor-CzPkkL2s.js} +19 -19
- package/dist/cdn/chunks/{TitleEditor-D04vvbUc.js.map → TitleEditor-CzPkkL2s.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-C_Hfsher.js → Toolbar-VH07SzX7.js} +550 -550
- package/dist/cdn/chunks/{Toolbar-C_Hfsher.js.map → Toolbar-VH07SzX7.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-d6fEZGJ5.js → TplModal-DMe6J811.js} +6 -6
- package/dist/cdn/chunks/{TplModal-d6fEZGJ5.js.map → TplModal-DMe6J811.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-C8ucm43v.js → VersionHistoryMenu-DkwbKhBl.js} +15 -15
- package/dist/cdn/chunks/{VersionHistoryMenu-C8ucm43v.js.map → VersionHistoryMenu-DkwbKhBl.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-BAdzmhvH.js → VersionHistoryPanels-CgxhMRAl.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-BAdzmhvH.js.map → VersionHistoryPanels-CgxhMRAl.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-BWuovbFc.js → VersionPreviewBanner-WVBDBrwQ.js} +8 -8
- package/dist/cdn/chunks/{VersionPreviewBanner-BWuovbFc.js.map → VersionPreviewBanner-WVBDBrwQ.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-TXDSDXUP.js → WrapperBlock-CCCIcqe2.js} +12 -12
- package/dist/cdn/chunks/{WrapperBlock-TXDSDXUP.js.map → WrapperBlock-CCCIcqe2.js.map} +1 -1
- package/dist/cdn/chunks/{composables-CsfQlmcf.js → composables-D3lsO7Io.js} +925 -925
- package/dist/cdn/chunks/composables-D3lsO7Io.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-PpIFCDfj.js → createCloudRuntime-CE79GB1H.js} +15 -15
- package/dist/cdn/chunks/{createCloudRuntime-PpIFCDfj.js.map → createCloudRuntime-CE79GB1H.js.map} +1 -1
- package/dist/cdn/chunks/dist-Cf1pSluo.js +405 -0
- package/dist/cdn/chunks/{dist-DqGgijFI.js.map → dist-Cf1pSluo.js.map} +1 -1
- package/dist/cdn/chunks/{editor-modal-B8UE9V8B.js → editor-modal-CN69NlOK.js} +170 -170
- package/dist/cdn/chunks/{editor-modal-B8UE9V8B.js.map → editor-modal-CN69NlOK.js.map} +1 -1
- package/dist/cdn/chunks/en-Bcz4gS9U.js +1 -0
- package/dist/cdn/chunks/{extensions-BM6ZSnsQ.js → extensions-8dlM-fU4.js} +96 -96
- package/dist/cdn/chunks/{extensions-BM6ZSnsQ.js.map → extensions-8dlM-fU4.js.map} +1 -1
- package/dist/cdn/chunks/{sanitizeHtml-DJI7vvET.js → sanitizeHtml-B3njfkSy.js} +11 -11
- package/dist/cdn/chunks/{sanitizeHtml-DJI7vvET.js.map → sanitizeHtml-B3njfkSy.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-Qw9rHc8C.js → socialIcons-BFgc3qqJ.js} +2 -2
- package/dist/cdn/chunks/{socialIcons-Qw9rHc8C.js.map → socialIcons-BFgc3qqJ.js.map} +1 -1
- package/dist/cdn/chunks/{src-Bfj1jHnn.js → src-GgKlXNxy.js} +2 -2
- package/dist/cdn/chunks/{src-Bfj1jHnn.js.map → src-GgKlXNxy.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-Dipw_zOQ.js → tiptap-C940SvId.js} +3 -3
- package/dist/cdn/chunks/{tiptap-Dipw_zOQ.js.map → tiptap-C940SvId.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-DLvWzWsp.js → useLogicTag-B0PDeDxl.js} +4 -4
- package/dist/cdn/chunks/{useLogicTag-DLvWzWsp.js.map → useLogicTag-B0PDeDxl.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-B4FHCGGm.js → useMergeTag-BSU75bKk.js} +7 -7
- package/dist/cdn/chunks/{useMergeTag-B4FHCGGm.js.map → useMergeTag-BSU75bKk.js.map} +1 -1
- package/dist/cdn/editor.js +325 -325
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{composables-CRX6rncm.js → composables-DreAt_0A.js} +1031 -1031
- package/dist/{createCloudRuntime-DplyIlsy.js → createCloudRuntime-CL4tUlDC.js} +14 -14
- package/dist/{dist-ChOb5XHW.js → dist-0GWMyHtM.js} +1 -1
- package/dist/{dist-6DU0me3E.js → dist-B_0FPmoy.js} +1 -1
- package/dist/{dist-B8dY8drK.js → dist-BjzK1g4Z.js} +1 -1
- package/dist/{dist-54VCNoC0.js → dist-BsumKKh9.js} +1 -1
- package/dist/{dist-BWflWcpW.js → dist-C3avsUq9.js} +2 -2
- package/dist/{dist-fqSers8_.js → dist-CCLRTtJP.js} +197 -197
- package/dist/dist-CiYotUR8.js +406 -0
- package/dist/{dist-C3hu_C3w.js → dist-Cr1CLCmx.js} +1 -1
- package/dist/{dist-D_XrUEET.js → dist-CsknfjrZ.js} +3 -3
- package/dist/{dist-TAv500j6.js → dist-DDytHU_6.js} +1 -1
- package/dist/{dist-CcOn7WCo.js → dist-DKV9m4Uu.js} +1 -1
- package/dist/{dist-B9a7iVye.js → dist-Dq9VnANT.js} +1 -1
- package/dist/{dist-DZ3X-uB8.js → dist-ZrT0vAB6.js} +1 -1
- package/dist/{editor-modal-D9HT9bD6.js → editor-modal-BD32TXws.js} +106 -106
- package/dist/en-Dgs_-NBw.js +1 -0
- package/dist/{extensions-Cm6K4SRX.js → extensions-DKxHlSd7.js} +179 -179
- package/dist/{socialIcons-CJD6OsI7.js → socialIcons-oo4uL16Y.js} +1 -1
- package/dist/templatical-editor.js +526 -526
- package/dist/{useLogicTag-DLkYos2Q.js → useLogicTag-B4Zpk3eo.js} +3 -3
- package/dist/{useMergeTag-IoWOO679.js → useMergeTag-B5qlq8px.js} +7 -7
- package/package.json +7 -7
- package/dist/LanguageMenu-B981Av-6.js +0 -403
- package/dist/cdn/chunks/BlockPreviewCanvas-B3HkuENF.js +0 -156
- package/dist/cdn/chunks/composables-CsfQlmcf.js.map +0 -1
- package/dist/cdn/chunks/dist-DqGgijFI.js +0 -405
- package/dist/cdn/chunks/en-CVxNoHww.js +0 -1
- package/dist/dist-0alKVRc_.js +0 -406
- package/dist/en-De3uAutQ.js +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { H as e, Kn as t, Qn as n, Zn as r, _n as i, m as a, qn as o, s, u as c, v as l } from "./dist-C3avsUq9.js";
|
|
2
|
+
import { a as u, c as d, s as f } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
|
|
3
|
+
import { Ft as p, M as m, Mt as h, O as g, Pt as _, U as v, W as y, Z as b, c as x, ct as S, d as C, et as w, f as T, l as E, u as D, y as O } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
|
|
4
|
+
import { t as k } from "./useI18n-zeWYtWSv.js";
|
|
5
|
+
import { t as A } from "./useMergeTag-B5qlq8px.js";
|
|
6
|
+
import { D as j, Yt as M, g as N, lt as P, ut as F, yt as I } from "./dist-BMUUt3zJ.js";
|
|
7
|
+
import { n as ee, t as te } from "./dist-CCLRTtJP.js";
|
|
8
|
+
import { a as ne, o as re, s as ie } from "./LogicTagInsertButton-BSolF7Fd.js";
|
|
9
9
|
// src/extensions/FontSize.ts
|
|
10
|
-
var ae =
|
|
10
|
+
var ae = s.create({
|
|
11
11
|
name: "fontSize",
|
|
12
12
|
addOptions() {
|
|
13
13
|
return { types: ["textStyle"] };
|
|
@@ -28,7 +28,7 @@ var ae = F.create({
|
|
|
28
28
|
unsetFontSize: () => ({ chain: e }) => e().setMark("textStyle", { fontSize: null }).removeEmptyTextStyle().run()
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
}), oe =
|
|
31
|
+
}), oe = s.create({
|
|
32
32
|
name: "letterSpacing",
|
|
33
33
|
addOptions() {
|
|
34
34
|
return { types: ["textStyle"] };
|
|
@@ -49,7 +49,7 @@ var ae = F.create({
|
|
|
49
49
|
unsetLetterSpacing: () => ({ chain: e }) => e().setMark("textStyle", { letterSpacing: null }).removeEmptyTextStyle().run()
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
}), se =
|
|
52
|
+
}), se = s.create({
|
|
53
53
|
name: "lineBoundaryKeys",
|
|
54
54
|
addKeyboardShortcuts() {
|
|
55
55
|
let e = (e) => ({ editor: t }) => {
|
|
@@ -63,7 +63,7 @@ var ae = F.create({
|
|
|
63
63
|
Home: e("backward")
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
}), ce =
|
|
66
|
+
}), ce = s.create({
|
|
67
67
|
name: "lineHeight",
|
|
68
68
|
addOptions() {
|
|
69
69
|
return {
|
|
@@ -91,7 +91,7 @@ var ae = F.create({
|
|
|
91
91
|
"aria-label",
|
|
92
92
|
"data-tooltip",
|
|
93
93
|
"onKeydown"
|
|
94
|
-
], ue = ["aria-label", "onKeydown"], de = ["aria-label"], fe = /* @__PURE__ */
|
|
94
|
+
], ue = ["aria-label", "onKeydown"], de = ["aria-label"], fe = /* @__PURE__ */ O({
|
|
95
95
|
__name: "LogicMergeTagNodeView",
|
|
96
96
|
props: {
|
|
97
97
|
node: {},
|
|
@@ -100,64 +100,64 @@ var ae = F.create({
|
|
|
100
100
|
deleteNode: { type: Function },
|
|
101
101
|
updateAttributes: { type: Function }
|
|
102
102
|
},
|
|
103
|
-
setup(
|
|
104
|
-
let
|
|
105
|
-
function
|
|
106
|
-
|
|
107
|
-
|
|
103
|
+
setup(e) {
|
|
104
|
+
let t = e, { syntax: n } = A(), { t: r } = k(), i = x(() => I(t.node.attrs.value, n)), a = x(() => P(t.node.attrs.value, n)), o = w(!1), s = w(""), c = w(null), l = !1;
|
|
105
|
+
function b() {
|
|
106
|
+
s.value = t.node.attrs.value, l = !1, o.value = !0, g(() => {
|
|
107
|
+
c.value?.focus(), c.value?.select();
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
if (
|
|
112
|
-
|
|
113
|
-
let e =
|
|
114
|
-
e && e !==
|
|
110
|
+
function O() {
|
|
111
|
+
if (l) return;
|
|
112
|
+
l = !0;
|
|
113
|
+
let e = s.value.trim();
|
|
114
|
+
e && e !== t.node.attrs.value && t.updateAttributes({
|
|
115
115
|
value: e,
|
|
116
|
-
keyword:
|
|
117
|
-
}),
|
|
116
|
+
keyword: I(e, n) ? P(e, n) : ""
|
|
117
|
+
}), o.value = !1;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
e.key === "Enter" ? (e.preventDefault(),
|
|
119
|
+
function j(e) {
|
|
120
|
+
e.key === "Enter" ? (e.preventDefault(), O()) : e.key === "Escape" && (o.value = !1);
|
|
121
121
|
}
|
|
122
|
-
return (
|
|
122
|
+
return (t, n) => (m(), D(S(te), {
|
|
123
123
|
as: "span",
|
|
124
|
-
class:
|
|
125
|
-
style: i
|
|
124
|
+
class: h(i.value ? "tpl-logic-merge-tag-node tpl:group tpl:mx-0.5 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.8em] tpl:font-bold tpl:tracking-wide tpl:uppercase tpl:select-none" : ""),
|
|
125
|
+
style: _(i.value ? "background-color: transparent; border: 1.5px solid color-mix(in srgb, var(--tpl-primary) 50%, transparent); color: var(--tpl-primary);" : ""),
|
|
126
126
|
contenteditable: "false"
|
|
127
127
|
}, {
|
|
128
|
-
default:
|
|
128
|
+
default: v(() => [o.value ? y((m(), T("input", {
|
|
129
129
|
key: 0,
|
|
130
130
|
ref_key: "inputRef",
|
|
131
|
-
ref:
|
|
132
|
-
"onUpdate:modelValue":
|
|
131
|
+
ref: c,
|
|
132
|
+
"onUpdate:modelValue": n[0] ||= (e) => s.value = e,
|
|
133
133
|
type: "text",
|
|
134
134
|
class: "tpl:w-40 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-0.5 tpl:py-0 tpl:text-[1em] tpl:font-medium tpl:normal-case tpl:outline-none tpl:text-[var(--tpl-primary)]",
|
|
135
|
-
onBlur:
|
|
136
|
-
onKeydown:
|
|
137
|
-
}, null, 544)), [[
|
|
135
|
+
onBlur: O,
|
|
136
|
+
onKeydown: j
|
|
137
|
+
}, null, 544)), [[u, s.value]]) : i.value ? (m(), T("span", {
|
|
138
138
|
key: 1,
|
|
139
139
|
role: "button",
|
|
140
140
|
tabindex: "0",
|
|
141
|
-
"aria-label":
|
|
141
|
+
"aria-label": S(r).mergeTag.editValue,
|
|
142
142
|
class: "tpl-tooltip tpl:cursor-pointer",
|
|
143
|
-
"data-tooltip":
|
|
144
|
-
onClick:
|
|
145
|
-
onKeydown: [
|
|
146
|
-
},
|
|
143
|
+
"data-tooltip": e.node.attrs.value,
|
|
144
|
+
onClick: d(b, ["stop"]),
|
|
145
|
+
onKeydown: [f(d(b, ["stop"]), ["enter"]), f(d(b, ["prevent", "stop"]), ["space"])]
|
|
146
|
+
}, p(a.value), 41, le)) : (m(), T("span", {
|
|
147
147
|
key: 2,
|
|
148
148
|
role: "button",
|
|
149
149
|
tabindex: "0",
|
|
150
|
-
"aria-label":
|
|
151
|
-
onClick:
|
|
152
|
-
onKeydown: [
|
|
153
|
-
}, e
|
|
150
|
+
"aria-label": S(r).mergeTag.editValue,
|
|
151
|
+
onClick: d(b, ["stop"]),
|
|
152
|
+
onKeydown: [f(d(b, ["stop"]), ["enter"]), f(d(b, ["prevent", "stop"]), ["space"])]
|
|
153
|
+
}, p(e.node.attrs.value), 41, ue)), i.value ? (m(), T("button", {
|
|
154
154
|
key: 3,
|
|
155
155
|
type: "button",
|
|
156
|
-
"aria-label":
|
|
156
|
+
"aria-label": S(r).mergeTag.deleteMergeTag,
|
|
157
157
|
class: "tpl-merge-tag-delete tpl:flex tpl:size-5 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:opacity-60 tpl:transition-all tpl:hover:opacity-100 tpl:text-[var(--tpl-primary)]",
|
|
158
158
|
contenteditable: "false",
|
|
159
|
-
onClick:
|
|
160
|
-
}, [...
|
|
159
|
+
onClick: n[1] ||= d((...t) => e.deleteNode && e.deleteNode(...t), ["stop", "prevent"])
|
|
160
|
+
}, [...n[2] ||= [E("svg", {
|
|
161
161
|
width: "10",
|
|
162
162
|
height: "10",
|
|
163
163
|
viewBox: "0 0 24 24",
|
|
@@ -165,17 +165,17 @@ var ae = F.create({
|
|
|
165
165
|
stroke: "currentColor",
|
|
166
166
|
"stroke-width": "3",
|
|
167
167
|
"aria-hidden": "true"
|
|
168
|
-
}, [
|
|
168
|
+
}, [E("line", {
|
|
169
169
|
x1: "18",
|
|
170
170
|
y1: "6",
|
|
171
171
|
x2: "6",
|
|
172
172
|
y2: "18"
|
|
173
|
-
}),
|
|
173
|
+
}), E("line", {
|
|
174
174
|
x1: "6",
|
|
175
175
|
y1: "6",
|
|
176
176
|
x2: "18",
|
|
177
177
|
y2: "18"
|
|
178
|
-
})], -1)]], 8, de)) :
|
|
178
|
+
})], -1)]], 8, de)) : C("", !0)]),
|
|
179
179
|
_: 1
|
|
180
180
|
}, 8, ["class", "style"]));
|
|
181
181
|
}
|
|
@@ -187,16 +187,16 @@ function pe(e, t) {
|
|
|
187
187
|
}
|
|
188
188
|
// src/extensions/renderVueNodeView.ts
|
|
189
189
|
function me(e) {
|
|
190
|
-
return
|
|
190
|
+
return ee(e);
|
|
191
191
|
}
|
|
192
192
|
// src/extensions/LogicMergeTagNode.ts
|
|
193
|
-
var he =
|
|
193
|
+
var he = a.create({
|
|
194
194
|
name: "logicMergeTagNode",
|
|
195
195
|
group: "inline",
|
|
196
196
|
inline: !0,
|
|
197
197
|
atom: !0,
|
|
198
198
|
addOptions() {
|
|
199
|
-
return { syntax:
|
|
199
|
+
return { syntax: N.liquid };
|
|
200
200
|
},
|
|
201
201
|
addAttributes() {
|
|
202
202
|
return {
|
|
@@ -216,15 +216,15 @@ var he = P.create({
|
|
|
216
216
|
return [{ tag: "span[data-logic-merge-tag]" }];
|
|
217
217
|
},
|
|
218
218
|
renderHTML({ node: e, HTMLAttributes: t }) {
|
|
219
|
-
if (!
|
|
219
|
+
if (!I(e.attrs.value, this.options.syntax)) return [
|
|
220
220
|
"span",
|
|
221
221
|
{},
|
|
222
222
|
e.attrs.value
|
|
223
223
|
];
|
|
224
|
-
let n =
|
|
224
|
+
let n = P(e.attrs.value, this.options.syntax);
|
|
225
225
|
return [
|
|
226
226
|
"span",
|
|
227
|
-
|
|
227
|
+
i(t, {
|
|
228
228
|
"data-logic-merge-tag": e.attrs.value,
|
|
229
229
|
"data-keyword": n
|
|
230
230
|
}),
|
|
@@ -242,12 +242,12 @@ var he = P.create({
|
|
|
242
242
|
},
|
|
243
243
|
addInputRules() {
|
|
244
244
|
let e = RegExp(this.options.syntax.logic.source + "$", "");
|
|
245
|
-
return [new
|
|
245
|
+
return [new c({
|
|
246
246
|
find: e,
|
|
247
247
|
handler: ({ state: e, range: t, match: n }) => {
|
|
248
248
|
let r = n[0];
|
|
249
|
-
if (!
|
|
250
|
-
let i =
|
|
249
|
+
if (!I(r, this.options.syntax)) return;
|
|
250
|
+
let i = P(r, this.options.syntax), a = this.type.create({
|
|
251
251
|
value: r,
|
|
252
252
|
keyword: i
|
|
253
253
|
});
|
|
@@ -256,16 +256,16 @@ var he = P.create({
|
|
|
256
256
|
})];
|
|
257
257
|
},
|
|
258
258
|
addPasteRules() {
|
|
259
|
-
let e = this.options.syntax, t =
|
|
259
|
+
let e = this.options.syntax, t = j(e) ? (t) => M(t, e, "logic").map((e) => ({
|
|
260
260
|
index: e.index,
|
|
261
261
|
text: e.value
|
|
262
262
|
})) : new RegExp(e.logic.source, "g");
|
|
263
|
-
return [new
|
|
263
|
+
return [new l({
|
|
264
264
|
find: t,
|
|
265
265
|
handler: ({ state: e, range: t, match: n }) => {
|
|
266
266
|
let r = n[0];
|
|
267
|
-
if (!
|
|
268
|
-
let i =
|
|
267
|
+
if (!I(r, this.options.syntax)) return;
|
|
268
|
+
let i = P(r, this.options.syntax), a = this.type.create({
|
|
269
269
|
value: r,
|
|
270
270
|
keyword: i
|
|
271
271
|
});
|
|
@@ -277,82 +277,82 @@ var he = P.create({
|
|
|
277
277
|
"aria-label",
|
|
278
278
|
"data-tooltip",
|
|
279
279
|
"onKeydown"
|
|
280
|
-
], ve = ["aria-label"], ye = /* @__PURE__ */
|
|
280
|
+
], ve = ["aria-label"], ye = /* @__PURE__ */ O({
|
|
281
281
|
__name: "MergeTagNodeView",
|
|
282
282
|
props: {
|
|
283
283
|
node: {},
|
|
284
284
|
deleteNode: { type: Function },
|
|
285
285
|
updateAttributes: { type: Function }
|
|
286
286
|
},
|
|
287
|
-
setup(
|
|
288
|
-
let
|
|
289
|
-
|
|
290
|
-
|
|
287
|
+
setup(e) {
|
|
288
|
+
let t = e, { getMergeTagLabel: n, getMergeTagDisplayLabel: r, findMergeTag: i, canRepickMergeTag: a, showRawValue: o, isMergeTagValue: s, requestMergeTag: c } = A(), { t: l, format: _ } = k(), C = x(() => r(t.node.attrs.value, t.node.attrs.label)), O = x(() => a(t.node.attrs.value)), j = w(!1), M = w(""), N = w(null), P = !1;
|
|
289
|
+
b(() => {
|
|
290
|
+
P = !0;
|
|
291
291
|
});
|
|
292
|
-
let
|
|
293
|
-
async function
|
|
294
|
-
let e = await
|
|
292
|
+
let F = x(() => M.value.trim() === "" || s(M.value.trim()));
|
|
293
|
+
async function I() {
|
|
294
|
+
let e = await c({
|
|
295
295
|
reason: "edit",
|
|
296
|
-
current:
|
|
296
|
+
current: i(t.node.attrs.value)
|
|
297
297
|
});
|
|
298
|
-
!
|
|
298
|
+
!P && e && t.updateAttributes({
|
|
299
299
|
value: e.value,
|
|
300
300
|
label: e.label
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
|
-
function
|
|
304
|
-
M.value =
|
|
303
|
+
function ee() {
|
|
304
|
+
M.value = t.node.attrs.value, j.value = !0, g(() => {
|
|
305
305
|
N.value?.focus(), N.value?.select();
|
|
306
306
|
});
|
|
307
307
|
}
|
|
308
|
-
function I() {
|
|
309
|
-
A.value ? te() : F();
|
|
310
|
-
}
|
|
311
308
|
function ne() {
|
|
309
|
+
O.value ? I() : ee();
|
|
310
|
+
}
|
|
311
|
+
function re() {
|
|
312
312
|
let e = M.value.trim();
|
|
313
|
-
e && e !==
|
|
313
|
+
e && e !== t.node.attrs.value && s(e) && t.updateAttributes({
|
|
314
314
|
value: e,
|
|
315
|
-
label:
|
|
315
|
+
label: n(e)
|
|
316
316
|
}), j.value = !1;
|
|
317
317
|
}
|
|
318
|
-
function
|
|
318
|
+
function ie(e) {
|
|
319
319
|
if (e.key === "Enter") {
|
|
320
|
-
if (e.preventDefault(), !
|
|
321
|
-
|
|
320
|
+
if (e.preventDefault(), !F.value) return;
|
|
321
|
+
re();
|
|
322
322
|
} else e.key === "Escape" && (j.value = !1);
|
|
323
323
|
}
|
|
324
|
-
return (
|
|
324
|
+
return (t, n) => (m(), D(S(te), {
|
|
325
325
|
as: "span",
|
|
326
326
|
class: "tpl-merge-tag-node tpl:group tpl:mx-0.5 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium tpl:select-none tpl:text-[var(--tpl-primary)]",
|
|
327
327
|
style: { "background-color": "color-mix(in srgb, var(--tpl-primary) 20%, transparent)" },
|
|
328
328
|
contenteditable: "false"
|
|
329
329
|
}, {
|
|
330
|
-
default:
|
|
330
|
+
default: v(() => [j.value ? y((m(), T("input", {
|
|
331
331
|
key: 0,
|
|
332
332
|
ref_key: "inputRef",
|
|
333
333
|
ref: N,
|
|
334
|
-
"onUpdate:modelValue":
|
|
334
|
+
"onUpdate:modelValue": n[0] ||= (e) => M.value = e,
|
|
335
335
|
type: "text",
|
|
336
|
-
"aria-invalid":
|
|
337
|
-
class:
|
|
338
|
-
onBlur:
|
|
339
|
-
onKeydown:
|
|
340
|
-
}, null, 42, ge)), [[
|
|
336
|
+
"aria-invalid": F.value ? void 0 : "true",
|
|
337
|
+
class: h(["tpl:w-32 tpl:rounded tpl:bg-transparent tpl:px-0.5 tpl:py-0 tpl:text-[1em] tpl:font-medium tpl:outline-none tpl:text-[var(--tpl-primary)]", F.value ? "tpl:border-none" : "tpl:border tpl:border-[var(--tpl-danger)]"]),
|
|
338
|
+
onBlur: re,
|
|
339
|
+
onKeydown: ie
|
|
340
|
+
}, null, 42, ge)), [[u, M.value]]) : (m(), T("span", {
|
|
341
341
|
key: 1,
|
|
342
342
|
role: "button",
|
|
343
343
|
tabindex: "0",
|
|
344
|
-
"aria-label":
|
|
345
|
-
class:
|
|
346
|
-
"data-tooltip":
|
|
347
|
-
onClick:
|
|
348
|
-
onKeydown: [
|
|
349
|
-
},
|
|
344
|
+
"aria-label": O.value ? S(_)(S(l).mergeTag.changeTag, { label: C.value }) : S(l).mergeTag.editValue,
|
|
345
|
+
class: h(["tpl:cursor-pointer", S(o) ? "tpl-tooltip" : ""]),
|
|
346
|
+
"data-tooltip": S(o) ? e.node.attrs.value : void 0,
|
|
347
|
+
onClick: d(ne, ["stop"]),
|
|
348
|
+
onKeydown: [f(d(ne, ["stop"]), ["enter"]), f(d(ne, ["prevent", "stop"]), ["space"])]
|
|
349
|
+
}, p(C.value), 43, _e)), E("button", {
|
|
350
350
|
type: "button",
|
|
351
|
-
"aria-label": l
|
|
351
|
+
"aria-label": S(l).mergeTag.deleteMergeTag,
|
|
352
352
|
class: "tpl-merge-tag-delete tpl:flex tpl:size-5 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:opacity-60 tpl:transition-all tpl:hover:opacity-100 tpl:text-[var(--tpl-primary)]",
|
|
353
353
|
contenteditable: "false",
|
|
354
|
-
onClick:
|
|
355
|
-
}, [...
|
|
354
|
+
onClick: n[1] ||= d((...t) => e.deleteNode && e.deleteNode(...t), ["stop", "prevent"])
|
|
355
|
+
}, [...n[2] ||= [E("svg", {
|
|
356
356
|
width: "10",
|
|
357
357
|
height: "10",
|
|
358
358
|
viewBox: "0 0 24 24",
|
|
@@ -360,12 +360,12 @@ var he = P.create({
|
|
|
360
360
|
stroke: "currentColor",
|
|
361
361
|
"stroke-width": "3",
|
|
362
362
|
"aria-hidden": "true"
|
|
363
|
-
}, [
|
|
363
|
+
}, [E("line", {
|
|
364
364
|
x1: "18",
|
|
365
365
|
y1: "6",
|
|
366
366
|
x2: "6",
|
|
367
367
|
y2: "18"
|
|
368
|
-
}),
|
|
368
|
+
}), E("line", {
|
|
369
369
|
x1: "6",
|
|
370
370
|
y1: "6",
|
|
371
371
|
x2: "18",
|
|
@@ -374,7 +374,7 @@ var he = P.create({
|
|
|
374
374
|
_: 1
|
|
375
375
|
}));
|
|
376
376
|
}
|
|
377
|
-
}), be =
|
|
377
|
+
}), be = a.create({
|
|
378
378
|
name: "mergeTagNode",
|
|
379
379
|
group: "inline",
|
|
380
380
|
inline: !0,
|
|
@@ -382,7 +382,7 @@ var he = P.create({
|
|
|
382
382
|
addOptions() {
|
|
383
383
|
return {
|
|
384
384
|
mergeTags: () => [],
|
|
385
|
-
syntax:
|
|
385
|
+
syntax: N.liquid
|
|
386
386
|
};
|
|
387
387
|
},
|
|
388
388
|
addAttributes() {
|
|
@@ -403,10 +403,10 @@ var he = P.create({
|
|
|
403
403
|
return [{ tag: "span[data-merge-tag]" }];
|
|
404
404
|
},
|
|
405
405
|
renderHTML({ node: e, HTMLAttributes: t }) {
|
|
406
|
-
let n =
|
|
406
|
+
let n = F(e.attrs.value, this.options.mergeTags());
|
|
407
407
|
return [
|
|
408
408
|
"span",
|
|
409
|
-
|
|
409
|
+
i(t, {
|
|
410
410
|
"data-merge-tag": e.attrs.value,
|
|
411
411
|
"data-label": n
|
|
412
412
|
}),
|
|
@@ -433,10 +433,10 @@ var he = P.create({
|
|
|
433
433
|
},
|
|
434
434
|
addInputRules() {
|
|
435
435
|
let e = RegExp(this.options.syntax.value.source + "$", "");
|
|
436
|
-
return [new
|
|
436
|
+
return [new c({
|
|
437
437
|
find: e,
|
|
438
438
|
handler: ({ state: e, range: t, match: n }) => {
|
|
439
|
-
let r = n[0], i =
|
|
439
|
+
let r = n[0], i = F(r, this.options.mergeTags()), a = this.type.create({
|
|
440
440
|
label: i,
|
|
441
441
|
value: r
|
|
442
442
|
});
|
|
@@ -445,14 +445,14 @@ var he = P.create({
|
|
|
445
445
|
})];
|
|
446
446
|
},
|
|
447
447
|
addPasteRules() {
|
|
448
|
-
let e = this.options.syntax, t =
|
|
448
|
+
let e = this.options.syntax, t = j(e) ? (t) => M(t, e, "value").map((e) => ({
|
|
449
449
|
index: e.index,
|
|
450
450
|
text: e.value
|
|
451
451
|
})) : new RegExp(e.value.source, "g");
|
|
452
|
-
return [new
|
|
452
|
+
return [new l({
|
|
453
453
|
find: t,
|
|
454
454
|
handler: ({ state: e, range: t, match: n }) => {
|
|
455
|
-
let r = n[0], i =
|
|
455
|
+
let r = n[0], i = F(r, this.options.mergeTags()), a = this.type.create({
|
|
456
456
|
label: i,
|
|
457
457
|
value: r
|
|
458
458
|
});
|
|
@@ -1158,21 +1158,21 @@ var Rt = Ye, zt = Ke, Bt = (e, t, n) => {
|
|
|
1158
1158
|
});
|
|
1159
1159
|
};
|
|
1160
1160
|
// ../../node_modules/.pnpm/@tiptap+suggestion@3.32.2_@floating-ui+dom@1.8.0_@tiptap+core@3.32.2_@tiptap+pm@3.32.2__@tiptap+pm@3.32.2/node_modules/@tiptap/suggestion/dist/index.js
|
|
1161
|
-
function Vt(
|
|
1162
|
-
let { char:
|
|
1163
|
-
if (!
|
|
1164
|
-
let
|
|
1165
|
-
if (!
|
|
1166
|
-
let
|
|
1167
|
-
if (
|
|
1168
|
-
let
|
|
1169
|
-
return
|
|
1161
|
+
function Vt(t) {
|
|
1162
|
+
let { char: n, allowSpaces: r, allowToIncludeChar: i, allowedPrefixes: a, startOfLine: o, $position: s } = t, c = r && !i, l = e(n), u = RegExp(`\\s${l}$`), d = o ? "^" : "", f = i ? "" : l, p = RegExp(c ? `${d}${l}.*?(?=\\s${f}|$)` : `${d}(?:^)?${l}[^\\s${f}]*`, "gm"), m = s.nodeBefore?.isText && s.nodeBefore.text;
|
|
1163
|
+
if (!m) return null;
|
|
1164
|
+
let h = s.pos - m.length, g = Array.from(m.matchAll(p)).pop();
|
|
1165
|
+
if (!g || g.input === void 0 || g.index === void 0) return null;
|
|
1166
|
+
let _ = g.input.slice(Math.max(0, g.index - 1), g.index), v = RegExp(`^[${a?.map(e).join("")}\0]?$`).test(_);
|
|
1167
|
+
if (a !== null && !v) return null;
|
|
1168
|
+
let y = h + g.index, b = y + g[0].length;
|
|
1169
|
+
return c && u.test(m.slice(b - 1, b + 1)) && (g[0] += " ", b += 1), y < s.pos && b >= s.pos ? {
|
|
1170
1170
|
range: {
|
|
1171
|
-
from:
|
|
1172
|
-
to:
|
|
1171
|
+
from: y,
|
|
1172
|
+
to: b
|
|
1173
1173
|
},
|
|
1174
|
-
query:
|
|
1175
|
-
text:
|
|
1174
|
+
query: g[0].slice(n.length),
|
|
1175
|
+
text: g[0]
|
|
1176
1176
|
} : null;
|
|
1177
1177
|
}
|
|
1178
1178
|
function Ht(e) {
|
|
@@ -1213,35 +1213,35 @@ function Kt({ view: e, pluginKeyRef: t }) {
|
|
|
1213
1213
|
let n = e.state.tr.setMeta(t, { exit: !0 });
|
|
1214
1214
|
e.dispatch(n);
|
|
1215
1215
|
}
|
|
1216
|
-
function qt({ pluginKey: e, decorationTag:
|
|
1216
|
+
function qt({ pluginKey: e, decorationTag: n, decorationClass: r, decorationContent: i, decorationEmptyClass: a, renderer: s, dispatchExit: c }) {
|
|
1217
1217
|
return {
|
|
1218
1218
|
handleKeyDown(t, n) {
|
|
1219
1219
|
var r;
|
|
1220
1220
|
let i = e.getState(t.state);
|
|
1221
1221
|
if (!i.active) return !1;
|
|
1222
1222
|
if (n.key === "Escape" || n.key === "Esc") {
|
|
1223
|
-
var
|
|
1224
|
-
return
|
|
1223
|
+
var a;
|
|
1224
|
+
return s == null || (a = s.onKeyDown) == null || a.call(s, {
|
|
1225
1225
|
view: t,
|
|
1226
1226
|
event: n,
|
|
1227
1227
|
range: i.range
|
|
1228
|
-
}),
|
|
1228
|
+
}), c(t), !0;
|
|
1229
1229
|
}
|
|
1230
|
-
return (
|
|
1230
|
+
return (s == null || (r = s.onKeyDown) == null ? void 0 : r.call(s, {
|
|
1231
1231
|
view: t,
|
|
1232
1232
|
event: n,
|
|
1233
1233
|
range: i.range
|
|
1234
1234
|
})) || !1;
|
|
1235
1235
|
},
|
|
1236
|
-
decorations(
|
|
1237
|
-
let { active:
|
|
1238
|
-
if (!
|
|
1239
|
-
let
|
|
1240
|
-
return
|
|
1241
|
-
nodeName:
|
|
1242
|
-
class:
|
|
1243
|
-
"data-decoration-id":
|
|
1244
|
-
"data-decoration-content":
|
|
1236
|
+
decorations(s) {
|
|
1237
|
+
let { active: c, range: l, decorationId: u, query: d } = e.getState(s);
|
|
1238
|
+
if (!c) return null;
|
|
1239
|
+
let f = !d?.length, p = [r];
|
|
1240
|
+
return f && p.push(a), o.create(s.doc, [t.inline(l.from, l.to, {
|
|
1241
|
+
nodeName: n,
|
|
1242
|
+
class: p.join(" "),
|
|
1243
|
+
"data-decoration-id": u || void 0,
|
|
1244
|
+
"data-decoration-content": i
|
|
1245
1245
|
})]);
|
|
1246
1246
|
}
|
|
1247
1247
|
};
|
|
@@ -1503,62 +1503,62 @@ function $t({ editor: e, pluginKey: t, items: n, renderer: r, minQueryLength: i,
|
|
|
1503
1503
|
}
|
|
1504
1504
|
};
|
|
1505
1505
|
}
|
|
1506
|
-
var en = new
|
|
1507
|
-
function tn({ pluginKey: e = en, editor: t, char: n = "@", allowSpaces:
|
|
1508
|
-
let
|
|
1509
|
-
function
|
|
1506
|
+
var en = new n("suggestion");
|
|
1507
|
+
function tn({ pluginKey: e = en, editor: t, char: n = "@", allowSpaces: i = !1, allowToIncludeChar: a = !1, allowedPrefixes: o = [" "], startOfLine: s = !1, decorationTag: c = "span", decorationClass: l = "suggestion", decorationContent: u = "", decorationEmptyClass: d = "is-empty", command: f = () => null, items: p = () => [], minQueryLength: m = 0, debounce: h = 0, initialItems: g, placement: _ = "bottom-start", offset: v = {}, container: y, flip: b = !0, floatingUi: x, dismissOnOutsideClick: S = !0, render: C = () => ({}), allow: w = () => !0, findSuggestionMatch: T = Vt, shouldShow: E, shouldResetDismissed: D }) {
|
|
1508
|
+
let O = C?.(), k = i && !a, A = (n, r) => Wt(t, n, r, e);
|
|
1509
|
+
function j(e) {
|
|
1510
1510
|
return Gt({
|
|
1511
1511
|
...e,
|
|
1512
1512
|
editor: t,
|
|
1513
|
-
shouldResetDismissed:
|
|
1514
|
-
effectiveAllowSpaces:
|
|
1513
|
+
shouldResetDismissed: D,
|
|
1514
|
+
effectiveAllowSpaces: k
|
|
1515
1515
|
});
|
|
1516
1516
|
}
|
|
1517
|
-
let
|
|
1517
|
+
let M = (t) => Kt({
|
|
1518
1518
|
view: t,
|
|
1519
1519
|
pluginKeyRef: e
|
|
1520
1520
|
});
|
|
1521
|
-
return new
|
|
1521
|
+
return new r({
|
|
1522
1522
|
key: e,
|
|
1523
1523
|
view: () => $t({
|
|
1524
1524
|
editor: t,
|
|
1525
1525
|
pluginKey: e,
|
|
1526
|
-
items:
|
|
1527
|
-
renderer:
|
|
1528
|
-
minQueryLength:
|
|
1529
|
-
debounce:
|
|
1530
|
-
initialItems:
|
|
1531
|
-
placement:
|
|
1532
|
-
offset:
|
|
1533
|
-
container:
|
|
1534
|
-
flip:
|
|
1535
|
-
floatingUi:
|
|
1536
|
-
dismissOnOutsideClick:
|
|
1537
|
-
command:
|
|
1538
|
-
clientRectFor:
|
|
1539
|
-
dispatchExit:
|
|
1526
|
+
items: p,
|
|
1527
|
+
renderer: O,
|
|
1528
|
+
minQueryLength: m,
|
|
1529
|
+
debounce: h,
|
|
1530
|
+
initialItems: g,
|
|
1531
|
+
placement: _,
|
|
1532
|
+
offset: v,
|
|
1533
|
+
container: y,
|
|
1534
|
+
flip: b,
|
|
1535
|
+
floatingUi: x,
|
|
1536
|
+
dismissOnOutsideClick: S,
|
|
1537
|
+
command: f,
|
|
1538
|
+
clientRectFor: A,
|
|
1539
|
+
dispatchExit: M
|
|
1540
1540
|
}),
|
|
1541
1541
|
state: Jt({
|
|
1542
1542
|
editor: t,
|
|
1543
1543
|
char: n,
|
|
1544
|
-
effectiveAllowSpaces:
|
|
1545
|
-
allowToIncludeChar:
|
|
1546
|
-
allowedPrefixes:
|
|
1547
|
-
startOfLine:
|
|
1548
|
-
findSuggestionMatch:
|
|
1549
|
-
allow:
|
|
1550
|
-
shouldShow:
|
|
1551
|
-
shouldKeepDismissed:
|
|
1544
|
+
effectiveAllowSpaces: k,
|
|
1545
|
+
allowToIncludeChar: a,
|
|
1546
|
+
allowedPrefixes: o,
|
|
1547
|
+
startOfLine: s,
|
|
1548
|
+
findSuggestionMatch: T,
|
|
1549
|
+
allow: w,
|
|
1550
|
+
shouldShow: E,
|
|
1551
|
+
shouldKeepDismissed: j,
|
|
1552
1552
|
pluginKey: e
|
|
1553
1553
|
}),
|
|
1554
1554
|
props: qt({
|
|
1555
1555
|
pluginKey: e,
|
|
1556
|
-
decorationTag:
|
|
1557
|
-
decorationClass:
|
|
1558
|
-
decorationContent:
|
|
1559
|
-
decorationEmptyClass:
|
|
1560
|
-
renderer:
|
|
1561
|
-
dispatchExit:
|
|
1556
|
+
decorationTag: c,
|
|
1557
|
+
decorationClass: l,
|
|
1558
|
+
decorationContent: u,
|
|
1559
|
+
decorationEmptyClass: d,
|
|
1560
|
+
renderer: O,
|
|
1561
|
+
dispatchExit: M
|
|
1562
1562
|
})
|
|
1563
1563
|
});
|
|
1564
1564
|
}
|
|
@@ -1566,7 +1566,7 @@ var nn = tn;
|
|
|
1566
1566
|
// src/extensions/MergeTagSuggestion.ts
|
|
1567
1567
|
function rn(e, t) {
|
|
1568
1568
|
return () => {
|
|
1569
|
-
let n =
|
|
1569
|
+
let n = ne(e, t);
|
|
1570
1570
|
return {
|
|
1571
1571
|
onStart: (e) => {
|
|
1572
1572
|
let t = e.editor.view?.dom;
|
|
@@ -1589,7 +1589,7 @@ function rn(e, t) {
|
|
|
1589
1589
|
};
|
|
1590
1590
|
};
|
|
1591
1591
|
}
|
|
1592
|
-
var an =
|
|
1592
|
+
var an = s.create({
|
|
1593
1593
|
name: "mergeTagSuggestion",
|
|
1594
1594
|
addOptions() {
|
|
1595
1595
|
return {
|
|
@@ -1605,7 +1605,7 @@ var an = F.create({
|
|
|
1605
1605
|
allowSpaces: !1,
|
|
1606
1606
|
startOfLine: !1,
|
|
1607
1607
|
allowedPrefixes: null,
|
|
1608
|
-
items: ({ query: t }) =>
|
|
1608
|
+
items: ({ query: t }) => re(e(), t),
|
|
1609
1609
|
command: ({ editor: e, range: t, props: n }) => {
|
|
1610
1610
|
e.isEditable && e.chain().focus().insertContentAt(t, {
|
|
1611
1611
|
type: "mergeTagNode",
|
|
@@ -1623,4 +1623,4 @@ var an = F.create({
|
|
|
1623
1623
|
})];
|
|
1624
1624
|
}
|
|
1625
1625
|
});
|
|
1626
|
-
export { ae as FontSize, oe as LetterSpacing, se as LineBoundaryKeys, ce as LineHeight, he as LogicMergeTagNode, be as MergeTagNode, an as MergeTagSuggestion,
|
|
1626
|
+
export { ae as FontSize, oe as LetterSpacing, se as LineBoundaryKeys, ce as LineHeight, he as LogicMergeTagNode, be as MergeTagNode, an as MergeTagSuggestion, re as filterMergeTags, ie as handleSuggestionKeyDown };
|