@notectl/core 2.3.1 → 2.3.3

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 (197) hide show
  1. package/README.md +1 -1
  2. package/THIRD-PARTY-NOTICES.md +129 -0
  3. package/dist/chunks/{AlignmentPlugin--xAFlRqE.mjs → AlignmentPlugin-C9Rr_R-g.mjs} +2 -2
  4. package/dist/chunks/{AlignmentPlugin--xAFlRqE.mjs.map → AlignmentPlugin-C9Rr_R-g.mjs.map} +1 -1
  5. package/dist/chunks/{AttributedMarkCommands-bagbH8Qt.mjs → AttributedMarkCommands-BCvmqeFZ.mjs} +2 -2
  6. package/dist/chunks/{AttributedMarkCommands-bagbH8Qt.mjs.map → AttributedMarkCommands-BCvmqeFZ.mjs.map} +1 -1
  7. package/dist/chunks/{BidiIsolationPlugin-DBXyXpgm.mjs → BidiIsolationPlugin-Cw2KMk-H.mjs} +2 -2
  8. package/dist/chunks/{BidiIsolationPlugin-DBXyXpgm.mjs.map → BidiIsolationPlugin-Cw2KMk-H.mjs.map} +1 -1
  9. package/dist/chunks/{BlockInsertion-CJusvrDL.mjs → BlockInsertion-CYH2gRkY.mjs} +2 -2
  10. package/dist/chunks/{BlockInsertion-CJusvrDL.mjs.map → BlockInsertion-CYH2gRkY.mjs.map} +1 -1
  11. package/dist/chunks/{BlockquotePlugin-Bz2glHwX.mjs → BlockquotePlugin-0bZSbkyo.mjs} +2 -2
  12. package/dist/chunks/{BlockquotePlugin-Bz2glHwX.mjs.map → BlockquotePlugin-0bZSbkyo.mjs.map} +1 -1
  13. package/dist/chunks/CaretNavigationPlugin-BPZ9b6XR.mjs +2 -0
  14. package/dist/chunks/CaretNavigationPlugin-BPZ9b6XR.mjs.map +1 -0
  15. package/dist/chunks/CodeBlockPlugin-BCJ3faXx.mjs +2 -0
  16. package/dist/chunks/{CodeBlockPlugin-C1hrdbSZ.mjs.map → CodeBlockPlugin-BCJ3faXx.mjs.map} +1 -1
  17. package/dist/chunks/{ColorGrid-C9RQoEWF.mjs → ColorGrid-DQEkJ-0y.mjs} +2 -2
  18. package/dist/chunks/{ColorGrid-C9RQoEWF.mjs.map → ColorGrid-DQEkJ-0y.mjs.map} +1 -1
  19. package/dist/chunks/ColorPickerPopup-CyF26zIU.mjs +2 -0
  20. package/dist/chunks/{ColorPickerPopup-DiA68Pzz.mjs.map → ColorPickerPopup-CyF26zIU.mjs.map} +1 -1
  21. package/dist/chunks/Commands-D5ND50PQ.mjs +2 -0
  22. package/dist/chunks/{Commands-1dFFldi7.mjs.map → Commands-D5ND50PQ.mjs.map} +1 -1
  23. package/dist/chunks/{Decoration-BpoEOANl.mjs → Decoration-BOP1TAUd.mjs} +2 -2
  24. package/dist/chunks/{Decoration-BpoEOANl.mjs.map → Decoration-BOP1TAUd.mjs.map} +1 -1
  25. package/dist/chunks/{FontPlugin-By-TGrQo.mjs → FontPlugin-D041tiLe.mjs} +2 -2
  26. package/dist/chunks/{FontPlugin-By-TGrQo.mjs.map → FontPlugin-D041tiLe.mjs.map} +1 -1
  27. package/dist/chunks/{FontSizePlugin-Dln-tYXV.mjs → FontSizePlugin-8CAvj1RD.mjs} +2 -2
  28. package/dist/chunks/{FontSizePlugin-Dln-tYXV.mjs.map → FontSizePlugin-8CAvj1RD.mjs.map} +1 -1
  29. package/dist/chunks/{FormulaPlugin-By1befrR.mjs → FormulaPlugin-DJ39BtqV.mjs} +2 -2
  30. package/dist/chunks/FormulaPlugin-DJ39BtqV.mjs.map +1 -0
  31. package/dist/chunks/GapCursorNavigation-DCWOmopl.mjs +2 -0
  32. package/dist/chunks/{GapCursorNavigation-BuXngVu-.mjs.map → GapCursorNavigation-DCWOmopl.mjs.map} +1 -1
  33. package/dist/chunks/GapCursorPlugin-2iR6506y.mjs +2 -0
  34. package/dist/chunks/{GapCursorPlugin-DAxVzXRs.mjs.map → GapCursorPlugin-2iR6506y.mjs.map} +1 -1
  35. package/dist/chunks/{HardBreakPlugin-DlbSlrdq.mjs → HardBreakPlugin-vniSvTgq.mjs} +2 -2
  36. package/dist/chunks/{HardBreakPlugin-DlbSlrdq.mjs.map → HardBreakPlugin-vniSvTgq.mjs.map} +1 -1
  37. package/dist/chunks/{HeadingPlugin-uMAjPOk5.mjs → HeadingPlugin-DUKsLuMd.mjs} +2 -2
  38. package/dist/chunks/{HeadingPlugin-uMAjPOk5.mjs.map → HeadingPlugin-DUKsLuMd.mjs.map} +1 -1
  39. package/dist/chunks/{HighlightPlugin-Bj7FPkIQ.mjs → HighlightPlugin-DRTAE1N5.mjs} +2 -2
  40. package/dist/chunks/{HighlightPlugin-Bj7FPkIQ.mjs.map → HighlightPlugin-DRTAE1N5.mjs.map} +1 -1
  41. package/dist/chunks/HorizontalRulePlugin-B9OvwrKB.mjs +2 -0
  42. package/dist/chunks/{HorizontalRulePlugin-DUVmTQpX.mjs.map → HorizontalRulePlugin-B9OvwrKB.mjs.map} +1 -1
  43. package/dist/chunks/{ImagePlugin-FToCOjd5.mjs → ImagePlugin-CwxTRr6d.mjs} +2 -2
  44. package/dist/chunks/{ImagePlugin-FToCOjd5.mjs.map → ImagePlugin-CwxTRr6d.mjs.map} +1 -1
  45. package/dist/chunks/{InlineCodePlugin-pISIoGQE.mjs → InlineCodePlugin-uxgMUX_E.mjs} +2 -2
  46. package/dist/chunks/{InlineCodePlugin-pISIoGQE.mjs.map → InlineCodePlugin-uxgMUX_E.mjs.map} +1 -1
  47. package/dist/chunks/{LinkPlugin-Ct5Z180S.mjs → LinkPlugin-CvWHbSkb.mjs} +2 -2
  48. package/dist/chunks/{LinkPlugin-Ct5Z180S.mjs.map → LinkPlugin-CvWHbSkb.mjs.map} +1 -1
  49. package/dist/chunks/{ListPlugin-DAY5ezNs.mjs → ListPlugin-BchSFWVn.mjs} +2 -2
  50. package/dist/chunks/{ListPlugin-DAY5ezNs.mjs.map → ListPlugin-BchSFWVn.mjs.map} +1 -1
  51. package/dist/chunks/{MarkdownHTMLRegistry-CKEx7LkR.mjs → MarkdownHTMLRegistry-Q7l0d6Ma.mjs} +2 -2
  52. package/dist/chunks/{MarkdownHTMLRegistry-CKEx7LkR.mjs.map → MarkdownHTMLRegistry-Q7l0d6Ma.mjs.map} +1 -1
  53. package/dist/chunks/{MarkdownParser-CWt3M6jR.mjs → MarkdownParser-Dp62mfUq.mjs} +2 -2
  54. package/dist/chunks/{MarkdownParser-CWt3M6jR.mjs.map → MarkdownParser-Dp62mfUq.mjs.map} +1 -1
  55. package/dist/chunks/{MarkdownSerializer-J-i28out.mjs → MarkdownSerializer-DBELFAeo.mjs} +2 -2
  56. package/dist/chunks/{MarkdownSerializer-J-i28out.mjs.map → MarkdownSerializer-DBELFAeo.mjs.map} +1 -1
  57. package/dist/chunks/MathFont-BS8IwYh2.mjs +2 -0
  58. package/dist/chunks/MathFont-BS8IwYh2.mjs.map +1 -0
  59. package/dist/chunks/NodeSelectionCommands-WH5snxr_.mjs +2 -0
  60. package/dist/chunks/{NodeSelectionCommands-1PjwUDTJ.mjs.map → NodeSelectionCommands-WH5snxr_.mjs.map} +1 -1
  61. package/dist/chunks/PluginHelpers-KDuTlmXm.mjs +2 -0
  62. package/dist/chunks/{PluginHelpers-Dx_0hfDe.mjs.map → PluginHelpers-KDuTlmXm.mjs.map} +1 -1
  63. package/dist/chunks/{PopupManager-CT-fMZJn.mjs → PopupManager-Cj86uDEB.mjs} +2 -2
  64. package/dist/chunks/{PopupManager-CT-fMZJn.mjs.map → PopupManager-Cj86uDEB.mjs.map} +1 -1
  65. package/dist/chunks/PrintPlugin-D2javl_d.mjs +2 -0
  66. package/dist/chunks/{PrintPlugin-7zz9mhhU.mjs.map → PrintPlugin-D2javl_d.mjs.map} +1 -1
  67. package/dist/chunks/SimpleMark-gTQaSJcO.mjs +2 -0
  68. package/dist/chunks/{SimpleMark-7CQcA4RK.mjs.map → SimpleMark-gTQaSJcO.mjs.map} +1 -1
  69. package/dist/chunks/SmartPastePlugin-BvJQ-fOz.mjs +2 -0
  70. package/dist/chunks/SmartPastePlugin-BvJQ-fOz.mjs.map +1 -0
  71. package/dist/chunks/StarterFonts-BDQPg-cu.mjs +2 -0
  72. package/dist/chunks/StarterFonts-BDQPg-cu.mjs.map +1 -0
  73. package/dist/chunks/{StrikethroughPlugin-C2oWvGc3.mjs → StrikethroughPlugin-BdrG1TTY.mjs} +2 -2
  74. package/dist/chunks/{StrikethroughPlugin-C2oWvGc3.mjs.map → StrikethroughPlugin-BdrG1TTY.mjs.map} +1 -1
  75. package/dist/chunks/{SuperSubPlugin-D1xaKrSu.mjs → SuperSubPlugin-DTZB0Y3D.mjs} +2 -2
  76. package/dist/chunks/{SuperSubPlugin-D1xaKrSu.mjs.map → SuperSubPlugin-DTZB0Y3D.mjs.map} +1 -1
  77. package/dist/chunks/{TablePlugin-PJe3zwr-.mjs → TablePlugin-CPvg9YZS.mjs} +2 -2
  78. package/dist/chunks/{TablePlugin-PJe3zwr-.mjs.map → TablePlugin-CPvg9YZS.mjs.map} +1 -1
  79. package/dist/chunks/{TextColorPlugin-CTd9tfeG.mjs → TextColorPlugin-Ckg3KWvb.mjs} +2 -2
  80. package/dist/chunks/{TextColorPlugin-CTd9tfeG.mjs.map → TextColorPlugin-Ckg3KWvb.mjs.map} +1 -1
  81. package/dist/chunks/{TextDirectionAutoPlugin-CPnKVVuI.mjs → TextDirectionAutoPlugin-DRGbgTlx.mjs} +2 -2
  82. package/dist/chunks/{TextDirectionAutoPlugin-CPnKVVuI.mjs.map → TextDirectionAutoPlugin-DRGbgTlx.mjs.map} +1 -1
  83. package/dist/chunks/TextDirectionPlugin-BCeYyJHo.mjs +2 -0
  84. package/dist/chunks/{TextDirectionPlugin-Bns_03vL.mjs.map → TextDirectionPlugin-BCeYyJHo.mjs.map} +1 -1
  85. package/dist/chunks/TextDirectionService-OFOU6r_s.mjs +2 -0
  86. package/dist/chunks/{TextDirectionService-BcX07mw2.mjs.map → TextDirectionService-OFOU6r_s.mjs.map} +1 -1
  87. package/dist/chunks/TextFormattingPlugin-BhRxSC8q.mjs +2 -0
  88. package/dist/chunks/{TextFormattingPlugin-DBVlePqj.mjs.map → TextFormattingPlugin-BhRxSC8q.mjs.map} +1 -1
  89. package/dist/chunks/ThemeEngine-BUVo_zaT.mjs +3 -0
  90. package/dist/chunks/ThemeEngine-BUVo_zaT.mjs.map +1 -0
  91. package/dist/chunks/ToolbarPlugin-dmTj1jIz.mjs +2 -0
  92. package/dist/chunks/{ToolbarPlugin-DtfGTO_V.mjs.map → ToolbarPlugin-dmTj1jIz.mjs.map} +1 -1
  93. package/dist/chunks/{VideoPlugin-BrR8g6Rz.mjs → VideoPlugin-BugkI7-m.mjs} +2 -2
  94. package/dist/chunks/{VideoPlugin-BrR8g6Rz.mjs.map → VideoPlugin-BugkI7-m.mjs.map} +1 -1
  95. package/dist/chunks/XmlSupport-DIXH5on9.mjs +2 -0
  96. package/dist/chunks/XmlSupport-DIXH5on9.mjs.map +1 -0
  97. package/dist/chunks/full-JM0-SwWy.mjs +2 -0
  98. package/dist/chunks/{full-DSWM4cKQ.mjs.map → full-JM0-SwWy.mjs.map} +1 -1
  99. package/dist/chunks/minimal-DSlR2A27.mjs +2 -0
  100. package/dist/chunks/{minimal-CFkkPXef.mjs.map → minimal-DSlR2A27.mjs.map} +1 -1
  101. package/dist/chunks/register-BjsdJ3Aq.mjs +2 -0
  102. package/dist/chunks/register-BjsdJ3Aq.mjs.map +1 -0
  103. package/dist/chunks/src-5GKFQ2mQ.mjs +2 -0
  104. package/dist/chunks/src-5GKFQ2mQ.mjs.map +1 -0
  105. package/dist/chunks/xml-BsV44TrJ.mjs +2 -0
  106. package/dist/chunks/xml-BsV44TrJ.mjs.map +1 -0
  107. package/dist/editor/NotectlEditor.d.ts.map +1 -1
  108. package/dist/fonts/math.d.ts +3 -0
  109. package/dist/fonts/math.d.ts.map +1 -0
  110. package/dist/fonts/math.mjs +1 -0
  111. package/dist/fonts/starter.d.ts +3 -0
  112. package/dist/fonts/starter.d.ts.map +1 -0
  113. package/dist/fonts/starter.mjs +1 -0
  114. package/dist/fonts.d.ts +4 -4
  115. package/dist/fonts.mjs +1 -1
  116. package/dist/full.d.ts +1 -1
  117. package/dist/full.mjs +1 -1
  118. package/dist/index.d.ts +2 -1
  119. package/dist/index.d.ts.map +1 -1
  120. package/dist/markdown.mjs +1 -1
  121. package/dist/notectl-core.mjs +1 -1
  122. package/dist/notectl-core.umd.js +1 -1
  123. package/dist/notectl-core.umd.js.map +1 -1
  124. package/dist/plugins/alignment.mjs +1 -1
  125. package/dist/plugins/bidi-isolation.mjs +1 -1
  126. package/dist/plugins/blockquote.mjs +1 -1
  127. package/dist/plugins/caret-navigation.mjs +1 -1
  128. package/dist/plugins/code-block/CodeBlockHighlighting.d.ts.map +1 -1
  129. package/dist/plugins/code-block.mjs +1 -1
  130. package/dist/plugins/font-size.mjs +1 -1
  131. package/dist/plugins/font.mjs +1 -1
  132. package/dist/plugins/formula/FormulaTypes.d.ts +1 -1
  133. package/dist/plugins/formula.mjs +1 -1
  134. package/dist/plugins/gap-cursor.mjs +1 -1
  135. package/dist/plugins/hard-break.mjs +1 -1
  136. package/dist/plugins/heading.mjs +1 -1
  137. package/dist/plugins/highlight.mjs +1 -1
  138. package/dist/plugins/horizontal-rule.mjs +1 -1
  139. package/dist/plugins/image.mjs +1 -1
  140. package/dist/plugins/inline-code.mjs +1 -1
  141. package/dist/plugins/language.mjs +1 -1
  142. package/dist/plugins/link.mjs +1 -1
  143. package/dist/plugins/list.mjs +1 -1
  144. package/dist/plugins/print.mjs +1 -1
  145. package/dist/plugins/shared.mjs +1 -1
  146. package/dist/plugins/smart-paste/SmartPastePlugin.d.ts.map +1 -1
  147. package/dist/plugins/smart-paste.mjs +1 -1
  148. package/dist/plugins/strikethrough.mjs +1 -1
  149. package/dist/plugins/super-sub.mjs +1 -1
  150. package/dist/plugins/table.mjs +1 -1
  151. package/dist/plugins/text-color.mjs +1 -1
  152. package/dist/plugins/text-direction-auto.mjs +1 -1
  153. package/dist/plugins/text-direction.mjs +1 -1
  154. package/dist/plugins/text-formatting.mjs +1 -1
  155. package/dist/plugins/toolbar.mjs +1 -1
  156. package/dist/plugins/video.mjs +1 -1
  157. package/dist/presets/full.d.ts +1 -1
  158. package/dist/presets/full.mjs +1 -1
  159. package/dist/presets/minimal.d.ts +1 -1
  160. package/dist/presets/minimal.mjs +1 -1
  161. package/dist/presets.d.ts +1 -1
  162. package/dist/presets.mjs +1 -1
  163. package/dist/register.d.ts +3 -0
  164. package/dist/register.d.ts.map +1 -0
  165. package/dist/register.mjs +1 -0
  166. package/package.json +24 -223
  167. package/dist/chunks/CaretNavigationPlugin-CNsT0eb4.mjs +0 -2
  168. package/dist/chunks/CaretNavigationPlugin-CNsT0eb4.mjs.map +0 -1
  169. package/dist/chunks/CodeBlockPlugin-C1hrdbSZ.mjs +0 -2
  170. package/dist/chunks/ColorPickerPopup-DiA68Pzz.mjs +0 -2
  171. package/dist/chunks/Commands-1dFFldi7.mjs +0 -2
  172. package/dist/chunks/FormulaPlugin-By1befrR.mjs.map +0 -1
  173. package/dist/chunks/GapCursorNavigation-BuXngVu-.mjs +0 -2
  174. package/dist/chunks/GapCursorPlugin-DAxVzXRs.mjs +0 -2
  175. package/dist/chunks/HorizontalRulePlugin-DUVmTQpX.mjs +0 -2
  176. package/dist/chunks/NodeSelectionCommands-1PjwUDTJ.mjs +0 -2
  177. package/dist/chunks/PluginHelpers-Dx_0hfDe.mjs +0 -2
  178. package/dist/chunks/PrintPlugin-7zz9mhhU.mjs +0 -2
  179. package/dist/chunks/PrintTypes-CxU69qu3.mjs +0 -3
  180. package/dist/chunks/PrintTypes-CxU69qu3.mjs.map +0 -1
  181. package/dist/chunks/SimpleMark-7CQcA4RK.mjs +0 -2
  182. package/dist/chunks/SmartPastePlugin-CYa_nD9v.mjs +0 -2
  183. package/dist/chunks/SmartPastePlugin-CYa_nD9v.mjs.map +0 -1
  184. package/dist/chunks/TextDirectionPlugin-Bns_03vL.mjs +0 -2
  185. package/dist/chunks/TextDirectionService-BcX07mw2.mjs +0 -2
  186. package/dist/chunks/TextFormattingPlugin-DBVlePqj.mjs +0 -2
  187. package/dist/chunks/ToolbarPlugin-DtfGTO_V.mjs +0 -2
  188. package/dist/chunks/XmlDetector-D7TQpw-e.mjs +0 -2
  189. package/dist/chunks/XmlDetector-D7TQpw-e.mjs.map +0 -1
  190. package/dist/chunks/XmlSupport-BYiRwlkK.mjs +0 -2
  191. package/dist/chunks/XmlSupport-BYiRwlkK.mjs.map +0 -1
  192. package/dist/chunks/fonts-DQC6Uj4r.mjs +0 -2
  193. package/dist/chunks/fonts-DQC6Uj4r.mjs.map +0 -1
  194. package/dist/chunks/full-DSWM4cKQ.mjs +0 -2
  195. package/dist/chunks/minimal-CFkkPXef.mjs +0 -2
  196. package/dist/chunks/src-DiAOfuOT.mjs +0 -2
  197. package/dist/chunks/src-DiAOfuOT.mjs.map +0 -1
