@dxos/react-ui-menu 0.8.4-main.9be5663bfe → 0.8.4-main.abd8ff62ef

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 (32) hide show
  1. package/dist/lib/browser/index.mjs +8 -39
  2. package/dist/lib/browser/index.mjs.map +4 -4
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/lib/browser/translations.mjs +14 -0
  5. package/dist/lib/browser/translations.mjs.map +7 -0
  6. package/dist/lib/node-esm/index.mjs +8 -39
  7. package/dist/lib/node-esm/index.mjs.map +4 -4
  8. package/dist/lib/node-esm/meta.json +1 -1
  9. package/dist/lib/node-esm/translations.mjs +16 -0
  10. package/dist/lib/node-esm/translations.mjs.map +7 -0
  11. package/dist/types/src/components/ActionLabel.d.ts.map +1 -1
  12. package/dist/types/src/components/DropdownMenu.d.ts.map +1 -1
  13. package/dist/types/src/components/Menu.d.ts +1 -1
  14. package/dist/types/src/components/Menu.d.ts.map +1 -1
  15. package/dist/types/src/components/Menu.stories.d.ts.map +1 -1
  16. package/dist/types/src/components/ToolbarMenu.d.ts +1 -1
  17. package/dist/types/src/components/ToolbarMenu.d.ts.map +1 -1
  18. package/dist/types/src/components/ToolbarMenu.stories.d.ts +1 -1
  19. package/dist/types/src/components/ToolbarMenu.stories.d.ts.map +1 -1
  20. package/dist/types/src/hooks/useMenuActions.d.ts.map +1 -1
  21. package/dist/types/src/testing/generator.d.ts +2 -2
  22. package/dist/types/src/testing/generator.d.ts.map +1 -1
  23. package/dist/types/src/types.d.ts +1 -1
  24. package/dist/types/src/types.d.ts.map +1 -1
  25. package/dist/types/src/util.d.ts +2 -2
  26. package/dist/types/src/util.d.ts.map +1 -1
  27. package/dist/types/tsconfig.tsbuildinfo +1 -1
  28. package/package.json +25 -19
  29. package/src/components/ActionLabel.tsx +2 -1
  30. package/src/components/Menu.stories.tsx +2 -1
  31. package/src/components/ToolbarMenu.stories.tsx +2 -1
  32. package/src/components/ToolbarMenu.tsx +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/react-ui-menu",
3
- "version": "0.8.4-main.9be5663bfe",
3
+ "version": "0.8.4-main.abd8ff62ef",
4
4
  "description": "Components for facilitating reactive and consistent menus.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -12,18 +12,24 @@
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",
20
23
  "node": "./dist/lib/node-esm/index.mjs"
24
+ },
25
+ "./translations": {
26
+ "source": "./src/translations.ts",
27
+ "types": "./dist/types/src/translations.d.ts",
28
+ "browser": "./dist/lib/browser/translations.mjs",
29
+ "node": "./dist/lib/node-esm/translations.mjs"
21
30
  }
22
31
  },
23
32
  "types": "dist/types/src/index.d.ts",
