@dxos/react-ui-editor 0.8.2-main.fbd8ed0 → 0.8.2-staging.4d6ad0f

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 (180) hide show
  1. package/dist/lib/browser/index.mjs +1731 -926
  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 +3 -64
  5. package/dist/lib/browser/testing/index.mjs.map +4 -4
  6. package/dist/lib/node/index.cjs +1912 -1111
  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 +3 -75
  10. package/dist/lib/node/testing/index.cjs.map +4 -4
  11. package/dist/lib/node-esm/index.mjs +1731 -926
  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 +3 -64
  15. package/dist/lib/node-esm/testing/index.mjs.map +4 -4
  16. package/dist/types/src/components/EditorToolbar/EditorToolbar.d.ts.map +1 -1
  17. package/dist/types/src/components/EditorToolbar/index.d.ts +1 -1
  18. package/dist/types/src/components/EditorToolbar/index.d.ts.map +1 -1
  19. package/dist/types/src/components/EditorToolbar/util.d.ts +4 -6
  20. package/dist/types/src/components/EditorToolbar/util.d.ts.map +1 -1
  21. package/dist/types/src/components/Popover/RefDropdownMenu.d.ts +21 -0
  22. package/dist/types/src/components/Popover/RefDropdownMenu.d.ts.map +1 -0
  23. package/dist/types/src/{testing → components/Popover}/RefPopover.d.ts +1 -1
  24. package/dist/types/src/components/Popover/RefPopover.d.ts.map +1 -0
  25. package/dist/types/src/components/Popover/index.d.ts +3 -0
  26. package/dist/types/src/components/Popover/index.d.ts.map +1 -0
  27. package/dist/types/src/components/index.d.ts +1 -0
  28. package/dist/types/src/components/index.d.ts.map +1 -1
  29. package/dist/types/src/defaults.d.ts +2 -5
  30. package/dist/types/src/defaults.d.ts.map +1 -1
  31. package/dist/types/src/extensions/annotations.d.ts +4 -1
  32. package/dist/types/src/extensions/annotations.d.ts.map +1 -1
  33. package/dist/types/src/extensions/autocomplete.d.ts +1 -2
  34. package/dist/types/src/extensions/autocomplete.d.ts.map +1 -1
  35. package/dist/types/src/extensions/automerge/automerge.stories.d.ts.map +1 -1
  36. package/dist/types/src/extensions/automerge/sync.d.ts.map +1 -1
  37. package/dist/types/src/extensions/awareness/awareness-provider.d.ts.map +1 -1
  38. package/dist/types/src/extensions/awareness/awareness.d.ts.map +1 -1
  39. package/dist/types/src/extensions/command/command.d.ts +1 -2
  40. package/dist/types/src/extensions/command/command.d.ts.map +1 -1
  41. package/dist/types/src/extensions/command/hint.d.ts +14 -2
  42. package/dist/types/src/extensions/command/hint.d.ts.map +1 -1
  43. package/dist/types/src/extensions/command/index.d.ts +2 -0
  44. package/dist/types/src/extensions/command/index.d.ts.map +1 -1
  45. package/dist/types/src/extensions/command/menu.d.ts +7 -8
  46. package/dist/types/src/extensions/command/menu.d.ts.map +1 -1
  47. package/dist/types/src/extensions/command/state.d.ts +1 -1
  48. package/dist/types/src/extensions/command/state.d.ts.map +1 -1
  49. package/dist/types/src/extensions/command/typeahead.d.ts +17 -0
  50. package/dist/types/src/extensions/command/typeahead.d.ts.map +1 -0
  51. package/dist/types/src/extensions/comments.d.ts +2 -12
  52. package/dist/types/src/extensions/comments.d.ts.map +1 -1
  53. package/dist/types/src/extensions/factories.d.ts +4 -0
  54. package/dist/types/src/extensions/factories.d.ts.map +1 -1
  55. package/dist/types/src/extensions/index.d.ts +2 -0
  56. package/dist/types/src/extensions/index.d.ts.map +1 -1
  57. package/dist/types/src/extensions/json.d.ts +7 -0
  58. package/dist/types/src/extensions/json.d.ts.map +1 -0
  59. package/dist/types/src/extensions/markdown/{editorAction.d.ts → action.d.ts} +1 -1
  60. package/dist/types/src/extensions/markdown/action.d.ts.map +1 -0
  61. package/dist/types/src/extensions/markdown/bundle.d.ts +2 -1
  62. package/dist/types/src/extensions/markdown/bundle.d.ts.map +1 -1
  63. package/dist/types/src/extensions/markdown/index.d.ts +1 -2
  64. package/dist/types/src/extensions/markdown/index.d.ts.map +1 -1
  65. package/dist/types/src/extensions/markdown/styles.d.ts.map +1 -1
  66. package/dist/types/src/extensions/outliner/commands.d.ts +9 -0
  67. package/dist/types/src/extensions/outliner/commands.d.ts.map +1 -0
  68. package/dist/types/src/extensions/outliner/editor.d.ts +5 -0
  69. package/dist/types/src/extensions/outliner/editor.d.ts.map +1 -0
  70. package/dist/types/src/extensions/outliner/editor.test.d.ts +2 -0
  71. package/dist/types/src/extensions/outliner/editor.test.d.ts.map +1 -0
  72. package/dist/types/src/extensions/outliner/index.d.ts +3 -0
  73. package/dist/types/src/extensions/outliner/index.d.ts.map +1 -0
  74. package/dist/types/src/extensions/outliner/outliner.d.ts +10 -0
  75. package/dist/types/src/extensions/outliner/outliner.d.ts.map +1 -0
  76. package/dist/types/src/extensions/outliner/outliner.test.d.ts +2 -0
  77. package/dist/types/src/extensions/outliner/outliner.test.d.ts.map +1 -0
  78. package/dist/types/src/extensions/outliner/selection.d.ts +12 -0
  79. package/dist/types/src/extensions/outliner/selection.d.ts.map +1 -0
  80. package/dist/types/src/extensions/outliner/tree.d.ts +79 -0
  81. package/dist/types/src/extensions/outliner/tree.d.ts.map +1 -0
  82. package/dist/types/src/extensions/outliner/tree.test.d.ts +2 -0
  83. package/dist/types/src/extensions/outliner/tree.test.d.ts.map +1 -0
  84. package/dist/types/src/stories/Command.stories.d.ts +7 -0
  85. package/dist/types/src/stories/Command.stories.d.ts.map +1 -0
  86. package/dist/types/src/stories/{TextEditorComments.stories.d.ts → Comments.stories.d.ts} +3 -3
  87. package/dist/types/src/stories/Comments.stories.d.ts.map +1 -0
  88. package/dist/types/src/stories/EditorToolbar.stories.d.ts +12 -0
  89. package/dist/types/src/stories/EditorToolbar.stories.d.ts.map +1 -0
  90. package/dist/types/src/stories/{TextEditorSpecial.stories.d.ts → Experimental.stories.d.ts} +3 -6
  91. package/dist/types/src/stories/Experimental.stories.d.ts.map +1 -0
  92. package/dist/types/src/stories/Markdown.stories.d.ts +46 -0
  93. package/dist/types/src/stories/Markdown.stories.d.ts.map +1 -0
  94. package/dist/types/src/stories/Outliner.stories.d.ts +26 -0
  95. package/dist/types/src/stories/Outliner.stories.d.ts.map +1 -0
  96. package/dist/types/src/stories/Preview.stories.d.ts +10 -0
  97. package/dist/types/src/stories/Preview.stories.d.ts.map +1 -0
  98. package/dist/types/src/stories/{TextEditorBasic.stories.d.ts → TextEditor.stories.d.ts} +9 -39
  99. package/dist/types/src/stories/TextEditor.stories.d.ts.map +1 -0
  100. package/dist/types/src/stories/{story-utils.d.ts → util.d.ts} +6 -6
  101. package/dist/types/src/stories/util.d.ts.map +1 -0
  102. package/dist/types/src/styles/theme.d.ts.map +1 -1
  103. package/dist/types/src/styles/tokens.d.ts.map +1 -1
  104. package/dist/types/src/testing/index.d.ts +1 -1
  105. package/dist/types/src/testing/index.d.ts.map +1 -1
  106. package/dist/types/src/testing/util.d.ts +2 -0
  107. package/dist/types/src/testing/util.d.ts.map +1 -0
  108. package/package.json +40 -34
  109. package/src/components/EditorToolbar/EditorToolbar.tsx +81 -57
  110. package/src/components/EditorToolbar/index.ts +7 -1
  111. package/src/components/EditorToolbar/util.ts +3 -4
  112. package/src/components/Popover/RefDropdownMenu.tsx +77 -0
  113. package/src/{testing → components/Popover}/RefPopover.tsx +5 -4
  114. package/src/components/Popover/index.ts +6 -0
  115. package/src/components/index.ts +1 -0
  116. package/src/defaults.ts +10 -13
  117. package/src/extensions/annotations.ts +41 -64
  118. package/src/extensions/autocomplete.ts +5 -6
  119. package/src/extensions/automerge/automerge.stories.tsx +2 -7
  120. package/src/extensions/automerge/automerge.test.tsx +3 -2
  121. package/src/extensions/automerge/sync.ts +3 -3
  122. package/src/extensions/awareness/awareness-provider.ts +4 -4
  123. package/src/extensions/awareness/awareness.ts +7 -7
  124. package/src/extensions/blast.ts +9 -9
  125. package/src/extensions/command/command.ts +1 -3
  126. package/src/extensions/command/hint.ts +7 -7
  127. package/src/extensions/command/index.ts +2 -0
  128. package/src/extensions/command/menu.ts +43 -49
  129. package/src/extensions/command/typeahead.ts +116 -0
  130. package/src/extensions/comments.ts +4 -69
  131. package/src/extensions/factories.ts +13 -0
  132. package/src/extensions/index.ts +2 -0
  133. package/src/extensions/json.ts +56 -0
  134. package/src/extensions/markdown/bundle.ts +13 -9
  135. package/src/extensions/markdown/decorate.ts +7 -7
  136. package/src/extensions/markdown/image.ts +2 -2
  137. package/src/extensions/markdown/index.ts +1 -2
  138. package/src/extensions/markdown/styles.ts +2 -1
  139. package/src/extensions/markdown/table.ts +3 -3
  140. package/src/extensions/outliner/commands.ts +242 -0
  141. package/src/extensions/outliner/editor.test.ts +33 -0
  142. package/src/extensions/outliner/editor.ts +180 -0
  143. package/src/extensions/outliner/index.ts +6 -0
  144. package/src/extensions/outliner/outliner.test.ts +99 -0
  145. package/src/extensions/outliner/outliner.ts +162 -0
  146. package/src/extensions/outliner/selection.ts +50 -0
  147. package/src/extensions/outliner/tree.test.ts +164 -0
  148. package/src/extensions/outliner/tree.ts +315 -0
  149. package/src/extensions/preview/preview.ts +5 -5
  150. package/src/stories/Command.stories.tsx +97 -0
  151. package/src/stories/{TextEditorComments.stories.tsx → Comments.stories.tsx} +13 -14
  152. package/src/{components/EditorToolbar → stories}/EditorToolbar.stories.tsx +26 -20
  153. package/src/stories/{TextEditorSpecial.stories.tsx → Experimental.stories.tsx} +9 -30
  154. package/src/stories/Markdown.stories.tsx +121 -0
  155. package/src/stories/Outliner.stories.tsx +108 -0
  156. package/src/stories/{TextEditorPreview.stories.tsx → Preview.stories.tsx} +46 -136
  157. package/src/stories/TextEditor.stories.tsx +256 -0
  158. package/src/stories/{story-utils.tsx → util.tsx} +21 -22
  159. package/src/styles/theme.ts +12 -5
  160. package/src/styles/tokens.ts +1 -2
  161. package/src/testing/index.ts +1 -1
  162. package/src/testing/util.ts +5 -0
  163. package/dist/types/src/components/EditorToolbar/EditorToolbar.stories.d.ts +0 -53
  164. package/dist/types/src/components/EditorToolbar/EditorToolbar.stories.d.ts.map +0 -1
  165. package/dist/types/src/components/EditorToolbar/comment.d.ts +0 -18
  166. package/dist/types/src/components/EditorToolbar/comment.d.ts.map +0 -1
  167. package/dist/types/src/extensions/markdown/editorAction.d.ts.map +0 -1
  168. package/dist/types/src/extensions/markdown/outliner.d.ts +0 -12
  169. package/dist/types/src/extensions/markdown/outliner.d.ts.map +0 -1
  170. package/dist/types/src/stories/TextEditorBasic.stories.d.ts.map +0 -1
  171. package/dist/types/src/stories/TextEditorComments.stories.d.ts.map +0 -1
  172. package/dist/types/src/stories/TextEditorPreview.stories.d.ts +0 -13
  173. package/dist/types/src/stories/TextEditorPreview.stories.d.ts.map +0 -1
  174. package/dist/types/src/stories/TextEditorSpecial.stories.d.ts.map +0 -1
  175. package/dist/types/src/stories/story-utils.d.ts.map +0 -1
  176. package/dist/types/src/testing/RefPopover.d.ts.map +0 -1
  177. package/src/components/EditorToolbar/comment.ts +0 -30
  178. package/src/extensions/markdown/outliner.ts +0 -235
  179. package/src/stories/TextEditorBasic.stories.tsx +0 -333
  180. /package/src/extensions/markdown/{editorAction.ts → action.ts} +0 -0