@@ -1 +1 @@
1
- import{i as s,n,r as a,t as i}from"../chunks/AlignmentPlugin--xAFlRqE.mjs";export{i as ALIGNMENT_ICONS,a as ALIGNMENT_LOCALE_EN,n as AlignmentPlugin,s as loadAlignmentLocale};
1
+ import{i as s,n,r as a,t as i}from"../chunks/AlignmentPlugin-C9Rr_R-g.mjs";export{i as ALIGNMENT_ICONS,a as ALIGNMENT_LOCALE_EN,n as AlignmentPlugin,s as loadAlignmentLocale};
@@ -1 +1 @@
1
- import{n as s,r as i,t as o}from"../chunks/BidiIsolationPlugin-DBXyXpgm.mjs";export{s as BIDI_ISOLATION_LOCALE_EN,o as BidiIsolationPlugin,i as loadBidiIsolationLocale};
1
+ import{n as s,r as i,t as o}from"../chunks/BidiIsolationPlugin-Cw2KMk-H.mjs";export{s as BIDI_ISOLATION_LOCALE_EN,o as BidiIsolationPlugin,i as loadBidiIsolationLocale};
@@ -1 +1 @@
1
- import{n as o,r as s,t as r}from"../chunks/BlockquotePlugin-Bz2glHwX.mjs";export{o as BLOCKQUOTE_LOCALE_EN,r as BlockquotePlugin,s as loadBlockquoteLocale};
1
+ import{n as o,r as s,t as r}from"../chunks/BlockquotePlugin-0bZSbkyo.mjs";export{o as BLOCKQUOTE_LOCALE_EN,r as BlockquotePlugin,s as loadBlockquoteLocale};
@@ -1 +1 @@
1
- import{n as a,r,t as s}from"../chunks/CaretNavigationPlugin-CNsT0eb4.mjs";export{a as CARET_NAVIGATION_LOCALE_EN,s as CaretNavigationPlugin,r as loadCaretNavigationLocale};
1
+ import{n as a,r,t as s}from"../chunks/CaretNavigationPlugin-BPZ9b6XR.mjs";export{a as CARET_NAVIGATION_LOCALE_EN,s as CaretNavigationPlugin,r as loadCaretNavigationLocale};
@@ -1 +1 @@
1
- {"version":3,"file":"CodeBlockHighlighting.d.ts","sourceRoot":"","sources":["../../../src/plugins/code-block/CodeBlockHighlighting.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AASlD,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAChC,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,eAAe,EACvB,UAAU,EAAE,UAAU,GACpB,iBAAiB,CA4BnB"}
1
+ {"version":3,"file":"CodeBlockHighlighting.d.ts","sourceRoot":"","sources":["../../../src/plugins/code-block/CodeBlockHighlighting.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAGlD,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAkClD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAChC,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,eAAe,EACvB,UAAU,EAAE,UAAU,GACpB,iBAAiB,CAkCnB"}
@@ -1 +1 @@
1
- import{a as s,i as a,n as o,o as m,r,t as i}from"../chunks/CodeBlockPlugin-C1hrdbSZ.mjs";import{c as n,i as p,n as t,o as c}from"../chunks/XmlSupport-BYiRwlkK.mjs";export{o as CODE_BLOCK_LOCALE_EN,s as CODE_BLOCK_SERVICE_KEY,i as CodeBlockPlugin,n as JAVA_LANGUAGE,c as JSON_LANGUAGE,a as RegexTokenizer,m as SYNTAX_HIGHLIGHTER_SERVICE_KEY,p as TYPESCRIPT_LANGUAGE,t as XML_LANGUAGE,r as loadCodeBlockLocale};
1
+ import{a as s,i as a,n as o,o as m,r,t as i}from"../chunks/CodeBlockPlugin-BCJ3faXx.mjs";import{i as n,n as t,r as c,t as k}from"../chunks/xml-BsV44TrJ.mjs";export{o as CODE_BLOCK_LOCALE_EN,s as CODE_BLOCK_SERVICE_KEY,i as CodeBlockPlugin,n as JAVA_LANGUAGE,c as JSON_LANGUAGE,a as RegexTokenizer,m as SYNTAX_HIGHLIGHTER_SERVICE_KEY,t as TYPESCRIPT_LANGUAGE,k as XML_LANGUAGE,r as loadCodeBlockLocale};
@@ -1 +1 @@
1
- import{n as s,r as n,t as o}from"../chunks/FontSizePlugin-Dln-tYXV.mjs";export{s as FONT_SIZE_LOCALE_EN,o as FontSizePlugin,n as loadFontSizeLocale};
1
+ import{n as s,r as n,t as o}from"../chunks/FontSizePlugin-8CAvj1RD.mjs";export{s as FONT_SIZE_LOCALE_EN,o as FontSizePlugin,n as loadFontSizeLocale};
@@ -1 +1 @@
1
- import{n as s,r as n,t as o}from"../chunks/FontPlugin-By-TGrQo.mjs";export{s as FONT_LOCALE_EN,o as FontPlugin,n as loadFontLocale};
1
+ import{n as s,r as n,t as o}from"../chunks/FontPlugin-D041tiLe.mjs";export{s as FONT_LOCALE_EN,o as FontPlugin,n as loadFontLocale};
@@ -58,7 +58,7 @@ export interface FormulaPluginConfig {
58
58
  /**
59
59
  * Optional OpenType MATH font, registered as `@font-face` for correct
60
60
  * stretchy rendering in Chromium. Import `NOTECTL_MATH_FONT` from
61
- * `@notectl/core/fonts`. Opt-in to keep the font payload out of the bundle.
61
+ * `@notectl/core/fonts/math`. Opt-in to keep the font payload out of the bundle.
62
62
  */
63
63
  readonly mathFont?: FontDefinition;
64
64
  }
@@ -1 +1 @@
1
- import{a as s,c as a,i as o,n as r,o as m,r as i,s as n,t}from"../chunks/FormulaPlugin-By1befrR.mjs";export{n as DEFAULT_FORMULA_KEYMAP,r as FORMULA_LOCALE_EN,t as FormulaPlugin,s as MATHML_ATTRS,m as MATHML_TAGS,a as buildMathML,o as latexToMathML,i as loadFormulaLocale};
1
+ import{a as s,c as a,i as o,n as r,o as m,r as i,s as n,t}from"../chunks/FormulaPlugin-DJ39BtqV.mjs";export{n as DEFAULT_FORMULA_KEYMAP,r as FORMULA_LOCALE_EN,t as FormulaPlugin,s as MATHML_ATTRS,m as MATHML_TAGS,a as buildMathML,o as latexToMathML,i as loadFormulaLocale};
@@ -1 +1 @@
1
- import{t as r}from"../chunks/GapCursorPlugin-DAxVzXRs.mjs";export{r as GapCursorPlugin};
1
+ import{t as r}from"../chunks/GapCursorPlugin-2iR6506y.mjs";export{r as GapCursorPlugin};
@@ -1 +1 @@
1
- import{t as r}from"../chunks/HardBreakPlugin-DlbSlrdq.mjs";export{r as HardBreakPlugin};
1
+ import{t as r}from"../chunks/HardBreakPlugin-vniSvTgq.mjs";export{r as HardBreakPlugin};
@@ -1 +1 @@
1
- import{t as s}from"../chunks/BlockTypePickerRegistry-BTET9jM-.mjs";import{n as r,r as i,t as m}from"../chunks/HeadingPlugin-uMAjPOk5.mjs";export{s as BlockTypePickerRegistry,r as HEADING_LOCALE_EN,m as HeadingPlugin,i as loadHeadingLocale};
1
+ import{t as r}from"../chunks/BlockTypePickerRegistry-BTET9jM-.mjs";import{n as s,r as i,t as m}from"../chunks/HeadingPlugin-DUKsLuMd.mjs";export{r as BlockTypePickerRegistry,s as HEADING_LOCALE_EN,m as HeadingPlugin,i as loadHeadingLocale};
@@ -1 +1 @@
1
- import{n as s,r as i,t as r}from"../chunks/HighlightPlugin-Bj7FPkIQ.mjs";export{s as HIGHLIGHT_LOCALE_EN,r as HighlightPlugin,i as loadHighlightLocale};
1
+ import{n as s,r as i,t as r}from"../chunks/HighlightPlugin-DRTAE1N5.mjs";export{s as HIGHLIGHT_LOCALE_EN,r as HighlightPlugin,i as loadHighlightLocale};
@@ -1 +1 @@
1
- import{n as o,r,t as s}from"../chunks/HorizontalRulePlugin-DUVmTQpX.mjs";export{o as HORIZONTAL_RULE_LOCALE_EN,s as HorizontalRulePlugin,r as loadHorizontalRuleLocale};
1
+ import{n as o,r,t as s}from"../chunks/HorizontalRulePlugin-B9OvwrKB.mjs";export{o as HORIZONTAL_RULE_LOCALE_EN,s as HorizontalRulePlugin,r as loadHorizontalRuleLocale};
@@ -1 +1 @@
1
- import{a,i as s,n as m,r,t as i}from"../chunks/ImagePlugin-FToCOjd5.mjs";export{m as DEFAULT_IMAGE_KEYMAP,s as IMAGE_LOCALE_EN,r as IMAGE_UPLOAD_SERVICE,i as ImagePlugin,a as loadImageLocale};
1
+ import{a,i as s,n as m,r,t as i}from"../chunks/ImagePlugin-CwxTRr6d.mjs";export{m as DEFAULT_IMAGE_KEYMAP,s as IMAGE_LOCALE_EN,r as IMAGE_UPLOAD_SERVICE,i as ImagePlugin,a as loadImageLocale};
@@ -1 +1 @@
1
- import{n,r as s,t as o}from"../chunks/InlineCodePlugin-pISIoGQE.mjs";export{n as INLINE_CODE_LOCALE_EN,o as InlineCodePlugin,s as loadInlineCodeLocale};
1
+ import{n,r as s,t as o}from"../chunks/InlineCodePlugin-uxgMUX_E.mjs";export{n as INLINE_CODE_LOCALE_EN,o as InlineCodePlugin,s as loadInlineCodeLocale};
@@ -1 +1 @@
1
- import{l as s}from"../chunks/XmlDetector-D7TQpw-e.mjs";import{a as m,r,s as o,t}from"../chunks/XmlSupport-BYiRwlkK.mjs";export{o as JAVA_SUPPORT,m as JSON_SUPPORT,s as LANGUAGE_REGISTRY_SERVICE_KEY,r as TYPESCRIPT_SUPPORT,t as XML_SUPPORT};
1
+ import{o as s}from"../chunks/xml-BsV44TrJ.mjs";import{i as m,o,r,t as a}from"../chunks/XmlSupport-DIXH5on9.mjs";export{o as JAVA_SUPPORT,m as JSON_SUPPORT,s as LANGUAGE_REGISTRY_SERVICE_KEY,r as TYPESCRIPT_SUPPORT,a as XML_SUPPORT};
@@ -1 +1 @@
1
- import{n as s,r as n,t as r}from"../chunks/LinkPlugin-Ct5Z180S.mjs";export{s as LINK_LOCALE_EN,r as LinkPlugin,n as loadLinkLocale};
1
+ import{n as s,r as n,t as r}from"../chunks/LinkPlugin-CvWHbSkb.mjs";export{s as LINK_LOCALE_EN,r as LinkPlugin,n as loadLinkLocale};
@@ -1 +1 @@
1
- import{n as s,r,t}from"../chunks/ListPlugin-DAY5ezNs.mjs";export{s as LIST_LOCALE_EN,t as ListPlugin,r as loadListLocale};
1
+ import{n as s,r,t}from"../chunks/ListPlugin-BchSFWVn.mjs";export{s as LIST_LOCALE_EN,t as ListPlugin,r as loadListLocale};
@@ -1 +1 @@
1
- import{n as s,r,t as n}from"../chunks/PrintTypes-CxU69qu3.mjs";import{n as t,r as a,t as m}from"../chunks/PrintPlugin-7zz9mhhU.mjs";export{n as AFTER_PRINT,s as BEFORE_PRINT,t as PRINT_LOCALE_EN,r as PRINT_SERVICE_KEY,m as PrintPlugin,a as loadPrintLocale};
1
+ import{a as s,i as r,r as a}from"../chunks/ThemeEngine-BUVo_zaT.mjs";import{n as m,r as n,t as i}from"../chunks/PrintPlugin-D2javl_d.mjs";export{a as AFTER_PRINT,r as BEFORE_PRINT,m as PRINT_LOCALE_EN,s as PRINT_SERVICE_KEY,i as PrintPlugin,n as loadPrintLocale};
@@ -1 +1 @@
1
- import{c as s,i as a,r,t as o}from"../chunks/PluginHelpers-Dx_0hfDe.mjs";import{t as m}from"../chunks/MarkInputRule-Bdi8KPus.mjs";import{t}from"../chunks/ShortcutFormatting-TwiufqeV.mjs";import{n,r as i,t as p}from"../chunks/KeyboardNav-D0my3wuy.mjs";import{i as u,t as c}from"../chunks/PopupPositioning-BFh6Ed1D.mjs";import{n as k,t as h}from"../chunks/PopupManager-CT-fMZJn.mjs";import{a as f,i as j,n as e,r as P,t as l}from"../chunks/ColorValidation-DAijTjG9.mjs";import{n as d,t as g}from"../chunks/XmlPatterns-RN32-0ob.mjs";import{n as C,r as y,t as b}from"../chunks/PopupKeyboardPatterns-tUrT9TyV.mjs";import{a as F,i as K,n as M,r as R,t as S}from"../chunks/ColorPickerPopup-DiA68Pzz.mjs";import{n as v,r as w,t as x}from"../chunks/ColorGrid-C9RQoEWF.mjs";export{h as PopupManager,k as PopupServiceKey,g as XML_ATTRS,d as XML_TAG_NAME,c as appendToRoot,M as applyColorMark,p as applyRovingTabindex,b as attachGridKeyboard,C as attachListboxKeyboard,y as attachMenuKeyboard,o as capitalize,m as createMarkInputRule,n as findNextDropdownItem,t as formatShortcut,R as getActiveColor,v as getColorName,r as getSelectedBlock,a as getSelectedBlockId,K as isColorMarkActive,w as isLightColor,l as isValidCSSColor,e as isValidCSSFontFamily,P as isValidCSSFontSize,j as isValidHexColor,s as loadLocaleModule,i as navigateGrid,u as positionPopup,F as removeColorMark,x as renderColorGrid,S as renderColorPickerPopup,f as resolveColors};
1
+ import{c as s,i as a,r,t as o}from"../chunks/PluginHelpers-KDuTlmXm.mjs";import{t as m}from"../chunks/MarkInputRule-Bdi8KPus.mjs";import{t}from"../chunks/ShortcutFormatting-TwiufqeV.mjs";import{n,r as i,t as p}from"../chunks/KeyboardNav-D0my3wuy.mjs";import{i as u,t as c}from"../chunks/PopupPositioning-BFh6Ed1D.mjs";import{n as k,t as h}from"../chunks/PopupManager-Cj86uDEB.mjs";import{a as f,i as j,n as e,r as P,t as l}from"../chunks/ColorValidation-DAijTjG9.mjs";import{n as d,t as g}from"../chunks/XmlPatterns-RN32-0ob.mjs";import{n as C,r as y,t as b}from"../chunks/PopupKeyboardPatterns-tUrT9TyV.mjs";import{a as G,i as K,n as M,r as R,t as S}from"../chunks/ColorPickerPopup-CyF26zIU.mjs";import{n as v,r as x,t as z}from"../chunks/ColorGrid-DQEkJ-0y.mjs";export{h as PopupManager,k as PopupServiceKey,g as XML_ATTRS,d as XML_TAG_NAME,c as appendToRoot,M as applyColorMark,p as applyRovingTabindex,b as attachGridKeyboard,C as attachListboxKeyboard,y as attachMenuKeyboard,o as capitalize,m as createMarkInputRule,n as findNextDropdownItem,t as formatShortcut,R as getActiveColor,v as getColorName,r as getSelectedBlock,a as getSelectedBlockId,K as isColorMarkActive,x as isLightColor,l as isValidCSSColor,e as isValidCSSFontFamily,P as isValidCSSFontSize,j as isValidHexColor,s as loadLocaleModule,i as navigateGrid,u as positionPopup,G as removeColorMark,z as renderColorGrid,S as renderColorPickerPopup,f as resolveColors};
@@ -1 +1 @@
1
- {"version":3,"file":"SmartPastePlugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/smart-paste/SmartPastePlugin.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA2BH,OAAO,KAAK,EAAoB,MAAM,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAS5E,OAAO,KAAK,EAIX,gBAAgB,EAChB,MAAM,sBAAsB,CAAC;AAG9B,qBAAa,gBAAiB,YAAW,MAAM;IAC9C,QAAQ,CAAC,EAAE,iBAAiB;IAC5B,QAAQ,CAAC,IAAI,iBAAiB;IAC9B,QAAQ,CAAC,YAAY,0BAA2B;IAEhD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmB;IAC1C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAyB;IACnD,OAAO,CAAC,OAAO,CAA8B;IAC7C,OAAO,CAAC,MAAM,CAA2C;gBAE7C,MAAM,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC;IAIxC,IAAI,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAsCjD,OAAO,IAAI,IAAI;IAOf,OAAO,CAAC,QAAQ,CAAC,WAAW,CAiB1B;IAEF,OAAO,CAAC,mBAAmB;IAU3B,OAAO,CAAC,qBAAqB;IAW7B,OAAO,CAAC,yBAAyB;IA2CjC,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,0BAA0B;IAwDlC,OAAO,CAAC,mBAAmB;IAS3B,OAAO,CAAC,mBAAmB;IAQ3B,OAAO,CAAC,oBAAoB;CAkB5B"}
1
+ {"version":3,"file":"SmartPastePlugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/smart-paste/SmartPastePlugin.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA2BH,OAAO,KAAK,EAAoB,MAAM,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAe5E,OAAO,KAAK,EAIX,gBAAgB,EAChB,MAAM,sBAAsB,CAAC;AAU9B,qBAAa,gBAAiB,YAAW,MAAM;IAC9C,QAAQ,CAAC,EAAE,iBAAiB;IAC5B,QAAQ,CAAC,IAAI,iBAAiB;IAC9B,QAAQ,CAAC,YAAY,0BAA2B;IAEhD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmB;IAC1C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAyB;IACnD,OAAO,CAAC,OAAO,CAA8B;IAC7C,OAAO,CAAC,MAAM,CAA2C;gBAE7C,MAAM,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC;IAIxC,IAAI,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IA2CjD,OAAO,IAAI,IAAI;IAOf,OAAO,CAAC,QAAQ,CAAC,WAAW,CAiB1B;IAEF,OAAO,CAAC,mBAAmB;IAU3B,OAAO,CAAC,qBAAqB;IAW7B,OAAO,CAAC,yBAAyB;IA2CjC,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,0BAA0B;IAwDlC,OAAO,CAAC,mBAAmB;IAS3B,OAAO,CAAC,mBAAmB;IAQ3B,OAAO,CAAC,oBAAoB;CAkB5B"}
@@ -1 +1 @@
1
- import{a as s,i as a,n as r,o as t,r as m,s as o,t as i}from"../chunks/XmlDetector-D7TQpw-e.mjs";import{i as n,n as e,r as c,t as p}from"../chunks/SmartPastePlugin-CYa_nD9v.mjs";export{s as DEFAULT_RELEVANCE_WEIGHTS,r as JsonDetector,m as LexerDetector,t as MAX_RELEVANCE_WEIGHT,c as SMART_PASTE_LOCALE_EN,e as SMART_PASTE_SERVICE_KEY,p as SmartPastePlugin,i as XmlDetector,o as computeTokenStats,n as loadSmartPasteLocale,a as scoreFromStats};
1
+ import{a as s,c as a,d as m,l as r,n as t,s as o,u as n}from"../chunks/XmlSupport-DIXH5on9.mjs";import{i as p,n as u,r as i,t as c}from"../chunks/SmartPastePlugin-BvJQ-fOz.mjs";export{r as DEFAULT_RELEVANCE_WEIGHTS,s as JsonDetector,o as LexerDetector,n as MAX_RELEVANCE_WEIGHT,i as SMART_PASTE_LOCALE_EN,u as SMART_PASTE_SERVICE_KEY,c as SmartPastePlugin,t as XmlDetector,m as computeTokenStats,p as loadSmartPasteLocale,a as scoreFromStats};
@@ -1 +1 @@
1
- import{n as r,r as s,t}from"../chunks/StrikethroughPlugin-C2oWvGc3.mjs";export{r as STRIKETHROUGH_LOCALE_EN,t as StrikethroughPlugin,s as loadStrikethroughLocale};
1
+ import{n as r,r as s,t}from"../chunks/StrikethroughPlugin-BdrG1TTY.mjs";export{r as STRIKETHROUGH_LOCALE_EN,t as StrikethroughPlugin,s as loadStrikethroughLocale};
@@ -1 +1 @@
1
- import{n as r,r as s,t as u}from"../chunks/SuperSubPlugin-D1xaKrSu.mjs";export{r as SUPER_SUB_LOCALE_EN,u as SuperSubPlugin,s as loadSuperSubLocale};
1
+ import{n as r,r as s,t as u}from"../chunks/SuperSubPlugin-DTZB0Y3D.mjs";export{r as SUPER_SUB_LOCALE_EN,u as SuperSubPlugin,s as loadSuperSubLocale};
@@ -1 +1 @@
1
- import{a,i as s,n as o,o as r,r as i,t as m}from"../chunks/TablePlugin-PJe3zwr-.mjs";export{o as DEFAULT_TABLE_SIZING_CONFIG,a as TABLE_LOCALE_EN,m as TablePlugin,s as TableSelectionServiceKey,i as TableSizingServiceKey,r as loadTableLocale};
1
+ import{a,i as s,n as o,o as r,r as i,t as m}from"../chunks/TablePlugin-CPvg9YZS.mjs";export{o as DEFAULT_TABLE_SIZING_CONFIG,a as TABLE_LOCALE_EN,m as TablePlugin,s as TableSelectionServiceKey,i as TableSizingServiceKey,r as loadTableLocale};
@@ -1 +1 @@
1
- import{n as o,r,t as s}from"../chunks/TextColorPlugin-CTd9tfeG.mjs";export{o as TEXT_COLOR_LOCALE_EN,s as TextColorPlugin,r as loadTextColorLocale};
1
+ import{n as o,r,t as s}from"../chunks/TextColorPlugin-Ckg3KWvb.mjs";export{o as TEXT_COLOR_LOCALE_EN,s as TextColorPlugin,r as loadTextColorLocale};
@@ -1 +1 @@
1
- import{t}from"../chunks/TextDirectionAutoPlugin-CPnKVVuI.mjs";export{t as TextDirectionAutoPlugin};
1
+ import{t}from"../chunks/TextDirectionAutoPlugin-DRGbgTlx.mjs";export{t as TextDirectionAutoPlugin};
@@ -1 +1 @@
1
- import{t as s}from"../chunks/DirectionIcons-Bbawl9ei.mjs";import{t}from"../chunks/TextDirectionService-BcX07mw2.mjs";import{n as r,r as i,t as o}from"../chunks/DirectionDetection-CDVSEWQ6.mjs";import{n,r as m,t as c}from"../chunks/TextDirectionPlugin-Bns_03vL.mjs";export{s as DIRECTION_ICONS,n as TEXT_DIRECTION_LOCALE_EN,t as TEXT_DIRECTION_SERVICE_KEY,c as TextDirectionPlugin,o as detectTextDirection,r as findSiblingDirection,i as getBlockDir,m as loadTextDirectionLocale};
1
+ import{t as s}from"../chunks/DirectionIcons-Bbawl9ei.mjs";import{t}from"../chunks/TextDirectionService-OFOU6r_s.mjs";import{n as r,r as i,t as o}from"../chunks/DirectionDetection-CDVSEWQ6.mjs";import{n,r as c,t as e}from"../chunks/TextDirectionPlugin-BCeYyJHo.mjs";export{s as DIRECTION_ICONS,n as TEXT_DIRECTION_LOCALE_EN,t as TEXT_DIRECTION_SERVICE_KEY,e as TextDirectionPlugin,o as detectTextDirection,r as findSiblingDirection,i as getBlockDir,c as loadTextDirectionLocale};
@@ -1 +1 @@
1
- import{n as t,r,t as s}from"../chunks/TextFormattingPlugin-DBVlePqj.mjs";export{t as TEXT_FORMATTING_LOCALE_EN,s as TextFormattingPlugin,r as loadTextFormattingLocale};
1
+ import{n as t,r,t as s}from"../chunks/TextFormattingPlugin-BhRxSC8q.mjs";export{t as TEXT_FORMATTING_LOCALE_EN,s as TextFormattingPlugin,r as loadTextFormattingLocale};
@@ -1 +1 @@
1
- import{a,i as s,n as o,o as r,r as t,t as i}from"../chunks/ToolbarPlugin-DtfGTO_V.mjs";export{s as TOOLBAR_LOCALE_EN,t as ToolbarOverflowBehavior,i as ToolbarPlugin,r as ToolbarRegistry,o as ToolbarServiceKey,a as loadToolbarLocale};
1
+ import{a as s,i as a,n as o,o as r,r as i,t as m}from"../chunks/ToolbarPlugin-dmTj1jIz.mjs";export{a as TOOLBAR_LOCALE_EN,i as ToolbarOverflowBehavior,m as ToolbarPlugin,r as ToolbarRegistry,o as ToolbarServiceKey,s as loadToolbarLocale};
@@ -1 +1 @@
1
- import{a as s,i as a,n as o,o as i,r,s as e,t as m}from"../chunks/VideoPlugin-BrR8g6Rz.mjs";export{a as DEFAULT_VIDEO_CONFIG,s as DEFAULT_VIDEO_KEYMAP,i as DEFAULT_VIDEO_PROVIDERS,o as VIDEO_LOCALE_EN,m as VideoPlugin,r as loadVideoLocale,e as parseVideoUrl};
1
+ import{a as s,i as a,n as o,o as i,r,s as m,t as n}from"../chunks/VideoPlugin-BugkI7-m.mjs";export{a as DEFAULT_VIDEO_CONFIG,s as DEFAULT_VIDEO_KEYMAP,i as DEFAULT_VIDEO_PROVIDERS,o as VIDEO_LOCALE_EN,n as VideoPlugin,r as loadVideoLocale,m as parseVideoUrl};
@@ -7,7 +7,7 @@
7
7
  * @example
8
8
  * ```ts
9
9
  * import { createFullPreset } from '@notectl/core/presets/full';
10
- * import { STARTER_FONTS } from '@notectl/core/fonts';
10
+ * import { STARTER_FONTS } from '@notectl/core/fonts/starter';
11
11
  *
12
12
  * const preset = createFullPreset({ font: { fonts: STARTER_FONTS } });
13
13
  * ```
@@ -1 +1 @@
1
- import{t as f}from"../chunks/full-DSWM4cKQ.mjs";export{f as createFullPreset};
1
+ import{t as m}from"../chunks/full-JM0-SwWy.mjs";export{m as createFullPreset};
@@ -7,7 +7,7 @@
7
7
  * @example
8
8
  * ```ts
9
9
  * import { createMinimalPreset } from '@notectl/core/presets/minimal';
10
- * import { STARTER_FONTS } from '@notectl/core/fonts';
10
+ * import { STARTER_FONTS } from '@notectl/core/fonts/starter';
11
11
  *
12
12
  * const preset = createMinimalPreset({ font: { fonts: STARTER_FONTS } });
13
13
  * ```
@@ -1 +1 @@
1
- import{t as m}from"../chunks/minimal-CFkkPXef.mjs";export{m as createMinimalPreset};
1
+ import{t as m}from"../chunks/minimal-DSlR2A27.mjs";export{m as createMinimalPreset};
package/dist/presets.d.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  * @example
11
11
  * ```ts
12
12
  * import { createFullPreset } from '@notectl/core/presets';
13
- * import { STARTER_FONTS } from '@notectl/core/fonts';
13
+ * import { STARTER_FONTS } from '@notectl/core/fonts/starter';
14
14
  *
15
15
  * const preset = createFullPreset({ font: { fonts: STARTER_FONTS } });
16
16
  * ```
package/dist/presets.mjs CHANGED
@@ -1 +1 @@
1
- import{t as m}from"./chunks/minimal-CFkkPXef.mjs";import{t as s}from"./chunks/full-DSWM4cKQ.mjs";export{s as createFullPreset,m as createMinimalPreset};
1
+ import{t as m}from"./chunks/minimal-DSlR2A27.mjs";import{t as s}from"./chunks/full-JM0-SwWy.mjs";export{s as createFullPreset,m as createMinimalPreset};
@@ -0,0 +1,3 @@
1
+ /** Registers the `<notectl-editor>` custom element when a browser registry is available. */
2
+ export declare function registerNotectlEditor(): void;
3
+ //# sourceMappingURL=register.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../src/register.ts"],"names":[],"mappings":"AAEA,4FAA4F;AAC5F,wBAAgB,qBAAqB,IAAI,IAAI,CAI5C"}
@@ -0,0 +1 @@
1
+ import{t as r}from"./chunks/register-BjsdJ3Aq.mjs";export{r as registerNotectlEditor};
package/package.json CHANGED
@@ -1,10 +1,16 @@
1
1
  {
2
2
  "name": "@notectl/core",
3
- "version": "2.3.1",
3
+ "version": "2.3.3",
4
4
  "description": "A modern and accessible rich text editor shipped as a single Web Component. Immutable state, transaction-based architecture, and a plugin system that powers every feature.",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
- "sideEffects": ["./dist/full.mjs", "./dist/notectl-core.umd.js"],
7
+ "sideEffects": [
8
+ "./dist/notectl-core.mjs",
9
+ "./dist/register.mjs",
10
+ "./dist/chunks/*register*.mjs",
11
+ "./dist/full.mjs",
12
+ "./dist/notectl-core.umd.js"
13
+ ],
8
14
  "main": "./dist/notectl-core.umd.js",
9
15
  "module": "./dist/notectl-core.mjs",
10
16
  "types": "./dist/index.d.ts",
@@ -13,6 +19,10 @@
13
19
  "types": "./dist/index.d.ts",
14
20
  "import": "./dist/notectl-core.mjs"
15
21
  },
22
+ "./register": {
23
+ "types": "./dist/register.d.ts",
24
+ "import": "./dist/register.mjs"
25
+ },
16
26
  "./full": {
17
27
  "types": "./dist/full.d.ts",
18
28
  "import": "./dist/full.mjs",
@@ -42,6 +52,14 @@
42
52
  "types": "./dist/fonts.d.ts",
43
53
  "import": "./dist/fonts.mjs"
44
54
  },
55
+ "./fonts/starter": {
56
+ "types": "./dist/fonts/starter.d.ts",
57
+ "import": "./dist/fonts/starter.mjs"
58
+ },
59
+ "./fonts/math": {
60
+ "types": "./dist/fonts/math.d.ts",
61
+ "import": "./dist/fonts/math.mjs"
62
+ },
45
63
  "./plugins/text-formatting": {
46
64
  "types": "./dist/plugins/text-formatting/index.d.ts",
47
65
  "import": "./dist/plugins/text-formatting.mjs"
@@ -164,7 +182,7 @@
164
182
  }
165
183
  },
166
184
  "customElements": "custom-elements.json",
167
- "files": ["dist", "README.md", "LICENSE", "custom-elements.json"],
185
+ "files": ["dist", "README.md", "LICENSE", "THIRD-PARTY-NOTICES.md", "custom-elements.json"],
168
186
  "keywords": [
169
187
  "rich-text-editor",
170
188
  "web-component",
@@ -193,234 +211,17 @@
193
211
  "test:watch": "vitest",
194
212
  "typecheck": "tsc --noEmit",
195
213
  "dev": "vite build --watch",
196
- "size": "size-limit",
197
- "size:check": "size-limit --limit",
214
+ "size": "node scripts/check-bundle-size.mjs",
215
+ "size:check": "node scripts/check-bundle-size.mjs",
198
216
  "build:analyze": "ANALYZE=true vite build"
199
217
  },
200
- "size-limit": [
201
- {
202
- "name": "Core (main entry)",
203
- "path": "dist/notectl-core.mjs",
204
- "limit": "76 KB",
205
- "ignore": ["dompurify", "./MarkdownSerializer-*", "./MarkdownParser-*"],
206
- "gzip": true
207
- },
208
- {
209
- "name": "Presets (minimal)",
210
- "path": "dist/presets/minimal.mjs",
211
- "limit": "8 KB",
212
- "gzip": true
213
- },
214
- {
215
- "name": "Presets (full)",
216
- "path": "dist/presets/full.mjs",
217
- "limit": "92 KB",
218
- "gzip": true
219
- },
220
- {
221
- "name": "HTML (serializer/parser)",
222
- "path": "dist/html.mjs",
223
- "limit": "15 KB",
224
- "ignore": ["dompurify"],
225
- "gzip": true
226
- },
227
- {
228
- "name": "Markdown (serializer/parser)",
229
- "path": "dist/markdown.mjs",
230
- "limit": "18 KB",
231
- "ignore": ["dompurify"],
232
- "gzip": true
233
- },
234
- {
235
- "name": "Fonts (standalone)",
236
- "path": "dist/fonts.mjs",
237
- "limit": "300 KB",
238
- "gzip": true
239
- },
240
- {
241
- "name": "Plugin: Table",
242
- "path": "dist/plugins/table.mjs",
243
- "limit": "22 KB",
244
- "gzip": true
245
- },
246
- {
247
- "name": "Plugin: Text Formatting",
248
- "path": "dist/plugins/text-formatting.mjs",
249
- "limit": "10 KB",
250
- "gzip": true
251
- },
252
- {
253
- "name": "Plugin: Heading",
254
- "path": "dist/plugins/heading.mjs",
255
- "limit": "10 KB",
256
- "gzip": true
257
- },
258
- {
259
- "name": "Plugin: Toolbar",
260
- "path": "dist/plugins/toolbar.mjs",
261
- "limit": "15 KB",
262
- "gzip": true
263
- },
264
- {
265
- "name": "Plugin: Shared",
266
- "path": "dist/plugins/shared.mjs",
267
- "limit": "15 KB",
268
- "gzip": true
269
- },
270
- {
271
- "name": "Plugin: Image",
272
- "path": "dist/plugins/image.mjs",
273
- "limit": "15 KB",
274
- "gzip": true
275
- },
276
- {
277
- "name": "Plugin: Video",
278
- "path": "dist/plugins/video.mjs",
279
- "limit": "25 KB",
280
- "ignore": ["dompurify"],
281
- "gzip": true
282
- },
283
- {
284
- "name": "Plugin: Code Block",
285
- "path": "dist/plugins/code-block.mjs",
286
- "limit": "18 KB",
287
- "gzip": true
288
- },
289
- {
290
- "name": "Plugin: Smart Paste",
291
- "path": "dist/plugins/smart-paste.mjs",
292
- "limit": "6 KB",
293
- "gzip": true
294
- },
295
- {
296
- "name": "Plugin: Link",
297
- "path": "dist/plugins/link.mjs",
298
- "limit": "10 KB",
299
- "gzip": true
300
- },
301
- {
302
- "name": "Plugin: List",
303
- "path": "dist/plugins/list.mjs",
304
- "limit": "10 KB",
305
- "gzip": true
306
- },
307
- {
308
- "name": "Plugin: Blockquote",
309
- "path": "dist/plugins/blockquote.mjs",
310
- "limit": "5 KB",
311
- "gzip": true
312
- },
313
- {
314
- "name": "Plugin: Strikethrough",
315
- "path": "dist/plugins/strikethrough.mjs",
316
- "limit": "5 KB",
317
- "gzip": true
318
- },
319
- {
320
- "name": "Plugin: Inline Code",
321
- "path": "dist/plugins/inline-code.mjs",
322
- "limit": "5 KB",
323
- "gzip": true
324
- },
325
- {
326
- "name": "Plugin: Text Color",
327
- "path": "dist/plugins/text-color.mjs",
328
- "limit": "10 KB",
329
- "gzip": true
330
- },
331
- {
332
- "name": "Plugin: Horizontal Rule",
333
- "path": "dist/plugins/horizontal-rule.mjs",
334
- "limit": "5 KB",
335
- "gzip": true
336
- },
337
- {
338
- "name": "Plugin: Alignment",
339
- "path": "dist/plugins/alignment.mjs",
340
- "limit": "10 KB",
341
- "gzip": true
342
- },
343
- {
344
- "name": "Plugin: Font",
345
- "path": "dist/plugins/font.mjs",
346
- "limit": "10 KB",
347
- "gzip": true
348
- },
349
- {
350
- "name": "Plugin: Font Size",
351
- "path": "dist/plugins/font-size.mjs",
352
- "limit": "10 KB",
353
- "gzip": true
354
- },
355
- {
356
- "name": "Plugin: Highlight",
357
- "path": "dist/plugins/highlight.mjs",
358
- "limit": "10 KB",
359
- "gzip": true
360
- },
361
- {
362
- "name": "Plugin: Super/Sub",
363
- "path": "dist/plugins/super-sub.mjs",
364
- "limit": "5 KB",
365
- "gzip": true
366
- },
367
- {
368
- "name": "Plugin: Print",
369
- "path": "dist/plugins/print.mjs",
370
- "limit": "16 KB",
371
- "gzip": true
372
- },
373
- {
374
- "name": "Plugin: Hard Break",
375
- "path": "dist/plugins/hard-break.mjs",
376
- "limit": "2 KB",
377
- "gzip": true
378
- },
379
- {
380
- "name": "Plugin: Gap Cursor",
381
- "path": "dist/plugins/gap-cursor.mjs",
382
- "limit": "3 KB",
383
- "gzip": true
384
- },
385
- {
386
- "name": "Plugin: Caret Navigation",
387
- "path": "dist/plugins/caret-navigation.mjs",
388
- "limit": "7 KB",
389
- "gzip": true
390
- },
391
- {
392
- "name": "Plugin: Text Direction",
393
- "path": "dist/plugins/text-direction.mjs",
394
- "limit": "5 KB",
395
- "gzip": true
396
- },
397
- {
398
- "name": "Plugin: Bidi Isolation",
399
- "path": "dist/plugins/bidi-isolation.mjs",
400
- "limit": "5 KB",
401
- "gzip": true
402
- },
403
- {
404
- "name": "Plugin: Text Direction Auto",
405
- "path": "dist/plugins/text-direction-auto.mjs",
406
- "limit": "4 KB",
407
- "gzip": true
408
- },
409
- {
410
- "name": "Full (kitchen sink)",
411
- "path": "dist/full.mjs",
412
- "limit": "390 KB",
413
- "gzip": true
414
- }
415
- ],
416
218
  "dependencies": {
417
219
  "dompurify": "^3.4.11"
418
220
  },
419
221
  "devDependencies": {
420
- "@size-limit/preset-small-lib": "^12.0.1",
222
+ "esbuild": "^0.28.1",
421
223
  "happy-dom": "^20.8.9",
422
224
  "rollup-plugin-visualizer": "^7.0.1",
423
- "size-limit": "^12.0.1",
424
225
  "terser": "^5.46.1",
425
226
  "vite": "^8.0.16",
426
227
  "vite-plugin-dts": "^4.5.4",
@@ -1,2 +0,0 @@
1
- import{_ as n,h as t,i as o,v as e}from"./Document-827l3P80.mjs";import{i as r,n as i,r as l,t as c}from"./WordBoundary-CFpIJDNP.mjs";import{o as a,u as s}from"./Selection-HYoVFpAx.mjs";import{r as u}from"./DomUtils-Bf7JLFlx.mjs";import{i as f,n as d,r as h}from"./GapCursorNavigation-BuXngVu-.mjs";import{a as m,i as w,t as g}from"./NavigationQueries-Bt4zZ17v.mjs";import{r as k,t as b}from"./Platform-ByobkiCc.mjs";import{a as I,i as p,n as v,t as y}from"./SelectionSync-BSHIw1EE.mjs";import{c as x,o as B}from"./PluginHelpers-Dx_0hfDe.mjs";function C(n){const t=n.selection;if(!s(t))return null;const o=a(t)?t.anchor.blockId:t.head.blockId;return 0===(a(t)?t.anchor.offset:t.head.offset)?null:h(n,o,0)}function M(n){const o=n.selection;if(!s(o))return null;const e=a(o)?o.anchor.blockId:o.head.blockId,r=n.getBlock(e);if(!r)return null;const i=t(r);return(a(o)?o.anchor.offset:o.head.offset)===i?null:h(n,e,i)}function A(n){const t=n.selection;return s(t)?{blockId:t.head.blockId,offset:t.head.offset}:null}function S(n,t,o){const e=n.getBlockOrder(),r=e.indexOf(t);if(r<0)return null;const i="forward"===o?r+1:r-1;return i<0||i>=e.length?null:e[i]??null}function V(r){const i=r.selection;if(!s(i))return null;if(!a(i))return h(r,i.head.blockId,i.head.offset);const c=i.anchor.blockId,u=r.getBlock(c);if(!u)return null;const d=i.anchor.offset;if(d<t(u))return"inline"===e(u,d)?.kind?h(r,c,d+1):h(r,c,d+(l(n(u),o(u,d))||1));const m=S(r,c,"forward");return m&&g(r,c,m)?w(r,m)?f(r,m):h(r,m,0):null}function E(i){const l=i.selection;if(!s(l))return null;if(!a(l))return h(i,l.head.blockId,l.head.offset);const c=l.anchor.blockId,u=i.getBlock(c);if(!u)return null;const d=l.anchor.offset;if(d>0)return"inline"===e(u,d-1)?.kind?h(i,c,d-1):h(i,c,d-(r(n(u),o(u,d))||1));const m=S(i,c,"backward");if(!m)return null;if(!g(i,c,m))return null;if(w(i,m))return f(i,m);const k=i.getBlock(m);return k?h(i,m,t(k)):null}function T(n){const t=n.selection;if(!s(t))return null;const o=n.getBlockOrder()[0];return o?w(n,o)?f(n,o):h(n,o,0):null}function R(n){const o=n.selection;if(!s(o))return null;const e=n.getBlockOrder(),r=e[e.length-1];if(!r)return null;if(w(n,r))return f(n,r);const i=n.getBlock(r);return i?h(n,r,t(i)):null}function N(r){const i=A(r);if(!i)return null;const c=r.selection;if(!s(c))return null;const a=r.getBlock(i.blockId);if(!a)return null;const u=t(a);if(i.offset<u){const t="inline"===e(a,i.offset)?.kind?1:l(n(a),o(a,i.offset))||1;return d(r,c.anchor.blockId,c.anchor.offset,i.blockId,i.offset+t)}const f=S(r,i.blockId,"forward");return f&&g(r,i.blockId,f)?d(r,c.anchor.blockId,c.anchor.offset,f,0):null}function j(i){const l=A(i);if(!l)return null;const c=i.selection;if(!s(c))return null;if(l.offset>0){const t=i.getBlock(l.blockId);if(!t)return null;const a="inline"===e(t,l.offset-1)?.kind?1:r(n(t),o(t,l.offset))||1;return d(i,c.anchor.blockId,c.anchor.offset,l.blockId,l.offset-a)}const a=S(i,l.blockId,"backward");if(!a)return null;if(!g(i,l.blockId,a))return null;const u=i.getBlock(a);return u?d(i,c.anchor.blockId,c.anchor.offset,a,t(u)):null}function H(n){const t=A(n);if(!t)return null;const o=n.selection;return s(o)?0===t.offset?null:d(n,o.anchor.blockId,o.anchor.offset,t.blockId,0):null}function O(n){const o=A(n);if(!o)return null;const e=n.selection;if(!s(e))return null;const r=n.getBlock(o.blockId);if(!r)return null;const i=t(r);return o.offset===i?null:d(n,e.anchor.blockId,e.anchor.offset,o.blockId,i)}function L(n){const t=n.selection;if(!s(t))return null;const o=n.getBlockOrder()[0];return o?t.head.blockId===o&&0===t.head.offset?null:d(n,t.anchor.blockId,t.anchor.offset,o,0):null}function D(n){const o=n.selection;if(!s(o))return null;const e=n.getBlockOrder(),r=e[e.length-1];if(!r)return null;const i=n.getBlock(r);if(!i)return null;const l=t(i);return o.head.blockId===r&&o.head.offset===l?null:d(n,o.anchor.blockId,o.anchor.offset,r,l)}function z(n,t,o){if("caretPositionFromPoint"in n){const e=n.caretPositionFromPoint(t,o);if(e)return{node:e.offsetNode,offset:e.offset}}if("caretRangeFromPoint"in n){const e=n.caretRangeFromPoint(t,o);if(e)return{node:e.startContainer,offset:e.startOffset}}return null}function P(n,t,o,e){return z(n,t,o)??(e&&n!==e?z(e,t,o):null)}function F(n,o,e,r){const i=o.selection;if(!s(i))return!1;if(!a(i))return!1;const l=o.getBlock(i.anchor.blockId);if(!l)return!1;const c=i.anchor.offset,f=t(l),d=n.querySelector(`[data-block-id="${i.anchor.blockId}"]`),h=d instanceof HTMLElement&&"rtl"===b(d);if("left"===e)return h?c===f:0===c;if("right"===e)return h?0===c:c===f;if("up"===e&&0===c)return!0;if("down"===e&&c===f)return!0;const m=v();return m&&m.modify?function(n,t,o,e){const r=p(n,t);if(!r)return!1;const i=e??_(t,n),l="up"===o?"backward":"forward";try{t.modify("move",l,"line");const o=p(n,t);if(!o)return!1;if(u(n,r.focusNode)!==u(n,o.focusNode))return!0;if(o.anchorNode===r.anchorNode&&o.anchorOffset===r.anchorOffset&&o.focusNode===r.focusNode&&o.focusOffset===r.focusOffset)return!0;if(i){const o=_(t,n);if(o&&Math.abs(o.top-i.top)<1)return!0}return!1}finally{try{t.setBaseAndExtent(r.anchorNode,r.anchorOffset,r.focusNode,r.focusOffset)}catch{}}}(n,m,e,r):"up"===e?0===c:c===f}function q(n,o){const e=Q(n,o);if(!e)return null;if(e.isVoid)return f(n,e.targetId);const r=n.getBlock(e.targetId);if(!r)return null;const i="right"===o||"down"===o?0:t(r);return h(n,e.targetId,i)}function $(n,o,e,r){const i=Q(o,e);if(!i)return null;if(i.isVoid)return f(o,i.targetId);const l=o.getBlock(i.targetId);if(!l)return null;const c=t(l);if(null!==r){const t=function(n,t,o,e){const r=n.querySelector(`[data-block-id="${t}"]`);if(!r)return null;const i=r.getBoundingClientRect(),l=function(n,t,o){if(!(n instanceof HTMLElement))return"down"===o?t.top+2:t.bottom-2;const e=getComputedStyle(n),r=Number.parseFloat(e.paddingTop)||0,i=Number.parseFloat(e.paddingBottom)||0;return"down"===o?t.top+r+2:t.bottom-i-2}(r,i,o),c=Math.min(Math.max(e,i.left),i.right-1),a=P(n.getRootNode(),c,l,n.ownerDocument);if(!a)return null;if(!r.contains(a.node))return null;const s=y(n,a.node,a.offset);return s?s.blockId!==t?null:s:null}(n,i.targetId,e,r);if(t)return h(o,t.blockId,t.offset)}if(s(o.selection)&&a(o.selection)){const n=o.selection.anchor.offset,t=Math.min(n,c);return h(o,i.targetId,t)}const u="down"===e?0:c;return h(o,i.targetId,u)}function U(n,t){if("up"===t||"down"===t)return null;const o=n.selection;if(!s(o))return null;if(!a(o))return null;const r=o.anchor.blockId,i=n.getBlock(r);if(!i)return null;const l=o.anchor.offset;return"right"===t?function(n,t,o,r){const i=e(o,r);return i&&"inline"===i.kind?h(n,t,r+1):null}(n,r,i,l):function(n,t,o,r){if(0===r)return null;const i=e(o,r-1);return i&&"inline"===i.kind?h(n,t,r-1):null}(n,r,i,l)}function _(n,t){if(n.rangeCount>0){const o=n.getRangeAt(0);if(!t||t.contains(o.startContainer)){const n=o.getClientRects();if(n.length>0)return n[0]??null;const t=o.getBoundingClientRect();if(t.height>0)return t}}if(t){const o=p(t,n);if(o)try{const n=document.createRange();n.setStart(o.anchorNode,o.anchorOffset),n.setEnd(o.focusNode,o.focusOffset);const t=n.getClientRects();return t.length>0?t[0]??null:n.getBoundingClientRect()}catch{}}return null}function Q(n,t){const o=n.selection;if(!s(o))return null;const e="right"===t||"down"===t;return m(n,o.anchor.blockId,e)}function W(n,t,o,e){return K(n,t,"move",o,e)}function G(n,t,o,e){return K(n,t,"extend",o,e)}function K(n,o,r,i,l){const c=o.selection;if(!s(c))return null;const a="move"===r?X:J,u=v();if(!u?.modify)return a(o,i,l);const m=p(n,u);if(!m)return a(o,i,l);try{u.modify(r,i,l);const a=I(n);if(!a)return null;const s="move"===r?c.anchor.blockId:c.head.blockId,m="move"===r?a.anchor:a.head,k=m.blockId;if(k!==s&&!g(o,s,k))return null;let b=m.offset;const p=o.getBlock(k);return p&&"inline"===e(p,b)?.kind&&"forward"===i&&(b=Math.min(b+1,t(p))),"move"===r?w(o,k)?f(o,k):h(o,k,b):d(o,c.anchor.blockId,c.anchor.offset,k,b)}finally{try{u.setBaseAndExtent(m.anchorNode,m.anchorOffset,m.focusNode,m.focusOffset)}catch{}}}function X(n,o,e){return"word"===e?function(n,o){const e=n.selection;if(!s(e))return null;const r=a(e)?e.anchor.blockId:e.head.blockId,l=a(e)?e.anchor.offset:e.head.offset,u=n.getBlock(r);if(!u)return null;const d="forward"===o?i(u,l):c(u,l);return d===l?function(n,o,e){const r=m(n,o,"forward"===e);if(!r)return null;if(r.isVoid)return f(n,r.targetId);const i=n.getBlock(r.targetId);if(!i)return null;const l="forward"===e?0:t(i);return h(n,r.targetId,l)}(n,r,o):h(n,r,d)}(n,o):"lineboundary"===e?"forward"===o?M(n):C(n):q(n,"forward"===o?"down":"up")}function J(n,o,e){const r=n.selection;if(!s(r))return null;const l=r.head,a=n.getBlock(l.blockId);if(!a)return null;let u=l.offset;if("word"===e)u="forward"===o?i(a,l.offset):c(a,l.offset);else{if("lineboundary"!==e){const e=m(n,l.blockId,"forward"===o);if(!e)return null;if(e.isVoid)return null;const i=n.getBlock(e.targetId);if(!i)return null;const c="forward"===o?0:t(i);return d(n,r.anchor.blockId,r.anchor.offset,e.targetId,c)}u="forward"===o?t(a):0}return d(n,r.anchor.blockId,r.anchor.offset,l.blockId,u)}function Y(n,t){return W(n,t,"forward","word")}function Z(n,t){return W(n,t,"backward","word")}function nn(n,t){return W(n,t,"backward","lineboundary")}function tn(n,t){return W(n,t,"forward","lineboundary")}function on(n,t){return W(n,t,"backward","line")}function en(n,t){return W(n,t,"forward","line")}function rn(n,t){return G(n,t,"forward","word")}function ln(n,t){return G(n,t,"backward","word")}function cn(n,t){return G(n,t,"backward","lineboundary")}function an(n,t){return G(n,t,"forward","lineboundary")}function sn(n,t){return G(n,t,"backward","line")}function un(n,t){return G(n,t,"forward","line")}var fn={paragraph:"Paragraph",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",codeBlock:"Code Block",blockquote:"Block Quote",listItem:"List Item",horizontalRule:"Horizontal Rule",image:"Image",table:"Table"},dn={paragraph:"paragraph",code_block:"codeBlock",blockquote:"blockquote",list_item:"listItem",horizontal_rule:"horizontalRule",image:"image",table:"table"},hn=/* #__PURE__ */Object.assign({"./locales/ar.ts":()=>import("./ar-BRX5E_Pw.mjs"),"./locales/de.ts":()=>import("./de-B9zSHWqY.mjs"),"./locales/es.ts":()=>import("./es-CgMfhkJJ.mjs"),"./locales/fr.ts":()=>import("./fr-0qEo3bRP.mjs"),"./locales/hi.ts":()=>import("./hi-CoclKAUM.mjs"),"./locales/pt.ts":()=>import("./pt-CMx2wPPY.mjs"),"./locales/ru.ts":()=>import("./ru-QGX8lOTs.mjs"),"./locales/zh.ts":()=>import("./zh-YfuE_m2y.mjs")});async function mn(n){return x(hn,n,fn)}var wn={"word:forward":Y,"word:backward":Z,"lineboundary:forward":tn,"lineboundary:backward":nn,"line:forward":en,"line:backward":on},gn={"word:forward":rn,"word:backward":ln,"lineboundary:forward":an,"lineboundary:backward":cn,"line:forward":un,"line:backward":sn},kn=class{id="caret-navigation";name="Caret Navigation";priority=4;context=null;lastAnnouncedBlockId=null;announceTimer=null;announce=null;locale=fn;async init(n){this.locale=await B(n,void 0,fn,mn),this.context=n,this.announce=t=>n.announce(t);const t=k(),o={"Shift-ArrowRight":()=>this.extendCharacterVisual("right"),"Shift-ArrowLeft":()=>this.extendCharacterVisual("left"),"Shift-ArrowUp":()=>this.viewExtendCommand("backward","line"),"Shift-ArrowDown":()=>this.viewExtendCommand("forward","line"),...t?{"Alt-ArrowRight":()=>this.viewMoveVisual("right","word"),"Alt-ArrowLeft":()=>this.viewMoveVisual("left","word"),"Shift-Alt-ArrowRight":()=>this.viewExtendVisual("right","word"),"Shift-Alt-ArrowLeft":()=>this.viewExtendVisual("left","word")}:{"Mod-ArrowRight":()=>this.viewMoveVisual("right","word"),"Mod-ArrowLeft":()=>this.viewMoveVisual("left","word"),"Mod-Shift-ArrowRight":()=>this.viewExtendVisual("right","word"),"Mod-Shift-ArrowLeft":()=>this.viewExtendVisual("left","word")},...t?{"Mod-ArrowLeft":()=>this.viewMoveVisual("left","lineboundary"),"Mod-ArrowRight":()=>this.viewMoveVisual("right","lineboundary"),"Mod-Shift-ArrowLeft":()=>this.viewExtendVisual("left","lineboundary"),"Mod-Shift-ArrowRight":()=>this.viewExtendVisual("right","lineboundary")}:{Home:()=>this.viewMoveCommand("backward","lineboundary"),End:()=>this.viewMoveCommand("forward","lineboundary"),"Shift-Home":()=>this.viewExtendCommand("backward","lineboundary"),"Shift-End":()=>this.viewExtendCommand("forward","lineboundary")},...t?{"Mod-ArrowUp":()=>this.modelCommand(T),"Mod-ArrowDown":()=>this.modelCommand(R),"Mod-Shift-ArrowUp":()=>this.modelCommand(L),"Mod-Shift-ArrowDown":()=>this.modelCommand(D)}:{"Mod-Home":()=>this.modelCommand(T),"Mod-End":()=>this.modelCommand(R),"Mod-Shift-Home":()=>this.modelCommand(L),"Mod-Shift-End":()=>this.modelCommand(D)}};n.registerKeymap(o,{priority:"navigation"})}onStateChange(n,t,o){const e=t.selection;if(!a(e)||!s(e))return null!==this.announceTimer&&(clearTimeout(this.announceTimer),this.announceTimer=null),void(this.lastAnnouncedBlockId=null);const r=e.anchor.blockId;r!==this.lastAnnouncedBlockId&&(null!==this.lastAnnouncedBlockId?(this.lastAnnouncedBlockId=r,null!==this.announceTimer&&clearTimeout(this.announceTimer),this.announceTimer=setTimeout(()=>{if(this.announceTimer=null,this.context?.hasAnnouncement())return;const n=t.getBlock(r);if(!n)return;const o=function(n,t,o){if("heading"===t&&o?.level){const t=`heading${o.level}`;if(t in n)return n[t]}const e=dn[t];return e?n[e]:t}(this.locale,n.type,n.attrs);this.announce?.(o)},150)):this.lastAnnouncedBlockId=r)}destroy(){null!==this.announceTimer&&clearTimeout(this.announceTimer),this.announceTimer=null,this.announce=null,this.context=null}modelCommand(n){if(!this.context)return!1;const t=n(this.context.getState());return!!t&&(this.context.dispatch(t),!0)}extendCharacterVisual(n){if(!this.context)return!1;const t=this.context.getState(),o="forward"===this.resolveLogicalHorizontalDirection(t,n)?N(t):j(t);return!!o&&(this.context.dispatch(o),!0)}viewMoveCommand(n,t){return this.dispatchViewCommand(wn,n,t)}viewMoveVisual(n,t){if(!this.context)return!1;const o=this.resolveLogicalHorizontalDirection(this.context.getState(),n);return this.viewMoveCommand(o,t)}viewExtendCommand(n,t){return this.dispatchViewCommand(gn,n,t)}dispatchViewCommand(n,t,o){if(!this.context)return!1;const e=n[`${o}:${t}`];if(!e)return!1;const r=e(this.context.getContainer(),this.context.getState());return!!r&&(this.context.dispatch(r),!0)}viewExtendVisual(n,t){if(!this.context)return!1;const o=this.resolveLogicalHorizontalDirection(this.context.getState(),n);return this.viewExtendCommand(o,t)}resolveLogicalHorizontalDirection(n,t){const o=n.selection;if(!s(o))return"left"===t?"backward":"forward";const e=this.context?.getContainer();if(!e)return"left"===t?"backward":"forward";const r=e.querySelector(`[data-block-id="${o.head.blockId}"]`);return r instanceof HTMLElement&&"rtl"===b(r)?"left"===t?"forward":"backward":"left"===t?"backward":"forward"}};export{E as A,P as C,H as D,O as E,C as F,R as M,T as N,D as O,M as P,U as S,N as T,W as _,sn as a,q as b,ln as c,on as d,tn as f,G as g,Y as h,un as i,V as j,L as k,rn as l,Z as m,fn as n,an as o,nn as p,mn as r,cn as s,kn as t,en as u,F as v,j as w,$ as x,_ as y};
2
- //# sourceMappingURL=CaretNavigationPlugin-CNsT0eb4.mjs.map