@dxos/react-ui-editor 0.8.4-main.3f58842 → 0.8.4-main.548089c

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 (340) hide show
  1. package/dist/lib/browser/{chunk-22UMM3QJ.mjs → chunk-HL3YF6WC.mjs} +2 -2
  2. package/dist/lib/browser/chunk-HL3YF6WC.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +8004 -6623
  4. package/dist/lib/browser/index.mjs.map +4 -4
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/testing/index.mjs +71 -1
  7. package/dist/lib/browser/testing/index.mjs.map +4 -4
  8. package/dist/lib/browser/types/index.mjs +1 -1
  9. package/dist/lib/node-esm/{chunk-YXYQPV6R.mjs → chunk-YJZGD3LY.mjs} +2 -2
  10. package/dist/lib/node-esm/chunk-YJZGD3LY.mjs.map +7 -0
  11. package/dist/lib/node-esm/index.mjs +8004 -6623
  12. package/dist/lib/node-esm/index.mjs.map +4 -4
  13. package/dist/lib/node-esm/meta.json +1 -1
  14. package/dist/lib/node-esm/testing/index.mjs +71 -1
  15. package/dist/lib/node-esm/testing/index.mjs.map +4 -4
  16. package/dist/lib/node-esm/types/index.mjs +1 -1
  17. package/dist/types/src/components/Editor/Editor.d.ts +24 -9
  18. package/dist/types/src/components/Editor/Editor.d.ts.map +1 -1
  19. package/dist/types/src/components/Editor/Editor.stories.d.ts +27 -0
  20. package/dist/types/src/components/Editor/Editor.stories.d.ts.map +1 -0
  21. package/dist/types/src/components/EditorToolbar/EditorToolbar.d.ts +17 -2
  22. package/dist/types/src/components/EditorToolbar/EditorToolbar.d.ts.map +1 -1
  23. package/dist/types/src/components/EditorToolbar/blocks.d.ts.map +1 -1
  24. package/dist/types/src/components/EditorToolbar/formatting.d.ts.map +1 -1
  25. package/dist/types/src/components/EditorToolbar/headings.d.ts.map +1 -1
  26. package/dist/types/src/components/EditorToolbar/image.d.ts.map +1 -1
  27. package/dist/types/src/components/EditorToolbar/lists.d.ts.map +1 -1
  28. package/dist/types/src/components/EditorToolbar/search.d.ts.map +1 -1
  29. package/dist/types/src/components/EditorToolbar/util.d.ts +8 -22
  30. package/dist/types/src/components/EditorToolbar/util.d.ts.map +1 -1
  31. package/dist/types/src/components/EditorToolbar/view-mode.d.ts +1 -1
  32. package/dist/types/src/components/EditorToolbar/view-mode.d.ts.map +1 -1
  33. package/dist/types/src/components/index.d.ts +0 -1
  34. package/dist/types/src/components/index.d.ts.map +1 -1
  35. package/dist/types/src/defaults.d.ts.map +1 -1
  36. package/dist/types/src/extensions/autocomplete/autocomplete.d.ts +26 -0
  37. package/dist/types/src/extensions/autocomplete/autocomplete.d.ts.map +1 -0
  38. package/dist/types/src/extensions/autocomplete/index.d.ts +5 -0
  39. package/dist/types/src/extensions/autocomplete/index.d.ts.map +1 -0
  40. package/dist/types/src/extensions/autocomplete/match.d.ts +13 -0
  41. package/dist/types/src/extensions/autocomplete/match.d.ts.map +1 -0
  42. package/dist/types/src/extensions/autocomplete/placeholder.d.ts +20 -0
  43. package/dist/types/src/extensions/autocomplete/placeholder.d.ts.map +1 -0
  44. package/dist/types/src/extensions/autocomplete/typeahead.d.ts +10 -0
  45. package/dist/types/src/extensions/autocomplete/typeahead.d.ts.map +1 -0
  46. package/dist/types/src/extensions/automerge/automerge.d.ts +1 -1
  47. package/dist/types/src/extensions/automerge/automerge.d.ts.map +1 -1
  48. package/dist/types/src/extensions/automerge/automerge.stories.d.ts +10 -19
  49. package/dist/types/src/extensions/automerge/automerge.stories.d.ts.map +1 -1
  50. package/dist/types/src/extensions/automerge/cursor.d.ts +1 -1
  51. package/dist/types/src/extensions/automerge/cursor.d.ts.map +1 -1
  52. package/dist/types/src/extensions/automerge/defs.d.ts +1 -1
  53. package/dist/types/src/extensions/automerge/defs.d.ts.map +1 -1
  54. package/dist/types/src/extensions/automerge/sync.d.ts +3 -3
  55. package/dist/types/src/extensions/automerge/sync.d.ts.map +1 -1
  56. package/dist/types/src/extensions/automerge/update-automerge.d.ts +1 -1
  57. package/dist/types/src/extensions/automerge/update-automerge.d.ts.map +1 -1
  58. package/dist/types/src/extensions/autoscroll.d.ts +20 -0
  59. package/dist/types/src/extensions/autoscroll.d.ts.map +1 -0
  60. package/dist/types/src/extensions/awareness/awareness-provider.d.ts +1 -1
  61. package/dist/types/src/extensions/awareness/awareness-provider.d.ts.map +1 -1
  62. package/dist/types/src/extensions/blocks.d.ts +2 -0
  63. package/dist/types/src/extensions/blocks.d.ts.map +1 -0
  64. package/dist/types/src/extensions/bookmarks.d.ts +12 -0
  65. package/dist/types/src/extensions/bookmarks.d.ts.map +1 -0
  66. package/dist/types/src/extensions/comments.d.ts +1 -1
  67. package/dist/types/src/extensions/comments.d.ts.map +1 -1
  68. package/dist/types/src/extensions/dnd.d.ts.map +1 -1
  69. package/dist/types/src/extensions/factories.d.ts +11 -11
  70. package/dist/types/src/extensions/factories.d.ts.map +1 -1
  71. package/dist/types/src/extensions/focus.d.ts.map +1 -1
  72. package/dist/types/src/extensions/folding.d.ts.map +1 -1
  73. package/dist/types/src/extensions/index.d.ts +8 -1
  74. package/dist/types/src/extensions/index.d.ts.map +1 -1
  75. package/dist/types/src/extensions/json.d.ts +1 -1
  76. package/dist/types/src/extensions/json.d.ts.map +1 -1
  77. package/dist/types/src/extensions/listener.d.ts +8 -6
  78. package/dist/types/src/extensions/listener.d.ts.map +1 -1
  79. package/dist/types/src/extensions/markdown/action.d.ts.map +1 -1
  80. package/dist/types/src/extensions/markdown/bundle.d.ts +8 -2
  81. package/dist/types/src/extensions/markdown/bundle.d.ts.map +1 -1
  82. package/dist/types/src/extensions/markdown/changes.d.ts +1 -1
  83. package/dist/types/src/extensions/markdown/changes.d.ts.map +1 -1
  84. package/dist/types/src/extensions/markdown/decorate.d.ts +9 -1
  85. package/dist/types/src/extensions/markdown/decorate.d.ts.map +1 -1
  86. package/dist/types/src/extensions/markdown/formatting.d.ts +2 -3
  87. package/dist/types/src/extensions/markdown/formatting.d.ts.map +1 -1
  88. package/dist/types/src/extensions/markdown/formatting.test.d.ts.map +1 -1
  89. package/dist/types/src/extensions/markdown/highlight.d.ts.map +1 -1
  90. package/dist/types/src/extensions/markdown/image.d.ts.map +1 -1
  91. package/dist/types/src/extensions/markdown/link.d.ts.map +1 -1
  92. package/dist/types/src/extensions/modes.d.ts +1 -1
  93. package/dist/types/src/extensions/modes.d.ts.map +1 -1
  94. package/dist/types/src/extensions/outliner/menu.d.ts +8 -0
  95. package/dist/types/src/extensions/outliner/menu.d.ts.map +1 -0
  96. package/dist/types/src/extensions/outliner/outliner.d.ts +1 -1
  97. package/dist/types/src/extensions/outliner/outliner.d.ts.map +1 -1
  98. package/dist/types/src/extensions/outliner/selection.d.ts.map +1 -1
  99. package/dist/types/src/extensions/outliner/tree.d.ts +2 -2
  100. package/dist/types/src/extensions/outliner/tree.d.ts.map +1 -1
  101. package/dist/types/src/extensions/popover/PopoverMenuProvider.d.ts +36 -0
  102. package/dist/types/src/extensions/popover/PopoverMenuProvider.d.ts.map +1 -0
  103. package/dist/types/src/extensions/popover/index.d.ts +8 -0
  104. package/dist/types/src/extensions/popover/index.d.ts.map +1 -0
  105. package/dist/types/src/extensions/popover/menu-presets.d.ts +4 -0
  106. package/dist/types/src/extensions/popover/menu-presets.d.ts.map +1 -0
  107. package/dist/types/src/extensions/popover/menu.d.ts +24 -0
  108. package/dist/types/src/extensions/popover/menu.d.ts.map +1 -0
  109. package/dist/types/src/extensions/popover/modal.d.ts +7 -0
  110. package/dist/types/src/extensions/popover/modal.d.ts.map +1 -0
  111. package/dist/types/src/extensions/popover/popover.d.ts +47 -0
  112. package/dist/types/src/extensions/popover/popover.d.ts.map +1 -0
  113. package/dist/types/src/extensions/popover/usePopoverMenu.d.ts +34 -0
  114. package/dist/types/src/extensions/popover/usePopoverMenu.d.ts.map +1 -0
  115. package/dist/types/src/extensions/popover/util.d.ts +8 -0
  116. package/dist/types/src/extensions/popover/util.d.ts.map +1 -0
  117. package/dist/types/src/extensions/preview/preview.d.ts +8 -8
  118. package/dist/types/src/extensions/preview/preview.d.ts.map +1 -1
  119. package/dist/types/src/extensions/replacer.d.ts +21 -0
  120. package/dist/types/src/extensions/replacer.d.ts.map +1 -0
  121. package/dist/types/src/extensions/replacer.test.d.ts +2 -0
  122. package/dist/types/src/extensions/replacer.test.d.ts.map +1 -0
  123. package/dist/types/src/extensions/scrolling.d.ts +78 -0
  124. package/dist/types/src/extensions/scrolling.d.ts.map +1 -0
  125. package/dist/types/src/extensions/state.d.ts +2 -0
  126. package/dist/types/src/extensions/state.d.ts.map +1 -0
  127. package/dist/types/src/extensions/tags/extended-markdown.d.ts +10 -0
  128. package/dist/types/src/extensions/tags/extended-markdown.d.ts.map +1 -0
  129. package/dist/types/src/extensions/tags/extended-markdown.test.d.ts +2 -0
  130. package/dist/types/src/extensions/tags/extended-markdown.test.d.ts.map +1 -0
  131. package/dist/types/src/extensions/tags/index.d.ts +4 -0
  132. package/dist/types/src/extensions/tags/index.d.ts.map +1 -0
  133. package/dist/types/src/extensions/tags/streamer.d.ts +12 -0
  134. package/dist/types/src/extensions/tags/streamer.d.ts.map +1 -0
  135. package/dist/types/src/extensions/tags/xml-tags.d.ts +97 -0
  136. package/dist/types/src/extensions/tags/xml-tags.d.ts.map +1 -0
  137. package/dist/types/src/extensions/tags/xml-util.d.ts +10 -0
  138. package/dist/types/src/extensions/tags/xml-util.d.ts.map +1 -0
  139. package/dist/types/src/hooks/useTextEditor.d.ts +4 -8
  140. package/dist/types/src/hooks/useTextEditor.d.ts.map +1 -1
  141. package/dist/types/src/stories/CommandDialog.stories.d.ts +14 -0
  142. package/dist/types/src/stories/CommandDialog.stories.d.ts.map +1 -0
  143. package/dist/types/src/stories/Comments.stories.d.ts +21 -10
  144. package/dist/types/src/stories/Comments.stories.d.ts.map +1 -1
  145. package/dist/types/src/stories/EditorToolbar.stories.d.ts +39 -3
  146. package/dist/types/src/stories/EditorToolbar.stories.d.ts.map +1 -1
  147. package/dist/types/src/stories/Experimental.stories.d.ts +22 -13
  148. package/dist/types/src/stories/Experimental.stories.d.ts.map +1 -1
  149. package/dist/types/src/stories/Markdown.stories.d.ts +32 -43
  150. package/dist/types/src/stories/Markdown.stories.d.ts.map +1 -1
  151. package/dist/types/src/stories/Outliner.stories.d.ts +15 -21
  152. package/dist/types/src/stories/Outliner.stories.d.ts.map +1 -1
  153. package/dist/types/src/stories/Popover.stories.d.ts +20 -0
  154. package/dist/types/src/stories/Popover.stories.d.ts.map +1 -0
  155. package/dist/types/src/stories/Preview.stories.d.ts +21 -7
  156. package/dist/types/src/stories/Preview.stories.d.ts.map +1 -1
  157. package/dist/types/src/stories/Tags.stories.d.ts +16 -0
  158. package/dist/types/src/stories/Tags.stories.d.ts.map +1 -0
  159. package/dist/types/src/stories/TextEditor.stories.d.ts +37 -52
  160. package/dist/types/src/stories/TextEditor.stories.d.ts.map +1 -1
  161. package/dist/types/src/stories/components/EditorStory.d.ts +6 -9
  162. package/dist/types/src/stories/components/EditorStory.d.ts.map +1 -1
  163. package/dist/types/src/stories/components/util.d.ts.map +1 -1
  164. package/dist/types/src/styles/theme.d.ts.map +1 -1
  165. package/dist/types/src/testing/PreviewPopover.d.ts +20 -0
  166. package/dist/types/src/testing/PreviewPopover.d.ts.map +1 -0
  167. package/dist/types/src/testing/index.d.ts +1 -0
  168. package/dist/types/src/testing/index.d.ts.map +1 -1
  169. package/dist/types/src/testing/util.d.ts +1 -0
  170. package/dist/types/src/testing/util.d.ts.map +1 -1
  171. package/dist/types/src/translations.d.ts +1 -1
  172. package/dist/types/src/types/types.d.ts +2 -2
  173. package/dist/types/src/types/types.d.ts.map +1 -1
  174. package/dist/types/src/util/cursor.d.ts.map +1 -1
  175. package/dist/types/src/util/debug.d.ts +1 -1
  176. package/dist/types/src/util/debug.d.ts.map +1 -1
  177. package/dist/types/src/util/decorations.d.ts +4 -0
  178. package/dist/types/src/util/decorations.d.ts.map +1 -0
  179. package/dist/types/src/util/dom.d.ts +2 -12
  180. package/dist/types/src/util/dom.d.ts.map +1 -1
  181. package/dist/types/src/util/index.d.ts +1 -0
  182. package/dist/types/src/util/index.d.ts.map +1 -1
  183. package/dist/types/src/util/react.d.ts +1 -1
  184. package/dist/types/src/util/react.d.ts.map +1 -1
  185. package/dist/types/tsconfig.tsbuildinfo +1 -1
  186. package/package.json +73 -62
  187. package/src/components/Editor/Editor.stories.tsx +69 -0
  188. package/src/components/Editor/Editor.tsx +58 -15
  189. package/src/components/EditorToolbar/EditorToolbar.tsx +106 -95
  190. package/src/components/EditorToolbar/blocks.ts +21 -24
  191. package/src/components/EditorToolbar/formatting.ts +22 -25
  192. package/src/components/EditorToolbar/headings.ts +16 -9
  193. package/src/components/EditorToolbar/image.ts +8 -4
  194. package/src/components/EditorToolbar/lists.ts +16 -19
  195. package/src/components/EditorToolbar/search.ts +8 -4
  196. package/src/components/EditorToolbar/util.ts +20 -25
  197. package/src/components/EditorToolbar/view-mode.ts +11 -6
  198. package/src/components/index.ts +0 -1
  199. package/src/defaults.ts +5 -2
  200. package/src/extensions/autocomplete/autocomplete.ts +220 -0
  201. package/src/extensions/autocomplete/index.ts +8 -0
  202. package/src/extensions/autocomplete/match.ts +46 -0
  203. package/src/extensions/{command → autocomplete}/placeholder.ts +22 -18
  204. package/src/extensions/{command → autocomplete}/typeahead.ts +8 -50
  205. package/src/extensions/automerge/automerge.stories.tsx +32 -25
  206. package/src/extensions/automerge/automerge.ts +31 -11
  207. package/src/extensions/automerge/cursor.ts +1 -1
  208. package/src/extensions/automerge/defs.ts +1 -1
  209. package/src/extensions/automerge/sync.ts +9 -5
  210. package/src/extensions/automerge/update-automerge.ts +2 -2
  211. package/src/extensions/autoscroll.ts +163 -0
  212. package/src/extensions/awareness/awareness-provider.ts +2 -2
  213. package/src/extensions/awareness/awareness.ts +2 -2
  214. package/src/extensions/blocks.ts +131 -0
  215. package/src/extensions/bookmarks.ts +75 -0
  216. package/src/extensions/comments.ts +20 -14
  217. package/src/extensions/dnd.ts +1 -1
  218. package/src/extensions/factories.ts +54 -35
  219. package/src/extensions/focus.ts +5 -4
  220. package/src/extensions/folding.tsx +3 -6
  221. package/src/extensions/hashtag.tsx +2 -2
  222. package/src/extensions/index.ts +8 -1
  223. package/src/extensions/json.ts +1 -1
  224. package/src/extensions/listener.ts +14 -20
  225. package/src/extensions/markdown/action.ts +2 -1
  226. package/src/extensions/markdown/bundle.ts +40 -6
  227. package/src/extensions/markdown/changes.ts +1 -1
  228. package/src/extensions/markdown/decorate.ts +32 -22
  229. package/src/extensions/markdown/formatting.test.ts +6 -6
  230. package/src/extensions/markdown/formatting.ts +11 -11
  231. package/src/extensions/markdown/highlight.ts +2 -2
  232. package/src/extensions/markdown/image.ts +5 -6
  233. package/src/extensions/markdown/link.ts +3 -0
  234. package/src/extensions/markdown/table.ts +13 -7
  235. package/src/extensions/mention.ts +1 -1
  236. package/src/extensions/modes.ts +2 -2
  237. package/src/extensions/{command/floating-menu.ts → outliner/menu.ts} +16 -21
  238. package/src/extensions/outliner/outliner.test.ts +3 -2
  239. package/src/extensions/outliner/outliner.ts +7 -6
  240. package/src/extensions/outliner/selection.ts +1 -1
  241. package/src/extensions/outliner/tree.test.ts +2 -1
  242. package/src/extensions/outliner/tree.ts +2 -2
  243. package/src/extensions/popover/PopoverMenuProvider.tsx +220 -0
  244. package/src/extensions/popover/index.ts +12 -0
  245. package/src/extensions/popover/menu-presets.ts +124 -0
  246. package/src/extensions/popover/menu.ts +67 -0
  247. package/src/extensions/popover/modal.ts +24 -0
  248. package/src/extensions/popover/popover.ts +289 -0
  249. package/src/extensions/popover/usePopoverMenu.ts +173 -0
  250. package/src/extensions/popover/util.ts +29 -0
  251. package/src/extensions/preview/index.ts +1 -1
  252. package/src/extensions/preview/preview.ts +69 -69
  253. package/src/extensions/replacer.test.ts +75 -0
  254. package/src/extensions/replacer.ts +93 -0
  255. package/src/extensions/scrolling.ts +189 -0
  256. package/src/extensions/selection.ts +3 -3
  257. package/src/extensions/state.ts +7 -0
  258. package/src/extensions/tags/extended-markdown.test.ts +262 -0
  259. package/src/extensions/tags/extended-markdown.ts +78 -0
  260. package/src/extensions/tags/index.ts +7 -0
  261. package/src/extensions/tags/streamer.ts +243 -0
  262. package/src/extensions/tags/xml-tags.ts +500 -0
  263. package/src/extensions/tags/xml-util.ts +94 -0
  264. package/src/extensions/typewriter.ts +1 -1
  265. package/src/hooks/useTextEditor.ts +27 -39
  266. package/src/stories/CommandDialog.stories.tsx +83 -0
  267. package/src/stories/Comments.stories.tsx +15 -11
  268. package/src/stories/EditorToolbar.stories.tsx +17 -17
  269. package/src/stories/Experimental.stories.tsx +17 -13
  270. package/src/stories/Markdown.stories.tsx +25 -21
  271. package/src/stories/Outliner.stories.tsx +54 -35
  272. package/src/stories/Popover.stories.tsx +161 -0
  273. package/src/stories/Preview.stories.tsx +48 -40
  274. package/src/stories/Tags.stories.tsx +95 -0
  275. package/src/stories/TextEditor.stories.tsx +41 -60
  276. package/src/stories/components/EditorStory.tsx +19 -18
  277. package/src/stories/components/util.tsx +39 -6
  278. package/src/styles/markdown.ts +1 -1
  279. package/src/styles/theme.ts +16 -12
  280. package/src/testing/PreviewPopover.tsx +80 -0
  281. package/src/testing/index.ts +1 -0
  282. package/src/testing/util.ts +2 -0
  283. package/src/translations.ts +1 -1
  284. package/src/types/types.ts +1 -1
  285. package/src/util/cursor.ts +2 -1
  286. package/src/util/debug.ts +2 -2
  287. package/src/util/decorations.ts +21 -0
  288. package/src/util/dom.ts +5 -27
  289. package/src/util/index.ts +1 -0
  290. package/src/util/react.tsx +1 -1
  291. package/dist/lib/browser/chunk-22UMM3QJ.mjs.map +0 -7
  292. package/dist/lib/node-esm/chunk-YXYQPV6R.mjs.map +0 -7
  293. package/dist/types/src/components/Popover/CommandMenu.d.ts +0 -34
  294. package/dist/types/src/components/Popover/CommandMenu.d.ts.map +0 -1
  295. package/dist/types/src/components/Popover/RefDropdownMenu.d.ts +0 -21
  296. package/dist/types/src/components/Popover/RefDropdownMenu.d.ts.map +0 -1
  297. package/dist/types/src/components/Popover/RefPopover.d.ts +0 -34
  298. package/dist/types/src/components/Popover/RefPopover.d.ts.map +0 -1
  299. package/dist/types/src/components/Popover/index.d.ts +0 -4
  300. package/dist/types/src/components/Popover/index.d.ts.map +0 -1
  301. package/dist/types/src/extensions/autocomplete.d.ts +0 -13
  302. package/dist/types/src/extensions/autocomplete.d.ts.map +0 -1
  303. package/dist/types/src/extensions/command/action.d.ts +0 -17
  304. package/dist/types/src/extensions/command/action.d.ts.map +0 -1
  305. package/dist/types/src/extensions/command/command-menu.d.ts +0 -20
  306. package/dist/types/src/extensions/command/command-menu.d.ts.map +0 -1
  307. package/dist/types/src/extensions/command/command.d.ts +0 -6
  308. package/dist/types/src/extensions/command/command.d.ts.map +0 -1
  309. package/dist/types/src/extensions/command/floating-menu.d.ts +0 -7
  310. package/dist/types/src/extensions/command/floating-menu.d.ts.map +0 -1
  311. package/dist/types/src/extensions/command/hint.d.ts +0 -24
  312. package/dist/types/src/extensions/command/hint.d.ts.map +0 -1
  313. package/dist/types/src/extensions/command/index.d.ts +0 -7
  314. package/dist/types/src/extensions/command/index.d.ts.map +0 -1
  315. package/dist/types/src/extensions/command/placeholder.d.ts +0 -10
  316. package/dist/types/src/extensions/command/placeholder.d.ts.map +0 -1
  317. package/dist/types/src/extensions/command/state.d.ts +0 -16
  318. package/dist/types/src/extensions/command/state.d.ts.map +0 -1
  319. package/dist/types/src/extensions/command/typeahead.d.ts +0 -22
  320. package/dist/types/src/extensions/command/typeahead.d.ts.map +0 -1
  321. package/dist/types/src/extensions/command/useCommandMenu.d.ts +0 -26
  322. package/dist/types/src/extensions/command/useCommandMenu.d.ts.map +0 -1
  323. package/dist/types/src/stories/Command.stories.d.ts +0 -7
  324. package/dist/types/src/stories/Command.stories.d.ts.map +0 -1
  325. package/dist/types/src/stories/CommandMenu.stories.d.ts +0 -13
  326. package/dist/types/src/stories/CommandMenu.stories.d.ts.map +0 -1
  327. package/src/components/Popover/CommandMenu.tsx +0 -279
  328. package/src/components/Popover/RefDropdownMenu.tsx +0 -85
  329. package/src/components/Popover/RefPopover.tsx +0 -99
  330. package/src/components/Popover/index.ts +0 -7
  331. package/src/extensions/autocomplete.ts +0 -69
  332. package/src/extensions/command/action.ts +0 -56
  333. package/src/extensions/command/command-menu.ts +0 -210
  334. package/src/extensions/command/command.ts +0 -34
  335. package/src/extensions/command/hint.ts +0 -102
  336. package/src/extensions/command/index.ts +0 -10
  337. package/src/extensions/command/state.ts +0 -89
  338. package/src/extensions/command/useCommandMenu.ts +0 -118
  339. package/src/stories/Command.stories.tsx +0 -97
  340. package/src/stories/CommandMenu.stories.tsx +0 -159
