@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.
Files changed (617) hide show
  1. package/README.md +36 -12
  2. package/dist/{Lexical.dev-CtGmYDoh.mjs → Lexical.dev-BSvx45_E.mjs} +350 -402
  3. package/dist/{Lexical.node-8sRFmq2X.mjs → Lexical.node-kAh5GM2n.mjs} +2 -2
  4. package/dist/{Lexical.prod-D-VfeKDz.mjs → Lexical.prod-Bqwgb3ez.mjs} +1757 -1785
  5. package/dist/{LexicalClipboard.dev-CzQ15z6E.mjs → LexicalClipboard.dev-BWU3KXIa.mjs} +19 -15
  6. package/dist/{LexicalClipboard.node-D4gMGws6.mjs → LexicalClipboard.node-BygAdNdF.mjs} +2 -2
  7. package/dist/{LexicalClipboard.prod-CltkQpzS.mjs → LexicalClipboard.prod-BtMuKNyT.mjs} +11 -11
  8. package/dist/{LexicalCodeCore.dev-DkYBZRGB.mjs → LexicalCodeCore.dev-CD2xgvDs.mjs} +95 -89
  9. package/dist/{LexicalCodeCore.prod-COc3_QL8.mjs → LexicalCodeCore.prod-Bl6FFMc7.mjs} +146 -158
  10. package/dist/{LexicalDragon.dev-Dv5_WUae.mjs → LexicalDragon.dev-BwdYhm4K.mjs} +3 -3
  11. package/dist/{LexicalDragon.node-DgjrmWkd.mjs → LexicalDragon.node-CpJhkCVV.mjs} +2 -2
  12. package/dist/{LexicalDragon.prod-DnpbDe-_.mjs → LexicalDragon.prod-CvXmWwo1.mjs} +3 -3
  13. package/dist/{LexicalExtension.dev-JMH_6-OZ.mjs → LexicalExtension.dev-LcRLXI5Z.mjs} +33 -30
  14. package/dist/{LexicalExtension.node-BUozzx4t.mjs → LexicalExtension.node-BwJt2LXV.mjs} +2 -2
  15. package/dist/{LexicalExtension.prod-UiyDgmou.mjs → LexicalExtension.prod-lg8_33-H.mjs} +87 -93
  16. package/dist/{LexicalHeadless.dev-BfLGciiX.mjs → LexicalHeadless.dev-BeUbKBes.mjs} +2 -2
  17. package/dist/{LexicalHeadless.prod-CWF7edmQ.mjs → LexicalHeadless.prod-4gbIA8HM.mjs} +2 -2
  18. package/dist/{LexicalHtml.dev-D5EF5PGW.mjs → LexicalHtml.dev-BLdZWTCJ.mjs} +22 -16
  19. package/dist/{LexicalHtml.node-BYbzHNVe.mjs → LexicalHtml.node-BeuJMvvt.mjs} +2 -2
  20. package/dist/{LexicalHtml.prod-D_FfkvVD.mjs → LexicalHtml.prod-CHUyCocN.mjs} +6 -6
  21. package/dist/{LexicalLink.dev-D3Pgh6ik.mjs → LexicalLink.dev-DgsFRqw0.mjs} +41 -58
  22. package/dist/{LexicalLink.prod-XZoAYVYD.mjs → LexicalLink.prod-CkXkeKY2.mjs} +115 -138
  23. package/dist/{LexicalList.dev-B5d3ObhB.mjs → LexicalList.dev-OOms3kQi.mjs} +15 -47
  24. package/dist/{LexicalList.prod-OQDpVAEb.mjs → LexicalList.prod-DzMBeqHn.mjs} +208 -224
  25. package/dist/{LexicalMarkdown.dev-BkM8G3DG.mjs → LexicalMarkdown.dev-DJLKbZtD.mjs} +42 -30
  26. package/dist/{LexicalMarkdown.prod-DcVXCex6.mjs → LexicalMarkdown.prod-Cp21kDCU.mjs} +12 -8
  27. package/dist/{LexicalRichText.dev-DppD7IrA.mjs → LexicalRichText.dev-0rkAGjUf.mjs} +84 -86
  28. package/dist/{LexicalRichText.node-CPSn7dkg.mjs → LexicalRichText.node-Cd-BySPE.mjs} +8 -8
  29. package/dist/{LexicalRichText.prod-h7JPxFNp.mjs → LexicalRichText.prod-DTQiEr8C.mjs} +96 -100
  30. package/dist/{LexicalSelection.dev-CD0SLbxP.mjs → LexicalSelection.dev-Bi0VlUEv.mjs} +29 -25
  31. package/dist/{LexicalSelection.node-CGlJgUlZ.mjs → LexicalSelection.node-t2U46EF_.mjs} +2 -2
  32. package/dist/{LexicalSelection.prod-DbVZN5AV.mjs → LexicalSelection.prod-CrFG111g.mjs} +3 -3
  33. package/dist/{LexicalTable.dev-D0HU14UV.mjs → LexicalTable.dev-D-sFhO-o.mjs} +288 -154
  34. package/dist/{LexicalTable.prod-BcPNSrxP.mjs → LexicalTable.prod-DwYaa_dN.mjs} +689 -632
  35. package/dist/{LexicalUtils.dev-iKy_TrRT.mjs → LexicalUtils.dev-Q2q3-UDM.mjs} +9 -6
  36. package/dist/{LexicalUtils.node-CIgMS8cG.mjs → LexicalUtils.node-Dl7OvqJV.mjs} +2 -2
  37. package/dist/{LexicalUtils.prod-DIAsKJzu.mjs → LexicalUtils.prod-CBnq_iEV.mjs} +8 -7
  38. package/dist/bin/mxs.mjs +1 -1
  39. package/dist/esm-CNZ7kdTg.mjs +2 -0
  40. package/dist/{esm-CwXl1N0a.mjs → esm-ZXjJmLEC.mjs} +422 -391
  41. package/dist/index.d.mts +16 -16
  42. package/dist/index.mjs +1 -1
  43. package/dist/{mxs-iW9DgqSZ.mjs → mxs-DC9zR3f2.mjs} +2203 -2782
  44. package/dist/{rolldown-runtime-JspESFgx.mjs → rolldown-runtime-B4iAMlE-.mjs} +1 -1
  45. package/dist/src/bin/mxs.d.ts +2 -0
  46. package/dist/src/bin/mxs.js +310 -0
  47. package/dist/src/cli/ai/_poll.d.ts +12 -0
  48. package/dist/src/cli/ai/_poll.js +38 -0
  49. package/dist/src/cli/ai/_resolve.d.ts +8 -0
  50. package/dist/src/cli/ai/_resolve.js +27 -0
  51. package/dist/src/cli/ai/index.d.ts +127 -0
  52. package/dist/src/cli/ai/index.js +46 -0
  53. package/dist/src/cli/ai/insights/by-article.d.ts +10 -0
  54. package/dist/src/cli/ai/insights/by-article.js +21 -0
  55. package/dist/src/cli/ai/insights/delete.d.ts +7 -0
  56. package/dist/src/cli/ai/insights/delete.js +18 -0
  57. package/dist/src/cli/ai/insights/edit.d.ts +8 -0
  58. package/dist/src/cli/ai/insights/edit.js +54 -0
  59. package/dist/src/cli/ai/insights/get.d.ts +6 -0
  60. package/dist/src/cli/ai/insights/get.js +11 -0
  61. package/dist/src/cli/ai/insights/index.d.ts +30 -0
  62. package/dist/src/cli/ai/insights/index.js +17 -0
  63. package/dist/src/cli/ai/insights/list.d.ts +10 -0
  64. package/dist/src/cli/ai/insights/list.js +20 -0
  65. package/dist/src/cli/ai/insights/refresh.d.ts +10 -0
  66. package/dist/src/cli/ai/insights/refresh.js +25 -0
  67. package/dist/src/cli/ai/insights/translate.d.ts +10 -0
  68. package/dist/src/cli/ai/insights/translate.js +25 -0
  69. package/dist/src/cli/ai/overview/by-article.d.ts +7 -0
  70. package/dist/src/cli/ai/overview/by-article.js +15 -0
  71. package/dist/src/cli/ai/overview/index.d.ts +11 -0
  72. package/dist/src/cli/ai/overview/index.js +4 -0
  73. package/dist/src/cli/ai/overview/list.d.ts +10 -0
  74. package/dist/src/cli/ai/overview/list.js +20 -0
  75. package/dist/src/cli/ai/summary/by-article.d.ts +10 -0
  76. package/dist/src/cli/ai/summary/by-article.js +21 -0
  77. package/dist/src/cli/ai/summary/delete.d.ts +7 -0
  78. package/dist/src/cli/ai/summary/delete.js +18 -0
  79. package/dist/src/cli/ai/summary/edit.d.ts +8 -0
  80. package/dist/src/cli/ai/summary/edit.js +54 -0
  81. package/dist/src/cli/ai/summary/get.d.ts +6 -0
  82. package/dist/src/cli/ai/summary/get.js +11 -0
  83. package/dist/src/cli/ai/summary/index.d.ts +30 -0
  84. package/dist/src/cli/ai/summary/index.js +9 -0
  85. package/dist/src/cli/ai/summary/list.d.ts +10 -0
  86. package/dist/src/cli/ai/summary/list.js +20 -0
  87. package/dist/src/cli/ai/summary/regen.d.ts +10 -0
  88. package/dist/src/cli/ai/summary/regen.js +25 -0
  89. package/dist/src/cli/ai/summary/translate.d.ts +10 -0
  90. package/dist/src/cli/ai/summary/translate.js +25 -0
  91. package/dist/src/cli/ai/translate/by-article.d.ts +9 -0
  92. package/dist/src/cli/ai/translate/by-article.js +19 -0
  93. package/dist/src/cli/ai/translate/delete.d.ts +7 -0
  94. package/dist/src/cli/ai/translate/delete.js +18 -0
  95. package/dist/src/cli/ai/translate/edit.d.ts +8 -0
  96. package/dist/src/cli/ai/translate/edit.js +97 -0
  97. package/dist/src/cli/ai/translate/entries/delete.d.ts +7 -0
  98. package/dist/src/cli/ai/translate/entries/delete.js +18 -0
  99. package/dist/src/cli/ai/translate/entries/edit.d.ts +8 -0
  100. package/dist/src/cli/ai/translate/entries/edit.js +73 -0
  101. package/dist/src/cli/ai/translate/entries/generate.d.ts +7 -0
  102. package/dist/src/cli/ai/translate/entries/generate.js +15 -0
  103. package/dist/src/cli/ai/translate/entries/index.d.ts +17 -0
  104. package/dist/src/cli/ai/translate/entries/index.js +6 -0
  105. package/dist/src/cli/ai/translate/entries/list.d.ts +10 -0
  106. package/dist/src/cli/ai/translate/entries/list.js +20 -0
  107. package/dist/src/cli/ai/translate/get.d.ts +6 -0
  108. package/dist/src/cli/ai/translate/get.js +11 -0
  109. package/dist/src/cli/ai/translate/index.d.ts +40 -0
  110. package/dist/src/cli/ai/translate/index.js +19 -0
  111. package/dist/src/cli/ai/translate/languages.d.ts +7 -0
  112. package/dist/src/cli/ai/translate/languages.js +15 -0
  113. package/dist/src/cli/ai/translate/list.d.ts +9 -0
  114. package/dist/src/cli/ai/translate/list.js +19 -0
  115. package/dist/src/cli/ai/translate/run.d.ts +10 -0
  116. package/dist/src/cli/ai/translate/run.js +31 -0
  117. package/dist/src/cli/ai/tts/by-article.d.ts +7 -0
  118. package/dist/src/cli/ai/tts/by-article.js +15 -0
  119. package/dist/src/cli/ai/tts/delete.d.ts +7 -0
  120. package/dist/src/cli/ai/tts/delete.js +18 -0
  121. package/dist/src/cli/ai/tts/index.d.ts +22 -0
  122. package/dist/src/cli/ai/tts/index.js +7 -0
  123. package/dist/src/cli/ai/tts/list.d.ts +10 -0
  124. package/dist/src/cli/ai/tts/list.js +20 -0
  125. package/dist/src/cli/ai/tts/run.d.ts +10 -0
  126. package/dist/src/cli/ai/tts/run.js +25 -0
  127. package/dist/src/cli/ai/tts/voices.d.ts +7 -0
  128. package/dist/src/cli/ai/tts/voices.js +12 -0
  129. package/dist/src/cli/ai/views.d.ts +3 -0
  130. package/dist/src/cli/ai/views.js +45 -0
  131. package/dist/src/cli/auth/index.d.ts +6 -0
  132. package/dist/src/cli/auth/index.js +22 -0
  133. package/dist/src/cli/auth/login.d.ts +11 -0
  134. package/dist/src/cli/auth/login.js +168 -0
  135. package/dist/src/cli/auth/logout.d.ts +6 -0
  136. package/dist/src/cli/auth/logout.js +21 -0
  137. package/dist/src/cli/auth/status.d.ts +4 -0
  138. package/dist/src/cli/auth/status.js +31 -0
  139. package/dist/src/cli/auth/view.d.ts +25 -0
  140. package/dist/src/cli/auth/view.js +46 -0
  141. package/dist/src/cli/auth/whoami.d.ts +7 -0
  142. package/dist/src/cli/auth/whoami.js +44 -0
  143. package/dist/src/cli/category/create.d.ts +10 -0
  144. package/dist/src/cli/category/create.js +24 -0
  145. package/dist/src/cli/category/delete.d.ts +8 -0
  146. package/dist/src/cli/category/delete.js +21 -0
  147. package/dist/src/cli/category/get.d.ts +6 -0
  148. package/dist/src/cli/category/get.js +11 -0
  149. package/dist/src/cli/category/index.d.ts +20 -0
  150. package/dist/src/cli/category/index.js +41 -0
  151. package/dist/src/cli/category/list.d.ts +4 -0
  152. package/dist/src/cli/category/list.js +10 -0
  153. package/dist/src/cli/category/update.d.ts +12 -0
  154. package/dist/src/cli/category/update.js +34 -0
  155. package/dist/src/cli/comment/_flags.d.ts +28 -0
  156. package/dist/src/cli/comment/_flags.js +48 -0
  157. package/dist/src/cli/comment/approve.d.ts +9 -0
  158. package/dist/src/cli/comment/approve.js +23 -0
  159. package/dist/src/cli/comment/delete.d.ts +9 -0
  160. package/dist/src/cli/comment/delete.js +24 -0
  161. package/dist/src/cli/comment/get.d.ts +6 -0
  162. package/dist/src/cli/comment/get.js +12 -0
  163. package/dist/src/cli/comment/index.d.ts +34 -0
  164. package/dist/src/cli/comment/index.js +53 -0
  165. package/dist/src/cli/comment/list.d.ts +9 -0
  166. package/dist/src/cli/comment/list.js +20 -0
  167. package/dist/src/cli/comment/reject.d.ts +9 -0
  168. package/dist/src/cli/comment/reject.js +23 -0
  169. package/dist/src/cli/comment/reply.d.ts +9 -0
  170. package/dist/src/cli/comment/reply.js +31 -0
  171. package/dist/src/cli/comment/unread.d.ts +7 -0
  172. package/dist/src/cli/comment/unread.js +21 -0
  173. package/dist/src/cli/comment/view.d.ts +3 -0
  174. package/dist/src/cli/comment/view.js +197 -0
  175. package/dist/src/cli/config/edit.d.ts +5 -0
  176. package/dist/src/cli/config/edit.js +36 -0
  177. package/dist/src/cli/config/get.d.ts +6 -0
  178. package/dist/src/cli/config/get.js +11 -0
  179. package/dist/src/cli/config/index.d.ts +10 -0
  180. package/dist/src/cli/config/index.js +22 -0
  181. package/dist/src/cli/config/list.d.ts +4 -0
  182. package/dist/src/cli/config/list.js +10 -0
  183. package/dist/src/cli/config/set.d.ts +9 -0
  184. package/dist/src/cli/config/set.js +48 -0
  185. package/dist/src/cli/draft/_shared.d.ts +27 -0
  186. package/dist/src/cli/draft/_shared.js +85 -0
  187. package/dist/src/cli/draft/create.d.ts +21 -0
  188. package/dist/src/cli/draft/create.js +34 -0
  189. package/dist/src/cli/draft/delete.d.ts +7 -0
  190. package/dist/src/cli/draft/delete.js +20 -0
  191. package/dist/src/cli/draft/get.d.ts +6 -0
  192. package/dist/src/cli/draft/get.js +11 -0
  193. package/dist/src/cli/draft/index.d.ts +54 -0
  194. package/dist/src/cli/draft/index.js +42 -0
  195. package/dist/src/cli/draft/list.d.ts +11 -0
  196. package/dist/src/cli/draft/list.js +23 -0
  197. package/dist/src/cli/draft/publish.d.ts +8 -0
  198. package/dist/src/cli/draft/publish.js +64 -0
  199. package/dist/src/cli/draft/update.d.ts +22 -0
  200. package/dist/src/cli/draft/update.js +29 -0
  201. package/dist/src/cli/file/_shared.d.ts +6 -0
  202. package/dist/src/cli/file/_shared.js +5 -0
  203. package/dist/src/cli/file/delete.d.ts +8 -0
  204. package/dist/src/cli/file/delete.js +21 -0
  205. package/dist/src/cli/file/index.d.ts +19 -0
  206. package/dist/src/cli/file/index.js +33 -0
  207. package/dist/src/cli/file/list.d.ts +6 -0
  208. package/dist/src/cli/file/list.js +11 -0
  209. package/dist/src/cli/file/rename.d.ts +8 -0
  210. package/dist/src/cli/file/rename.js +16 -0
  211. package/dist/src/cli/file/upload.d.ts +9 -0
  212. package/dist/src/cli/file/upload.js +32 -0
  213. package/dist/src/cli/help/index.d.ts +62 -0
  214. package/dist/src/cli/help/index.js +276 -0
  215. package/dist/src/cli/help/registry.d.ts +28 -0
  216. package/dist/src/cli/help/registry.js +29 -0
  217. package/dist/src/cli/note/_flags.d.ts +66 -0
  218. package/dist/src/cli/note/_flags.js +73 -0
  219. package/dist/src/cli/note/create.d.ts +23 -0
  220. package/dist/src/cli/note/create.js +25 -0
  221. package/dist/src/cli/note/delete.d.ts +8 -0
  222. package/dist/src/cli/note/delete.js +21 -0
  223. package/dist/src/cli/note/edit.d.ts +28 -0
  224. package/dist/src/cli/note/edit.js +114 -0
  225. package/dist/src/cli/note/get.d.ts +6 -0
  226. package/dist/src/cli/note/get.js +29 -0
  227. package/dist/src/cli/note/index.d.ts +77 -0
  228. package/dist/src/cli/note/index.js +63 -0
  229. package/dist/src/cli/note/list.d.ts +10 -0
  230. package/dist/src/cli/note/list.js +22 -0
  231. package/dist/src/cli/note/publish.d.ts +7 -0
  232. package/dist/src/cli/note/publish.js +17 -0
  233. package/dist/src/cli/note/unpublish.d.ts +7 -0
  234. package/dist/src/cli/note/unpublish.js +17 -0
  235. package/dist/src/cli/note/update.d.ts +25 -0
  236. package/dist/src/cli/note/update.js +36 -0
  237. package/dist/src/cli/note/view.d.ts +3 -0
  238. package/dist/src/cli/note/view.js +162 -0
  239. package/dist/src/cli/page/create.d.ts +41 -0
  240. package/dist/src/cli/page/create.js +56 -0
  241. package/dist/src/cli/page/delete.d.ts +7 -0
  242. package/dist/src/cli/page/delete.js +37 -0
  243. package/dist/src/cli/page/edit.d.ts +19 -0
  244. package/dist/src/cli/page/edit.js +117 -0
  245. package/dist/src/cli/page/get.d.ts +6 -0
  246. package/dist/src/cli/page/get.js +16 -0
  247. package/dist/src/cli/page/index.d.ts +44 -0
  248. package/dist/src/cli/page/index.js +38 -0
  249. package/dist/src/cli/page/list.d.ts +4 -0
  250. package/dist/src/cli/page/list.js +10 -0
  251. package/dist/src/cli/page/update.d.ts +16 -0
  252. package/dist/src/cli/page/update.js +48 -0
  253. package/dist/src/cli/page/view.d.ts +2 -0
  254. package/dist/src/cli/page/view.js +79 -0
  255. package/dist/src/cli/post/_flags.d.ts +66 -0
  256. package/dist/src/cli/post/_flags.js +96 -0
  257. package/dist/src/cli/post/apply.d.ts +7 -0
  258. package/dist/src/cli/post/apply.js +70 -0
  259. package/dist/src/cli/post/create.d.ts +21 -0
  260. package/dist/src/cli/post/create.js +24 -0
  261. package/dist/src/cli/post/delete.d.ts +8 -0
  262. package/dist/src/cli/post/delete.js +21 -0
  263. package/dist/src/cli/post/edit.d.ts +26 -0
  264. package/dist/src/cli/post/edit.js +115 -0
  265. package/dist/src/cli/post/get.d.ts +7 -0
  266. package/dist/src/cli/post/get.js +15 -0
  267. package/dist/src/cli/post/index.d.ts +91 -0
  268. package/dist/src/cli/post/index.js +73 -0
  269. package/dist/src/cli/post/list.d.ts +10 -0
  270. package/dist/src/cli/post/list.js +23 -0
  271. package/dist/src/cli/post/publish.d.ts +7 -0
  272. package/dist/src/cli/post/publish.js +17 -0
  273. package/dist/src/cli/post/stage.d.ts +23 -0
  274. package/dist/src/cli/post/stage.js +55 -0
  275. package/dist/src/cli/post/unpublish.d.ts +7 -0
  276. package/dist/src/cli/post/unpublish.js +17 -0
  277. package/dist/src/cli/post/update.d.ts +23 -0
  278. package/dist/src/cli/post/update.js +38 -0
  279. package/dist/src/cli/post/view.d.ts +3 -0
  280. package/dist/src/cli/post/view.js +150 -0
  281. package/dist/src/cli/preview/index.d.ts +13 -0
  282. package/dist/src/cli/preview/index.js +226 -0
  283. package/dist/src/cli/profile/index.d.ts +14 -0
  284. package/dist/src/cli/profile/index.js +36 -0
  285. package/dist/src/cli/profile/ls.d.ts +5 -0
  286. package/dist/src/cli/profile/ls.js +26 -0
  287. package/dist/src/cli/profile/mark.d.ts +9 -0
  288. package/dist/src/cli/profile/mark.js +23 -0
  289. package/dist/src/cli/profile/rm.d.ts +12 -0
  290. package/dist/src/cli/profile/rm.js +50 -0
  291. package/dist/src/cli/profile/show.d.ts +9 -0
  292. package/dist/src/cli/profile/show.js +40 -0
  293. package/dist/src/cli/profile/use.d.ts +6 -0
  294. package/dist/src/cli/profile/use.js +11 -0
  295. package/dist/src/cli/profile/view.d.ts +8 -0
  296. package/dist/src/cli/profile/view.js +21 -0
  297. package/dist/src/cli/project/_flags.d.ts +56 -0
  298. package/dist/src/cli/project/_flags.js +130 -0
  299. package/dist/src/cli/project/create.d.ts +17 -0
  300. package/dist/src/cli/project/create.js +25 -0
  301. package/dist/src/cli/project/delete.d.ts +8 -0
  302. package/dist/src/cli/project/delete.js +22 -0
  303. package/dist/src/cli/project/edit.d.ts +11 -0
  304. package/dist/src/cli/project/edit.js +61 -0
  305. package/dist/src/cli/project/get.d.ts +7 -0
  306. package/dist/src/cli/project/get.js +14 -0
  307. package/dist/src/cli/project/index.d.ts +43 -0
  308. package/dist/src/cli/project/index.js +52 -0
  309. package/dist/src/cli/project/list.d.ts +8 -0
  310. package/dist/src/cli/project/list.js +19 -0
  311. package/dist/src/cli/project/update.d.ts +18 -0
  312. package/dist/src/cli/project/update.js +24 -0
  313. package/dist/src/cli/project/view-cmd.d.ts +7 -0
  314. package/dist/src/cli/project/view-cmd.js +15 -0
  315. package/dist/src/cli/project/view.d.ts +3 -0
  316. package/dist/src/cli/project/view.js +102 -0
  317. package/dist/src/cli/render/codehighlight.d.ts +8 -0
  318. package/dist/src/cli/render/codehighlight.js +264 -0
  319. package/dist/src/cli/render/envelope.d.ts +7 -0
  320. package/dist/src/cli/render/envelope.js +23 -0
  321. package/dist/src/cli/render/frontmatter.d.ts +8 -0
  322. package/dist/src/cli/render/frontmatter.js +50 -0
  323. package/dist/src/cli/render/helpers.d.ts +2 -0
  324. package/dist/src/cli/render/helpers.js +11 -0
  325. package/dist/src/cli/render/index.d.ts +7 -0
  326. package/dist/src/cli/render/index.js +10 -0
  327. package/dist/src/cli/render/lexical/blocks.d.ts +19 -0
  328. package/dist/src/cli/render/lexical/blocks.js +208 -0
  329. package/dist/src/cli/render/lexical/code.d.ts +2 -0
  330. package/dist/src/cli/render/lexical/code.js +22 -0
  331. package/dist/src/cli/render/lexical/embeds.d.ts +6 -0
  332. package/dist/src/cli/render/lexical/embeds.js +51 -0
  333. package/dist/src/cli/render/lexical/index.d.ts +9 -0
  334. package/dist/src/cli/render/lexical/index.js +25 -0
  335. package/dist/src/cli/render/lexical/inlines.d.ts +17 -0
  336. package/dist/src/cli/render/lexical/inlines.js +76 -0
  337. package/dist/src/cli/render/lexical/parser.d.ts +10 -0
  338. package/dist/src/cli/render/lexical/parser.js +64 -0
  339. package/dist/src/cli/render/lexical/walker.d.ts +21 -0
  340. package/dist/src/cli/render/lexical/walker.js +51 -0
  341. package/dist/src/cli/render/markdown.d.ts +18 -0
  342. package/dist/src/cli/render/markdown.js +196 -0
  343. package/dist/src/cli/render/metadata-block.d.ts +14 -0
  344. package/dist/src/cli/render/metadata-block.js +50 -0
  345. package/dist/src/cli/skill/all.d.ts +4 -0
  346. package/dist/src/cli/skill/all.js +11 -0
  347. package/dist/src/cli/skill/get.d.ts +6 -0
  348. package/dist/src/cli/skill/get.js +12 -0
  349. package/dist/src/cli/skill/index.d.ts +10 -0
  350. package/dist/src/cli/skill/index.js +34 -0
  351. package/dist/src/cli/skill/list.d.ts +4 -0
  352. package/dist/src/cli/skill/list.js +11 -0
  353. package/dist/src/cli/skill/search.d.ts +6 -0
  354. package/dist/src/cli/skill/search.js +12 -0
  355. package/dist/src/cli/skill/views.d.ts +6 -0
  356. package/dist/src/cli/skill/views.js +90 -0
  357. package/dist/src/cli/snippet/_flags.d.ts +57 -0
  358. package/dist/src/cli/snippet/_flags.js +123 -0
  359. package/dist/src/cli/snippet/_resolve.d.ts +4 -0
  360. package/dist/src/cli/snippet/_resolve.js +32 -0
  361. package/dist/src/cli/snippet/_sync.d.ts +5 -0
  362. package/dist/src/cli/snippet/_sync.js +54 -0
  363. package/dist/src/cli/snippet/create.d.ts +19 -0
  364. package/dist/src/cli/snippet/create.js +35 -0
  365. package/dist/src/cli/snippet/delete.d.ts +8 -0
  366. package/dist/src/cli/snippet/delete.js +28 -0
  367. package/dist/src/cli/snippet/edit.d.ts +7 -0
  368. package/dist/src/cli/snippet/edit.js +29 -0
  369. package/dist/src/cli/snippet/get.d.ts +6 -0
  370. package/dist/src/cli/snippet/get.js +12 -0
  371. package/dist/src/cli/snippet/index.d.ts +43 -0
  372. package/dist/src/cli/snippet/index.js +58 -0
  373. package/dist/src/cli/snippet/list.d.ts +9 -0
  374. package/dist/src/cli/snippet/list.js +20 -0
  375. package/dist/src/cli/snippet/pull.d.ts +8 -0
  376. package/dist/src/cli/snippet/pull.js +33 -0
  377. package/dist/src/cli/snippet/push.d.ts +10 -0
  378. package/dist/src/cli/snippet/push.js +31 -0
  379. package/dist/src/cli/snippet/update.d.ts +8 -0
  380. package/dist/src/cli/snippet/update.js +16 -0
  381. package/dist/src/cli/topic/create.d.ts +10 -0
  382. package/dist/src/cli/topic/create.js +24 -0
  383. package/dist/src/cli/topic/delete.d.ts +7 -0
  384. package/dist/src/cli/topic/delete.js +37 -0
  385. package/dist/src/cli/topic/get.d.ts +6 -0
  386. package/dist/src/cli/topic/get.js +15 -0
  387. package/dist/src/cli/topic/index.d.ts +20 -0
  388. package/dist/src/cli/topic/index.js +32 -0
  389. package/dist/src/cli/topic/list.d.ts +4 -0
  390. package/dist/src/cli/topic/list.js +10 -0
  391. package/dist/src/cli/topic/update.d.ts +11 -0
  392. package/dist/src/cli/topic/update.js +51 -0
  393. package/dist/src/cli/ui/index.d.ts +24 -0
  394. package/dist/src/cli/ui/index.js +83 -0
  395. package/dist/src/cli/update/index.d.ts +10 -0
  396. package/dist/src/cli/update/index.js +142 -0
  397. package/dist/src/domain/admin-link.d.ts +12 -0
  398. package/dist/src/domain/admin-link.js +45 -0
  399. package/dist/src/domain/content-spec.d.ts +20 -0
  400. package/dist/src/domain/content-spec.js +78 -0
  401. package/dist/src/domain/envelope-compat.d.ts +68 -0
  402. package/dist/src/domain/envelope-compat.js +121 -0
  403. package/dist/src/domain/envelope.d.ts +34 -0
  404. package/dist/src/domain/envelope.js +355 -0
  405. package/dist/src/domain/errors.d.ts +336 -0
  406. package/dist/src/domain/errors.js +239 -0
  407. package/dist/src/domain/gate.d.ts +14 -0
  408. package/dist/src/domain/gate.js +18 -0
  409. package/dist/src/domain/payload.d.ts +64 -0
  410. package/dist/src/domain/payload.js +237 -0
  411. package/dist/src/domain/preflight-guards.d.ts +54 -0
  412. package/dist/src/domain/preflight-guards.js +130 -0
  413. package/dist/src/domain/runtime-flags.d.ts +33 -0
  414. package/dist/src/domain/runtime-flags.js +166 -0
  415. package/dist/src/domain/schema/api-envelope.d.ts +67 -0
  416. package/dist/src/domain/schema/api-envelope.js +65 -0
  417. package/dist/src/domain/schema/category.d.ts +23 -0
  418. package/dist/src/domain/schema/category.js +19 -0
  419. package/dist/src/domain/schema/config.d.ts +13 -0
  420. package/dist/src/domain/schema/config.js +18 -0
  421. package/dist/src/domain/schema/note.d.ts +76 -0
  422. package/dist/src/domain/schema/note.js +35 -0
  423. package/dist/src/domain/schema/page.d.ts +40 -0
  424. package/dist/src/domain/schema/page.js +22 -0
  425. package/dist/src/domain/schema/post.d.ts +68 -0
  426. package/dist/src/domain/schema/post.js +35 -0
  427. package/dist/src/domain/schema/profile.d.ts +14 -0
  428. package/dist/src/domain/schema/profile.js +22 -0
  429. package/dist/src/domain/schema/topic.d.ts +24 -0
  430. package/dist/src/domain/schema/topic.js +16 -0
  431. package/dist/src/domain/version.d.ts +15 -0
  432. package/dist/src/domain/version.js +43 -0
  433. package/dist/src/index.d.ts +4 -0
  434. package/dist/src/index.js +8 -0
  435. package/dist/src/layers/App.d.ts +30 -0
  436. package/dist/src/layers/App.js +39 -0
  437. package/dist/src/services/Ai/index.d.ts +13 -0
  438. package/dist/src/services/Ai/index.js +127 -0
  439. package/dist/src/services/Ai/overview.d.ts +7 -0
  440. package/dist/src/services/Ai/overview.js +11 -0
  441. package/dist/src/services/Ai/resources.d.ts +7 -0
  442. package/dist/src/services/Ai/resources.js +59 -0
  443. package/dist/src/services/Ai/shared.d.ts +2 -0
  444. package/dist/src/services/Ai/shared.js +11 -0
  445. package/dist/src/services/Ai/tasks.d.ts +8 -0
  446. package/dist/src/services/Ai/tasks.js +144 -0
  447. package/dist/src/services/Ai/types.d.ts +130 -0
  448. package/dist/src/services/Ai/types.js +1 -0
  449. package/dist/src/services/Api.d.ts +67 -0
  450. package/dist/src/services/Api.js +348 -0
  451. package/dist/src/services/Auth.d.ts +101 -0
  452. package/dist/src/services/Auth.js +402 -0
  453. package/dist/src/services/Backup.d.ts +8 -0
  454. package/dist/src/services/Backup.js +4 -0
  455. package/dist/src/services/Cache.d.ts +8 -0
  456. package/dist/src/services/Cache.js +4 -0
  457. package/dist/src/services/Comment.d.ts +48 -0
  458. package/dist/src/services/Comment.js +102 -0
  459. package/dist/src/services/Config.d.ts +95 -0
  460. package/dist/src/services/Config.js +359 -0
  461. package/dist/src/services/Editor.d.ts +28 -0
  462. package/dist/src/services/Editor.js +95 -0
  463. package/dist/src/services/Lexical.d.ts +27 -0
  464. package/dist/src/services/Lexical.js +56 -0
  465. package/dist/src/services/Migration.d.ts +31 -0
  466. package/dist/src/services/Migration.js +177 -0
  467. package/dist/src/services/Profile.d.ts +29 -0
  468. package/dist/src/services/Profile.js +115 -0
  469. package/dist/src/services/Renderer/content.d.ts +16 -0
  470. package/dist/src/services/Renderer/content.js +110 -0
  471. package/dist/src/services/Renderer/datetime.d.ts +38 -0
  472. package/dist/src/services/Renderer/datetime.js +147 -0
  473. package/dist/src/services/Renderer/errors.d.ts +3 -0
  474. package/dist/src/services/Renderer/errors.js +59 -0
  475. package/dist/src/services/Renderer/index.d.ts +13 -0
  476. package/dist/src/services/Renderer/index.js +11 -0
  477. package/dist/src/services/Renderer/lists.d.ts +1 -0
  478. package/dist/src/services/Renderer/lists.js +101 -0
  479. package/dist/src/services/Renderer/options.d.ts +10 -0
  480. package/dist/src/services/Renderer/options.js +13 -0
  481. package/dist/src/services/Renderer/primitives.d.ts +4 -0
  482. package/dist/src/services/Renderer/primitives.js +12 -0
  483. package/dist/src/services/Renderer/service.d.ts +35 -0
  484. package/dist/src/services/Renderer/service.js +123 -0
  485. package/dist/src/services/Renderer/view.d.ts +16 -0
  486. package/dist/src/services/Renderer/view.js +1 -0
  487. package/dist/src/services/Resolver.d.ts +47 -0
  488. package/dist/src/services/Resolver.js +269 -0
  489. package/dist/src/services/Skill.d.ts +29 -0
  490. package/dist/src/services/Skill.js +421 -0
  491. package/dist/src/services/UpdateNotifier.d.ts +162 -0
  492. package/dist/src/services/UpdateNotifier.js +572 -0
  493. package/dist/test/cli/ai/ai.test.d.ts +1 -0
  494. package/dist/test/cli/ai/ai.test.js +507 -0
  495. package/dist/test/cli/ai/verbs.test.d.ts +1 -0
  496. package/dist/test/cli/ai/verbs.test.js +235 -0
  497. package/dist/test/cli/auth/login.test.d.ts +1 -0
  498. package/dist/test/cli/auth/login.test.js +236 -0
  499. package/dist/test/cli/auth/logout-whoami.test.d.ts +1 -0
  500. package/dist/test/cli/auth/logout-whoami.test.js +124 -0
  501. package/dist/test/cli/auth/status.test.d.ts +1 -0
  502. package/dist/test/cli/auth/status.test.js +90 -0
  503. package/dist/test/cli/category/category.test.d.ts +1 -0
  504. package/dist/test/cli/category/category.test.js +175 -0
  505. package/dist/test/cli/comment/comment.test.d.ts +1 -0
  506. package/dist/test/cli/comment/comment.test.js +445 -0
  507. package/dist/test/cli/config/config.test.d.ts +1 -0
  508. package/dist/test/cli/config/config.test.js +281 -0
  509. package/dist/test/cli/edit-roundtrip.test.d.ts +1 -0
  510. package/dist/test/cli/edit-roundtrip.test.js +259 -0
  511. package/dist/test/cli/file/file.test.d.ts +1 -0
  512. package/dist/test/cli/file/file.test.js +185 -0
  513. package/dist/test/cli/help.test.d.ts +1 -0
  514. package/dist/test/cli/help.test.js +289 -0
  515. package/dist/test/cli/note/create.test.d.ts +1 -0
  516. package/dist/test/cli/note/create.test.js +155 -0
  517. package/dist/test/cli/note/list.test.d.ts +1 -0
  518. package/dist/test/cli/note/list.test.js +115 -0
  519. package/dist/test/cli/note/publish.test.d.ts +1 -0
  520. package/dist/test/cli/note/publish.test.js +123 -0
  521. package/dist/test/cli/page/page.test.d.ts +1 -0
  522. package/dist/test/cli/page/page.test.js +185 -0
  523. package/dist/test/cli/post/create.test.d.ts +1 -0
  524. package/dist/test/cli/post/create.test.js +172 -0
  525. package/dist/test/cli/post/list.test.d.ts +1 -0
  526. package/dist/test/cli/post/list.test.js +133 -0
  527. package/dist/test/cli/post/publish.test.d.ts +1 -0
  528. package/dist/test/cli/post/publish.test.js +139 -0
  529. package/dist/test/cli/post/stage-apply.test.d.ts +1 -0
  530. package/dist/test/cli/post/stage-apply.test.js +215 -0
  531. package/dist/test/cli/post/update.test.d.ts +1 -0
  532. package/dist/test/cli/post/update.test.js +160 -0
  533. package/dist/test/cli/post-note-crud.test.d.ts +1 -0
  534. package/dist/test/cli/post-note-crud.test.js +362 -0
  535. package/dist/test/cli/profile/ls.test.d.ts +1 -0
  536. package/dist/test/cli/profile/ls.test.js +93 -0
  537. package/dist/test/cli/profile/mark-use.test.d.ts +1 -0
  538. package/dist/test/cli/profile/mark-use.test.js +216 -0
  539. package/dist/test/cli/project-crud.test.d.ts +1 -0
  540. package/dist/test/cli/project-crud.test.js +315 -0
  541. package/dist/test/cli/render/lexical.test.d.ts +1 -0
  542. package/dist/test/cli/render/lexical.test.js +216 -0
  543. package/dist/test/cli/render/markdown.test.d.ts +1 -0
  544. package/dist/test/cli/render/markdown.test.js +39 -0
  545. package/dist/test/cli/snippet-crud.test.d.ts +1 -0
  546. package/dist/test/cli/snippet-crud.test.js +293 -0
  547. package/dist/test/cli/topic/topic.test.d.ts +1 -0
  548. package/dist/test/cli/topic/topic.test.js +181 -0
  549. package/dist/test/cli/update.test.d.ts +1 -0
  550. package/dist/test/cli/update.test.js +395 -0
  551. package/dist/test/domain/content-spec.test.d.ts +1 -0
  552. package/dist/test/domain/content-spec.test.js +126 -0
  553. package/dist/test/domain/envelope-compat.test.d.ts +1 -0
  554. package/dist/test/domain/envelope-compat.test.js +126 -0
  555. package/dist/test/domain/envelope.test.d.ts +1 -0
  556. package/dist/test/domain/envelope.test.js +149 -0
  557. package/dist/test/domain/errors.test.d.ts +1 -0
  558. package/dist/test/domain/errors.test.js +127 -0
  559. package/dist/test/domain/gate.test.d.ts +1 -0
  560. package/dist/test/domain/gate.test.js +128 -0
  561. package/dist/test/domain/payload.test.d.ts +1 -0
  562. package/dist/test/domain/payload.test.js +259 -0
  563. package/dist/test/helper/test-fs.d.ts +24 -0
  564. package/dist/test/helper/test-fs.js +161 -0
  565. package/dist/test/helper/test-http.d.ts +31 -0
  566. package/dist/test/helper/test-http.js +66 -0
  567. package/dist/test/integration/_helpers.d.ts +5 -0
  568. package/dist/test/integration/_helpers.js +24 -0
  569. package/dist/test/integration/cli-error-envelope.test.d.ts +1 -0
  570. package/dist/test/integration/cli-error-envelope.test.js +137 -0
  571. package/dist/test/integration/cli-help-render.test.d.ts +1 -0
  572. package/dist/test/integration/cli-help-render.test.js +149 -0
  573. package/dist/test/integration/cli-help.test.d.ts +1 -0
  574. package/dist/test/integration/cli-help.test.js +67 -0
  575. package/dist/test/integration/cli-post-list.test.d.ts +1 -0
  576. package/dist/test/integration/cli-post-list.test.js +140 -0
  577. package/dist/test/integration/cli-skill.test.d.ts +1 -0
  578. package/dist/test/integration/cli-skill.test.js +74 -0
  579. package/dist/test/integration/cli-version.test.d.ts +1 -0
  580. package/dist/test/integration/cli-version.test.js +37 -0
  581. package/dist/test/services/Api.test.d.ts +1 -0
  582. package/dist/test/services/Api.test.js +553 -0
  583. package/dist/test/services/Auth.test.d.ts +1 -0
  584. package/dist/test/services/Auth.test.js +650 -0
  585. package/dist/test/services/Config.test.d.ts +1 -0
  586. package/dist/test/services/Config.test.js +510 -0
  587. package/dist/test/services/Datetime.test.d.ts +1 -0
  588. package/dist/test/services/Datetime.test.js +113 -0
  589. package/dist/test/services/Editor.test.d.ts +1 -0
  590. package/dist/test/services/Editor.test.js +205 -0
  591. package/dist/test/services/Lexical.errors.test.d.ts +1 -0
  592. package/dist/test/services/Lexical.errors.test.js +60 -0
  593. package/dist/test/services/Lexical.test.d.ts +1 -0
  594. package/dist/test/services/Lexical.test.js +68 -0
  595. package/dist/test/services/Migration.test.d.ts +1 -0
  596. package/dist/test/services/Migration.test.js +376 -0
  597. package/dist/test/services/Profile.test.d.ts +1 -0
  598. package/dist/test/services/Profile.test.js +277 -0
  599. package/dist/test/services/Renderer.test.d.ts +1 -0
  600. package/dist/test/services/Renderer.test.js +538 -0
  601. package/dist/test/services/Resolver.test.d.ts +1 -0
  602. package/dist/test/services/Resolver.test.js +320 -0
  603. package/dist/test/services/Skill.test.d.ts +1 -0
  604. package/dist/test/services/Skill.test.js +261 -0
  605. package/dist/test/services/UpdateNotifier.spawn.test.d.ts +1 -0
  606. package/dist/test/services/UpdateNotifier.spawn.test.js +73 -0
  607. package/dist/test/services/UpdateNotifier.test.d.ts +1 -0
  608. package/dist/test/services/UpdateNotifier.test.js +912 -0
  609. package/dist/vendor/litexml/cli.mjs +2481 -2561
  610. package/dist/vendor/litexml/litexml-html-preview-client.css +178 -60
  611. package/dist/vendor/litexml/litexml-html-preview-client.js +9950 -8762
  612. package/dist/vendor/litexml/style.css +11 -7
  613. package/package.json +23 -21
  614. package/skills/commands-ai.md +45 -12
  615. package/skills/overview.md +1 -1
  616. package/skills/safety.md +1 -1
  617. 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-8sRFmq2X.mjs";