24
- "typesVersions": {
25
- "*": {}
26
- },
27
33
  "files": [
28
34
  "dist",
29
35
  "src"
@@ -31,14 +37,14 @@
31
37
  "dependencies": {
32
38
  "@radix-ui/react-context": "1.1.1",
33
39
  "@radix-ui/react-use-controllable-state": "1.1.0",
34
- "@dxos/invariant": "0.8.4-main.9be5663bfe",
35
- "@dxos/app-graph": "0.8.4-main.9be5663bfe",
36
- "@dxos/effect": "0.8.4-main.9be5663bfe",
37
- "@dxos/log": "0.8.4-main.9be5663bfe",
38
- "@dxos/keyboard": "0.8.4-main.9be5663bfe",
39
- "@dxos/ui-types": "0.8.4-main.9be5663bfe",
40
- "@dxos/react-ui-attention": "0.8.4-main.9be5663bfe",
41
- "@dxos/util": "0.8.4-main.9be5663bfe"
40
+ "@dxos/app-graph": "0.8.4-main.abd8ff62ef",
41
+ "@dxos/effect": "0.8.4-main.abd8ff62ef",
42
+ "@dxos/invariant": "0.8.4-main.abd8ff62ef",
43
+ "@dxos/keyboard": "0.8.4-main.abd8ff62ef",
44
+ "@dxos/log": "0.8.4-main.abd8ff62ef",
45
+ "@dxos/ui-types": "0.8.4-main.abd8ff62ef",
46
+ "@dxos/react-ui-attention": "0.8.4-main.abd8ff62ef",
47
+ "@dxos/util": "0.8.4-main.abd8ff62ef"
42
48
  },
43
49
  "devDependencies": {
44
50
  "@effect-atom/atom-react": "^0.5.0",
@@ -50,11 +56,11 @@
50
56
  "effect": "3.20.0",
51
57
  "react": "~19.2.3",
52
58
  "react-dom": "~19.2.3",
53
- "vite": "^7.1.11",
54
- "@dxos/react-ui": "0.8.4-main.9be5663bfe",
55
- "@dxos/storybook-utils": "0.8.4-main.9be5663bfe",
56
- "@dxos/random": "0.8.4-main.9be5663bfe",
57
- "@dxos/ui-theme": "0.8.4-main.9be5663bfe"
59
+ "vite": "^8.0.10",
60
+ "@dxos/react-ui": "0.8.4-main.abd8ff62ef",
61
+ "@dxos/random": "0.8.4-main.abd8ff62ef",
62
+ "@dxos/storybook-utils": "0.8.4-main.abd8ff62ef",
63
+ "@dxos/ui-theme": "0.8.4-main.abd8ff62ef"
58
64
  },
59
65
  "peerDependencies": {
60
66
  "@effect-atom/atom-react": "^0.5.0",
@@ -62,8 +68,8 @@
62
68
  "effect": "3.20.0",
63
69
  "react": "~19.2.3",
64
70
  "react-dom": "~19.2.3",
65
- "@dxos/react-ui": "0.8.4-main.9be5663bfe",
66
- "@dxos/ui-theme": "0.8.4-main.9be5663bfe"
71
+ "@dxos/react-ui": "0.8.4-main.abd8ff62ef",
72
+ "@dxos/ui-theme": "0.8.4-main.abd8ff62ef"
67
73
  },
68
74
  "publishConfig": {
69
75
  "access": "public"
@@ -10,7 +10,8 @@ import { type TFunction, toLocalizedString, useTranslation } from '@dxos/react-u
10
10
  import { mx } from '@dxos/ui-theme';
11
11
  import { type MenuActionProperties } from '@dxos/ui-types';
12
12
 
13
- import { translationKey } from '../translations';
13
+ import { translationKey } from '#translations';
14
+
14
15
  import { getShortcut } from '../util';
15
16
 
16
17
  type Action = Node.Action<MenuActionProperties> | Node.ActionGroup<Omit<MenuActionProperties, 'variant'>>;
@@ -11,10 +11,11 @@ import { Button, IconButton } from '@dxos/react-ui';
11
11
  import { withTheme } from '@dxos/react-ui/testing';
12
12
  import { withRegistry } from '@dxos/storybook-utils';
13
13
 
14
+ import { translations } from '#translations';
15
+
14
16
  import { Menu, useMenu } from '../components';
15
17
  import { type ActionGraphProps, useMenuActions } from '../hooks';
16
18
  import { createActions } from '../testing';
17
- import { translations } from '../translations';
18
19
  import { type MenuItem } from '../types';
19
20
  import { createMenuAction } from '../util';
20
21
 
@@ -11,10 +11,11 @@ import { IconButton } from '@dxos/react-ui';
11
11
  import { withTheme } from '@dxos/react-ui/testing';
12
12
  import { withRegistry } from '@dxos/storybook-utils';
13
13
 
14
+ import { translations } from '#translations';
15
+
14
16
  import { Menu } from '../components';
15
17
  import { type ActionGraphProps, useMenuActions } from '../hooks';
16
18
  import { createActions, createNestedActions, createNestedActionsResolver, useMutateActions } from '../testing';
17
- import { translations } from '../translations';
18
19
 
19
20
  random.seed(1234);
20
21
 
@@ -9,7 +9,8 @@ import { useAttention } from '@dxos/react-ui-attention';
9
9
  import { composable, composableProps } from '@dxos/ui-theme';
10
10
  import { type MenuActionProperties } from '@dxos/ui-types';
11
11
 
12
- import { translationKey } from '../translations';
12
+ import { translationKey } from '#translations';
13
+
13
14
  import {
14
15
  type MenuAction,
15
16
  type MenuItem,