@@ -1,19 +1,34 @@
1
- import { type EditorView } from '@codemirror/view';
1
+ import { EditorView } from '@codemirror/view';
2
2
  import React from 'react';
3
3
  import { type ThemedClassName } from '@dxos/react-ui';
4
- import { type DataType } from '@dxos/schema';
5
4
  import { type UseTextEditorProps } from '../../hooks';
5
+ export type EditorController = {
6
+ view: EditorView | null;
7
+ focus: () => void;
8
+ };
6
9
  export type EditorProps = ThemedClassName<{
7
- id: string;
8
- text: DataType.Text;
9
- } & Omit<UseTextEditorProps, 'id'>>;
10
+ moveToEnd?: boolean;
11
+ value?: string;
12
+ onChange?: (value: string) => void;
13
+ } & UseTextEditorProps>;
10
14
  /**
11
15
  * Minimal text editor.
16
+ * NOTE: This shouold not be used with the automerge extension.
12
17
  */
13
18
  export declare const Editor: React.ForwardRefExoticComponent<Omit<{
14
- id: string;
15
- text: DataType.Text;
16
- } & Omit<UseTextEditorProps, "id">, "className"> & {
19
+ moveToEnd?: boolean;
20
+ value?: string;
21
+ onChange?: (value: string) => void;
22
+ } & Pick<import("@codemirror/state").EditorStateConfig, "extensions"> & {
23
+ id?: string;
24
+ doc?: import("@codemirror/state").Text;
25
+ initialValue?: string;
26
+ autoFocus?: boolean;
27
+ scrollTo?: number;
28
+ selection?: import("../..").EditorSelection;
29
+ moveToEndOfLine?: boolean;
30
+ debug?: boolean;
31
+ }, "className"> & {
17
32
  classNames?: import("@dxos/react-ui-types").ClassNameValue;
18
- } & React.RefAttributes<EditorView | undefined>>;
33
+ } & React.RefAttributes<EditorController>>;
19
34
  //# sourceMappingURL=Editor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../../../../src/components/Editor/Editor.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAA0C,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAE,KAAK,eAAe,EAAmB,MAAM,gBAAgB,CAAC;AAEvE,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAErE,MAAM,MAAM,WAAW,GAAG,eAAe,CACvC;IACE,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;CACrB,GAAG,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,CACnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM;QARX,MAAM;UACJ,QAAQ,CAAC,IAAI;;;gDAsBtB,CAAC"}