2
- import { a as $handleIndentAndOutdent, c as $isBlockFullySelected, h as selectionAlwaysOnDisplay, r as $getNearestBlockElementAncestorOrThrow, s as $insertNodeToNearestRoot } from "./LexicalUtils.node-CIgMS8cG.mjs";
3
- //#region ../../node_modules/.pnpm/@lexical+extension@0.48.0_typescript@6.0.3/node_modules/@lexical/extension/dist/LexicalExtension.prod.mjs
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 Tt(t) {
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 jt;
41
+ let Tt;
42
42
  let zt;
43
43
  function Ut(t) {
44
- const e = jt;
45
- jt = void 0;
44
+ const e = Tt;
45
+ Tt = void 0;
46
46
  try {
47
47
  return t();
48
48
  } finally {
49
- jt = e;
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 Jt = 0;
58
- function Ht(t) {
59
- if (void 0 === jt) return;
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 !== jt ? (e = {
61
+ return void 0 === e || e.t !== Tt ? (e = {
62
62
  i: 0,
63
63
  S: t,
64
- p: jt.s,
64
+ p: Tt.s,
65
65
  n: void 0,
66
- t: jt,
66
+ t: Tt,
67
67
  e: void 0,
68
68
  x: void 0,
69
69
  r: e
70
- }, void 0 !== jt.s && (jt.s.n = e), jt.s = e, t.n = e, 32 & jt.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 = jt.s, e.n = void 0, jt.s.n = e, jt.s = e), e) : 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 = Jt - 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;
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 = jt;
110
- jt = void 0;
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
- jt = n, $t();
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 (jt !== this) throw new Error("Out-of-order effect");
126
- te(this), jt = t, this.f &= -2, 8 & this.f && oe(this), $t();
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 = jt;
168
- jt = void 0;
167
+ const e = this.value, n = Tt;
168
+ Tt = void 0;
169
169
  try {
170
170
  t(e);
171
171
  } finally {
172
- jt = n;
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 = jt;
183
- jt = void 0;
182
+ const t = Tt;
183
+ Tt = void 0;
184
184
  try {
185
185
  return this.value;
186
186
  } finally {
187
- jt = t;
187
+ Tt = t;
188
188
  }
189
189
  }, Object.defineProperty(Xt.prototype, "value", {
190
190
  get() {
191
- const t = Ht(this);
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++, Jt++, Bt++;
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 === Jt) return !0;
216
- if (this.g = Jt, this.f |= 1, this.i > 0 && !qt(this)) return this.f &= -2, !0;
217
- const t = jt;
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), jt = 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 jt = t, te(this), this.f &= -2, !0;
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 = Ht(this);
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 = jt;
261
- return jt = this, se.bind(this, t);
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 ye = /* @__PURE__ */ createState("format", { parse: (t) => "number" == typeof t ? t : 0 });
356
- var xe = class extends DecoratorNode {
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: ye
365
+ stateConfig: xe
366
366
  }]
367
367
  });
368
368
  }
369
369
  getFormat(t) {
370
- return $getState(this, ye, t);
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, ye, t);
380
+ return $setState(this, xe, t);
381
381
  }
382
382
  toggleFormat(t) {
383
- const n = toggleTextFormatType(this.getFormat(), t, null);
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 xe;
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: () => [xe]
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.48.0+prod.esm";
451
+ Fe = "0.49.0+prod.esm";
452
452
  } catch (t) {}
453
453
  const Me = Fe ?? "\"<unknown>+source\"";
454
- const _e = /* @__PURE__ */ new Set([
454
+ const ke = /* @__PURE__ */ new Set([
455
455
  "__proto__",
456
456
  "constructor",
457
457
  "prototype"
458
458
  ]);
459
- function ke(t, e) {
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) !_e.has(t) && Object.prototype.hasOwnProperty.call(i, t) && (n[t] = ke(n[t], i[t]));
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 Te = 5;
473
- const je = 6;
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(Te)), this.extension.build && (n = this.extension.build(t, e.config, e.registerState));
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: Te,
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 !== Te && Ie(308, String(n.id), String(Te));
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: je });
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: Te });
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 !== je && Ie(310, String(e.id), String(je)), this.extension.afterRegistration && (n = this.extension.afterRegistration(t, e.config, e.registerState)), this.state = function(t) {
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 >= Te;
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 Je() {
631
+ function He() {
632
632
  const t = $getRoot();
633
633
  t.isEmpty() && t.append($createParagraphNode());
634
634
  }
635
- const He = /* @__PURE__ */ defineExtension({
635
+ const Je = /* @__PURE__ */ defineExtension({
636
636
  config: /* @__PURE__ */ safeCast({
637
637
  setOptions: Ze,
638
638
  updateOptions: Ze
639
639
  }),
640
- init: ({ $initialEditorState: t = Je }) => ({
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(He)];
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 && ke(s, 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 hn extends DecoratorNode {
879
- static getType() {
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()) $insertNodeToNearestRoot(pn());
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
- Tt(() => {
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 yn = /* @__PURE__ */ defineExtension({
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 xn = /* @__PURE__ */ defineExtension({
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, s = $getNearestBlockElementAncestorOrThrow(i.getNode());
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, void 0);
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($getSelection())) return !1;
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 _n = /* @__PURE__ */ defineExtension({
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 kn = /* @__PURE__ */ defineExtension({
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, xe as DecoratorTextNode, De as EditorStateExtension, vn as HorizontalRuleExtension, hn as HorizontalRuleNode, yn as IMEExtension, fn as INSERT_HORIZONTAL_RULE_COMMAND, He as InitialStateExtension, nn as LexicalBuilder, xn 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, _n as TabIndentationExtension, kn as WatchEditableExtension, be as applyFormatFromStyle, Se as applyFormatToDom, Tt 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 };
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-8sRFmq2X.mjs";
2
- //#region ../../node_modules/.pnpm/@lexical+headless@0.48.0_typescript@6.0.3/node_modules/@lexical/headless/dist/LexicalHeadless.dev.mjs
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-8sRFmq2X.mjs";
2
- //#region ../../node_modules/.pnpm/@lexical+headless@0.48.0_typescript@6.0.3/node_modules/@lexical/headless/dist/LexicalHeadless.prod.mjs
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-BUozzx4t.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-8sRFmq2X.mjs";
3
- import { a as $sliceSelectedTextNodeContent } from "./LexicalSelection.node-CGlJgUlZ.mjs";
4
- import { m as objectKlassEquals } from "./LexicalUtils.node-CIgMS8cG.mjs";
5
- //#region ../../node_modules/.pnpm/@lexical+html@0.48.0_typescript@6.0.3/node_modules/@lexical/html/dist/LexicalHtml.dev.mjs
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)) if (append) append(fragment);
2380
- else element.append(fragment);
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) if (isDocumentFragment(element)) element.replaceChildren(newElement);
2385
- else element.replaceWith(newElement);
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)) if (!hasBlockAncestorLexicalNodeForChildren) childLexicalNodes = wrapContinuousInlines(node, childLexicalNodes, $createParagraphNode);
2439
- else childLexicalNodes = wrapContinuousInlines(node, childLexicalNodes, () => {
2440
- const artificialNode = new ArtificialNode__DO_NOT_USE();
2441
- allArtificialNodes.push(artificialNode);
2442
- return artificialNode;
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.48.0_typescript@6.0.3/node_modules/@lexical/html/dist/LexicalHtml.node.mjs
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-D5EF5PGW.mjs") : import("./LexicalHtml.prod-D_FfkvVD.mjs"));
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-BUozzx4t.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-8sRFmq2X.mjs";
3
- import { a as $sliceSelectedTextNodeContent } from "./LexicalSelection.node-CGlJgUlZ.mjs";
4
- import { m as objectKlassEquals } from "./LexicalUtils.node-CIgMS8cG.mjs";
5
- //#region ../../node_modules/.pnpm/@lexical+html@0.48.0_typescript@6.0.3/node_modules/@lexical/html/dist/LexicalHtml.prod.mjs
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;