@@ -0,0 +1,12 @@
1
+ import { Compartment, type EditorState, Facet, type SelectionRange } from '@codemirror/state';
2
+ import { type Command } from '@codemirror/view';
3
+ export type Selection = number[];
4
+ export declare const getSelection: (state: EditorState) => SelectionRange;
5
+ export declare const selectionEquals: (a: number[], b: number[]) => boolean;
6
+ export declare const selectionFacet: Facet<Selection, Selection>;
7
+ export declare const selectionCompartment: Compartment;
8
+ export declare const selectNone: Command;
9
+ export declare const selectAll: Command;
10
+ export declare const selectUp: Command;
11
+ export declare const selectDown: Command;
12
+ //# sourceMappingURL=selection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/outliner/selection.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,KAAK,EAAE,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9F,OAAO,EAAmB,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAIjE,MAAM,MAAM,SAAS,GAAG,MAAM,EAAE,CAAC;AAEjC,eAAO,MAAM,YAAY,GAAI,OAAO,WAAW,KAAG,cAAsC,CAAC;AAEzF,eAAO,MAAM,eAAe,GAAI,GAAG,MAAM,EAAE,EAAE,GAAG,MAAM,EAAE,YAA2D,CAAC;AAEpH,eAAO,MAAM,cAAc,6BAEzB,CAAC;AAEH,eAAO,MAAM,oBAAoB,aAAoB,CAAC;AAEtD,eAAO,MAAM,UAAU,EAAE,OAMxB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,OAUvB,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,OAEtB,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,OAExB,CAAC"}
@@ -0,0 +1,79 @@
1
+ import { type Extension, type EditorState } from '@codemirror/state';
2
+ import { Facet } from '@codemirror/state';
3
+ import { type SyntaxNode } from '@lezer/common';
4
+ import { type Range } from '../../types';
5
+ /**
6
+ * Represents a single item in the tree.
7
+ */
8
+ export interface Item {
9
+ type: 'root' | 'bullet' | 'task' | 'unknown';
10
+ index: number;
11
+ level: number;
12
+ node: SyntaxNode;
13
+ parent?: Item;
14
+ nextSibling?: Item;
15
+ prevSibling?: Item;
16
+ children: Item[];
17
+ /**
18
+ * Actual range.
19
+ * Starts at the start of the line containing the item and ends at the end of the line before the
20
+ * first child or next sibling.
21
+ */
22
+ lineRange: Range;
23
+ /**
24
+ * Range of the editable content.
25
+ * This doesn't include the list or task marker or indentation.
26
+ */
27
+ contentRange: Range;
28
+ }
29
+ export declare const itemToJSON: ({ type, index, level, lineRange, contentRange, children }: Item) => any;
30
+ /**
31
+ * Tree assumes the entire document is a single contiguous well-formed hierarchy of markdown LiteItem nodes.
32
+ */
33
+ export declare class Tree implements Item {
34
+ type: Item['type'];
35
+ index: number;
36
+ level: number;
37
+ node: Item['node'];
38
+ lineRange: Item['lineRange'];
39
+ contentRange: Item['contentRange'];
40
+ children: Item['children'];
41
+ constructor(node: SyntaxNode);
42
+ toJSON(): any;
43
+ get root(): Item;
44
+ traverse<T = any>(cb: (item: Item, level: number) => T | void): T | undefined;
45
+ traverse<T = any>(item: Item, cb: (item: Item, level: number) => T | void): T | undefined;
46
+ /**
47
+ * Return the closest item.
48
+ */
49
+ find(pos: number): Item | undefined;
50
+ /**
51
+ * Return the first child, next sibling, or parent's next sibling.
52
+ */
53
+ next(item: Item, enter?: boolean): Item | undefined;
54
+ /**
55
+ * Return the previous sibling, or parent.
56
+ */
57
+ prev(item: Item): Item | undefined;
58
+ /**
59
+ * Return the last descendant of the item, or the item itself if it has no children.
60
+ */
61
+ lastDescendant(item: Item): Item;
62
+ }
63
+ export declare const getRange: (tree: Tree, item: Item) => [number, number];
64
+ /**
65
+ * Traverse the tree, calling the callback for each item.
66
+ * If the callback returns a value, the traversal is stopped and the value is returned.
67
+ */
68
+ export declare const traverse: <T = any>(root: Item, cb: (item: Item, level: number) => T | void) => T | undefined;
69
+ export declare const getListItemContent: (state: EditorState, item: Item) => string;
70
+ export declare const listItemToString: (item: Item, level?: number) => string;
71
+ export declare const treeFacet: Facet<Tree, Tree>;
72
+ export type TreeOptions = {};
73
+ /**
74
+ * Creates a shadow tree of `ListItem` nodes whenever the document changes.
75
+ * This adds overhead relative to the markdown AST, but allows for efficient traversal of the list items.
76
+ * NOTE: Requires markdown parser to be enabled.
77
+ */
78
+ export declare const outlinerTree: (options?: TreeOptions) => Extension;
79
+ //# sourceMappingURL=tree.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/outliner/tree.ts"],"names":[],"mappings":"AAKA,OAAO,EAAgC,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,MAAM,m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"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import '@dxos-theme';
2
+ import { type Meta } from '@dxos/storybook-utils';
3
+ import { EditorStory } from './util';
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,QAAQ,CAAC;AAsDrC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CA0BlC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,IAAK,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import '@dxos-theme';
2
2
  import React from 'react';
