@dxos/react-ui-thread 0.8.4-main.422d1c7879 → 0.8.4-main.51f1e5ca51

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-thread",
3
- "version": "0.8.4-main.422d1c7879",
3
+ "version": "0.8.4-main.51f1e5ca51",
4
4
  "description": "A set of components to use with threads, including comments and messages.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -12,11 +12,20 @@
12
12
  "author": "DXOS.org",
13
13
  "sideEffects": false,
14
14
  "type": "module",
15
+ "imports": {
16
+ "#translations": "./src/translations.ts"
17
+ },
15
18
  "exports": {
16
19
  ".": {
17
20
  "source": "./src/index.ts",
18
21
  "types": "./dist/types/src/index.d.ts",
19
22
  "browser": "./dist/lib/browser/index.mjs"
23
+ },
24
+ "./translations": {
25
+ "source": "./src/translations.ts",
26
+ "types": "./dist/types/src/translations.d.ts",
27
+ "browser": "./dist/lib/browser/translations.mjs",
28
+ "node": "./dist/lib/node-esm/translations.mjs"
20
29
  }
21
30
  },
22
31
  "types": "dist/types/src/index.d.ts",
@@ -27,30 +36,30 @@
27
36
  "dependencies": {
28
37
  "@radix-ui/react-primitive": "2.0.2",
29
38
  "date-fns": "^3.6.0",
30
- "@dxos/react-ui-editor": "0.8.4-main.422d1c7879",
31
- "@dxos/util": "0.8.4-main.422d1c7879",
32
- "@dxos/ui-editor": "0.8.4-main.422d1c7879"
39
+ "@dxos/react-ui-editor": "0.8.4-main.51f1e5ca51",
40
+ "@dxos/ui-editor": "0.8.4-main.51f1e5ca51",
41
+ "@dxos/util": "0.8.4-main.51f1e5ca51"
33
42
  },
34
43
  "devDependencies": {
35
44
  "@types/react": "~19.2.7",
36
45
  "@types/react-dom": "~19.2.3",
37
46
  "react": "~19.2.3",
38
47
  "react-dom": "~19.2.3",
39
- "vite": "^7.1.11",
40
- "@dxos/keys": "0.8.4-main.422d1c7879",
41
- "@dxos/log": "0.8.4-main.422d1c7879",
42
- "@dxos/echo-db": "0.8.4-main.422d1c7879",
43
- "@dxos/echo": "0.8.4-main.422d1c7879",
44
- "@dxos/random": "0.8.4-main.422d1c7879",
45
- "@dxos/react-ui": "0.8.4-main.422d1c7879",
46
- "@dxos/storybook-utils": "0.8.4-main.422d1c7879",
47
- "@dxos/ui-theme": "0.8.4-main.422d1c7879"
48
+ "vite": "^8.0.10",
49
+ "@dxos/echo": "0.8.4-main.51f1e5ca51",
50
+ "@dxos/keys": "0.8.4-main.51f1e5ca51",
51
+ "@dxos/echo-db": "0.8.4-main.51f1e5ca51",
52
+ "@dxos/react-ui": "0.8.4-main.51f1e5ca51",
53
+ "@dxos/log": "0.8.4-main.51f1e5ca51",
54
+ "@dxos/random": "0.8.4-main.51f1e5ca51",
55
+ "@dxos/ui-theme": "0.8.4-main.51f1e5ca51",
56
+ "@dxos/storybook-utils": "0.8.4-main.51f1e5ca51"
48
57
  },
49
58
  "peerDependencies": {
50
59
  "react": "~19.2.3",
51
60
  "react-dom": "~19.2.3",
52
- "@dxos/ui-theme": "0.8.4-main.422d1c7879",
53
- "@dxos/react-ui": "0.8.4-main.422d1c7879"
61
+ "@dxos/react-ui": "0.8.4-main.51f1e5ca51",
62
+ "@dxos/ui-theme": "0.8.4-main.51f1e5ca51"
54
63
  },
