@dxos/react-ui-menu 0.8.4-main.ef1bc66f44 → 0.8.4-main.f466a3d56e
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/LICENSE +102 -5
- package/dist/lib/browser/index.mjs +396 -217
- 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 +396 -217
- 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/builder.d.ts +26 -1
- package/dist/types/src/builder.d.ts.map +1 -1
- package/dist/types/src/builder.test.d.ts +2 -0
- package/dist/types/src/builder.test.d.ts.map +1 -0
- package/dist/types/src/components/ActionLabel.d.ts.map +1 -1
- package/dist/types/src/components/DropdownMenu.d.ts +4 -2
- package/dist/types/src/components/DropdownMenu.d.ts.map +1 -1
- package/dist/types/src/components/Menu.d.ts +50 -0
- package/dist/types/src/components/Menu.d.ts.map +1 -0
- package/dist/types/src/components/Menu.stories.d.ts +21 -0
- package/dist/types/src/components/Menu.stories.d.ts.map +1 -0
- package/dist/types/src/components/Menu.test.d.ts +2 -0
- package/dist/types/src/components/Menu.test.d.ts.map +1 -0
- package/dist/types/src/components/ToolbarMenu.d.ts +5 -5
- package/dist/types/src/components/ToolbarMenu.d.ts.map +1 -1
- package/dist/types/src/components/ToolbarMenu.stories.d.ts +15 -1
- package/dist/types/src/components/ToolbarMenu.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -3
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useMenuActions.d.ts +11 -3
- package/dist/types/src/hooks/useMenuActions.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/testing/generator.d.ts +10 -6
- package/dist/types/src/testing/generator.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +25 -3
- package/dist/types/src/types.d.ts.map +1 -1
- package/dist/types/src/util.d.ts +2 -0
- package/dist/types/src/util.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +30 -21
- package/src/builder.test.ts +224 -0
- package/src/builder.ts +68 -18
- package/src/components/ActionLabel.tsx +4 -3
- package/src/components/DropdownMenu.tsx +3 -4
- package/src/components/Menu.stories.tsx +266 -0
- package/src/components/Menu.test.tsx +447 -0
- package/src/components/Menu.tsx +348 -0
- package/src/components/ToolbarMenu.stories.tsx +41 -27
- package/src/components/ToolbarMenu.tsx +123 -90
- package/src/components/index.ts +1 -3
- package/src/hooks/useMenuActions.ts +26 -15
- package/src/index.ts +1 -1
- package/src/testing/generator.ts +24 -19
- package/src/types.ts +26 -2
- package/src/util.ts +2 -1
- package/dist/types/src/components/MenuContext.d.ts +0 -15
- package/dist/types/src/components/MenuContext.d.ts.map +0 -1
- package/src/components/MenuContext.tsx +0 -64
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolbarMenu.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ToolbarMenu.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,
|
|
1
|
+
{"version":3,"file":"ToolbarMenu.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ToolbarMenu.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAA8B,MAAM,OAAO,CAAC;AAenD,QAAA,MAAM,IAAI;;;;;;;;;;;;;CAO2B,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,YAAY,EAAE,KAsB1B,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAWrB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,EAAE,KAWnC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Atom } from '@effect-atom/atom-react';
|
|
2
|
+
import { type DependencyList } from 'react';
|
|
2
3
|
import { Graph, Node } from '@dxos/app-graph';
|
|
3
|
-
import { type
|
|
4
|
+
import { type MenuItemsAccessor } from '../types';
|
|
4
5
|
export type ActionGraphNodes = Node.NodeArg<any>[];
|
|
5
6
|
export type ActionGraphEdges = Graph.Edge[];
|
|
6
7
|
export type ActionGraphProps = {
|
|
@@ -8,7 +9,14 @@ export type ActionGraphProps = {
|
|
|
8
9
|
edges: ActionGraphEdges;
|
|
9
10
|
};
|
|
10
11
|
export type MenuActions = {
|
|
11
|
-
|
|
12
|
+
items: MenuItemsAccessor;
|
|
12
13
|
};
|
|
13
14
|
export declare const useMenuActions: (props: Atom.Atom<ActionGraphProps>) => MenuActions;
|
|
15
|
+
/**
|
|
16
|
+
* Convenience wrapper around `useMenuActions` that creates the backing atom inline.
|
|
17
|
+
* Pass a builder thunk and a dependency list — the hook memoizes `Atom.make(build)` and threads
|
|
18
|
+
* it through `useMenuActions`. Saves the `useMemo(() => Atom.make(...), deps)` boilerplate when
|
|
19
|
+
* the action graph is composed from local state (e.g. a toolbar driven by component state).
|
|
20
|
+
*/
|
|
21
|
+
export declare const useMenuBuilder: (build: (get: Atom.Context) => ActionGraphProps, deps: DependencyList) => MenuActions;
|
|
14
22
|
//# sourceMappingURL=useMenuActions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMenuActions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useMenuActions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"useMenuActions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useMenuActions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAiC,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EAAE,KAAK,cAAc,EAAoC,MAAM,OAAO,CAAC;AAE9E,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EAAqC,KAAK,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAErF,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;AACnD,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;AAC5C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,gBAAgB,CAAC;IACxB,KAAK,EAAE,gBAAgB,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,iBAAiB,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,cAAc,UAAW,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,KAAG,WAuBnE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,UAAW,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO,KAAK,gBAAgB,QAAQ,cAAc,KAAG,WAIrG,CAAC"}
|
|
@@ -2,5 +2,5 @@ export * from './components';
|
|
|
2
2
|
export * from './hooks';
|
|
3
3
|
export * from './types';
|
|
4
4
|
export { createMenuAction, createMenuItemGroup, createLineSeparator, createGapSeparator } from './util';
|
|
5
|
-
export { MenuBuilder } from './builder';
|
|
5
|
+
export { type ActionGroupBuilder, type ActionGroupBuilderFn, MenuBuilder } from './builder';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AACxG,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AACxG,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Atom } from '@effect-atom/atom-react';
|
|
1
|
+
import { Atom, Registry } from '@effect-atom/atom-react';
|
|
2
2
|
import { Node } from '@dxos/app-graph';
|
|
3
3
|
import { type ActionGraphProps } from '../hooks/useMenuActions';
|
|
4
|
-
import { type
|
|
4
|
+
import { type MenuItemsAccessor } from '../types';
|
|
5
5
|
export type CreateActionsProps = Partial<{
|
|
6
6
|
type?: typeof Node.ActionType | typeof Node.ActionGroupType;
|
|
7
7
|
callback: () => void;
|
|
@@ -9,18 +9,22 @@ export type CreateActionsProps = Partial<{
|
|
|
9
9
|
}>;
|
|
10
10
|
export declare const createActions: (params?: CreateActionsProps) => {
|
|
11
11
|
id: string;
|
|
12
|
-
type: "dxos.
|
|
12
|
+
type: "org.dxos.type.graphAction" | "org.dxos.type.graphActionGroup";
|
|
13
13
|
data: symbol | (() => void);
|
|
14
14
|
properties: {
|
|
15
|
-
variant?: string | undefined;
|
|
16
15
|
label: string;
|
|
17
16
|
icon: string;
|
|
18
17
|
disabled: boolean;
|
|
18
|
+
variant?: string | undefined;
|
|
19
19
|
};
|
|
20
20
|
}[];
|
|
21
21
|
export declare const createNestedActions: Atom.Writable<ActionGraphProps, ActionGraphProps>;
|
|
22
|
-
export declare const createNestedActionsResolver: (
|
|
23
|
-
|
|
22
|
+
export declare const createNestedActionsResolver: (props?: {
|
|
23
|
+
groupParams?: CreateActionsProps;
|
|
24
|
+
params?: CreateActionsProps;
|
|
25
|
+
registry?: Registry.Registry;
|
|
26
|
+
}) => {
|
|
27
|
+
items: MenuItemsAccessor;
|
|
24
28
|
};
|
|
25
29
|
/**
|
|
26
30
|
* Hook to mutate actions in an atom on an interval for testing reactivity.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../../src/testing/generator.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAmB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../../src/testing/generator.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAmB,MAAM,yBAAyB,CAAC;AAG1E,OAAO,EAAS,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAG9C,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAqC,KAAK,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAErF,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC;IACvC,IAAI,CAAC,EAAE,OAAO,IAAI,CAAC,UAAU,GAAG,OAAO,IAAI,CAAC,eAAe,CAAC;IAC5D,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC,CAAC;AAqBH,eAAO,MAAM,aAAa,YAAa,kBAAkB;;;0BAvBvC,IAAI;;;;;;;GAuCrB,CAAC;AAgBF,eAAO,MAAM,mBAAmB,mDAAuD,CAAC;AAExF,eAAO,MAAM,2BAA2B,WAAY;IAClD,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;CAC9B;;CAkBA,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,gBAAiB,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,SA0B5E,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { type Atom } from '@effect-atom/atom-react';
|
|
1
2
|
import { Node } from '@dxos/app-graph';
|
|
2
3
|
import { type IconButtonProps, type ToolbarSeparatorProps } from '@dxos/react-ui';
|
|
3
4
|
import { type MenuActionProperties } from '@dxos/ui-types';
|
|
4
5
|
export type MenuAction<P extends {} = {}> = Node.Action<P & MenuActionProperties>;
|
|
5
|
-
export declare const MenuSeparatorType:
|
|
6
|
+
export declare const MenuSeparatorType: '@dxos/react-ui-toolbar/separator';
|
|
6
7
|
export type MenuSeparator = Node.Node<never, Pick<ToolbarSeparatorProps, 'variant'>> & {
|
|
7
8
|
type: typeof MenuSeparatorType;
|
|
8
9
|
};
|
|
@@ -18,14 +19,35 @@ export type MenuMultipleSelectActionGroup = {
|
|
|
18
19
|
export type MenuItemGroup<P extends Record<string, any> = Record<string, any>> = Node.ActionGroup<P>;
|
|
19
20
|
export declare const isMenuGroup: (node: Node.Node) => node is MenuItemGroup;
|
|
20
21
|
export type MenuItem = MenuSeparator | MenuAction | MenuItemGroup;
|
|
21
|
-
|
|
22
|
+
/** Atom-family-style accessor: returns an atom of items for a given group (or root when undefined). */
|
|
23
|
+
export type MenuItemsAccessor = (group?: MenuItemGroup) => Atom.Atom<MenuItem[] | null>;
|
|
22
24
|
export type ActionExecutor = (action: MenuAction, params: Node.InvokeProps) => void;
|
|
25
|
+
export type MenuItemsMode = 'additive' | 'replacement';
|
|
26
|
+
export type AddMenuItemsProps = {
|
|
27
|
+
id: string;
|
|
28
|
+
mode: MenuItemsMode;
|
|
29
|
+
priority?: number;
|
|
30
|
+
items: MenuItem[];
|
|
31
|
+
groupFilter?: (group?: MenuItemGroup) => boolean;
|
|
32
|
+
};
|
|
33
|
+
export type MenuItems = Omit<AddMenuItemsProps, 'priority'> & {
|
|
34
|
+
priority: number;
|
|
35
|
+
};
|
|
36
|
+
export type MenuItemsMap = Map<string, MenuItems>;
|
|
23
37
|
export type MenuContextValue = {
|
|
24
|
-
|
|
38
|
+
/** Atom-family accessor for base menu items, keyed by group (similar to Tree model). */
|
|
39
|
+
items: MenuItemsAccessor;
|
|
25
40
|
iconSize: IconButtonProps['size'];
|
|
26
41
|
attendableId?: string;
|
|
42
|
+
/** TODO(burdon): Remove and assume always active if attendableId is undefined. */
|
|
27
43
|
/** If true, the menu is always active regardless of attention state. */
|
|
28
44
|
alwaysActive?: boolean;
|
|
45
|
+
/** Atom holding the current set of imperatively added menu items. */
|
|
46
|
+
menuItemsAtom: Atom.Atom<MenuItemsMap>;
|
|
47
|
+
/** Imperatively add menu items to the nearest MenuProvider. */
|
|
48
|
+
addMenuItems: (props: AddMenuItemsProps) => void;
|
|
49
|
+
/** Remove previously added menu items by id. */
|
|
50
|
+
removeMenuItems: (id: string) => void;
|
|
29
51
|
/** Optional action executor. If provided, will be used instead of default execution. */
|
|
30
52
|
onAction?: ActionExecutor;
|
|
31
53
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,qBAAqB,EAAE,MAAM,gBAAgB,CA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AM,MAAM,gBAAgB,GAAG;IAC7B,wFAAwF;IACxF,KAAK,EAAE,iBAAiB,CAAC;IACzB,QAAQ,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kFAAkF;IAClF,wEAAwE;IACxE,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,qEAAqE;IACrE,aAAa,EAAE,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACvC,+DAA+D;IAC/D,YAAY,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACjD,gDAAgD;IAChD,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,wFAAwF;IACxF,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B,CAAC"}
|
package/dist/types/src/util.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export declare const createGapSeparator: (id?: string, source?: string) => {
|
|
|
33
33
|
edges: {
|
|
34
34
|
source: string;
|
|
35
35
|
target: string;
|
|
36
|
+
relation: 'child';
|
|
36
37
|
}[];
|
|
37
38
|
};
|
|
38
39
|
export declare const createLineSeparator: (id?: string, source?: string) => {
|
|
@@ -47,6 +48,7 @@ export declare const createLineSeparator: (id?: string, source?: string) => {
|
|
|
47
48
|
edges: {
|
|
48
49
|
source: string;
|
|
49
50
|
target: string;
|
|
51
|
+
relation: 'child';
|
|
50
52
|
}[];
|
|
51
53
|
};
|
|
52
54
|
//# sourceMappingURL=util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/util.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAEvC,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAGzF,OA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