@templatical/editor 0.28.1 → 0.29.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/LICENSE +84 -31
- package/dist/{AiChatSidebar-mZyf81xG.js → AiChatSidebar-DsYJwCLT.js} +14 -14
- package/dist/{AiFeatureMenu-wpL2vbbd.js → AiFeatureMenu-CehKC-dh.js} +7 -7
- package/dist/{BlockIssueBadge-CavnyR3o.js → BlockIssueBadge-Dhk7Hv4m.js} +5 -5
- package/dist/{BlockPreviewCanvas-C4M7JT4x.js → BlockPreviewCanvas-BQZ7aTPr.js} +3 -3
- package/dist/{CloudHeaderExtras-fH0cB-Ru.js → CloudHeaderExtras-CaRdlYpY.js} +5 -5
- package/dist/{CloudPanels-Davlnzfd.js → CloudPanels-CYqHk1Az.js} +7 -7
- package/dist/{CollaboratorBar-BvQZriPA.js → CollaboratorBar-BZi12Mut.js} +4 -4
- package/dist/{ColorPicker-OLSFZBBZ.js → ColorPicker-CXPSbnRD.js} +7 -7
- package/dist/{CommentsPanel-B4_63eIS.js → CommentsPanel-DnWdgQHg.js} +2 -2
- package/dist/{CommentsSidebar-BkBHMXez.js → CommentsSidebar-ZOqmuo4D.js} +16 -16
- package/dist/{CountdownBlock-Drr1WErd.js → CountdownBlock-BgNK7fZY.js} +3 -3
- package/dist/{CountdownToolbar-D8FsDIfa.js → CountdownToolbar-ByQVLqFF.js} +4 -4
- package/dist/{DesignReferenceSidebar-Dp44REBY.js → DesignReferenceSidebar-B9anB-Q0.js} +11 -11
- package/dist/{IssuesPanel-C1v3dmoB.js → IssuesPanel-CDk7lUna.js} +8 -8
- package/dist/{LoadingTrack-Db9j_aBr.js → LoadingTrack-5KBr5cE8.js} +1 -1
- package/dist/{MergeTagModeToggle-CZN0Pr1o.js → MergeTagModeToggle-sBEGugix.js} +5 -5
- package/dist/{MergeTagSuggestion-a7Tk8tBB.js → MergeTagSuggestion-DPfXtDzP.js} +57 -41
- package/dist/{NumberWithSuffix-C1D0WFrN.js → NumberWithSuffix-C-k0BP1m.js} +1 -1
- package/dist/{ParagraphEditor-CGxsm0Mx.js → ParagraphEditor-gbp5gbFv.js} +25 -25
- package/dist/{RestoreVersionDialog-BLW8wC1J.js → RestoreVersionDialog-DIHpGfFr.js} +5 -5
- package/dist/{RichTextEditorContent-COBy_Q9j.js → RichTextEditorContent-DZ6GiAUi.js} +8 -8
- package/dist/{SaveBlockDialog-KWQaS1_q.js → SaveBlockDialog-QSj7tf1p.js} +10 -10
- package/dist/{SavedBlocksBrowserModal-Cg8yP_EN.js → SavedBlocksBrowserModal-Bz2xaBzJ.js} +11 -11
- package/dist/{SavedBlocksPanels-bept0JjA.js → SavedBlocksPanels-RNgOnK9j.js} +2 -2
- package/dist/{SavedBlocksPickBar-Z-YRd488.js → SavedBlocksPickBar-CRmd3sD9.js} +4 -4
- package/dist/{TemplateScoringPanel-5zp1qOSl.js → TemplateScoringPanel-CDwlSFEe.js} +15 -15
- package/dist/{TestEmailModal-DtJabfkS.js → TestEmailModal-DclmELUc.js} +10 -10
- package/dist/{TestEmailPanel-CtFxt5q7.js → TestEmailPanel-4i4n9Kup.js} +2 -2
- package/dist/{TitleEditor-BfWPus_C.js → TitleEditor-DMAeSWx3.js} +12 -12
- package/dist/{TplModal-DBlMd7h9.js → TplModal-CjuKT36J.js} +5 -5
- package/dist/{VersionHistoryMenu-Cg4UKxKc.js → VersionHistoryMenu-B6zAcmAC.js} +8 -8
- package/dist/{VersionHistoryPanels-BKjbNEOM.js → VersionHistoryPanels-MqgexkhW.js} +2 -2
- package/dist/{VersionPreviewBanner-B0thyJ8F.js → VersionPreviewBanner-CQlSzQ2B.js} +3 -3
- package/dist/{blockTypeIcons-CQMkcHo9.js → blockTypeIcons-ejNais7n.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiChatSidebar-BQATQ3Tr.js → AiChatSidebar-BE97qqqb.js} +11 -11
- package/dist/cdn/chunks/{AiChatSidebar-BQATQ3Tr.js.map → AiChatSidebar-BE97qqqb.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-cNoZ0xl_.js → AiFeatureMenu-CNP54HPc.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-cNoZ0xl_.js.map → AiFeatureMenu-CNP54HPc.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-CH_3vFw4.js → BlockIssueBadge-Bry71Wjz.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-CH_3vFw4.js.map → BlockIssueBadge-Bry71Wjz.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-BXVC8-Zj.js → BlockPreviewCanvas-CUEZIwJ4.js} +4 -4
- package/dist/cdn/chunks/{BlockPreviewCanvas-BXVC8-Zj.js.map → BlockPreviewCanvas-CUEZIwJ4.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-CUAM2ADe.js → CloudHeaderExtras-Bz--_dKu.js} +5 -5
- package/dist/cdn/chunks/{CloudHeaderExtras-CUAM2ADe.js.map → CloudHeaderExtras-Bz--_dKu.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-DMnnSIkX.js → CloudPanels-BXcdYgy0.js} +7 -7
- package/dist/cdn/chunks/{CloudPanels-DMnnSIkX.js.map → CloudPanels-BXcdYgy0.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-C6sorNRi.js → CollaboratorBar-CvvoIrKS.js} +5 -5
- package/dist/cdn/chunks/{CollaboratorBar-C6sorNRi.js.map → CollaboratorBar-CvvoIrKS.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-q1V7ggWI.js → ColorPicker-Ww4xHHMI.js} +7 -7
- package/dist/cdn/chunks/{ColorPicker-q1V7ggWI.js.map → ColorPicker-Ww4xHHMI.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-ExfxJZM3.js → CommentsPanel-DjId-XH-.js} +3 -3
- package/dist/cdn/chunks/{CommentsPanel-ExfxJZM3.js.map → CommentsPanel-DjId-XH-.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-CzALURMJ.js → CommentsSidebar-DXXGWSr4.js} +5 -5
- package/dist/cdn/chunks/{CommentsSidebar-CzALURMJ.js.map → CommentsSidebar-DXXGWSr4.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-_7TUBqJS.js → CountdownBlock-CWeJBC0L.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-_7TUBqJS.js.map → CountdownBlock-CWeJBC0L.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CkbWSrAH.js → CountdownToolbar-BD90NpY1.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-CkbWSrAH.js.map → CountdownToolbar-BD90NpY1.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-COh0Rx_A.js → DesignReferenceSidebar-DY-laxO5.js} +7 -7
- package/dist/cdn/chunks/{DesignReferenceSidebar-COh0Rx_A.js.map → DesignReferenceSidebar-DY-laxO5.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-C1NG0xRI.js → IssuesPanel-iC2hgrXx.js} +6 -6
- package/dist/cdn/chunks/{IssuesPanel-C1NG0xRI.js.map → IssuesPanel-iC2hgrXx.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-D_wweXVz.js → LoadingTrack-Cz1sT0wP.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-D_wweXVz.js.map → LoadingTrack-Cz1sT0wP.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-B1yXCp3D.js → MergeTagModeToggle-BRW3qErZ.js} +5 -5
- package/dist/cdn/chunks/{MergeTagModeToggle-B1yXCp3D.js.map → MergeTagModeToggle-BRW3qErZ.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-DqYR3jPA.js → MergeTagSuggestion-VP_nC-8W.js} +3 -3
- package/dist/cdn/chunks/{MergeTagSuggestion-DqYR3jPA.js.map → MergeTagSuggestion-VP_nC-8W.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-CWvM_I3T.js → NumberWithSuffix-DOG0zHvY.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-CWvM_I3T.js.map → NumberWithSuffix-DOG0zHvY.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DPM1hUKo.js → ParagraphEditor-CPVnO48U.js} +27 -27
- package/dist/cdn/chunks/{ParagraphEditor-DPM1hUKo.js.map → ParagraphEditor-CPVnO48U.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-Dz0bX5ZZ.js → RestoreVersionDialog--Blx-VKu.js} +5 -5
- package/dist/cdn/chunks/{RestoreVersionDialog-Dz0bX5ZZ.js.map → RestoreVersionDialog--Blx-VKu.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-nkyIRAyN.js → RichTextEditorContent-DpvOKKH-.js} +7 -7
- package/dist/cdn/chunks/{RichTextEditorContent-nkyIRAyN.js.map → RichTextEditorContent-DpvOKKH-.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-DYr5yKqy.js → SaveBlockDialog-DXQ2g_38.js} +8 -8
- package/dist/cdn/chunks/{SaveBlockDialog-DYr5yKqy.js.map → SaveBlockDialog-DXQ2g_38.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BUJjcHkw.js → SavedBlocksBrowserModal-DWBvVkuk.js} +9 -9
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BUJjcHkw.js.map → SavedBlocksBrowserModal-DWBvVkuk.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-DFgvmsbj.js → SavedBlocksPanels-GgdpiPUq.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-DFgvmsbj.js.map → SavedBlocksPanels-GgdpiPUq.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-Brg8US_n.js → SavedBlocksPickBar-Dyb5xi1B.js} +5 -5
- package/dist/cdn/chunks/{SavedBlocksPickBar-Brg8US_n.js.map → SavedBlocksPickBar-Dyb5xi1B.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-DO86BvdQ.js → TemplateScoringPanel-B0YcaJsR.js} +11 -11
- package/dist/cdn/chunks/{TemplateScoringPanel-DO86BvdQ.js.map → TemplateScoringPanel-B0YcaJsR.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-DRCcdGvX.js → TestEmailModal-B9SmAIKZ.js} +9 -9
- package/dist/cdn/chunks/{TestEmailModal-DRCcdGvX.js.map → TestEmailModal-B9SmAIKZ.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BZU5HX2c.js → TestEmailPanel-Q6alElB1.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-BZU5HX2c.js.map → TestEmailPanel-Q6alElB1.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-CLkXt5RZ.js → TitleEditor-Tudoac5f.js} +12 -12
- package/dist/cdn/chunks/{TitleEditor-CLkXt5RZ.js.map → TitleEditor-Tudoac5f.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-BhfPoZ_W.js → TplModal-BNJIFnyj.js} +5 -5
- package/dist/cdn/chunks/{TplModal-BhfPoZ_W.js.map → TplModal-BNJIFnyj.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-_DyRYBRP.js → VersionHistoryMenu-DJGcA_RX.js} +5 -5
- package/dist/cdn/chunks/{VersionHistoryMenu-_DyRYBRP.js.map → VersionHistoryMenu-DJGcA_RX.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-DGfOOcKV.js → VersionHistoryPanels-Crw5JA89.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryPanels-DGfOOcKV.js.map → VersionHistoryPanels-Crw5JA89.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-FbBmgknN.js → VersionPreviewBanner-C8pfES5A.js} +4 -4
- package/dist/cdn/chunks/{VersionPreviewBanner-FbBmgknN.js.map → VersionPreviewBanner-C8pfES5A.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-o4ammRlm.js → blockTypeIcons-JUwZtKaq.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-o4ammRlm.js.map → blockTypeIcons-JUwZtKaq.js.map} +1 -1
- package/dist/cdn/chunks/{cloud-CRCcXTc5.js → cloud-C29LPXYn.js} +2 -2
- package/dist/cdn/chunks/{cloud-CRCcXTc5.js.map → cloud-C29LPXYn.js.map} +1 -1
- package/dist/cdn/chunks/createCloudRuntime-C6MJN7M6.js +443 -0
- package/dist/cdn/chunks/createCloudRuntime-C6MJN7M6.js.map +1 -0
- package/dist/cdn/chunks/{dist-eKG4m5Wx.js → dist-CgR3inPR.js} +3 -3
- package/dist/cdn/chunks/{dist-eKG4m5Wx.js.map → dist-CgR3inPR.js.map} +1 -1
- package/dist/cdn/chunks/{dist-2fOlspdg.js → dist-El3fQnfk.js} +4 -4
- package/dist/cdn/chunks/{dist-2fOlspdg.js.map → dist-El3fQnfk.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-BLMjz0GK.js → draggable-D2vo-aQI.js} +1465 -1435
- package/dist/cdn/chunks/draggable-D2vo-aQI.js.map +1 -0
- package/dist/cdn/chunks/en-DIwntrh3.js +2 -0
- package/dist/cdn/chunks/{extensions-qSqWdFko.js → extensions-BQefRevf.js} +6 -6
- package/dist/cdn/chunks/{extensions-qSqWdFko.js.map → extensions-BQefRevf.js.map} +1 -1
- package/dist/cdn/chunks/{icons-MeYdeH4P.js → icons-BTdLXRXn.js} +27 -27
- package/dist/cdn/chunks/icons-BTdLXRXn.js.map +1 -0
- package/dist/cdn/chunks/{keys-D7OpfE2s.js → keys-BJ770Mwm.js} +2 -2
- package/dist/cdn/chunks/{keys-D7OpfE2s.js.map → keys-BJ770Mwm.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-UlAOKBjI.js → liquid.browser-BPvKXNfO.js} +2 -2
- package/dist/cdn/chunks/{liquid.browser-UlAOKBjI.js.map → liquid.browser-BPvKXNfO.js.map} +1 -1
- package/dist/cdn/chunks/{src-BxHH_6Yr.js → src-CjSrA_o4.js} +2 -2
- package/dist/cdn/chunks/{src-BxHH_6Yr.js.map → src-CjSrA_o4.js.map} +1 -1
- package/dist/cdn/chunks/{src-2QDLdUyx.js → src-fxaI2EQc.js} +8 -8
- package/dist/cdn/chunks/{src-2QDLdUyx.js.map → src-fxaI2EQc.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-DgH_wKK_.js → tiptap-Bqy-H6CT.js} +3356 -3219
- package/dist/cdn/chunks/tiptap-Bqy-H6CT.js.map +1 -0
- package/dist/cdn/chunks/{useAliveFlag-C1pwLtPO.js → useAliveFlag-DrXxPV8V.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-C1pwLtPO.js.map → useAliveFlag-DrXxPV8V.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-D4gzxtqF.js → useCloudI18n-D0AoLV0a.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-D4gzxtqF.js.map → useCloudI18n-D0AoLV0a.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-2ZVOY0Rh.js → useEditorCore-o2emEjgF.js} +448 -424
- package/dist/cdn/chunks/useEditorCore-o2emEjgF.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-BFGRBGts.js +10 -0
- package/dist/cdn/chunks/{useEditorRoot-BY-amddA.js.map → useEditorRoot-BFGRBGts.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-DYb1SgLB.js → useI18n-DIhawILp.js} +3 -3
- package/dist/cdn/chunks/{useI18n-DYb1SgLB.js.map → useI18n-DIhawILp.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-D-SE_XN8.js → useMergeTag-BWt1DQS1.js} +3 -3
- package/dist/cdn/chunks/{useMergeTag-D-SE_XN8.js.map → useMergeTag-BWt1DQS1.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-CJZ6EkS4.js → usePopoverPosition-DkiTLnBm.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-CJZ6EkS4.js.map → usePopoverPosition-DkiTLnBm.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-D6gyIzT1.js → useScrollToBlock-KcSAuXKz.js} +3 -3
- package/dist/cdn/chunks/{useScrollToBlock-D6gyIzT1.js.map → useScrollToBlock-KcSAuXKz.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +1436 -1427
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-CLfibuQc.js → check-CTe6VejT.js} +1 -1
- package/dist/{chevron-down-DamTR8ta.js → chevron-down-BBThVMu-.js} +1 -1
- package/dist/{chevron-up-CrV_Ksg-.js → chevron-up-iECwf-Bc.js} +1 -1
- package/dist/{circle-alert-BLy-e34e.js → circle-alert-Z_eeykrO.js} +1 -1
- package/dist/{clock-DQI6aaFT.js → clock-CEj1c29j.js} +1 -1
- package/dist/{cloud-DXFUA8H_.js → cloud-CHHQWdaR.js} +1 -1
- package/dist/createCloudRuntime-WwKt9mgb.js +441 -0
- package/dist/{createLucideIcon-Cbl3Ma_H.js → createLucideIcon-DphAT3tw.js} +3 -3
- package/dist/{dist-Dx-KOuOj.js → dist-9fjN9cuD.js} +2 -2
- package/dist/{dist-WE11SQGe.js → dist-BUpBA58N.js} +2 -2
- package/dist/{dist-CLc1cpN2.js → dist-BdIwIlKz.js} +6 -5
- package/dist/{dist-CQQNoHxz.js → dist-BfcqryVg.js} +2 -2
- package/dist/{dist-Dz7KUOSg.js → dist-CaR5TLiM.js} +2 -2
- package/dist/{dist-CkSgS-K9.js → dist-CuuPnIMy.js} +3 -3
- package/dist/dist-CzMzshfS.js +5 -0
- package/dist/{dist-CclsUQ7r.js → dist-D2P8U3p6.js} +2 -2
- package/dist/{dist-C145btxT.js → dist-DLaIQ5H5.js} +151 -155
- package/dist/{dist-CgXIMxZc.js → dist-DSgmnQ-f.js} +2 -2
- package/dist/dist-DTVuNn8M.js +5 -0
- package/dist/{dist-D4Jb08yv.js → dist-DifptC-U.js} +2 -2
- package/dist/{dist-7Lr_A7Va.js → dist-gWM8H2hz.js} +7 -6
- package/dist/{dist-DUn6jY0n.js → dist-nmzPlqlz.js} +2290 -2175
- package/dist/{extensions-PJK0gLCL.js → extensions-B4gwZ36u.js} +7 -7
- package/dist/{image-up-BVOMy_Fs.js → image-up-W1INxCu8.js} +1 -1
- package/dist/index.d.ts +146 -117
- package/dist/{info-BKMKasyT.js → info-5t4WYKfh.js} +1 -1
- package/dist/{keys-CAor2T5q.js → keys-BJtoezGU.js} +1 -1
- package/dist/{liquid.browser-B-rGrnrQ.js → liquid.browser-CJgDDvQz.js} +1 -1
- package/dist/{loader-circle-CSGh8n8A.js → loader-circle-DJCZ_JMY.js} +1 -1
- package/dist/{message-circle-C6q2Fm_W.js → message-circle-Biu6lHh_.js} +1 -1
- package/dist/{pencil-DaTN0HKw.js → pencil-DkPlMca7.js} +1 -1
- package/dist/{refresh-cw-Cu4wRQwT.js → refresh-cw-DHbpkkol.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-CHEsXNQz.js → runtime-dom.esm-bundler-Co_SPqAz.js} +180 -166
- package/dist/{scan-line-O_o657Gv.js → scan-line-DojwGzjU.js} +1 -1
- package/dist/{send-GS3soauT.js → send-c6ppcE9I.js} +1 -1
- package/dist/{shield-check-B2TzT3Wp.js → shield-check-F9T4ylNK.js} +1 -1
- package/dist/{sparkles-CNENcXZl.js → sparkles-D-0OiTZD.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +835 -826
- package/dist/{text-align-start-D0-k8RUf.js → text-align-start-kEEtoRrD.js} +1 -1
- package/dist/{trash-2-BE-qGIpG.js → trash-2-DRQzhY9R.js} +1 -1
- package/dist/{triangle-alert-DNM2_dyh.js → triangle-alert-Bt4-GU3t.js} +1 -1
- package/dist/{upload-Cv2Jx-yM.js → upload-D2wtjvH8.js} +1 -1
- package/dist/{useAliveFlag-1yBub211.js → useAliveFlag-AFbwfHlJ.js} +1 -1
- package/dist/{useCloudI18n-Dwo7usTl.js → useCloudI18n-BA69BpQ_.js} +2 -2
- package/dist/{useEditorCore-DM8vzMZQ.js → useEditorCore-CJp84vJY.js} +1097 -1075
- package/dist/{useEditorRoot-CUIzpMYc.js → useEditorRoot-Cdo8Vhxa.js} +2 -2
- package/dist/{useI18n-DT_DKupw.js → useI18n-B135ASaG.js} +2 -2
- package/dist/{useMergeTag-CcHQCcPN.js → useMergeTag-D1Rsn4BO.js} +2 -2
- package/dist/{usePopoverPosition-DaHz1kqb.js → usePopoverPosition-DAOHr_iM.js} +2 -2
- package/dist/{useScrollToBlock-C2LYXENK.js → useScrollToBlock-B0Qpjfa4.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-CdH_W9qX.js → vue.runtime.esm-bundler-BhOUdXMi.js} +1244 -1204
- package/dist/{x-DUPrT6Aa.js → x-YiG-TUGN.js} +1 -1
- package/package.json +26 -26
- package/dist/cdn/chunks/createCloudRuntime-C-u7oIGa.js +0 -344
- package/dist/cdn/chunks/createCloudRuntime-C-u7oIGa.js.map +0 -1
- package/dist/cdn/chunks/draggable-BLMjz0GK.js.map +0 -1
- package/dist/cdn/chunks/en-C6FKrw69.js +0 -2
- package/dist/cdn/chunks/icons-MeYdeH4P.js.map +0 -1
- package/dist/cdn/chunks/tiptap-DgH_wKK_.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-2ZVOY0Rh.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-BY-amddA.js +0 -10
- package/dist/createCloudRuntime-BrgMP9gS.js +0 -342
- package/dist/dist-D-ulkdvF.js +0 -5
- package/dist/dist-Kf9u4ULN.js +0 -5
|
@@ -1,23 +1,47 @@
|
|
|
1
|
-
import { Bn as e, Bt as t, Cn as n, Dn as r, Gn as i, Hn as a, Ht as o, Jn as s, Kn as c, Ln as l, Mt as u, T as d, Un as f, Vn as p, Vt as m, Wn as h, Xn as g, Yn as _, Zn as v, f as y, fn as b, ft as ee, gn as x, it as te, jt as ne, m as S, mt as re, nt as ie, pn as C, pt as ae, qn as w, s as T, ut as oe, w as se, yn as ce, zn as E } from "./dist-
|
|
2
|
-
import { Link as le } from "./dist-
|
|
3
|
-
import { Underline as ue } from "./dist-
|
|
4
|
-
//#region ../../node_modules/.pnpm/@tiptap+core@3.30.
|
|
5
|
-
|
|
1
|
+
import { Bn as e, Bt as t, Cn as n, Dn as r, Gn as i, Hn as a, Ht as o, Jn as s, Kn as c, Ln as l, Mt as u, T as d, Un as f, Vn as p, Vt as m, Wn as h, Xn as g, Yn as _, Zn as v, f as y, fn as b, ft as ee, gn as x, it as te, jt as ne, m as S, mt as re, nt as ie, pn as C, pt as ae, qn as w, s as T, ut as oe, w as se, yn as ce, zn as E } from "./dist-nmzPlqlz.js";
|
|
2
|
+
import { Link as le } from "./dist-BfcqryVg.js";
|
|
3
|
+
import { Underline as ue } from "./dist-9fjN9cuD.js";
|
|
4
|
+
//#region ../../node_modules/.pnpm/@tiptap+core@3.30.5_@tiptap+pm@3.30.5/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js
|
|
5
|
+
var de = /* @__PURE__ */ new WeakSet(), fe = /* @__PURE__ */ new WeakSet();
|
|
6
|
+
function D(e) {
|
|
7
|
+
let t = e;
|
|
8
|
+
return de.add(t), t;
|
|
9
|
+
}
|
|
10
|
+
function O(e) {
|
|
11
|
+
return Array.isArray(e) && de.has(e);
|
|
12
|
+
}
|
|
13
|
+
function pe(e) {
|
|
14
|
+
return e.flatMap((e) => e == null ? [] : Array.isArray(e) && fe.has(e) && !O(e) ? pe(e) : [e]);
|
|
15
|
+
}
|
|
16
|
+
function me(e, t) {
|
|
6
17
|
if (e === "slot") return 0;
|
|
7
|
-
if (e instanceof Function)
|
|
8
|
-
|
|
18
|
+
if (e instanceof Function) {
|
|
19
|
+
let n = e(t);
|
|
20
|
+
return Array.isArray(n) && !O(n) && !fe.has(n) ? D(n) : n;
|
|
21
|
+
}
|
|
22
|
+
let { children: n, ...r } = t ?? {};
|
|
9
23
|
if (e === "svg") throw Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
24
|
+
if (Array.isArray(n)) {
|
|
25
|
+
if (O(n)) return D([
|
|
26
|
+
e,
|
|
27
|
+
r,
|
|
28
|
+
n
|
|
29
|
+
]);
|
|
30
|
+
if (n.length === 0) return D([e, r]);
|
|
31
|
+
let t = pe(n);
|
|
32
|
+
return t.length === 0 ? D([e, r]) : D([
|
|
33
|
+
e,
|
|
34
|
+
r,
|
|
35
|
+
...t
|
|
36
|
+
]);
|
|
37
|
+
}
|
|
38
|
+
return D(n == null ? [e, r] : [
|
|
15
39
|
e,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
];
|
|
40
|
+
r,
|
|
41
|
+
n
|
|
42
|
+
]);
|
|
19
43
|
}
|
|
20
|
-
var
|
|
44
|
+
var k = (e, t) => me(e, t), he = (e, t) => {
|
|
21
45
|
let { state: n } = e, { selection: r } = n;
|
|
22
46
|
if (!r.empty) return !1;
|
|
23
47
|
let { $from: i } = r;
|
|
@@ -35,7 +59,7 @@ var D = (e, t) => de(e, t, !1), fe = (e, t) => {
|
|
|
35
59
|
let n = i.parent.content, r = new v(n, 0, 0);
|
|
36
60
|
return e.replace(l, i.after(), r), e.setSelection(w.create(e.doc, l + n.size)), e.scrollIntoView(), t(e), !0;
|
|
37
61
|
});
|
|
38
|
-
},
|
|
62
|
+
}, ge = /^\s*>\s$/, _e = S.create({
|
|
39
63
|
name: "blockquote",
|
|
40
64
|
addOptions() {
|
|
41
65
|
return { HTMLAttributes: {} };
|
|
@@ -47,9 +71,9 @@ var D = (e, t) => de(e, t, !1), fe = (e, t) => {
|
|
|
47
71
|
return [{ tag: "blockquote" }];
|
|
48
72
|
},
|
|
49
73
|
renderHTML({ HTMLAttributes: e }) {
|
|
50
|
-
return /* @__PURE__ */
|
|
74
|
+
return /* @__PURE__ */ k("blockquote", {
|
|
51
75
|
...x(this.options.HTMLAttributes, e),
|
|
52
|
-
children: /* @__PURE__ */
|
|
76
|
+
children: /* @__PURE__ */ k("slot", {})
|
|
53
77
|
});
|
|
54
78
|
},
|
|
55
79
|
parseMarkdown: (e, t) => {
|
|
@@ -74,16 +98,16 @@ var D = (e, t) => de(e, t, !1), fe = (e, t) => {
|
|
|
74
98
|
addKeyboardShortcuts() {
|
|
75
99
|
return {
|
|
76
100
|
"Mod-Shift-b": () => this.editor.commands.toggleBlockquote(),
|
|
77
|
-
Backspace: () =>
|
|
101
|
+
Backspace: () => he(this.editor, this.type)
|
|
78
102
|
};
|
|
79
103
|
},
|
|
80
104
|
addInputRules() {
|
|
81
105
|
return [E({
|
|
82
|
-
find:
|
|
106
|
+
find: ge,
|
|
83
107
|
type: this.type
|
|
84
108
|
})];
|
|
85
109
|
}
|
|
86
|
-
}),
|
|
110
|
+
}), ve = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, ye = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, be = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, xe = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, Se = y.create({
|
|
87
111
|
name: "bold",
|
|
88
112
|
addOptions() {
|
|
89
113
|
return { HTMLAttributes: {} };
|
|
@@ -106,9 +130,9 @@ var D = (e, t) => de(e, t, !1), fe = (e, t) => {
|
|
|
106
130
|
];
|
|
107
131
|
},
|
|
108
132
|
renderHTML({ HTMLAttributes: e }) {
|
|
109
|
-
return /* @__PURE__ */
|
|
133
|
+
return /* @__PURE__ */ k("strong", {
|
|
110
134
|
...x(this.options.HTMLAttributes, e),
|
|
111
|
-
children: /* @__PURE__ */
|
|
135
|
+
children: /* @__PURE__ */ k("slot", {})
|
|
112
136
|
});
|
|
113
137
|
},
|
|
114
138
|
markdownTokenName: "strong",
|
|
@@ -133,30 +157,30 @@ var D = (e, t) => de(e, t, !1), fe = (e, t) => {
|
|
|
133
157
|
},
|
|
134
158
|
addInputRules() {
|
|
135
159
|
return [b({
|
|
136
|
-
find:
|
|
160
|
+
find: ve,
|
|
137
161
|
type: this.type
|
|
138
162
|
}), b({
|
|
139
|
-
find:
|
|
163
|
+
find: be,
|
|
140
164
|
type: this.type
|
|
141
165
|
})];
|
|
142
166
|
},
|
|
143
167
|
addPasteRules() {
|
|
144
168
|
return [C({
|
|
145
|
-
find:
|
|
169
|
+
find: ye,
|
|
146
170
|
type: this.type
|
|
147
171
|
}), C({
|
|
148
|
-
find:
|
|
172
|
+
find: xe,
|
|
149
173
|
type: this.type
|
|
150
174
|
})];
|
|
151
175
|
}
|
|
152
|
-
}),
|
|
176
|
+
}), Ce = (e) => {
|
|
153
177
|
let t = /`([^`]+)`(?!`)$/.exec(e);
|
|
154
178
|
return !t || t.index > 0 && e[t.index - 1] === "`" ? null : {
|
|
155
179
|
index: t.index,
|
|
156
180
|
text: t[0],
|
|
157
181
|
replaceWith: t[1]
|
|
158
182
|
};
|
|
159
|
-
},
|
|
183
|
+
}, we = (e) => {
|
|
160
184
|
let t = /`([^`]+)`(?!`)/g, n = [], r;
|
|
161
185
|
for (; (r = t.exec(e)) !== null;) r.index > 0 && e[r.index - 1] === "`" || n.push({
|
|
162
186
|
index: r.index,
|
|
@@ -164,7 +188,7 @@ var D = (e, t) => de(e, t, !1), fe = (e, t) => {
|
|
|
164
188
|
replaceWith: r[1]
|
|
165
189
|
});
|
|
166
190
|
return n;
|
|
167
|
-
},
|
|
191
|
+
}, Te = y.create({
|
|
168
192
|
name: "code",
|
|
169
193
|
addOptions() {
|
|
170
194
|
return { HTMLAttributes: {} };
|
|
@@ -200,17 +224,17 @@ var D = (e, t) => de(e, t, !1), fe = (e, t) => {
|
|
|
200
224
|
},
|
|
201
225
|
addInputRules() {
|
|
202
226
|
return [b({
|
|
203
|
-
find:
|
|
227
|
+
find: Ce,
|
|
204
228
|
type: this.type
|
|
205
229
|
})];
|
|
206
230
|
},
|
|
207
231
|
addPasteRules() {
|
|
208
232
|
return [C({
|
|
209
|
-
find:
|
|
233
|
+
find: we,
|
|
210
234
|
type: this.type
|
|
211
235
|
})];
|
|
212
236
|
}
|
|
213
|
-
}),
|
|
237
|
+
}), A = 4, Ee = /^```([a-z]+)?[\s\n]$/, De = /^~~~([a-z]+)?[\s\n]$/, Oe = S.create({
|
|
214
238
|
name: "codeBlock",
|
|
215
239
|
addOptions() {
|
|
216
240
|
return {
|
|
@@ -220,7 +244,7 @@ var D = (e, t) => de(e, t, !1), fe = (e, t) => {
|
|
|
220
244
|
exitOnArrowUp: !0,
|
|
221
245
|
defaultLanguage: null,
|
|
222
246
|
enableTabIndentation: !1,
|
|
223
|
-
tabSize:
|
|
247
|
+
tabSize: A,
|
|
224
248
|
HTMLAttributes: {}
|
|
225
249
|
};
|
|
226
250
|
},
|
|
@@ -264,9 +288,7 @@ var D = (e, t) => de(e, t, !1), fe = (e, t) => {
|
|
|
264
288
|
`\`\`\`${r}`,
|
|
265
289
|
t.renderChildren(e.content),
|
|
266
290
|
"```"
|
|
267
|
-
].join("\n") : `\`\`\`${r}
|
|
268
|
-
|
|
269
|
-
\`\`\``, n;
|
|
291
|
+
].join("\n") : `\`\`\`${r}\n\n\`\`\``, n;
|
|
270
292
|
},
|
|
271
293
|
addCommands() {
|
|
272
294
|
return {
|
|
@@ -283,7 +305,7 @@ var D = (e, t) => de(e, t, !1), fe = (e, t) => {
|
|
|
283
305
|
},
|
|
284
306
|
Tab: ({ editor: e }) => {
|
|
285
307
|
if (!this.options.enableTabIndentation) return !1;
|
|
286
|
-
let t = this.options.tabSize ??
|
|
308
|
+
let t = this.options.tabSize ?? A, { state: n } = e, { selection: r } = n, { $from: i, empty: a } = r;
|
|
287
309
|
if (i.parent.type !== this.type) return !1;
|
|
288
310
|
let o = " ".repeat(t);
|
|
289
311
|
return a ? e.commands.insertContent(o) : e.commands.command(({ tr: e }) => {
|
|
@@ -293,7 +315,7 @@ var D = (e, t) => de(e, t, !1), fe = (e, t) => {
|
|
|
293
315
|
},
|
|
294
316
|
"Shift-Tab": ({ editor: e }) => {
|
|
295
317
|
if (!this.options.enableTabIndentation) return !1;
|
|
296
|
-
let t = this.options.tabSize ??
|
|
318
|
+
let t = this.options.tabSize ?? A, { state: n } = e, { selection: r } = n, { $from: i, empty: a } = r;
|
|
297
319
|
return i.parent.type === this.type ? a ? e.commands.command(({ tr: e }) => {
|
|
298
320
|
let { pos: r } = i, a = i.start(), o = i.end(), s = n.doc.textBetween(a, o, "\n", "\n").split("\n"), c = 0, l = 0, u = r - a;
|
|
299
321
|
for (let e = 0; e < s.length; e += 1) {
|
|
@@ -341,11 +363,11 @@ var D = (e, t) => de(e, t, !1), fe = (e, t) => {
|
|
|
341
363
|
},
|
|
342
364
|
addInputRules() {
|
|
343
365
|
return [l({
|
|
344
|
-
find:
|
|
366
|
+
find: Ee,
|
|
345
367
|
type: this.type,
|
|
346
368
|
getAttributes: (e) => ({ language: e[1] })
|
|
347
369
|
}), l({
|
|
348
|
-
find:
|
|
370
|
+
find: De,
|
|
349
371
|
type: this.type,
|
|
350
372
|
getAttributes: (e) => ({ language: e[1] })
|
|
351
373
|
})];
|
|
@@ -362,12 +384,12 @@ var D = (e, t) => de(e, t, !1), fe = (e, t) => {
|
|
|
362
384
|
} }
|
|
363
385
|
})];
|
|
364
386
|
}
|
|
365
|
-
}),
|
|
387
|
+
}), ke = S.create({
|
|
366
388
|
name: "doc",
|
|
367
389
|
topNode: !0,
|
|
368
390
|
content: "block+",
|
|
369
391
|
renderMarkdown: (e, t) => e.content ? t.renderChildren(e.content, "\n\n") : ""
|
|
370
|
-
}),
|
|
392
|
+
}), Ae = S.create({
|
|
371
393
|
name: "hardBreak",
|
|
372
394
|
markdownTokenName: "br",
|
|
373
395
|
addOptions() {
|
|
@@ -411,7 +433,7 @@ var D = (e, t) => de(e, t, !1), fe = (e, t) => {
|
|
|
411
433
|
"Shift-Enter": () => this.editor.commands.setHardBreak()
|
|
412
434
|
};
|
|
413
435
|
}
|
|
414
|
-
}),
|
|
436
|
+
}), je = S.create({
|
|
415
437
|
name: "heading",
|
|
416
438
|
addOptions() {
|
|
417
439
|
return {
|
|
@@ -472,7 +494,7 @@ var D = (e, t) => de(e, t, !1), fe = (e, t) => {
|
|
|
472
494
|
getAttributes: { level: e }
|
|
473
495
|
}));
|
|
474
496
|
}
|
|
475
|
-
}),
|
|
497
|
+
}), Me = S.create({
|
|
476
498
|
name: "horizontalRule",
|
|
477
499
|
addOptions() {
|
|
478
500
|
return {
|
|
@@ -514,7 +536,7 @@ var D = (e, t) => de(e, t, !1), fe = (e, t) => {
|
|
|
514
536
|
type: this.type
|
|
515
537
|
})];
|
|
516
538
|
}
|
|
517
|
-
}),
|
|
539
|
+
}), Ne = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, Pe = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, Fe = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, Ie = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, Le = y.create({
|
|
518
540
|
name: "italic",
|
|
519
541
|
addOptions() {
|
|
520
542
|
return { HTMLAttributes: {} };
|
|
@@ -562,28 +584,23 @@ var D = (e, t) => de(e, t, !1), fe = (e, t) => {
|
|
|
562
584
|
},
|
|
563
585
|
addInputRules() {
|
|
564
586
|
return [b({
|
|
565
|
-
find:
|
|
587
|
+
find: Ne,
|
|
566
588
|
type: this.type
|
|
567
589
|
}), b({
|
|
568
|
-
find:
|
|
590
|
+
find: Fe,
|
|
569
591
|
type: this.type
|
|
570
592
|
})];
|
|
571
593
|
},
|
|
572
594
|
addPasteRules() {
|
|
573
595
|
return [C({
|
|
574
|
-
find:
|
|
596
|
+
find: Pe,
|
|
575
597
|
type: this.type
|
|
576
598
|
}), C({
|
|
577
|
-
find:
|
|
599
|
+
find: Ie,
|
|
578
600
|
type: this.type
|
|
579
601
|
})];
|
|
580
602
|
}
|
|
581
|
-
}),
|
|
582
|
-
for (var n in t) Fe(e, n, {
|
|
583
|
-
get: t[n],
|
|
584
|
-
enumerable: !0
|
|
585
|
-
});
|
|
586
|
-
}, Le = "listItem", Re = "textStyle", ze = /^\s*([-+*])\s$/, Be = S.create({
|
|
603
|
+
}), Re = "listItem", ze = "textStyle", Be = /^\s*([-+*])\s$/, Ve = S.create({
|
|
587
604
|
name: "bulletList",
|
|
588
605
|
addOptions() {
|
|
589
606
|
return {
|
|
@@ -615,26 +632,26 @@ var D = (e, t) => de(e, t, !1), fe = (e, t) => {
|
|
|
615
632
|
renderMarkdown: (e, t) => e.content ? t.renderChildren(e.content, "\n") : "",
|
|
616
633
|
markdownOptions: { indentsContent: !0 },
|
|
617
634
|
addCommands() {
|
|
618
|
-
return { toggleBulletList: () => ({ commands: e, chain: t }) => this.options.keepAttributes ? t().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(
|
|
635
|
+
return { toggleBulletList: () => ({ commands: e, chain: t }) => this.options.keepAttributes ? t().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Re, this.editor.getAttributes(ze)).run() : e.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks) };
|
|
619
636
|
},
|
|
620
637
|
addKeyboardShortcuts() {
|
|
621
638
|
return { "Mod-Shift-8": () => this.editor.commands.toggleBulletList() };
|
|
622
639
|
},
|
|
623
640
|
addInputRules() {
|
|
624
641
|
let e = E({
|
|
625
|
-
find:
|
|
642
|
+
find: Be,
|
|
626
643
|
type: this.type
|
|
627
644
|
});
|
|
628
645
|
return (this.options.keepMarks || this.options.keepAttributes) && (e = E({
|
|
629
|
-
find:
|
|
646
|
+
find: Be,
|
|
630
647
|
type: this.type,
|
|
631
648
|
keepMarks: this.options.keepMarks,
|
|
632
649
|
keepAttributes: this.options.keepAttributes,
|
|
633
|
-
getAttributes: () => this.editor.getAttributes(
|
|
650
|
+
getAttributes: () => this.editor.getAttributes(ze),
|
|
634
651
|
editor: this.editor
|
|
635
652
|
})), [e];
|
|
636
653
|
}
|
|
637
|
-
}),
|
|
654
|
+
}), He = (e, t, n) => {
|
|
638
655
|
let { selection: r } = e;
|
|
639
656
|
if (!r.empty) return null;
|
|
640
657
|
let { $from: i } = r;
|
|
@@ -665,24 +682,24 @@ var D = (e, t) => de(e, t, !1), fe = (e, t) => {
|
|
|
665
682
|
insertPos: i.after(a),
|
|
666
683
|
items: f
|
|
667
684
|
};
|
|
668
|
-
},
|
|
669
|
-
let i =
|
|
685
|
+
}, Ue = (e, t, n, r) => {
|
|
686
|
+
let i = He(e, n, r);
|
|
670
687
|
if (!i) return !1;
|
|
671
688
|
let { selection: a } = e, { nestedList: o, nestedListPos: s, insertPos: c, items: l } = i, u = e.tr;
|
|
672
689
|
u.delete(s, s + o.nodeSize);
|
|
673
690
|
let d = u.mapping.map(c);
|
|
674
691
|
return u.insert(d, g.from(l)), u.setSelection(a.map(u.doc, u.mapping)), t && t(u), !0;
|
|
675
|
-
},
|
|
692
|
+
}, We = (e, t, n) => Ue(e.state, e.view.dispatch, t, n), Ge = (e, t) => T.create({
|
|
676
693
|
name: `${e}BranchingDeleteKeymap`,
|
|
677
694
|
priority: 101,
|
|
678
695
|
addKeyboardShortcuts() {
|
|
679
|
-
let n = () =>
|
|
696
|
+
let n = () => We(this.editor, e, t);
|
|
680
697
|
return {
|
|
681
698
|
Delete: n,
|
|
682
699
|
"Mod-Delete": n
|
|
683
700
|
};
|
|
684
701
|
}
|
|
685
|
-
}),
|
|
702
|
+
}), Ke = [
|
|
686
703
|
[1e3, "m"],
|
|
687
704
|
[900, "cm"],
|
|
688
705
|
[500, "d"],
|
|
@@ -696,20 +713,20 @@ var D = (e, t) => de(e, t, !1), fe = (e, t) => {
|
|
|
696
713
|
[5, "v"],
|
|
697
714
|
[4, "iv"],
|
|
698
715
|
[1, "i"]
|
|
699
|
-
],
|
|
700
|
-
function
|
|
716
|
+
], j = "abcdefghijklmnopqrstuvwxyz", qe = String.raw`\d+|[ivxlcdmIVXLCDM]+|${"[a-zA-Z]{1,2}"}`;
|
|
717
|
+
function M(e) {
|
|
701
718
|
let t = e, n = "";
|
|
702
|
-
for (let [e, r] of
|
|
719
|
+
for (let [e, r] of Ke) for (; t >= e;) n += r, t -= e;
|
|
703
720
|
return n;
|
|
704
721
|
}
|
|
705
|
-
function qe(e) {
|
|
706
|
-
return A(e).toUpperCase();
|
|
707
|
-
}
|
|
708
722
|
function Je(e) {
|
|
723
|
+
return M(e).toUpperCase();
|
|
724
|
+
}
|
|
725
|
+
function Ye(e) {
|
|
709
726
|
let t = e.toLowerCase(), n = 0, r = 0;
|
|
710
727
|
for (; n < t.length;) {
|
|
711
728
|
let e = !1;
|
|
712
|
-
for (let [i, a] of
|
|
729
|
+
for (let [i, a] of Ke) if (t.startsWith(a, n)) {
|
|
713
730
|
r += i, n += a.length, e = !0;
|
|
714
731
|
break;
|
|
715
732
|
}
|
|
@@ -717,12 +734,12 @@ function Je(e) {
|
|
|
717
734
|
}
|
|
718
735
|
return r;
|
|
719
736
|
}
|
|
720
|
-
function
|
|
737
|
+
function Xe(e) {
|
|
721
738
|
if (!/^[ivxlcdmIVXLCDM]+$/.test(e)) return !1;
|
|
722
|
-
let t =
|
|
723
|
-
return t <= 0 ? !1 : (e === e.toLowerCase() ?
|
|
739
|
+
let t = Ye(e);
|
|
740
|
+
return t <= 0 ? !1 : (e === e.toLowerCase() ? M(t) : Je(t)) === e;
|
|
724
741
|
}
|
|
725
|
-
function
|
|
742
|
+
function Ze(e) {
|
|
726
743
|
let t = e.toLowerCase();
|
|
727
744
|
if (t.length === 1) return t.charCodeAt(0) - 97 + 1;
|
|
728
745
|
if (t.length === 2) {
|
|
@@ -731,24 +748,24 @@ function Xe(e) {
|
|
|
731
748
|
}
|
|
732
749
|
return 0;
|
|
733
750
|
}
|
|
734
|
-
function
|
|
735
|
-
if (e <= 26) return
|
|
751
|
+
function N(e) {
|
|
752
|
+
if (e <= 26) return j[e - 1];
|
|
736
753
|
let t = Math.floor((e - 1) / 26) - 1, n = (e - 1) % 26;
|
|
737
|
-
return t < 0 ?
|
|
754
|
+
return t < 0 ? j[n] : j[t] + j[n];
|
|
738
755
|
}
|
|
739
|
-
function
|
|
756
|
+
function P(e) {
|
|
740
757
|
if (!(!e || /^\d+$/.test(e))) {
|
|
741
|
-
if (
|
|
758
|
+
if (Xe(e)) return e === e.toLowerCase() ? "i" : "I";
|
|
742
759
|
if (/^[a-z]{1,2}$/.test(e)) return "a";
|
|
743
760
|
if (/^[A-Z]{1,2}$/.test(e)) return "A";
|
|
744
761
|
}
|
|
745
762
|
}
|
|
746
|
-
function
|
|
763
|
+
function F(e) {
|
|
747
764
|
if (/^\d+$/.test(e)) return parseInt(e, 10);
|
|
748
|
-
let t =
|
|
749
|
-
if (t === "i" || t === "I") return
|
|
765
|
+
let t = P(e);
|
|
766
|
+
if (t === "i" || t === "I") return Ye(e);
|
|
750
767
|
if (t === "a" || t === "A") {
|
|
751
|
-
let t =
|
|
768
|
+
let t = Ze(e);
|
|
752
769
|
return t > 0 ? t : 1;
|
|
753
770
|
}
|
|
754
771
|
let n = parseInt(e, 10);
|
|
@@ -757,16 +774,16 @@ function Ze(e) {
|
|
|
757
774
|
function Qe(e, t) {
|
|
758
775
|
if (e === "numeric") return String(t);
|
|
759
776
|
switch (e) {
|
|
760
|
-
case "a": return
|
|
761
|
-
case "A": return
|
|
762
|
-
case "i": return
|
|
763
|
-
case "I": return
|
|
777
|
+
case "a": return N(t);
|
|
778
|
+
case "A": return N(t).toUpperCase();
|
|
779
|
+
case "i": return M(t);
|
|
780
|
+
case "I": return Je(t);
|
|
764
781
|
default: return String(t);
|
|
765
782
|
}
|
|
766
783
|
}
|
|
767
784
|
function $e(e) {
|
|
768
785
|
if (e.length === 0) return !1;
|
|
769
|
-
let t =
|
|
786
|
+
let t = P(e[0]) ?? "numeric", n = F(e[0]);
|
|
770
787
|
if (n < 1) return !1;
|
|
771
788
|
for (let r = 0; r < e.length; r++) {
|
|
772
789
|
let i = Qe(t, n + r);
|
|
@@ -776,8 +793,8 @@ function $e(e) {
|
|
|
776
793
|
}
|
|
777
794
|
function et(e) {
|
|
778
795
|
return {
|
|
779
|
-
type:
|
|
780
|
-
start:
|
|
796
|
+
type: P(e),
|
|
797
|
+
start: F(e)
|
|
781
798
|
};
|
|
782
799
|
}
|
|
783
800
|
function tt(e) {
|
|
@@ -788,10 +805,10 @@ function nt(e, t, n = ". ") {
|
|
|
788
805
|
let r = t + 1;
|
|
789
806
|
if (!e || e === "1") return `${r}${n}`;
|
|
790
807
|
switch (e) {
|
|
791
|
-
case "a": return `${
|
|
792
|
-
case "A": return `${
|
|
793
|
-
case "i": return `${
|
|
794
|
-
case "I": return `${
|
|
808
|
+
case "a": return `${N(r)}${n}`;
|
|
809
|
+
case "A": return `${N(r).toUpperCase()}${n}`;
|
|
810
|
+
case "i": return `${M(r)}${n}`;
|
|
811
|
+
case "I": return `${Je(r)}${n}`;
|
|
795
812
|
default: return `${r}${n}`;
|
|
796
813
|
}
|
|
797
814
|
}
|
|
@@ -864,13 +881,14 @@ var at = S.create({
|
|
|
864
881
|
renderMarkdown: (e, t, n) => r(e, t, (e) => {
|
|
865
882
|
if (e.parentType === "bulletList") return "- ";
|
|
866
883
|
if (e.parentType === "orderedList") {
|
|
867
|
-
|
|
868
|
-
|
|
884
|
+
var t, n;
|
|
885
|
+
let r = ((t = e.meta) == null || (t = t.parentAttrs) == null ? void 0 : t.start) || 1;
|
|
886
|
+
return nt((n = e.meta) == null || (n = n.parentAttrs) == null ? void 0 : n.type, r - 1 + (e.index || 0), ". ");
|
|
869
887
|
}
|
|
870
888
|
return "- ";
|
|
871
889
|
}, n),
|
|
872
890
|
addExtensions() {
|
|
873
|
-
return [
|
|
891
|
+
return [Ge(this.name, [this.options.bulletListTypeName, this.options.orderedListTypeName])];
|
|
874
892
|
},
|
|
875
893
|
addKeyboardShortcuts() {
|
|
876
894
|
return {
|
|
@@ -879,39 +897,25 @@ var at = S.create({
|
|
|
879
897
|
"Shift-Tab": () => this.editor.commands.liftListItem(this.name)
|
|
880
898
|
};
|
|
881
899
|
}
|
|
882
|
-
})
|
|
883
|
-
Ie({}, {
|
|
884
|
-
findListItemPos: () => N,
|
|
885
|
-
getNextListDepth: () => P,
|
|
886
|
-
handleBackspace: () => F,
|
|
887
|
-
handleDelete: () => I,
|
|
888
|
-
handleTab: () => lt,
|
|
889
|
-
hasListBefore: () => ot,
|
|
890
|
-
hasListItemAfter: () => ut,
|
|
891
|
-
hasListItemBefore: () => dt,
|
|
892
|
-
listItemHasSubList: () => ft,
|
|
893
|
-
nextListIsDeeper: () => st,
|
|
894
|
-
nextListIsHigher: () => ct
|
|
895
|
-
});
|
|
896
|
-
var N = (e, t) => {
|
|
900
|
+
}), I = (e, t) => {
|
|
897
901
|
let { $from: n } = t.selection, r = ee(e, t.schema), i = null, a = n.depth, o = n.pos, s = null;
|
|
898
902
|
for (; a > 0 && s === null;) i = n.node(a), i.type === r ? s = a : (--a, --o);
|
|
899
903
|
return s === null ? null : {
|
|
900
904
|
$pos: t.doc.resolve(o),
|
|
901
905
|
depth: s
|
|
902
906
|
};
|
|
903
|
-
},
|
|
904
|
-
let n =
|
|
907
|
+
}, ot = (e, t) => {
|
|
908
|
+
let n = I(e, t);
|
|
905
909
|
if (!n) return !1;
|
|
906
910
|
let [, r] = oe(t, e, n.$pos.pos + 4);
|
|
907
911
|
return r;
|
|
908
|
-
},
|
|
912
|
+
}, st = (e, t, n) => {
|
|
909
913
|
let { $anchor: r } = e.selection, i = Math.max(0, r.pos - 2), a = e.doc.resolve(i).node();
|
|
910
914
|
return !(!a || !n.includes(a.type.name));
|
|
911
|
-
},
|
|
915
|
+
}, ct = (e, n, r) => {
|
|
912
916
|
if (e.commands.undoInputRule()) return !0;
|
|
913
917
|
if (e.state.selection.from !== e.state.selection.to) return !1;
|
|
914
|
-
if (!t(e.state, n) &&
|
|
918
|
+
if (!t(e.state, n) && st(e.state, n, r)) {
|
|
915
919
|
let { $anchor: t } = e.state.selection, r = e.state.doc.resolve(t.before() - 1), i = [];
|
|
916
920
|
r.node().descendants((e, t) => {
|
|
917
921
|
e.type.name === n && i.push({
|
|
@@ -930,17 +934,17 @@ var N = (e, t) => {
|
|
|
930
934
|
if (!t(e.state, n) || !u(e.state)) return !1;
|
|
931
935
|
let { $from: i } = e.state.selection, a = i.depth - 1;
|
|
932
936
|
return i.node(a).type !== e.schema.nodes[n] || i.index(a) !== 0 ? !1 : e.chain().liftListItem(n).run();
|
|
933
|
-
},
|
|
934
|
-
let n =
|
|
937
|
+
}, lt = (e, t) => {
|
|
938
|
+
let n = ot(e, t), r = I(e, t);
|
|
935
939
|
return !r || !n ? !1 : n > r.depth;
|
|
936
|
-
},
|
|
937
|
-
let n =
|
|
940
|
+
}, ut = (e, t) => {
|
|
941
|
+
let n = ot(e, t), r = I(e, t);
|
|
938
942
|
return !r || !n ? !1 : n < r.depth;
|
|
939
|
-
},
|
|
943
|
+
}, dt = (e, n) => {
|
|
940
944
|
if (!t(e.state, n) || !ne(e.state, n)) return !1;
|
|
941
945
|
let { selection: r } = e.state, { $from: i, $to: a } = r;
|
|
942
|
-
return !r.empty && i.sameParent(a) ? !1 :
|
|
943
|
-
},
|
|
946
|
+
return !r.empty && i.sameParent(a) ? !1 : lt(n, e.state) ? e.chain().focus(e.state.selection.from + 4).lift(n).joinBackward().run() : ut(n, e.state) ? e.chain().joinForward().joinBackward().run() : e.commands.joinItemForward();
|
|
947
|
+
}, ft = (e, n, r) => {
|
|
944
948
|
let { state: i } = e, { selection: a } = i;
|
|
945
949
|
if (!a.empty) return !1;
|
|
946
950
|
let { $from: o } = a;
|
|
@@ -953,18 +957,6 @@ var N = (e, t) => {
|
|
|
953
957
|
if (!c.canReplace(c.childCount, c.childCount, g.from(l))) return !1;
|
|
954
958
|
let u = o.before(), d = o.after(), f = u - 2;
|
|
955
959
|
return e.commands.command(({ tr: e, dispatch: t }) => (t && (e.delete(u, d).insert(f, g.from(l)), e.setSelection(w.create(e.doc, f + 1)), e.scrollIntoView()), !0));
|
|
956
|
-
}, ut = (e, t) => {
|
|
957
|
-
let { $anchor: n } = t.selection, r = t.doc.resolve(n.pos - n.parentOffset - 2);
|
|
958
|
-
return r.index() !== r.parent.childCount - 1 && r.nodeAfter?.type.name === e;
|
|
959
|
-
}, dt = (e, t) => {
|
|
960
|
-
let { $anchor: n } = t.selection, r = t.doc.resolve(n.pos - 2);
|
|
961
|
-
return r.index() !== 0 && r.nodeBefore?.type.name === e;
|
|
962
|
-
}, ft = (e, t, n) => {
|
|
963
|
-
if (!n) return !1;
|
|
964
|
-
let r = ee(e, t.schema), i = !1;
|
|
965
|
-
return n.descendants((e) => {
|
|
966
|
-
e.type === r && (i = !0);
|
|
967
|
-
}), i;
|
|
968
960
|
}, pt = T.create({
|
|
969
961
|
name: "listKeymap",
|
|
970
962
|
addOptions() {
|
|
@@ -981,34 +973,34 @@ var N = (e, t) => {
|
|
|
981
973
|
Delete: ({ editor: e }) => {
|
|
982
974
|
let t = !1;
|
|
983
975
|
return this.options.listTypes.forEach(({ itemName: n }) => {
|
|
984
|
-
e.state.schema.nodes[n] !== void 0 &&
|
|
976
|
+
e.state.schema.nodes[n] !== void 0 && dt(e, n) && (t = !0);
|
|
985
977
|
}), t;
|
|
986
978
|
},
|
|
987
979
|
"Mod-Delete": ({ editor: e }) => {
|
|
988
980
|
let t = !1;
|
|
989
981
|
return this.options.listTypes.forEach(({ itemName: n }) => {
|
|
990
|
-
e.state.schema.nodes[n] !== void 0 &&
|
|
982
|
+
e.state.schema.nodes[n] !== void 0 && dt(e, n) && (t = !0);
|
|
991
983
|
}), t;
|
|
992
984
|
},
|
|
993
985
|
Backspace: ({ editor: e }) => {
|
|
994
986
|
let t = !1;
|
|
995
987
|
return this.options.listTypes.forEach(({ itemName: n, wrapperNames: r }) => {
|
|
996
|
-
e.state.schema.nodes[n] !== void 0 &&
|
|
988
|
+
e.state.schema.nodes[n] !== void 0 && ct(e, n, r) && (t = !0);
|
|
997
989
|
}), t;
|
|
998
990
|
},
|
|
999
991
|
"Mod-Backspace": ({ editor: e }) => {
|
|
1000
992
|
let t = !1;
|
|
1001
993
|
return this.options.listTypes.forEach(({ itemName: n, wrapperNames: r }) => {
|
|
1002
|
-
e.state.schema.nodes[n] !== void 0 &&
|
|
994
|
+
e.state.schema.nodes[n] !== void 0 && ct(e, n, r) && (t = !0);
|
|
1003
995
|
}), t;
|
|
1004
996
|
},
|
|
1005
997
|
Tab: ({ editor: e }) => {
|
|
1006
|
-
for (let { itemName: t, wrapperNames: n } of this.options.listTypes) if (e.state.schema.nodes[t] !== void 0 &&
|
|
998
|
+
for (let { itemName: t, wrapperNames: n } of this.options.listTypes) if (e.state.schema.nodes[t] !== void 0 && ft(e, t, n)) return !0;
|
|
1007
999
|
return !1;
|
|
1008
1000
|
}
|
|
1009
1001
|
};
|
|
1010
1002
|
}
|
|
1011
|
-
}), L = RegExp(`^(\\s*)(${
|
|
1003
|
+
}), L = RegExp(`^(\\s*)(${qe})([.)])\\s+(.*)$`), mt = /^\s/, R = {
|
|
1012
1004
|
heading: /^#{1,6}(?:\s|$)/,
|
|
1013
1005
|
bulletItem: /^[-+*]\s+/,
|
|
1014
1006
|
codeFence: /^(?:```|~~~)/,
|
|
@@ -1051,7 +1043,7 @@ function yt(e) {
|
|
|
1051
1043
|
for (; n < e.length;) {
|
|
1052
1044
|
let i = e[n], a = i.match(L);
|
|
1053
1045
|
if (!a) break;
|
|
1054
|
-
let [, o, s, c, l] = a, u = o.length, d = parseInt(s, 10), f = isNaN(d) ?
|
|
1046
|
+
let [, o, s, c, l] = a, u = o.length, d = parseInt(s, 10), f = isNaN(d) ? P(s) : void 0, p = isNaN(d) ? F(s) : d, m = [l], h = n + 1, g = [i], _ = !1;
|
|
1055
1047
|
for (; h < e.length;) {
|
|
1056
1048
|
let t = e[h];
|
|
1057
1049
|
if (t.match(L)) break;
|
|
@@ -1075,7 +1067,7 @@ function yt(e) {
|
|
|
1075
1067
|
}
|
|
1076
1068
|
return [t, r];
|
|
1077
1069
|
}
|
|
1078
|
-
var bt = RegExp(`^(${
|
|
1070
|
+
var bt = RegExp(`^(${qe})([.)])\\s+(.+)$`);
|
|
1079
1071
|
function xt(e) {
|
|
1080
1072
|
let t = e.split("\n").filter((e) => e.trim().length > 0);
|
|
1081
1073
|
if (t.length === 0) return null;
|
|
@@ -1305,7 +1297,10 @@ var Ot = S.create({
|
|
|
1305
1297
|
editor: this.editor
|
|
1306
1298
|
})), [t];
|
|
1307
1299
|
}
|
|
1308
|
-
}), kt = /^\s*(\[([( |x])?\])\s$/, At = "position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0", jt = (e, t, n) =>
|
|
1300
|
+
}), kt = /^\s*(\[([( |x])?\])\s$/, At = "position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0", jt = (e, t, n) => {
|
|
1301
|
+
var r;
|
|
1302
|
+
return (n == null || (r = n.checkboxLabel) == null ? void 0 : r.call(n, e, t)) || `Task item checkbox for ${e.textContent || "empty task item"}`;
|
|
1303
|
+
}, Mt = S.create({
|
|
1309
1304
|
name: "taskItem",
|
|
1310
1305
|
addOptions() {
|
|
1311
1306
|
return {
|
|
@@ -1365,7 +1360,7 @@ var Ot = S.create({
|
|
|
1365
1360
|
return r(e, t, n);
|
|
1366
1361
|
},
|
|
1367
1362
|
addExtensions() {
|
|
1368
|
-
return this.options.nested ? [
|
|
1363
|
+
return this.options.nested ? [Ge(this.name, [this.options.taskListTypeName])] : [];
|
|
1369
1364
|
},
|
|
1370
1365
|
addKeyboardShortcuts() {
|
|
1371
1366
|
let e = {
|
|
@@ -1531,11 +1526,11 @@ T.create({
|
|
|
1531
1526
|
name: "listKit",
|
|
1532
1527
|
addExtensions() {
|
|
1533
1528
|
let e = [];
|
|
1534
|
-
return this.options.bulletList !== !1 && e.push(
|
|
1529
|
+
return this.options.bulletList !== !1 && e.push(Ve.configure(this.options.bulletList)), this.options.listItem !== !1 && e.push(at.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(pt.configure(this.options.listKeymap)), this.options.orderedList !== !1 && e.push(Ot.configure(this.options.orderedList)), this.options.taskItem !== !1 && e.push(Mt.configure(this.options.taskItem)), this.options.taskList !== !1 && e.push(Nt.configure(this.options.taskList)), e;
|
|
1535
1530
|
}
|
|
1536
1531
|
});
|
|
1537
1532
|
//#endregion
|
|
1538
|
-
//#region ../../node_modules/.pnpm/@tiptap+extension-paragraph@3.30.
|
|
1533
|
+
//#region ../../node_modules/.pnpm/@tiptap+extension-paragraph@3.30.5_@tiptap+core@3.30.5_@tiptap+pm@3.30.5_/node_modules/@tiptap/extension-paragraph/dist/index.js
|
|
1539
1534
|
var z = " ", B = "\xA0", Pt = S.create({
|
|
1540
1535
|
name: "paragraph",
|
|
1541
1536
|
priority: 1e3,
|
|
@@ -1564,8 +1559,9 @@ var z = " ", B = "\xA0", Pt = S.create({
|
|
|
1564
1559
|
if (!e) return "";
|
|
1565
1560
|
let r = Array.isArray(e.content) ? e.content : [];
|
|
1566
1561
|
if (r.length === 0) {
|
|
1567
|
-
|
|
1568
|
-
|
|
1562
|
+
var i, a;
|
|
1563
|
+
let e = Array.isArray(n == null || (i = n.previousNode) == null ? void 0 : i.content) ? n.previousNode.content : [];
|
|
1564
|
+
return (n == null || (a = n.previousNode) == null ? void 0 : a.type) === "paragraph" && e.length === 0 ? z : "";
|
|
1569
1565
|
}
|
|
1570
1566
|
return t.renderChildren(r);
|
|
1571
1567
|
},
|
|
@@ -2642,7 +2638,7 @@ var Pn = T.create({
|
|
|
2642
2638
|
name: "starterKit",
|
|
2643
2639
|
addExtensions() {
|
|
2644
2640
|
let e = [];
|
|
2645
|
-
return this.options.bold !== !1 && e.push(
|
|
2641
|
+
return this.options.bold !== !1 && e.push(Se.configure(this.options.bold)), this.options.blockquote !== !1 && e.push(_e.configure(this.options.blockquote)), this.options.bulletList !== !1 && e.push(Ve.configure(this.options.bulletList)), this.options.code !== !1 && e.push(Te.configure(this.options.code)), this.options.codeBlock !== !1 && e.push(Oe.configure(this.options.codeBlock)), this.options.document !== !1 && e.push(ke.configure(this.options.document)), this.options.dropcursor !== !1 && e.push(fn.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && e.push(pn.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && e.push(Ae.configure(this.options.hardBreak)), this.options.heading !== !1 && e.push(je.configure(this.options.heading)), this.options.undoRedo !== !1 && e.push(Fn.configure(this.options.undoRedo)), this.options.horizontalRule !== !1 && e.push(Me.configure(this.options.horizontalRule)), this.options.italic !== !1 && e.push(Le.configure(this.options.italic)), this.options.listItem !== !1 && e.push(at.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(pt.configure(this.options?.listKeymap)), this.options.link !== !1 && e.push(le.configure(this.options?.link)), this.options.orderedList !== !1 && e.push(Ot.configure(this.options.orderedList)), this.options.paragraph !== !1 && e.push(Pt.configure(this.options.paragraph)), this.options.strike !== !1 && e.push(Lt.configure(this.options.strike)), this.options.text !== !1 && e.push(Rt.configure(this.options.text)), this.options.underline !== !1 && e.push(ue.configure(this.options?.underline)), this.options.trailingNode !== !1 && e.push(Pn.configure(this.options?.trailingNode)), e;
|
|
2646
2642
|
}
|
|
2647
2643
|
}), Ln = In;
|
|
2648
2644
|
//#endregion
|