3
3
  import { type Meta } from '@dxos/storybook-utils';
4
- import { DefaultStory } from './story-utils';
5
- declare const meta: Meta<typeof DefaultStory>;
4
+ import { EditorStory } from './util';
5
+ declare const meta: Meta<typeof EditorStory>;
6
6
  export default meta;
7
7
  export declare const Comments: {
8
8
  render: () => React.JSX.Element;
@@ -10,4 +10,4 @@ export declare const Comments: {
10
10
  export declare const Annotations: {
11
11
  render: () => React.JSX.Element;
12
12
  };
13
- //# sourceMappingURL=TextEditorComments.stories.d.ts.map
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,QAAQ,CAAC;AAMxD,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"}
@@ -1,12 +1,9 @@
1
1
  import '@dxos-theme';
2
2
  import React from 'react';
3
3
  import { type Meta } from '@dxos/storybook-utils';
4
- import { DefaultStory } from './story-utils';
5
- declare const meta: Meta<typeof DefaultStory>;
4
+ import { EditorStory } from './util';
5
+ declare const meta: Meta<typeof EditorStory>;
6
6
  export default meta;
7
- export declare const Listener: {
8
- render: () => React.JSX.Element;
9
- };
10
7
  export declare const Typewriter: {
11
8
  render: () => React.JSX.Element;
12
9
  };
@@ -16,4 +13,4 @@ export declare const Blast: {
16
13
  export declare const DND: {
17
14
  render: () => React.JSX.Element;
18
15
  };
19
- //# sourceMappingURL=TextEditorSpecial.stories.d.ts.map
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,QAAQ,CAAC;AAI9C,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 './util';
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,QAAQ,CAAC;AAIpG,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;AAKrB,OAAO,EAAyB,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAOzE,KAAK,UAAU,GAAG;IAChB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AA8BF,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 './util';
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,QAAQ,CAAC;AA+FrC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAKlC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO;;CA+BnB,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import '@dxos-theme';
2
2
  import React from 'react';
3
3
  import { type Meta } from '@dxos/storybook-utils';
4
- import { DefaultStory } from './story-utils';
5
- declare const meta: Meta<typeof DefaultStory>;
4
+ import { EditorStory } from './util';
5
+ declare const meta: Meta<typeof EditorStory>;
6
6
  export default meta;
7
7
  export declare const Default: {
8
8
  render: () => React.JSX.Element;
@@ -22,6 +22,9 @@ export declare const NoExtensions: {
22
22
  export declare const Vim: {
23
23
  render: () => React.JSX.Element;
24
24
  };
25
+ export declare const Listener: {
26
+ render: () => React.JSX.Element;
27
+ };
25
28
  export declare const Folding: {
26
29
  render: () => React.JSX.Element;
27
30
  };
@@ -34,52 +37,19 @@ export declare const ScrollingWithImages: {
34
37
  export declare const ScrollTo: {
35
38
  render: () => React.JSX.Element;
36
39
  };
37
- export declare const Blockquote: {
38
- render: () => React.JSX.Element;
39
- };
40
- export declare const Headings: {
41
- render: () => React.JSX.Element;
42
- };
43
- export declare const Links: {
44
- render: () => React.JSX.Element;
45
- };
46
- export declare const Image: {
47
- render: () => React.JSX.Element;
48
- };
49
- export declare const Code: {
50
- render: () => React.JSX.Element;
51
- };
52
- export declare const Lists: {
53
- render: () => React.JSX.Element;
54
- };
55
- export declare const BulletList: {
56
- render: () => React.JSX.Element;
57
- };
58
- export declare const OrderedList: {
59
- render: () => React.JSX.Element;
60
- };
61
- export declare const TaskList: {
62
- render: () => React.JSX.Element;
63
- };
64
- export declare const Outliner: {
65
- render: () => React.JSX.Element;
66
- };
67
- export declare const Table: {
68
- render: () => React.JSX.Element;
69
- };
70
- export declare const CommentedOut: {
71
- render: () => React.JSX.Element;
72
- };
73
40
  export declare const Typescript: {
74
41
  render: () => React.JSX.Element;
75
42
  };
76
43
  export declare const Autocomplete: {
77
44
  render: () => React.JSX.Element;
78
45
  };
46
+ export declare const Typeahead: {
47
+ render: () => React.JSX.Element;
48
+ };
79
49
  export declare const Mention: {
80
50
  render: () => React.JSX.Element;
81
51
  };
82
52
  export declare const Search: {
83
53
  render: () => React.JSX.Element;
84
54
  };
85
- //# sourceMappingURL=TextEditorBasic.stories.d.ts.map
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,QAAQ,CAAC;AAgBhB,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"}
@@ -1,10 +1,9 @@
1
1
  import { type Completion } from '@codemirror/autocomplete';
2
2
  import { type Extension } from '@codemirror/state';
3
3
  import { type EditorView } from '@codemirror/view';
4
- import React from 'react';
5
- import { type EditorSelectionState } from '../extensions';
4
+ import React, { type ReactNode } from 'react';
5
+ import { type EditorSelectionState, type ThemeExtensionsOptions } from '../extensions';
6
6
  import { type UseTextEditorProps } from '../hooks';
7
- export declare const str: (...lines: string[]) => string;
8
7
  export declare const num: () => string;
9
8
  export declare const img = "![dxos](https://dxos.network/dxos-logotype-blue.png)";
10
9
  export declare const code: string;
@@ -43,11 +42,12 @@ export type DebugMode = 'raw' | 'tree' | 'raw+tree';
43
42
  export type StoryProps = {
44
43
  id?: string;
45
44
  debug?: DebugMode;
45
+ debugCustom?: (view: EditorView) => ReactNode;
46
46
  text?: string;
47
47
  readOnly?: boolean;
48
48
  placeholder?: string;
49
49
  lineNumbers?: boolean;
50
50
  onReady?: (view: EditorView) => void;
51
- } & Pick<UseTextEditorProps, 'scrollTo' | 'selection' | 'extensions'>;
52
- export declare const DefaultStory: ({ id, debug, text, extensions, readOnly, placeholder, scrollTo, selection, lineNumbers, onReady, }: StoryProps) => React.JSX.Element;
53
- //# sourceMappingURL=story-utils.d.ts.map
51
+ } & Pick<UseTextEditorProps, 'scrollTo' | 'selection' | 'extensions'> & Pick<ThemeExtensionsOptions, 'slots'>;
52
+ export declare const EditorStory: ({ id, debug, debugCustom, text, readOnly, placeholder, lineNumbers, scrollTo, selection, extensions, slots, onReady, }: StoryProps) => React.JSX.Element;
53
+ //# sourceMappingURL=util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/stories/util.tsx"],"names":[],"mappings":"A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IAAI,EAAE,UAAU,KAAK,SAAS,CAAC;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,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,GAAG,IAAI,CAAC,kBAAkB,EAAE,UAAU,GAAG,WAAW,GAAG,YAAY,CAAC,GACnE,IAAI,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;AAGxC,eAAO,MAAM,WAAW,GAAI,wHAazB,UAAU,sBAiDZ,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,WAsN1B,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"}
@@ -1,2 +1,2 @@
1
- export * from './RefPopover';
1
+ export * from './util';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/testing/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/react-ui-editor",
3
- "version": "0.8.2-main.fbd8ed0",
3
+ "version": "0.8.2-staging.4d6ad0f",
4
4
  "description": "Document editing experience within a DXOS shell.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -29,10 +29,11 @@
29
29
  "src"
30
30
  ],
31
31
  "dependencies": {
32
- "@automerge/automerge": "3.0.0-beta.0",
32
+ "@automerge/automerge": "3.0.0-beta.4",
33
33
  "@codemirror/autocomplete": "^6.18.1",
34
34
  "@codemirror/commands": "^6.6.2",
35
35
  "@codemirror/lang-javascript": "^6.2.2",
36
+ "@codemirror/lang-json": "^6.0.1",
36
37
  "@codemirror/lang-markdown": "^6.3.0",
37
38
  "@codemirror/language": "^6.10.3",
38
39
  "@codemirror/language-data": "^6.5.1",
@@ -46,42 +47,43 @@
46
47
  "@lezer/generator": "^1.7.1",
47
48
  "@lezer/highlight": "^1.2.1",
48
49
  "@lezer/markdown": "^1.3.1",
49
- "@preact/signals-react": "^1.3.8",
50
+ "@preact-signals/safe-react": "^0.9.0",
51
+ "@preact/signals-react": "^3.2.0",
50
52
  "@radix-ui/react-context": "1.1.1",
51
53
  "@replit/codemirror-vim": "^6.2.1",
52
54
  "@replit/codemirror-vscode-keymap": "^6.0.2",
55
+ "ajv": "^8.17.1",
53
56
  "codemirror": "^6.0.1",
54
- "effect": "3.14.21",
55
57
  "lib0": "^0.2.65",
56
58
  "lodash.defaultsdeep": "^4.6.1",
57
- "lodash.get": "^4.4.2",
58
59
  "lodash.merge": "^4.6.2",
59
60
  "lodash.sortby": "^4.7.0",
60
61
  "style-mod": "^4.1.0",
61
- "@dxos/app-graph": "0.8.2-main.fbd8ed0",
62
- "@dxos/async": "0.8.2-main.fbd8ed0",
63
- "@dxos/debug": "0.8.2-main.fbd8ed0",
64
- "@dxos/display-name": "0.8.2-main.fbd8ed0",
65
- "@dxos/context": "0.8.2-main.fbd8ed0",
66
- "@dxos/echo-schema": "0.8.2-main.fbd8ed0",
67
- "@dxos/lit-ui": "0.8.2-main.fbd8ed0",
68
- "@dxos/invariant": "0.8.2-main.fbd8ed0",
69
- "@dxos/live-object": "0.8.2-main.fbd8ed0",
70
- "@dxos/protocols": "0.8.2-main.fbd8ed0",
71
- "@dxos/log": "0.8.2-main.fbd8ed0",
72
- "@dxos/react-hooks": "0.8.2-main.fbd8ed0",
73
- "@dxos/react-ui-menu": "0.8.2-main.fbd8ed0",
74
- "@dxos/util": "0.8.2-main.fbd8ed0"
62
+ "@dxos/async": "0.8.2-staging.4d6ad0f",
63
+ "@dxos/context": "0.8.2-staging.4d6ad0f",
64
+ "@dxos/debug": "0.8.2-staging.4d6ad0f",
65
+ "@dxos/app-graph": "0.8.2-staging.4d6ad0f",
66
+ "@dxos/echo-schema": "0.8.2-staging.4d6ad0f",
67
+ "@dxos/display-name": "0.8.2-staging.4d6ad0f",
68
+ "@dxos/lit-ui": "0.8.2-staging.4d6ad0f",
69
+ "@dxos/invariant": "0.8.2-staging.4d6ad0f",
70
+ "@dxos/log": "0.8.2-staging.4d6ad0f",
71
+ "@dxos/live-object": "0.8.2-staging.4d6ad0f",
72
+ "@dxos/protocols": "0.8.2-staging.4d6ad0f",
73
+ "@dxos/react-hooks": "0.8.2-staging.4d6ad0f",
74
+ "@dxos/react-ui-menu": "0.8.2-staging.4d6ad0f",
75
+ "@dxos/util": "0.8.2-staging.4d6ad0f"
75
76
  },
76
77
  "devDependencies": {
77
- "@automerge/automerge": "3.0.0-beta.0",
78
- "@automerge/automerge-repo": "2.0.0",
79
- "@automerge/automerge-repo-network-broadcastchannel": "2.0.0",
78
+ "@automerge/automerge": "3.0.0-beta.4",
79
+ "@automerge/automerge-repo": "2.0.1",
80
+ "@automerge/automerge-repo-network-broadcastchannel": "2.0.1",
81
+ "@effect-rx/rx-react": "^0.34.1",
82
+ "@effect/platform": "0.80.12",
80
83
  "@phosphor-icons/react": "^2.1.5",
81
84
  "@types/chai": "^4.2.15",
82
85
  "@types/chai-dom": "^1.11.0",
83
86
  "@types/lodash.defaultsdeep": "^4.6.6",
84
- "@types/lodash.get": "^4.4.7",
85
87
  "@types/lodash.merge": "^4.6.6",
86
88
  "@types/lodash.sortby": "^4.7.7",
87
89
  "@types/react": "~18.2.0",
@@ -89,6 +91,7 @@
89
91
  "@types/react-test-renderer": "^17.0.2",
90
92
  "chai": "^4.4.1",
91
93
  "chai-dom": "^1.11.0",
94
+ "effect": "3.14.21",
92
95
  "happy-dom": "^13.3.1",
93
96
  "jsdom": "^24.0.0",
94
97
  "mocha": "^10.6.0",
@@ -98,23 +101,26 @@
98
101
  "vite": "5.4.7",
99
102
  "vite-plugin-top-level-await": "^1.4.1",
100
103
  "vite-plugin-wasm": "^3.3.0",
101
- "@dxos/config": "0.8.2-main.fbd8ed0",
102
- "@dxos/echo-signals": "0.8.2-main.fbd8ed0",
103
- "@dxos/keyboard": "0.8.2-main.fbd8ed0",
104
- "@dxos/random": "0.8.2-main.fbd8ed0",
105
- "@dxos/react-client": "0.8.2-main.fbd8ed0",
106
- "@dxos/react-ui": "0.8.2-main.fbd8ed0",
107
- "@dxos/storybook-utils": "0.8.2-main.fbd8ed0",
108
- "@dxos/react-ui-theme": "0.8.2-main.fbd8ed0"
104
+ "@dxos/config": "0.8.2-staging.4d6ad0f",
105
+ "@dxos/echo-signals": "0.8.2-staging.4d6ad0f",
106
+ "@dxos/random": "0.8.2-staging.4d6ad0f",
107
+ "@dxos/keyboard": "0.8.2-staging.4d6ad0f",
108
+ "@dxos/react-ui": "0.8.2-staging.4d6ad0f",
109
+ "@dxos/react-client": "0.8.2-staging.4d6ad0f",
110
+ "@dxos/react-ui-syntax-highlighter": "0.8.2-staging.4d6ad0f",
111
+ "@dxos/react-ui-theme": "0.8.2-staging.4d6ad0f",
112
+ "@dxos/storybook-utils": "0.8.2-staging.4d6ad0f"
109
113
  },
110
114
  "peerDependencies": {
115
+ "@effect-rx/rx-react": "^0.34.1",
116
+ "@effect/platform": "0.80.12",
111
117
  "@phosphor-icons/react": "^2.1.5",
112
118
  "effect": "^3.13.3",
113
119
  "react": "~18.2.0",
114
120
  "react-dom": "~18.2.0",
115
- "@dxos/react-ui": "0.8.2-main.fbd8ed0",
116
- "@dxos/react-ui-theme": "0.8.2-main.fbd8ed0",
117
- "@dxos/react-client": "0.8.2-main.fbd8ed0"
121
+ "@dxos/react-client": "0.8.2-staging.4d6ad0f",
122
+ "@dxos/react-ui-theme": "0.8.2-staging.4d6ad0f",
123
+ "@dxos/react-ui": "0.8.2-staging.4d6ad0f"
118
124
  },
119
125
  "publishConfig": {
120
126
  "access": "public"