@dxos/react-ui-editor 0.8.4-main.d05539e30a → 0.8.4-main.d9fc60f731

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/react-ui-editor",
3
- "version": "0.8.4-main.d05539e30a",
3
+ "version": "0.8.4-main.d9fc60f731",
4
4
  "description": "Text editor components.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -35,68 +35,68 @@
35
35
  "src"
36
36
  ],
37
37
  "dependencies": {
38
- "@automerge/automerge": "3.2.6",
39
- "@codemirror/autocomplete": "^6.19.0",
40
- "@codemirror/commands": "^6.8.1",
38
+ "@automerge/automerge": "3.3.0-fragments.1",
39
+ "@codemirror/autocomplete": "^6.20.2",
40
+ "@codemirror/commands": "^6.10.3",
41
41
  "@codemirror/lang-html": "^6.4.11",
42
- "@codemirror/lang-javascript": "^6.2.4",
42
+ "@codemirror/lang-javascript": "^6.2.5",
43
43
  "@codemirror/lang-json": "^6.0.2",
44
- "@codemirror/lang-markdown": "6.3.4",
44
+ "@codemirror/lang-markdown": "6.5.0",
45
45
  "@codemirror/lang-xml": "^6.1.0",
46
- "@codemirror/lang-yaml": "^6.1.2",
47
- "@codemirror/language": "^6.11.3",
48
- "@codemirror/language-data": "^6.5.1",
49
- "@codemirror/lint": "6.8.5",
50
- "@codemirror/search": "^6.5.11",
51
- "@codemirror/state": "^6.5.2",
46
+ "@codemirror/lang-yaml": "^6.1.3",
47
+ "@codemirror/language": "^6.12.3",
48
+ "@codemirror/language-data": "^6.5.2",
49
+ "@codemirror/lint": "6.9.6",
50
+ "@codemirror/search": "^6.7.0",
51
+ "@codemirror/state": "^6.6.0",
52
52
  "@codemirror/theme-one-dark": "^6.1.3",
53
- "@codemirror/view": "^6.38.5",
53
+ "@codemirror/view": "^6.43.0",
54
54
  "@fluentui/react-tabster": "9.26.11",
55
- "@lezer/common": "^1.2.2",
56
- "@lezer/generator": "^1.7.1",
57
- "@lezer/highlight": "^1.2.1",
58
- "@lezer/markdown": "^1.3.1",
55
+ "@lezer/common": "^1.5.2",
56
+ "@lezer/generator": "^1.8.0",
57
+ "@lezer/highlight": "^1.2.3",
58
+ "@lezer/markdown": "^1.6.3",
59
59
  "@radix-ui/react-context": "1.1.1",
60
60
  "@radix-ui/react-use-controllable-state": "1.1.0",
61
- "@replit/codemirror-vim": "^6.2.1",
61
+ "@replit/codemirror-vim": "^6.3.0",
62
62
  "@replit/codemirror-vscode-keymap": "^6.0.2",
63
63
  "@uiw/codemirror-theme-vscode": "^4.25.2",
64
64
  "ajv": "^8.18.0",
65
65
  "bind-event-listener": "^3.0.0",
66
- "codemirror": "^6.0.1",
66
+ "codemirror": "^6.0.2",
67
67
  "lib0": "^0.2.65",
68
68
  "lodash.defaultsdeep": "^4.6.1",
69
69
  "lodash.merge": "^4.6.2",
70
70
  "lodash.sortby": "^4.7.0",
71
71
  "style-mod": "^4.1.0",
72
- "@dxos/app-graph": "0.8.4-main.d05539e30a",
73
- "@dxos/async": "0.8.4-main.d05539e30a",
74
- "@dxos/client": "0.8.4-main.d05539e30a",
75
- "@dxos/context": "0.8.4-main.d05539e30a",
76
- "@dxos/echo": "0.8.4-main.d05539e30a",
77
- "@dxos/display-name": "0.8.4-main.d05539e30a",
78
- "@dxos/effect": "0.8.4-main.d05539e30a",
79
- "@dxos/echo-db": "0.8.4-main.d05539e30a",
80
- "@dxos/invariant": "0.8.4-main.d05539e30a",
81
- "@dxos/debug": "0.8.4-main.d05539e30a",
82
- "@dxos/lit-ui": "0.8.4-main.d05539e30a",
83
- "@dxos/log": "0.8.4-main.d05539e30a",
84
- "@dxos/protocols": "0.8.4-main.d05539e30a",
85
- "@dxos/react-hooks": "0.8.4-main.d05539e30a",
86
- "@dxos/react-ui-menu": "0.8.4-main.d05539e30a",
87
- "@dxos/ui": "0.8.4-main.d05539e30a",
88
- "@dxos/react-ui-mosaic": "0.8.4-main.d05539e30a",
89
- "@dxos/ui-editor": "0.8.4-main.d05539e30a",
90
- "@dxos/ui-theme": "0.8.4-main.d05539e30a",
91
- "@dxos/util": "0.8.4-main.d05539e30a"
72
+ "@dxos/async": "0.8.4-main.d9fc60f731",
73
+ "@dxos/app-graph": "0.8.4-main.d9fc60f731",
74
+ "@dxos/client": "0.8.4-main.d9fc60f731",
75
+ "@dxos/context": "0.8.4-main.d9fc60f731",
76
+ "@dxos/display-name": "0.8.4-main.d9fc60f731",
77
+ "@dxos/debug": "0.8.4-main.d9fc60f731",
78
+ "@dxos/echo-db": "0.8.4-main.d9fc60f731",
79
+ "@dxos/echo": "0.8.4-main.d9fc60f731",
80
+ "@dxos/effect": "0.8.4-main.d9fc60f731",
81
+ "@dxos/invariant": "0.8.4-main.d9fc60f731",
82
+ "@dxos/lit-ui": "0.8.4-main.d9fc60f731",
83
+ "@dxos/log": "0.8.4-main.d9fc60f731",
84
+ "@dxos/protocols": "0.8.4-main.d9fc60f731",
85
+ "@dxos/react-ui-mosaic": "0.8.4-main.d9fc60f731",
86
+ "@dxos/react-hooks": "0.8.4-main.d9fc60f731",
87
+ "@dxos/ui": "0.8.4-main.d9fc60f731",
88
+ "@dxos/ui-editor": "0.8.4-main.d9fc60f731",
89
+ "@dxos/ui-theme": "0.8.4-main.d9fc60f731",
90
+ "@dxos/util": "0.8.4-main.d9fc60f731",
91
+ "@dxos/react-ui-menu": "0.8.4-main.d9fc60f731"
92
92
  },
