@mx-space/cli 0.14.2 → 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 +36 -12
- package/dist/{Lexical.dev-CtGmYDoh.mjs → Lexical.dev-BSvx45_E.mjs} +350 -402
- package/dist/{Lexical.node-8sRFmq2X.mjs → Lexical.node-kAh5GM2n.mjs} +2 -2
- package/dist/{Lexical.prod-D-VfeKDz.mjs → Lexical.prod-Bqwgb3ez.mjs} +1757 -1785
- package/dist/{LexicalClipboard.dev-CzQ15z6E.mjs → LexicalClipboard.dev-BWU3KXIa.mjs} +19 -15
- package/dist/{LexicalClipboard.node-D4gMGws6.mjs → LexicalClipboard.node-BygAdNdF.mjs} +2 -2
- package/dist/{LexicalClipboard.prod-CltkQpzS.mjs → LexicalClipboard.prod-BtMuKNyT.mjs} +11 -11
- package/dist/{LexicalCodeCore.dev-DkYBZRGB.mjs → LexicalCodeCore.dev-CD2xgvDs.mjs} +95 -89
- package/dist/{LexicalCodeCore.prod-COc3_QL8.mjs → LexicalCodeCore.prod-Bl6FFMc7.mjs} +146 -158
- package/dist/{LexicalDragon.dev-Dv5_WUae.mjs → LexicalDragon.dev-BwdYhm4K.mjs} +3 -3
- package/dist/{LexicalDragon.node-DgjrmWkd.mjs → LexicalDragon.node-CpJhkCVV.mjs} +2 -2
- package/dist/{LexicalDragon.prod-DnpbDe-_.mjs → LexicalDragon.prod-CvXmWwo1.mjs} +3 -3
- package/dist/{LexicalExtension.dev-JMH_6-OZ.mjs → LexicalExtension.dev-LcRLXI5Z.mjs} +33 -30
- package/dist/{LexicalExtension.node-BUozzx4t.mjs → LexicalExtension.node-BwJt2LXV.mjs} +2 -2
- package/dist/{LexicalExtension.prod-UiyDgmou.mjs → LexicalExtension.prod-lg8_33-H.mjs} +87 -93
- package/dist/{LexicalHeadless.dev-BfLGciiX.mjs → LexicalHeadless.dev-BeUbKBes.mjs} +2 -2
- package/dist/{LexicalHeadless.prod-CWF7edmQ.mjs → LexicalHeadless.prod-4gbIA8HM.mjs} +2 -2
- package/dist/{LexicalHtml.dev-D5EF5PGW.mjs → LexicalHtml.dev-BLdZWTCJ.mjs} +22 -16
- package/dist/{LexicalHtml.node-BYbzHNVe.mjs → LexicalHtml.node-BeuJMvvt.mjs} +2 -2
- package/dist/{LexicalHtml.prod-D_FfkvVD.mjs → LexicalHtml.prod-CHUyCocN.mjs} +6 -6
- package/dist/{LexicalLink.dev-D3Pgh6ik.mjs → LexicalLink.dev-DgsFRqw0.mjs} +41 -58
- package/dist/{LexicalLink.prod-XZoAYVYD.mjs → LexicalLink.prod-CkXkeKY2.mjs} +115 -138
- package/dist/{LexicalList.dev-B5d3ObhB.mjs → LexicalList.dev-OOms3kQi.mjs} +15 -47
- package/dist/{LexicalList.prod-OQDpVAEb.mjs → LexicalList.prod-DzMBeqHn.mjs} +208 -224
- package/dist/{LexicalMarkdown.dev-BkM8G3DG.mjs → LexicalMarkdown.dev-DJLKbZtD.mjs} +42 -30
- package/dist/{LexicalMarkdown.prod-DcVXCex6.mjs → LexicalMarkdown.prod-Cp21kDCU.mjs} +12 -8
- package/dist/{LexicalRichText.dev-DppD7IrA.mjs → LexicalRichText.dev-0rkAGjUf.mjs} +84 -86
- package/dist/{LexicalRichText.node-CPSn7dkg.mjs → LexicalRichText.node-Cd-BySPE.mjs} +8 -8
- package/dist/{LexicalRichText.prod-h7JPxFNp.mjs → LexicalRichText.prod-DTQiEr8C.mjs} +96 -100
- package/dist/{LexicalSelection.dev-CD0SLbxP.mjs → LexicalSelection.dev-Bi0VlUEv.mjs} +29 -25
- package/dist/{LexicalSelection.node-CGlJgUlZ.mjs → LexicalSelection.node-t2U46EF_.mjs} +2 -2
- package/dist/{LexicalSelection.prod-DbVZN5AV.mjs → LexicalSelection.prod-CrFG111g.mjs} +3 -3
- package/dist/{LexicalTable.dev-D0HU14UV.mjs → LexicalTable.dev-D-sFhO-o.mjs} +288 -154
- package/dist/{LexicalTable.prod-BcPNSrxP.mjs → LexicalTable.prod-DwYaa_dN.mjs} +689 -632
- package/dist/{LexicalUtils.dev-iKy_TrRT.mjs → LexicalUtils.dev-Q2q3-UDM.mjs} +9 -6
- package/dist/{LexicalUtils.node-CIgMS8cG.mjs → LexicalUtils.node-Dl7OvqJV.mjs} +2 -2
- package/dist/{LexicalUtils.prod-DIAsKJzu.mjs → LexicalUtils.prod-CBnq_iEV.mjs} +8 -7
- package/dist/bin/mxs.mjs +1 -1
- package/dist/esm-CNZ7kdTg.mjs +2 -0
- package/dist/{esm-CwXl1N0a.mjs → esm-ZXjJmLEC.mjs} +422 -391
- package/dist/index.d.mts +16 -16
- package/dist/index.mjs +1 -1
- package/dist/{mxs-iW9DgqSZ.mjs → mxs-DC9zR3f2.mjs} +2203 -2782
- 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 +2481 -2561
- package/dist/vendor/litexml/litexml-html-preview-client.css +178 -60
- package/dist/vendor/litexml/litexml-html-preview-client.js +9950 -8762
- package/dist/vendor/litexml/style.css +11 -7
- package/package.json +23 -21
- package/skills/commands-ai.md +45 -12
- package/skills/overview.md +1 -1
- package/skills/safety.md +1 -1
- package/dist/esm-CH7CrOvh.mjs +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
3
|
-
//#region ../../node_modules/.pnpm/@lexical+extension@0.
|
|
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
|
+
//#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.
|
|
6
6
|
*
|
|
@@ -29,7 +29,7 @@ function $t() {
|
|
|
29
29
|
}
|
|
30
30
|
if (Vt = 0, Bt--, e) throw t;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function jt(t) {
|
|
33
33
|
if (Bt > 0) return t();
|
|
34
34
|
Zt = ++Gt, Bt++;
|
|
35
35
|
try {
|
|
@@ -38,15 +38,15 @@ function Tt(t) {
|
|
|
38
38
|
$t();
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
let
|
|
41
|
+
let Tt;
|
|
42
42
|
let zt;
|
|
43
43
|
function Ut(t) {
|
|
44
|
-
const e =
|
|
45
|
-
|
|
44
|
+
const e = Tt;
|
|
45
|
+
Tt = void 0;
|
|
46
46
|
try {
|
|
47
47
|
return t();
|
|
48
48
|
} finally {
|
|
49
|
-
|
|
49
|
+
Tt = e;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
let Wt;
|
|
@@ -54,20 +54,20 @@ let Bt = 0;
|
|
|
54
54
|
let Vt = 0;
|
|
55
55
|
let Gt = 0;
|
|
56
56
|
let Zt = 0;
|
|
57
|
-
let
|
|
58
|
-
function
|
|
59
|
-
if (void 0 ===
|
|
57
|
+
let Ht = 0;
|
|
58
|
+
function Jt(t) {
|
|
59
|
+
if (void 0 === Tt) return;
|
|
60
60
|
let e = t.n;
|
|
61
|
-
return void 0 === e || e.t !==
|
|
61
|
+
return void 0 === e || e.t !== Tt ? (e = {
|
|
62
62
|
i: 0,
|
|
63
63
|
S: t,
|
|
64
|
-
p:
|
|
64
|
+
p: Tt.s,
|
|
65
65
|
n: void 0,
|
|
66
|
-
t:
|
|
66
|
+
t: Tt,
|
|
67
67
|
e: void 0,
|
|
68
68
|
x: void 0,
|
|
69
69
|
r: e
|
|
70
|
-
}, void 0 !==
|
|
70
|
+
}, void 0 !== Tt.s && (Tt.s.n = e), Tt.s = e, t.n = e, 32 & Tt.f && t.S(e), e) : -1 === e.i ? (e.i = 0, void 0 !== e.n && (e.n.p = e.p, void 0 !== e.p && (e.p.n = e.n), e.p = Tt.s, e.n = void 0, Tt.s.n = e, Tt.s = e), e) : void 0;
|
|
71
71
|
}
|
|
72
72
|
function Xt(t, e) {
|
|
73
73
|
this.v = t, this.i = 0, this.n = void 0, this.t = void 0, this.l = 0, this.W = null == e ? void 0 : e.watched, this.Z = null == e ? void 0 : e.unwatched, this.name = null == e ? void 0 : e.name;
|
|
@@ -97,7 +97,7 @@ function te(t) {
|
|
|
97
97
|
t.s = e;
|
|
98
98
|
}
|
|
99
99
|
function ee(t, e) {
|
|
100
|
-
Xt.call(this, void 0), this.x = t, this.s = void 0, this.g =
|
|
100
|
+
Xt.call(this, void 0), this.x = t, this.s = void 0, this.g = Ht - 1, this.f = 4, this.W = null == e ? void 0 : e.watched, this.Z = null == e ? void 0 : e.unwatched, this.name = null == e ? void 0 : e.name;
|
|
101
101
|
}
|
|
102
102
|
function ne(t, e) {
|
|
103
103
|
return new ee(t, e);
|
|
@@ -106,14 +106,14 @@ function ie(t) {
|
|
|
106
106
|
const e = t.m;
|
|
107
107
|
if (t.m = void 0, "function" == typeof e) {
|
|
108
108
|
Bt++;
|
|
109
|
-
const n =
|
|
110
|
-
|
|
109
|
+
const n = Tt;
|
|
110
|
+
Tt = void 0;
|
|
111
111
|
try {
|
|
112
112
|
e();
|
|
113
113
|
} catch (e) {
|
|
114
114
|
throw t.f &= -2, t.f |= 8, oe(t), e;
|
|
115
115
|
} finally {
|
|
116
|
-
|
|
116
|
+
Tt = n, $t();
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
}
|
|
@@ -122,8 +122,8 @@ function oe(t) {
|
|
|
122
122
|
t.x = void 0, t.s = void 0, ie(t);
|
|
123
123
|
}
|
|
124
124
|
function se(t) {
|
|
125
|
-
if (
|
|
126
|
-
te(this),
|
|
125
|
+
if (Tt !== this) throw new Error("Out-of-order effect");
|
|
126
|
+
te(this), Tt = t, this.f &= -2, 8 & this.f && oe(this), $t();
|
|
127
127
|
}
|
|
128
128
|
function re(t, e) {
|
|
129
129
|
this.x = t, this.m = void 0, this.s = void 0, this.u = void 0, this.f = 32, this.name = null == e ? void 0 : e.name;
|
|
@@ -164,12 +164,12 @@ Xt.prototype.brand = Kt, Xt.prototype.h = function() {
|
|
|
164
164
|
}
|
|
165
165
|
}, Xt.prototype.subscribe = function(t) {
|
|
166
166
|
return ce(() => {
|
|
167
|
-
const e = this.value, n =
|
|
168
|
-
|
|
167
|
+
const e = this.value, n = Tt;
|
|
168
|
+
Tt = void 0;
|
|
169
169
|
try {
|
|
170
170
|
t(e);
|
|
171
171
|
} finally {
|
|
172
|
-
|
|
172
|
+
Tt = n;
|
|
173
173
|
}
|
|
174
174
|
}, { name: "sub" });
|
|
175
175
|
}, Xt.prototype.valueOf = function() {
|
|
@@ -179,16 +179,16 @@ Xt.prototype.brand = Kt, Xt.prototype.h = function() {
|
|
|
179
179
|
}, Xt.prototype.toJSON = function() {
|
|
180
180
|
return this.value;
|
|
181
181
|
}, Xt.prototype.peek = function() {
|
|
182
|
-
const t =
|
|
183
|
-
|
|
182
|
+
const t = Tt;
|
|
183
|
+
Tt = void 0;
|
|
184
184
|
try {
|
|
185
185
|
return this.value;
|
|
186
186
|
} finally {
|
|
187
|
-
|
|
187
|
+
Tt = t;
|
|
188
188
|
}
|
|
189
189
|
}, Object.defineProperty(Xt.prototype, "value", {
|
|
190
190
|
get() {
|
|
191
|
-
const t =
|
|
191
|
+
const t = Jt(this);
|
|
192
192
|
return void 0 !== t && (t.i = this.i), this.v;
|
|
193
193
|
},
|
|
194
194
|
set(t) {
|
|
@@ -201,7 +201,7 @@ Xt.prototype.brand = Kt, Xt.prototype.h = function() {
|
|
|
201
201
|
i: t.i,
|
|
202
202
|
o: Wt
|
|
203
203
|
});
|
|
204
|
-
})(this), this.v = t, this.i++,
|
|
204
|
+
})(this), this.v = t, this.i++, Ht++, Bt++;
|
|
205
205
|
try {
|
|
206
206
|
for (let t = this.t; void 0 !== t; t = t.x) t.t.N();
|
|
207
207
|
} finally {
|
|
@@ -212,17 +212,17 @@ Xt.prototype.brand = Kt, Xt.prototype.h = function() {
|
|
|
212
212
|
}), ee.prototype = new Xt(), ee.prototype.h = function() {
|
|
213
213
|
if (this.f &= -3, 1 & this.f) return !1;
|
|
214
214
|
if (32 == (36 & this.f)) return !0;
|
|
215
|
-
if (this.f &= -5, this.g ===
|
|
216
|
-
if (this.g =
|
|
217
|
-
const t =
|
|
215
|
+
if (this.f &= -5, this.g === Ht) return !0;
|
|
216
|
+
if (this.g = Ht, this.f |= 1, this.i > 0 && !qt(this)) return this.f &= -2, !0;
|
|
217
|
+
const t = Tt;
|
|
218
218
|
try {
|
|
219
|
-
Qt(this),
|
|
219
|
+
Qt(this), Tt = this;
|
|
220
220
|
const t = this.x();
|
|
221
221
|
(16 & this.f || this.v !== t || 0 === this.i) && (this.v = t, this.f &= -17, this.i++);
|
|
222
222
|
} catch (t) {
|
|
223
223
|
this.v = t, this.f |= 16, this.i++;
|
|
224
224
|
}
|
|
225
|
-
return
|
|
225
|
+
return Tt = t, te(this), this.f &= -2, !0;
|
|
226
226
|
}, ee.prototype.S = function(t) {
|
|
227
227
|
if (void 0 === this.t) {
|
|
228
228
|
this.f |= 36;
|
|
@@ -241,7 +241,7 @@ Xt.prototype.brand = Kt, Xt.prototype.h = function() {
|
|
|
241
241
|
}
|
|
242
242
|
}, Object.defineProperty(ee.prototype, "value", { get() {
|
|
243
243
|
if (1 & this.f) throw new Error("Cycle detected");
|
|
244
|
-
const t =
|
|
244
|
+
const t = Jt(this);
|
|
245
245
|
if (this.h(), void 0 !== t && (t.i = this.i), 16 & this.f) throw this.v;
|
|
246
246
|
return this.v;
|
|
247
247
|
} }), re.prototype.c = function() {
|
|
@@ -257,8 +257,8 @@ Xt.prototype.brand = Kt, Xt.prototype.h = function() {
|
|
|
257
257
|
}, re.prototype.S = function() {
|
|
258
258
|
if (1 & this.f) throw new Error("Cycle detected");
|
|
259
259
|
this.f |= 1, this.f &= -9, ie(this), Qt(this), Bt++;
|
|
260
|
-
const t =
|
|
261
|
-
return
|
|
260
|
+
const t = Tt;
|
|
261
|
+
return Tt = this, se.bind(this, t);
|
|
262
262
|
}, re.prototype.N = function() {
|
|
263
263
|
2 & this.f || (this.f |= 2, this.u = zt, zt = this);
|
|
264
264
|
}, re.prototype.d = function() {
|
|
@@ -352,8 +352,8 @@ function me(t) {
|
|
|
352
352
|
function ve(t) {
|
|
353
353
|
return ("function" == typeof t.nodes ? t.nodes() : t.nodes) || [];
|
|
354
354
|
}
|
|
355
|
-
const
|
|
356
|
-
var
|
|
355
|
+
const xe = /* @__PURE__ */ createState("format", { parse: (t) => "number" == typeof t ? t : 0 });
|
|
356
|
+
var ye = class extends DecoratorNode {
|
|
357
357
|
get __isInlineFormattable() {
|
|
358
358
|
return !0;
|
|
359
359
|
}
|
|
@@ -362,12 +362,12 @@ var xe = class extends DecoratorNode {
|
|
|
362
362
|
extends: DecoratorNode,
|
|
363
363
|
stateConfigs: [{
|
|
364
364
|
flat: !0,
|
|
365
|
-
stateConfig:
|
|
365
|
+
stateConfig: xe
|
|
366
366
|
}]
|
|
367
367
|
});
|
|
368
368
|
}
|
|
369
369
|
getFormat(t) {
|
|
370
|
-
return $getState(this,
|
|
370
|
+
return $getState(this, xe, t);
|
|
371
371
|
}
|
|
372
372
|
getFormatFlags(t, e) {
|
|
373
373
|
return toggleTextFormatType(this.getFormat(), t, e);
|
|
@@ -377,10 +377,10 @@ var xe = class extends DecoratorNode {
|
|
|
377
377
|
return 0 !== (this.getFormat() & e);
|
|
378
378
|
}
|
|
379
379
|
setFormat(t) {
|
|
380
|
-
return $setState(this,
|
|
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() {
|
|
@@ -391,7 +391,7 @@ var xe = class extends DecoratorNode {
|
|
|
391
391
|
}
|
|
392
392
|
};
|
|
393
393
|
function Ee(t) {
|
|
394
|
-
return t instanceof
|
|
394
|
+
return t instanceof ye;
|
|
395
395
|
}
|
|
396
396
|
function be(t, e, n) {
|
|
397
397
|
const i = e.fontWeight, o = e.textDecoration.split(" "), s = "700" === i || "bold" === i, r = o.includes("line-through"), c = "italic" === e.fontStyle, a = o.includes("underline"), d = e.verticalAlign;
|
|
@@ -421,7 +421,7 @@ const Oe = {
|
|
|
421
421
|
};
|
|
422
422
|
const Re = /* @__PURE__ */ defineExtension({
|
|
423
423
|
name: "@lexical/extension/DecoratorText",
|
|
424
|
-
nodes: () => [
|
|
424
|
+
nodes: () => [ye]
|
|
425
425
|
});
|
|
426
426
|
function Ce(t, e) {
|
|
427
427
|
let n;
|
|
@@ -448,18 +448,18 @@ function Ie(t, ...e) {
|
|
|
448
448
|
}
|
|
449
449
|
let Fe;
|
|
450
450
|
try {
|
|
451
|
-
Fe = "0.
|
|
451
|
+
Fe = "0.49.0+prod.esm";
|
|
452
452
|
} catch (t) {}
|
|
453
453
|
const Me = Fe ?? "\"<unknown>+source\"";
|
|
454
|
-
const
|
|
454
|
+
const ke = /* @__PURE__ */ new Set([
|
|
455
455
|
"__proto__",
|
|
456
456
|
"constructor",
|
|
457
457
|
"prototype"
|
|
458
458
|
]);
|
|
459
|
-
function
|
|
459
|
+
function _e(t, e) {
|
|
460
460
|
if (t && e && !Array.isArray(e) && "object" == typeof t && "object" == typeof e) {
|
|
461
461
|
const n = t, i = e;
|
|
462
|
-
for (const t in i) !
|
|
462
|
+
for (const t in i) !ke.has(t) && Object.prototype.hasOwnProperty.call(i, t) && (n[t] = _e(n[t], i[t]));
|
|
463
463
|
return t;
|
|
464
464
|
}
|
|
465
465
|
return e;
|
|
@@ -469,8 +469,8 @@ const Pe = 1;
|
|
|
469
469
|
const Le = 2;
|
|
470
470
|
const Ke = 3;
|
|
471
471
|
const $e = 4;
|
|
472
|
-
const
|
|
473
|
-
const
|
|
472
|
+
const je = 5;
|
|
473
|
+
const Te = 6;
|
|
474
474
|
const ze = 7;
|
|
475
475
|
function Ue(t) {
|
|
476
476
|
return t.id === Ae;
|
|
@@ -533,7 +533,7 @@ var Ge = class {
|
|
|
533
533
|
build(t) {
|
|
534
534
|
const e = this.state;
|
|
535
535
|
let n;
|
|
536
|
-
e.id !== $e && Ie(307, String(e.id), String(
|
|
536
|
+
e.id !== $e && Ie(307, String(e.id), String(je)), this.extension.build && (n = this.extension.build(t, e.config, e.registerState));
|
|
537
537
|
const i = {
|
|
538
538
|
...e.registerState,
|
|
539
539
|
getOutput: () => n,
|
|
@@ -541,7 +541,7 @@ var Ge = class {
|
|
|
541
541
|
};
|
|
542
542
|
this.state = function(t, e, n) {
|
|
543
543
|
return Object.assign(t, {
|
|
544
|
-
id:
|
|
544
|
+
id: je,
|
|
545
545
|
output: e,
|
|
546
546
|
registerState: n
|
|
547
547
|
});
|
|
@@ -550,21 +550,21 @@ var Ge = class {
|
|
|
550
550
|
register(t, e) {
|
|
551
551
|
this._signal = e;
|
|
552
552
|
const n = this.state;
|
|
553
|
-
n.id !==
|
|
553
|
+
n.id !== je && Ie(308, String(n.id), String(je));
|
|
554
554
|
const i = this.extension.register && this.extension.register(t, n.config, n.registerState);
|
|
555
555
|
return this.state = function(t) {
|
|
556
|
-
return Object.assign(t, { id:
|
|
556
|
+
return Object.assign(t, { id: Te });
|
|
557
557
|
}(n), () => {
|
|
558
558
|
const t = this.state;
|
|
559
559
|
t.id !== ze && Ie(309, String(n.id), String(ze)), this.state = function(t) {
|
|
560
|
-
return Object.assign(t, { id:
|
|
560
|
+
return Object.assign(t, { id: je });
|
|
561
561
|
}(t), i && i();
|
|
562
562
|
};
|
|
563
563
|
}
|
|
564
564
|
afterRegistration(t) {
|
|
565
565
|
const e = this.state;
|
|
566
566
|
let n;
|
|
567
|
-
return e.id !==
|
|
567
|
+
return e.id !== Te && Ie(310, String(e.id), String(Te)), this.extension.afterRegistration && (n = this.extension.afterRegistration(t, e.config, e.registerState)), this.state = function(t) {
|
|
568
568
|
return Object.assign(t, { id: ze });
|
|
569
569
|
}(e), n;
|
|
570
570
|
}
|
|
@@ -617,7 +617,7 @@ var Ge = class {
|
|
|
617
617
|
if (!this._dependency) {
|
|
618
618
|
const t = this.state;
|
|
619
619
|
(function(t) {
|
|
620
|
-
return t.id >=
|
|
620
|
+
return t.id >= je;
|
|
621
621
|
})(t) || Ie(317, this.extension.name), this._dependency = {
|
|
622
622
|
config: t.config,
|
|
623
623
|
init: t.initResult,
|
|
@@ -628,16 +628,16 @@ var Ge = class {
|
|
|
628
628
|
}
|
|
629
629
|
};
|
|
630
630
|
const Ze = { tag: HISTORY_MERGE_TAG };
|
|
631
|
-
function
|
|
631
|
+
function He() {
|
|
632
632
|
const t = $getRoot();
|
|
633
633
|
t.isEmpty() && t.append($createParagraphNode());
|
|
634
634
|
}
|
|
635
|
-
const
|
|
635
|
+
const Je = /* @__PURE__ */ defineExtension({
|
|
636
636
|
config: /* @__PURE__ */ safeCast({
|
|
637
637
|
setOptions: Ze,
|
|
638
638
|
updateOptions: Ze
|
|
639
639
|
}),
|
|
640
|
-
init: ({ $initialEditorState: t =
|
|
640
|
+
init: ({ $initialEditorState: t = He }) => ({
|
|
641
641
|
$initialEditorState: t,
|
|
642
642
|
initialized: !1
|
|
643
643
|
}),
|
|
@@ -691,7 +691,7 @@ var nn = class nn {
|
|
|
691
691
|
for (const e of t) this.addExtension(e);
|
|
692
692
|
}
|
|
693
693
|
static fromExtensions(t) {
|
|
694
|
-
const e = [tn(
|
|
694
|
+
const e = [tn(Je)];
|
|
695
695
|
for (const n of t) e.push(tn(n));
|
|
696
696
|
return new nn(e);
|
|
697
697
|
}
|
|
@@ -815,7 +815,7 @@ var nn = class nn {
|
|
|
815
815
|
if (r.html.export) for (const [t, e] of r.html.export.entries()) i.set(t, e);
|
|
816
816
|
r.html.import && Object.assign(o, r.html.import);
|
|
817
817
|
}
|
|
818
|
-
r.theme &&
|
|
818
|
+
r.theme && _e(s, r.theme);
|
|
819
819
|
}
|
|
820
820
|
Object.keys(s).length > 0 && (t.theme = s), e.size && (t.nodes = [...e]);
|
|
821
821
|
const c = Object.keys(o).length > 0, a = i.size > 0;
|
|
@@ -875,21 +875,12 @@ const un = /* @__PURE__ */ defineExtension({
|
|
|
875
875
|
name: "@lexical/extension/NodeSelection"
|
|
876
876
|
});
|
|
877
877
|
const fn = /* @__PURE__ */ createCommand("INSERT_HORIZONTAL_RULE_COMMAND");
|
|
878
|
-
var hn = class
|
|
879
|
-
|
|
880
|
-
return "horizontalrule"
|
|
881
|
-
}
|
|
882
|
-
static clone(t) {
|
|
883
|
-
return new hn(t.__key);
|
|
884
|
-
}
|
|
885
|
-
static importJSON(t) {
|
|
886
|
-
return pn().updateFromJSON(t);
|
|
887
|
-
}
|
|
888
|
-
static importDOM() {
|
|
889
|
-
return { hr: () => ({
|
|
878
|
+
var hn = class extends DecoratorNode {
|
|
879
|
+
$config() {
|
|
880
|
+
return this.config("horizontalrule", { importDOM: { hr: () => ({
|
|
890
881
|
conversion: gn,
|
|
891
882
|
priority: 0
|
|
892
|
-
}) };
|
|
883
|
+
}) } });
|
|
893
884
|
}
|
|
894
885
|
exportDOM() {
|
|
895
886
|
return { element: $getDocument().createElement("hr") };
|
|
@@ -926,7 +917,10 @@ const vn = /* @__PURE__ */ defineExtension({
|
|
|
926
917
|
return mergeRegister(t.registerCommand(fn, (t) => {
|
|
927
918
|
const e = $getSelection();
|
|
928
919
|
if (!$isRangeSelection(e)) return !1;
|
|
929
|
-
if (null !== e.focus.getNode())
|
|
920
|
+
if (null !== e.focus.getNode()) {
|
|
921
|
+
const t = pn();
|
|
922
|
+
$insertNodeToNearestRoot(t);
|
|
923
|
+
}
|
|
930
924
|
return !0;
|
|
931
925
|
}, COMMAND_PRIORITY_EDITOR), t.registerCommand(CLICK_COMMAND, (t) => {
|
|
932
926
|
if (isDOMNode(t.target)) {
|
|
@@ -939,7 +933,7 @@ const vn = /* @__PURE__ */ defineExtension({
|
|
|
939
933
|
}
|
|
940
934
|
return !1;
|
|
941
935
|
}, COMMAND_PRIORITY_LOW), t.registerMutationListener(hn, (e, n) => {
|
|
942
|
-
|
|
936
|
+
jt(() => {
|
|
943
937
|
let n = !1;
|
|
944
938
|
const { nodeSelections: o } = s.peek();
|
|
945
939
|
for (const [s, r] of e.entries()) if ("destroyed" === r) o.delete(s), n = !0;
|
|
@@ -962,39 +956,39 @@ const vn = /* @__PURE__ */ defineExtension({
|
|
|
962
956
|
}));
|
|
963
957
|
}
|
|
964
958
|
});
|
|
965
|
-
const
|
|
959
|
+
const xn = /* @__PURE__ */ defineExtension({
|
|
966
960
|
build: (t) => ({
|
|
967
961
|
composingTextNode: Yt(null),
|
|
968
962
|
compositionKey: Yt(null)
|
|
969
963
|
}),
|
|
970
964
|
name: "@lexical/extension/IME",
|
|
971
965
|
register(t, e, n) {
|
|
972
|
-
const { compositionKey: i, composingTextNode: o } = n.getOutput()
|
|
973
|
-
return mergeRegister(t.registerCommand(COMPOSITION_START_COMMAND, () => {
|
|
966
|
+
const { compositionKey: i, composingTextNode: o } = n.getOutput(), s = t.registerCommand(COMPOSITION_START_COMMAND, () => {
|
|
974
967
|
const t = $getSelection();
|
|
975
968
|
return $isRangeSelection(t) && (i.value = t.anchor.key), !1;
|
|
976
|
-
}, COMMAND_PRIORITY_BEFORE_EDITOR), ce(() => {
|
|
969
|
+
}, COMMAND_PRIORITY_BEFORE_EDITOR), c = ce(() => {
|
|
977
970
|
const e = i.value;
|
|
978
971
|
o.value = null !== e ? t.read("latest", () => {
|
|
979
972
|
const t = $getNodeByKey(e);
|
|
980
973
|
return $isTextNode(t) ? t : null;
|
|
981
974
|
}) : null;
|
|
982
|
-
}), t.registerUpdateListener(({ tags: t, editorState: e }) => {
|
|
975
|
+
}), d = t.registerUpdateListener(({ tags: t, editorState: e }) => {
|
|
983
976
|
t.has(COMPOSITION_START_TAG) && e.read(() => {
|
|
984
977
|
const t = $getSelection();
|
|
985
978
|
if (!$isRangeSelection(t)) return;
|
|
986
979
|
const e = t.anchor.getNode();
|
|
987
980
|
$isTextNode(e) && (o.value = e);
|
|
988
981
|
});
|
|
989
|
-
}), t.registerRootListener((t) => {
|
|
982
|
+
}), l = t.registerRootListener((t) => {
|
|
990
983
|
if (null === t) return void (i.value = null);
|
|
991
984
|
return registerEventListener(t, "compositionend", () => {
|
|
992
985
|
i.value = null;
|
|
993
986
|
});
|
|
994
|
-
})
|
|
987
|
+
});
|
|
988
|
+
return mergeRegister(s, c, d, l);
|
|
995
989
|
}
|
|
996
990
|
});
|
|
997
|
-
const
|
|
991
|
+
const yn = /* @__PURE__ */ defineExtension({
|
|
998
992
|
build: (t, e) => ae({ inheritEditableFromParent: e.inheritEditableFromParent }),
|
|
999
993
|
config: /* @__PURE__ */ safeCast({
|
|
1000
994
|
$getParentEditor: function() {
|
|
@@ -1205,7 +1199,7 @@ function Mn(t, e, n = Fn) {
|
|
|
1205
1199
|
e.preventDefault();
|
|
1206
1200
|
const i = function(t) {
|
|
1207
1201
|
if (t.getNodes().filter((t) => $isBlockElementNode(t) && t.canIndent()).length > 0) return !0;
|
|
1208
|
-
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);
|
|
1209
1203
|
if (s.canIndent()) {
|
|
1210
1204
|
const t = s.getKey();
|
|
1211
1205
|
let e = $createRangeSelection();
|
|
@@ -1213,10 +1207,10 @@ function Mn(t, e, n = Fn) {
|
|
|
1213
1207
|
}
|
|
1214
1208
|
return !1;
|
|
1215
1209
|
}(n) ? e.shiftKey ? OUTDENT_CONTENT_COMMAND : INDENT_CONTENT_COMMAND : INSERT_TAB_COMMAND;
|
|
1216
|
-
return t.dispatchCommand(i
|
|
1210
|
+
return t.dispatchCommand(i);
|
|
1217
1211
|
}, COMMAND_PRIORITY_EDITOR), t.registerCommand(INDENT_CONTENT_COMMAND, () => {
|
|
1218
|
-
const t = "number" == typeof e ? e : e ? e.peek() : null;
|
|
1219
|
-
if (!$isRangeSelection(
|
|
1212
|
+
const t = "number" == typeof e ? e : e ? e.peek() : null, i = $getSelection();
|
|
1213
|
+
if (!$isRangeSelection(i)) return !1;
|
|
1220
1214
|
const o = "function" == typeof n ? n : n.peek();
|
|
1221
1215
|
return $handleIndentAndOutdent((e) => {
|
|
1222
1216
|
if (o(e)) {
|
|
@@ -1226,7 +1220,7 @@ function Mn(t, e, n = Fn) {
|
|
|
1226
1220
|
});
|
|
1227
1221
|
}, COMMAND_PRIORITY_CRITICAL));
|
|
1228
1222
|
}
|
|
1229
|
-
const
|
|
1223
|
+
const kn = /* @__PURE__ */ defineExtension({
|
|
1230
1224
|
build: (t, e, n) => ae(e),
|
|
1231
1225
|
config: /* @__PURE__ */ safeCast({
|
|
1232
1226
|
$canIndent: Fn,
|
|
@@ -1241,11 +1235,11 @@ const _n = /* @__PURE__ */ defineExtension({
|
|
|
1241
1235
|
});
|
|
1242
1236
|
}
|
|
1243
1237
|
});
|
|
1244
|
-
const
|
|
1238
|
+
const _n = /* @__PURE__ */ defineExtension({
|
|
1245
1239
|
build: (t) => Ce(() => t.isEditable(), (e) => t.registerEditableListener((t) => {
|
|
1246
1240
|
e.value = t;
|
|
1247
1241
|
})),
|
|
1248
1242
|
name: "@lexical/extension/WatchEditable"
|
|
1249
1243
|
});
|
|
1250
1244
|
//#endregion
|
|
1251
|
-
export { we as $applyFormatToDom, pn as $createHorizontalRuleNode, he as $defaultShouldInsertAfter, cn as $getExtensionDependency, an as $getExtensionOutput, dn as $getPeerDependency, Ee as $isDecoratorTextNode, mn as $isHorizontalRuleNode, de as AutoFocusExtension, fe as ClearEditorExtension, pe as ClickAfterLastBlockExtension, Re as DecoratorTextExtension,
|
|
1245
|
+
export { we as $applyFormatToDom, pn as $createHorizontalRuleNode, he as $defaultShouldInsertAfter, cn as $getExtensionDependency, an as $getExtensionOutput, dn as $getPeerDependency, Ee as $isDecoratorTextNode, mn as $isHorizontalRuleNode, de as AutoFocusExtension, fe as ClearEditorExtension, pe as ClickAfterLastBlockExtension, Re as DecoratorTextExtension, ye as DecoratorTextNode, De as EditorStateExtension, vn as HorizontalRuleExtension, hn as HorizontalRuleNode, xn as IMEExtension, fn as INSERT_HORIZONTAL_RULE_COMMAND, Je as InitialStateExtension, nn as LexicalBuilder, yn as NestedEditorExtension, En as NodeSelectionDataSelectedExtension, un as NodeSelectionExtension, Sn as NormalizeInlineElementsExtension, Nn as NormalizeTripleClickSelectionExtension, Rn as PreventSelectAllExtension, Cn as RootElementExtension, Dn as SelectBlockExtension, In as SelectionAlwaysOnDisplayExtension, kn as TabIndentationExtension, _n as WatchEditableExtension, be as applyFormatFromStyle, Se as applyFormatToDom, jt as batch, Ye as buildEditorFromExtensions, ne as computed, configExtension, declarePeerDependency, defineExtension, ce as effect, on as getExtensionDependencyFromEditor, me as getKnownTypesAndNodes, sn as getPeerDependencyFromEditor, rn as getPeerDependencyFromEditorOrThrow, ae as namedSignals, ue as registerClearEditor, Mn as registerTabIndentation, safeCast, shallowMergeConfig, Yt as signal, Ut as untracked, Ce as watchedSignal };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Sr as createEditor } from "./Lexical.node-
|
|
2
|
-
//#region ../../node_modules/.pnpm/@lexical+headless@0.
|
|
1
|
+
import { Sr as createEditor } from "./Lexical.node-kAh5GM2n.mjs";
|
|
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.
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Sr as createEditor } from "./Lexical.node-
|
|
2
|
-
//#region ../../node_modules/.pnpm/@lexical+headless@0.
|
|
1
|
+
import { Sr as createEditor } from "./Lexical.node-kAh5GM2n.mjs";
|
|
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.
|
|
5
5
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
5
|
-
//#region ../../node_modules/.pnpm/@lexical+html@0.
|
|
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
|
+
//#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.
|
|
8
8
|
*
|
|
@@ -1014,7 +1014,7 @@ function parseSelector(source) {
|
|
|
1014
1014
|
}
|
|
1015
1015
|
if (groups.length === 1) return buildSelector(groups[0].tags, groups[0].predicates);
|
|
1016
1016
|
const tags = /* @__PURE__ */ new Set();
|
|
1017
|
-
for (const g of groups) for (const t of g.tags) tags.add(t);
|
|
1017
|
+
if (groups.every((g) => g.tags.size > 0)) for (const g of groups) for (const t of g.tags) tags.add(t);
|
|
1018
1018
|
const orPredicate = (node, captures) => {
|
|
1019
1019
|
for (const g of groups) {
|
|
1020
1020
|
const upper = node.nodeName;
|
|
@@ -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());
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@lexical+html@0.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@lexical+html@0.49.0_typescript@6.0.3/node_modules/@lexical/html/dist/LexicalHtml.node.mjs
|
|
2
2
|
/**
|
|
3
3
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
4
|
*
|
|
@@ -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,8 +1,8 @@
|
|
|
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-
|
|
5
|
-
//#region ../../node_modules/.pnpm/@lexical+html@0.
|
|
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
|
+
//#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.
|
|
8
8
|
*
|
|
@@ -600,7 +600,7 @@ function xe(t) {
|
|
|
600
600
|
}
|
|
601
601
|
if (1 === n.length) return se(n[0].tags, n[0].predicates);
|
|
602
602
|
const o = /* @__PURE__ */ new Set();
|
|
603
|
-
for (const t of n) for (const e of t.tags) o.add(e);
|
|
603
|
+
if (n.every((t) => t.tags.size > 0)) for (const t of n) for (const e of t.tags) o.add(e);
|
|
604
604
|
return se(o, [(t, e) => {
|
|
605
605
|
for (const o of n) {
|
|
606
606
|
const n = t.nodeName;
|