@mx-space/cli 0.15.0 → 0.15.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/README.md +1 -1
- package/dist/{Lexical.dev-Cck4n26y.mjs → Lexical.dev-BSvx45_E.mjs} +127 -94
- package/dist/{Lexical.node-D6wf2D5M.mjs → Lexical.node-kAh5GM2n.mjs} +1 -1
- package/dist/{Lexical.prod-DCwS1oTq.mjs → Lexical.prod-Bqwgb3ez.mjs} +4 -2
- package/dist/{LexicalClipboard.dev-CMkPHV7O.mjs → LexicalClipboard.dev-BWU3KXIa.mjs} +18 -14
- package/dist/{LexicalClipboard.node-m4nZ7IYw.mjs → LexicalClipboard.node-BygAdNdF.mjs} +1 -1
- package/dist/{LexicalClipboard.prod-B_rN1vE1.mjs → LexicalClipboard.prod-BtMuKNyT.mjs} +10 -10
- package/dist/{LexicalCodeCore.dev-DyJw3i8V.mjs → LexicalCodeCore.dev-CD2xgvDs.mjs} +43 -25
- package/dist/{LexicalCodeCore.prod-DPXLHQLF.mjs → LexicalCodeCore.prod-Bl6FFMc7.mjs} +6 -6
- package/dist/{LexicalDragon.dev-ZkNfMwrE.mjs → LexicalDragon.dev-BwdYhm4K.mjs} +2 -2
- package/dist/{LexicalDragon.node-Ds9oLUFh.mjs → LexicalDragon.node-CpJhkCVV.mjs} +1 -1
- package/dist/{LexicalDragon.prod-B58ic2av.mjs → LexicalDragon.prod-CvXmWwo1.mjs} +2 -2
- package/dist/{LexicalExtension.dev-DvwHs1Xv.mjs → LexicalExtension.dev-LcRLXI5Z.mjs} +25 -13
- package/dist/{LexicalExtension.node-5OymZQfy.mjs → LexicalExtension.node-BwJt2LXV.mjs} +1 -1
- package/dist/{LexicalExtension.prod-Ce0T5smQ.mjs → LexicalExtension.prod-lg8_33-H.mjs} +16 -13
- package/dist/{LexicalHeadless.dev-DA0WldSR.mjs → LexicalHeadless.dev-BeUbKBes.mjs} +1 -1
- package/dist/{LexicalHeadless.prod-1kQgKB6c.mjs → LexicalHeadless.prod-4gbIA8HM.mjs} +1 -1
- package/dist/{LexicalHtml.dev-BDB7CUrx.mjs → LexicalHtml.dev-BLdZWTCJ.mjs} +20 -14
- package/dist/{LexicalHtml.node-DpVNt7It.mjs → LexicalHtml.node-BeuJMvvt.mjs} +1 -1
- package/dist/{LexicalHtml.prod-HkxM5scw.mjs → LexicalHtml.prod-CHUyCocN.mjs} +4 -4
- package/dist/{LexicalLink.dev-C5zNJlrm.mjs → LexicalLink.dev-DgsFRqw0.mjs} +28 -21
- package/dist/{LexicalLink.prod-Bkt9hQAt.mjs → LexicalLink.prod-CkXkeKY2.mjs} +6 -5
- package/dist/{LexicalList.dev-B7VgME-m.mjs → LexicalList.dev-OOms3kQi.mjs} +4 -4
- package/dist/{LexicalList.prod-B8c7TDjH.mjs → LexicalList.prod-DzMBeqHn.mjs} +4 -4
- package/dist/{LexicalMarkdown.dev-B5z9kLbV.mjs → LexicalMarkdown.dev-DJLKbZtD.mjs} +40 -29
- package/dist/{LexicalMarkdown.prod-wKzw7FFH.mjs → LexicalMarkdown.prod-Cp21kDCU.mjs} +10 -7
- package/dist/{LexicalRichText.dev-CUd6Li5F.mjs → LexicalRichText.dev-0rkAGjUf.mjs} +15 -11
- package/dist/{LexicalRichText.node-BKfaQ-CH.mjs → LexicalRichText.node-Cd-BySPE.mjs} +4 -4
- package/dist/{LexicalRichText.prod-SBewjJHx.mjs → LexicalRichText.prod-DTQiEr8C.mjs} +17 -11
- package/dist/{LexicalSelection.dev-D27JOCqj.mjs → LexicalSelection.dev-Bi0VlUEv.mjs} +28 -24
- package/dist/{LexicalSelection.node-DBEwPjBu.mjs → LexicalSelection.node-t2U46EF_.mjs} +1 -1
- package/dist/{LexicalSelection.prod-OaYhXHOL.mjs → LexicalSelection.prod-CrFG111g.mjs} +2 -2
- package/dist/{LexicalTable.dev-6IFFOAE0.mjs → LexicalTable.dev-D-sFhO-o.mjs} +33 -28
- package/dist/{LexicalTable.prod-2CaLZ7fH.mjs → LexicalTable.prod-DwYaa_dN.mjs} +10 -9
- package/dist/{LexicalUtils.dev-DJA7J_7v.mjs → LexicalUtils.dev-Q2q3-UDM.mjs} +8 -5
- package/dist/{LexicalUtils.node-Df9oPTlA.mjs → LexicalUtils.node-Dl7OvqJV.mjs} +1 -1
- package/dist/{LexicalUtils.prod-Bb7V4Ewg.mjs → LexicalUtils.prod-CBnq_iEV.mjs} +7 -6
- package/dist/bin/mxs.mjs +1 -1
- package/dist/esm-CNZ7kdTg.mjs +2 -0
- package/dist/{esm-DLzrv7gD.mjs → esm-ZXjJmLEC.mjs} +257 -260
- package/dist/index.mjs +1 -1
- package/dist/{mxs-BIRW5Axj.mjs → mxs-DC9zR3f2.mjs} +759 -539
- package/dist/{rolldown-runtime-JspESFgx.mjs → rolldown-runtime-B4iAMlE-.mjs} +1 -1
- package/dist/src/bin/mxs.d.ts +2 -0
- package/dist/src/bin/mxs.js +310 -0
- package/dist/src/cli/ai/_poll.d.ts +12 -0
- package/dist/src/cli/ai/_poll.js +38 -0
- package/dist/src/cli/ai/_resolve.d.ts +8 -0
- package/dist/src/cli/ai/_resolve.js +27 -0
- package/dist/src/cli/ai/index.d.ts +127 -0
- package/dist/src/cli/ai/index.js +46 -0
- package/dist/src/cli/ai/insights/by-article.d.ts +10 -0
- package/dist/src/cli/ai/insights/by-article.js +21 -0
- package/dist/src/cli/ai/insights/delete.d.ts +7 -0
- package/dist/src/cli/ai/insights/delete.js +18 -0
- package/dist/src/cli/ai/insights/edit.d.ts +8 -0
- package/dist/src/cli/ai/insights/edit.js +54 -0
- package/dist/src/cli/ai/insights/get.d.ts +6 -0
- package/dist/src/cli/ai/insights/get.js +11 -0
- package/dist/src/cli/ai/insights/index.d.ts +30 -0
- package/dist/src/cli/ai/insights/index.js +17 -0
- package/dist/src/cli/ai/insights/list.d.ts +10 -0
- package/dist/src/cli/ai/insights/list.js +20 -0
- package/dist/src/cli/ai/insights/refresh.d.ts +10 -0
- package/dist/src/cli/ai/insights/refresh.js +25 -0
- package/dist/src/cli/ai/insights/translate.d.ts +10 -0
- package/dist/src/cli/ai/insights/translate.js +25 -0
- package/dist/src/cli/ai/overview/by-article.d.ts +7 -0
- package/dist/src/cli/ai/overview/by-article.js +15 -0
- package/dist/src/cli/ai/overview/index.d.ts +11 -0
- package/dist/src/cli/ai/overview/index.js +4 -0
- package/dist/src/cli/ai/overview/list.d.ts +10 -0
- package/dist/src/cli/ai/overview/list.js +20 -0
- package/dist/src/cli/ai/summary/by-article.d.ts +10 -0
- package/dist/src/cli/ai/summary/by-article.js +21 -0
- package/dist/src/cli/ai/summary/delete.d.ts +7 -0
- package/dist/src/cli/ai/summary/delete.js +18 -0
- package/dist/src/cli/ai/summary/edit.d.ts +8 -0
- package/dist/src/cli/ai/summary/edit.js +54 -0
- package/dist/src/cli/ai/summary/get.d.ts +6 -0
- package/dist/src/cli/ai/summary/get.js +11 -0
- package/dist/src/cli/ai/summary/index.d.ts +30 -0
- package/dist/src/cli/ai/summary/index.js +9 -0
- package/dist/src/cli/ai/summary/list.d.ts +10 -0
- package/dist/src/cli/ai/summary/list.js +20 -0
- package/dist/src/cli/ai/summary/regen.d.ts +10 -0
- package/dist/src/cli/ai/summary/regen.js +25 -0
- package/dist/src/cli/ai/summary/translate.d.ts +10 -0
- package/dist/src/cli/ai/summary/translate.js +25 -0
- package/dist/src/cli/ai/translate/by-article.d.ts +9 -0
- package/dist/src/cli/ai/translate/by-article.js +19 -0
- package/dist/src/cli/ai/translate/delete.d.ts +7 -0
- package/dist/src/cli/ai/translate/delete.js +18 -0
- package/dist/src/cli/ai/translate/edit.d.ts +8 -0
- package/dist/src/cli/ai/translate/edit.js +97 -0
- package/dist/src/cli/ai/translate/entries/delete.d.ts +7 -0
- package/dist/src/cli/ai/translate/entries/delete.js +18 -0
- package/dist/src/cli/ai/translate/entries/edit.d.ts +8 -0
- package/dist/src/cli/ai/translate/entries/edit.js +73 -0
- package/dist/src/cli/ai/translate/entries/generate.d.ts +7 -0
- package/dist/src/cli/ai/translate/entries/generate.js +15 -0
- package/dist/src/cli/ai/translate/entries/index.d.ts +17 -0
- package/dist/src/cli/ai/translate/entries/index.js +6 -0
- package/dist/src/cli/ai/translate/entries/list.d.ts +10 -0
- package/dist/src/cli/ai/translate/entries/list.js +20 -0
- package/dist/src/cli/ai/translate/get.d.ts +6 -0
- package/dist/src/cli/ai/translate/get.js +11 -0
- package/dist/src/cli/ai/translate/index.d.ts +40 -0
- package/dist/src/cli/ai/translate/index.js +19 -0
- package/dist/src/cli/ai/translate/languages.d.ts +7 -0
- package/dist/src/cli/ai/translate/languages.js +15 -0
- package/dist/src/cli/ai/translate/list.d.ts +9 -0
- package/dist/src/cli/ai/translate/list.js +19 -0
- package/dist/src/cli/ai/translate/run.d.ts +10 -0
- package/dist/src/cli/ai/translate/run.js +31 -0
- package/dist/src/cli/ai/tts/by-article.d.ts +7 -0
- package/dist/src/cli/ai/tts/by-article.js +15 -0
- package/dist/src/cli/ai/tts/delete.d.ts +7 -0
- package/dist/src/cli/ai/tts/delete.js +18 -0
- package/dist/src/cli/ai/tts/index.d.ts +22 -0
- package/dist/src/cli/ai/tts/index.js +7 -0
- package/dist/src/cli/ai/tts/list.d.ts +10 -0
- package/dist/src/cli/ai/tts/list.js +20 -0
- package/dist/src/cli/ai/tts/run.d.ts +10 -0
- package/dist/src/cli/ai/tts/run.js +25 -0
- package/dist/src/cli/ai/tts/voices.d.ts +7 -0
- package/dist/src/cli/ai/tts/voices.js +12 -0
- package/dist/src/cli/ai/views.d.ts +3 -0
- package/dist/src/cli/ai/views.js +45 -0
- package/dist/src/cli/auth/index.d.ts +6 -0
- package/dist/src/cli/auth/index.js +22 -0
- package/dist/src/cli/auth/login.d.ts +11 -0
- package/dist/src/cli/auth/login.js +168 -0
- package/dist/src/cli/auth/logout.d.ts +6 -0
- package/dist/src/cli/auth/logout.js +21 -0
- package/dist/src/cli/auth/status.d.ts +4 -0
- package/dist/src/cli/auth/status.js +31 -0
- package/dist/src/cli/auth/view.d.ts +25 -0
- package/dist/src/cli/auth/view.js +46 -0
- package/dist/src/cli/auth/whoami.d.ts +7 -0
- package/dist/src/cli/auth/whoami.js +44 -0
- package/dist/src/cli/category/create.d.ts +10 -0
- package/dist/src/cli/category/create.js +24 -0
- package/dist/src/cli/category/delete.d.ts +8 -0
- package/dist/src/cli/category/delete.js +21 -0
- package/dist/src/cli/category/get.d.ts +6 -0
- package/dist/src/cli/category/get.js +11 -0
- package/dist/src/cli/category/index.d.ts +20 -0
- package/dist/src/cli/category/index.js +41 -0
- package/dist/src/cli/category/list.d.ts +4 -0
- package/dist/src/cli/category/list.js +10 -0
- package/dist/src/cli/category/update.d.ts +12 -0
- package/dist/src/cli/category/update.js +34 -0
- package/dist/src/cli/comment/_flags.d.ts +28 -0
- package/dist/src/cli/comment/_flags.js +48 -0
- package/dist/src/cli/comment/approve.d.ts +9 -0
- package/dist/src/cli/comment/approve.js +23 -0
- package/dist/src/cli/comment/delete.d.ts +9 -0
- package/dist/src/cli/comment/delete.js +24 -0
- package/dist/src/cli/comment/get.d.ts +6 -0
- package/dist/src/cli/comment/get.js +12 -0
- package/dist/src/cli/comment/index.d.ts +34 -0
- package/dist/src/cli/comment/index.js +53 -0
- package/dist/src/cli/comment/list.d.ts +9 -0
- package/dist/src/cli/comment/list.js +20 -0
- package/dist/src/cli/comment/reject.d.ts +9 -0
- package/dist/src/cli/comment/reject.js +23 -0
- package/dist/src/cli/comment/reply.d.ts +9 -0
- package/dist/src/cli/comment/reply.js +31 -0
- package/dist/src/cli/comment/unread.d.ts +7 -0
- package/dist/src/cli/comment/unread.js +21 -0
- package/dist/src/cli/comment/view.d.ts +3 -0
- package/dist/src/cli/comment/view.js +197 -0
- package/dist/src/cli/config/edit.d.ts +5 -0
- package/dist/src/cli/config/edit.js +36 -0
- package/dist/src/cli/config/get.d.ts +6 -0
- package/dist/src/cli/config/get.js +11 -0
- package/dist/src/cli/config/index.d.ts +10 -0
- package/dist/src/cli/config/index.js +22 -0
- package/dist/src/cli/config/list.d.ts +4 -0
- package/dist/src/cli/config/list.js +10 -0
- package/dist/src/cli/config/set.d.ts +9 -0
- package/dist/src/cli/config/set.js +48 -0
- package/dist/src/cli/draft/_shared.d.ts +27 -0
- package/dist/src/cli/draft/_shared.js +85 -0
- package/dist/src/cli/draft/create.d.ts +21 -0
- package/dist/src/cli/draft/create.js +34 -0
- package/dist/src/cli/draft/delete.d.ts +7 -0
- package/dist/src/cli/draft/delete.js +20 -0
- package/dist/src/cli/draft/get.d.ts +6 -0
- package/dist/src/cli/draft/get.js +11 -0
- package/dist/src/cli/draft/index.d.ts +54 -0
- package/dist/src/cli/draft/index.js +42 -0
- package/dist/src/cli/draft/list.d.ts +11 -0
- package/dist/src/cli/draft/list.js +23 -0
- package/dist/src/cli/draft/publish.d.ts +8 -0
- package/dist/src/cli/draft/publish.js +64 -0
- package/dist/src/cli/draft/update.d.ts +22 -0
- package/dist/src/cli/draft/update.js +29 -0
- package/dist/src/cli/file/_shared.d.ts +6 -0
- package/dist/src/cli/file/_shared.js +5 -0
- package/dist/src/cli/file/delete.d.ts +8 -0
- package/dist/src/cli/file/delete.js +21 -0
- package/dist/src/cli/file/index.d.ts +19 -0
- package/dist/src/cli/file/index.js +33 -0
- package/dist/src/cli/file/list.d.ts +6 -0
- package/dist/src/cli/file/list.js +11 -0
- package/dist/src/cli/file/rename.d.ts +8 -0
- package/dist/src/cli/file/rename.js +16 -0
- package/dist/src/cli/file/upload.d.ts +9 -0
- package/dist/src/cli/file/upload.js +32 -0
- package/dist/src/cli/help/index.d.ts +62 -0
- package/dist/src/cli/help/index.js +276 -0
- package/dist/src/cli/help/registry.d.ts +28 -0
- package/dist/src/cli/help/registry.js +29 -0
- package/dist/src/cli/note/_flags.d.ts +66 -0
- package/dist/src/cli/note/_flags.js +73 -0
- package/dist/src/cli/note/create.d.ts +23 -0
- package/dist/src/cli/note/create.js +25 -0
- package/dist/src/cli/note/delete.d.ts +8 -0
- package/dist/src/cli/note/delete.js +21 -0
- package/dist/src/cli/note/edit.d.ts +28 -0
- package/dist/src/cli/note/edit.js +114 -0
- package/dist/src/cli/note/get.d.ts +6 -0
- package/dist/src/cli/note/get.js +29 -0
- package/dist/src/cli/note/index.d.ts +77 -0
- package/dist/src/cli/note/index.js +63 -0
- package/dist/src/cli/note/list.d.ts +10 -0
- package/dist/src/cli/note/list.js +22 -0
- package/dist/src/cli/note/publish.d.ts +7 -0
- package/dist/src/cli/note/publish.js +17 -0
- package/dist/src/cli/note/unpublish.d.ts +7 -0
- package/dist/src/cli/note/unpublish.js +17 -0
- package/dist/src/cli/note/update.d.ts +25 -0
- package/dist/src/cli/note/update.js +36 -0
- package/dist/src/cli/note/view.d.ts +3 -0
- package/dist/src/cli/note/view.js +162 -0
- package/dist/src/cli/page/create.d.ts +41 -0
- package/dist/src/cli/page/create.js +56 -0
- package/dist/src/cli/page/delete.d.ts +7 -0
- package/dist/src/cli/page/delete.js +37 -0
- package/dist/src/cli/page/edit.d.ts +19 -0
- package/dist/src/cli/page/edit.js +117 -0
- package/dist/src/cli/page/get.d.ts +6 -0
- package/dist/src/cli/page/get.js +16 -0
- package/dist/src/cli/page/index.d.ts +44 -0
- package/dist/src/cli/page/index.js +38 -0
- package/dist/src/cli/page/list.d.ts +4 -0
- package/dist/src/cli/page/list.js +10 -0
- package/dist/src/cli/page/update.d.ts +16 -0
- package/dist/src/cli/page/update.js +48 -0
- package/dist/src/cli/page/view.d.ts +2 -0
- package/dist/src/cli/page/view.js +79 -0
- package/dist/src/cli/post/_flags.d.ts +66 -0
- package/dist/src/cli/post/_flags.js +96 -0
- package/dist/src/cli/post/apply.d.ts +7 -0
- package/dist/src/cli/post/apply.js +70 -0
- package/dist/src/cli/post/create.d.ts +21 -0
- package/dist/src/cli/post/create.js +24 -0
- package/dist/src/cli/post/delete.d.ts +8 -0
- package/dist/src/cli/post/delete.js +21 -0
- package/dist/src/cli/post/edit.d.ts +26 -0
- package/dist/src/cli/post/edit.js +115 -0
- package/dist/src/cli/post/get.d.ts +7 -0
- package/dist/src/cli/post/get.js +15 -0
- package/dist/src/cli/post/index.d.ts +91 -0
- package/dist/src/cli/post/index.js +73 -0
- package/dist/src/cli/post/list.d.ts +10 -0
- package/dist/src/cli/post/list.js +23 -0
- package/dist/src/cli/post/publish.d.ts +7 -0
- package/dist/src/cli/post/publish.js +17 -0
- package/dist/src/cli/post/stage.d.ts +23 -0
- package/dist/src/cli/post/stage.js +55 -0
- package/dist/src/cli/post/unpublish.d.ts +7 -0
- package/dist/src/cli/post/unpublish.js +17 -0
- package/dist/src/cli/post/update.d.ts +23 -0
- package/dist/src/cli/post/update.js +38 -0
- package/dist/src/cli/post/view.d.ts +3 -0
- package/dist/src/cli/post/view.js +150 -0
- package/dist/src/cli/preview/index.d.ts +13 -0
- package/dist/src/cli/preview/index.js +226 -0
- package/dist/src/cli/profile/index.d.ts +14 -0
- package/dist/src/cli/profile/index.js +36 -0
- package/dist/src/cli/profile/ls.d.ts +5 -0
- package/dist/src/cli/profile/ls.js +26 -0
- package/dist/src/cli/profile/mark.d.ts +9 -0
- package/dist/src/cli/profile/mark.js +23 -0
- package/dist/src/cli/profile/rm.d.ts +12 -0
- package/dist/src/cli/profile/rm.js +50 -0
- package/dist/src/cli/profile/show.d.ts +9 -0
- package/dist/src/cli/profile/show.js +40 -0
- package/dist/src/cli/profile/use.d.ts +6 -0
- package/dist/src/cli/profile/use.js +11 -0
- package/dist/src/cli/profile/view.d.ts +8 -0
- package/dist/src/cli/profile/view.js +21 -0
- package/dist/src/cli/project/_flags.d.ts +56 -0
- package/dist/src/cli/project/_flags.js +130 -0
- package/dist/src/cli/project/create.d.ts +17 -0
- package/dist/src/cli/project/create.js +25 -0
- package/dist/src/cli/project/delete.d.ts +8 -0
- package/dist/src/cli/project/delete.js +22 -0
- package/dist/src/cli/project/edit.d.ts +11 -0
- package/dist/src/cli/project/edit.js +61 -0
- package/dist/src/cli/project/get.d.ts +7 -0
- package/dist/src/cli/project/get.js +14 -0
- package/dist/src/cli/project/index.d.ts +43 -0
- package/dist/src/cli/project/index.js +52 -0
- package/dist/src/cli/project/list.d.ts +8 -0
- package/dist/src/cli/project/list.js +19 -0
- package/dist/src/cli/project/update.d.ts +18 -0
- package/dist/src/cli/project/update.js +24 -0
- package/dist/src/cli/project/view-cmd.d.ts +7 -0
- package/dist/src/cli/project/view-cmd.js +15 -0
- package/dist/src/cli/project/view.d.ts +3 -0
- package/dist/src/cli/project/view.js +102 -0
- package/dist/src/cli/render/codehighlight.d.ts +8 -0
- package/dist/src/cli/render/codehighlight.js +264 -0
- package/dist/src/cli/render/envelope.d.ts +7 -0
- package/dist/src/cli/render/envelope.js +23 -0
- package/dist/src/cli/render/frontmatter.d.ts +8 -0
- package/dist/src/cli/render/frontmatter.js +50 -0
- package/dist/src/cli/render/helpers.d.ts +2 -0
- package/dist/src/cli/render/helpers.js +11 -0
- package/dist/src/cli/render/index.d.ts +7 -0
- package/dist/src/cli/render/index.js +10 -0
- package/dist/src/cli/render/lexical/blocks.d.ts +19 -0
- package/dist/src/cli/render/lexical/blocks.js +208 -0
- package/dist/src/cli/render/lexical/code.d.ts +2 -0
- package/dist/src/cli/render/lexical/code.js +22 -0
- package/dist/src/cli/render/lexical/embeds.d.ts +6 -0
- package/dist/src/cli/render/lexical/embeds.js +51 -0
- package/dist/src/cli/render/lexical/index.d.ts +9 -0
- package/dist/src/cli/render/lexical/index.js +25 -0
- package/dist/src/cli/render/lexical/inlines.d.ts +17 -0
- package/dist/src/cli/render/lexical/inlines.js +76 -0
- package/dist/src/cli/render/lexical/parser.d.ts +10 -0
- package/dist/src/cli/render/lexical/parser.js +64 -0
- package/dist/src/cli/render/lexical/walker.d.ts +21 -0
- package/dist/src/cli/render/lexical/walker.js +51 -0
- package/dist/src/cli/render/markdown.d.ts +18 -0
- package/dist/src/cli/render/markdown.js +196 -0
- package/dist/src/cli/render/metadata-block.d.ts +14 -0
- package/dist/src/cli/render/metadata-block.js +50 -0
- package/dist/src/cli/skill/all.d.ts +4 -0
- package/dist/src/cli/skill/all.js +11 -0
- package/dist/src/cli/skill/get.d.ts +6 -0
- package/dist/src/cli/skill/get.js +12 -0
- package/dist/src/cli/skill/index.d.ts +10 -0
- package/dist/src/cli/skill/index.js +34 -0
- package/dist/src/cli/skill/list.d.ts +4 -0
- package/dist/src/cli/skill/list.js +11 -0
- package/dist/src/cli/skill/search.d.ts +6 -0
- package/dist/src/cli/skill/search.js +12 -0
- package/dist/src/cli/skill/views.d.ts +6 -0
- package/dist/src/cli/skill/views.js +90 -0
- package/dist/src/cli/snippet/_flags.d.ts +57 -0
- package/dist/src/cli/snippet/_flags.js +123 -0
- package/dist/src/cli/snippet/_resolve.d.ts +4 -0
- package/dist/src/cli/snippet/_resolve.js +32 -0
- package/dist/src/cli/snippet/_sync.d.ts +5 -0
- package/dist/src/cli/snippet/_sync.js +54 -0
- package/dist/src/cli/snippet/create.d.ts +19 -0
- package/dist/src/cli/snippet/create.js +35 -0
- package/dist/src/cli/snippet/delete.d.ts +8 -0
- package/dist/src/cli/snippet/delete.js +28 -0
- package/dist/src/cli/snippet/edit.d.ts +7 -0
- package/dist/src/cli/snippet/edit.js +29 -0
- package/dist/src/cli/snippet/get.d.ts +6 -0
- package/dist/src/cli/snippet/get.js +12 -0
- package/dist/src/cli/snippet/index.d.ts +43 -0
- package/dist/src/cli/snippet/index.js +58 -0
- package/dist/src/cli/snippet/list.d.ts +9 -0
- package/dist/src/cli/snippet/list.js +20 -0
- package/dist/src/cli/snippet/pull.d.ts +8 -0
- package/dist/src/cli/snippet/pull.js +33 -0
- package/dist/src/cli/snippet/push.d.ts +10 -0
- package/dist/src/cli/snippet/push.js +31 -0
- package/dist/src/cli/snippet/update.d.ts +8 -0
- package/dist/src/cli/snippet/update.js +16 -0
- package/dist/src/cli/topic/create.d.ts +10 -0
- package/dist/src/cli/topic/create.js +24 -0
- package/dist/src/cli/topic/delete.d.ts +7 -0
- package/dist/src/cli/topic/delete.js +37 -0
- package/dist/src/cli/topic/get.d.ts +6 -0
- package/dist/src/cli/topic/get.js +15 -0
- package/dist/src/cli/topic/index.d.ts +20 -0
- package/dist/src/cli/topic/index.js +32 -0
- package/dist/src/cli/topic/list.d.ts +4 -0
- package/dist/src/cli/topic/list.js +10 -0
- package/dist/src/cli/topic/update.d.ts +11 -0
- package/dist/src/cli/topic/update.js +51 -0
- package/dist/src/cli/ui/index.d.ts +24 -0
- package/dist/src/cli/ui/index.js +83 -0
- package/dist/src/cli/update/index.d.ts +10 -0
- package/dist/src/cli/update/index.js +142 -0
- package/dist/src/domain/admin-link.d.ts +12 -0
- package/dist/src/domain/admin-link.js +45 -0
- package/dist/src/domain/content-spec.d.ts +20 -0
- package/dist/src/domain/content-spec.js +78 -0
- package/dist/src/domain/envelope-compat.d.ts +68 -0
- package/dist/src/domain/envelope-compat.js +121 -0
- package/dist/src/domain/envelope.d.ts +34 -0
- package/dist/src/domain/envelope.js +355 -0
- package/dist/src/domain/errors.d.ts +336 -0
- package/dist/src/domain/errors.js +239 -0
- package/dist/src/domain/gate.d.ts +14 -0
- package/dist/src/domain/gate.js +18 -0
- package/dist/src/domain/payload.d.ts +64 -0
- package/dist/src/domain/payload.js +237 -0
- package/dist/src/domain/preflight-guards.d.ts +54 -0
- package/dist/src/domain/preflight-guards.js +130 -0
- package/dist/src/domain/runtime-flags.d.ts +33 -0
- package/dist/src/domain/runtime-flags.js +166 -0
- package/dist/src/domain/schema/api-envelope.d.ts +67 -0
- package/dist/src/domain/schema/api-envelope.js +65 -0
- package/dist/src/domain/schema/category.d.ts +23 -0
- package/dist/src/domain/schema/category.js +19 -0
- package/dist/src/domain/schema/config.d.ts +13 -0
- package/dist/src/domain/schema/config.js +18 -0
- package/dist/src/domain/schema/note.d.ts +76 -0
- package/dist/src/domain/schema/note.js +35 -0
- package/dist/src/domain/schema/page.d.ts +40 -0
- package/dist/src/domain/schema/page.js +22 -0
- package/dist/src/domain/schema/post.d.ts +68 -0
- package/dist/src/domain/schema/post.js +35 -0
- package/dist/src/domain/schema/profile.d.ts +14 -0
- package/dist/src/domain/schema/profile.js +22 -0
- package/dist/src/domain/schema/topic.d.ts +24 -0
- package/dist/src/domain/schema/topic.js +16 -0
- package/dist/src/domain/version.d.ts +15 -0
- package/dist/src/domain/version.js +43 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +8 -0
- package/dist/src/layers/App.d.ts +30 -0
- package/dist/src/layers/App.js +39 -0
- package/dist/src/services/Ai/index.d.ts +13 -0
- package/dist/src/services/Ai/index.js +127 -0
- package/dist/src/services/Ai/overview.d.ts +7 -0
- package/dist/src/services/Ai/overview.js +11 -0
- package/dist/src/services/Ai/resources.d.ts +7 -0
- package/dist/src/services/Ai/resources.js +59 -0
- package/dist/src/services/Ai/shared.d.ts +2 -0
- package/dist/src/services/Ai/shared.js +11 -0
- package/dist/src/services/Ai/tasks.d.ts +8 -0
- package/dist/src/services/Ai/tasks.js +144 -0
- package/dist/src/services/Ai/types.d.ts +130 -0
- package/dist/src/services/Ai/types.js +1 -0
- package/dist/src/services/Api.d.ts +67 -0
- package/dist/src/services/Api.js +348 -0
- package/dist/src/services/Auth.d.ts +101 -0
- package/dist/src/services/Auth.js +402 -0
- package/dist/src/services/Backup.d.ts +8 -0
- package/dist/src/services/Backup.js +4 -0
- package/dist/src/services/Cache.d.ts +8 -0
- package/dist/src/services/Cache.js +4 -0
- package/dist/src/services/Comment.d.ts +48 -0
- package/dist/src/services/Comment.js +102 -0
- package/dist/src/services/Config.d.ts +95 -0
- package/dist/src/services/Config.js +359 -0
- package/dist/src/services/Editor.d.ts +28 -0
- package/dist/src/services/Editor.js +95 -0
- package/dist/src/services/Lexical.d.ts +27 -0
- package/dist/src/services/Lexical.js +56 -0
- package/dist/src/services/Migration.d.ts +31 -0
- package/dist/src/services/Migration.js +177 -0
- package/dist/src/services/Profile.d.ts +29 -0
- package/dist/src/services/Profile.js +115 -0
- package/dist/src/services/Renderer/content.d.ts +16 -0
- package/dist/src/services/Renderer/content.js +110 -0
- package/dist/src/services/Renderer/datetime.d.ts +38 -0
- package/dist/src/services/Renderer/datetime.js +147 -0
- package/dist/src/services/Renderer/errors.d.ts +3 -0
- package/dist/src/services/Renderer/errors.js +59 -0
- package/dist/src/services/Renderer/index.d.ts +13 -0
- package/dist/src/services/Renderer/index.js +11 -0
- package/dist/src/services/Renderer/lists.d.ts +1 -0
- package/dist/src/services/Renderer/lists.js +101 -0
- package/dist/src/services/Renderer/options.d.ts +10 -0
- package/dist/src/services/Renderer/options.js +13 -0
- package/dist/src/services/Renderer/primitives.d.ts +4 -0
- package/dist/src/services/Renderer/primitives.js +12 -0
- package/dist/src/services/Renderer/service.d.ts +35 -0
- package/dist/src/services/Renderer/service.js +123 -0
- package/dist/src/services/Renderer/view.d.ts +16 -0
- package/dist/src/services/Renderer/view.js +1 -0
- package/dist/src/services/Resolver.d.ts +47 -0
- package/dist/src/services/Resolver.js +269 -0
- package/dist/src/services/Skill.d.ts +29 -0
- package/dist/src/services/Skill.js +421 -0
- package/dist/src/services/UpdateNotifier.d.ts +162 -0
- package/dist/src/services/UpdateNotifier.js +572 -0
- package/dist/test/cli/ai/ai.test.d.ts +1 -0
- package/dist/test/cli/ai/ai.test.js +507 -0
- package/dist/test/cli/ai/verbs.test.d.ts +1 -0
- package/dist/test/cli/ai/verbs.test.js +235 -0
- package/dist/test/cli/auth/login.test.d.ts +1 -0
- package/dist/test/cli/auth/login.test.js +236 -0
- package/dist/test/cli/auth/logout-whoami.test.d.ts +1 -0
- package/dist/test/cli/auth/logout-whoami.test.js +124 -0
- package/dist/test/cli/auth/status.test.d.ts +1 -0
- package/dist/test/cli/auth/status.test.js +90 -0
- package/dist/test/cli/category/category.test.d.ts +1 -0
- package/dist/test/cli/category/category.test.js +175 -0
- package/dist/test/cli/comment/comment.test.d.ts +1 -0
- package/dist/test/cli/comment/comment.test.js +445 -0
- package/dist/test/cli/config/config.test.d.ts +1 -0
- package/dist/test/cli/config/config.test.js +281 -0
- package/dist/test/cli/edit-roundtrip.test.d.ts +1 -0
- package/dist/test/cli/edit-roundtrip.test.js +259 -0
- package/dist/test/cli/file/file.test.d.ts +1 -0
- package/dist/test/cli/file/file.test.js +185 -0
- package/dist/test/cli/help.test.d.ts +1 -0
- package/dist/test/cli/help.test.js +289 -0
- package/dist/test/cli/note/create.test.d.ts +1 -0
- package/dist/test/cli/note/create.test.js +155 -0
- package/dist/test/cli/note/list.test.d.ts +1 -0
- package/dist/test/cli/note/list.test.js +115 -0
- package/dist/test/cli/note/publish.test.d.ts +1 -0
- package/dist/test/cli/note/publish.test.js +123 -0
- package/dist/test/cli/page/page.test.d.ts +1 -0
- package/dist/test/cli/page/page.test.js +185 -0
- package/dist/test/cli/post/create.test.d.ts +1 -0
- package/dist/test/cli/post/create.test.js +172 -0
- package/dist/test/cli/post/list.test.d.ts +1 -0
- package/dist/test/cli/post/list.test.js +133 -0
- package/dist/test/cli/post/publish.test.d.ts +1 -0
- package/dist/test/cli/post/publish.test.js +139 -0
- package/dist/test/cli/post/stage-apply.test.d.ts +1 -0
- package/dist/test/cli/post/stage-apply.test.js +215 -0
- package/dist/test/cli/post/update.test.d.ts +1 -0
- package/dist/test/cli/post/update.test.js +160 -0
- package/dist/test/cli/post-note-crud.test.d.ts +1 -0
- package/dist/test/cli/post-note-crud.test.js +362 -0
- package/dist/test/cli/profile/ls.test.d.ts +1 -0
- package/dist/test/cli/profile/ls.test.js +93 -0
- package/dist/test/cli/profile/mark-use.test.d.ts +1 -0
- package/dist/test/cli/profile/mark-use.test.js +216 -0
- package/dist/test/cli/project-crud.test.d.ts +1 -0
- package/dist/test/cli/project-crud.test.js +315 -0
- package/dist/test/cli/render/lexical.test.d.ts +1 -0
- package/dist/test/cli/render/lexical.test.js +216 -0
- package/dist/test/cli/render/markdown.test.d.ts +1 -0
- package/dist/test/cli/render/markdown.test.js +39 -0
- package/dist/test/cli/snippet-crud.test.d.ts +1 -0
- package/dist/test/cli/snippet-crud.test.js +293 -0
- package/dist/test/cli/topic/topic.test.d.ts +1 -0
- package/dist/test/cli/topic/topic.test.js +181 -0
- package/dist/test/cli/update.test.d.ts +1 -0
- package/dist/test/cli/update.test.js +395 -0
- package/dist/test/domain/content-spec.test.d.ts +1 -0
- package/dist/test/domain/content-spec.test.js +126 -0
- package/dist/test/domain/envelope-compat.test.d.ts +1 -0
- package/dist/test/domain/envelope-compat.test.js +126 -0
- package/dist/test/domain/envelope.test.d.ts +1 -0
- package/dist/test/domain/envelope.test.js +149 -0
- package/dist/test/domain/errors.test.d.ts +1 -0
- package/dist/test/domain/errors.test.js +127 -0
- package/dist/test/domain/gate.test.d.ts +1 -0
- package/dist/test/domain/gate.test.js +128 -0
- package/dist/test/domain/payload.test.d.ts +1 -0
- package/dist/test/domain/payload.test.js +259 -0
- package/dist/test/helper/test-fs.d.ts +24 -0
- package/dist/test/helper/test-fs.js +161 -0
- package/dist/test/helper/test-http.d.ts +31 -0
- package/dist/test/helper/test-http.js +66 -0
- package/dist/test/integration/_helpers.d.ts +5 -0
- package/dist/test/integration/_helpers.js +24 -0
- package/dist/test/integration/cli-error-envelope.test.d.ts +1 -0
- package/dist/test/integration/cli-error-envelope.test.js +137 -0
- package/dist/test/integration/cli-help-render.test.d.ts +1 -0
- package/dist/test/integration/cli-help-render.test.js +149 -0
- package/dist/test/integration/cli-help.test.d.ts +1 -0
- package/dist/test/integration/cli-help.test.js +67 -0
- package/dist/test/integration/cli-post-list.test.d.ts +1 -0
- package/dist/test/integration/cli-post-list.test.js +140 -0
- package/dist/test/integration/cli-skill.test.d.ts +1 -0
- package/dist/test/integration/cli-skill.test.js +74 -0
- package/dist/test/integration/cli-version.test.d.ts +1 -0
- package/dist/test/integration/cli-version.test.js +37 -0
- package/dist/test/services/Api.test.d.ts +1 -0
- package/dist/test/services/Api.test.js +553 -0
- package/dist/test/services/Auth.test.d.ts +1 -0
- package/dist/test/services/Auth.test.js +650 -0
- package/dist/test/services/Config.test.d.ts +1 -0
- package/dist/test/services/Config.test.js +510 -0
- package/dist/test/services/Datetime.test.d.ts +1 -0
- package/dist/test/services/Datetime.test.js +113 -0
- package/dist/test/services/Editor.test.d.ts +1 -0
- package/dist/test/services/Editor.test.js +205 -0
- package/dist/test/services/Lexical.errors.test.d.ts +1 -0
- package/dist/test/services/Lexical.errors.test.js +60 -0
- package/dist/test/services/Lexical.test.d.ts +1 -0
- package/dist/test/services/Lexical.test.js +68 -0
- package/dist/test/services/Migration.test.d.ts +1 -0
- package/dist/test/services/Migration.test.js +376 -0
- package/dist/test/services/Profile.test.d.ts +1 -0
- package/dist/test/services/Profile.test.js +277 -0
- package/dist/test/services/Renderer.test.d.ts +1 -0
- package/dist/test/services/Renderer.test.js +538 -0
- package/dist/test/services/Resolver.test.d.ts +1 -0
- package/dist/test/services/Resolver.test.js +320 -0
- package/dist/test/services/Skill.test.d.ts +1 -0
- package/dist/test/services/Skill.test.js +261 -0
- package/dist/test/services/UpdateNotifier.spawn.test.d.ts +1 -0
- package/dist/test/services/UpdateNotifier.spawn.test.js +73 -0
- package/dist/test/services/UpdateNotifier.test.d.ts +1 -0
- package/dist/test/services/UpdateNotifier.test.js +912 -0
- package/dist/vendor/litexml/cli.mjs +19 -4
- package/dist/vendor/litexml/litexml-html-preview-client.css +98 -13
- package/dist/vendor/litexml/litexml-html-preview-client.js +5794 -4976
- package/dist/vendor/litexml/style.css +5 -5
- package/package.json +29 -26
- package/skills/safety.md +1 -1
- package/LICENSE +0 -33
- package/dist/esm-CDcJmHkG.mjs +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as getPeerDependencyFromEditor, f as namedSignals, l as effect } from "./LexicalExtension.node-
|
|
2
|
-
import { $r as isHTMLElement, $t as COMMAND_PRIORITY_LOW, C as $generateNodesFromRawText, D as $getCaretRange, Et as $normalizeCaret, G as $getSelection, Gn as KEY_ARROW_RIGHT_COMMAND, I as $getDocument, It as $setSelectionFromCaretRange, K as $getSiblingCaret, Kn as KEY_ARROW_UP_COMMAND, Kr as isDOMDocumentNode, L as $getEditor, O as $getCaretRangeInDirection, Q as $getTextPointCaret, Qn as KEY_TAB_COMMAND, Sn as INDENT_CONTENT_COMMAND, St as $isTextNode, Tn as INSERT_TAB_COMMAND, Tr as defineExtension, Un as KEY_ARROW_DOWN_COMMAND, Ur as getTextDirection, Wn as KEY_ARROW_LEFT_COMMAND, Yn as KEY_ENTER_COMMAND, Yr as isDOMTextNode, _ as $createTabNode, _r as TextNode, bi as tokenizeRawText, br as configExtension, ci as mergeRegister, d as $createLineBreakNode, dt as $isLineBreakNode, er as MOVE_TO_END, fi as removeClassNamesFromElement, gr as TabNode, hn as ElementNode, m as $createPoint, mi as setDOMStyleFromCSS, mt as $isRangeSelection, n as $applyNodeReplacement, nr as OUTDENT_CONTENT_COMMAND, ot as $isElementNode, p as $createParagraphNode, pi as safeCast, tr as MOVE_TO_START, tt as $insertNodes, u as $create, vr as addClassNamesToElement, xt as $isTabNode } from "./Lexical.node-
|
|
3
|
-
import { _ as defineOverlayRules, c as CoreImportExtension, g as defineImportRule, l as DOMImportExtension, u as ImportOverlays, y as sel } from "./LexicalHtml.node-
|
|
4
|
-
import { l as $onEscapeDown, u as $onEscapeUp } from "./LexicalUtils.node-
|
|
1
|
+
import { d as getPeerDependencyFromEditor, f as namedSignals, l as effect } from "./LexicalExtension.node-BwJt2LXV.mjs";
|
|
2
|
+
import { $r as isHTMLElement, $t as COMMAND_PRIORITY_LOW, C as $generateNodesFromRawText, D as $getCaretRange, Et as $normalizeCaret, G as $getSelection, Gn as KEY_ARROW_RIGHT_COMMAND, I as $getDocument, It as $setSelectionFromCaretRange, K as $getSiblingCaret, Kn as KEY_ARROW_UP_COMMAND, Kr as isDOMDocumentNode, L as $getEditor, O as $getCaretRangeInDirection, Q as $getTextPointCaret, Qn as KEY_TAB_COMMAND, Sn as INDENT_CONTENT_COMMAND, St as $isTextNode, Tn as INSERT_TAB_COMMAND, Tr as defineExtension, Un as KEY_ARROW_DOWN_COMMAND, Ur as getTextDirection, Wn as KEY_ARROW_LEFT_COMMAND, Yn as KEY_ENTER_COMMAND, Yr as isDOMTextNode, _ as $createTabNode, _r as TextNode, bi as tokenizeRawText, br as configExtension, ci as mergeRegister, d as $createLineBreakNode, dt as $isLineBreakNode, er as MOVE_TO_END, fi as removeClassNamesFromElement, gr as TabNode, hn as ElementNode, m as $createPoint, mi as setDOMStyleFromCSS, mt as $isRangeSelection, n as $applyNodeReplacement, nr as OUTDENT_CONTENT_COMMAND, ot as $isElementNode, p as $createParagraphNode, pi as safeCast, tr as MOVE_TO_START, tt as $insertNodes, u as $create, vr as addClassNamesToElement, xt as $isTabNode } from "./Lexical.node-kAh5GM2n.mjs";
|
|
3
|
+
import { _ as defineOverlayRules, c as CoreImportExtension, g as defineImportRule, l as DOMImportExtension, u as ImportOverlays, y as sel } from "./LexicalHtml.node-BeuJMvvt.mjs";
|
|
4
|
+
import { l as $onEscapeDown, u as $onEscapeUp } from "./LexicalUtils.node-Dl7OvqJV.mjs";
|
|
5
5
|
//#region ../../node_modules/.pnpm/@lexical+code-core@0.49.0_typescript@6.0.3/node_modules/@lexical/code-core/dist/LexicalCodeCore.prod.mjs
|
|
6
6
|
/**
|
|
7
7
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -346,8 +346,8 @@ var De = class extends TextNode {
|
|
|
346
346
|
return !1;
|
|
347
347
|
}
|
|
348
348
|
createDOM(e) {
|
|
349
|
-
const t = super.createDOM(e);
|
|
350
|
-
return addClassNamesToElement(t,
|
|
349
|
+
const t = super.createDOM(e), n = Be(e.theme, this.__highlightType);
|
|
350
|
+
return addClassNamesToElement(t, n), t;
|
|
351
351
|
}
|
|
352
352
|
updateDOM(e, t, n) {
|
|
353
353
|
const r = super.updateDOM(e, t, n), i = Be(n.theme, e.__highlightType), o = Be(n.theme, this.__highlightType);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as namedSignals, l as effect, m as watchedSignal } from "./LexicalExtension.node-
|
|
2
|
-
import { G as $getSelection, Ir as getEditorPropertyFromDOMNode, St as $isTextNode, Tr as defineExtension, kr as getActiveElementDeep, mt as $isRangeSelection, pi as safeCast, ri as isLexicalEditor } from "./Lexical.node-
|
|
1
|
+
import { f as namedSignals, l as effect, m as watchedSignal } from "./LexicalExtension.node-BwJt2LXV.mjs";
|
|
2
|
+
import { G as $getSelection, Ir as getEditorPropertyFromDOMNode, St as $isTextNode, Tr as defineExtension, kr as getActiveElementDeep, mt as $isRangeSelection, pi as safeCast, ri as isLexicalEditor } from "./Lexical.node-kAh5GM2n.mjs";
|
|
3
3
|
//#region ../../node_modules/.pnpm/@lexical+dragon@0.49.0_typescript@6.0.3/node_modules/@lexical/dragon/dist/LexicalDragon.dev.mjs
|
|
4
4
|
/**
|
|
5
5
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
|
-
const mod = await (process.env.NODE_ENV !== "production" ? import("./LexicalDragon.dev-
|
|
9
|
+
const mod = await (process.env.NODE_ENV !== "production" ? import("./LexicalDragon.dev-BwdYhm4K.mjs") : import("./LexicalDragon.prod-CvXmWwo1.mjs"));
|
|
10
10
|
const DragonExtension = mod.DragonExtension;
|
|
11
11
|
mod.installDragonSupport;
|
|
12
12
|
mod.registerDragonSupport;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as namedSignals, l as effect, m as watchedSignal } from "./LexicalExtension.node-
|
|
2
|
-
import { G as $getSelection, Ir as getEditorPropertyFromDOMNode, St as $isTextNode, Tr as defineExtension, kr as getActiveElementDeep, mt as $isRangeSelection, pi as safeCast, ri as isLexicalEditor } from "./Lexical.node-
|
|
1
|
+
import { f as namedSignals, l as effect, m as watchedSignal } from "./LexicalExtension.node-BwJt2LXV.mjs";
|
|
2
|
+
import { G as $getSelection, Ir as getEditorPropertyFromDOMNode, St as $isTextNode, Tr as defineExtension, kr as getActiveElementDeep, mt as $isRangeSelection, pi as safeCast, ri as isLexicalEditor } from "./Lexical.node-kAh5GM2n.mjs";
|
|
3
3
|
//#region ../../node_modules/.pnpm/@lexical+dragon@0.49.0_typescript@6.0.3/node_modules/@lexical/dragon/dist/LexicalDragon.prod.mjs
|
|
4
4
|
/**
|
|
5
5
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $n as LineBreakNode, $r as isHTMLElement, $t as COMMAND_PRIORITY_LOW, A as $getChildCaret, At as $rewindSiblingCaret, B as $getNodeByKey, Cr as createState, Ct as $isTextPointCaret, D as $getCaretRange, Dt as $normalizeSelection__EXPERIMENTAL, Et as $normalizeCaret, Ft as $setSelection, G as $getSelection, Gt as CLEAR_EDITOR_COMMAND, H as $getNodeFromDOMNode, I as $getDocument, It as $setSelectionFromCaretRange, J as $getSlotFrame, Jt as COMMAND_PRIORITY_BEFORE_CRITICAL, K as $getSiblingCaret, Kt as CLICK_COMMAND, L as $getEditor, Lt as $setState, O as $getCaretRangeInDirection, Or as getActiveElement, Qn as KEY_TAB_COMMAND, Sn as INDENT_CONTENT_COMMAND, Sr as createEditor, St as $isTextNode, Tn as INSERT_TAB_COMMAND, Tr as defineExtension, U as $getPreviousSelection, Vr as getStaticNodeConfig, Vt as $updateDOMSelection, W as $getRoot, Xt as COMMAND_PRIORITY_CRITICAL, Y as $getSlotHost, Yt as COMMAND_PRIORITY_BEFORE_EDITOR, Z as $getState, Zr as isExactShortcutMatch, Zt as COMMAND_PRIORITY_EDITOR, _i as shallowMergeConfig, _r as TextNode, a as $caretRangeFromSelection, ar as ParagraphNode, at as $isEditorState, bn as HISTORY_MERGE_TAG, br as configExtension, ci as mergeRegister, cr as SELECTION_CHANGE_COMMAND, di as registerEventListeners, dt as $isLineBreakNode, f as $createNodeSelection, fi as removeClassNamesFromElement, ft as $isNodeSelection, gr as TabNode, h as $createRangeSelection, hn as ElementNode, hr as TEXT_TYPE_TO_FORMAT, ht as $isRootNode, it as $isDecoratorNode, jr as getDOMSelection, jt as $selectAll, kn as IS_APPLE, mn as DecoratorNode, mr as SKIP_SELECTION_FOCUS_TAG, mt as $isRangeSelection, nn as COMPOSITION_START_TAG, nr as OUTDENT_CONTENT_COMMAND, nt as $isBlockElementNode, ot as $isElementNode, p as $createParagraphNode, pi as safeCast, pr as SKIP_SCROLL_INTO_VIEW_TAG, qr as isDOMNode, rt as $isChildCaret, sr as RootNode, tn as COMPOSITION_START_COMMAND, u as $create, ui as registerEventListener, ur as SELECT_ALL_COMMAND, vi as stopLexicalPropagation, vr as addClassNamesToElement, wr as declarePeerDependency, xr as createCommand, yi as toggleTextFormatType, yt as $isSiblingCaret, zr as getRegisteredSubtypeMap } from "./Lexical.node-
|
|
2
|
-
import { a as $handleIndentAndOutdent, c as $isBlockFullySelected, h as selectionAlwaysOnDisplay, r as $getNearestBlockElementAncestorOrThrow, s as $insertNodeToNearestRoot } from "./LexicalUtils.node-
|
|
1
|
+
import { $n as LineBreakNode, $r as isHTMLElement, $t as COMMAND_PRIORITY_LOW, A as $getChildCaret, At as $rewindSiblingCaret, B as $getNodeByKey, Cr as createState, Ct as $isTextPointCaret, D as $getCaretRange, Dt as $normalizeSelection__EXPERIMENTAL, Et as $normalizeCaret, Ft as $setSelection, G as $getSelection, Gt as CLEAR_EDITOR_COMMAND, H as $getNodeFromDOMNode, I as $getDocument, It as $setSelectionFromCaretRange, J as $getSlotFrame, Jt as COMMAND_PRIORITY_BEFORE_CRITICAL, K as $getSiblingCaret, Kt as CLICK_COMMAND, L as $getEditor, Lt as $setState, O as $getCaretRangeInDirection, Or as getActiveElement, Qn as KEY_TAB_COMMAND, Sn as INDENT_CONTENT_COMMAND, Sr as createEditor, St as $isTextNode, Tn as INSERT_TAB_COMMAND, Tr as defineExtension, U as $getPreviousSelection, Vr as getStaticNodeConfig, Vt as $updateDOMSelection, W as $getRoot, Xt as COMMAND_PRIORITY_CRITICAL, Y as $getSlotHost, Yt as COMMAND_PRIORITY_BEFORE_EDITOR, Z as $getState, Zr as isExactShortcutMatch, Zt as COMMAND_PRIORITY_EDITOR, _i as shallowMergeConfig, _r as TextNode, a as $caretRangeFromSelection, ar as ParagraphNode, at as $isEditorState, bn as HISTORY_MERGE_TAG, br as configExtension, ci as mergeRegister, cr as SELECTION_CHANGE_COMMAND, di as registerEventListeners, dt as $isLineBreakNode, f as $createNodeSelection, fi as removeClassNamesFromElement, ft as $isNodeSelection, gr as TabNode, h as $createRangeSelection, hn as ElementNode, hr as TEXT_TYPE_TO_FORMAT, ht as $isRootNode, it as $isDecoratorNode, jr as getDOMSelection, jt as $selectAll, kn as IS_APPLE, mn as DecoratorNode, mr as SKIP_SELECTION_FOCUS_TAG, mt as $isRangeSelection, nn as COMPOSITION_START_TAG, nr as OUTDENT_CONTENT_COMMAND, nt as $isBlockElementNode, ot as $isElementNode, p as $createParagraphNode, pi as safeCast, pr as SKIP_SCROLL_INTO_VIEW_TAG, qr as isDOMNode, rt as $isChildCaret, sr as RootNode, tn as COMPOSITION_START_COMMAND, u as $create, ui as registerEventListener, ur as SELECT_ALL_COMMAND, vi as stopLexicalPropagation, vr as addClassNamesToElement, wr as declarePeerDependency, xr as createCommand, yi as toggleTextFormatType, yt as $isSiblingCaret, zr as getRegisteredSubtypeMap } from "./Lexical.node-kAh5GM2n.mjs";
|
|
2
|
+
import { a as $handleIndentAndOutdent, c as $isBlockFullySelected, h as selectionAlwaysOnDisplay, r as $getNearestBlockElementAncestorOrThrow, s as $insertNodeToNearestRoot } from "./LexicalUtils.node-Dl7OvqJV.mjs";
|
|
3
3
|
//#region ../../node_modules/.pnpm/@lexical+extension@0.49.0_typescript@6.0.3/node_modules/@lexical/extension/dist/LexicalExtension.dev.mjs
|
|
4
4
|
/**
|
|
5
5
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -677,7 +677,8 @@ var DecoratorTextNode = class extends DecoratorNode {
|
|
|
677
677
|
return $setState(this, formatState, type);
|
|
678
678
|
}
|
|
679
679
|
toggleFormat(type) {
|
|
680
|
-
const
|
|
680
|
+
const format = this.getFormat();
|
|
681
|
+
const newFormat = toggleTextFormatType(format, type, null);
|
|
681
682
|
return this.setFormat(newFormat);
|
|
682
683
|
}
|
|
683
684
|
isInline() {
|
|
@@ -1721,7 +1722,10 @@ const HorizontalRuleExtension = /* @__PURE__ */ defineExtension({
|
|
|
1721
1722
|
return mergeRegister(editor.registerCommand(INSERT_HORIZONTAL_RULE_COMMAND, (type) => {
|
|
1722
1723
|
const selection = $getSelection();
|
|
1723
1724
|
if (!$isRangeSelection(selection)) return false;
|
|
1724
|
-
if (selection.focus.getNode() !== null)
|
|
1725
|
+
if (selection.focus.getNode() !== null) {
|
|
1726
|
+
const horizontalRuleNode = $createHorizontalRuleNode();
|
|
1727
|
+
$insertNodeToNearestRoot(horizontalRuleNode);
|
|
1728
|
+
}
|
|
1725
1729
|
return true;
|
|
1726
1730
|
}, COMMAND_PRIORITY_EDITOR), editor.registerCommand(CLICK_COMMAND, (event) => {
|
|
1727
1731
|
if (isDOMNode(event.target)) {
|
|
@@ -1757,8 +1761,10 @@ const HorizontalRuleExtension = /* @__PURE__ */ defineExtension({
|
|
|
1757
1761
|
const effects = [];
|
|
1758
1762
|
for (const { domNode, selectedSignal } of nodeSelectionStore.value.nodeSelections.values()) effects.push(j(() => {
|
|
1759
1763
|
const dom = domNode.value;
|
|
1760
|
-
if (dom)
|
|
1761
|
-
|
|
1764
|
+
if (dom) {
|
|
1765
|
+
if (selectedSignal.value) addClassNamesToElement(dom, isSelectedClassName);
|
|
1766
|
+
else removeClassNamesFromElement(dom, isSelectedClassName);
|
|
1767
|
+
}
|
|
1762
1768
|
}));
|
|
1763
1769
|
return mergeRegister(...effects);
|
|
1764
1770
|
}));
|
|
@@ -1806,11 +1812,12 @@ const IMEExtension = /* @__PURE__ */ defineExtension({
|
|
|
1806
1812
|
name: "@lexical/extension/IME",
|
|
1807
1813
|
register(editor, _config, state) {
|
|
1808
1814
|
const { compositionKey, composingTextNode } = state.getOutput();
|
|
1809
|
-
|
|
1815
|
+
const removeStartCommand = editor.registerCommand(COMPOSITION_START_COMMAND, () => {
|
|
1810
1816
|
const selection = $getSelection();
|
|
1811
1817
|
if ($isRangeSelection(selection)) compositionKey.value = selection.anchor.key;
|
|
1812
1818
|
return false;
|
|
1813
|
-
}, COMMAND_PRIORITY_BEFORE_EDITOR)
|
|
1819
|
+
}, COMMAND_PRIORITY_BEFORE_EDITOR);
|
|
1820
|
+
const stopKeyEffect = j(() => {
|
|
1814
1821
|
const key = compositionKey.value;
|
|
1815
1822
|
if (key === null) {
|
|
1816
1823
|
composingTextNode.value = null;
|
|
@@ -1820,7 +1827,8 @@ const IMEExtension = /* @__PURE__ */ defineExtension({
|
|
|
1820
1827
|
const node = $getNodeByKey(key);
|
|
1821
1828
|
return $isTextNode(node) ? node : null;
|
|
1822
1829
|
});
|
|
1823
|
-
})
|
|
1830
|
+
});
|
|
1831
|
+
const removeUpdateListener = editor.registerUpdateListener(({ tags, editorState }) => {
|
|
1824
1832
|
if (!tags.has(COMPOSITION_START_TAG)) return;
|
|
1825
1833
|
editorState.read(() => {
|
|
1826
1834
|
const selection = $getSelection();
|
|
@@ -1828,7 +1836,8 @@ const IMEExtension = /* @__PURE__ */ defineExtension({
|
|
|
1828
1836
|
const node = selection.anchor.getNode();
|
|
1829
1837
|
if ($isTextNode(node)) composingTextNode.value = node;
|
|
1830
1838
|
});
|
|
1831
|
-
})
|
|
1839
|
+
});
|
|
1840
|
+
const removeRootListener = editor.registerRootListener((rootElem) => {
|
|
1832
1841
|
if (rootElem === null) {
|
|
1833
1842
|
compositionKey.value = null;
|
|
1834
1843
|
return;
|
|
@@ -1837,7 +1846,8 @@ const IMEExtension = /* @__PURE__ */ defineExtension({
|
|
|
1837
1846
|
compositionKey.value = null;
|
|
1838
1847
|
};
|
|
1839
1848
|
return registerEventListener(rootElem, "compositionend", onCompositionEnd);
|
|
1840
|
-
})
|
|
1849
|
+
});
|
|
1850
|
+
return mergeRegister(removeStartCommand, stopKeyEffect, removeUpdateListener, removeRootListener);
|
|
1841
1851
|
}
|
|
1842
1852
|
});
|
|
1843
1853
|
/**
|
|
@@ -2229,7 +2239,8 @@ function $indentOverTab(selection) {
|
|
|
2229
2239
|
const anchor = selection.anchor;
|
|
2230
2240
|
const focus = selection.focus;
|
|
2231
2241
|
const first = focus.isBefore(anchor) ? focus : anchor;
|
|
2232
|
-
const
|
|
2242
|
+
const firstNode = first.getNode();
|
|
2243
|
+
const firstBlock = $getNearestBlockElementAncestorOrThrow(firstNode);
|
|
2233
2244
|
if (firstBlock.canIndent()) {
|
|
2234
2245
|
const firstBlockKey = firstBlock.getKey();
|
|
2235
2246
|
let selectionAtStart = $createRangeSelection();
|
|
@@ -2259,7 +2270,8 @@ function registerTabIndentation(editor, maxIndent, $canIndent = $defaultCanInden
|
|
|
2259
2270
|
return editor.dispatchCommand(command);
|
|
2260
2271
|
}, COMMAND_PRIORITY_EDITOR), editor.registerCommand(INDENT_CONTENT_COMMAND, () => {
|
|
2261
2272
|
const currentMaxIndent = typeof maxIndent === "number" ? maxIndent : maxIndent ? maxIndent.peek() : null;
|
|
2262
|
-
|
|
2273
|
+
const selection = $getSelection();
|
|
2274
|
+
if (!$isRangeSelection(selection)) return false;
|
|
2263
2275
|
const $currentCanIndent = typeof $canIndent === "function" ? $canIndent : $canIndent.peek();
|
|
2264
2276
|
return $handleIndentAndOutdent((block) => {
|
|
2265
2277
|
if ($currentCanIndent(block)) {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
|
-
const mod = await (process.env.NODE_ENV !== "production" ? import("./LexicalExtension.dev-
|
|
9
|
+
const mod = await (process.env.NODE_ENV !== "production" ? import("./LexicalExtension.dev-LcRLXI5Z.mjs") : import("./LexicalExtension.prod-lg8_33-H.mjs"));
|
|
10
10
|
mod.$applyFormatToDom;
|
|
11
11
|
const $createHorizontalRuleNode = mod.$createHorizontalRuleNode;
|
|
12
12
|
mod.$defaultShouldInsertAfter;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $n as LineBreakNode, $r as isHTMLElement, $t as COMMAND_PRIORITY_LOW, A as $getChildCaret, At as $rewindSiblingCaret, B as $getNodeByKey, Cr as createState, Ct as $isTextPointCaret, D as $getCaretRange, Dt as $normalizeSelection__EXPERIMENTAL, Et as $normalizeCaret, Ft as $setSelection, G as $getSelection, Gt as CLEAR_EDITOR_COMMAND, H as $getNodeFromDOMNode, I as $getDocument, It as $setSelectionFromCaretRange, J as $getSlotFrame, Jt as COMMAND_PRIORITY_BEFORE_CRITICAL, K as $getSiblingCaret, Kt as CLICK_COMMAND, L as $getEditor, Lt as $setState, O as $getCaretRangeInDirection, Or as getActiveElement, Qn as KEY_TAB_COMMAND, Sn as INDENT_CONTENT_COMMAND, Sr as createEditor, St as $isTextNode, Tn as INSERT_TAB_COMMAND, Tr as defineExtension, U as $getPreviousSelection, Vr as getStaticNodeConfig, Vt as $updateDOMSelection, W as $getRoot, Xt as COMMAND_PRIORITY_CRITICAL, Y as $getSlotHost, Yt as COMMAND_PRIORITY_BEFORE_EDITOR, Z as $getState, Zr as isExactShortcutMatch, Zt as COMMAND_PRIORITY_EDITOR, _i as shallowMergeConfig, _r as TextNode, a as $caretRangeFromSelection, ar as ParagraphNode, at as $isEditorState, bn as HISTORY_MERGE_TAG, br as configExtension, ci as mergeRegister, cr as SELECTION_CHANGE_COMMAND, di as registerEventListeners, dt as $isLineBreakNode, f as $createNodeSelection, fi as removeClassNamesFromElement, ft as $isNodeSelection, gr as TabNode, h as $createRangeSelection, hn as ElementNode, hr as TEXT_TYPE_TO_FORMAT, ht as $isRootNode, it as $isDecoratorNode, jr as getDOMSelection, jt as $selectAll, kn as IS_APPLE, mn as DecoratorNode, mr as SKIP_SELECTION_FOCUS_TAG, mt as $isRangeSelection, nn as COMPOSITION_START_TAG, nr as OUTDENT_CONTENT_COMMAND, nt as $isBlockElementNode, ot as $isElementNode, p as $createParagraphNode, pi as safeCast, pr as SKIP_SCROLL_INTO_VIEW_TAG, qr as isDOMNode, rt as $isChildCaret, sr as RootNode, tn as COMPOSITION_START_COMMAND, u as $create, ui as registerEventListener, ur as SELECT_ALL_COMMAND, vi as stopLexicalPropagation, vr as addClassNamesToElement, wr as declarePeerDependency, xr as createCommand, yi as toggleTextFormatType, yt as $isSiblingCaret, zr as getRegisteredSubtypeMap } from "./Lexical.node-
|
|
2
|
-
import { a as $handleIndentAndOutdent, c as $isBlockFullySelected, h as selectionAlwaysOnDisplay, r as $getNearestBlockElementAncestorOrThrow, s as $insertNodeToNearestRoot } from "./LexicalUtils.node-
|
|
1
|
+
import { $n as LineBreakNode, $r as isHTMLElement, $t as COMMAND_PRIORITY_LOW, A as $getChildCaret, At as $rewindSiblingCaret, B as $getNodeByKey, Cr as createState, Ct as $isTextPointCaret, D as $getCaretRange, Dt as $normalizeSelection__EXPERIMENTAL, Et as $normalizeCaret, Ft as $setSelection, G as $getSelection, Gt as CLEAR_EDITOR_COMMAND, H as $getNodeFromDOMNode, I as $getDocument, It as $setSelectionFromCaretRange, J as $getSlotFrame, Jt as COMMAND_PRIORITY_BEFORE_CRITICAL, K as $getSiblingCaret, Kt as CLICK_COMMAND, L as $getEditor, Lt as $setState, O as $getCaretRangeInDirection, Or as getActiveElement, Qn as KEY_TAB_COMMAND, Sn as INDENT_CONTENT_COMMAND, Sr as createEditor, St as $isTextNode, Tn as INSERT_TAB_COMMAND, Tr as defineExtension, U as $getPreviousSelection, Vr as getStaticNodeConfig, Vt as $updateDOMSelection, W as $getRoot, Xt as COMMAND_PRIORITY_CRITICAL, Y as $getSlotHost, Yt as COMMAND_PRIORITY_BEFORE_EDITOR, Z as $getState, Zr as isExactShortcutMatch, Zt as COMMAND_PRIORITY_EDITOR, _i as shallowMergeConfig, _r as TextNode, a as $caretRangeFromSelection, ar as ParagraphNode, at as $isEditorState, bn as HISTORY_MERGE_TAG, br as configExtension, ci as mergeRegister, cr as SELECTION_CHANGE_COMMAND, di as registerEventListeners, dt as $isLineBreakNode, f as $createNodeSelection, fi as removeClassNamesFromElement, ft as $isNodeSelection, gr as TabNode, h as $createRangeSelection, hn as ElementNode, hr as TEXT_TYPE_TO_FORMAT, ht as $isRootNode, it as $isDecoratorNode, jr as getDOMSelection, jt as $selectAll, kn as IS_APPLE, mn as DecoratorNode, mr as SKIP_SELECTION_FOCUS_TAG, mt as $isRangeSelection, nn as COMPOSITION_START_TAG, nr as OUTDENT_CONTENT_COMMAND, nt as $isBlockElementNode, ot as $isElementNode, p as $createParagraphNode, pi as safeCast, pr as SKIP_SCROLL_INTO_VIEW_TAG, qr as isDOMNode, rt as $isChildCaret, sr as RootNode, tn as COMPOSITION_START_COMMAND, u as $create, ui as registerEventListener, ur as SELECT_ALL_COMMAND, vi as stopLexicalPropagation, vr as addClassNamesToElement, wr as declarePeerDependency, xr as createCommand, yi as toggleTextFormatType, yt as $isSiblingCaret, zr as getRegisteredSubtypeMap } from "./Lexical.node-kAh5GM2n.mjs";
|
|
2
|
+
import { a as $handleIndentAndOutdent, c as $isBlockFullySelected, h as selectionAlwaysOnDisplay, r as $getNearestBlockElementAncestorOrThrow, s as $insertNodeToNearestRoot } from "./LexicalUtils.node-Dl7OvqJV.mjs";
|
|
3
3
|
//#region ../../node_modules/.pnpm/@lexical+extension@0.49.0_typescript@6.0.3/node_modules/@lexical/extension/dist/LexicalExtension.prod.mjs
|
|
4
4
|
/**
|
|
5
5
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -380,7 +380,7 @@ var ye = class extends DecoratorNode {
|
|
|
380
380
|
return $setState(this, xe, t);
|
|
381
381
|
}
|
|
382
382
|
toggleFormat(t) {
|
|
383
|
-
const
|
|
383
|
+
const e = this.getFormat(), n = toggleTextFormatType(e, t, null);
|
|
384
384
|
return this.setFormat(n);
|
|
385
385
|
}
|
|
386
386
|
isInline() {
|
|
@@ -917,7 +917,10 @@ const vn = /* @__PURE__ */ defineExtension({
|
|
|
917
917
|
return mergeRegister(t.registerCommand(fn, (t) => {
|
|
918
918
|
const e = $getSelection();
|
|
919
919
|
if (!$isRangeSelection(e)) return !1;
|
|
920
|
-
if (null !== e.focus.getNode())
|
|
920
|
+
if (null !== e.focus.getNode()) {
|
|
921
|
+
const t = pn();
|
|
922
|
+
$insertNodeToNearestRoot(t);
|
|
923
|
+
}
|
|
921
924
|
return !0;
|
|
922
925
|
}, COMMAND_PRIORITY_EDITOR), t.registerCommand(CLICK_COMMAND, (t) => {
|
|
923
926
|
if (isDOMNode(t.target)) {
|
|
@@ -960,29 +963,29 @@ const xn = /* @__PURE__ */ defineExtension({
|
|
|
960
963
|
}),
|
|
961
964
|
name: "@lexical/extension/IME",
|
|
962
965
|
register(t, e, n) {
|
|
963
|
-
const { compositionKey: i, composingTextNode: o } = n.getOutput()
|
|
964
|
-
return mergeRegister(t.registerCommand(COMPOSITION_START_COMMAND, () => {
|
|
966
|
+
const { compositionKey: i, composingTextNode: o } = n.getOutput(), s = t.registerCommand(COMPOSITION_START_COMMAND, () => {
|
|
965
967
|
const t = $getSelection();
|
|
966
968
|
return $isRangeSelection(t) && (i.value = t.anchor.key), !1;
|
|
967
|
-
}, COMMAND_PRIORITY_BEFORE_EDITOR), ce(() => {
|
|
969
|
+
}, COMMAND_PRIORITY_BEFORE_EDITOR), c = ce(() => {
|
|
968
970
|
const e = i.value;
|
|
969
971
|
o.value = null !== e ? t.read("latest", () => {
|
|
970
972
|
const t = $getNodeByKey(e);
|
|
971
973
|
return $isTextNode(t) ? t : null;
|
|
972
974
|
}) : null;
|
|
973
|
-
}), t.registerUpdateListener(({ tags: t, editorState: e }) => {
|
|
975
|
+
}), d = t.registerUpdateListener(({ tags: t, editorState: e }) => {
|
|
974
976
|
t.has(COMPOSITION_START_TAG) && e.read(() => {
|
|
975
977
|
const t = $getSelection();
|
|
976
978
|
if (!$isRangeSelection(t)) return;
|
|
977
979
|
const e = t.anchor.getNode();
|
|
978
980
|
$isTextNode(e) && (o.value = e);
|
|
979
981
|
});
|
|
980
|
-
}), t.registerRootListener((t) => {
|
|
982
|
+
}), l = t.registerRootListener((t) => {
|
|
981
983
|
if (null === t) return void (i.value = null);
|
|
982
984
|
return registerEventListener(t, "compositionend", () => {
|
|
983
985
|
i.value = null;
|
|
984
986
|
});
|
|
985
|
-
})
|
|
987
|
+
});
|
|
988
|
+
return mergeRegister(s, c, d, l);
|
|
986
989
|
}
|
|
987
990
|
});
|
|
988
991
|
const yn = /* @__PURE__ */ defineExtension({
|
|
@@ -1196,7 +1199,7 @@ function Mn(t, e, n = Fn) {
|
|
|
1196
1199
|
e.preventDefault();
|
|
1197
1200
|
const i = function(t) {
|
|
1198
1201
|
if (t.getNodes().filter((t) => $isBlockElementNode(t) && t.canIndent()).length > 0) return !0;
|
|
1199
|
-
const e = t.anchor, n = t.focus, i = n.isBefore(e) ? n : e,
|
|
1202
|
+
const e = t.anchor, n = t.focus, i = n.isBefore(e) ? n : e, o = i.getNode(), s = $getNearestBlockElementAncestorOrThrow(o);
|
|
1200
1203
|
if (s.canIndent()) {
|
|
1201
1204
|
const t = s.getKey();
|
|
1202
1205
|
let e = $createRangeSelection();
|
|
@@ -1206,8 +1209,8 @@ function Mn(t, e, n = Fn) {
|
|
|
1206
1209
|
}(n) ? e.shiftKey ? OUTDENT_CONTENT_COMMAND : INDENT_CONTENT_COMMAND : INSERT_TAB_COMMAND;
|
|
1207
1210
|
return t.dispatchCommand(i);
|
|
1208
1211
|
}, COMMAND_PRIORITY_EDITOR), t.registerCommand(INDENT_CONTENT_COMMAND, () => {
|
|
1209
|
-
const t = "number" == typeof e ? e : e ? e.peek() : null;
|
|
1210
|
-
if (!$isRangeSelection(
|
|
1212
|
+
const t = "number" == typeof e ? e : e ? e.peek() : null, i = $getSelection();
|
|
1213
|
+
if (!$isRangeSelection(i)) return !1;
|
|
1211
1214
|
const o = "function" == typeof n ? n : n.peek();
|
|
1212
1215
|
return $handleIndentAndOutdent((e) => {
|
|
1213
1216
|
if (o(e)) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Sr as createEditor } from "./Lexical.node-
|
|
1
|
+
import { Sr as createEditor } from "./Lexical.node-kAh5GM2n.mjs";
|
|
2
2
|
//#region ../../node_modules/.pnpm/@lexical+headless@0.49.0_typescript@6.0.3/node_modules/@lexical/headless/dist/LexicalHeadless.dev.mjs
|
|
3
3
|
/**
|
|
4
4
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Sr as createEditor } from "./Lexical.node-
|
|
1
|
+
import { Sr as createEditor } from "./Lexical.node-kAh5GM2n.mjs";
|
|
2
2
|
//#region ../../node_modules/.pnpm/@lexical+headless@0.49.0_typescript@6.0.3/node_modules/@lexical/headless/dist/LexicalHeadless.prod.mjs
|
|
3
3
|
/**
|
|
4
4
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as HorizontalRuleNode, d as getPeerDependencyFromEditor, i as HorizontalRuleExtension, n as $getExtensionOutput, t as $createHorizontalRuleNode, u as getKnownTypesAndNodes } from "./LexicalExtension.node-
|
|
2
|
-
import { $r as isHTMLElement, Bn as IS_SUBSCRIPT, C as $generateNodesFromRawText, Cr as createState, Fn as IS_HIGHLIGHT, Hn as IS_UNDERLINE, Ht as ArtificialNode__DO_NOT_USE, I as $getDocument, J as $getSlotFrame, Kr as isDOMDocumentNode, L as $getEditor, Ln as IS_ITALIC, Mt as $setDirectionFromDOM, Nn as IS_CODE, Nt as $setFormatFromDOM, R as $getEditorDOMRenderConfig, S as $fullReconcile, St as $isTextNode, Tr as defineExtension, Vn as IS_SUPERSCRIPT, W as $getRoot, Wr as isBlockDomNode, Xr as isDocumentFragment, Yr as isDOMTextNode, _i as shallowMergeConfig, br as configExtension, d as $createLineBreakNode, dt as $isLineBreakNode, ft as $isNodeSelection, gi as setNodeIndentFromDOM, gt as $isRootOrShadowRoot, ii as isOnlyChildInBlockNode, it as $isDecoratorNode, jn as IS_BOLD, mt as $isRangeSelection, ni as isLastChildInBlockNode, nt as $isBlockElementNode, oi as iterStaticNodeConfigChain, ot as $isElementNode, p as $createParagraphNode, r as $assumeActiveEditor, sn as DEFAULT_EDITOR_DOM_CONFIG, sr as RootNode, ti as isInlineDomNode, ut as $isLexicalNode, v as $createTextNode, zn as IS_STRIKETHROUGH, zr as getRegisteredSubtypeMap } from "./Lexical.node-
|
|
3
|
-
import { a as $sliceSelectedTextNodeContent } from "./LexicalSelection.node-
|
|
4
|
-
import { m as objectKlassEquals } from "./LexicalUtils.node-
|
|
1
|
+
import { a as HorizontalRuleNode, d as getPeerDependencyFromEditor, i as HorizontalRuleExtension, n as $getExtensionOutput, t as $createHorizontalRuleNode, u as getKnownTypesAndNodes } from "./LexicalExtension.node-BwJt2LXV.mjs";
|
|
2
|
+
import { $r as isHTMLElement, Bn as IS_SUBSCRIPT, C as $generateNodesFromRawText, Cr as createState, Fn as IS_HIGHLIGHT, Hn as IS_UNDERLINE, Ht as ArtificialNode__DO_NOT_USE, I as $getDocument, J as $getSlotFrame, Kr as isDOMDocumentNode, L as $getEditor, Ln as IS_ITALIC, Mt as $setDirectionFromDOM, Nn as IS_CODE, Nt as $setFormatFromDOM, R as $getEditorDOMRenderConfig, S as $fullReconcile, St as $isTextNode, Tr as defineExtension, Vn as IS_SUPERSCRIPT, W as $getRoot, Wr as isBlockDomNode, Xr as isDocumentFragment, Yr as isDOMTextNode, _i as shallowMergeConfig, br as configExtension, d as $createLineBreakNode, dt as $isLineBreakNode, ft as $isNodeSelection, gi as setNodeIndentFromDOM, gt as $isRootOrShadowRoot, ii as isOnlyChildInBlockNode, it as $isDecoratorNode, jn as IS_BOLD, mt as $isRangeSelection, ni as isLastChildInBlockNode, nt as $isBlockElementNode, oi as iterStaticNodeConfigChain, ot as $isElementNode, p as $createParagraphNode, r as $assumeActiveEditor, sn as DEFAULT_EDITOR_DOM_CONFIG, sr as RootNode, ti as isInlineDomNode, ut as $isLexicalNode, v as $createTextNode, zn as IS_STRIKETHROUGH, zr as getRegisteredSubtypeMap } from "./Lexical.node-kAh5GM2n.mjs";
|
|
3
|
+
import { a as $sliceSelectedTextNodeContent } from "./LexicalSelection.node-t2U46EF_.mjs";
|
|
4
|
+
import { m as objectKlassEquals } from "./LexicalUtils.node-Dl7OvqJV.mjs";
|
|
5
5
|
//#region ../../node_modules/.pnpm/@lexical+html@0.49.0_typescript@6.0.3/node_modules/@lexical/html/dist/LexicalHtml.dev.mjs
|
|
6
6
|
/**
|
|
7
7
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -2376,13 +2376,17 @@ function $appendNodesToHTML(editor, currentNode, parentElementAppend, selection
|
|
|
2376
2376
|
if (!shouldInclude && shouldIncludeChild && domConfig.$extractWithChild(currentNode, childNode, selection, "html", editor)) shouldInclude = true;
|
|
2377
2377
|
}
|
|
2378
2378
|
if (shouldInclude && !shouldExclude) {
|
|
2379
|
-
if (isHTMLElement(element) || isDocumentFragment(element))
|
|
2380
|
-
|
|
2379
|
+
if (isHTMLElement(element) || isDocumentFragment(element)) {
|
|
2380
|
+
if (append) append(fragment);
|
|
2381
|
+
else element.append(fragment);
|
|
2382
|
+
}
|
|
2381
2383
|
parentElementAppend(element);
|
|
2382
2384
|
if (after) {
|
|
2383
2385
|
const newElement = after.call(target, element);
|
|
2384
|
-
if (newElement)
|
|
2385
|
-
|
|
2386
|
+
if (newElement) {
|
|
2387
|
+
if (isDocumentFragment(element)) element.replaceChildren(newElement);
|
|
2388
|
+
else element.replaceWith(newElement);
|
|
2389
|
+
}
|
|
2386
2390
|
}
|
|
2387
2391
|
} else parentElementAppend(fragment);
|
|
2388
2392
|
return shouldInclude;
|
|
@@ -2435,12 +2439,14 @@ function $createNodesFromDOM(node, editor, allArtificialNodes, hasBlockAncestorL
|
|
|
2435
2439
|
const hasBlockAncestorLexicalNodeForChildren = currentLexicalNode != null && $isRootOrShadowRoot(currentLexicalNode) ? false : currentLexicalNode != null && $isBlockElementNode(currentLexicalNode) || hasBlockAncestorLexicalNode;
|
|
2436
2440
|
for (let i = 0; i < children.length; i++) childLexicalNodes.push(...$createNodesFromDOM(children[i], editor, allArtificialNodes, hasBlockAncestorLexicalNodeForChildren, new Map(forChildMap), currentLexicalNode));
|
|
2437
2441
|
if (postTransform != null) childLexicalNodes = postTransform(childLexicalNodes);
|
|
2438
|
-
if (isBlockDomNode(node))
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2442
|
+
if (isBlockDomNode(node)) {
|
|
2443
|
+
if (!hasBlockAncestorLexicalNodeForChildren) childLexicalNodes = wrapContinuousInlines(node, childLexicalNodes, $createParagraphNode);
|
|
2444
|
+
else childLexicalNodes = wrapContinuousInlines(node, childLexicalNodes, () => {
|
|
2445
|
+
const artificialNode = new ArtificialNode__DO_NOT_USE();
|
|
2446
|
+
allArtificialNodes.push(artificialNode);
|
|
2447
|
+
return artificialNode;
|
|
2448
|
+
});
|
|
2449
|
+
}
|
|
2444
2450
|
if (currentLexicalNode == null) {
|
|
2445
2451
|
if (childLexicalNodes.length > 0) for (const childNode of childLexicalNodes) lexicalNodes.push(childNode);
|
|
2446
2452
|
else if (isBlockDomNode(node) && isDomNodeBetweenTwoInlineNodes(node)) lexicalNodes.push($createLineBreakNode());
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
|
-
const mod = await (process.env.NODE_ENV !== "production" ? import("./LexicalHtml.dev-
|
|
9
|
+
const mod = await (process.env.NODE_ENV !== "production" ? import("./LexicalHtml.dev-BLdZWTCJ.mjs") : import("./LexicalHtml.prod-CHUyCocN.mjs"));
|
|
10
10
|
mod.$appendNodeToHTML;
|
|
11
11
|
const $distributeInlineWrapper = mod.$distributeInlineWrapper;
|
|
12
12
|
mod.$generateDOMFromNodes;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as HorizontalRuleNode, d as getPeerDependencyFromEditor, i as HorizontalRuleExtension, n as $getExtensionOutput, t as $createHorizontalRuleNode, u as getKnownTypesAndNodes } from "./LexicalExtension.node-
|
|
2
|
-
import { $r as isHTMLElement, Bn as IS_SUBSCRIPT, C as $generateNodesFromRawText, Cr as createState, Fn as IS_HIGHLIGHT, Hn as IS_UNDERLINE, Ht as ArtificialNode__DO_NOT_USE, I as $getDocument, J as $getSlotFrame, Kr as isDOMDocumentNode, L as $getEditor, Ln as IS_ITALIC, Mt as $setDirectionFromDOM, Nn as IS_CODE, Nt as $setFormatFromDOM, R as $getEditorDOMRenderConfig, S as $fullReconcile, St as $isTextNode, Tr as defineExtension, Vn as IS_SUPERSCRIPT, W as $getRoot, Wr as isBlockDomNode, Xr as isDocumentFragment, Yr as isDOMTextNode, _i as shallowMergeConfig, br as configExtension, d as $createLineBreakNode, dt as $isLineBreakNode, ft as $isNodeSelection, gi as setNodeIndentFromDOM, gt as $isRootOrShadowRoot, ii as isOnlyChildInBlockNode, it as $isDecoratorNode, jn as IS_BOLD, mt as $isRangeSelection, ni as isLastChildInBlockNode, nt as $isBlockElementNode, oi as iterStaticNodeConfigChain, ot as $isElementNode, p as $createParagraphNode, r as $assumeActiveEditor, sn as DEFAULT_EDITOR_DOM_CONFIG, sr as RootNode, ti as isInlineDomNode, ut as $isLexicalNode, v as $createTextNode, zn as IS_STRIKETHROUGH, zr as getRegisteredSubtypeMap } from "./Lexical.node-
|
|
3
|
-
import { a as $sliceSelectedTextNodeContent } from "./LexicalSelection.node-
|
|
4
|
-
import { m as objectKlassEquals } from "./LexicalUtils.node-
|
|
1
|
+
import { a as HorizontalRuleNode, d as getPeerDependencyFromEditor, i as HorizontalRuleExtension, n as $getExtensionOutput, t as $createHorizontalRuleNode, u as getKnownTypesAndNodes } from "./LexicalExtension.node-BwJt2LXV.mjs";
|
|
2
|
+
import { $r as isHTMLElement, Bn as IS_SUBSCRIPT, C as $generateNodesFromRawText, Cr as createState, Fn as IS_HIGHLIGHT, Hn as IS_UNDERLINE, Ht as ArtificialNode__DO_NOT_USE, I as $getDocument, J as $getSlotFrame, Kr as isDOMDocumentNode, L as $getEditor, Ln as IS_ITALIC, Mt as $setDirectionFromDOM, Nn as IS_CODE, Nt as $setFormatFromDOM, R as $getEditorDOMRenderConfig, S as $fullReconcile, St as $isTextNode, Tr as defineExtension, Vn as IS_SUPERSCRIPT, W as $getRoot, Wr as isBlockDomNode, Xr as isDocumentFragment, Yr as isDOMTextNode, _i as shallowMergeConfig, br as configExtension, d as $createLineBreakNode, dt as $isLineBreakNode, ft as $isNodeSelection, gi as setNodeIndentFromDOM, gt as $isRootOrShadowRoot, ii as isOnlyChildInBlockNode, it as $isDecoratorNode, jn as IS_BOLD, mt as $isRangeSelection, ni as isLastChildInBlockNode, nt as $isBlockElementNode, oi as iterStaticNodeConfigChain, ot as $isElementNode, p as $createParagraphNode, r as $assumeActiveEditor, sn as DEFAULT_EDITOR_DOM_CONFIG, sr as RootNode, ti as isInlineDomNode, ut as $isLexicalNode, v as $createTextNode, zn as IS_STRIKETHROUGH, zr as getRegisteredSubtypeMap } from "./Lexical.node-kAh5GM2n.mjs";
|
|
3
|
+
import { a as $sliceSelectedTextNodeContent } from "./LexicalSelection.node-t2U46EF_.mjs";
|
|
4
|
+
import { m as objectKlassEquals } from "./LexicalUtils.node-Dl7OvqJV.mjs";
|
|
5
5
|
//#region ../../node_modules/.pnpm/@lexical+html@0.49.0_typescript@6.0.3/node_modules/@lexical/html/dist/LexicalHtml.prod.mjs
|
|
6
6
|
/**
|
|
7
7
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as namedSignals, l as effect } from "./LexicalExtension.node-
|
|
2
|
-
import { $t as COMMAND_PRIORITY_LOW, A as $getChildCaret, At as $rewindSiblingCaret, Dt as $normalizeSelection__EXPERIMENTAL, Et as $normalizeCaret, Ft as $setSelection, G as $getSelection, I as $getDocument, Lr as getNearestEditorFromDOMNode, Pt as $setPointFromCaret, Qr as isHTMLAnchorElement, St as $isTextNode, Tr as defineExtension, Zt as COMMAND_PRIORITY_EDITOR, _i as shallowMergeConfig, _r as TextNode, b as $findMatchingParent, br as configExtension, ci as mergeRegister, di as registerEventListeners, dt as $isLineBreakNode, et as $insertNodeToNearestRootAtCaret, ft as $isNodeSelection, hn as ElementNode, i as $caretFromPoint, l as $copyNode, mt as $isRangeSelection, n as $applyNodeReplacement, ot as $isElementNode, pi as safeCast, qr as isDOMNode, rr as PASTE_COMMAND, v as $createTextNode, vr as addClassNamesToElement, xr as createCommand, yt as $isSiblingCaret, z as $getNearestNodeFromDOMNode } from "./Lexical.node-
|
|
3
|
-
import { c as CoreImportExtension, g as defineImportRule, l as DOMImportExtension, t as $distributeInlineWrapper, y as sel } from "./LexicalHtml.node-
|
|
4
|
-
import { m as objectKlassEquals } from "./LexicalUtils.node-
|
|
1
|
+
import { f as namedSignals, l as effect } from "./LexicalExtension.node-BwJt2LXV.mjs";
|
|
2
|
+
import { $t as COMMAND_PRIORITY_LOW, A as $getChildCaret, At as $rewindSiblingCaret, Dt as $normalizeSelection__EXPERIMENTAL, Et as $normalizeCaret, Ft as $setSelection, G as $getSelection, I as $getDocument, Lr as getNearestEditorFromDOMNode, Pt as $setPointFromCaret, Qr as isHTMLAnchorElement, St as $isTextNode, Tr as defineExtension, Zt as COMMAND_PRIORITY_EDITOR, _i as shallowMergeConfig, _r as TextNode, b as $findMatchingParent, br as configExtension, ci as mergeRegister, di as registerEventListeners, dt as $isLineBreakNode, et as $insertNodeToNearestRootAtCaret, ft as $isNodeSelection, hn as ElementNode, i as $caretFromPoint, l as $copyNode, mt as $isRangeSelection, n as $applyNodeReplacement, ot as $isElementNode, pi as safeCast, qr as isDOMNode, rr as PASTE_COMMAND, v as $createTextNode, vr as addClassNamesToElement, xr as createCommand, yt as $isSiblingCaret, z as $getNearestNodeFromDOMNode } from "./Lexical.node-kAh5GM2n.mjs";
|
|
3
|
+
import { c as CoreImportExtension, g as defineImportRule, l as DOMImportExtension, t as $distributeInlineWrapper, y as sel } from "./LexicalHtml.node-BeuJMvvt.mjs";
|
|
4
|
+
import { m as objectKlassEquals } from "./LexicalUtils.node-Dl7OvqJV.mjs";
|
|
5
5
|
//#region ../../node_modules/.pnpm/@lexical+link@0.49.0_typescript@6.0.3/node_modules/@lexical/link/dist/LexicalLink.dev.mjs
|
|
6
6
|
/**
|
|
7
7
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -77,8 +77,10 @@ var LinkNode = class extends ElementNode {
|
|
|
77
77
|
]) {
|
|
78
78
|
const key = `__${attr}`;
|
|
79
79
|
const value = this[key];
|
|
80
|
-
if (!prevNode || prevNode[key] !== value)
|
|
81
|
-
|
|
80
|
+
if (!prevNode || prevNode[key] !== value) {
|
|
81
|
+
if (value) anchor[attr] = value;
|
|
82
|
+
else anchor.removeAttribute(attr);
|
|
83
|
+
}
|
|
82
84
|
}
|
|
83
85
|
}
|
|
84
86
|
}
|
|
@@ -181,7 +183,8 @@ function $saveCaretPair(point) {
|
|
|
181
183
|
}
|
|
182
184
|
function $restoreCaretPair(point, pair) {
|
|
183
185
|
for (const caret of pair) if (caret.origin.isAttached()) {
|
|
184
|
-
|
|
186
|
+
const normalized = $normalizeCaret(caret);
|
|
187
|
+
$setPointFromCaret(point, normalized);
|
|
185
188
|
return;
|
|
186
189
|
}
|
|
187
190
|
}
|
|
@@ -706,15 +709,17 @@ function registerClickableLink(editor, stores, eventOptions = {}) {
|
|
|
706
709
|
const clickedNode = $getNearestNodeFromDOMNode(target);
|
|
707
710
|
if (clickedNode !== null) {
|
|
708
711
|
const maybeLinkNode = $findMatchingParent(clickedNode, $isElementNode);
|
|
709
|
-
if (!stores.disabled.peek())
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
712
|
+
if (!stores.disabled.peek()) {
|
|
713
|
+
if ($isLinkNode(maybeLinkNode)) {
|
|
714
|
+
isUnlinkedAutolink = $isAutoLinkNode(maybeLinkNode) && maybeLinkNode.getIsUnlinked();
|
|
715
|
+
url = maybeLinkNode.sanitizeUrl(maybeLinkNode.getURL());
|
|
716
|
+
urlTarget = maybeLinkNode.getTarget();
|
|
717
|
+
} else {
|
|
718
|
+
const a = findMatchingDOM(target, isHTMLAnchorElement);
|
|
719
|
+
if (a !== null) {
|
|
720
|
+
url = a.href;
|
|
721
|
+
urlTarget = a.target;
|
|
722
|
+
}
|
|
718
723
|
}
|
|
719
724
|
}
|
|
720
725
|
}
|
|
@@ -920,11 +925,13 @@ function $createAutoLinkNode_(nodes, startIndex, endIndex, match) {
|
|
|
920
925
|
const currentNodeLength = currentNode.getTextContent().length;
|
|
921
926
|
const currentNodeStart = offset;
|
|
922
927
|
const currentNodeEnd = offset + currentNodeLength;
|
|
923
|
-
if (currentNodeStart < endIndex)
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
+
if (currentNodeStart < endIndex) {
|
|
929
|
+
if (currentNodeEnd <= endIndex) linkNodes.push(currentNode);
|
|
930
|
+
else {
|
|
931
|
+
const [linkTextNode, endNode] = currentNode.splitText(endIndex - currentNodeStart);
|
|
932
|
+
linkNodes.push(linkTextNode);
|
|
933
|
+
remainingTextNode = endNode;
|
|
934
|
+
}
|
|
928
935
|
}
|
|
929
936
|
offset += currentNodeLength;
|
|
930
937
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as namedSignals, l as effect } from "./LexicalExtension.node-
|
|
2
|
-
import { $t as COMMAND_PRIORITY_LOW, A as $getChildCaret, At as $rewindSiblingCaret, Dt as $normalizeSelection__EXPERIMENTAL, Et as $normalizeCaret, Ft as $setSelection, G as $getSelection, I as $getDocument, Lr as getNearestEditorFromDOMNode, Pt as $setPointFromCaret, Qr as isHTMLAnchorElement, St as $isTextNode, Tr as defineExtension, Zt as COMMAND_PRIORITY_EDITOR, _i as shallowMergeConfig, _r as TextNode, b as $findMatchingParent, br as configExtension, ci as mergeRegister, di as registerEventListeners, dt as $isLineBreakNode, et as $insertNodeToNearestRootAtCaret, ft as $isNodeSelection, hn as ElementNode, i as $caretFromPoint, l as $copyNode, mt as $isRangeSelection, n as $applyNodeReplacement, ot as $isElementNode, pi as safeCast, qr as isDOMNode, rr as PASTE_COMMAND, v as $createTextNode, vr as addClassNamesToElement, xr as createCommand, yt as $isSiblingCaret, z as $getNearestNodeFromDOMNode } from "./Lexical.node-
|
|
3
|
-
import { c as CoreImportExtension, g as defineImportRule, l as DOMImportExtension, t as $distributeInlineWrapper, y as sel } from "./LexicalHtml.node-
|
|
4
|
-
import { m as objectKlassEquals } from "./LexicalUtils.node-
|
|
1
|
+
import { f as namedSignals, l as effect } from "./LexicalExtension.node-BwJt2LXV.mjs";
|
|
2
|
+
import { $t as COMMAND_PRIORITY_LOW, A as $getChildCaret, At as $rewindSiblingCaret, Dt as $normalizeSelection__EXPERIMENTAL, Et as $normalizeCaret, Ft as $setSelection, G as $getSelection, I as $getDocument, Lr as getNearestEditorFromDOMNode, Pt as $setPointFromCaret, Qr as isHTMLAnchorElement, St as $isTextNode, Tr as defineExtension, Zt as COMMAND_PRIORITY_EDITOR, _i as shallowMergeConfig, _r as TextNode, b as $findMatchingParent, br as configExtension, ci as mergeRegister, di as registerEventListeners, dt as $isLineBreakNode, et as $insertNodeToNearestRootAtCaret, ft as $isNodeSelection, hn as ElementNode, i as $caretFromPoint, l as $copyNode, mt as $isRangeSelection, n as $applyNodeReplacement, ot as $isElementNode, pi as safeCast, qr as isDOMNode, rr as PASTE_COMMAND, v as $createTextNode, vr as addClassNamesToElement, xr as createCommand, yt as $isSiblingCaret, z as $getNearestNodeFromDOMNode } from "./Lexical.node-kAh5GM2n.mjs";
|
|
3
|
+
import { c as CoreImportExtension, g as defineImportRule, l as DOMImportExtension, t as $distributeInlineWrapper, y as sel } from "./LexicalHtml.node-BeuJMvvt.mjs";
|
|
4
|
+
import { m as objectKlassEquals } from "./LexicalUtils.node-Dl7OvqJV.mjs";
|
|
5
5
|
//#region ../../node_modules/.pnpm/@lexical+link@0.49.0_typescript@6.0.3/node_modules/@lexical/link/dist/LexicalLink.prod.mjs
|
|
6
6
|
/**
|
|
7
7
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -148,7 +148,8 @@ function H(t) {
|
|
|
148
148
|
}
|
|
149
149
|
function G(t, e) {
|
|
150
150
|
for (const n of e) if (n.origin.isAttached()) {
|
|
151
|
-
|
|
151
|
+
const e = $normalizeCaret(n);
|
|
152
|
+
$setPointFromCaret(t, e);
|
|
152
153
|
return;
|
|
153
154
|
}
|
|
154
155
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as namedSignals, l as effect } from "./LexicalExtension.node-
|
|
2
|
-
import { $r as isHTMLElement, $t as COMMAND_PRIORITY_LOW, A as $getChildCaret, At as $rewindSiblingCaret, B as $getNodeByKey, Et as $normalizeCaret, G as $getSelection, Hr as getStyleObjectFromCSS, I as $getDocument, K as $getSiblingCaret, Kn as KEY_ARROW_UP_COMMAND, Lr as getNearestEditorFromDOMNode, Mt as $setDirectionFromDOM, Nt as $setFormatFromDOM, Or as getActiveElement, Pt as $setPointFromCaret, St as $isTextNode, Tr as defineExtension, Un as KEY_ARROW_DOWN_COMMAND, Wn as KEY_ARROW_LEFT_COMMAND, Xn as KEY_ESCAPE_COMMAND, Yt as COMMAND_PRIORITY_BEFORE_EDITOR, Zn as KEY_SPACE_COMMAND, _r as TextNode, b as $findMatchingParent, br as configExtension, ci as mergeRegister, d as $createLineBreakNode, di as registerEventListeners, et as $insertNodeToNearestRootAtCaret, fi as removeClassNamesFromElement, fr as SKIP_DOM_SELECTION_TAG, gt as $isRootOrShadowRoot, hn as ElementNode, l as $copyNode, li as normalizeClassNames, lt as $isLeafNode, mi as setDOMStyleFromCSS, mr as SKIP_SELECTION_FOCUS_TAG, mt as $isRangeSelection, n as $applyNodeReplacement, ot as $isElementNode, p as $createParagraphNode, pi as safeCast, pt as $isParagraphNode, qn as KEY_BACKSPACE_COMMAND, t as $addUpdateTag, ui as registerEventListener, v as $createTextNode, vr as addClassNamesToElement, wn as INSERT_PARAGRAPH_COMMAND, xr as createCommand, yr as buildImportMap, z as $getNearestNodeFromDOMNode } from "./Lexical.node-
|
|
3
|
-
import { a as $isBlockLevel, c as CoreImportExtension, g as defineImportRule, l as DOMImportExtension, o as $propagateTextAlignToBlockChildren, v as isElementOfTag, y as sel } from "./LexicalHtml.node-
|
|
4
|
-
import { f as calculateZoomLevel, i as $getNearestNodeOfType } from "./LexicalUtils.node-
|
|
1
|
+
import { f as namedSignals, l as effect } from "./LexicalExtension.node-BwJt2LXV.mjs";
|
|
2
|
+
import { $r as isHTMLElement, $t as COMMAND_PRIORITY_LOW, A as $getChildCaret, At as $rewindSiblingCaret, B as $getNodeByKey, Et as $normalizeCaret, G as $getSelection, Hr as getStyleObjectFromCSS, I as $getDocument, K as $getSiblingCaret, Kn as KEY_ARROW_UP_COMMAND, Lr as getNearestEditorFromDOMNode, Mt as $setDirectionFromDOM, Nt as $setFormatFromDOM, Or as getActiveElement, Pt as $setPointFromCaret, St as $isTextNode, Tr as defineExtension, Un as KEY_ARROW_DOWN_COMMAND, Wn as KEY_ARROW_LEFT_COMMAND, Xn as KEY_ESCAPE_COMMAND, Yt as COMMAND_PRIORITY_BEFORE_EDITOR, Zn as KEY_SPACE_COMMAND, _r as TextNode, b as $findMatchingParent, br as configExtension, ci as mergeRegister, d as $createLineBreakNode, di as registerEventListeners, et as $insertNodeToNearestRootAtCaret, fi as removeClassNamesFromElement, fr as SKIP_DOM_SELECTION_TAG, gt as $isRootOrShadowRoot, hn as ElementNode, l as $copyNode, li as normalizeClassNames, lt as $isLeafNode, mi as setDOMStyleFromCSS, mr as SKIP_SELECTION_FOCUS_TAG, mt as $isRangeSelection, n as $applyNodeReplacement, ot as $isElementNode, p as $createParagraphNode, pi as safeCast, pt as $isParagraphNode, qn as KEY_BACKSPACE_COMMAND, t as $addUpdateTag, ui as registerEventListener, v as $createTextNode, vr as addClassNamesToElement, wn as INSERT_PARAGRAPH_COMMAND, xr as createCommand, yr as buildImportMap, z as $getNearestNodeFromDOMNode } from "./Lexical.node-kAh5GM2n.mjs";
|
|
3
|
+
import { a as $isBlockLevel, c as CoreImportExtension, g as defineImportRule, l as DOMImportExtension, o as $propagateTextAlignToBlockChildren, v as isElementOfTag, y as sel } from "./LexicalHtml.node-BeuJMvvt.mjs";
|
|
4
|
+
import { f as calculateZoomLevel, i as $getNearestNodeOfType } from "./LexicalUtils.node-Dl7OvqJV.mjs";
|
|
5
5
|
//#region ../../node_modules/.pnpm/@lexical+list@0.49.0_typescript@6.0.3/node_modules/@lexical/list/dist/LexicalList.dev.mjs
|
|
6
6
|
/**
|
|
7
7
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as namedSignals, l as effect } from "./LexicalExtension.node-
|
|
2
|
-
import { $r as isHTMLElement, $t as COMMAND_PRIORITY_LOW, A as $getChildCaret, At as $rewindSiblingCaret, B as $getNodeByKey, Et as $normalizeCaret, G as $getSelection, Hr as getStyleObjectFromCSS, I as $getDocument, K as $getSiblingCaret, Kn as KEY_ARROW_UP_COMMAND, Lr as getNearestEditorFromDOMNode, Mt as $setDirectionFromDOM, Nt as $setFormatFromDOM, Or as getActiveElement, Pt as $setPointFromCaret, St as $isTextNode, Tr as defineExtension, Un as KEY_ARROW_DOWN_COMMAND, Wn as KEY_ARROW_LEFT_COMMAND, Xn as KEY_ESCAPE_COMMAND, Yt as COMMAND_PRIORITY_BEFORE_EDITOR, Zn as KEY_SPACE_COMMAND, _r as TextNode, b as $findMatchingParent, br as configExtension, ci as mergeRegister, d as $createLineBreakNode, di as registerEventListeners, et as $insertNodeToNearestRootAtCaret, fi as removeClassNamesFromElement, fr as SKIP_DOM_SELECTION_TAG, gt as $isRootOrShadowRoot, hn as ElementNode, l as $copyNode, li as normalizeClassNames, lt as $isLeafNode, mi as setDOMStyleFromCSS, mr as SKIP_SELECTION_FOCUS_TAG, mt as $isRangeSelection, n as $applyNodeReplacement, ot as $isElementNode, p as $createParagraphNode, pi as safeCast, pt as $isParagraphNode, qn as KEY_BACKSPACE_COMMAND, t as $addUpdateTag, ui as registerEventListener, v as $createTextNode, vr as addClassNamesToElement, wn as INSERT_PARAGRAPH_COMMAND, xr as createCommand, yr as buildImportMap, z as $getNearestNodeFromDOMNode } from "./Lexical.node-
|
|
3
|
-
import { a as $isBlockLevel, c as CoreImportExtension, g as defineImportRule, l as DOMImportExtension, o as $propagateTextAlignToBlockChildren, v as isElementOfTag, y as sel } from "./LexicalHtml.node-
|
|
4
|
-
import { f as calculateZoomLevel, i as $getNearestNodeOfType } from "./LexicalUtils.node-
|
|
1
|
+
import { f as namedSignals, l as effect } from "./LexicalExtension.node-BwJt2LXV.mjs";
|
|
2
|
+
import { $r as isHTMLElement, $t as COMMAND_PRIORITY_LOW, A as $getChildCaret, At as $rewindSiblingCaret, B as $getNodeByKey, Et as $normalizeCaret, G as $getSelection, Hr as getStyleObjectFromCSS, I as $getDocument, K as $getSiblingCaret, Kn as KEY_ARROW_UP_COMMAND, Lr as getNearestEditorFromDOMNode, Mt as $setDirectionFromDOM, Nt as $setFormatFromDOM, Or as getActiveElement, Pt as $setPointFromCaret, St as $isTextNode, Tr as defineExtension, Un as KEY_ARROW_DOWN_COMMAND, Wn as KEY_ARROW_LEFT_COMMAND, Xn as KEY_ESCAPE_COMMAND, Yt as COMMAND_PRIORITY_BEFORE_EDITOR, Zn as KEY_SPACE_COMMAND, _r as TextNode, b as $findMatchingParent, br as configExtension, ci as mergeRegister, d as $createLineBreakNode, di as registerEventListeners, et as $insertNodeToNearestRootAtCaret, fi as removeClassNamesFromElement, fr as SKIP_DOM_SELECTION_TAG, gt as $isRootOrShadowRoot, hn as ElementNode, l as $copyNode, li as normalizeClassNames, lt as $isLeafNode, mi as setDOMStyleFromCSS, mr as SKIP_SELECTION_FOCUS_TAG, mt as $isRangeSelection, n as $applyNodeReplacement, ot as $isElementNode, p as $createParagraphNode, pi as safeCast, pt as $isParagraphNode, qn as KEY_BACKSPACE_COMMAND, t as $addUpdateTag, ui as registerEventListener, v as $createTextNode, vr as addClassNamesToElement, wn as INSERT_PARAGRAPH_COMMAND, xr as createCommand, yr as buildImportMap, z as $getNearestNodeFromDOMNode } from "./Lexical.node-kAh5GM2n.mjs";
|
|
3
|
+
import { a as $isBlockLevel, c as CoreImportExtension, g as defineImportRule, l as DOMImportExtension, o as $propagateTextAlignToBlockChildren, v as isElementOfTag, y as sel } from "./LexicalHtml.node-BeuJMvvt.mjs";
|
|
4
|
+
import { f as calculateZoomLevel, i as $getNearestNodeOfType } from "./LexicalUtils.node-Dl7OvqJV.mjs";
|
|
5
5
|
//#region ../../node_modules/.pnpm/@lexical+list@0.49.0_typescript@6.0.3/node_modules/@lexical/list/dist/LexicalList.prod.mjs
|
|
6
6
|
/**
|
|
7
7
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|