@dxos/react-ui-editor 0.8.4-main.dedc0f3 → 0.8.4-main.ead640a

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 (218) 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 +5482 -5519
  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 +5482 -5519
  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.map +1 -1
  22. package/dist/types/src/components/EditorToolbar/util.d.ts +1 -1
  23. package/dist/types/src/components/index.d.ts +0 -1
  24. package/dist/types/src/components/index.d.ts.map +1 -1
  25. package/dist/types/src/extensions/{autocomplete.d.ts → autocomplete/autocomplete.d.ts} +1 -1
  26. package/dist/types/src/extensions/autocomplete/autocomplete.d.ts.map +1 -0
  27. package/dist/types/src/extensions/autocomplete/index.d.ts +5 -0
  28. package/dist/types/src/extensions/autocomplete/index.d.ts.map +1 -0
  29. package/dist/types/src/extensions/autocomplete/match.d.ts +13 -0
  30. package/dist/types/src/extensions/autocomplete/match.d.ts.map +1 -0
  31. package/dist/types/src/extensions/autocomplete/placeholder.d.ts +20 -0
  32. package/dist/types/src/extensions/autocomplete/placeholder.d.ts.map +1 -0
  33. package/dist/types/src/extensions/autocomplete/typeahead.d.ts +10 -0
  34. package/dist/types/src/extensions/autocomplete/typeahead.d.ts.map +1 -0
  35. package/dist/types/src/extensions/automerge/automerge.d.ts +1 -1
  36. package/dist/types/src/extensions/automerge/automerge.d.ts.map +1 -1
  37. package/dist/types/src/extensions/automerge/automerge.stories.d.ts +1 -1
  38. package/dist/types/src/extensions/automerge/automerge.stories.d.ts.map +1 -1
  39. package/dist/types/src/extensions/automerge/sync.d.ts +2 -2
  40. package/dist/types/src/extensions/automerge/sync.d.ts.map +1 -1
  41. package/dist/types/src/extensions/autoscroll.d.ts +2 -2
  42. package/dist/types/src/extensions/autoscroll.d.ts.map +1 -1
  43. package/dist/types/src/extensions/factories.d.ts +7 -2
  44. package/dist/types/src/extensions/factories.d.ts.map +1 -1
  45. package/dist/types/src/extensions/focus.d.ts.map +1 -1
  46. package/dist/types/src/extensions/folding.d.ts.map +1 -1
  47. package/dist/types/src/extensions/index.d.ts +2 -1
  48. package/dist/types/src/extensions/index.d.ts.map +1 -1
  49. package/dist/types/src/extensions/json.d.ts +1 -1
  50. package/dist/types/src/extensions/json.d.ts.map +1 -1
  51. package/dist/types/src/extensions/markdown/bundle.d.ts.map +1 -1
  52. package/dist/types/src/extensions/markdown/decorate.d.ts.map +1 -1
  53. package/dist/types/src/extensions/markdown/link.d.ts.map +1 -1
  54. package/dist/types/src/extensions/modes.d.ts +1 -1
  55. package/dist/types/src/extensions/modes.d.ts.map +1 -1
  56. package/dist/types/src/extensions/outliner/menu.d.ts +8 -0
  57. package/dist/types/src/extensions/outliner/menu.d.ts.map +1 -0
  58. package/dist/types/src/extensions/popover/PopoverMenuProvider.d.ts +36 -0
  59. package/dist/types/src/extensions/popover/PopoverMenuProvider.d.ts.map +1 -0
  60. package/dist/types/src/extensions/popover/index.d.ts +8 -0
  61. package/dist/types/src/extensions/popover/index.d.ts.map +1 -0
  62. package/dist/types/src/extensions/popover/menu-presets.d.ts +4 -0
  63. package/dist/types/src/extensions/popover/menu-presets.d.ts.map +1 -0
  64. package/dist/types/src/extensions/popover/menu.d.ts +24 -0
  65. package/dist/types/src/extensions/popover/menu.d.ts.map +1 -0
  66. package/dist/types/src/extensions/popover/modal.d.ts +7 -0
  67. package/dist/types/src/extensions/popover/modal.d.ts.map +1 -0
  68. package/dist/types/src/extensions/popover/popover.d.ts +47 -0
  69. package/dist/types/src/extensions/popover/popover.d.ts.map +1 -0
  70. package/dist/types/src/extensions/popover/usePopoverMenu.d.ts +34 -0
  71. package/dist/types/src/extensions/popover/usePopoverMenu.d.ts.map +1 -0
  72. package/dist/types/src/extensions/popover/util.d.ts +8 -0
  73. package/dist/types/src/extensions/popover/util.d.ts.map +1 -0
  74. package/dist/types/src/extensions/preview/preview.d.ts +0 -2
  75. package/dist/types/src/extensions/preview/preview.d.ts.map +1 -1
  76. package/dist/types/src/extensions/state.d.ts +2 -0
  77. package/dist/types/src/extensions/state.d.ts.map +1 -0
  78. package/dist/types/src/extensions/tags/streamer.d.ts.map +1 -1
  79. package/dist/types/src/extensions/tags/xml-tags.d.ts +1 -0
  80. package/dist/types/src/extensions/tags/xml-tags.d.ts.map +1 -1
  81. package/dist/types/src/hooks/useTextEditor.d.ts +4 -8
  82. package/dist/types/src/hooks/useTextEditor.d.ts.map +1 -1
  83. package/dist/types/src/stories/{Command.stories.d.ts → CommandDialog.stories.d.ts} +2 -3
  84. package/dist/types/src/stories/CommandDialog.stories.d.ts.map +1 -0
  85. package/dist/types/src/stories/Comments.stories.d.ts +3 -4
  86. package/dist/types/src/stories/Comments.stories.d.ts.map +1 -1
  87. package/dist/types/src/stories/EditorToolbar.stories.d.ts +1 -2
  88. package/dist/types/src/stories/EditorToolbar.stories.d.ts.map +1 -1
  89. package/dist/types/src/stories/Experimental.stories.d.ts +3 -4
  90. package/dist/types/src/stories/Experimental.stories.d.ts.map +1 -1
  91. package/dist/types/src/stories/Markdown.stories.d.ts +3 -4
  92. package/dist/types/src/stories/Markdown.stories.d.ts.map +1 -1
  93. package/dist/types/src/stories/Outliner.stories.d.ts +0 -1
  94. package/dist/types/src/stories/Outliner.stories.d.ts.map +1 -1
  95. package/dist/types/src/stories/{CommandMenu.stories.d.ts → Popover.stories.d.ts} +6 -6
  96. package/dist/types/src/stories/Popover.stories.d.ts.map +1 -0
  97. package/dist/types/src/stories/Preview.stories.d.ts +3 -4
  98. package/dist/types/src/stories/Preview.stories.d.ts.map +1 -1
  99. package/dist/types/src/stories/Tags.stories.d.ts +0 -1
  100. package/dist/types/src/stories/Tags.stories.d.ts.map +1 -1
  101. package/dist/types/src/stories/TextEditor.stories.d.ts +3 -5
  102. package/dist/types/src/stories/TextEditor.stories.d.ts.map +1 -1
  103. package/dist/types/src/stories/components/EditorStory.d.ts +5 -5
  104. package/dist/types/src/stories/components/EditorStory.d.ts.map +1 -1
  105. package/dist/types/src/styles/theme.d.ts.map +1 -1
  106. package/dist/types/src/testing/PreviewPopover.d.ts +20 -0
  107. package/dist/types/src/testing/PreviewPopover.d.ts.map +1 -0
  108. package/dist/types/src/testing/index.d.ts +1 -0
  109. package/dist/types/src/testing/index.d.ts.map +1 -1
  110. package/dist/types/src/types/types.d.ts +1 -1
  111. package/dist/types/src/types/types.d.ts.map +1 -1
  112. package/dist/types/src/util/index.d.ts +0 -1
  113. package/dist/types/src/util/index.d.ts.map +1 -1
  114. package/dist/types/tsconfig.tsbuildinfo +1 -1
  115. package/package.json +55 -52
  116. package/src/components/Editor/Editor.stories.tsx +69 -0
  117. package/src/components/Editor/Editor.tsx +57 -14
  118. package/src/components/EditorToolbar/EditorToolbar.tsx +1 -0
  119. package/src/components/index.ts +0 -1
  120. package/src/extensions/{autocomplete.ts → autocomplete/autocomplete.ts} +2 -1
  121. package/src/extensions/autocomplete/index.ts +8 -0
  122. package/src/extensions/autocomplete/match.ts +46 -0
  123. package/src/extensions/{command → autocomplete}/placeholder.ts +21 -17
  124. package/src/extensions/{command → autocomplete}/typeahead.ts +6 -48
  125. package/src/extensions/automerge/automerge.stories.tsx +8 -8
  126. package/src/extensions/automerge/automerge.ts +28 -9
  127. package/src/extensions/automerge/sync.ts +7 -3
  128. package/src/extensions/autoscroll.ts +43 -37
  129. package/src/extensions/factories.ts +41 -12
  130. package/src/extensions/focus.ts +5 -4
  131. package/src/extensions/folding.tsx +4 -6
  132. package/src/extensions/hashtag.tsx +2 -2
  133. package/src/extensions/index.ts +2 -1
  134. package/src/extensions/json.ts +1 -1
  135. package/src/extensions/markdown/bundle.ts +16 -4
  136. package/src/extensions/markdown/decorate.ts +1 -0
  137. package/src/extensions/markdown/link.ts +3 -0
  138. package/src/extensions/modes.ts +2 -2
  139. package/src/extensions/{command/floating-menu.ts → outliner/menu.ts} +15 -20
  140. package/src/extensions/outliner/outliner.ts +3 -3
  141. package/src/extensions/popover/PopoverMenuProvider.tsx +221 -0
  142. package/src/extensions/popover/index.ts +12 -0
  143. package/src/extensions/popover/menu-presets.ts +124 -0
  144. package/src/extensions/popover/menu.ts +67 -0
  145. package/src/extensions/popover/modal.ts +24 -0
  146. package/src/extensions/popover/popover.ts +291 -0
  147. package/src/extensions/popover/usePopoverMenu.ts +173 -0
  148. package/src/extensions/popover/util.ts +29 -0
  149. package/src/extensions/preview/index.ts +1 -1
  150. package/src/extensions/preview/preview.ts +0 -5
  151. package/src/extensions/selection.ts +2 -2
  152. package/src/extensions/state.ts +7 -0
  153. package/src/extensions/tags/streamer.ts +4 -5
  154. package/src/extensions/tags/xml-tags.ts +59 -1
  155. package/src/hooks/useTextEditor.ts +27 -39
  156. package/src/stories/{Command.stories.tsx → CommandDialog.stories.tsx} +10 -22
  157. package/src/stories/Comments.stories.tsx +5 -5
  158. package/src/stories/EditorToolbar.stories.tsx +6 -5
  159. package/src/stories/Experimental.stories.tsx +6 -6
  160. package/src/stories/Markdown.stories.tsx +5 -5
  161. package/src/stories/Outliner.stories.tsx +42 -26
  162. package/src/stories/Popover.stories.tsx +163 -0
  163. package/src/stories/Preview.stories.tsx +9 -9
  164. package/src/stories/Tags.stories.tsx +5 -5
  165. package/src/stories/TextEditor.stories.tsx +7 -32
  166. package/src/stories/components/EditorStory.tsx +7 -5
  167. package/src/styles/theme.ts +12 -10
  168. package/src/{components/Popover/RefDropdownMenu.tsx → testing/PreviewPopover.tsx} +20 -29
  169. package/src/testing/index.ts +1 -0
  170. package/src/types/types.ts +1 -1
  171. package/src/util/index.ts +0 -1
  172. package/dist/lib/browser/chunk-22UMM3QJ.mjs.map +0 -7
  173. package/dist/lib/node-esm/chunk-YXYQPV6R.mjs.map +0 -7
  174. package/dist/types/src/components/Popover/CommandMenu.d.ts +0 -34
  175. package/dist/types/src/components/Popover/CommandMenu.d.ts.map +0 -1
  176. package/dist/types/src/components/Popover/RefDropdownMenu.d.ts +0 -14
  177. package/dist/types/src/components/Popover/RefDropdownMenu.d.ts.map +0 -1
  178. package/dist/types/src/components/Popover/RefPopover.d.ts +0 -37
  179. package/dist/types/src/components/Popover/RefPopover.d.ts.map +0 -1
  180. package/dist/types/src/components/Popover/index.d.ts +0 -4
  181. package/dist/types/src/components/Popover/index.d.ts.map +0 -1
  182. package/dist/types/src/extensions/autocomplete.d.ts.map +0 -1
  183. package/dist/types/src/extensions/command/action.d.ts +0 -17
  184. package/dist/types/src/extensions/command/action.d.ts.map +0 -1
  185. package/dist/types/src/extensions/command/command-menu.d.ts +0 -20
  186. package/dist/types/src/extensions/command/command-menu.d.ts.map +0 -1
  187. package/dist/types/src/extensions/command/command.d.ts +0 -6
  188. package/dist/types/src/extensions/command/command.d.ts.map +0 -1
  189. package/dist/types/src/extensions/command/floating-menu.d.ts +0 -7
  190. package/dist/types/src/extensions/command/floating-menu.d.ts.map +0 -1
  191. package/dist/types/src/extensions/command/hint.d.ts +0 -19
  192. package/dist/types/src/extensions/command/hint.d.ts.map +0 -1
  193. package/dist/types/src/extensions/command/index.d.ts +0 -7
  194. package/dist/types/src/extensions/command/index.d.ts.map +0 -1
  195. package/dist/types/src/extensions/command/placeholder.d.ts +0 -10
  196. package/dist/types/src/extensions/command/placeholder.d.ts.map +0 -1
  197. package/dist/types/src/extensions/command/state.d.ts +0 -16
  198. package/dist/types/src/extensions/command/state.d.ts.map +0 -1
  199. package/dist/types/src/extensions/command/typeahead.d.ts +0 -22
  200. package/dist/types/src/extensions/command/typeahead.d.ts.map +0 -1
  201. package/dist/types/src/extensions/command/useCommandMenu.d.ts +0 -26
  202. package/dist/types/src/extensions/command/useCommandMenu.d.ts.map +0 -1
  203. package/dist/types/src/stories/Command.stories.d.ts.map +0 -1
  204. package/dist/types/src/stories/CommandMenu.stories.d.ts.map +0 -1
  205. package/dist/types/src/util/domino.d.ts +0 -18
  206. package/dist/types/src/util/domino.d.ts.map +0 -1
  207. package/src/components/Popover/CommandMenu.tsx +0 -279
  208. package/src/components/Popover/RefPopover.tsx +0 -117
  209. package/src/components/Popover/index.ts +0 -7
  210. package/src/extensions/command/action.ts +0 -56
  211. package/src/extensions/command/command-menu.ts +0 -211
  212. package/src/extensions/command/command.ts +0 -34
  213. package/src/extensions/command/hint.ts +0 -103
  214. package/src/extensions/command/index.ts +0 -10
  215. package/src/extensions/command/state.ts +0 -90
  216. package/src/extensions/command/useCommandMenu.ts +0 -119
  217. package/src/stories/CommandMenu.stories.tsx +0 -160
  218. package/src/util/domino.ts +0 -51