93
93
  "devDependencies": {
94
- "@automerge/automerge": "3.2.6",
95
- "@automerge/automerge-repo": "2.6.0-subduction.20",
96
- "@automerge/automerge-repo-network-broadcastchannel": "2.6.0-subduction.20",
94
+ "@automerge/automerge": "3.3.0-fragments.1",
95
+ "@automerge/automerge-repo": "2.6.0-subduction.23",
96
+ "@automerge/automerge-repo-network-broadcastchannel": "2.6.0-subduction.23",
97
97
  "@effect-atom/atom-react": "^0.5.0",
98
- "@effect/ai": "0.33.2",
99
- "@effect/platform": "0.94.4",
98
+ "@effect/ai": "0.35.0",
99
+ "@effect/platform": "0.96.1",
100
100
  "@types/chai": "^4.2.15",
101
101
  "@types/chai-dom": "^1.11.0",
102
102
  "@types/lodash.defaultsdeep": "^4.6.6",
@@ -107,40 +107,40 @@
107
107
  "@types/react-test-renderer": "^17.0.2",
108
108
  "chai": "^4.4.1",
109
109
  "chai-dom": "^1.11.0",
110
- "effect": "3.20.0",
110
+ "effect": "3.21.2",
111
111
  "happy-dom": "^20.0.0",
112
- "jsdom": "^27.0.0",
112
+ "jsdom": "^29.1.1",
113
113
  "mocha": "^10.6.0",
114
114
  "react": "~19.2.3",
115
115
  "react-dom": "~19.2.3",
116
116
  "react-test-renderer": "~19.2.0",
117
- "vite": "^8.0.13",
117
+ "vite": "^8.0.14",
118
118
  "vite-plugin-top-level-await": "^1.6.0",
119
119
  "vite-plugin-wasm": "^3.6.0",
120
- "@dxos/ai": "0.8.4-main.d05539e30a",
121
- "@dxos/config": "0.8.4-main.d05539e30a",
122
- "@dxos/echo": "0.8.4-main.d05539e30a",
123
- "@dxos/echo-atom": "0.8.4-main.d05539e30a",
124
- "@dxos/keyboard": "0.8.4-main.d05539e30a",
125
- "@dxos/random": "0.8.4-main.d05539e30a",
126
- "@dxos/react-client": "0.8.4-main.d05539e30a",
127
- "@dxos/react-ui-attention": "0.8.4-main.d05539e30a",
128
- "@dxos/react-ui-syntax-highlighter": "0.8.4-main.d05539e30a",
129
- "@dxos/react-ui": "0.8.4-main.d05539e30a",
130
- "@dxos/storybook-utils": "0.8.4-main.d05539e30a",
131
- "@dxos/ui-theme": "0.8.4-main.d05539e30a",
132
- "@dxos/ui-types": "0.8.4-main.d05539e30a",
133
- "@dxos/schema": "0.8.4-main.d05539e30a"
120
+ "@dxos/ai": "0.8.4-main.d9fc60f731",
121
+ "@dxos/keyboard": "0.8.4-main.d9fc60f731",
122
+ "@dxos/config": "0.8.4-main.d9fc60f731",
123
+ "@dxos/echo-atom": "0.8.4-main.d9fc60f731",
124
+ "@dxos/random": "0.8.4-main.d9fc60f731",
125
+ "@dxos/react-client": "0.8.4-main.d9fc60f731",
126
+ "@dxos/react-ui": "0.8.4-main.d9fc60f731",
127
+ "@dxos/react-ui-attention": "0.8.4-main.d9fc60f731",
128
+ "@dxos/react-ui-syntax-highlighter": "0.8.4-main.d9fc60f731",
129
+ "@dxos/schema": "0.8.4-main.d9fc60f731",
130
+ "@dxos/storybook-utils": "0.8.4-main.d9fc60f731",
131
+ "@dxos/ui-theme": "0.8.4-main.d9fc60f731",
132
+ "@dxos/ui-types": "0.8.4-main.d9fc60f731",
133
+ "@dxos/echo": "0.8.4-main.d9fc60f731"
134
134
  },
