@dxos/react-ui-editor 0.8.2-staging.7ac8446 → 0.8.3-main.672df60

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 (279) hide show
  1. package/dist/lib/browser/index.mjs +4505 -3151
  2. package/dist/lib/browser/index.mjs.map +4 -4
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/lib/browser/testing/index.mjs +6 -0
  5. package/dist/lib/browser/testing/index.mjs.map +7 -0
  6. package/dist/lib/node/index.cjs +3360 -1998
  7. package/dist/lib/node/index.cjs.map +4 -4
  8. package/dist/lib/node/meta.json +1 -1
  9. package/dist/lib/node/testing/index.cjs +29 -0
  10. package/dist/lib/node/testing/index.cjs.map +7 -0
  11. package/dist/lib/node-esm/index.mjs +4505 -3151
  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 +8 -0
  15. package/dist/lib/node-esm/testing/index.mjs.map +7 -0
  16. package/dist/types/src/components/EditorToolbar/EditorToolbar.d.ts +1 -1
  17. package/dist/types/src/components/EditorToolbar/EditorToolbar.d.ts.map +1 -1
  18. package/dist/types/src/components/EditorToolbar/blocks.d.ts +4 -3
  19. package/dist/types/src/components/EditorToolbar/blocks.d.ts.map +1 -1
  20. package/dist/types/src/components/EditorToolbar/formatting.d.ts +4 -3
  21. package/dist/types/src/components/EditorToolbar/formatting.d.ts.map +1 -1
  22. package/dist/types/src/components/EditorToolbar/headings.d.ts +4 -3
  23. package/dist/types/src/components/EditorToolbar/headings.d.ts.map +1 -1
  24. package/dist/types/src/components/EditorToolbar/{comment.d.ts → image.d.ts} +4 -5
  25. package/dist/types/src/components/EditorToolbar/image.d.ts.map +1 -0
  26. package/dist/types/src/components/EditorToolbar/index.d.ts +1 -1
  27. package/dist/types/src/components/EditorToolbar/index.d.ts.map +1 -1
  28. package/dist/types/src/components/EditorToolbar/lists.d.ts +4 -3
  29. package/dist/types/src/components/EditorToolbar/lists.d.ts.map +1 -1
  30. package/dist/types/src/components/EditorToolbar/search.d.ts +17 -0
  31. package/dist/types/src/components/EditorToolbar/search.d.ts.map +1 -0
  32. package/dist/types/src/components/EditorToolbar/util.d.ts +17 -25
  33. package/dist/types/src/components/EditorToolbar/util.d.ts.map +1 -1
  34. package/dist/types/src/components/EditorToolbar/{viewMode.d.ts → view-mode.d.ts} +5 -4
  35. package/dist/types/src/components/EditorToolbar/view-mode.d.ts.map +1 -0
  36. package/dist/types/src/components/Popover/RefDropdownMenu.d.ts +21 -0
  37. package/dist/types/src/components/Popover/RefDropdownMenu.d.ts.map +1 -0
  38. package/dist/types/src/components/Popover/RefPopover.d.ts +21 -0
  39. package/dist/types/src/components/Popover/RefPopover.d.ts.map +1 -0
  40. package/dist/types/src/components/Popover/index.d.ts +3 -0
  41. package/dist/types/src/components/Popover/index.d.ts.map +1 -0
  42. package/dist/types/src/components/index.d.ts +1 -0
  43. package/dist/types/src/components/index.d.ts.map +1 -1
  44. package/dist/types/src/defaults.d.ts +3 -5
  45. package/dist/types/src/defaults.d.ts.map +1 -1
  46. package/dist/types/src/extensions/annotations.d.ts +4 -1
  47. package/dist/types/src/extensions/annotations.d.ts.map +1 -1
  48. package/dist/types/src/extensions/autocomplete.d.ts +1 -2
  49. package/dist/types/src/extensions/autocomplete.d.ts.map +1 -1
  50. package/dist/types/src/extensions/automerge/automerge.d.ts.map +1 -1
  51. package/dist/types/src/extensions/automerge/automerge.stories.d.ts.map +1 -1
  52. package/dist/types/src/extensions/automerge/cursor.d.ts.map +1 -1
  53. package/dist/types/src/extensions/automerge/defs.d.ts +1 -1
  54. package/dist/types/src/extensions/automerge/defs.d.ts.map +1 -1
  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/automerge/update-codemirror.d.ts +1 -1
  59. package/dist/types/src/extensions/automerge/update-codemirror.d.ts.map +1 -1
  60. package/dist/types/src/extensions/awareness/awareness-provider.d.ts.map +1 -1
  61. package/dist/types/src/extensions/awareness/awareness.d.ts.map +1 -1
  62. package/dist/types/src/extensions/blast.d.ts.map +1 -1
  63. package/dist/types/src/extensions/command/action.d.ts +17 -0
  64. package/dist/types/src/extensions/command/action.d.ts.map +1 -0
  65. package/dist/types/src/extensions/command/command.d.ts +4 -10
  66. package/dist/types/src/extensions/command/command.d.ts.map +1 -1
  67. package/dist/types/src/extensions/command/hint.d.ts +18 -4
  68. package/dist/types/src/extensions/command/hint.d.ts.map +1 -1
  69. package/dist/types/src/extensions/command/index.d.ts +3 -0
  70. package/dist/types/src/extensions/command/index.d.ts.map +1 -1
  71. package/dist/types/src/extensions/command/menu.d.ts +6 -11
  72. package/dist/types/src/extensions/command/menu.d.ts.map +1 -1
  73. package/dist/types/src/extensions/command/state.d.ts +9 -11
  74. package/dist/types/src/extensions/command/state.d.ts.map +1 -1
  75. package/dist/types/src/extensions/command/typeahead.d.ts +17 -0
  76. package/dist/types/src/extensions/command/typeahead.d.ts.map +1 -0
  77. package/dist/types/src/extensions/comments.d.ts +9 -17
  78. package/dist/types/src/extensions/comments.d.ts.map +1 -1
  79. package/dist/types/src/extensions/debug.d.ts.map +1 -1
  80. package/dist/types/src/extensions/dnd.d.ts.map +1 -1
  81. package/dist/types/src/extensions/factories.d.ts +4 -0
  82. package/dist/types/src/extensions/factories.d.ts.map +1 -1
  83. package/dist/types/src/extensions/folding.d.ts.map +1 -1
  84. package/dist/types/src/extensions/hashtag.d.ts +3 -0
  85. package/dist/types/src/extensions/hashtag.d.ts.map +1 -0
  86. package/dist/types/src/extensions/index.d.ts +4 -0
  87. package/dist/types/src/extensions/index.d.ts.map +1 -1
  88. package/dist/types/src/extensions/json.d.ts +7 -0
  89. package/dist/types/src/extensions/json.d.ts.map +1 -0
  90. package/dist/types/src/extensions/listener.d.ts.map +1 -1
  91. package/dist/types/src/extensions/markdown/{editorAction.d.ts → action.d.ts} +1 -1
  92. package/dist/types/src/extensions/markdown/action.d.ts.map +1 -0
  93. package/dist/types/src/extensions/markdown/bundle.d.ts +2 -1
  94. package/dist/types/src/extensions/markdown/bundle.d.ts.map +1 -1
  95. package/dist/types/src/extensions/markdown/changes.d.ts.map +1 -1
  96. package/dist/types/src/extensions/markdown/debug.d.ts +2 -2
  97. package/dist/types/src/extensions/markdown/debug.d.ts.map +1 -1
  98. package/dist/types/src/extensions/markdown/decorate.d.ts +5 -1
  99. package/dist/types/src/extensions/markdown/decorate.d.ts.map +1 -1
  100. package/dist/types/src/extensions/markdown/formatting.d.ts +3 -3
  101. package/dist/types/src/extensions/markdown/formatting.d.ts.map +1 -1
  102. package/dist/types/src/extensions/markdown/highlight.d.ts.map +1 -1
  103. package/dist/types/src/extensions/markdown/image.d.ts.map +1 -1
  104. package/dist/types/src/extensions/markdown/index.d.ts +1 -1
  105. package/dist/types/src/extensions/markdown/index.d.ts.map +1 -1
  106. package/dist/types/src/extensions/markdown/link.d.ts +4 -1
  107. package/dist/types/src/extensions/markdown/link.d.ts.map +1 -1
  108. package/dist/types/src/extensions/markdown/styles.d.ts.map +1 -1
  109. package/dist/types/src/extensions/markdown/table.d.ts.map +1 -1
  110. package/dist/types/src/extensions/mention.d.ts.map +1 -1
  111. package/dist/types/src/extensions/modes.d.ts +5 -5
  112. package/dist/types/src/extensions/modes.d.ts.map +1 -1
  113. package/dist/types/src/extensions/outliner/commands.d.ts +10 -0
  114. package/dist/types/src/extensions/outliner/commands.d.ts.map +1 -0
  115. package/dist/types/src/extensions/outliner/editor.d.ts +5 -0
  116. package/dist/types/src/extensions/outliner/editor.d.ts.map +1 -0
  117. package/dist/types/src/extensions/outliner/editor.test.d.ts +2 -0
  118. package/dist/types/src/extensions/outliner/editor.test.d.ts.map +1 -0
  119. package/dist/types/src/extensions/outliner/index.d.ts +4 -0
  120. package/dist/types/src/extensions/outliner/index.d.ts.map +1 -0
  121. package/dist/types/src/extensions/outliner/outliner.d.ts +11 -0
  122. package/dist/types/src/extensions/outliner/outliner.d.ts.map +1 -0
  123. package/dist/types/src/extensions/outliner/outliner.test.d.ts +2 -0
  124. package/dist/types/src/extensions/outliner/outliner.test.d.ts.map +1 -0
  125. package/dist/types/src/extensions/outliner/selection.d.ts +12 -0
  126. package/dist/types/src/extensions/outliner/selection.d.ts.map +1 -0
  127. package/dist/types/src/extensions/outliner/tree.d.ts +79 -0
  128. package/dist/types/src/extensions/outliner/tree.d.ts.map +1 -0
  129. package/dist/types/src/extensions/outliner/tree.test.d.ts +2 -0
  130. package/dist/types/src/extensions/outliner/tree.test.d.ts.map +1 -0
  131. package/dist/types/src/extensions/preview/index.d.ts +2 -0
  132. package/dist/types/src/extensions/preview/index.d.ts.map +1 -0
  133. package/dist/types/src/extensions/preview/preview.d.ts +39 -0
  134. package/dist/types/src/extensions/preview/preview.d.ts.map +1 -0
  135. package/dist/types/src/extensions/selection.d.ts.map +1 -1
  136. package/dist/types/src/extensions/typewriter.d.ts.map +1 -1
  137. package/dist/types/src/hooks/index.d.ts +0 -1
  138. package/dist/types/src/hooks/index.d.ts.map +1 -1
  139. package/dist/types/src/hooks/useTextEditor.d.ts +2 -1
  140. package/dist/types/src/hooks/useTextEditor.d.ts.map +1 -1
  141. package/dist/types/src/stories/Command.stories.d.ts +7 -0
  142. package/dist/types/src/stories/Command.stories.d.ts.map +1 -0
  143. package/dist/types/src/stories/Comments.stories.d.ts +13 -0
  144. package/dist/types/src/stories/Comments.stories.d.ts.map +1 -0
  145. package/dist/types/src/stories/EditorToolbar.stories.d.ts +12 -0
  146. package/dist/types/src/stories/EditorToolbar.stories.d.ts.map +1 -0
  147. package/dist/types/src/stories/Experimental.stories.d.ts +16 -0
  148. package/dist/types/src/stories/Experimental.stories.d.ts.map +1 -0
  149. package/dist/types/src/stories/Markdown.stories.d.ts +46 -0
  150. package/dist/types/src/stories/Markdown.stories.d.ts.map +1 -0
  151. package/dist/types/src/stories/Outliner.stories.d.ts +26 -0
  152. package/dist/types/src/stories/Outliner.stories.d.ts.map +1 -0
  153. package/dist/types/src/stories/Preview.stories.d.ts +10 -0
  154. package/dist/types/src/stories/Preview.stories.d.ts.map +1 -0
  155. package/dist/types/src/stories/TextEditor.stories.d.ts +55 -0
  156. package/dist/types/src/stories/TextEditor.stories.d.ts.map +1 -0
  157. package/dist/types/src/stories/components/EditorStory.d.ts +43 -0
  158. package/dist/types/src/stories/components/EditorStory.d.ts.map +1 -0
  159. package/dist/types/src/stories/components/index.d.ts +3 -0
  160. package/dist/types/src/stories/components/index.d.ts.map +1 -0
  161. package/dist/types/src/stories/components/util.d.ts +38 -0
  162. package/dist/types/src/stories/components/util.d.ts.map +1 -0
  163. package/dist/types/src/styles/theme.d.ts.map +1 -1
  164. package/dist/types/src/styles/tokens.d.ts.map +1 -1
  165. package/dist/types/src/testing/index.d.ts +2 -0
  166. package/dist/types/src/testing/index.d.ts.map +1 -0
  167. package/dist/types/src/testing/util.d.ts +2 -0
  168. package/dist/types/src/testing/util.d.ts.map +1 -0
  169. package/dist/types/src/types.d.ts +5 -0
  170. package/dist/types/src/types.d.ts.map +1 -1
  171. package/dist/types/src/util/cursor.d.ts.map +1 -1
  172. package/dist/types/src/util/debug.d.ts.map +1 -1
  173. package/dist/types/src/util/dom.d.ts.map +1 -1
  174. package/dist/types/src/util/facet.d.ts.map +1 -1
  175. package/dist/types/src/util/react.d.ts +6 -1
  176. package/dist/types/src/util/react.d.ts.map +1 -1
  177. package/dist/types/tsconfig.tsbuildinfo +1 -1
  178. package/package.json +47 -30
  179. package/src/components/EditorToolbar/EditorToolbar.tsx +95 -72
  180. package/src/components/EditorToolbar/blocks.ts +27 -6
  181. package/src/components/EditorToolbar/formatting.ts +34 -7
  182. package/src/components/EditorToolbar/headings.ts +9 -8
  183. package/src/components/EditorToolbar/image.ts +16 -0
  184. package/src/components/EditorToolbar/index.ts +7 -1
  185. package/src/components/EditorToolbar/lists.ts +26 -7
  186. package/src/components/EditorToolbar/search.ts +19 -0
  187. package/src/components/EditorToolbar/util.ts +19 -20
  188. package/src/components/EditorToolbar/{viewMode.ts → view-mode.ts} +9 -8
  189. package/src/components/Popover/RefDropdownMenu.tsx +77 -0
  190. package/src/components/Popover/RefPopover.tsx +75 -0
  191. package/src/components/Popover/index.ts +6 -0
  192. package/src/components/index.ts +1 -0
  193. package/src/defaults.ts +12 -13
  194. package/src/extensions/annotations.ts +41 -64
  195. package/src/extensions/autocomplete.ts +5 -6
  196. package/src/extensions/automerge/automerge.stories.tsx +13 -24
  197. package/src/extensions/automerge/automerge.test.tsx +6 -5
  198. package/src/extensions/automerge/automerge.ts +2 -2
  199. package/src/extensions/automerge/defs.ts +1 -2
  200. package/src/extensions/automerge/sync.ts +7 -7
  201. package/src/extensions/automerge/update-automerge.ts +1 -1
  202. package/src/extensions/automerge/update-codemirror.ts +3 -4
  203. package/src/extensions/awareness/awareness-provider.ts +4 -4
  204. package/src/extensions/awareness/awareness.ts +7 -7
  205. package/src/extensions/blast.ts +9 -9
  206. package/src/extensions/command/action.ts +49 -0
  207. package/src/extensions/command/command.ts +7 -27
  208. package/src/extensions/command/hint.ts +36 -33
  209. package/src/extensions/command/index.ts +3 -0
  210. package/src/extensions/command/menu.ts +91 -54
  211. package/src/extensions/command/state.ts +41 -61
  212. package/src/extensions/command/typeahead.ts +116 -0
  213. package/src/extensions/comments.ts +11 -76
  214. package/src/extensions/factories.ts +13 -0
  215. package/src/extensions/folding.tsx +1 -1
  216. package/src/extensions/hashtag.tsx +68 -0
  217. package/src/extensions/index.ts +4 -0
  218. package/src/extensions/json.ts +57 -0
  219. package/src/extensions/markdown/bundle.ts +13 -9
  220. package/src/extensions/markdown/changes.ts +3 -2
  221. package/src/extensions/markdown/debug.ts +2 -2
  222. package/src/extensions/markdown/decorate.ts +19 -17
  223. package/src/extensions/markdown/formatting.ts +6 -6
  224. package/src/extensions/markdown/image.ts +14 -13
  225. package/src/extensions/markdown/index.ts +1 -1
  226. package/src/extensions/markdown/link.ts +33 -24
  227. package/src/extensions/markdown/styles.ts +4 -3
  228. package/src/extensions/markdown/table.ts +3 -3
  229. package/src/extensions/modes.ts +5 -6
  230. package/src/extensions/outliner/commands.ts +270 -0
  231. package/src/extensions/outliner/editor.test.ts +33 -0
  232. package/src/extensions/outliner/editor.ts +184 -0
  233. package/src/extensions/outliner/index.ts +7 -0
  234. package/src/extensions/outliner/outliner.test.ts +99 -0
  235. package/src/extensions/outliner/outliner.ts +169 -0
  236. package/src/extensions/outliner/selection.ts +50 -0
  237. package/src/extensions/outliner/tree.test.ts +164 -0
  238. package/src/extensions/outliner/tree.ts +315 -0
  239. package/src/extensions/preview/index.ts +5 -0
  240. package/src/extensions/preview/preview.ts +271 -0
  241. package/src/hooks/index.ts +0 -1
  242. package/src/hooks/useTextEditor.ts +4 -3
  243. package/src/stories/Command.stories.tsx +97 -0
  244. package/src/stories/Comments.stories.tsx +98 -0
  245. package/src/stories/EditorToolbar.stories.tsx +96 -0
  246. package/src/stories/Experimental.stories.tsx +86 -0
  247. package/src/stories/Markdown.stories.tsx +121 -0
  248. package/src/stories/Outliner.stories.tsx +120 -0
  249. package/src/stories/Preview.stories.tsx +149 -0
  250. package/src/stories/TextEditor.stories.tsx +256 -0
  251. package/src/stories/components/EditorStory.tsx +135 -0
  252. package/src/stories/components/index.ts +6 -0
  253. package/src/stories/components/util.tsx +231 -0
  254. package/src/styles/theme.ts +15 -5
  255. package/src/styles/tokens.ts +1 -2
  256. package/src/testing/index.ts +5 -0
  257. package/src/testing/util.ts +5 -0
  258. package/src/types.ts +7 -0
  259. package/src/util/react.tsx +20 -2
  260. package/dist/types/src/InputMode.stories.d.ts +0 -57
  261. package/dist/types/src/InputMode.stories.d.ts.map +0 -1
  262. package/dist/types/src/TextEditor.stories.d.ts +0 -115
  263. package/dist/types/src/TextEditor.stories.d.ts.map +0 -1
  264. package/dist/types/src/components/EditorToolbar/comment.d.ts.map +0 -1
  265. package/dist/types/src/components/EditorToolbar/viewMode.d.ts.map +0 -1
  266. package/dist/types/src/extensions/command/preview.d.ts +0 -12
  267. package/dist/types/src/extensions/command/preview.d.ts.map +0 -1
  268. package/dist/types/src/extensions/markdown/editorAction.d.ts.map +0 -1
  269. package/dist/types/src/fragments.d.ts +0 -3
  270. package/dist/types/src/fragments.d.ts.map +0 -1
  271. package/dist/types/src/hooks/useActionHandler.d.ts +0 -4
  272. package/dist/types/src/hooks/useActionHandler.d.ts.map +0 -1
  273. package/src/InputMode.stories.tsx +0 -124
  274. package/src/TextEditor.stories.tsx +0 -856
  275. package/src/components/EditorToolbar/comment.ts +0 -23
  276. package/src/extensions/command/preview.ts +0 -79
  277. package/src/fragments.ts +0 -19
  278. package/src/hooks/useActionHandler.ts +0 -12
  279. /package/src/extensions/markdown/{editorAction.ts → action.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/preview/preview.ts"],"names":[],"mappings":"AAIA,OAAO,8BAA8B,CAAC;AAGtC,OAAO,EAEL,KAAK,SAAS,EAKf,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,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,aAAa,GACrB;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE,iBAAiB,CAAC;CAC3B,GACD;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,cAAc,CAAC;CACtB,CAAC;AAGN,MAAM,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,cAAc,KAAK,OAAO,CAAC,iBAAiB,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;AAEpG,MAAM,MAAM,oBAAoB,GAAG,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;AAEnE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,cAAc,CAAC;IACrB,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,QAAQ,CAAC,EAAE,aAAa,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,WAAW,CAAC,EAAE,cAAc,CAAC,kBAAkB,CAAC,CAAC;IACjD,QAAQ,CAAC,EAAE,aAAa,CAAC;CAC1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,GAAI,UAAS,cAAmB,KAAG,SAwBtD,CAAC"}
@@ -1 +1 @@
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,4BAA6B,oBAAoB,KAAG,eAO5F,CAAC;AAEF,eAAO,MAAM,sBAAsB,cAAe,MAAM,KAAG,gBAWzD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc,4BAA4B,OAAO,CAAC,gBAAgB,CAAC,KAAQ,SAuCvF,CAAC"}
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 +1 @@
1
- {"version":3,"file":"typewriter.d.ts","sourceRoot":"","sources":["../../../../src/extensions/typewriter.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAKnD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,UAAU,sBAA0C,WAAW,KAAQ,SAgDnF,CAAC"}
1
+ {"version":3,"file":"typewriter.d.ts","sourceRoot":"","sources":["../../../../src/extensions/typewriter.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAKnD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,mBAAsC,WAAgB,KAAG,SAgDnF,CAAC"}
@@ -1,3 +1,2 @@
1
- export * from './useActionHandler';
2
1
  export * from './useTextEditor';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type EditorStateConfig } from '@codemirror/state';
1
+ import { type EditorStateConfig, type Text } from '@codemirror/state';
2
2
  import { EditorView } from '@codemirror/view';
3
3
  import { type TabsterTypes } from '@fluentui/react-tabster';
4
4
  import { type DependencyList, type KeyboardEventHandler, type RefObject } from 'react';
@@ -22,6 +22,7 @@ export type CursorInfo = {
22
22
  };
23
23
  export type UseTextEditorProps = Pick<EditorStateConfig, 'extensions'> & {
24
24
  id?: string;
25
+ doc?: Text;
25
26
  initialValue?: string;
26
27
  className?: string;
27
28
  autoFocus?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"useTextEditor.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTextEditor.ts"],"names":[],"mappings":"AAIA,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC/E,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AAGf,OAAO,EAAgC,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAE9E,OAAO,EAAE,KAAK,eAAe,EAA6D,MAAM,eAAe,CAAC;AAGhH,MAAM,MAAM,aAAa,GAAG;IAE1B,SAAS,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IACrC,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,eAAe,CAAC,EAAE,YAAY,CAAC,mBAAmB,GAAG;QACnD,QAAQ,EAAE,CAAC,CAAC;QACZ,OAAO,EAAE,oBAAoB,CAAC,cAAc,CAAC,CAAC;KAC/C,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,iBAAiB,EAAE,YAAY,CAAC,GAAG;IACvE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,aAAa,WACjB,aAAa,CAAC,kBAAkB,CAAC,SAClC,cAAc,KACnB,aA+HF,CAAC"}
1
+ {"version":3,"file":"useTextEditor.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTextEditor.ts"],"names":[],"mappings":"AAIA,OAAO,EAAe,KAAK,iBAAiB,EAAE,KAAK,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC/E,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AAGf,OAAO,EAAgC,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAE9E,OAAO,EAAE,KAAK,eAAe,EAA6D,MAAM,eAAe,CAAC;AAGhH,MAAM,MAAM,aAAa,GAAG;IAE1B,SAAS,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IACrC,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,eAAe,CAAC,EAAE,YAAY,CAAC,mBAAmB,GAAG;QACnD,QAAQ,EAAE,CAAC,CAAC;QACZ,OAAO,EAAE,oBAAoB,CAAC,cAAc,CAAC,CAAC;KAC/C,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,iBAAiB,EAAE,YAAY,CAAC,GAAG;IACvE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,aAAa,GACxB,QAAO,aAAa,CAAC,kBAAkB,CAAM,EAC7C,OAAM,cAAmB,KACxB,aA+HF,CAAC"}
@@ -0,0 +1,7 @@
1
+ import '@dxos-theme';
2
+ import { type Meta } from '@dxos/storybook-utils';
3
+ import { EditorStory } from './components';
4
+ declare const meta: Meta<typeof EditorStory>;
5
+ export default meta;
6
+ export declare const Default: {};
7
+ //# sourceMappingURL=Command.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Command.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Command.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAMrB,OAAO,EAAyB,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAsD3C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CA0BlC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,IAAK,CAAC"}
@@ -0,0 +1,13 @@
1
+ import '@dxos-theme';
2
+ import React from 'react';
3
+ import { type Meta } from '@dxos/storybook-utils';
4
+ import { EditorStory } from './components';
5
+ declare const meta: Meta<typeof EditorStory>;
6
+ export default meta;
7
+ export declare const Comments: {
8
+ render: () => React.JSX.Element;
9
+ };
10
+ export declare const Annotations: {
11
+ render: () => React.JSX.Element;
12
+ };
13
+ //# sourceMappingURL=Comments.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Comments.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Comments.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,KAAkB,MAAM,OAAO,CAAC;AAKvC,OAAO,EAAyB,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,WAAW,EAAqB,MAAM,cAAc,CAAC;AAM9D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAKlC,CAAC;AAEF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,QAAQ;;CAmCpB,CAAC;AAyBF,eAAO,MAAM,WAAW;;CAIvB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import '@dxos-theme';
2
+ import { type StoryObj } from '@storybook/react';
3
+ import { type Meta } from '@dxos/storybook-utils';
4
+ import { type UseTextEditorProps } from '../hooks';
5
+ type StoryProps = {
6
+ placeholder?: string;
7
+ } & UseTextEditorProps;
8
+ declare const meta: Meta<StoryProps>;
9
+ export default meta;
10
+ type Story = StoryObj<typeof meta>;
11
+ export declare const Default: Story;
12
+ //# sourceMappingURL=EditorToolbar.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditorToolbar.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/EditorToolbar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAMjD,OAAO,EAAE,KAAK,IAAI,EAAyB,MAAM,uBAAuB,CAAC;AAezE,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAGlE,KAAK,UAAU,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,kBAAkB,CAAC;AAgDhE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAAU,CAK1B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import '@dxos-theme';
2
+ import React from 'react';
3
+ import { type Meta } from '@dxos/storybook-utils';
4
+ import { EditorStory } from './components';
5
+ declare const meta: Meta<typeof EditorStory>;
6
+ export default meta;
7
+ export declare const Typewriter: {
8
+ render: () => React.JSX.Element;
9
+ };
10
+ export declare const Blast: {
11
+ render: () => React.JSX.Element;
12
+ };
13
+ export declare const DND: {
14
+ render: () => React.JSX.Element;
15
+ };
16
+ //# sourceMappingURL=Experimental.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Experimental.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Experimental.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAyB,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,WAAW,EAAW,MAAM,cAAc,CAAC;AAIpD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAKlC,CAAC;AAEF,eAAe,IAAI,CAAC;AAQpB,eAAO,MAAM,UAAU;;CAOtB,CAAC;AAMF,eAAO,MAAM,KAAK;;CAqBjB,CAAC;AAMF,eAAO,MAAM,GAAG;;CAaf,CAAC"}
@@ -0,0 +1,46 @@
1
+ import '@dxos-theme';
2
+ import React from 'react';
3
+ import { type Meta } from '@dxos/storybook-utils';
4
+ import { EditorStory } from './components';
5
+ declare const meta: Meta<typeof EditorStory>;
6
+ export default meta;
7
+ export declare const Default: {
8
+ render: () => React.JSX.Element;
9
+ };
10
+ export declare const Blockquote: {
11
+ render: () => React.JSX.Element;
12
+ };
13
+ export declare const Headings: {
14
+ render: () => React.JSX.Element;
15
+ };
16
+ export declare const Links: {
17
+ render: () => React.JSX.Element;
18
+ };
19
+ export declare const Image: {
20
+ render: () => React.JSX.Element;
21
+ };
22
+ export declare const Code: {
23
+ render: () => React.JSX.Element;
24
+ };
25
+ export declare const Lists: {
26
+ render: () => React.JSX.Element;
27
+ };
28
+ export declare const BulletList: {
29
+ render: () => React.JSX.Element;
30
+ };
31
+ export declare const OrderedList: {
32
+ render: () => React.JSX.Element;
33
+ };
34
+ export declare const TaskList: {
35
+ render: () => React.JSX.Element;
36
+ };
37
+ export declare const TaskListEmpty: {
38
+ render: () => React.JSX.Element;
39
+ };
40
+ export declare const Table: {
41
+ render: () => React.JSX.Element;
42
+ };
43
+ export declare const CommentedOut: {
44
+ render: () => React.JSX.Element;
45
+ };
46
+ //# sourceMappingURL=Markdown.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Markdown.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Markdown.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAyB,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,WAAW,EAAiE,MAAM,cAAc,CAAC;AAI1G,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAKlC,CAAC;AAEF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO;;CAEnB,CAAC;AAEF,eAAO,MAAM,UAAU;;CAQtB,CAAC;AAEF,eAAO,MAAM,QAAQ;;CAEpB,CAAC;AAEF,eAAO,MAAM,KAAK;;CAEjB,CAAC;AAEF,eAAO,MAAM,KAAK;;CAEjB,CAAC;AAEF,eAAO,MAAM,IAAI;;CAEhB,CAAC;AAEF,eAAO,MAAM,KAAK;;CAOjB,CAAC;AAMF,eAAO,MAAM,UAAU;;CAEtB,CAAC;AAMF,eAAO,MAAM,WAAW;;CAEvB,CAAC;AAMF,eAAO,MAAM,QAAQ;;CAIpB,CAAC;AAEF,eAAO,MAAM,aAAa;;CAEzB,CAAC;AAMF,eAAO,MAAM,KAAK;;CAEjB,CAAC;AAMF,eAAO,MAAM,YAAY;;CAWxB,CAAC"}
@@ -0,0 +1,26 @@
1
+ import '@dxos-theme';
2
+ import { type Meta } from '@dxos/storybook-utils';
3
+ type StoryProps = {
4
+ text: string;
5
+ };
6
+ declare const meta: Meta<StoryProps>;
7
+ export default meta;
8
+ export declare const Empty: {
9
+ args: {};
10
+ };
11
+ export declare const Basic: {
12
+ args: {
13
+ text: string;
14
+ };
15
+ };
16
+ export declare const Nested: {
17
+ args: {
18
+ text: string;
19
+ };
20
+ };
21
+ export declare const Continuation: {
22
+ args: {
23
+ text: string;
24
+ };
25
+ };
26
+ //# sourceMappingURL=Outliner.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Outliner.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Outliner.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAOrB,OAAO,EAAyB,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAOzE,KAAK,UAAU,GAAG;IAChB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAwCF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAAU,CAK1B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,KAAK;;CAEjB,CAAC;AAEF,eAAO,MAAM,KAAK;;;;CAajB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;CAalB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;CAgBxB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import '@dxos-theme';
2
+ import React from 'react';
3
+ import { type Meta } from '@dxos/storybook-utils';
4
+ import { EditorStory } from './components';
5
+ declare const meta: Meta<typeof EditorStory>;
6
+ export default meta;
7
+ export declare const Default: {
8
+ render: () => React.JSX.Element;
9
+ };
10
+ //# sourceMappingURL=Preview.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Preview.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Preview.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAuC,MAAM,OAAO,CAAC;AAK5D,OAAO,EAAyB,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AA+F3C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAKlC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO;;CA+BnB,CAAC"}
@@ -0,0 +1,55 @@
1
+ import '@dxos-theme';
2
+ import React from 'react';
3
+ import { type Meta } from '@dxos/storybook-utils';
4
+ import { EditorStory } from './components';
5
+ declare const meta: Meta<typeof EditorStory>;
6
+ export default meta;
7
+ export declare const Default: {
8
+ render: () => React.JSX.Element;
9
+ };
10
+ export declare const Everything: {
11
+ render: () => React.JSX.Element;
12
+ };
13
+ export declare const Empty: {
14
+ render: () => React.JSX.Element;
15
+ };
16
+ export declare const Readonly: {
17
+ render: () => React.JSX.Element;
18
+ };
19
+ export declare const NoExtensions: {
20
+ render: () => React.JSX.Element;
21
+ };
22
+ export declare const Vim: {
23
+ render: () => React.JSX.Element;
24
+ };
25
+ export declare const Listener: {
26
+ render: () => React.JSX.Element;
27
+ };
28
+ export declare const Folding: {
29
+ render: () => React.JSX.Element;
30
+ };
31
+ export declare const Scrolling: {
32
+ render: () => React.JSX.Element;
33
+ };
34
+ export declare const ScrollingWithImages: {
35
+ render: () => React.JSX.Element;
36
+ };
37
+ export declare const ScrollTo: {
38
+ render: () => React.JSX.Element;
39
+ };
40
+ export declare const Typescript: {
41
+ render: () => React.JSX.Element;
42
+ };
43
+ export declare const Autocomplete: {
44
+ render: () => React.JSX.Element;
45
+ };
46
+ export declare const Typeahead: {
47
+ render: () => React.JSX.Element;
48
+ };
49
+ export declare const Mention: {
50
+ render: () => React.JSX.Element;
51
+ };
52
+ export declare const Search: {
53
+ render: () => React.JSX.Element;
54
+ };
55
+ //# sourceMappingURL=TextEditor.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextEditor.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/TextEditor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAIrB,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAyB,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EACL,WAAW,EAWZ,MAAM,cAAc,CAAC;AAgBtB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAKlC,CAAC;AAEF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO;;CAEnB,CAAC;AAMF,eAAO,MAAM,UAAU;;CAEtB,CAAC;AAMF,eAAO,MAAM,KAAK;;CAEjB,CAAC;AAMF,eAAO,MAAM,QAAQ;;CAEpB,CAAC;AAMF,eAAO,MAAM,YAAY;;CAExB,CAAC;AAMF,eAAO,MAAM,GAAG;;CAOf,CAAC;AAMF,eAAO,MAAM,QAAQ;;CAgBpB,CAAC;AAMF,eAAO,MAAM,OAAO;;CAEnB,CAAC;AAMF,eAAO,MAAM,SAAS;;CAUrB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;CAI/B,CAAC;AAEF,eAAO,MAAM,QAAQ;;CAepB,CAAC;AAMF,eAAO,MAAM,UAAU;;CAQtB,CAAC;AAMF,eAAO,MAAM,YAAY;;CAcxB,CAAC;AAQF,eAAO,MAAM,SAAS;;CAYrB,CAAC;AAMF,eAAO,MAAM,OAAO;;CAWnB,CAAC;AAMF,eAAO,MAAM,MAAM;;CAQlB,CAAC"}
@@ -0,0 +1,43 @@
1
+ import { type EditorView } from '@codemirror/view';
2
+ import React, { type ReactNode } from 'react';
3
+ import { Expando } from '@dxos/echo-schema';
4
+ import { type ThemeExtensionsOptions } from '../../extensions';
5
+ import { type UseTextEditorProps } from '../../hooks';
6
+ export type DebugMode = 'raw' | 'tree' | 'raw+tree';
7
+ export type StoryProps = Pick<UseTextEditorProps, 'scrollTo' | 'selection' | 'extensions'> & Pick<ThemeExtensionsOptions, 'slots'> & {
8
+ id?: string;
9
+ debug?: DebugMode;
10
+ debugCustom?: (view: EditorView) => ReactNode;
11
+ text?: string;
12
+ object?: Expando;
13
+ readOnly?: boolean;
14
+ placeholder?: string;
15
+ lineNumbers?: boolean;
16
+ onReady?: (view: EditorView) => void;
17
+ };
18
+ export declare const EditorStory: React.ForwardRefExoticComponent<Pick<UseTextEditorProps, "selection" | "scrollTo" | "extensions"> & Pick<ThemeExtensionsOptions, "slots"> & {
19
+ id?: string;
20
+ debug?: DebugMode;
21
+ debugCustom?: (view: EditorView) => ReactNode;
22
+ text?: string;
23
+ object?: Expando;
24
+ readOnly?: boolean;
25
+ placeholder?: string;
26
+ lineNumbers?: boolean;
27
+ onReady?: (view: EditorView) => void;
28
+ } & React.RefAttributes<EditorView | undefined>>;
29
+ /**
30
+ * Default story component.
31
+ */
32
+ export declare const EditorComponent: React.ForwardRefExoticComponent<Pick<UseTextEditorProps, "selection" | "scrollTo" | "extensions"> & Pick<ThemeExtensionsOptions, "slots"> & {
33
+ id?: string;
34
+ debug?: DebugMode;
35
+ debugCustom?: (view: EditorView) => ReactNode;
36
+ text?: string;
37
+ object?: Expando;
38
+ readOnly?: boolean;
39
+ placeholder?: string;
40
+ lineNumbers?: boolean;
41
+ onReady?: (view: EditorView) => void;
42
+ } & React.RefAttributes<EditorView | undefined>>;
43
+ //# sourceMappingURL=EditorStory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditorStory.d.ts","sourceRoot":"","sources":["../../../../../src/stories/components/EditorStory.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAiE,MAAM,OAAO,CAAC;AAE7G,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAY5C,OAAO,EAEL,KAAK,sBAAsB,EAM5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGrE,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,MAAM,GAAG,UAAU,CAAC;AAIpD,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,kBAAkB,EAAE,UAAU,GAAG,WAAW,GAAG,YAAY,CAAC,GACxF,IAAI,CAAC,sBAAsB,EAAE,OAAO,CAAC,GAAG;IACtC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,SAAS,CAAC;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;CACtC,CAAC;AAEJ,eAAO,MAAM,WAAW;SAXf,MAAM;YACH,SAAS;kBACH,CAAC,IAAI,EAAE,UAAU,KAAK,SAAS;WACtC,MAAM;aACJ,OAAO;eACL,OAAO;kBACJ,MAAM;kBACN,OAAO;cACX,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI;gDAoCvC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe;SAjDnB,MAAM;YACH,SAAS;kBACH,CAAC,IAAI,EAAE,UAAU,KAAK,SAAS;WACtC,MAAM;aACJ,OAAO;eACL,OAAO;kBACJ,MAAM;kBACN,OAAO;cACX,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI;gDAyFvC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './EditorStory';
2
+ export * from './util';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/stories/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { type Completion } from '@codemirror/autocomplete';
2
+ import { type Extension } from '@codemirror/state';
3
+ import { type EditorSelectionState } from '../../extensions';
4
+ export declare const num: () => string;
5
+ export declare const img = "![dxos](https://dxos.network/dxos-logotype-blue.png)";
6
+ export declare const code: string;
7
+ export declare const content: {
8
+ tasks: string;
9
+ bullets: string;
10
+ numbered: string;
11
+ typescript: string;
12
+ codeblocks: string;
13
+ comment: string;
14
+ links: string;
15
+ table: string;
16
+ image: string;
17
+ headings: string;
18
+ formatting: string;
19
+ blockquotes: string;
20
+ paragraphs: string;
21
+ footer: string;
22
+ };
23
+ export declare const text: string;
24
+ export declare const links: Completion[];
25
+ export declare const names: string[];
26
+ export declare const renderLinkTooltip: import("../..").RenderCallback<{
27
+ url: string;
28
+ }>;
29
+ export declare const renderLinkButton: import("../..").RenderCallback<{
30
+ url: string;
31
+ }>;
32
+ export declare const defaultExtensions: Extension[];
33
+ export declare const allExtensions: Extension[];
34
+ export declare const longText: string;
35
+ export declare const largeWithImages: string;
36
+ export declare const headings: string;
37
+ export declare const global: Map<string, EditorSelectionState>;
38
+ //# sourceMappingURL=util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../../src/stories/components/util.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAOnD,OAAO,EACL,KAAK,oBAAoB,EAO1B,MAAM,kBAAkB,CAAC;AAI1B,eAAO,MAAM,GAAG,cAAiE,CAAC;AAElF,eAAO,MAAM,GAAG,yDAAyD,CAAC;AAE1E,eAAO,MAAM,IAAI,QAOhB,CAAC;AAGF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;CA+FnB,CAAC;AAGF,eAAO,MAAM,IAAI,QAwBhB,CAAC;AAGF,eAAO,MAAM,KAAK,EAAE,UAAU,EAM7B,CAAC;AAEF,eAAO,MAAM,KAAK,UAA4E,CAAC;AAe/F,eAAO,MAAM,iBAAiB;SAVD,MAAM;EAUyB,CAAC;AAU7D,eAAO,MAAM,gBAAgB;SARD,MAAM;EAQwB,CAAC;AAG3D,eAAO,MAAM,iBAAiB,EAAE,SAAS,EAIxC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,SAAS,EAOpC,CAAC;AAGF,eAAO,MAAM,QAAQ,QAEN,CAAC;AAEhB,eAAO,MAAM,eAAe,QAGb,CAAC;AAEhB,eAAO,MAAM,QAAQ,QAIpB,CAAC;AAEF,eAAO,MAAM,MAAM,mCAA0C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../src/styles/theme.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAI3C,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,YAAY,EAAE,WAmN1B,CAAC"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../src/styles/theme.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAI3C,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,YAAY,EAAE,WA6N1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../src/styles/tokens.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,QAAQ,QAA8B,CAAC;AACpD,eAAO,MAAM,QAAQ,QAA8B,CAAC"}
1
+ {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../src/styles/tokens.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,QAAQ,QAA8B,CAAC;AACpD,eAAO,MAAM,QAAQ,QAA8B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './util';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/testing/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const str: (...lines: string[]) => string;
2
+ //# sourceMappingURL=util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/testing/util.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,GAAG,GAAI,GAAG,OAAO,MAAM,EAAE,WAAqB,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { type EditorView } from '@codemirror/view';
1
2
  export type Range = {
2
3
  from: number;
3
4
  to: number;
@@ -6,4 +7,8 @@ export type Comment = {
6
7
  id: string;
7
8
  cursor?: string;
8
9
  };
10
+ /**
11
+ * Callback that renders into a DOM element within the editor.
12
+ */
13
+ export type RenderCallback<Props extends object> = (el: HTMLElement, props: Props, view: EditorView) => void;
9
14
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,KAAK,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAIF,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGnD,MAAM,MAAM,KAAK,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAIF,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,CAAC,KAAK,SAAS,MAAM,IAAI,CAAC,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"cursor.d.ts","sourceRoot":"","sources":["../../../../src/util/cursor.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC;;;;GAIG;AACH,eAAO,MAAM,OAAO,MAAO,KAAK,KAAK,KAAK,KAAG,OAA2C,CAAC;AAEzF;;;;;;;;;GASG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,SAAS,GAAG,MAAM,CAAC;IAC/D,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CACpC;AAOD,qBAAa,MAAM;IACjB,MAAM,CAAC,QAAQ,CAAC,SAAS,8DAA4C;IAErE,MAAM,CAAC,QAAQ,CAAC,kBAAkB,UAAW,WAAW,SAAS,KAAK,YAKpE;IAEF,MAAM,CAAC,QAAQ,CAAC,kBAAkB,UAAW,WAAW,UAAU,MAAM;;;kBAOtE;CACH"}
1
+ {"version":3,"file":"cursor.d.ts","sourceRoot":"","sources":["../../../../src/util/cursor.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAAI,GAAG,KAAK,EAAE,GAAG,KAAK,KAAG,OAA2C,CAAC;AAEzF;;;;;;;;;GASG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,SAAS,GAAG,MAAM,CAAC;IAC/D,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CACpC;AAOD,qBAAa,MAAM;IACjB,MAAM,CAAC,QAAQ,CAAC,SAAS,8DAA4C;IAErE,MAAM,CAAC,QAAQ,CAAC,kBAAkB,GAAI,OAAO,WAAW,EAAE,OAAO,KAAK,YAKpE;IAEF,MAAM,CAAC,QAAQ,CAAC,kBAAkB,GAAI,OAAO,WAAW,EAAE,QAAQ,MAAM;;;kBAOtE;CACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../../src/util/debug.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAInD,eAAO,MAAM,aAAa,OAAQ,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,eACtC,GAAG,EAAE,QAOvB,CAAC;AAEF;;GAEG;AAEH,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,QAAQ,MAAM,CAAC,KAAG,CAOxC,CAAC;AAErB;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAS,SAAS,WAAW,EAAE,QAAQ,UAAU,SAG5E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,QAAS,SAAS,WAAW,EAAE,SAmBrD,CAAC"}
1
+ {"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../../src/util/debug.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAInD,eAAO,MAAM,aAAa,GAAI,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,MAC/C,GAAG,MAAM,GAAG,EAAE,QAOvB,CAAC;AAEF;;GAEG;AAEH,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,QAAQ,EAAE,IAAI,CAAC,KAAG,CAOxC,CAAC;AAErB;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,KAAK,SAAS,WAAW,EAAE,EAAE,MAAM,UAAU,SAG5E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,KAAK,SAAS,WAAW,EAAE,SAmBrD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../../../src/util/dom.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,IAAI;IACnB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,WAAW,SAAU,IAAI,QAAQ,OAAO;;;;;CAGpD,CAAC;AAIF,eAAO,MAAM,SAAS,SAAU,IAAI,QAAQ,MAAM,uBAKjD,CAAC;AAEF,eAAO,MAAM,cAAc,QAAS,IAAI,gBAQvC,CAAC"}
1
+ {"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../../../src/util/dom.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,IAAI;IACnB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,WAAW,GAAI,MAAM,IAAI,EAAE,MAAM,OAAO;;;;;CAGpD,CAAC;AAIF,eAAO,MAAM,SAAS,GAAI,MAAM,IAAI,EAAE,MAAM,MAAM,EAAE,WAAS,UAK5D,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,KAAK,IAAI,gBAQvC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"facet.d.ts","sourceRoot":"","sources":["../../../../src/util/facet.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,eAAO,MAAM,gBAAgB,GAAI,CAAC,EAAE,CAAC,qBAAqB,CAAC,gBAMvD,CAAC"}
1
+ {"version":3,"file":"facet.d.ts","sourceRoot":"","sources":["../../../../src/util/facet.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,eAAO,MAAM,gBAAgB,GAAI,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,eAAe,CAAC,gBAMvD,CAAC"}
@@ -1,7 +1,12 @@
1
- import { type ReactNode } from 'react';
1
+ import { type FC, type ReactNode } from 'react';
2
+ import { type RenderCallback } from '../types';
2
3
  export type ElementOptions = {
3
4
  className?: string;
4
5
  };
5
6
  export declare const createElement: (tag: string, options?: ElementOptions, children?: ReactNode) => HTMLElement;
6
7
  export declare const renderRoot: <T extends Element>(root: T, node: ReactNode) => T;
8
+ /**
9
+ * Utility to create a renderer for a React component.
10
+ */
11
+ export declare const createRenderer: <Props extends object>(Component: FC<Props>) => RenderCallback<Props>;
7
12
  //# sourceMappingURL=react.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../../src/util/react.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAQ9C,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,aAAa,QAAS,MAAM,YAAY,cAAc,aAAa,SAAS,KAAG,WAU3F,CAAC;AAIF,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,OAAO,QAAQ,CAAC,QAAQ,SAAS,KAAG,CAGxE,CAAC"}
1
+ {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../../src/util/react.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAI/C,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,KAAK,MAAM,EAAE,UAAU,cAAc,EAAE,WAAW,SAAS,KAAG,WAU3F,CAAC;AAIF,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,SAAS,KAAG,CAGxE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GACxB,KAAK,SAAS,MAAM,EAAE,WAAW,EAAE,CAAC,KAAK,CAAC,KAAG,cAAc,CAAC,KAAK,CAUjE,CAAC"}
@@ -1 +1 @@
1
- {"version":"5.7.3"}
1
+ {"version":"5.8.3"}