@@ -0,0 +1,34 @@
1
+ import { type Extension } from '@codemirror/state';
2
+ import { type EditorState } from '@codemirror/state';
3
+ import { type RefObject } from 'react';
4
+ import { type MaybePromise } from '@dxos/util';
5
+ import { type PopoverMenuGroup } from './menu';
6
+ import { type PopoverOptions } from './popover';
7
+ import { type PopoverMenuProviderProps } from './PopoverMenuProvider';
8
+ export type GetMenuContext = {
9
+ state: EditorState;
10
+ pos: number;
11
+ text: string;
12
+ trigger?: string;
13
+ };
14
+ export type UsePopoverMenuProps = {
15
+ filter?: boolean;
16
+ getMenu?: (context: GetMenuContext) => MaybePromise<PopoverMenuGroup[]>;
17
+ } & Pick<PopoverOptions, 'trigger' | 'triggerKey' | 'placeholder'>;
18
+ export type UsePopoverMenu = {
19
+ groupsRef: RefObject<PopoverMenuGroup[]>;
20
+ extension: Extension;
21
+ } & Pick<PopoverMenuProviderProps, 'currentItem' | 'open' | 'onOpenChange' | 'onActivate' | 'onSelect' | 'onCancel'>;
22
+ /**
23
+ * ```tsx
24
+ * const { groupsRef, extension, ...menuProps } = usePopoverMenu();
25
+ * const { parentRef, viewRef } = useTextEditor({ extensions: [extension] });
26
+ * return (
27
+ * <PopoverMenuProvider view={viewRef.current} groups={groupsRef.current} {...menuProps}>
28
+ * <div ref={parentRef} />
29
+ * </PopoverMenuProvider>
30
+ * );
31
+ * ```
32
+ */
33
+ export declare const usePopoverMenu: ({ trigger, triggerKey, placeholder, filter, getMenu, }: UsePopoverMenuProps) => UsePopoverMenu;
34
+ //# sourceMappingURL=usePopoverMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePopoverMenu.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/popover/usePopoverMenu.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,KAAK,SAAS,EAA0C,MAAM,OAAO,CAAC;AAG/E,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EAAE,KAAK,gBAAgB,EAAwB,MAAM,QAAQ,CAAC;AAGrE,OAAO,EAAE,KAAK,cAAc,EAAkD,MAAM,WAAW,CAAC;AAChG,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,WAAW,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,YAAY,CAAC,gBAAgB,EAAE,CAAC,CAAC;CACzE,GAAG,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,YAAY,GAAG,aAAa,CAAC,CAAC;AAEnE,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,EAAE,SAAS,CAAC,gBAAgB,EAAE,CAAC,CAAC;IACzC,SAAS,EAAE,SAAS,CAAC;CACtB,GAAG,IAAI,CAAC,wBAAwB,EAAE,aAAa,GAAG,MAAM,GAAG,cAAc,GAAG,YAAY,GAAG,UAAU,GAAG,UAAU,CAAC,CAAC;AAErH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,GAAI,wDAM5B,mBAAmB,KAAG,cAyHxB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { type EditorView } from '@codemirror/view';
2
+ export declare const insertAtCursor: (view: EditorView, from: number, insert: string) => void;
3
+ /**
4
+ * If the cursor is at the start of a line, insert the text at the cursor.
5
+ * Otherwise, insert the text on a new line.
6
+ */
7
+ export declare const insertAtLineStart: (view: EditorView, from: number, insert: string) => void;
8
+ //# sourceMappingURL=util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/popover/util.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,eAAO,MAAM,cAAc,GAAI,MAAM,UAAU,EAAE,MAAM,MAAM,EAAE,QAAQ,MAAM,SAK5E,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,MAAM,UAAU,EAAE,MAAM,MAAM,EAAE,QAAQ,MAAM,SAW/E,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import { type EditorState, type Extension } from '@codemirror/state';
2
2
  import { type SyntaxNode } from '@lezer/common';
