@dxos/react-ui-editor 0.8.4-main.7ace549 → 0.8.4-main.937b3ca

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 (397) hide show
  1. package/dist/lib/browser/index.mjs +466 -8269
  2. package/dist/lib/browser/index.mjs.map +4 -4
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/lib/node-esm/index.mjs +465 -8267
  5. package/dist/lib/node-esm/index.mjs.map +4 -4
  6. package/dist/lib/node-esm/meta.json +1 -1
  7. package/dist/types/src/components/Editor/Editor.d.ts +8 -2
  8. package/dist/types/src/components/Editor/Editor.d.ts.map +1 -1
  9. package/dist/types/src/components/Editor/Editor.stories.d.ts +4 -1
  10. package/dist/types/src/components/Editor/Editor.stories.d.ts.map +1 -1
  11. package/dist/types/src/components/EditorContent/EditorContent.d.ts +4 -2
  12. package/dist/types/src/components/EditorContent/EditorContent.d.ts.map +1 -1
  13. package/dist/types/src/components/EditorMenuProvider/EditorMenuProvider.d.ts +1 -1
  14. package/dist/types/src/components/EditorMenuProvider/EditorMenuProvider.d.ts.map +1 -1
  15. package/dist/types/src/components/EditorMenuProvider/index.d.ts +0 -1
  16. package/dist/types/src/components/EditorMenuProvider/index.d.ts.map +1 -1
  17. package/dist/types/src/components/EditorMenuProvider/menu-presets.d.ts.map +1 -1
  18. package/dist/types/src/components/EditorMenuProvider/menu.d.ts.map +1 -1
  19. package/dist/types/src/components/EditorMenuProvider/popover.d.ts +1 -2
  20. package/dist/types/src/components/EditorMenuProvider/popover.d.ts.map +1 -1
  21. package/dist/types/src/components/EditorMenuProvider/useEditorMenu.d.ts.map +1 -1
  22. package/dist/types/src/components/EditorPreviewProvider/EditorPreviewProvider.d.ts +1 -1
  23. package/dist/types/src/components/EditorPreviewProvider/EditorPreviewProvider.d.ts.map +1 -1
  24. package/dist/types/src/components/EditorToolbar/EditorToolbar.d.ts +7 -5
  25. package/dist/types/src/components/EditorToolbar/EditorToolbar.d.ts.map +1 -1
  26. package/dist/types/src/components/EditorToolbar/actions.d.ts +8 -23
  27. package/dist/types/src/components/EditorToolbar/actions.d.ts.map +1 -1
  28. package/dist/types/src/components/EditorToolbar/blocks.d.ts +6 -5
  29. package/dist/types/src/components/EditorToolbar/blocks.d.ts.map +1 -1
  30. package/dist/types/src/components/EditorToolbar/formatting.d.ts +6 -5
  31. package/dist/types/src/components/EditorToolbar/formatting.d.ts.map +1 -1
  32. package/dist/types/src/components/EditorToolbar/headings.d.ts +6 -5
  33. package/dist/types/src/components/EditorToolbar/headings.d.ts.map +1 -1
  34. package/dist/types/src/components/EditorToolbar/image.d.ts +4 -11
  35. package/dist/types/src/components/EditorToolbar/image.d.ts.map +1 -1
  36. package/dist/types/src/components/EditorToolbar/index.d.ts +1 -1
  37. package/dist/types/src/components/EditorToolbar/index.d.ts.map +1 -1
  38. package/dist/types/src/components/EditorToolbar/search.d.ts +4 -11
  39. package/dist/types/src/components/EditorToolbar/search.d.ts.map +1 -1
  40. package/dist/types/src/components/EditorToolbar/useEditorToolbar.d.ts +4 -4
  41. package/dist/types/src/components/EditorToolbar/useEditorToolbar.d.ts.map +1 -1
  42. package/dist/types/src/components/EditorToolbar/view-mode.d.ts +7 -6
  43. package/dist/types/src/components/EditorToolbar/view-mode.d.ts.map +1 -1
  44. package/dist/types/src/components/index.d.ts.map +1 -1
  45. package/dist/types/src/hooks/useTextEditor.d.ts +1 -1
  46. package/dist/types/src/hooks/useTextEditor.d.ts.map +1 -1
  47. package/dist/types/src/index.d.ts +0 -8
  48. package/dist/types/src/index.d.ts.map +1 -1
  49. package/dist/types/src/{extensions/automerge/automerge.stories.d.ts → stories/Automerge.stories.d.ts} +5 -9
  50. package/dist/types/src/stories/Automerge.stories.d.ts.map +1 -0
  51. package/dist/types/src/stories/CommandDialog.stories.d.ts.map +1 -1
  52. package/dist/types/src/stories/Comments.stories.d.ts +3 -2
  53. package/dist/types/src/stories/Comments.stories.d.ts.map +1 -1
  54. package/dist/types/src/stories/EditorToolbar.stories.d.ts +4 -4
  55. package/dist/types/src/stories/EditorToolbar.stories.d.ts.map +1 -1
  56. package/dist/types/src/stories/Experimental.stories.d.ts +3 -2
  57. package/dist/types/src/stories/Experimental.stories.d.ts.map +1 -1
  58. package/dist/types/src/stories/Markdown.stories.d.ts +3 -2
  59. package/dist/types/src/stories/Markdown.stories.d.ts.map +1 -1
  60. package/dist/types/src/stories/Outliner.stories.d.ts.map +1 -1
  61. package/dist/types/src/stories/Popover.stories.d.ts.map +1 -1
  62. package/dist/types/src/stories/Preview.stories.d.ts +3 -2
  63. package/dist/types/src/stories/Preview.stories.d.ts.map +1 -1
  64. package/dist/types/src/stories/Tags.stories.d.ts.map +1 -1
  65. package/dist/types/src/stories/TextEditor.stories.d.ts +3 -2
  66. package/dist/types/src/stories/TextEditor.stories.d.ts.map +1 -1
  67. package/dist/types/src/stories/Theme.stories.d.ts +8 -0
  68. package/dist/types/src/stories/Theme.stories.d.ts.map +1 -0
  69. package/dist/types/src/stories/components/EditorStory.d.ts +8 -20
  70. package/dist/types/src/stories/components/EditorStory.d.ts.map +1 -1
  71. package/dist/types/src/stories/components/util.d.ts +3 -3
  72. package/dist/types/src/stories/components/util.d.ts.map +1 -1
  73. package/dist/types/src/translations.d.ts +5 -5
  74. package/dist/types/src/translations.d.ts.map +1 -1
  75. package/dist/types/src/util/index.d.ts +0 -5
  76. package/dist/types/src/util/index.d.ts.map +1 -1
  77. package/dist/types/src/util/react.d.ts +5 -1
  78. package/dist/types/src/util/react.d.ts.map +1 -1
  79. package/dist/types/tsconfig.tsbuildinfo +1 -1
  80. package/package.json +61 -63
  81. package/src/components/Editor/Editor.stories.tsx +14 -8
  82. package/src/components/Editor/Editor.tsx +9 -4
  83. package/src/components/EditorContent/EditorContent.tsx +19 -6
  84. package/src/components/EditorMenuProvider/EditorMenuProvider.tsx +2 -2
  85. package/src/components/EditorMenuProvider/index.ts +0 -1
  86. package/src/components/EditorMenuProvider/menu-presets.ts +2 -1
  87. package/src/components/EditorMenuProvider/menu.ts +1 -2
  88. package/src/components/EditorMenuProvider/popover.ts +1 -3
  89. package/src/components/EditorMenuProvider/useEditorMenu.ts +1 -3
  90. package/src/components/EditorPreviewProvider/EditorPreviewProvider.tsx +1 -2
  91. package/src/components/EditorToolbar/EditorToolbar.tsx +18 -14
  92. package/src/components/EditorToolbar/actions.ts +8 -7
  93. package/src/components/EditorToolbar/blocks.ts +3 -4
  94. package/src/components/EditorToolbar/formatting.ts +3 -4
  95. package/src/components/EditorToolbar/headings.ts +3 -3
  96. package/src/components/EditorToolbar/image.ts +8 -1
  97. package/src/components/EditorToolbar/index.ts +1 -1
  98. package/src/components/EditorToolbar/search.ts +8 -1
  99. package/src/components/EditorToolbar/useEditorToolbar.ts +6 -6
  100. package/src/components/EditorToolbar/view-mode.ts +3 -3
  101. package/src/components/index.ts +0 -2
  102. package/src/hooks/useTextEditor.ts +9 -3
  103. package/src/index.ts +0 -10
  104. package/src/stories/Automerge.stories.tsx +175 -0
  105. package/src/stories/CommandDialog.stories.tsx +3 -5
  106. package/src/stories/Comments.stories.tsx +44 -39
  107. package/src/stories/EditorToolbar.stories.tsx +28 -13
  108. package/src/stories/Experimental.stories.tsx +4 -6
  109. package/src/stories/Markdown.stories.tsx +14 -14
  110. package/src/stories/Outliner.stories.tsx +4 -5
  111. package/src/stories/Popover.stories.tsx +17 -21
  112. package/src/stories/Preview.stories.tsx +51 -46
  113. package/src/stories/Tags.stories.tsx +19 -10
  114. package/src/stories/TextEditor.stories.tsx +11 -17
  115. package/src/stories/Theme.stories.tsx +61 -0
  116. package/src/stories/components/EditorStory.tsx +17 -19
  117. package/src/stories/components/util.tsx +3 -3
  118. package/src/translations.ts +4 -4
  119. package/src/util/index.ts +1 -6
  120. package/src/util/react.tsx +6 -2
  121. package/dist/lib/browser/chunk-HL3YF6WC.mjs +0 -22
  122. package/dist/lib/browser/chunk-HL3YF6WC.mjs.map +0 -7
  123. package/dist/lib/browser/types/index.mjs +0 -13
  124. package/dist/lib/browser/types/index.mjs.map +0 -7
  125. package/dist/lib/node-esm/chunk-YJZGD3LY.mjs +0 -24
  126. package/dist/lib/node-esm/chunk-YJZGD3LY.mjs.map +0 -7
  127. package/dist/lib/node-esm/types/index.mjs +0 -14
  128. package/dist/lib/node-esm/types/index.mjs.map +0 -7
  129. package/dist/types/src/components/EditorContent/EditorContent.stories.d.ts +0 -26
  130. package/dist/types/src/components/EditorContent/EditorContent.stories.d.ts.map +0 -1
  131. package/dist/types/src/components/EditorMenuProvider/util.d.ts +0 -8
  132. package/dist/types/src/components/EditorMenuProvider/util.d.ts.map +0 -1
  133. package/dist/types/src/defaults.d.ts +0 -14
  134. package/dist/types/src/defaults.d.ts.map +0 -1
  135. package/dist/types/src/extensions/annotations.d.ts +0 -9
  136. package/dist/types/src/extensions/annotations.d.ts.map +0 -1
  137. package/dist/types/src/extensions/autocomplete/autocomplete.d.ts +0 -17
  138. package/dist/types/src/extensions/autocomplete/autocomplete.d.ts.map +0 -1
  139. package/dist/types/src/extensions/autocomplete/index.d.ts +0 -5
  140. package/dist/types/src/extensions/autocomplete/index.d.ts.map +0 -1
  141. package/dist/types/src/extensions/autocomplete/match.d.ts +0 -13
  142. package/dist/types/src/extensions/autocomplete/match.d.ts.map +0 -1
  143. package/dist/types/src/extensions/autocomplete/placeholder.d.ts +0 -20
  144. package/dist/types/src/extensions/autocomplete/placeholder.d.ts.map +0 -1
  145. package/dist/types/src/extensions/autocomplete/typeahead.d.ts +0 -10
  146. package/dist/types/src/extensions/autocomplete/typeahead.d.ts.map +0 -1
  147. package/dist/types/src/extensions/automerge/automerge.d.ts +0 -4
  148. package/dist/types/src/extensions/automerge/automerge.d.ts.map +0 -1
  149. package/dist/types/src/extensions/automerge/automerge.stories.d.ts.map +0 -1
  150. package/dist/types/src/extensions/automerge/automerge.test.d.ts +0 -2
  151. package/dist/types/src/extensions/automerge/automerge.test.d.ts.map +0 -1
  152. package/dist/types/src/extensions/automerge/cursor.d.ts +0 -4
  153. package/dist/types/src/extensions/automerge/cursor.d.ts.map +0 -1
  154. package/dist/types/src/extensions/automerge/defs.d.ts +0 -17
  155. package/dist/types/src/extensions/automerge/defs.d.ts.map +0 -1
  156. package/dist/types/src/extensions/automerge/index.d.ts +0 -2
  157. package/dist/types/src/extensions/automerge/index.d.ts.map +0 -1
  158. package/dist/types/src/extensions/automerge/sync.d.ts +0 -17
  159. package/dist/types/src/extensions/automerge/sync.d.ts.map +0 -1
  160. package/dist/types/src/extensions/automerge/update-automerge.d.ts +0 -6
  161. package/dist/types/src/extensions/automerge/update-automerge.d.ts.map +0 -1
  162. package/dist/types/src/extensions/automerge/update-codemirror.d.ts +0 -5
  163. package/dist/types/src/extensions/automerge/update-codemirror.d.ts.map +0 -1
  164. package/dist/types/src/extensions/autoscroll.d.ts +0 -20
  165. package/dist/types/src/extensions/autoscroll.d.ts.map +0 -1
  166. package/dist/types/src/extensions/awareness/awareness-provider.d.ts +0 -31
  167. package/dist/types/src/extensions/awareness/awareness-provider.d.ts.map +0 -1
  168. package/dist/types/src/extensions/awareness/awareness.d.ts +0 -46
  169. package/dist/types/src/extensions/awareness/awareness.d.ts.map +0 -1
  170. package/dist/types/src/extensions/awareness/index.d.ts +0 -3
  171. package/dist/types/src/extensions/awareness/index.d.ts.map +0 -1
  172. package/dist/types/src/extensions/blast.d.ts +0 -25
  173. package/dist/types/src/extensions/blast.d.ts.map +0 -1
  174. package/dist/types/src/extensions/blocks.d.ts +0 -2
  175. package/dist/types/src/extensions/blocks.d.ts.map +0 -1
  176. package/dist/types/src/extensions/bookmarks.d.ts +0 -12
  177. package/dist/types/src/extensions/bookmarks.d.ts.map +0 -1
  178. package/dist/types/src/extensions/comments.d.ts +0 -95
  179. package/dist/types/src/extensions/comments.d.ts.map +0 -1
  180. package/dist/types/src/extensions/debug.d.ts +0 -3
  181. package/dist/types/src/extensions/debug.d.ts.map +0 -1
  182. package/dist/types/src/extensions/dnd.d.ts +0 -9
  183. package/dist/types/src/extensions/dnd.d.ts.map +0 -1
  184. package/dist/types/src/extensions/factories.d.ts +0 -84
  185. package/dist/types/src/extensions/factories.d.ts.map +0 -1
  186. package/dist/types/src/extensions/focus.d.ts +0 -7
  187. package/dist/types/src/extensions/focus.d.ts.map +0 -1
  188. package/dist/types/src/extensions/folding.d.ts +0 -7
  189. package/dist/types/src/extensions/folding.d.ts.map +0 -1
  190. package/dist/types/src/extensions/hashtag.d.ts +0 -3
  191. package/dist/types/src/extensions/hashtag.d.ts.map +0 -1
  192. package/dist/types/src/extensions/index.d.ts +0 -32
  193. package/dist/types/src/extensions/index.d.ts.map +0 -1
  194. package/dist/types/src/extensions/json.d.ts +0 -7
  195. package/dist/types/src/extensions/json.d.ts.map +0 -1
  196. package/dist/types/src/extensions/listener.d.ts +0 -13
  197. package/dist/types/src/extensions/listener.d.ts.map +0 -1
  198. package/dist/types/src/extensions/markdown/action.d.ts +0 -12
  199. package/dist/types/src/extensions/markdown/action.d.ts.map +0 -1
  200. package/dist/types/src/extensions/markdown/bundle.d.ts +0 -22
  201. package/dist/types/src/extensions/markdown/bundle.d.ts.map +0 -1
  202. package/dist/types/src/extensions/markdown/changes.d.ts +0 -10
  203. package/dist/types/src/extensions/markdown/changes.d.ts.map +0 -1
  204. package/dist/types/src/extensions/markdown/changes.test.d.ts +0 -2
  205. package/dist/types/src/extensions/markdown/changes.test.d.ts.map +0 -1
  206. package/dist/types/src/extensions/markdown/debug.d.ts +0 -11
  207. package/dist/types/src/extensions/markdown/debug.d.ts.map +0 -1
  208. package/dist/types/src/extensions/markdown/decorate.d.ts +0 -25
  209. package/dist/types/src/extensions/markdown/decorate.d.ts.map +0 -1
  210. package/dist/types/src/extensions/markdown/formatting.d.ts +0 -61
  211. package/dist/types/src/extensions/markdown/formatting.d.ts.map +0 -1
  212. package/dist/types/src/extensions/markdown/formatting.test.d.ts +0 -3
  213. package/dist/types/src/extensions/markdown/formatting.test.d.ts.map +0 -1
  214. package/dist/types/src/extensions/markdown/highlight.d.ts +0 -37
  215. package/dist/types/src/extensions/markdown/highlight.d.ts.map +0 -1
  216. package/dist/types/src/extensions/markdown/image.d.ts +0 -7
  217. package/dist/types/src/extensions/markdown/image.d.ts.map +0 -1
  218. package/dist/types/src/extensions/markdown/index.d.ts +0 -10
  219. package/dist/types/src/extensions/markdown/index.d.ts.map +0 -1
  220. package/dist/types/src/extensions/markdown/link.d.ts +0 -7
  221. package/dist/types/src/extensions/markdown/link.d.ts.map +0 -1
  222. package/dist/types/src/extensions/markdown/parser.test.d.ts +0 -2
  223. package/dist/types/src/extensions/markdown/parser.test.d.ts.map +0 -1
  224. package/dist/types/src/extensions/markdown/styles.d.ts +0 -4
  225. package/dist/types/src/extensions/markdown/styles.d.ts.map +0 -1
  226. package/dist/types/src/extensions/markdown/table.d.ts +0 -8
  227. package/dist/types/src/extensions/markdown/table.d.ts.map +0 -1
  228. package/dist/types/src/extensions/mention.d.ts +0 -7
  229. package/dist/types/src/extensions/mention.d.ts.map +0 -1
  230. package/dist/types/src/extensions/modal.d.ts +0 -7
  231. package/dist/types/src/extensions/modal.d.ts.map +0 -1
  232. package/dist/types/src/extensions/modes.d.ts +0 -10
  233. package/dist/types/src/extensions/modes.d.ts.map +0 -1
  234. package/dist/types/src/extensions/outliner/commands.d.ts +0 -10
  235. package/dist/types/src/extensions/outliner/commands.d.ts.map +0 -1
  236. package/dist/types/src/extensions/outliner/editor.d.ts +0 -5
  237. package/dist/types/src/extensions/outliner/editor.d.ts.map +0 -1
  238. package/dist/types/src/extensions/outliner/editor.test.d.ts +0 -2
  239. package/dist/types/src/extensions/outliner/editor.test.d.ts.map +0 -1
  240. package/dist/types/src/extensions/outliner/index.d.ts +0 -4
  241. package/dist/types/src/extensions/outliner/index.d.ts.map +0 -1
  242. package/dist/types/src/extensions/outliner/menu.d.ts +0 -8
  243. package/dist/types/src/extensions/outliner/menu.d.ts.map +0 -1
  244. package/dist/types/src/extensions/outliner/outliner.d.ts +0 -11
  245. package/dist/types/src/extensions/outliner/outliner.d.ts.map +0 -1
  246. package/dist/types/src/extensions/outliner/outliner.test.d.ts +0 -2
  247. package/dist/types/src/extensions/outliner/outliner.test.d.ts.map +0 -1
  248. package/dist/types/src/extensions/outliner/selection.d.ts +0 -12
  249. package/dist/types/src/extensions/outliner/selection.d.ts.map +0 -1
  250. package/dist/types/src/extensions/outliner/tree.d.ts +0 -79
  251. package/dist/types/src/extensions/outliner/tree.d.ts.map +0 -1
  252. package/dist/types/src/extensions/outliner/tree.test.d.ts +0 -2
  253. package/dist/types/src/extensions/outliner/tree.test.d.ts.map +0 -1
  254. package/dist/types/src/extensions/preview/index.d.ts +0 -2
  255. package/dist/types/src/extensions/preview/index.d.ts.map +0 -1
  256. package/dist/types/src/extensions/preview/preview.d.ts +0 -32
  257. package/dist/types/src/extensions/preview/preview.d.ts.map +0 -1
  258. package/dist/types/src/extensions/replacer.d.ts +0 -21
  259. package/dist/types/src/extensions/replacer.d.ts.map +0 -1
  260. package/dist/types/src/extensions/replacer.test.d.ts +0 -2
  261. package/dist/types/src/extensions/replacer.test.d.ts.map +0 -1
  262. package/dist/types/src/extensions/scrolling.d.ts +0 -78
  263. package/dist/types/src/extensions/scrolling.d.ts.map +0 -1
  264. package/dist/types/src/extensions/selection.d.ts +0 -24
  265. package/dist/types/src/extensions/selection.d.ts.map +0 -1
  266. package/dist/types/src/extensions/state.d.ts +0 -2
  267. package/dist/types/src/extensions/state.d.ts.map +0 -1
  268. package/dist/types/src/extensions/submit.d.ts +0 -10
  269. package/dist/types/src/extensions/submit.d.ts.map +0 -1
  270. package/dist/types/src/extensions/tab.d.ts +0 -4
  271. package/dist/types/src/extensions/tab.d.ts.map +0 -1
  272. package/dist/types/src/extensions/tags/extended-markdown.d.ts +0 -10
  273. package/dist/types/src/extensions/tags/extended-markdown.d.ts.map +0 -1
  274. package/dist/types/src/extensions/tags/extended-markdown.test.d.ts +0 -2
  275. package/dist/types/src/extensions/tags/extended-markdown.test.d.ts.map +0 -1
  276. package/dist/types/src/extensions/tags/index.d.ts +0 -4
  277. package/dist/types/src/extensions/tags/index.d.ts.map +0 -1
  278. package/dist/types/src/extensions/tags/streamer.d.ts +0 -12
  279. package/dist/types/src/extensions/tags/streamer.d.ts.map +0 -1
  280. package/dist/types/src/extensions/tags/xml-tags.d.ts +0 -97
  281. package/dist/types/src/extensions/tags/xml-tags.d.ts.map +0 -1
  282. package/dist/types/src/extensions/tags/xml-util.d.ts +0 -10
  283. package/dist/types/src/extensions/tags/xml-util.d.ts.map +0 -1
  284. package/dist/types/src/extensions/typewriter.d.ts +0 -10
  285. package/dist/types/src/extensions/typewriter.d.ts.map +0 -1
  286. package/dist/types/src/styles/index.d.ts +0 -4
  287. package/dist/types/src/styles/index.d.ts.map +0 -1
  288. package/dist/types/src/styles/markdown.d.ts +0 -8
  289. package/dist/types/src/styles/markdown.d.ts.map +0 -1
  290. package/dist/types/src/styles/theme.d.ts +0 -38
  291. package/dist/types/src/styles/theme.d.ts.map +0 -1
  292. package/dist/types/src/styles/tokens.d.ts +0 -3
  293. package/dist/types/src/styles/tokens.d.ts.map +0 -1
  294. package/dist/types/src/types/index.d.ts +0 -2
  295. package/dist/types/src/types/index.d.ts.map +0 -1
  296. package/dist/types/src/types/types.d.ts +0 -21
  297. package/dist/types/src/types/types.d.ts.map +0 -1
  298. package/dist/types/src/util/cursor.d.ts +0 -31
  299. package/dist/types/src/util/cursor.d.ts.map +0 -1
  300. package/dist/types/src/util/debug.d.ts +0 -21
  301. package/dist/types/src/util/debug.d.ts.map +0 -1
  302. package/dist/types/src/util/decorations.d.ts +0 -4
  303. package/dist/types/src/util/decorations.d.ts.map +0 -1
  304. package/dist/types/src/util/dom.d.ts +0 -10
  305. package/dist/types/src/util/dom.d.ts.map +0 -1
  306. package/dist/types/src/util/facet.d.ts +0 -3
  307. package/dist/types/src/util/facet.d.ts.map +0 -1
  308. package/src/components/EditorContent/EditorContent.stories.tsx +0 -70
  309. package/src/components/EditorMenuProvider/util.ts +0 -31
  310. package/src/defaults.ts +0 -52
  311. package/src/extensions/annotations.ts +0 -55
  312. package/src/extensions/autocomplete/autocomplete.ts +0 -151
  313. package/src/extensions/autocomplete/index.ts +0 -8
  314. package/src/extensions/autocomplete/match.ts +0 -46
  315. package/src/extensions/autocomplete/placeholder.ts +0 -117
  316. package/src/extensions/autocomplete/typeahead.ts +0 -87
  317. package/src/extensions/automerge/automerge.stories.tsx +0 -150
  318. package/src/extensions/automerge/automerge.test.tsx +0 -78
  319. package/src/extensions/automerge/automerge.ts +0 -105
  320. package/src/extensions/automerge/cursor.ts +0 -28
  321. package/src/extensions/automerge/defs.ts +0 -31
  322. package/src/extensions/automerge/index.ts +0 -5
  323. package/src/extensions/automerge/sync.ts +0 -79
  324. package/src/extensions/automerge/update-automerge.ts +0 -50
  325. package/src/extensions/automerge/update-codemirror.ts +0 -115
  326. package/src/extensions/autoscroll.ts +0 -163
  327. package/src/extensions/awareness/awareness-provider.ts +0 -127
  328. package/src/extensions/awareness/awareness.ts +0 -315
  329. package/src/extensions/awareness/index.ts +0 -6
  330. package/src/extensions/blast.ts +0 -363
  331. package/src/extensions/blocks.ts +0 -131
  332. package/src/extensions/bookmarks.ts +0 -75
  333. package/src/extensions/comments.ts +0 -598
  334. package/src/extensions/debug.ts +0 -15
  335. package/src/extensions/dnd.ts +0 -37
  336. package/src/extensions/factories.ts +0 -282
  337. package/src/extensions/focus.ts +0 -36
  338. package/src/extensions/folding.tsx +0 -43
  339. package/src/extensions/hashtag.tsx +0 -68
  340. package/src/extensions/index.ts +0 -35
  341. package/src/extensions/json.ts +0 -57
  342. package/src/extensions/listener.ts +0 -32
  343. package/src/extensions/markdown/action.ts +0 -117
  344. package/src/extensions/markdown/bundle.ts +0 -105
  345. package/src/extensions/markdown/changes.test.ts +0 -26
  346. package/src/extensions/markdown/changes.ts +0 -149
  347. package/src/extensions/markdown/debug.ts +0 -44
  348. package/src/extensions/markdown/decorate.ts +0 -601
  349. package/src/extensions/markdown/formatting.test.ts +0 -498
  350. package/src/extensions/markdown/formatting.ts +0 -1265
  351. package/src/extensions/markdown/highlight.ts +0 -183
  352. package/src/extensions/markdown/image.ts +0 -118
  353. package/src/extensions/markdown/index.ts +0 -13
  354. package/src/extensions/markdown/link.ts +0 -50
  355. package/src/extensions/markdown/parser.test.ts +0 -75
  356. package/src/extensions/markdown/styles.ts +0 -135
  357. package/src/extensions/markdown/table.ts +0 -150
  358. package/src/extensions/mention.ts +0 -41
  359. package/src/extensions/modal.ts +0 -24
  360. package/src/extensions/modes.ts +0 -41
  361. package/src/extensions/outliner/commands.ts +0 -270
  362. package/src/extensions/outliner/editor.test.ts +0 -33
  363. package/src/extensions/outliner/editor.ts +0 -184
  364. package/src/extensions/outliner/index.ts +0 -7
  365. package/src/extensions/outliner/menu.ts +0 -128
  366. package/src/extensions/outliner/outliner.test.ts +0 -100
  367. package/src/extensions/outliner/outliner.ts +0 -167
  368. package/src/extensions/outliner/selection.ts +0 -50
  369. package/src/extensions/outliner/tree.test.ts +0 -168
  370. package/src/extensions/outliner/tree.ts +0 -317
  371. package/src/extensions/preview/index.ts +0 -5
  372. package/src/extensions/preview/preview.ts +0 -193
  373. package/src/extensions/replacer.test.ts +0 -75
  374. package/src/extensions/replacer.ts +0 -93
  375. package/src/extensions/scrolling.ts +0 -189
  376. package/src/extensions/selection.ts +0 -100
  377. package/src/extensions/state.ts +0 -7
  378. package/src/extensions/submit.ts +0 -62
  379. package/src/extensions/tab.ts +0 -29
  380. package/src/extensions/tags/extended-markdown.test.ts +0 -262
  381. package/src/extensions/tags/extended-markdown.ts +0 -78
  382. package/src/extensions/tags/index.ts +0 -7
  383. package/src/extensions/tags/streamer.ts +0 -243
  384. package/src/extensions/tags/xml-tags.ts +0 -500
  385. package/src/extensions/tags/xml-util.ts +0 -94
  386. package/src/extensions/typewriter.ts +0 -68
  387. package/src/styles/index.ts +0 -7
  388. package/src/styles/markdown.ts +0 -26
  389. package/src/styles/theme.ts +0 -269
  390. package/src/styles/tokens.ts +0 -17
  391. package/src/types/index.ts +0 -5
  392. package/src/types/types.ts +0 -32
  393. package/src/util/cursor.ts +0 -56
  394. package/src/util/debug.ts +0 -69
  395. package/src/util/decorations.ts +0 -21
  396. package/src/util/dom.ts +0 -34
  397. package/src/util/facet.ts +0 -13
