@dxos/react-ui-editor 0.8.4-main.84f28bd → 0.8.4-main.b97322e

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.84f28bd",
3
+ "version": "0.8.4-main.b97322e",
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",
@@ -64,28 +64,28 @@
64
64
  "lodash.merge": "^4.6.2",
65
65
  "lodash.sortby": "^4.7.0",
66
66
  "style-mod": "^4.1.0",
67
- "@dxos/app-graph": "0.8.4-main.84f28bd",
68
- "@dxos/context": "0.8.4-main.84f28bd",
69
- "@dxos/async": "0.8.4-main.84f28bd",
70
- "@dxos/debug": "0.8.4-main.84f28bd",
71
- "@dxos/display-name": "0.8.4-main.84f28bd",
72
- "@dxos/echo-schema": "0.8.4-main.84f28bd",
73
- "@dxos/invariant": "0.8.4-main.84f28bd",
74
- "@dxos/live-object": "0.8.4-main.84f28bd",
75
- "@dxos/lit-ui": "0.8.4-main.84f28bd",
76
- "@dxos/log": "0.8.4-main.84f28bd",
77
- "@dxos/protocols": "0.8.4-main.84f28bd",
78
- "@dxos/react-hooks": "0.8.4-main.84f28bd",
79
- "@dxos/react-ui-menu": "0.8.4-main.84f28bd",
80
- "@dxos/react-ui-stack": "0.8.4-main.84f28bd",
81
- "@dxos/util": "0.8.4-main.84f28bd"
67
+ "@dxos/app-graph": "0.8.4-main.b97322e",
68
+ "@dxos/context": "0.8.4-main.b97322e",
69
+ "@dxos/async": "0.8.4-main.b97322e",
70
+ "@dxos/debug": "0.8.4-main.b97322e",
71
+ "@dxos/display-name": "0.8.4-main.b97322e",
72
+ "@dxos/invariant": "0.8.4-main.b97322e",
73
+ "@dxos/echo-schema": "0.8.4-main.b97322e",
74
+ "@dxos/live-object": "0.8.4-main.b97322e",
75
+ "@dxos/lit-ui": "0.8.4-main.b97322e",
76
+ "@dxos/log": "0.8.4-main.b97322e",
77
+ "@dxos/protocols": "0.8.4-main.b97322e",
78
+ "@dxos/react-hooks": "0.8.4-main.b97322e",
79
+ "@dxos/react-ui-menu": "0.8.4-main.b97322e",
80
+ "@dxos/react-ui-stack": "0.8.4-main.b97322e",
81
+ "@dxos/util": "0.8.4-main.b97322e"
82
82
  },
83
83
  "devDependencies": {
84
84
  "@automerge/automerge": "3.0.0",
85
85
  "@automerge/automerge-repo": "2.0.8",
86
86
  "@automerge/automerge-repo-network-broadcastchannel": "2.0.8",
87
87
  "@effect-rx/rx-react": "0.38.0",
88
- "@effect/platform": "0.88.0",
88
+ "@effect/platform": "0.89.0",
89
89
  "@types/chai": "^4.2.15",
90
90
  "@types/chai-dom": "^1.11.0",
91
91
  "@types/lodash.defaultsdeep": "^4.6.6",
@@ -96,7 +96,7 @@
96
96
  "@types/react-test-renderer": "^17.0.2",
97
97
  "chai": "^4.4.1",
98
98
  "chai-dom": "^1.11.0",
99
- "effect": "3.16.13",
99
+ "effect": "3.17.0",
100
100
  "happy-dom": "^13.3.1",
101
101
  "jsdom": "^24.0.0",
102
102
  "mocha": "^10.6.0",
@@ -106,18 +106,18 @@
106
106
  "vite": "5.4.7",
107
107
  "vite-plugin-top-level-await": "^1.4.1",
108
108
  "vite-plugin-wasm": "^3.3.0",
109
- "@dxos/config": "0.8.4-main.84f28bd",
110
- "@dxos/echo": "0.8.4-main.84f28bd",
111
- "@dxos/echo-signals": "0.8.4-main.84f28bd",
112
- "@dxos/keyboard": "0.8.4-main.84f28bd",
113
- "@dxos/random": "0.8.4-main.84f28bd",
114
- "@dxos/react-client": "0.8.4-main.84f28bd",
115
- "@dxos/react-ui": "0.8.4-main.84f28bd",
116
- "@dxos/react-ui-attention": "0.8.4-main.84f28bd",
117
- "@dxos/react-ui-syntax-highlighter": "0.8.4-main.84f28bd",
118
- "@dxos/react-ui-theme": "0.8.4-main.84f28bd",
119
- "@dxos/schema": "0.8.4-main.84f28bd",
120
- "@dxos/storybook-utils": "0.8.4-main.84f28bd"
109
+ "@dxos/config": "0.8.4-main.b97322e",
110
+ "@dxos/echo": "0.8.4-main.b97322e",
111
+ "@dxos/echo-signals": "0.8.4-main.b97322e",
112
+ "@dxos/keyboard": "0.8.4-main.b97322e",
113
+ "@dxos/random": "0.8.4-main.b97322e",
114
+ "@dxos/react-client": "0.8.4-main.b97322e",
115
+ "@dxos/react-ui": "0.8.4-main.b97322e",
116
+ "@dxos/react-ui-syntax-highlighter": "0.8.4-main.b97322e",
117
+ "@dxos/schema": "0.8.4-main.b97322e",
118
+ "@dxos/react-ui-attention": "0.8.4-main.b97322e",
119
+ "@dxos/storybook-utils": "0.8.4-main.b97322e",
120
+ "@dxos/react-ui-theme": "0.8.4-main.b97322e"
121
121
  },