3
3
  export type PreviewLinkRef = {
4
- /** @deprecated */
5
4
  suggest?: boolean;
6
5
  block?: boolean;
7
6
  label: string;
@@ -12,7 +11,6 @@ export type PreviewLinkTarget = {
12
11
  text?: string;
13
12
  object?: any;
14
13
  };
15
- export type PreviewLookup = (link: PreviewLinkRef) => Promise<PreviewLinkTarget | null | undefined>;
16
14
  export type PreviewOptions = {
17
15
  addBlockContainer?: (link: PreviewLinkRef, el: HTMLElement) => void;
18
16
  removeBlockContainer?: (link: PreviewLinkRef) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/preview/preview.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAA+B,MAAM,mBAAmB,CAAC;AAElG,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,MAAM,cAAc,GAAG;IAC3B,kBAAkB;IAElB,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;AAGF,MAAM,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,cAAc,KAAK,OAAO,CAAC,iBAAiB,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;AAEpG,MAAM,MAAM,cAAc,G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AAE,MAAM,UAAU,KAAG,cAAc,GAAG,SAclF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const initialSync: import("@codemirror/state").Annotation<string>;
2
+ //# sourceMappingURL=state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../src/extensions/state.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW,gDAA2C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"streamer.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/tags/streamer.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAA2B,MAAM,mBAAmB,CAAC;AAS5E,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,MAAM,CAAC,EAAE,OAAO,GAAG;QAAE,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC9C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,UAAS,eAAoB,KAAG,SAKxD,CAAC"}
1
+ {"version":3,"file":"streamer.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/tags/streamer.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAA2B,MAAM,mBAAmB,CAAC;AAQ5E,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,MAAM,CAAC,EAAE,OAAO,GAAG;QAAE,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC9C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,UAAS,eAAoB,KAAG,SAKxD,CAAC"}
@@ -32,6 +32,7 @@ export type XmlWidgetDef = {
32
32
  Component?: FC<XmlWidgetProps>;
33
33
  };
34
34
  export type XmlWidgetRegistry = Record<string, XmlWidgetDef>;
35
+ export declare const getXmlTextChild: (children: any[]) => string | null;
35
36
  /**
36
37
  * Update context.
37
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aAAa,CAAC,GAAG,CAAC,CAAC;CAC/B,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,CAAC;IACtC,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,EAAE,KAAK,IAAI,CAAC;CAClD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,GAAI,UAAS,cAAmB,KAAG,SA4KtD,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import { type EditorStateConfig, type Text } from '@codemirror/state';
2
2
  import { EditorView } from '@codemirror/view';
3
- import { type TabsterTypes } from '@fluentui/react-tabster';
4
- import { type DependencyList, type KeyboardEventHandler, type RefObject } from 'react';
3
+ import { type ComponentPropsWithoutRef, type DependencyList, type RefObject } from 'react';
5
4
  import { type MaybeProvider } from '@dxos/util';
6
5
  import { type EditorSelection } from '../extensions';
7
6
  export type CursorInfo = {
@@ -13,12 +12,9 @@ export type CursorInfo = {
13
12
  after?: string;
14
13
  };
15
14
  export type UseTextEditor = {
16
- parentRef: RefObject<HTMLDivElement>;
17
- view?: EditorView;
18
- focusAttributes?: TabsterTypes.TabsterDOMAttribute & {
19
- tabIndex: 0;
20
- onKeyUp: KeyboardEventHandler<HTMLDivElement>;
21
- };
15
+ parentRef: RefObject<HTMLDivElement | null>;
16
+ view: EditorView | null;
17
+ focusAttributes?: ComponentPropsWithoutRef<'div'>;
22
18
  };
23
19
  export type UseTextEditorProps = Pick<EditorStateConfig, 'extensions'> & {
24
20
  id?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"useTextEditor.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTextEditor.ts"],"names":[],"mappings":"AAIA,OAAO,EAAe,KAAK,iBAAiB,EAAE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AAC,EAAE,eAAe,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GACxB,QAAO,aAAa,CAAC,kBAAkB,CAAM,EAC7C,OAAM,cAAmB,KACxB,aAuHF,CAAC"}
@@ -1,10 +1,9 @@
1
- import '@dxos-theme';
2
1
  import { type StoryObj } from '@storybook/react-vite';
3
2
  import React from 'react';
4
3
  declare const meta: {
5
4
  title: string;
6
- decorators: import("@storybook/react").Decorator[];
7
5
  render: () => React.JSX.Element;
6
+ decorators: import("@storybook/react").Decorator[];
8
7
  parameters: {
9
8
  layout: string;
10
9
  };
@@ -12,4 +11,4 @@ declare const meta: {
12
11
  export default meta;
13
12
  type Story = StoryObj<typeof meta>;
14
13
  export declare const Default: Story;
15
- //# sourceMappingURL=Command.stories.d.ts.map
14
+ //# sourceMappingURL=CommandDialog.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandDialog.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/CommandDialog.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAuC,MAAM,OAAO,CAAC;AA2D5D,QAAA,MAAM,IAAI;;;;;;;CAOqB,CAAC;AAEhC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
@@ -1,18 +1,17 @@
1
- import '@dxos-theme';
2
1
  import { type StoryObj } from '@storybook/react-vite';
3
2
  import React from 'react';
4
3
  declare const meta: {
5
4
  title: string;
6
- component: React.ForwardRefExoticComponent<Pick<import("..").UseTextEditorProps, "selection" | "extensions" | "id" | "scrollTo"> & Pick<import("..").ThemeExtensionsOptions, "slots"> & {
5
+ component: React.ForwardRefExoticComponent<Pick<import("..").UseTextEditorProps, "selection" | "scrollTo" | "id" | "extensions"> & Pick<import("..").ThemeExtensionsOptions, "slots"> & {
7
6
  debug?: import("./components").DebugMode;
8
7
  debugCustom?: (view: import("@codemirror/view").EditorView) => React.ReactNode;
9
8
  text?: string;
10
- object?: import("@dxos/echo-schema").Expando;
9
+ object?: import("@dxos/echo/internal").Expando;
11
10
  readOnly?: boolean;
12
11
  placeholder?: string;
13
12
  lineNumbers?: boolean;
14
13
  onReady?: (view: import("@codemirror/view").EditorView) => void;
15
- } & React.RefAttributes<import("@codemirror/view").EditorView | undefined>>;
14
+ } & React.RefAttributes<import("@codemirror/view").EditorView | null>>;
16
15
  decorators: import("@storybook/react").Decorator[];
17
16
  parameters: {
18
17
  layout: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Comments.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Comments.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAkB,MAAM,OAAO,CAAC;AAcvC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;CAK0B,CAAC;AAErC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAMnC,eAAO,MAAM,QAAQ,EAAE,KAmCtB,CAAC;AAyBF,eAAO,MAAM,WAAW,EAAE,KAIzB,CAAC"}
1
+ {"version":3,"file":"Comments.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Comments.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAkB,MAAM,OAAO,CAAC;AAcvC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;CAO0B,CAAC;AAErC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAMnC,eAAO,MAAM,QAAQ,EAAE,KAmCtB,CAAC;AAyBF,eAAO,MAAM,WAAW,EAAE,KAIzB,CAAC"}
@@ -1,4 +1,3 @@
1
- import '@dxos-theme';
2
1
  import { type StoryObj } from '@storybook/react-vite';
3
2
  import React from 'react';
4
3
  import { type UseTextEditorProps } from '../hooks';
@@ -10,6 +9,7 @@ declare const meta: {
10
9
  render: ({ autoFocus, initialValue, placeholder }: StoryProps) => React.JSX.Element;
11
10
  decorators: import("@storybook/react").Decorator[];
12
11
  parameters: {
12
+ layout: string;
13
13
  translations: [{
14
14
  readonly 'en-US': {
15
15
  readonly "react-ui-editor": {
@@ -40,7 +40,6 @@ declare const meta: {
40
40
  };
41
41
  };
42
42
  }];
43
- layout: string;
44
43
  };
45
44
  };
46
45
  export default meta;
@@ -1 +1 @@
1
- {"version":3,"file":"EditorToolbar.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/EditorToolbar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAgC,MAAM,OAAO,CAAC;AAkBrD,OAAO,EAAE,KAAK,kBAAkB,EAAiB,MAAM,UAAU,CAAC;AAIlE,KAAK,UAAU,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,kBAAkB,CAAC;AAgDhE,QAAA,MAAM,IAAI;;uDA9CsD,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDrC,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC"}
1
+ {"version":3,"file":"EditorToolbar.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/EditorToolbar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAgC,MAAM,OAAO,CAAC;AAkBrD,OAAO,EAAE,KAAK,kBAAkB,EAAiB,MAAM,UAAU,CAAC;AAIlE,KAAK,UAAU,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,kBAAkB,CAAC;AAgDhE,QAAA,MAAM,IAAI;;uDA9CsD,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDrC,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC"}
@@ -1,18 +1,17 @@
1
- import '@dxos-theme';
2
1
  import { type StoryObj } from '@storybook/react-vite';
3
2
  import React from 'react';
4
3
  declare const meta: {
5
4
  title: string;
6
- component: React.ForwardRefExoticComponent<Pick<import("..").UseTextEditorProps, "selection" | "extensions" | "id" | "scrollTo"> & Pick<import("..").ThemeExtensionsOptions, "slots"> & {
5
+ component: React.ForwardRefExoticComponent<Pick<import("..").UseTextEditorProps, "selection" | "scrollTo" | "id" | "extensions"> & Pick<import("..").ThemeExtensionsOptions, "slots"> & {
7
6
  debug?: import("./components").DebugMode;
8
7
  debugCustom?: (view: import("@codemirror/view").EditorView) => React.ReactNode;
9
8
  text?: string;
10
- object?: import("@dxos/echo-schema").Expando;
9
+ object?: import("@dxos/echo/internal").Expando;
11
10
  readOnly?: boolean;
12
11
  placeholder?: string;
13
12
  lineNumbers?: boolean;
14
13
  onReady?: (view: import("@codemirror/view").EditorView) => void;
15
- } & React.RefAttributes<import("@codemirror/view").EditorView | undefined>>;
14
+ } & React.RefAttributes<import("@codemirror/view").EditorView | null>>;
16
15
  decorators: import("@storybook/react").Decorator[];
17
16
  parameters: {
18
17
  layout: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Experimental.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Experimental.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;CAK0B,CAAC;AAErC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAQnC,eAAO,MAAM,UAAU,EAAE,KAOxB,CAAC;AAMF,eAAO,MAAM,KAAK,EAAE,KAqBnB,CAAC;AAMF,eAAO,MAAM,GAAG,EAAE,KAajB,CAAC"}
1
+ {"version":3,"file":"Experimental.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Experimental.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;CAO0B,CAAC;AAErC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAQnC,eAAO,MAAM,UAAU,EAAE,KAOxB,CAAC;AAMF,eAAO,MAAM,KAAK,EAAE,KAqBnB,CAAC;AAMF,eAAO,MAAM,GAAG,EAAE,KAajB,CAAC"}
@@ -1,18 +1,17 @@
1
- import '@dxos-theme';
2
1
  import { type StoryObj } from '@storybook/react-vite';
3
2
  import React from 'react';
4
3
  declare const meta: {
5
4
  title: string;
6
- component: React.ForwardRefExoticComponent<Pick<import("..").UseTextEditorProps, "selection" | "extensions" | "id" | "scrollTo"> & Pick<import("..").ThemeExtensionsOptions, "slots"> & {
5
+ component: React.ForwardRefExoticComponent<Pick<import("..").UseTextEditorProps, "selection" | "scrollTo" | "id" | "extensions"> & Pick<import("..").ThemeExtensionsOptions, "slots"> & {
7
6
  debug?: import("./components").DebugMode;
8
7
  debugCustom?: (view: import("@codemirror/view").EditorView) => React.ReactNode;
9
8
  text?: string;
10
- object?: import("@dxos/echo-schema").Expando;
9
+ object?: import("@dxos/echo/internal").Expando;
11
10
  readOnly?: boolean;
12
11
  placeholder?: string;
13
12
  lineNumbers?: boolean;
14
13
  onReady?: (view: import("@codemirror/view").EditorView) => void;
15
- } & React.RefAttributes<import("@codemirror/view").EditorView | undefined>>;
14
+ } & React.RefAttributes<import("@codemirror/view").EditorView | null>>;
16
15
  decorators: import("@storybook/react").Decorator[];
17
16
  parameters: {
18
17
  layout: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Markdown.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Markdown.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;CAK0B,CAAC;AAErC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAMnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAQxB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAEnB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAEnB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAElB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAOnB,CAAC;AAMF,eAAO,MAAM,UAAU,EAAE,KAExB,CAAC;AAMF,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC;AAMF,eAAO,MAAM,QAAQ,EAAE,KAItB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAC;AAMF,eAAO,MAAM,KAAK,EAAE,KAEnB,CAAC;AAMF,eAAO,MAAM,YAAY,EAAE,KAW1B,CAAC"}
1
+ {"version":3,"file":"Markdown.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Markdown.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;CAO0B,CAAC;AAErC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAMnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAQxB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAEnB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAEnB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAElB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAOnB,CAAC;AAMF,eAAO,MAAM,UAAU,EAAE,KAExB,CAAC;AAMF,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC;AAMF,eAAO,MAAM,QAAQ,EAAE,KAItB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAC;AAMF,eAAO,MAAM,KAAK,EAAE,KAEnB,CAAC;AAMF,eAAO,MAAM,YAAY,EAAE,KAW1B,CAAC"}
@@ -1,4 +1,3 @@
1
- import '@dxos-theme';
2
1
  import { type StoryObj } from '@storybook/react-vite';
3
2
  import React from 'react';
4
3
  type StoryProps = {
@@ -1 +1 @@
1
- {"version":3,"file":"Outliner.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Outliner.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAiB,MAAM,OAAO,CAAC;AAYtC,KAAK,UAAU,GAAG;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAuCF,QAAA,MAAM,IAAI;;uBArCsB,UAAU;;;;;CA0CL,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,KAAK,EAAE,KAEnB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAanB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAapB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAgB1B,CAAC"}
1
+ {"version":3,"file":"Outliner.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Outliner.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAA0B,MAAM,OAAO,CAAC;AAkB/C,KAAK,UAAU,GAAG;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAiDF,QAAA,MAAM,IAAI;;uBA/CsB,UAAU;;;;;CAsDL,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,KAAK,EAAE,KAEnB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAanB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAapB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAgB1B,CAAC"}
@@ -1,13 +1,12 @@
1
- import '@dxos-theme';
2
1
  import { type StoryObj } from '@storybook/react-vite';
3
2
  import React from 'react';
4
- import { type UseCommandMenuOptions } from '../extensions';
5
- type StoryProps = Omit<UseCommandMenuOptions, 'viewRef'> & {
3
+ import { type UsePopoverMenuProps } from '../extensions';
4
+ type StoryProps = Omit<UsePopoverMenuProps, 'viewRef'> & {
6
5
  text: string;
7
6
  };
8
7
  declare const meta: {
9
8
  title: string;
10
- render: ({ text, ...options }: StoryProps) => React.JSX.Element;
9
+ render: ({ text, ...props }: StoryProps) => React.JSX.Element;
11
10
  decorators: import("@storybook/react").Decorator[];
12
11
  parameters: {
13
12
  layout: string;
@@ -15,6 +14,7 @@ declare const meta: {
15
14
  };
16
15
  export default meta;
17
16
  type Story = StoryObj<typeof meta>;
18
- export declare const Slash: Story;
17
+ export declare const Default: Story;
18
+ export declare const Formatting: Story;
19
19
  export declare const Link: Story;
20
- //# sourceMappingURL=CommandMenu.stories.d.ts.map
20
+ //# sourceMappingURL=Popover.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Popover.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Popover.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAgC,MAAM,OAAO,CAAC;AASrD,OAAO,EAIL,KAAK,mBAAmB,EAQzB,MAAM,eAAe,CAAC;AAyBvB,KAAK,UAAU,GAAG,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAuD1E,QAAA,MAAM,IAAI;;iCArDgC,UAAU;;;;;CA4Df,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KASxB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAsBlB,CAAC"}
@@ -1,19 +1,18 @@
1
- import '@dxos-theme';
2
1
  import { type EditorView } from '@codemirror/view';
3
2
  import { type StoryObj } from '@storybook/react-vite';
4
3
  import React from 'react';
5
4
  declare const meta: {
6
5
  title: string;
7
- component: React.ForwardRefExoticComponent<Pick<import("..").UseTextEditorProps, "selection" | "extensions" | "id" | "scrollTo"> & Pick<import("..").ThemeExtensionsOptions, "slots"> & {
6
+ component: React.ForwardRefExoticComponent<Pick<import("..").UseTextEditorProps, "selection" | "scrollTo" | "id" | "extensions"> & Pick<import("..").ThemeExtensionsOptions, "slots"> & {
8
7
  debug?: import("./components").DebugMode;
9
8
  debugCustom?: (view: EditorView) => React.ReactNode;
10
9
  text?: string;
11
- object?: import("@dxos/echo-schema").Expando;
10
+ object?: import("@dxos/echo/internal").Expando;
12
11
  readOnly?: boolean;
13
12
  placeholder?: string;
14
13
  lineNumbers?: boolean;
15
14
  onReady?: (view: EditorView) => void;
16
- } & React.RefAttributes<EditorView | undefined>>;
15
+ } & React.RefAttributes<EditorView | null>>;
17
16
  decorators: import("@storybook/react").Decorator[];
18
17
  parameters: {
19
18
  layout: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Preview.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Preview.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAoD,MAAM,OAAO,CAAC;AA+JzE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;CAK0B,CAAC;AAErC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAiDrB,CAAC"}
1
+ {"version":3,"file":"Preview.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Preview.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAoD,MAAM,OAAO,CAAC;AA+JzE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;CAO0B,CAAC;AAErC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAiDrB,CAAC"}
@@ -1,4 +1,3 @@
1
- import '@dxos-theme';
2
1
  import { type StoryObj } from '@storybook/react-vite';
3
2
  import React from 'react';
4
3
  declare const meta: {
@@ -1 +1 @@
1
- {"version":3,"file":"Tags.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Tags.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAmB,MAAM,OAAO,CAAC;AA0DxC,QAAA,MAAM,IAAI;;uBAhCsB;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;CAqCZ,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC"}
1
+ {"version":3,"file":"Tags.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Tags.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAmB,MAAM,OAAO,CAAC;AA0DxC,QAAA,MAAM,IAAI;;uBAhCsB;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;CAuCZ,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC"}
@@ -1,18 +1,17 @@
1
- import '@dxos-theme';
2
1
  import { type StoryObj } from '@storybook/react-vite';
3
2
  import React from 'react';
4
3
  declare const meta: {
5
4
  title: string;
6
- component: React.ForwardRefExoticComponent<Pick<import("..").UseTextEditorProps, "selection" | "extensions" | "id" | "scrollTo"> & Pick<import("..").ThemeExtensionsOptions, "slots"> & {
5
+ component: React.ForwardRefExoticComponent<Pick<import("..").UseTextEditorProps, "selection" | "scrollTo" | "id" | "extensions"> & Pick<import("..").ThemeExtensionsOptions, "slots"> & {
7
6
  debug?: import("./components").DebugMode;
8
7
  debugCustom?: (view: import("@codemirror/view").EditorView) => React.ReactNode;
9
8
  text?: string;
10
- object?: import("@dxos/echo-schema").Expando;
9
+ object?: import("@dxos/echo/internal").Expando;
11
10
  readOnly?: boolean;
12
11
  placeholder?: string;
13
12
  lineNumbers?: boolean;
14
13
  onReady?: (view: import("@codemirror/view").EditorView) => void;
15
- } & React.RefAttributes<import("@codemirror/view").EditorView | undefined>>;
14
+ } & React.RefAttributes<import("@codemirror/view").EditorView | null>>;
16
15
  decorators: import("@storybook/react").Decorator[];
17
16
  parameters: {
18
17
  layout: string;
@@ -35,7 +34,6 @@ export declare const Scrolling: Story;
35
34
  export declare const ScrollingWithImages: Story;
36
35
  export declare const ScrollTo: Story;
37
36
  export declare const Typescript: Story;
38
- export declare const Autocomplete: Story;
39
37
  export declare const Typeahead: Story;
40
38
  export declare const Mention: Story;
41
39
  export declare const Search: Story;
@@ -1 +1 @@
1
- {"version":3,"file":"TextEditor.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/TextEditor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAIrB,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAkC1B,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;CAK0B,CAAC;AAErC,eAAe,IAAI,CAAC;AAMpB,KAAK,KAAK,GAAG,QAAQ,CAAC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AAMF,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAC;AAMF,eAAO,MAAM,GAAG,EAAE,KAOjB,CAAC;AAMF,eAAO,MAAM,QAAQ,EAAE,KAgBtB,CAAC;AAMF,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAMF,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KAIjC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAetB,CAAC;AAMF,eAAO,MAAM,UAAU,EAAE,KAQxB,CAAC;AAQF,eAAO,MAAM,SAAS,EAAE,KAWvB,CAAC;AAMF,eAAO,MAAM,OAAO,EAAE,KAWrB,CAAC;AAMF,eAAO,MAAM,MAAM,EAAE,KAQpB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { type EditorView } from '@codemirror/view';
2
2
  import React, { type ReactNode } from 'react';
3
- import { Expando } from '@dxos/echo-schema';
3
+ import { Expando } from '@dxos/echo/internal';
4
4
  import { type ThemeExtensionsOptions } from '../../extensions';
5
5
  import { type UseTextEditorProps } from '../../hooks';
6
6
  export type DebugMode = 'raw' | 'tree' | 'raw+tree';
@@ -14,7 +14,7 @@ export type StoryProps = Pick<UseTextEditorProps, 'id' | 'scrollTo' | 'selection
14
14
  lineNumbers?: boolean;
15
15
  onReady?: (view: EditorView) => void;
16
16
  };
17
- export declare const EditorStory: React.ForwardRefExoticComponent<Pick<UseTextEditorProps, "selection" | "extensions" | "id" | "scrollTo"> & Pick<ThemeExtensionsOptions, "slots"> & {
17
+ export declare const EditorStory: React.ForwardRefExoticComponent<Pick<UseTextEditorProps, "selection" | "scrollTo" | "id" | "extensions"> & Pick<ThemeExtensionsOptions, "slots"> & {
18
18
  debug?: DebugMode;
19
19
  debugCustom?: (view: EditorView) => ReactNode;
20
20
  text?: string;
@@ -23,11 +23,11 @@ export declare const EditorStory: React.ForwardRefExoticComponent<Pick<UseTextEd
23
23
  placeholder?: string;
24
24
  lineNumbers?: boolean;
25
25
  onReady?: (view: EditorView) => void;
26
- } & React.RefAttributes<EditorView | undefined>>;
26
+ } & React.RefAttributes<EditorView | null>>;
27
27
  /**
28
28
  * Default story component.
29
29
  */
30
- export declare const EditorComponent: React.ForwardRefExoticComponent<Pick<UseTextEditorProps, "selection" | "extensions" | "id" | "scrollTo"> & Pick<ThemeExtensionsOptions, "slots"> & {
30
+ export declare const EditorComponent: React.ForwardRefExoticComponent<Pick<UseTextEditorProps, "selection" | "scrollTo" | "id" | "extensions"> & Pick<ThemeExtensionsOptions, "slots"> & {
31
31
  debug?: DebugMode;
32
32
  debugCustom?: (view: EditorView) => ReactNode;
33
33
  text?: string;
@@ -36,5 +36,5 @@ export declare const EditorComponent: React.ForwardRefExoticComponent<Pick<UseTe
36
36
  placeholder?: string;
37
37
  lineNumbers?: boolean;
38
38
  onReady?: (view: EditorView) => void;
39
- } & React.RefAttributes<EditorView | undefined>>;
39
+ } & React.RefAttributes<EditorView | null>>;
40
40
  //# sourceMappingURL=EditorStory.d.ts.map
@@ -1 +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,EAAE,KAAK,kBAAkB,EAAiB,MAAM,aAAa,CAAC;AAGrE,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,MAAM,GAAG,UAAU,CAAC;AAIpD,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,kBAAkB,EAAE,IAAI,GAAG,UAAU,GAAG,WAAW,GAAG,YAAY,CAAC,GAC/F,IAAI,CAAC,sBAAsB,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,EAAE,WA8N1B,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,WAgO1B,CAAC"}
@@ -0,0 +1,20 @@
1
+ import React, { type PropsWithChildren } from 'react';
2
+ import { type PreviewLinkRef, type PreviewLinkTarget } from '../extensions';
3
+ type PreviewLookup = (link: PreviewLinkRef) => Promise<PreviewLinkTarget | null | undefined>;
4
+ type PreviewPopoverValue = Partial<{
5
+ link: PreviewLinkRef;
6
+ target: PreviewLinkTarget;
7
+ pending: boolean;
8
+ }>;
9
+ declare const usePreviewPopover: (consumerName: string) => Partial<{
10
+ link: PreviewLinkRef;
11
+ target: PreviewLinkTarget;
12
+ pending: boolean;
13
+ }>;
14
+ type PopoverLookupProviderProps = PropsWithChildren<{
15
+ onLookup?: PreviewLookup;
16
+ }>;
17
+ declare const PreviewPopoverProvider: ({ children, onLookup }: PopoverLookupProviderProps) => React.JSX.Element;
18
+ export { PreviewPopoverProvider, usePreviewPopover };
19
+ export type { PopoverLookupProviderProps, PreviewPopoverValue };
20
+ //# sourceMappingURL=PreviewPopover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PreviewPopover.d.ts","sourceRoot":"","sources":["../../../../src/testing/PreviewPopover.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAA4D,MAAM,OAAO,CAAC;AAKhH,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAE5E,KAAK,aAAa,GAAG,CAAC,IAAI,EAAE,cAAc,KAAK,OAAO,CAAC,iBAAiB,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;AAE7F,KAAK,mBAAmB,GAAG,OAAO,CAAC;IACjC,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC,CAAC;AAEH,QAAA,MAAsC,iBAAiB;UAL/C,cAAc;YACZ,iBAAiB;aAChB,OAAO;EAGiG,CAAC;AAEpH,KAAK,0BAA0B,GAAG,iBAAiB,CAAC;IAClD,QAAQ,CAAC,EAAE,aAAa,CAAC;CAC1B,CAAC,CAAC;AAGH,QAAA,MAAM,sBAAsB,GAAI,wBAAwB,0BAA0B,sBAgDjF,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,CAAC;AAErD,YAAY,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from './util';
2
+ export * from './PreviewPopover';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/testing/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/testing/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { type EditorView } from '@codemirror/view';
2
- import { Schema } from 'effect';
2
+ import * as Schema from 'effect/Schema';
3
3
  export type Range = {
4
4
  from: number;
5
5
  to: number;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,MAAM,MAAM,KAAK,GAAG;IAClB,I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CAA6C,CAAC;AAC1E,eAAO,MAAM,cAAc,4FAAuE,CAAC;AACnG,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,cAAc,CAAC,CAAC;AAEvE,eAAO,MAAM,gBAAgB,uCAAwC,CAAC;AACtE,eAAO,MAAM,eAAe,kFAAwE,CAAC;AACrG,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -2,7 +2,6 @@ export * from './cursor';
2
2
  export * from './decorations';
3
3
  export * from './debug';
4
4
  export * from './dom';
5
- export * from './domino';
6
5
  export * from './facet';
7
6
  export * from './react';
8
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/util/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/util/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}