@@ -1,61 +0,0 @@
1
- import { type EditorState, type Extension, type StateCommand } from '@codemirror/state';
2
- import { EditorView } from '@codemirror/view';
3
- export type Formatting = Partial<{
4
- blankLine: boolean;
5
- blockType: 'codeblock' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'paragraph' | 'tablecell' | null;
6
- blockQuote: boolean;
7
- strong: boolean;
8
- emphasis: boolean;
9
- strikethrough: boolean;
10
- code: boolean;
11
- link: boolean;
12
- listStyle: null | 'ordered' | 'bullet' | 'task';
13
- }>;
14
- export declare const formattingEquals: (a: Formatting, b: Formatting) => boolean;
15
- export declare enum Inline {
16
- Strong = 0,
17
- Emphasis = 1,
18
- Strikethrough = 2,
19
- Code = 3
20
- }
21
- export declare enum List {
22
- Ordered = 0,
23
- Bullet = 1,
24
- Task = 2
25
- }
26
- export declare const setHeading: (level: number) => StateCommand;
27
- export declare const setStyle: (type: Inline, enable: boolean) => StateCommand;
28
- export declare const addStyle: (style: Inline) => StateCommand;
29
- export declare const removeStyle: (style: Inline) => StateCommand;
30
- export declare const toggleStyle: (style: Inline) => StateCommand;
31
- export declare const toggleStrong: StateCommand;
32
- export declare const toggleEmphasis: StateCommand;
33
- export declare const toggleStrikethrough: StateCommand;
34
- export declare const toggleInlineCode: StateCommand;
35
- export declare const insertTable: (view: EditorView) => void;
36
- export declare const removeLink: StateCommand;
37
- export declare const addLink: ({ url, image }?: {
38
- url?: string;
39
- image?: boolean;
40
- }) => StateCommand;
41
- export declare const addList: (type: List) => StateCommand;
42
- export declare const removeList: (type: List) => StateCommand;
43
- export declare const toggleList: (type: List) => StateCommand;
44
- export declare const setBlockquote: (enable: boolean) => StateCommand;
45
- export declare const addBlockquote: StateCommand;
46
- export declare const removeBlockquote: StateCommand;
47
- export declare const toggleBlockquote: StateCommand;
48
- export declare const addCodeblock: StateCommand;
49
- export declare const removeCodeblock: StateCommand;
50
- export declare const toggleCodeblock: StateCommand;
51
- export type FormattingOptions = {};
52
- export declare const formattingKeymap: (_options?: FormattingOptions) => Extension;
53
- /**
54
- * Query the editor state for the active formatting at the selection.
55
- */
56
- export declare const getFormatting: (state: EditorState) => Formatting;
57
- /**
58
- * Hook provides an extension to compute the current formatting state.
59
- */
60
- export declare const formattingListener: (stateProvider: () => Formatting | undefined, delay?: number) => Extension;
61
- //# sourceMappingURL=formatting.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/formatting.ts"],"names":[],"mappings":"AAMA,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,SAAS,EAEd,KAAK,YAAY,EAElB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,UAAU,EAA2B,MAAM,kBAAkB,CAAC;AAavE,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC;IAC/B,SAAS,EAAE,OAAO,CAAC;IAGnB,SAAS,EACL,WAAW,GACX,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,WAAW,GACX,WAAW,GACX,IAAI,CAAC;IAET,UAAU,EAAE,OAAO,CAAC;IAEpB,MAAM,EAAE,OAAO,CAAC;IAEhB,QAAQ,EAAE,OAAO,CAAC;IAElB,aAAa,EAAE,OAAO,CAAC;IAEvB,IAAI,EAAE,OAAO,CAAC;IAEd,IAAI,EAAE,OAAO,CAAC;IAEd,SAAS,EAAE,IAAI,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;CACjD,CAAC,CAAC;AAEH,eAAO,MAAM,gBAAgB,GAAI,GAAG,UAAU,EAAE,GAAG,UAAU,YAQ9B,CAAC;AAEhC,oBAAY,MAAM;IAChB,MAAM,IAAI;IACV,QAAQ,IAAI;IACZ,aAAa,IAAI;IACjB,IAAI,IAAI;CACT;AAED,oBAAY,IAAI;IACd,OAAO,IAAA;IACP,MAAM,IAAA;IACN,IAAI,IAAA;CACL;AAMD,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,KAAG,YAmE1C,CAAC;AAMF,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,EAAE,QAAQ,OAAO,KAAG,YAqKxD,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,OAAO,MAAM,KAAG,YAAqC,CAAC;AAE/E,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,KAAG,YAAsC,CAAC;AAEnF,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,KAAG,YAc3C,CAAC;AAEF,eAAO,MAAM,YAAY,cAA6B,CAAC;AACvD,eAAO,MAAM,cAAc,cAA+B,CAAC;AAC3D,eAAO,MAAM,mBAAmB,cAAoC,CAAC;AACrE,eAAO,MAAM,gBAAgB,cAA2B,CAAC;AA0EzD,eAAO,MAAM,WAAW,GAAI,MAAM,UAAU,SAS3C,CAAC;AA4BF,eAAO,MAAM,UAAU,EAAE,YAUxB,CAAC;AAGF,eAAO,MAAM,OAAO,GAAI,iBAAgB;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO,KAAG,YA6FhF,CAAC;AAMF,eAAO,MAAM,OAAO,GAAI,MAAM,IAAI,KAAG,YAmJpC,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,MAAM,IAAI,KAAG,YA+DvC,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,MAAM,IAAI,KAAG,YAOvC,CAAC;AAqBF,eAAO,MAAM,aAAa,GAAI,QAAQ,OAAO,KAAG,YAyE/C,CAAC;AAEF,eAAO,MAAM,aAAa,cAAsB,CAAC;AAEjD,eAAO,MAAM,gBAAgB,cAAuB,CAAC;AAErD,eAAO,MAAM,gBAAgB,EAAE,YAE9B,CAAC;AAMF,eAAO,MAAM,YAAY,EAAE,YA8D1B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,YA0C7B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,YAE7B,CAAC;AAMF,MAAM,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAEnC,eAAO,MAAM,gBAAgB,GAAI,WAAU,iBAAsB,KAAG,SAanE,CAAC;AA4CF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,WAAW,KAAG,UAqKlD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,eAAe,MAAM,UAAU,GAAG,SAAS,EAAE,cAAW,KAAG,SAe7F,CAAC"}
@@ -1,3 +0,0 @@
1
- import { type Formatting } from './formatting';
2
- export declare const emptyFormatting: Formatting;
3
- //# sourceMappingURL=formatting.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatting.test.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/formatting.test.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,KAAK,UAAU,EAehB,MAAM,cAAc,CAAC;AAEtB,eAAO,MAAM,eAAe,EAAE,UAU7B,CAAC"}
@@ -1,37 +0,0 @@
1
- import { HighlightStyle } from '@codemirror/language';
2
- import { Tag } from '@lezer/highlight';
3
- import { type MarkdownConfig } from '@lezer/markdown';
4
- /**
5
- * Custom tags defined and processed by the GFM lezer extension.
6
- * https://github.com/lezer-parser/markdown
7
- * https://github.com/lezer-parser/markdown/blob/main/src/markdown.ts
8
- */
9
- export declare const markdownTags: {
10
- Blockquote: Tag;
11
- CodeMark: Tag;
12
- CodeText: Tag;
13
- EmphasisMark: Tag;
14
- HeaderMark: Tag;
15
- InlineCode: Tag;
16
- LinkLabel: Tag;
17
- LinkReference: Tag;
18
- ListMark: Tag;
19
- QuoteMark: Tag;
20
- URL: Tag;
21
- TableCell: Tag;
22
- };
23
- export declare const markdownTagsExtensions: MarkdownConfig[];
24
- export type HighlightOptions = {};
25
- /**
26
- * Styling based on `lezer` parser tags.
27
- * https://codemirror.net/examples/styling
28
- * https://github.com/lezer-parser/highlight
29
- * https://github.com/lezer-parser/highlight/blob/main/src/highlight.ts#L427
30
- * https://lezer.codemirror.net/docs/ref/#highlight.tags (list of tags)
31
- *
32
- * Examples:
33
- * - https://github.com/codemirror/language/blob/main/src/highlight.ts#L194
34
- * - https://github.com/codemirror/theme-one-dark/blob/main/src/one-dark.ts#L115
35
- */
36
- export declare const markdownHighlightStyle: (_options?: HighlightOptions) => HighlightStyle;
37
- //# sourceMappingURL=highlight.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"highlight.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/highlight.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,GAAG,EAAmB,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,KAAK,cAAc,EAAS,MAAM,iBAAiB,CAAC;AAI7D;;;;GAIG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;CAexB,CAAC;AAaF,eAAO,MAAM,sBAAsB,EAAE,cAAc,EAKlD,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAElC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB,GAAI,WAAU,gBAAqB,mBAsHrE,CAAC"}
@@ -1,7 +0,0 @@
1
- import { type Extension } from '@codemirror/state';
2
- export type ImageOptions = {};
3
- /**
4
- * Create image decorations.
5
- */
6
- export declare const image: (_options?: ImageOptions) => Extension;
7
- //# sourceMappingURL=image.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/image.ts"],"names":[],"mappings":"AAKA,OAAO,EAAoB,KAAK,SAAS,EAA4C,MAAM,mBAAmB,CAAC;AAK/G,MAAM,MAAM,YAAY,GAAG,EAAE,CAAC;AAE9B;;GAEG;AACH,eAAO,MAAM,KAAK,GAAI,WAAU,YAAiB,KAAG,SAmCnD,CAAC"}
@@ -1,10 +0,0 @@
1
- export * from './action';
2
- export * from './bundle';
3
- export * from './debug';
4
- export * from './decorate';
5
- export * from './formatting';
6
- export * from './highlight';
7
- export * from './image';
8
- export * from './link';
9
- export * from './table';
10
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
@@ -1,7 +0,0 @@
1
- import { type RenderCallback } from '../../types';
2
- export declare const linkTooltip: (renderTooltip: RenderCallback<{
3
- url: string;
4
- }>) => import("@codemirror/state").Extension & {
5
- active: import("@codemirror/state").StateField<readonly import("@codemirror/view").Tooltip[]>;
6
- };
7
- //# sourceMappingURL=link.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/link.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,eAAO,MAAM,WAAW,GAAI,eAAe,cAAc,CAAC;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;;CAoCzE,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=parser.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parser.test.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/parser.test.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- export declare const bulletListIndentationWidth = 24;
2
- export declare const orderedListIndentationWidth = 36;
3
- export declare const formattingStyles: import("@codemirror/state").Extension;
4
- //# sourceMappingURL=styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/styles.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAC7C,eAAO,MAAM,2BAA2B,KAAK,CAAC;AAE9C,eAAO,MAAM,gBAAgB,uCA2H3B,CAAC"}
@@ -1,8 +0,0 @@
1
- import { type Extension } from '@codemirror/state';
2
- export type TableOptions = {};
3
- /**
4
- * GFM tables.
5
- * https://github.github.com/gfm/#tables-extension
6
- */
7
- export declare const table: (options?: TableOptions) => Extension;
8
- //# sourceMappingURL=table.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/markdown/table.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,SAAS,EAKf,MAAM,mBAAmB,CAAC;AAQ3B,MAAM,MAAM,YAAY,GAAG,EAAE,CAAC;AAE9B;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAI,UAAS,YAAiB,KAAG,SAMlD,CAAC"}
@@ -1,7 +0,0 @@
1
- import type { Extension } from '@codemirror/state';
2
- export type MentionOptions = {
3
- debug?: boolean;
4
- onSearch: (text: string) => string[];
5
- };
6
- export declare const mention: ({ debug, onSearch }: MentionOptions) => Extension;
7
- //# sourceMappingURL=mention.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mention.d.ts","sourceRoot":"","sources":["../../../../src/extensions/mention.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAInD,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,EAAE,CAAC;CACtC,CAAC;AAGF,eAAO,MAAM,OAAO,GAAI,qBAAqB,cAAc,KAAG,SAyB7D,CAAC"}
@@ -1,7 +0,0 @@
1
- import { StateField } from '@codemirror/state';
2
- export declare const modalStateEffect: import("@codemirror/state").StateEffectType<boolean>;
3
- /**
4
- * Determines if a modal dialog (e.g., popover) is active.
5
- */
6
- export declare const modalStateField: StateField<boolean>;
7
- //# sourceMappingURL=modal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../../src/extensions/modal.ts"],"names":[],"mappings":"AAIA,OAAO,EAAe,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE5D,eAAO,MAAM,gBAAgB,sDAAgC,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,eAAe,qBAY1B,CAAC"}
@@ -1,10 +0,0 @@
1
- import { type Extension } from '@codemirror/state';
2
- export type EditorInputConfig = {
3
- type?: string;
4
- ignoreEscape?: boolean;
5
- };
6
- export declare const editorInputMode: import("@codemirror/state").Facet<EditorInputConfig, EditorInputConfig>;
7
- export declare const InputModeExtensions: {
8
- [mode: string]: Extension;
9
- };
10
- //# sourceMappingURL=modes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modes.d.ts","sourceRoot":"","sources":["../../../../src/extensions/modes.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAOnD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,eAAe,yEAA0C,CAAC;AAEvE,eAAO,MAAM,mBAAmB,EAAE;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;CAsB5D,CAAC"}
@@ -1,10 +0,0 @@
1
- import { type Extension } from '@codemirror/state';
2
- import { type Command } from '@codemirror/view';
3
- export declare const indentItemMore: Command;
4
- export declare const indentItemLess: Command;
5
- export declare const moveItemDown: Command;
6
- export declare const moveItemUp: Command;
7
- export declare const deleteItem: Command;
8
- export declare const toggleTask: Command;
9
- export declare const commands: () => Extension;
10
- //# sourceMappingURL=commands.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/outliner/commands.ts"],"names":[],"mappings":"AAMA,OAAO,EAAoC,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACrF,OAAO,EAAE,KAAK,OAAO,EAA2B,MAAM,kBAAkB,CAAC;AASzE,eAAO,MAAM,cAAc,EAAE,OAa5B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,OAsB5B,CAAC;AAMF,eAAO,MAAM,YAAY,EAAE,OA6B1B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,OA6BxB,CAAC;AAMF,eAAO,MAAM,UAAU,EAAE,OAiBxB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,OAmBxB,CAAC;AAEF,eAAO,MAAM,QAAQ,QAAO,SAwGxB,CAAC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Handle cursor movement, selection, and editing.
3
- */
4
- export declare const editor: () => import("@codemirror/state").Extension[];
5
- //# sourceMappingURL=editor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/outliner/editor.ts"],"names":[],"mappings":"AAsCA;;GAEG;AACH,eAAO,MAAM,MAAM,+CA8IlB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=editor.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"editor.test.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/outliner/editor.test.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- export * from './commands';
2
- export * from './outliner';
3
- export * from './tree';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/outliner/index.ts"],"names":[],"mappings":"AAIA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC"}
@@ -1,8 +0,0 @@
1
- import { type Extension } from '@codemirror/state';
2
- export type MenuOptions = {
3
- icon?: string;
4
- height?: number;
5
- padding?: number;
6
- };
7
- export declare const menu: (options?: MenuOptions) => Extension;
8
- //# sourceMappingURL=menu.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/outliner/menu.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAKnD,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAGF,eAAO,MAAM,IAAI,GAAI,UAAS,WAAgB,KAAG,SA+GhD,CAAC"}
@@ -1,11 +0,0 @@
1
- import { type Extension } from '@codemirror/state';
2
- export type OutlinerProps = {};
3
- /**
4
- * Outliner extension.
5
- * - Stores outline as a standard markdown document with task and list markers.
6
- * - Supports continuation lines and rich formatting (with Shift+Enter).
7
- * - Constrains editor to outline structure.
8
- * - Supports smart cut-and-paste.
9
- */
10
- export declare const outliner: (_options?: OutlinerProps) => Extension;
11
- //# sourceMappingURL=outliner.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"outliner.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/outliner/outliner.ts"],"names":[],"mappings":"AAIA,OAAO,EAAoB,KAAK,SAAS,EAAoB,MAAM,mBAAmB,CAAC;AA2BvF,MAAM,MAAM,aAAa,GAAG,EAAE,CAAC;AAE/B;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAI,WAAU,aAAkB,KAAG,SAwBvD,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=outliner.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"outliner.test.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/outliner/outliner.test.ts"],"names":[],"mappings":""}
@@ -1,12 +0,0 @@
1
- import { Compartment, type EditorState, Facet, type SelectionRange } from '@codemirror/state';
2
- import { type Command } from '@codemirror/view';
3
- export type Selection = number[];
4
- export declare const getSelection: (state: EditorState) => SelectionRange;
5
- export declare const selectionEquals: (a: number[], b: number[]) => boolean;
6
- export declare const selectionFacet: Facet<Selection, Selection>;
7
- export declare const selectionCompartment: Compartment;
8
- export declare const selectNone: Command;
9
- export declare const selectAll: Command;
10
- export declare const selectUp: Command;
11
- export declare const selectDown: Command;
12
- //# sourceMappingURL=selection.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/outliner/selection.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,KAAK,EAAE,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9F,OAAO,EAAE,KAAK,OAAO,EAAmB,MAAM,kBAAkB,CAAC;AAIjE,MAAM,MAAM,SAAS,GAAG,MAAM,EAAE,CAAC;AAEjC,eAAO,MAAM,YAAY,GAAI,OAAO,WAAW,KAAG,cAAsC,CAAC;AAEzF,eAAO,MAAM,eAAe,GAAI,GAAG,MAAM,EAAE,EAAE,GAAG,MAAM,EAAE,YAA2D,CAAC;AAEpH,eAAO,MAAM,cAAc,6BAEzB,CAAC;AAEH,eAAO,MAAM,oBAAoB,aAAoB,CAAC;AAEtD,eAAO,MAAM,UAAU,EAAE,OAMxB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,OAUvB,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,OAEtB,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,OAExB,CAAC"}
@@ -1,79 +0,0 @@
1
- import { type EditorState, type Extension } from '@codemirror/state';
2
- import { Facet } from '@codemirror/state';
3
- import { type SyntaxNode } from '@lezer/common';
4
- import { type Range } from '../../types';
5
- /**
6
- * Represents a single item in the tree.
7
- */
8
- export interface Item {
9
- type: 'root' | 'bullet' | 'task' | 'unknown';
10
- index: number;
11
- level: number;
12
- node: SyntaxNode;
13
- parent?: Item;
14
- nextSibling?: Item;
15
- prevSibling?: Item;
16
- children: Item[];
17
- /**
18
- * Actual range.
19
- * Starts at the start of the line containing the item and ends at the end of the line before the
20
- * first child or next sibling.
21
- */
22
- lineRange: Range;
23
- /**
24
- * Range of the editable content.
25
- * This doesn't include the list or task marker or indentation.
26
- */
27
- contentRange: Range;
28
- }
29
- export declare const itemToJSON: ({ type, index, level, lineRange, contentRange, children }: Item) => any;
30
- /**
31
- * Tree assumes the entire document is a single contiguous well-formed hierarchy of markdown LiteItem nodes.
32
- */
33
- export declare class Tree implements Item {
34
- type: Item['type'];
35
- index: number;
36
- level: number;
37
- node: Item['node'];
38
- lineRange: Item['lineRange'];
39
- contentRange: Item['contentRange'];
40
- children: Item['children'];
41
- constructor(node: SyntaxNode);
42
- toJSON(): any;
43
- get root(): Item;
44
- traverse<T = any>(cb: (item: Item, level: number) => T | void): T | undefined;
45
- traverse<T = any>(item: Item, cb: (item: Item, level: number) => T | void): T | undefined;
46
- /**
47
- * Return the closest item.
48
- */
49
- find(pos: number): Item | undefined;
50
- /**
51
- * Return the first child, next sibling, or parent's next sibling.
52
- */
53
- next(item: Item, enter?: boolean): Item | undefined;
54
- /**
55
- * Return the previous sibling, or parent.
56
- */
57
- prev(item: Item): Item | undefined;
58
- /**
59
- * Return the last descendant of the item, or the item itself if it has no children.
60
- */
61
- lastDescendant(item: Item): Item;
62
- }
63
- export declare const getRange: (tree: Tree, item: Item) => [number, number];
64
- /**
65
- * Traverse the tree, calling the callback for each item.
66
- * If the callback returns a value, the traversal is stopped and the value is returned.
67
- */
68
- export declare const traverse: <T = any>(root: Item, cb: (item: Item, level: number) => T | void) => T | undefined;
69
- export declare const getListItemContent: (state: EditorState, item: Item) => string;
70
- export declare const listItemToString: (item: Item, level?: number) => string;
71
- export declare const treeFacet: Facet<Tree, Tree>;
72
- export type TreeOptions = {};
73
- /**
74
- * Creates a shadow tree of `ListItem` nodes whenever the document changes.
75
- * This adds overhead relative to the markdown AST, but allows for efficient traversal of the list items.
76
- * NOTE: Requires markdown parser to be enabled.
77
- */
78
- export declare const outlinerTree: (_options?: TreeOptions) => Extension;
79
- //# sourceMappingURL=tree.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/outliner/tree.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAgC,MAAM,mBAAmB,CAAC;AACnG,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAIhD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,CAAC,EAAE,IAAI,CAAC;IACd,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,QAAQ,EAAE,IAAI,EAAE,CAAC;IACjB;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC;IACjB;;;OAGG;IACH,YAAY,EAAE,KAAK,CAAC;CACrB;AAED,eAAO,MAAM,UAAU,GAAI,2DAA2D,IAAI,KAAG,GAE5F,CAAC;AAEF;;GAEG;AACH,qBAAa,IAAK,YAAW,IAAI;IAC/B,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAU;IAC5B,KAAK,SAAM;IACX,KAAK,SAAM;IACX,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IACnB,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAC7B,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;IACnC,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,CAAM;gBAEpB,IAAI,EAAE,UAAU;IAM5B,MAAM;IAIN,IAAI,IAAI,IAAI,IAAI,CAEf;IAED,QAAQ,CAAC,CAAC,GAAG,GAAG,EAAE,EAAE,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,SAAS;IAC7E,QAAQ,CAAC,CAAC,GAAG,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,SAAS;IAYzF;;OAEG;IACH,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;IAInC;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,UAAO,GAAG,IAAI,GAAG,SAAS;IAgBhD;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS;IAQlC;;OAEG;IACH,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;CAGjC;AAED,eAAO,MAAM,QAAQ,GAAI,MAAM,IAAI,EAAE,MAAM,IAAI,KAAG,CAAC,MAAM,EAAE,MAAM,CAGhE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,GAAI,CAAC,GAAG,GAAG,EAAE,MAAM,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,GAAG,IAAI,KAAG,CAAC,GAAG,SAoB/F,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,OAAO,WAAW,EAAE,MAAM,IAAI,KAAG,MAEnE,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,MAAM,IAAI,EAAE,cAAS,WAerD,CAAC;AAUF,eAAO,MAAM,SAAS,mBAEpB,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,EAAE,CAAC;AAE7B;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,WAAU,WAAgB,KAAG,SAuHzD,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=tree.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tree.test.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/outliner/tree.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from './preview';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/preview/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC"}
@@ -1,32 +0,0 @@
1
- import { type EditorState, type Extension } from '@codemirror/state';
2
- import { type SyntaxNode } from '@lezer/common';
3
- export type PreviewBlock = {
4
- link: PreviewLinkRef;
5
- el: HTMLElement;
6
- };
7
- export type PreviewLinkRef = {
8
- suggest?: boolean;
9
- block?: boolean;
10
- label: string;
11
- ref: string;
12
- };
13
- export type PreviewLinkTarget = {
14
- label: string;
15
- text?: string;
16
- object?: any;
17
- };
18
- export type PreviewOptions = {
19
- addBlockContainer?: (block: PreviewBlock) => void;
20
- removeBlockContainer?: (block: PreviewBlock) => void;
21
- };
22
- /**
23
- * Create preview decorations.
24
- */
25
- export declare const preview: (options?: PreviewOptions) => Extension;
26
- /**
27
- * Link references.
28
- * [Label](dxn:echo:123) Inline reference
29
- * ![Label](dxn:echo:123) Block reference
30
- */
31
- export declare const getLinkRef: (state: EditorState, node: SyntaxNode) => PreviewLinkRef | undefined;
32
- //# sourceMappingURL=preview.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/preview/preview.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAA+B,MAAM,mBAAmB,CAAC;AAElG,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,cAAc,CAAC;IACrB,EAAE,EAAE,WAAW,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,GAAG,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IAClD,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;CACtD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,GAAI,UAAS,cAAmB,KAAG,SAmBtD,CAAC;AA0DF;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,WAAW,EAAE,MAAM,UAAU,KAAG,cAAc,GAAG,SAclF,CAAC"}
@@ -1,21 +0,0 @@
1
- import { type Extension } from '@codemirror/state';
2
- type Replacement = {
3
- input: string;
4
- output: string;
5
- };
6
- /**
7
- * Default character replacements for common typography.
8
- */
9
- export declare const defaultReplacements: Replacement[];
10
- /**
11
- * Options for the replacer extension.
12
- */
13
- export interface ReplacerOptions {
14
- replacements?: Replacement[];
15
- }
16
- /**
17
- * Creates a CodeMirror extension that automatically replaces typed character sequences.
18
- */
19
- export declare const replacer: ({ replacements }?: ReplacerOptions) => Extension;
20
- export {};
21
- //# sourceMappingURL=replacer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"replacer.d.ts","sourceRoot":"","sources":["../../../../src/extensions/replacer.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAGnD,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,WAAW,EAe5C,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;CAC9B;AAED;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,mBAAwC,eAAoB,KAAG,SAkDvF,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=replacer.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"replacer.test.d.ts","sourceRoot":"","sources":["../../../../src/extensions/replacer.test.ts"],"names":[],"mappings":""}
@@ -1,78 +0,0 @@
1
- import { EditorView } from '@codemirror/view';
2
- /**
3
- * Configuration options for smooth scrolling behavior.
4
- */
5
- export type SmoothScrollOptions = {
6
- /**
7
- * Additional offset from the target line in pixels.
8
- * Positive values scroll past the line, negative values stop before it.
9
- * @default 0
10
- */
11
- offset?: number;
12
- /**
13
- * Position of the target line in the viewport.
14
- * - 'start': Line appears at the start (top) of the screen
15
- * - 'end': Line appears at the end (bottom) of the screen
16
- * @default 'start'
17
- */
18
- position?: 'start' | 'end';
19
- /**
20
- * Whether to use smooth scrolling.
21
- * @default 'smooth'
22
- */
23
- behavior?: ScrollBehavior;
24
- };
25
- /**
26
- * Parameters for the scroll to line effect.
27
- */
28
- export type ScrollToLineParams = {
29
- /**
30
- * The line number to scroll to (1-based).
31
- */
32
- line: number;
33
- /**
34
- * Optional configuration to override default scroll behavior.
35
- */
36
- options?: SmoothScrollOptions;
37
- };
38
- /**
39
- * StateEffect for triggering smooth scroll to a specific line.
40
- */
41
- export declare const scrollToLineEffect: import("@codemirror/state").StateEffectType<ScrollToLineParams>;
42
- /**
43
- * Extension that provides smooth scrolling to specific lines in the editor.
44
- *
45
- * @example
46
- * ```typescript
47
- * // Add to editor extensions.
48
- * const extensions = [
49
- * smoothScroll()
50
- * ];
51
- *
52
- * // Trigger scroll to line 42.
53
- * view.dispatch({
54
- * effects: scrollToLineEffect.of({ line: 42 })
55
- * });
56
- *
57
- * // Scroll with custom options.
58
- * view.dispatch({
59
- * effects: scrollToLineEffect.of({ line: 100, options: { offset: -50 } })
60
- * });
61
- *
62
- * // Scroll so line appears at end (bottom) of screen.
63
- * view.dispatch({
64
- * effects: scrollToLineEffect.of({ line: 50, options: { position: 'end' } })
65
- * });
66
- * ```
67
- */
68
- export declare const smoothScroll: ({ offset, position }?: Partial<SmoothScrollOptions>) => import("@codemirror/state").Extension[];
69
- /**
70
- * Helper function to scroll to a specific line.
71
- * This is a convenience function that can be used directly with an EditorView.
72
- *
73
- * @param view - The CodeMirror EditorView instance
74
- * @param line - The line number to scroll to (1-based)
75
- * @param options - Optional scroll configuration
76
- */
77
- export declare const scrollToLine: (view: EditorView, line: number, options?: SmoothScrollOptions) => void;
78
- //# sourceMappingURL=scrolling.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scrolling.d.ts","sourceRoot":"","sources":["../../../../src/extensions/scrolling.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAc,MAAM,kBAAkB,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,OAAO,CAAC,EAAE,mBAAmB,CAAC;CAC/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,iEAA2C,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,YAAY,GAAI,uBAAoC,OAAO,CAAC,mBAAmB,CAAM,4CAkGjG,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,GAAI,MAAM,UAAU,EAAE,MAAM,MAAM,EAAE,UAAU,mBAAmB,SAIzF,CAAC"}
@@ -1,24 +0,0 @@
1
- import { type Extension, type TransactionSpec } from '@codemirror/state';
2
- /**
3
- * Currently edited document id as FQ string.
4
- */
5
- export declare const documentId: import("@codemirror/state").Facet<string, string>;
6
- export type EditorSelection = {
7
- anchor: number;
8
- head?: number;
9
- };
10
- export type EditorSelectionState = {
11
- scrollTo?: number;
12
- selection?: EditorSelection;
13
- };
14
- export type EditorStateStore = {
15
- setState: (id: string, state: EditorSelectionState) => void;
16
- getState: (id: string) => EditorSelectionState | undefined;
17
- };
18
- export declare const createEditorStateTransaction: ({ scrollTo, selection }: EditorSelectionState) => TransactionSpec;
19
- export declare const createEditorStateStore: (keyPrefix: string) => EditorStateStore;
20
- /**
21
- * Track scrolling and selection state to be restored when switching to document.
22
- */
23
- export declare const selectionState: ({ getState, setState }?: Partial<EditorStateStore>) => Extension;
24
- //# sourceMappingURL=selection.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../../../src/extensions/selection.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAe,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAStF;;GAEG;AACH,eAAO,MAAM,UAAU,mDAA6B,CAAC;AAErD,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,eAAe,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAC5D,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,oBAAoB,GAAG,SAAS,CAAC;CAC5D,CAAC;AAIF,eAAO,MAAM,4BAA4B,GAAI,yBAAyB,oBAAoB,KAAG,eAO5F,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,WAAW,MAAM,KAAG,gBAWzD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,yBAAwB,OAAO,CAAC,gBAAgB,CAAM,KAAG,SAuCvF,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const initialSync: import("@codemirror/state").Annotation<string>;
2
- //# sourceMappingURL=state.d.ts.map