1
+ {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../../../../src/components/Editor/Editor.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAqD,MAAM,OAAO,CAAC;AAE1E,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAItD,OAAO,EAAE,KAAK,kBAAkB,EAAiB,MAAM,aAAa,CAAC;AAQrE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,UAAU,GAAG,IAAI,CAAC;IACxB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,eAAe,CACvC;IACE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,GAAG,kBAAkB,CACvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,MAAM;gBAVH,OAAO;YACX,MAAM;eACH,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;;;;;;;;;;;;0CAoDrC,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ import React from 'react';
3
+ declare const meta: {
4
+ title: string;
5
+ component: React.ForwardRefExoticComponent<Omit<{
6
+ moveToEnd?: boolean;
7
+ value?: string;
8
+ onChange?: (value: string) => void;
9
+ } & Pick<import("@codemirror/state").EditorStateConfig, "extensions"> & {
10
+ id?: string;
11
+ doc?: import("@codemirror/state").Text;
12
+ initialValue?: string;
13
+ autoFocus?: boolean;
14
+ scrollTo?: number;
15
+ selection?: import("../..").EditorSelection;
16
+ moveToEndOfLine?: boolean;
17
+ debug?: boolean;
18
+ }, "className"> & {
19
+ classNames?: import("@dxos/react-ui-types").ClassNameValue;
20
+ } & React.RefAttributes<import("./Editor").EditorController>>;
21
+ decorators: import("@storybook/react").Decorator[];
22
+ };
23
+ export default meta;
24
+ type Story = StoryObj<typeof meta>;
25
+ export declare const Default: Story;
26
+ export declare const Automerge: Story;
27
+ //# sourceMappingURL=Editor.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Editor.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Editor/Editor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;CAIqB,CAAC;AAEhC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAmBrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAqBvB,CAAC"}
@@ -1,4 +1,19 @@
1
1
  import React from 'react';
2
- import { type EditorToolbarProps } from './util';
3
- export declare const EditorToolbar: React.MemoExoticComponent<({ classNames, attendableId, role, ...props }: EditorToolbarProps) => React.JSX.Element>;
2
+ import { type ThemedClassName } from '@dxos/react-ui';
3
+ import { type EditorViewMode } from '../../types';
4
+ import { type EditorToolbarActionGraphProps } from './util';
5
+ export type EditorToolbarFeatureFlags = Partial<{
6
+ showHeadings: boolean;
7
+ showFormatting: boolean;
8
+ showLists: boolean;
9
+ showBlocks: boolean;
10
+ showSearch: boolean;
11
+ onImageUpload: () => void;
12
+ onViewModeChange: (mode: EditorViewMode) => void;
13
+ }>;
14
+ export type EditorToolbarProps = ThemedClassName<{
15
+ role?: string;
16
+ attendableId?: string;
17
+ } & (EditorToolbarActionGraphProps & EditorToolbarFeatureFlags)>;
18
+ export declare const EditorToolbar: React.MemoExoticComponent<({ classNames, role, attendableId, ...props }: EditorToolbarProps) => React.JSX.Element>;
4
19
  //# sourceMappingURL=EditorToolbar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EditorToolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/EditorToolbar.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAY7C,OAAO,EAAsE,KAAK,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAiGrH,eAAO,MAAM,aAAa,2EAAuD,kBAAkB,uBASjG,CAAC"}
1
+ {"version":3,"file":"EditorToolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/EditorToolbar.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAG7C,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AASzE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAQlD,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,QAAQ,CAAC;AAG5D,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAAC;IAC9C,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IAGpB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,gBAAgB,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,CAAC;CAClD,CAAC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAC9C;IACE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,CAAC,6BAA6B,GAAG,yBAAyB,CAAC,CAChE,CAAC;AAGF,eAAO,MAAM,aAAa,2EAAuD,kBAAkB,uBAUjG,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/blocks.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAG/C,OAAO,EAA+C,KAAK,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAyC9F,eAAO,MAAM,YAAY,GAAI,OAAO,kBAAkB,EAAE,SAAS,MAAM,UAAU;;;;;;;;;;;;;;CAWhF,CAAC"}
1
+ {"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/blocks.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAK/C,OAAO,EAAE,KAAK,kBAAkB,EAA+C,MAAM,QAAQ,CAAC;AAoC9F,eAAO,MAAM,YAAY,GAAI,OAAO,kBAAkB,EAAE,SAAS,MAAM,UAAU;;;;;;;;;;;;;;CAWhF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/formatting.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAG/C,OAAO,EAA+C,KAAK,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAgD9F,eAAO,MAAM,gBAAgB,GAAI,OAAO,kBAAkB,EAAE,SAAS,MAAM,UAAU;;;;;;;;;;;;;;CAUpF,CAAC"}
1
+ {"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/formatting.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAK/C,OAAO,EAAE,KAAK,kBAAkB,EAA+C,MAAM,QAAQ,CAAC;AA2C9F,eAAO,MAAM,gBAAgB,GAAI,OAAO,kBAAkB,EAAE,SAAS,MAAM,UAAU;;;;;;;;;;;;;;CAUpF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"headings.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/headings.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAG/C,OAAO,EAA+C,KAAK,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAuC9F,eAAO,MAAM,cAAc,GAAI,OAAO,kBAAkB,EAAE,SAAS,MAAM,UAAU;;;;;;;;;;;;;;CAWlF,CAAC"}
1
+ {"version":3,"file":"headings.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/headings.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAM/C,OAAO,EAAE,KAAK,kBAAkB,EAA+C,MAAM,QAAQ,CAAC;AA2C9F,eAAO,MAAM,cAAc,GAAI,OAAO,kBAAkB,EAAE,SAAS,MAAM,UAAU;;;;;;;;;;;;;;CAWlF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/image.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,iBAAiB,GAAI,eAAe,MAAM,IAAI;;;;;;;;;;;;;;CAGzD,CAAC"}
1
+ {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/image.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,iBAAiB,GAAI,eAAe,MAAM,IAAI;;;;;;;;;;;;;;CAGzD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"lists.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/lists.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAG/C,OAAO,EAA+C,KAAK,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAsC9F,eAAO,MAAM,WAAW,GAAI,OAAO,kBAAkB,EAAE,SAAS,MAAM,UAAU;;;;;;;;;;;;;;CAW/E,CAAC"}
1
+ {"version":3,"file":"lists.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/lists.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAK/C,OAAO,EAAE,KAAK,kBAAkB,EAA+C,MAAM,QAAQ,CAAC;AAiC9F,eAAO,MAAM,WAAW,GAAI,OAAO,kBAAkB,EAAE,SAAS,MAAM,UAAU;;;;;;;;;;;;;;CAW/E,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/search.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAUnD,eAAO,MAAM,YAAY,GAAI,SAAS,MAAM,UAAU;;;;;;;;;;;;;;CAGpD,CAAC"}
1
+ {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/search.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAcnD,eAAO,MAAM,YAAY,GAAI,SAAS,MAAM,UAAU;;;;;;;;;;;;;;CAGpD,CAAC"}
@@ -1,49 +1,35 @@
1
1
  import { type EditorView } from '@codemirror/view';
2
- import { type Rx } from '@effect-rx/rx-react';
2
+ import { type Atom } from '@effect-atom/atom-react';
3
3
  import { type Action } from '@dxos/app-graph';
4
4
  import { type Live } from '@dxos/live-object';
5
- import { type ThemedClassName } from '@dxos/react-ui';
6
5
  import { type ActionGraphProps, type MenuActionProperties, type MenuItemGroup, type MenuSeparator, type ToolbarMenuActionGroupProperties } from '@dxos/react-ui-menu';
7
6
  import type { EditorAction, Formatting } from '../../extensions';
8
7
  import { type EditorViewMode } from '../../types';
9
- export type EditorToolbarState = Formatting & Partial<{
10
- viewMode: EditorViewMode;
11
- }>;
8
+ export type EditorToolbarState = {
9
+ viewMode?: EditorViewMode;
10
+ } & Formatting;
12
11
  export declare const useEditorToolbarState: (initialState?: Partial<EditorToolbarState>) => Live<EditorToolbarState>;
13
- export type EditorToolbarFeatureFlags = Partial<{
14
- headings: boolean;
15
- formatting: boolean;
16
- lists: boolean;
17
- blocks: boolean;
18
- search: boolean;
19
- image: () => void;
20
- viewMode: (mode: EditorViewMode) => void;
21
- }>;
22
12
  export type EditorToolbarActionGraphProps = {
23
13
  state: Live<EditorToolbarState>;
24
14
  getView: () => EditorView;
25
- customActions?: Rx.Rx<ActionGraphProps>;
15
+ customActions?: Atom.Atom<ActionGraphProps>;
26
16
  };
27
- export type EditorToolbarProps = ThemedClassName<EditorToolbarActionGraphProps & EditorToolbarFeatureFlags & {
28
- attendableId?: string;
29
- role?: string;
30
- }>;
31
17
  export type EditorToolbarItem = EditorAction | MenuItemGroup | MenuSeparator;
32
- export declare const createEditorAction: (id: string, invoke: () => void, properties: Partial<MenuActionProperties>) => Action<MenuActionProperties>;
18
+ export declare const createEditorAction: (id: string, props: Partial<MenuActionProperties>, invoke: () => void) => Action<MenuActionProperties>;
33
19
  export declare const createEditorActionGroup: (id: string, props: Omit<ToolbarMenuActionGroupProperties, "icon">, icon?: string) => {
34
20
  id: string;
35
21
  type: string;
36
22
  properties: {
37
- label: import("@dxos/react-ui").Label;
23
+ value: string | (string & string[]);
38
24
  classNames?: import("@dxos/react-ui-types").ClassNameValue;
39
25
  hidden?: boolean | undefined;
40
26
  variant: "dropdownMenu" | "toggleGroup";
41
- value: string | (string & string[]);
42
27
  disabled?: boolean | undefined;
43
28
  iconOnly: boolean;
44
29
  testId?: string | undefined;
45
30
  checked?: boolean | undefined;
46
31
  selectCardinality: "single" | "multiple";
32
+ label: import("@dxos/react-ui").Label;
47
33
  icon: string | undefined;
48
34
  };
49
35
  data: typeof import("@dxos/app-graph").actionGroupSymbol;
@@ -1 +1 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/util.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,E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kB,CAE7G,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,KAAK,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAChC,OAAO,EAAE,MAAM,UAAU,CAAC;IAE1B,aAAa,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG,aAAa,GAAG,aAAa,CAAC;AAE7E,eAAO,MAAM,kBAAkB,GAAI,IAAI,MAAM,EAAE,OAAO,OAAO,CAAC,oBAAoB,CAAC,EAAE,QAAQ,MAAM,IAAI,KAK/F,MAAM,CAAC,oBAAoB,CAClC,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAClC,IAAI,MAAM,EACV,OAAO,IAAI,CAAC,gCAAgC,EAAE,MAAM,CAAC,EACrD,OAAO,MAAM;;;;;;;;;;;;;;;;;CASd,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { type NodeArg } from '@dxos/app-graph';
2
- import { type EditorToolbarState } from './util';
3
2
  import { type EditorViewMode } from '../../types';
3
+ import { type EditorToolbarState } from './util';
4
4
  export declare const createViewMode: (state: EditorToolbarState, onViewModeChange: (mode: EditorViewMode) => void) => {
5
5
  nodes: (Readonly<Omit<Readonly<{
6
6
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"view-mode.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/view-mode.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAG/C,OAAO,EAA+C,KAAK,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAE9F,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AA4BlD,eAAO,MAAM,cAAc,GAAI,OAAO,kBAAkB,EAAE,kBAAkB,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI;;;;;;;;;;;;;;CAWzG,CAAC"}
1
+ {"version":3,"file":"view-mode.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/view-mode.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAI/C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,EAAE,KAAK,kBAAkB,EAA+C,MAAM,QAAQ,CAAC;AAgC9F,eAAO,MAAM,cAAc,GAAI,OAAO,kBAAkB,EAAE,kBAAkB,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI;;;;;;;;;;;;;;CAWzG,CAAC"}
@@ -1,4 +1,3 @@
1
1
  export * from './Editor';
2
2
  export * from './EditorToolbar';
3
- export * from './Popover';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../src/defaults.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAG3D;;;;;GAKG;AACH,eAAO,MAAM,WAAW,oDAAoD,CAAC;AAE7E,eAAO,MAAM,WAAW,EAAE,sBAAsB,CAAC,OAAO,CAOvD,CAAC;AAEF,eAAO,MAAM,YAAY,uCAKvB,CAAC;AAEH,eAAO,MAAM,eAAe,uCAI1B,CAAC;AAEH,eAAO,MAAM,uBAAuB,sIACiG,CAAC;AAEtI,eAAO,MAAM,gCAAgC,GAAI,OAAO,MAAM,WAI3D,CAAC"}
1
+ {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../src/defaults.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAG3D;;;;;GAKG;AACH,eAAO,MAAM,WAAW,oDAAoD,CAAC;AAE7E,eAAO,MAAM,WAAW,EAAE,sBAAsB,CAAC,OAAO,CAOvD,CAAC;AAEF,eAAO,MAAM,YAAY,uCAOvB,CAAC;AAEH,eAAO,MAAM,eAAe,uCAI1B,CAAC;AAEH,eAAO,MAAM,uBAAuB,sIACiG,CAAC;AAGtI,eAAO,MAAM,gCAAgC,GAAI,OAAO,MAAM,WAI3D,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { type Extension } from '@codemirror/state';
2
+ export type AutocompleteOptions = {
3
+ fireIfEmpty?: boolean;
4
+ /**
5
+ * Callback triggered when Enter is pressed.
6
+ * @param text The current text in the editor
7
+ * @returns true if the editor should reset the document.
8
+ */
9
+ onSubmit?: (text: string) => boolean | void;
10
+ /**
11
+ * Function that returns a list of suggestions based on the current text.
12
+ * @param text The current text before the cursor
13
+ * @returns Array of suggestion strings
14
+ */
15
+ onSuggest?: (text: string) => string[];
16
+ /**
17
+ * ESC pressed.
18
+ */
19
+ onCancel?: () => void;
20
+ };
21
+ /**
22
+ * Creates an autocomplete extension that shows inline suggestions.
23
+ * Pressing Tab will complete the suggestion.
24
+ */
25
+ export declare const autocomplete: ({ fireIfEmpty, onSubmit, onSuggest, onCancel }?: AutocompleteOptions) => Extension;
26
+ //# sourceMappingURL=autocomplete.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/autocomplete/autocomplete.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAQ,MAAM,mBAAmB,CAAC;AAWzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI,CAAC;IAE5C;;;;OAIG;IACH,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,EAAE,CAAC;IAEvC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAEF;;;GAGG;AAEH,eAAO,MAAM,YAAY,GAAI,iDAAgD,mBAAwB,KAAG,SA+JvG,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './autocomplete';
2
+ export * from './match';
3
+ export * from './placeholder';
4
+ export * from './typeahead';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/autocomplete/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC"}
@@ -0,0 +1,13 @@
1
+ export type CompoetionContext = {
2
+ line: string;
3
+ };
4
+ export type CompletionOptions = {
5
+ default?: string;
6
+ minLength?: number;
7
+ };
8
+ /**
9
+ * Util to match current line to a static list of completions.
10
+ */
11
+ export declare const staticCompletion: (completions: string[], options?: CompletionOptions) => ({ line }: CompoetionContext) => string | undefined;
12
+ export declare const matchCompletion: (completion: string, str: string, minLength?: number) => string | undefined;
13
+ //# sourceMappingURL=match.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"match.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/autocomplete/match.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,iBAAiB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEjD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAC1B,aAAa,MAAM,EAAE,EAAE,UAAS,iBAAsB,MACtD,UAAU,iBAAiB,uBAiB3B,CAAC;AAEJ,eAAO,MAAM,eAAe,GAAI,YAAY,MAAM,EAAE,KAAK,MAAM,EAAE,kBAAa,KAAG,MAAM,GAAG,SAUzF,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { type Extension } from '@codemirror/state';
2
+ import { EditorView, WidgetType } from '@codemirror/view';
3
+ type Content = string | HTMLElement | ((view: EditorView) => HTMLElement);
4
+ export type PlaceholderOptions = {
5
+ content: Content;
6
+ delay?: number;
7
+ };
8
+ /**
9
+ * Shows a transient placeholder at the current cursor position.
10
+ */
11
+ export declare const placeholder: ({ content, delay }: PlaceholderOptions) => Extension;
12
+ export declare class PlaceholderWidget extends WidgetType {
13
+ readonly content: Content;
14
+ constructor(content: Content);
15
+ toDOM(view: EditorView): HTMLSpanElement;
16
+ coordsAt(dom: HTMLElement): import("../..").Rect | null;
17
+ ignoreEvent(): boolean;
18
+ }
19
+ export {};
20
+ //# sourceMappingURL=placeholder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"placeholder.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/autocomplete/placeholder.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAc,UAAU,EAA+B,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAInG,KAAK,OAAO,GAAG,MAAM,GAAG,WAAW,GAAG,CAAC,CAAC,IAAI,EAAE,UAAU,KAAK,WAAW,CAAC,CAAC;AAE1E,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,oBAA4B,kBAAkB,KAAG,SAiD5E,CAAC;AAEF,qBAAa,iBAAkB,SAAQ,UAAU;IACnC,QAAQ,CAAC,OAAO,EAAE,OAAO;gBAAhB,OAAO,EAAE,OAAO;IAIrC,KAAK,CAAC,IAAI,EAAE,UAAU;IAgBb,QAAQ,CAAC,GAAG,EAAE,WAAW;IAqBzB,WAAW;CAGrB"}
@@ -0,0 +1,10 @@
1
+ import { type Extension } from '@codemirror/state';
2
+ import { type CompoetionContext } from './match';
3
+ export type TypeaheadOptions = {
4
+ onComplete?: (context: CompoetionContext) => string | undefined;
5
+ };
6
+ /**
7
+ * Shows a completion placeholder.
8
+ */
9
+ export declare const typeahead: ({ onComplete }?: TypeaheadOptions) => Extension;
10
+ //# sourceMappingURL=typeahead.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeahead.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/autocomplete/typeahead.ts"],"names":[],"mappings":"AAIA,OAAO,EAAmB,KAAK,SAAS,EAAyB,MAAM,mBAAmB,CAAC;AAW3F,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAIjD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,MAAM,GAAG,SAAS,CAAC;CACjE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,GAAI,iBAAgB,gBAAqB,KAAG,SA4DjE,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { type Extension } from '@codemirror/state';
2
- import { type DocAccessor } from '@dxos/react-client/echo';
2
+ import { DocAccessor } from '@dxos/client/echo';
3
3
  export declare const automerge: (accessor: DocAccessor) => Extension;
4
4
  //# sourceMappingURL=automerge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"automerge.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/automerge/automerge.ts"],"names":[],"mappings":"AAOA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG/D,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAO3D,eAAO,MAAM,SAAS,GAAI,UAAU,WAAW,KAAG,SAmEjD,CAAC"}
1
+ {"version":3,"file":"automerge.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/automerge/automerge.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,SAAS,EAA2B,MAAM,mBAAmB,CAAC;AAG5E,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAShD,eAAO,MAAM,SAAS,GAAI,UAAU,WAAW,KAAG,SAqFjD,CAAC"}
@@ -1,20 +1,13 @@
1
- import '@dxos-theme';
2
1
  import '@preact/signals-react';
2
+ import { type StoryObj } from '@storybook/react-vite';
3
3
  import React from 'react';
4
- import { DocAccessor, type Space } from '@dxos/react-client/echo';
5
- import { type Identity } from '@dxos/react-client/halo';
6
- type EditorProps = {
7
- source: DocAccessor;
8
- autoFocus?: boolean;
9
- space?: Space;
10
- identity?: Identity;
11
- };
12
- declare const _default: {
4
+ declare const meta: {
13
5
  title: string;
14
- component: ({ source, autoFocus, space, identity }: EditorProps) => React.JSX.Element;
6
+ component: any;
7
+ render: (args: unknown) => React.JSX.Element;
15
8
  decorators: import("@storybook/react").Decorator[];
16
- render: () => React.JSX.Element;
17
9
  parameters: {
10
+ layout: string;
18
11
  translations: [{
19
12
  readonly 'en-US': {
20
13
  readonly "react-ui-editor": {
@@ -32,8 +25,8 @@ declare const _default: {
32
25
  readonly 'selection overlaps existing comment label': "Selection overlaps existing comment";
33
26
  readonly 'select text to comment label': "Select text to comment";
34
27
  readonly 'image label': "Insert image";
35
- readonly 'heading label': "Heading level";
36
28
  readonly 'table label': "Create table";
29
+ readonly 'heading label': "Heading level";
37
30
  readonly 'heading level label_zero': "Paragraph";
38
31
  readonly 'heading level label_one': "Heading level {{count}}";
39
32
  readonly 'heading level label_other': "Heading level {{count}}";
@@ -47,10 +40,8 @@ declare const _default: {
47
40
  }];
48
41
  };
49
42
  };
50
- export default _default;
51
- export declare const Default: {};
52
- export declare const WithEcho: {
53
- decorators: import("@storybook/react").Decorator[];
54
- render: () => React.JSX.Element;
55
- };
43
+ export default meta;
44
+ type Story = StoryObj<typeof meta>;
45
+ export declare const Default: Story;
46
+ export declare const WithEcho: Story;
56
47
  //# sourceMappingURL=automerge.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"automerge.stories.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/automerge/automerge.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,uBAAuB,CAAC;AAI/B,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,EAAE,WAAW,EAAyC,KAAK,KAAK,EAAS,MAAM,yBAAyB,CAAC;AAChH,OAAO,EAAe,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAgBrE,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB,CAAC;;;wDAEsD,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDnE,wBAQE;AAsBF,eAAO,MAAM,OAAO,IAAK,CAAC;AAE1B,eAAO,MAAM,QAAQ;;;CAmBpB,CAAC"}
1
+ {"version":3,"file":"automerge.stories.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/automerge/automerge.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,uBAAuB,CAAC;AAI/B,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAA8B,MAAM,OAAO,CAAC;AAsGnD,QAAA,MAAM,IAAI;;eAEa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOW,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAkBtB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type DocAccessor } from '@dxos/react-client/echo';
1
+ import { type DocAccessor } from '@dxos/client/echo';
2
2
  import { type CursorConverter } from '../../util';
3
3
  export declare const cursorConverter: (accessor: DocAccessor) => CursorConverter;
4
4
  //# sourceMappingURL=cursor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cursor.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/automerge/cursor.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,WAAW,EAAwB,MAAM,yBAAyB,CAAC;AAEjF,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,eAAO,MAAM,eAAe,GAAI,UAAU,WAAW,KAAG,eAkBtD,CAAC"}
1
+ {"version":3,"file":"cursor.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/automerge/cursor.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAAwB,MAAM,mBAAmB,CAAC;AAG3E,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,eAAO,MAAM,eAAe,GAAI,UAAU,WAAW,KAAG,eAkBtD,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { type Heads, type Prop } from '@automerge/automerge';
2
- import { StateEffect, type StateField, type EditorState, type Transaction } from '@codemirror/state';
2
+ import { type EditorState, StateEffect, type StateField, type Transaction } from '@codemirror/state';
3
3
  export type State = {
4
4
  path: Prop[];
5
5
  lastHeads: Heads;
@@ -1 +1 @@
1
- {"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/automerge/defs.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAc,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,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AI,OAAO,WAAW,EAAE,OAAO,UAAU,CAAC,KAAK,CAAC,KAAG,KAAqC,CAAC;AAElH,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,KAAK,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,iBAAiB,0DAAsC,CAAC;AAErE,eAAO,MAAM,WAAW,GAAI,UAAU,KAAK,KAAG,WAAW,CAAC,WAAW,CAAuC,CAAC;AAE7G,eAAO,MAAM,mBAAmB,qDAA+B,CAAC;AAEhE,eAAO,MAAM,WAAW,GAAI,IAAI,WAAW,KAAG,OAE7C,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { type StateField } from '@codemirror/state';
2
2
  import { type EditorView } from '@codemirror/view';
3
- import { type IDocHandle } from '@dxos/react-client/echo';
3
+ import { type IDocHandle } from '@dxos/client/echo';
4
4
  import { type State } from './defs';
5
5
  /**
6
6
  * Implements three-way merge (on each mutation).
@@ -11,7 +11,7 @@ export declare class Syncer {
11
11
  private _pending;
12
12
  constructor(_handle: IDocHandle, _state: StateField<State>);
13
13
  reconcile(view: EditorView, editor: boolean): void;
14
- onEditorChange(view: EditorView): void;
15
- onAutomergeChange(view: EditorView): void;
14
+ private onEditorChange;
15
+ private onAutomergeChange;
16
16
  }
17
17
  //# sourceMappingURL=sync.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/automerge/sync.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAA2D,KAAK,KAAK,EAAe,MAAM,QAAQ,CAAC;AAI1G;;GAEG;AACH,qBAAa,MAAM;IAKf,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM;IALzB,OAAO,CAAC,QAAQ,CAAS;gBAIN,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC;IAG5C,SAAS,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI;IAelD,cAAc,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI;IAatC,iBAAiB,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI;CAkB1C"}
1
+ {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/automerge/sync.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,EAAE,KAAK,KAAK,EAAwE,MAAM,QAAQ,CAAC;AAI1G;;GAEG;AACH,qBAAa,MAAM;IAKf,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM;IALzB,OAAO,CAAC,QAAQ,CAAS;gBAIN,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC;IAG5C,SAAS,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI;IAclD,OAAO,CAAC,cAAc;IAetB,OAAO,CAAC,iBAAiB;CAoB1B"}
@@ -1,6 +1,6 @@
1
1
  import { type Heads } from '@automerge/automerge';
2
2
  import { type EditorState, type StateField, type Transaction } from '@codemirror/state';
3
- import { type IDocHandle } from '@dxos/react-client/echo';
3
+ import { type IDocHandle } from '@dxos/client/echo';
4
4
  import { type State } from './defs';
5
5
  export declare const updateAutomerge: (field: StateField<State>, handle: IDocHandle, transactions: Transaction[], state: EditorState) => Heads | undefined;
6
6
  //# sourceMappingURL=update-automerge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-automerge.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/automerge/update-automerge.ts"],"names":[],"mappings":"AAMA,OAAO,EAAa,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAa,MAAM,mBAAmB,CAAC;AAEnG,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,QAAQ,CAAC;AAEpC,eAAO,MAAM,eAAe,GAC1B,OAAO,UAAU,CAAC,KAAK,CAAC,EACxB,QAAQ,UAAU,EAClB,cAAc,WAAW,EAAE,EAC3B,OAAO,WAAW,KACjB,KAAK,GAAG,SA+BV,CAAC"}
1
+ {"version":3,"file":"update-automerge.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/automerge/update-automerge.ts"],"names":[],"mappings":"AAMA,OAAO,EAAa,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAa,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEnG,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,QAAQ,CAAC;AAEpC,eAAO,MAAM,eAAe,GAC1B,OAAO,UAAU,CAAC,KAAK,CAAC,EACxB,QAAQ,UAAU,EAClB,cAAc,WAAW,EAAE,EAC3B,OAAO,WAAW,KACjB,KAAK,GAAG,SA+BV,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { EditorView } from '@codemirror/view';
2
+ export declare const scrollToBottomEffect: import("@codemirror/state").StateEffectType<ScrollBehavior | undefined>;
3
+ export type AutoScrollOptions = {
4
+ /** Auto-scroll when reaches the bottom. */
5
+ autoScroll?: boolean;
6
+ /** Threshold in px to trigger scroll from bottom. */
7
+ threshold?: number;
8
+ /** Throttle time in ms. */
9
+ throttleDelay?: number;
10
+ /** Callback when auto-scrolling. */
11
+ onAutoScroll?: (props: {
12
+ view: EditorView;
13
+ distanceFromBottom: number;
14
+ }) => boolean | void;
15
+ };
16
+ /**
17
+ * Extension that supports pinning the scroll position and automatically scrolls to the bottom when content is added.
18
+ */
19
+ export declare const autoScroll: ({ autoScroll, threshold, throttleDelay, onAutoScroll, }?: Partial<AutoScrollOptions>) => import("@codemirror/state").Extension[];
20
+ //# sourceMappingURL=autoscroll.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"autoscroll.d.ts","sourceRoot":"","sources":["../../../../src/extensions/autoscroll.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAc,MAAM,kBAAkB,CAAC;AAQ1D,eAAO,MAAM,oBAAoB,yEAAmD,CAAC;AAErF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,2CAA2C;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2BAA2B;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oCAAoC;IACpC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,UAAU,CAAC;QAAC,kBAAkB,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,GAAG,IAAI,CAAC;CAC5F,CAAC;AAEF;;GAEG;AAEH,eAAO,MAAM,UAAU,GAAI,0DAKxB,OAAO,CAAC,iBAAiB,CAAM,4CA+HjC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Event } from '@dxos/async';
2
- import { type Space } from '@dxos/react-client/echo';
2
+ import { type Space } from '@dxos/client/echo';
3
3
  import { type AwarenessInfo, type AwarenessPosition, type AwarenessProvider, type AwarenessState } from './awareness';
4
4
  export type AwarenessProviderParams = {
5
5
  space: Space;
@@ -1 +1 @@
1
- {"version":3,"file":"awareness-provider.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/awareness/awareness-provider.ts"],"names":[],"mappings":"AAIA,OAAO,EAAgB,KAAK,EAAS,MAAM,aAAa,CAAC;AAIzD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAGrD,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAatH,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,aAAa,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,qBAAa,sBAAuB,YAAW,iBAAiB;IAC9D,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAqC;IAEnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;IAC/B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;IAEtC,OAAO,CAAC,IAAI,CAAC,CAAU;IACvB,OAAO,CAAC,SAAS,CAAC,CAAe;IACjC,OAAO,CAAC,WAAW,CAAC,CAAiB;IAErC,SAAgB,iBAAiB,cAAqB;gBAE1C,MAAM,EAAE,uBAAuB;IAO3C,IAAI,IAAI,IAAI;IAuCZ,KAAK,IAAI,IAAI;IAMb,eAAe,IAAI,cAAc,EAAE;IAInC,MAAM,CAAC,QAAQ,EAAE,iBAAiB,GAAG,SAAS,GAAG,IAAI;IAWrD,OAAO,CAAC,mBAAmB;IAK3B,OAAO,CAAC,kBAAkB;CAM3B"}
1
+ {"version":3,"file":"awareness-provider.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/awareness/awareness-provider.ts"],"names":[],"mappings":"AAIA,OAAO,EAAgB,KAAK,EAAS,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAM/C,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAatH,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,aAAa,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,qBAAa,sBAAuB,YAAW,iBAAiB;IAC9D,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAqC;IAEnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;IAC/B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;IAEtC,OAAO,CAAC,IAAI,CAAC,CAAU;IACvB,OAAO,CAAC,SAAS,CAAC,CAAe;IACjC,OAAO,CAAC,WAAW,CAAC,CAAiB;IAErC,SAAgB,iBAAiB,cAAqB;gBAE1C,MAAM,EAAE,uBAAuB;IAO3C,IAAI,IAAI,IAAI;IAuCZ,KAAK,IAAI,IAAI;IAMb,eAAe,IAAI,cAAc,EAAE;IAInC,MAAM,CAAC,QAAQ,EAAE,iBAAiB,GAAG,SAAS,GAAG,IAAI;IAWrD,OAAO,CAAC,mBAAmB;IAK3B,OAAO,CAAC,kBAAkB;CAM3B"}
@@ -0,0 +1,2 @@
1
+ export declare const blocks: () => import("@codemirror/state").Extension[];
2
+ //# sourceMappingURL=blocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../../../src/extensions/blocks.ts"],"names":[],"mappings":"AAiGA,eAAO,MAAM,MAAM,+CAiClB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { type Extension } from '@codemirror/state';
2
+ type Bookmark = {
3
+ id: string;
4
+ pos: number;
5
+ name: string;
6
+ };
7
+ export declare const addBookmark: import("@codemirror/state").StateEffectType<Bookmark>;
8
+ export declare const removeBookmark: import("@codemirror/state").StateEffectType<string>;
9
+ export declare const clearBookmarks: import("@codemirror/state").StateEffectType<void>;
10
+ export declare const bookmarks: () => Extension;
11
+ export {};
12
+ //# sourceMappingURL=bookmarks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bookmarks.d.ts","sourceRoot":"","sources":["../../../../src/extensions/bookmarks.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAiC,MAAM,mBAAmB,CAAC;AAGlF,KAAK,QAAQ,GAAG;IACd,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,WAAW,uDAAiC,CAAC;AAC1D,eAAO,MAAM,cAAc,qDAA+B,CAAC;AAC3D,eAAO,MAAM,cAAc,mDAA6B,CAAC;AAEzD,eAAO,MAAM,SAAS,QAAO,SAwB5B,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { type Extension, StateField } from '@codemirror/state';
2
2
  import { type Command, EditorView, type Rect } from '@codemirror/view';
3
3
  import { type CleanupFn } from '@dxos/async';
4
- import { type RenderCallback, type Comment, type Range } from '../types';
4
+ import { type Comment, type Range, type RenderCallback } from '../types';
5
5
  type CommentState = {
6
6
  comment: Comment;
7
7
  range: Range;
@@ -1 +1 @@
1
- {"version":3,"file":"comments.d.ts","sourceRoot":"","sources":["../../../../src/extensions/comments.ts"],"names":[],"mappings":"AAKA,OAAO,EAAmB,KAAK,SAAS,EAAe,UAAU,EAAa,MAAM,mBAAmB,CAAC;AACxG,OAAO,EAGL,KAAK,OAAO,EAEZ,UAAU,EACV,KAAK,IAAI,EAGV,MAAM,kBAAkB,CAAC;AAI1B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M,CAAA;KAAE,KAAK,IAAI,CAAC;IAC5D;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;CAC3C,CAAC;AAIF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,GAAI,UAAS,eAAoB,KAAG,SAiIxD,CAAC;AAMF,eAAO,MAAM,oBAAoB,GAAI,MAAM,UAAU,EAAE,IAAI,MAAM,EAAE,gBAAa,SA4B/E,CAAC;AA0BF,eAAO,MAAM,yBAAyB,GACpC,IAAI,MAAM,EACV,WAAW,CAAC,IAAI,EAAE,MAAM,IAAI,KAAK,SAAS,EAC1C,aAAa,MAAM,OAAO,EAAE,KAC3B,SAOA,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAI,MAAM,UAAU,GAAG,IAAI,GAAG,SAAS,EAAE,IAAI,MAAM,EAAE,WAAW,OAAO,EAAE,SAYhG,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"dnd.d.ts","sourceRoot":"","sources":["../../../../src/extensions/dnd.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAc,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE1D,MAAM,MAAM,UAAU,GAAG;IAAE,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE;QAAE,KAAK,EAAE,QAAQ,CAAA;KAAE,KAAK,IAAI,CAAA;CAAE,CAAC;AAa7F,eAAO,MAAM,QAAQ,GAAI,UAAS,UAAe,KAAG,SAgBnD,CAAC"}
1
+ {"version":3,"file":"dnd.d.ts","sourceRoot":"","sources":["../../../../src/extensions/dnd.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAc,MAAM,kBAAkB,CAAC;AAE1D,MAAM,MAAM,UAAU,GAAG;IAAE,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE;QAAE,KAAK,EAAE,QAAQ,CAAA;KAAE,KAAK,IAAI,CAAA;CAAE,CAAC;AAa7F,eAAO,MAAM,QAAQ,GAAI,UAAS,UAAe,KAAG,SAgBnD,CAAC"}