55
64
  "publishConfig": {
56
65
  "access": "public"
@@ -9,9 +9,10 @@ import { PublicKey } from '@dxos/keys';
9
9
  import { withLayout, withTheme } from '@dxos/react-ui/testing';
10
10
  import { hoverableControls, hoverableFocusedWithinControls } from '@dxos/ui-theme';
11
11
 
12
+ import { translations } from '#translations';
13
+
12
14
  import { type MessageEntity, MessageStoryText } from '../testing';
13
15
  import { Thread } from '../Thread';
14
- import { translations } from '../translations';
15
16
  import { MessageRoot } from './Message';
16
17
 
17
18
  const DefaultStory = () => {
@@ -11,7 +11,8 @@ import { keymap, listener } from '@dxos/ui-editor';
11
11
  import { mx } from '@dxos/ui-theme';
12
12
  import { hexToEmoji, hexToHue, isTruthy } from '@dxos/util';
13
13
 
14
- import { translationKey } from '../translations';
14
+ import { translationKey } from '#translations';
15
+
15
16
  import { type MessageMetadata } from '../types';
16
17
 
17
18
  const avatarSize = 7;
@@ -14,10 +14,8 @@ import { Icon, IconButton, useThemeContext } from '@dxos/react-ui';
14
14
  import { useTextEditor } from '@dxos/react-ui-editor';
15
15
  import { withLayout, withTheme } from '@dxos/react-ui/testing';
16
16
  import {
17
- type Comment,
18
17
  type CommentsOptions,
19
18
  type EditorView,
20
- type Range,
21
19
  comments,
22
20
  createBasicExtensions,
23
21
  createThemeExtensions,
@@ -26,11 +24,13 @@ import {
26
24
  scrollThreadIntoView,
27
25
  setComments,
28
26
  } from '@dxos/ui-editor';
27
+ import { type Comment, type Range } from '@dxos/ui-editor/types';
29
28
  import { hoverableControls, hoverableFocusedWithinControls } from '@dxos/ui-theme';
30
29
 
30
+ import { translations } from '#translations';
31
+
31
32
  import { MessageBody, MessageHeading, MessageRoot, MessageTextbox } from '../Message';
32
33
  import { type MessageEntity } from '../testing';
33
- import { translations } from '../translations';
34
34
  import { Thread } from './Thread';
35
35
 
36
36
  random.seed(101);
@@ -11,9 +11,10 @@ import { withLayout, withTheme } from '@dxos/react-ui/testing';
11
11
  import { createBasicExtensions, createThemeExtensions } from '@dxos/ui-editor';
12
12
  import { hoverableControls, hoverableFocusedWithinControls } from '@dxos/ui-theme';
13
13
 
14
+ import { translations } from '#translations';
15
+
14
16
  import { MessageRoot, MessageTextbox } from '../Message';
15
17
  import { type MessageEntity, MessageStoryText } from '../testing';
16
- import { translations } from '../translations';
17
18
  import { Thread } from './Thread';
18
19
 
19
20
  random.seed(1);
@@ -7,7 +7,8 @@ import React, { ComponentPropsWithRef, forwardRef, PropsWithChildren } from 'rea
7
7
  import { Icon, type ThemedClassName, useTranslation } from '@dxos/react-ui';
8
8
  import { hoverableControlItem, hoverableFocusedWithinControls, mx } from '@dxos/ui-theme';
9
9
 
10
- import { translationKey } from '../translations';
10
+ import { translationKey } from '#translations';
11
+
11
12
  import type { ThreadEntity } from '../types';
12
13
 
13
14
  // TODO(burdon): Avoid exporting fragments.
package/src/index.ts CHANGED
@@ -2,9 +2,6 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { translations } from './translations';
6
-
7
5
  export * from './Thread';
8
6
  export * from './Message';
9
7
  export type * from './types';
10
- export { translations };