122
122
  "peerDependencies": {
123
123
  "@effect-rx/rx-react": "^0.34.1",
@@ -125,9 +125,9 @@
125
125
  "effect": "^3.13.3",
126
126
  "react": "~18.2.0",
127
127
  "react-dom": "~18.2.0",
128
- "@dxos/react-client": "0.8.4-main.84f28bd",
129
- "@dxos/react-ui": "0.8.4-main.84f28bd",
130
- "@dxos/react-ui-theme": "0.8.4-main.84f28bd"
128
+ "@dxos/react-client": "0.8.4-main.b97322e",
129
+ "@dxos/react-ui": "0.8.4-main.b97322e",
130
+ "@dxos/react-ui-theme": "0.8.4-main.b97322e"
131
131
  },
132
132
  "publishConfig": {
133
133
  "access": "public"
@@ -49,7 +49,7 @@ const createBlockActions = (value: string, getView: () => EditorView, blankLine?
49
49
  });
50
50
 
51
51
  export const createBlocks = (state: EditorToolbarState, getView: () => EditorView) => {
52
- const value = state?.blockQuote ? 'blockquote' : state.blockType ?? '';
52
+ const value = state?.blockQuote ? 'blockquote' : (state.blockType ?? '');
53
53
  const blockGroupAction = createBlockGroupAction(value);
54
54
  const blockActions = createBlockActions(value, getView, state.blankLine);
55
55
  return {
@@ -166,13 +166,13 @@ export type ThemeExtensionsOptions = {
166
166
  };
167
167
  };
168
168
 
169
- export const grow = {
169
+ export const grow: ThemeExtensionsOptions['slots'] = {
170
170
  editor: {
171
171
  className: 'is-full bs-full',
172
172
  },
173
173
  } as const;
174
174
 
175
- export const fullWidth = {
175
+ export const fullWidth: ThemeExtensionsOptions['slots'] = {
176
176
  editor: {
177
177
  className: 'is-full',
178
178
  },
@@ -113,7 +113,7 @@ export const Link: Story = {
113
113
  return [];
114
114
  }
115
115
 
116
- const name = query?.startsWith('@') ? query.slice(1).toLowerCase() : query?.toLowerCase() ?? '';
116
+ const name = query?.startsWith('@') ? query.slice(1).toLowerCase() : (query?.toLowerCase() ?? '');
117
117
  const result = await space?.db.query(Query.type(Testing.Contact)).run();
118
118
  const items = result.objects
119
119
  .filter((object) => object.name.toLowerCase().includes(name))
@@ -48,7 +48,7 @@ const PreviewCard = () => {
48
48
  <Popover.Portal>
49
49
  <Popover.Content onOpenAutoFocus={(event) => event.preventDefault()}>
50
50
  <Popover.Viewport>
51
- <Card.SurfaceRoot role='popover'>
51
+ <Card.SurfaceRoot role='card--popover'>
52
52
  <Card.Heading>{target?.label}</Card.Heading>
53
53
  {target && <Card.Text classNames='line-clamp-3'>{target.text}</Card.Text>}
54
54
  </Card.SurfaceRoot>
@@ -79,18 +79,17 @@ export const defaultTheme: ThemeStyles = {
79
79
  '.cm-gutter': {},
80
80
  '.cm-gutter.cm-lineNumbers': {
81
81
  paddingRight: '4px',
82
- borderRight: '1px solid var(--dx-separator)',
82
+ borderRight: '1px solid var(--dx-subduedSeparator)',
83
83
  },
84
84
  '.cm-gutter.cm-lineNumbers .cm-gutterElement': {
85
85
  minWidth: '40px',
86
- alignContent: 'center',
87
86
  },
88
87
  /**
89
- * Height is set to match the corresponding line.
88
+ * Height is set to match the corresponding line (which may have wrapped).
90
89
  */
91
90
  '.cm-gutterElement': {
92
- alignItems: 'center',
93
91
  fontSize: '12px',
92
+ lineHeight: '24px',
94
93
  },
95
94
 
96
95
  /**