@dxos/react-ui-menu 0.8.4-main.422d1c7879 → 0.8.4-main.4f23b4e393

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 -16
  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.422d1c7879",
3
+ "version": "0.8.4-main.4f23b4e393",
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,12 +12,21 @@
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",
@@ -28,14 +37,14 @@
28
37
  "dependencies": {
29
38
  "@radix-ui/react-context": "1.1.1",
30
39
  "@radix-ui/react-use-controllable-state": "1.1.0",
31
- "@dxos/app-graph": "0.8.4-main.422d1c7879",
32
- "@dxos/effect": "0.8.4-main.422d1c7879",
33
- "@dxos/invariant": "0.8.4-main.422d1c7879",
34
- "@dxos/keyboard": "0.8.4-main.422d1c7879",
35
- "@dxos/log": "0.8.4-main.422d1c7879",
36
- "@dxos/react-ui-attention": "0.8.4-main.422d1c7879",
37
- "@dxos/ui-types": "0.8.4-main.422d1c7879",
38
- "@dxos/util": "0.8.4-main.422d1c7879"
40
+ "@dxos/app-graph": "0.8.4-main.4f23b4e393",
41
+ "@dxos/effect": "0.8.4-main.4f23b4e393",
42
+ "@dxos/react-ui-attention": "0.8.4-main.4f23b4e393",
43
+ "@dxos/invariant": "0.8.4-main.4f23b4e393",
44
+ "@dxos/keyboard": "0.8.4-main.4f23b4e393",
45
+ "@dxos/ui-types": "0.8.4-main.4f23b4e393",
46
+ "@dxos/util": "0.8.4-main.4f23b4e393",
47
+ "@dxos/log": "0.8.4-main.4f23b4e393"
39
48
  },
40
49
  "devDependencies": {
41
50
  "@effect-atom/atom-react": "^0.5.0",
@@ -47,11 +56,11 @@
47
56
  "effect": "3.20.0",
48
57
  "react": "~19.2.3",
49
58
  "react-dom": "~19.2.3",
50
- "vite": "^7.1.11",
51
- "@dxos/storybook-utils": "0.8.4-main.422d1c7879",
52
- "@dxos/react-ui": "0.8.4-main.422d1c7879",
53
- "@dxos/random": "0.8.4-main.422d1c7879",
54
- "@dxos/ui-theme": "0.8.4-main.422d1c7879"
59
+ "vite": "^8.0.10",
60
+ "@dxos/random": "0.8.4-main.4f23b4e393",
61
+ "@dxos/react-ui": "0.8.4-main.4f23b4e393",
62
+ "@dxos/ui-theme": "0.8.4-main.4f23b4e393",
63
+ "@dxos/storybook-utils": "0.8.4-main.4f23b4e393"
55
64
  },
56
65
  "peerDependencies": {
57
66
  "@effect-atom/atom-react": "^0.5.0",
@@ -59,8 +68,8 @@
59
68
  "effect": "3.20.0",
60
69
  "react": "~19.2.3",
61
70
  "react-dom": "~19.2.3",
62
- "@dxos/react-ui": "0.8.4-main.422d1c7879",
63
- "@dxos/ui-theme": "0.8.4-main.422d1c7879"
71
+ "@dxos/ui-theme": "0.8.4-main.4f23b4e393",
72
+ "@dxos/react-ui": "0.8.4-main.4f23b4e393"
64
73
  },
65
74
  "publishConfig": {
66
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,