@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.
- package/dist/lib/browser/index.mjs +8 -39
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/translations.mjs +14 -0
- package/dist/lib/browser/translations.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +8 -39
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/translations.mjs +16 -0
- package/dist/lib/node-esm/translations.mjs.map +7 -0
- package/dist/types/src/components/ActionLabel.d.ts.map +1 -1
- package/dist/types/src/components/DropdownMenu.d.ts.map +1 -1
- package/dist/types/src/components/Menu.d.ts +1 -1
- package/dist/types/src/components/Menu.d.ts.map +1 -1
- package/dist/types/src/components/Menu.stories.d.ts.map +1 -1
- package/dist/types/src/components/ToolbarMenu.d.ts +1 -1
- package/dist/types/src/components/ToolbarMenu.d.ts.map +1 -1
- package/dist/types/src/components/ToolbarMenu.stories.d.ts +1 -1
- package/dist/types/src/components/ToolbarMenu.stories.d.ts.map +1 -1
- package/dist/types/src/hooks/useMenuActions.d.ts.map +1 -1
- package/dist/types/src/testing/generator.d.ts +2 -2
- package/dist/types/src/testing/generator.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +1 -1
- package/dist/types/src/types.d.ts.map +1 -1
- package/dist/types/src/util.d.ts +2 -2
- package/dist/types/src/util.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +25 -19
- package/src/components/ActionLabel.tsx +2 -1
- package/src/components/Menu.stories.tsx +2 -1
- package/src/components/ToolbarMenu.stories.tsx +2 -1
- 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.
|
|
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/
|
|
35
|
-
"@dxos/
|
|
36
|
-
"@dxos/
|
|
37
|
-
"@dxos/
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/ui-types": "0.8.4-main.
|
|
40
|
-
"@dxos/react-ui-attention": "0.8.4-main.
|
|
41
|
-
"@dxos/util": "0.8.4-main.
|
|
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": "^
|
|
54
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
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.
|
|
66
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
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 '
|
|
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 '
|
|
12
|
+
import { translationKey } from '#translations';
|
|
13
|
+
|
|
13
14
|
import {
|
|
14
15
|
type MenuAction,
|
|
15
16
|
type MenuItem,
|