135
135
  "peerDependencies": {
136
136
  "@effect-atom/atom-react": "^0.5.0",
137
- "@effect/platform": "0.94.4",
138
- "effect": "3.20.0",
137
+ "@effect/platform": "0.96.1",
138
+ "effect": "3.21.2",
139
139
  "react": "~19.2.3",
140
140
  "react-dom": "~19.2.3",
141
- "@dxos/react-client": "0.8.4-main.d05539e30a",
142
- "@dxos/react-ui": "0.8.4-main.d05539e30a",
143
- "@dxos/ui-theme": "0.8.4-main.d05539e30a"
141
+ "@dxos/ui-theme": "0.8.4-main.d9fc60f731",
142
+ "@dxos/react-ui": "0.8.4-main.d9fc60f731",
143
+ "@dxos/react-client": "0.8.4-main.d9fc60f731"
144
144
  },
145
145
  "publishConfig": {
146
146
  "access": "public"
@@ -88,10 +88,7 @@ export const EditorView = forwardRef<EditorController, EditorViewProps>(
88
88
 
89
89
  return (
90
90
  <div
91
- className={mx(
92
- 'w-full outline-hidden focus:border-accent-surface focus-within:border-focus-ring-subtle',
93
- classNames,
94
- )}
91
+ className={mx('w-full outline-hidden focus:border-accent-bg focus-within:border-focus-ring-subtle', classNames)}
95
92
  {...(focusable ? focusAttributes : {})}
96
93
  ref={parentRef}
97
94
  />
@@ -74,15 +74,15 @@ export const assistant = (options: AssistantOptions): Extension[] => {
74
74
  },
75
75
  /** @apply dx-button */
76
76
  '.cm-panel button': {
77
- color: 'var(--color-base-foreground) !important',
77
+ color: 'var(--color-base-fg) !important',
78
78
  },
79
79
  '.cm-panel.cm-panel-lint ul': {
80
- color: 'var(--color-base-foreground) !important',
80
+ color: 'var(--color-base-fg) !important',
81
81
  backgroundColor: 'var(--color-base-surface) !important',
82
82
  marginRight: '2rem !important',
83
83
  },
84
84
  '.cm-panel.cm-panel-lint ul [aria-selected]': {
85
- color: 'var(--color-base-foreground) !important',
85
+ color: 'var(--color-base-fg) !important',
86
86
  backgroundColor: 'var(--color-base-surface) !important',
87
87
  },
88
88
  '.cm-panel.cm-panel-lint ul li': {
@@ -81,7 +81,7 @@ const LinkStory = (args: DefaultStoryProps) => {
81
81
  label: object.name,
82
82
  icon: 'ph--user--regular',
83
83
  onSelect: ({ view, head }) => {
84
- const link = `[${object.name}](${Obj.getDXN(object)})`;
84
+ const link = `[${object.name}](${Obj.getURI(object)})`;
85
85
  if (text?.startsWith('@')) {
86
86
  insertAtLineStart(view, head, `!${link}\n`);
87
87
  } else {
@@ -59,13 +59,13 @@ const PreviewCard = () => {
59
59
  <Popover.Content onOpenAutoFocus={(event) => event.preventDefault()}>
60
60
  <Popover.Viewport classNames='dx-card-popover-width'>
61
61
  <Card.Root border={false}>
62
- <Card.Toolbar>
62
+ <Card.Header>
63
63
  <Card.Icon icon='ph--file-text--regular' />
64
64
  <Card.Title>{target.label}</Card.Title>
65
65
  <Popover.Close asChild>
66
- <Card.CloseIconButton />
66
+ <Card.ActionIconButton action='close' />
67
67
  </Popover.Close>
68
- </Card.Toolbar>
68
+ </Card.Header>
69
69
  <Card.Row>
70
70
  <Card.Text variant='description'>{target.text}</Card.Text>
71
71
  </Card.Row>
@@ -165,7 +165,7 @@ const PreviewBlockComponent = ({ link, el, view }: { link: PreviewLinkRef; el: H
165
165
  <Menu.Root>
166
166
  <Card.Root classNames={hoverableControls}>
167
167
  {!view?.state.readOnly && (
168
- <Card.Toolbar>
168
+ <Card.Header>
169
169
  <Card.Icon icon='ph--bookmark--regular' />
170
170
  <Card.Title>{link.label}</Card.Title>
171
171
  {/* TODO(wittjosiah): Reconcile with Card.Menu. */}
@@ -173,7 +173,7 @@ const PreviewBlockComponent = ({ link, el, view }: { link: PreviewLinkRef; el: H
173
173
  <Toolbar.IconButton iconOnly variant='ghost' icon='ph--dots-three-vertical--regular' label='Menu' />
174
174
  </Menu.Trigger>
175
175
  <Menu.Content items={menuItems} />
176
- </Card.Toolbar>
176
+ </Card.Header>
177
177
  )}
178
178
  {target && (
179
179
  <Card.Row>
@@ -206,7 +206,7 @@ export const links: Completion[] = [
206
206
  export const names = ['adam', 'alice', 'alison', 'bob', 'carol', 'charlie', 'sayuri', 'shoko'];
207
207
 
208
208
  const hover =
209
- 'rounded-xs text-base-foreground text-primary-600 hover:text-primary-500 dark:text-primary-300 hover:dark:text-primary-200';
209
+ 'rounded-xs text-base-fg text-primary-600 hover:text-primary-500 dark:text-primary-300 hover:dark:text-primary-200';
210
210
 
211
211
  export const renderLinkTooltip: RenderCallback<{ url: string }> = (el, { url }) => {
212
212
  el.appendChild(
@@ -6,8 +6,8 @@ import React, { type FC } from 'react';
6
6
  import { createRoot } from 'react-dom/client';
7
7
 
8
8
  import { ThemeProvider, Tooltip } from '@dxos/react-ui';
9
+ import { defaultTx } from '@dxos/react-ui';
9
10
  import { type RenderCallback } from '@dxos/ui-editor/types';
10
- import { defaultTx } from '@dxos/ui-theme';
11
11
 
12
12
  /**
13
13
  * @deprecated Use `trim` from `@dxos/util`.