@dxos/plugin-navtree 0.8.4-main.72ec0f3 → 0.8.4-main.7996785055
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/CommandsDialogContent-U726OBZ2.mjs +117 -0
- package/dist/lib/browser/CommandsDialogContent-U726OBZ2.mjs.map +7 -0
- package/dist/lib/browser/CommandsTrigger-LCFJL36T.mjs +32 -0
- package/dist/lib/browser/CommandsTrigger-LCFJL36T.mjs.map +7 -0
- package/dist/lib/browser/NavTreeContainer-35LP3XZM.mjs +12 -0
- package/dist/lib/browser/NavTreeContainer-35LP3XZM.mjs.map +7 -0
- package/dist/lib/browser/NavTreeDocumentTitle-L6NLLWLD.mjs +26 -0
- package/dist/lib/browser/NavTreeDocumentTitle-L6NLLWLD.mjs.map +7 -0
- package/dist/lib/browser/app-graph-builder-Z43OTNI2.mjs +44 -0
- package/dist/lib/browser/app-graph-builder-Z43OTNI2.mjs.map +7 -0
- package/dist/lib/browser/{chunk-E6MZBCU5.mjs → chunk-A4VDCIJC.mjs} +3 -3
- package/dist/lib/browser/chunk-A4VDCIJC.mjs.map +7 -0
- package/dist/lib/browser/chunk-KF26WA4O.mjs +23 -0
- package/dist/lib/browser/chunk-KF26WA4O.mjs.map +7 -0
- package/dist/lib/browser/chunk-MTTE5C5L.mjs +1452 -0
- package/dist/lib/browser/chunk-MTTE5C5L.mjs.map +7 -0
- package/dist/lib/browser/chunk-PD6TZ6TP.mjs +14 -0
- package/dist/lib/browser/chunk-PD6TZ6TP.mjs.map +7 -0
- package/dist/lib/browser/expose-LKZ6QBBD.mjs +43 -0
- package/dist/lib/browser/expose-LKZ6QBBD.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +86 -91
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/{keyboard-YYTYJW4M.mjs → keyboard-HYGFQO7T.mjs} +25 -19
- package/dist/lib/browser/keyboard-HYGFQO7T.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operation-handler-VHOUWGCZ.mjs +16 -0
- package/dist/lib/browser/operation-handler-VHOUWGCZ.mjs.map +7 -0
- package/dist/lib/browser/react-surface-XWFN75ZB.mjs +59 -0
- package/dist/lib/browser/react-surface-XWFN75ZB.mjs.map +7 -0
- package/dist/lib/browser/state-CWMNNF7K.mjs +131 -0
- package/dist/lib/browser/state-CWMNNF7K.mjs.map +7 -0
- package/dist/types/src/NavTreePlugin.d.ts +2 -1
- package/dist/types/src/NavTreePlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +5 -108
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/keyboard/index.d.ts +3 -0
- package/dist/types/src/capabilities/keyboard/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/keyboard/keyboard.d.ts +5 -0
- package/dist/types/src/capabilities/keyboard/keyboard.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-handler/index.d.ts +4 -0
- package/dist/types/src/capabilities/operation-handler/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-handler/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/state/index.d.ts +3 -0
- package/dist/types/src/capabilities/state/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/state/state.d.ts +6 -0
- package/dist/types/src/capabilities/state/state.d.ts.map +1 -0
- package/dist/types/src/components/NavTree/NavTree.d.ts +11 -4
- package/dist/types/src/components/NavTree/NavTree.d.ts.map +1 -1
- package/dist/types/src/components/NavTree/NavTree.stories.d.ts +2 -2
- package/dist/types/src/components/NavTree/NavTree.stories.d.ts.map +1 -1
- package/dist/types/src/components/{NavTreeContext.d.ts → NavTreeContext/NavTreeContext.d.ts} +1 -1
- package/dist/types/src/components/NavTreeContext/NavTreeContext.d.ts.map +1 -0
- package/dist/types/src/components/NavTreeContext/index.d.ts +2 -0
- package/dist/types/src/components/NavTreeContext/index.d.ts.map +1 -0
- package/dist/types/src/components/NavTreeItem/NavTreeItemAction.d.ts +16 -8
- package/dist/types/src/components/NavTreeItem/NavTreeItemAction.d.ts.map +1 -1
- package/dist/types/src/components/NavTreeItem/NavTreeItemAction.stories.d.ts +3 -2
- package/dist/types/src/components/NavTreeItem/NavTreeItemAction.stories.d.ts.map +1 -1
- package/dist/types/src/components/NavTreeItem/NavTreeItemColumns.d.ts.map +1 -1
- package/dist/types/src/components/Sidebar/L0Menu.d.ts +8 -5
- package/dist/types/src/components/Sidebar/L0Menu.d.ts.map +1 -1
- package/dist/types/src/components/Sidebar/L1Panel.d.ts +4 -7
- package/dist/types/src/components/Sidebar/L1Panel.d.ts.map +1 -1
- package/dist/types/src/components/Sidebar/L1Tabs.d.ts +5 -4
- package/dist/types/src/components/Sidebar/L1Tabs.d.ts.map +1 -1
- package/dist/types/src/components/UserAccountAvatar/UserAccountAvatar.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +0 -3
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/components/types.d.ts +8 -16
- package/dist/types/src/components/types.d.ts.map +1 -1
- package/dist/types/src/containers/CommandsDialogContent/CommandsDialogContent.d.ts +6 -0
- package/dist/types/src/containers/CommandsDialogContent/CommandsDialogContent.d.ts.map +1 -0
- package/dist/types/src/containers/CommandsDialogContent/CommandsDialogContent.stories.d.ts +30 -0
- package/dist/types/src/containers/CommandsDialogContent/CommandsDialogContent.stories.d.ts.map +1 -0
- package/dist/types/src/containers/CommandsDialogContent/index.d.ts +3 -0
- package/dist/types/src/containers/CommandsDialogContent/index.d.ts.map +1 -0
- package/dist/types/src/containers/CommandsTrigger/CommandsTrigger.d.ts.map +1 -0
- package/dist/types/src/containers/CommandsTrigger/index.d.ts +3 -0
- package/dist/types/src/containers/CommandsTrigger/index.d.ts.map +1 -0
- package/dist/types/src/containers/NavTreeContainer/NavTreeContainer.d.ts +9 -0
- package/dist/types/src/containers/NavTreeContainer/NavTreeContainer.d.ts.map +1 -0
- package/dist/types/src/containers/NavTreeContainer/index.d.ts +3 -0
- package/dist/types/src/containers/NavTreeContainer/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers/NavTreeDocumentTitle}/NavTreeDocumentTitle.d.ts +1 -1
- package/dist/types/src/containers/NavTreeDocumentTitle/NavTreeDocumentTitle.d.ts.map +1 -0
- package/dist/types/src/containers/NavTreeDocumentTitle/index.d.ts +3 -0
- package/dist/types/src/containers/NavTreeDocumentTitle/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +7 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/experimental/Tree.stories.d.ts +18 -4
- package/dist/types/src/experimental/Tree.stories.d.ts.map +1 -1
- package/dist/types/src/hooks/index.d.ts +5 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -0
- package/dist/types/src/hooks/useActions.d.ts +5 -0
- package/dist/types/src/hooks/useActions.d.ts.map +1 -0
- package/dist/types/src/hooks/useLoadDescendents.d.ts +6 -0
- package/dist/types/src/hooks/useLoadDescendents.d.ts.map +1 -0
- package/dist/types/src/hooks/useNavTreeModel.d.ts +7 -0
- package/dist/types/src/hooks/useNavTreeModel.d.ts.map +1 -0
- package/dist/types/src/hooks/useNavTreeState.d.ts +22 -0
- package/dist/types/src/hooks/useNavTreeState.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +1 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/expose.d.ts +5 -0
- package/dist/types/src/operations/expose.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +3 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/testing/app-graph-builder.d.ts +2 -3
- package/dist/types/src/testing/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/testing/generator.d.ts +5 -6
- package/dist/types/src/testing/generator.d.ts.map +1 -1
- package/dist/types/src/testing/update-state.d.ts +2 -2
- package/dist/types/src/testing/update-state.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +16 -0
- package/dist/types/src/types/capabilities.d.ts.map +1 -0
- package/dist/types/src/types/events.d.ts +5 -0
- package/dist/types/src/types/events.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +4 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/src/{types.d.ts → types/schema.d.ts} +6 -6
- package/dist/types/src/types/schema.d.ts.map +1 -0
- package/dist/types/src/util.d.ts +11 -7
- package/dist/types/src/util.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +55 -53
- package/src/NavTreePlugin.tsx +54 -73
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +42 -0
- package/src/capabilities/app-graph-builder/index.ts +7 -0
- package/src/capabilities/index.ts +5 -9
- package/src/capabilities/keyboard/index.ts +7 -0
- package/src/capabilities/keyboard/keyboard.ts +66 -0
- package/src/capabilities/operation-handler/index.ts +11 -0
- package/src/capabilities/operation-handler/operation-handler.ts +16 -0
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +53 -0
- package/src/capabilities/state/index.ts +7 -0
- package/src/capabilities/state/state.ts +149 -0
- package/src/components/NavTree/NavTree.stories.tsx +44 -51
- package/src/components/NavTree/NavTree.tsx +63 -32
- package/src/components/{NavTreeContext.tsx → NavTreeContext/NavTreeContext.tsx} +1 -1
- package/src/components/NavTreeContext/index.ts +5 -0
- package/src/components/NavTreeItem/NavTreeItemAction.stories.tsx +17 -9
- package/src/components/NavTreeItem/NavTreeItemAction.tsx +65 -42
- package/src/components/NavTreeItem/NavTreeItemColumns.tsx +42 -16
- package/src/components/Sidebar/L0Menu.tsx +141 -177
- package/src/components/Sidebar/L1Panel.tsx +251 -93
- package/src/components/Sidebar/L1Tabs.tsx +18 -33
- package/src/components/UserAccountAvatar/UserAccountAvatar.stories.tsx +2 -3
- package/src/components/UserAccountAvatar/UserAccountAvatar.tsx +1 -1
- package/src/components/index.ts +1 -3
- package/src/components/types.ts +14 -19
- package/src/containers/CommandsDialogContent/CommandsDialogContent.stories.tsx +46 -0
- package/src/containers/CommandsDialogContent/CommandsDialogContent.tsx +131 -0
- package/src/containers/CommandsDialogContent/index.ts +7 -0
- package/src/containers/CommandsTrigger/CommandsTrigger.tsx +28 -0
- package/src/containers/CommandsTrigger/index.ts +7 -0
- package/src/containers/NavTreeContainer/NavTreeContainer.tsx +271 -0
- package/src/containers/NavTreeContainer/index.ts +6 -0
- package/src/{components → containers/NavTreeDocumentTitle}/NavTreeDocumentTitle.tsx +4 -3
- package/src/containers/NavTreeDocumentTitle/index.ts +7 -0
- package/src/containers/index.ts +12 -0
- package/src/experimental/Tree.stories.tsx +55 -58
- package/src/experimental/Tree.tsx +4 -4
- package/src/hooks/index.ts +8 -0
- package/src/hooks/useActions.ts +34 -0
- package/src/hooks/useLoadDescendents.ts +23 -0
- package/src/hooks/useNavTreeModel.ts +118 -0
- package/src/hooks/useNavTreeState.ts +42 -0
- package/src/index.ts +1 -2
- package/src/meta.ts +4 -4
- package/src/operations/expose.ts +42 -0
- package/src/operations/index.ts +7 -0
- package/src/testing/app-graph-builder.ts +158 -234
- package/src/testing/generator.ts +19 -17
- package/src/testing/update-state.ts +6 -6
- package/src/types/capabilities.ts +21 -0
- package/src/types/events.ts +12 -0
- package/src/types/index.ts +7 -0
- package/src/{types.ts → types/schema.ts} +5 -5
- package/src/util.ts +27 -16
- package/dist/lib/browser/app-graph-builder-OHSCN3GX.mjs +0 -46
- package/dist/lib/browser/app-graph-builder-OHSCN3GX.mjs.map +0 -7
- package/dist/lib/browser/chunk-5VLWX4PK.mjs +0 -15
- package/dist/lib/browser/chunk-5VLWX4PK.mjs.map +0 -7
- package/dist/lib/browser/chunk-7D2MPHXV.mjs +0 -1483
- package/dist/lib/browser/chunk-7D2MPHXV.mjs.map +0 -7
- package/dist/lib/browser/chunk-E6MZBCU5.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-YUVXVPHG.mjs +0 -47
- package/dist/lib/browser/intent-resolver-YUVXVPHG.mjs.map +0 -7
- package/dist/lib/browser/keyboard-YYTYJW4M.mjs.map +0 -7
- package/dist/lib/browser/react-surface-J7MWWAGD.mjs +0 -51
- package/dist/lib/browser/react-surface-J7MWWAGD.mjs.map +0 -7
- package/dist/lib/browser/state-EUSVT6BI.mjs +0 -117
- package/dist/lib/browser/state-EUSVT6BI.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/capabilities.d.ts +0 -21
- package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/keyboard.d.ts +0 -4
- package/dist/types/src/capabilities/keyboard.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface.d.ts +0 -4
- package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/state.d.ts +0 -20
- package/dist/types/src/capabilities/state.d.ts.map +0 -1
- package/dist/types/src/components/CommandsDialog/CommandsDialog.d.ts +0 -5
- package/dist/types/src/components/CommandsDialog/CommandsDialog.d.ts.map +0 -1
- package/dist/types/src/components/CommandsDialog/CommandsTrigger.d.ts.map +0 -1
- package/dist/types/src/components/CommandsDialog/index.d.ts +0 -3
- package/dist/types/src/components/CommandsDialog/index.d.ts.map +0 -1
- package/dist/types/src/components/NavTreeContainer.d.ts +0 -9
- package/dist/types/src/components/NavTreeContainer.d.ts.map +0 -1
- package/dist/types/src/components/NavTreeContext.d.ts.map +0 -1
- package/dist/types/src/components/NavTreeDocumentTitle.d.ts.map +0 -1
- package/dist/types/src/events.d.ts +0 -4
- package/dist/types/src/events.d.ts.map +0 -1
- package/dist/types/src/hooks.d.ts +0 -3
- package/dist/types/src/hooks.d.ts.map +0 -1
- package/dist/types/src/types.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder.ts +0 -53
- package/src/capabilities/capabilities.ts +0 -20
- package/src/capabilities/intent-resolver.ts +0 -37
- package/src/capabilities/keyboard.ts +0 -59
- package/src/capabilities/react-surface.tsx +0 -45
- package/src/capabilities/state.ts +0 -105
- package/src/components/CommandsDialog/CommandsDialog.tsx +0 -126
- package/src/components/CommandsDialog/CommandsTrigger.tsx +0 -36
- package/src/components/CommandsDialog/index.ts +0 -6
- package/src/components/NavTreeContainer.tsx +0 -369
- package/src/events.ts +0 -11
- package/src/hooks.ts +0 -21
- /package/dist/types/src/{components/CommandsDialog → containers/CommandsTrigger}/CommandsTrigger.d.ts +0 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import {
|
|
2
|
+
NavTreeCapabilities
|
|
3
|
+
} from "./chunk-KF26WA4O.mjs";
|
|
4
|
+
import {
|
|
5
|
+
meta
|
|
6
|
+
} from "./chunk-A4VDCIJC.mjs";
|
|
7
|
+
|
|
8
|
+
// src/capabilities/state/state.ts
|
|
9
|
+
import { Atom } from "@effect-atom/atom-react";
|
|
10
|
+
import * as Effect from "effect/Effect";
|
|
11
|
+
import { Capabilities, Capability } from "@dxos/app-framework";
|
|
12
|
+
import { AppCapabilities } from "@dxos/app-toolkit";
|
|
13
|
+
import { Graph, Node } from "@dxos/plugin-graph";
|
|
14
|
+
import { Path } from "@dxos/react-ui-list";
|
|
15
|
+
var KEY = `${meta.id}.state.v1`;
|
|
16
|
+
var defaultItemState = {
|
|
17
|
+
open: false,
|
|
18
|
+
current: false,
|
|
19
|
+
alternateTree: false
|
|
20
|
+
};
|
|
21
|
+
var isTopLevelPath = (path) => path.length === 2 && path[0] === Node.RootId;
|
|
22
|
+
var defaultStateEntries = [
|
|
23
|
+
[
|
|
24
|
+
"root",
|
|
25
|
+
{
|
|
26
|
+
open: true,
|
|
27
|
+
current: false
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
];
|
|
31
|
+
var getInitialState = () => {
|
|
32
|
+
const stringified = localStorage.getItem(KEY);
|
|
33
|
+
if (!stringified) {
|
|
34
|
+
return new Map(defaultStateEntries);
|
|
35
|
+
}
|
|
36
|
+
try {
|
|
37
|
+
const cached = JSON.parse(stringified);
|
|
38
|
+
return new Map(cached.map(([key, value]) => [
|
|
39
|
+
key,
|
|
40
|
+
{
|
|
41
|
+
open: value.open,
|
|
42
|
+
current: false
|
|
43
|
+
}
|
|
44
|
+
]));
|
|
45
|
+
} catch {
|
|
46
|
+
return new Map(defaultStateEntries);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
var state_default = Capability.makeModule(Effect.fnUntraced(function* () {
|
|
50
|
+
const registry = yield* Capability.get(Capabilities.AtomRegistry);
|
|
51
|
+
const layoutAtom = yield* Capability.get(AppCapabilities.Layout);
|
|
52
|
+
const backingState = getInitialState();
|
|
53
|
+
const itemAtomFamily = Atom.family((pathString) => Atom.make(backingState.get(pathString) ?? {
|
|
54
|
+
...defaultItemState
|
|
55
|
+
}).pipe(Atom.keepAlive));
|
|
56
|
+
const getItemAtom = (path) => {
|
|
57
|
+
const pathString = Path.create(...path);
|
|
58
|
+
if (!backingState.has(pathString)) {
|
|
59
|
+
backingState.set(pathString, {
|
|
60
|
+
...defaultItemState
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
return itemAtomFamily(pathString);
|
|
64
|
+
};
|
|
65
|
+
const getItem = (path) => {
|
|
66
|
+
return registry.get(getItemAtom(path));
|
|
67
|
+
};
|
|
68
|
+
const setItem = (path, key, next) => {
|
|
69
|
+
const pathString = Path.create(...path);
|
|
70
|
+
const atom = itemAtomFamily(pathString);
|
|
71
|
+
const currentValue = registry.get(atom);
|
|
72
|
+
const newValue = {
|
|
73
|
+
...currentValue,
|
|
74
|
+
[key]: next
|
|
75
|
+
};
|
|
76
|
+
registry.set(atom, newValue);
|
|
77
|
+
if (!(key === "open" && isTopLevelPath(path))) {
|
|
78
|
+
backingState.set(pathString, newValue);
|
|
79
|
+
localStorage.setItem(KEY, JSON.stringify(Array.from(backingState.entries())));
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
let previous = [];
|
|
83
|
+
const unsubscribe = registry.subscribe(layoutAtom, (layout) => {
|
|
84
|
+
const removed = previous.filter((id) => !layout.active.includes(id));
|
|
85
|
+
previous = layout.active;
|
|
86
|
+
const handleUpdate = () => {
|
|
87
|
+
removed.forEach((id) => {
|
|
88
|
+
const keys = Array.from(backingState.keys()).filter((key) => Path.last(key) === id);
|
|
89
|
+
keys.forEach((key) => {
|
|
90
|
+
setItem(Path.parts(key), "current", false);
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
layout.active.forEach((id) => {
|
|
94
|
+
const keys = Array.from(/* @__PURE__ */ new Set([
|
|
95
|
+
...backingState.keys(),
|
|
96
|
+
id
|
|
97
|
+
])).filter((key) => Path.last(key) === id);
|
|
98
|
+
keys.forEach((key) => {
|
|
99
|
+
setItem(Path.parts(key), "current", true);
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
const timeout = setTimeout(handleUpdate, 500);
|
|
104
|
+
handleUpdate();
|
|
105
|
+
return () => clearTimeout(timeout);
|
|
106
|
+
});
|
|
107
|
+
yield* Effect.gen(function* () {
|
|
108
|
+
const { graph } = yield* Capability.waitFor(AppCapabilities.AppGraph);
|
|
109
|
+
const layout = registry.get(layoutAtom);
|
|
110
|
+
if (layout.workspace) {
|
|
111
|
+
Graph.expand(graph, layout.workspace, "child");
|
|
112
|
+
}
|
|
113
|
+
const openPaths = Array.from(backingState.entries()).filter(([, state]) => state.open).map(([pathString]) => Path.parts(pathString)).filter((path) => !isTopLevelPath(path));
|
|
114
|
+
for (const path of openPaths) {
|
|
115
|
+
const nodeId = path[path.length - 1];
|
|
116
|
+
if (!nodeId) {
|
|
117
|
+
continue;
|
|
118
|
+
}
|
|
119
|
+
Graph.expand(graph, nodeId, "child");
|
|
120
|
+
}
|
|
121
|
+
}).pipe(Effect.forkDaemon);
|
|
122
|
+
return Capability.contributes(NavTreeCapabilities.State, {
|
|
123
|
+
getItem,
|
|
124
|
+
getItemAtom,
|
|
125
|
+
setItem
|
|
126
|
+
}, () => Effect.sync(() => unsubscribe()));
|
|
127
|
+
}));
|
|
128
|
+
export {
|
|
129
|
+
state_default as default
|
|
130
|
+
};
|
|
131
|
+
//# sourceMappingURL=state-CWMNNF7K.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/state/state.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Atom } from '@effect-atom/atom-react';\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { AppCapabilities } from '@dxos/app-toolkit';\nimport { Graph, Node } from '@dxos/plugin-graph';\nimport { Path } from '@dxos/react-ui-list';\n\nimport { meta } from '../../meta';\nimport { type NavTreeCapabilities as NC, NavTreeCapabilities } from '../../types';\n\nconst KEY = `${meta.id}.state.v1`;\n\n/** Default item state for new entries. */\nconst defaultItemState: NC.NavTreeItemState = { open: false, current: false, alternateTree: false };\n\n/** L0 (top-level workspace) paths are direct children of root — not part of the expandable tree model. */\nconst isTopLevelPath = (path: string[]): boolean => path.length === 2 && path[0] === Node.RootId;\n\n/** Default state entries for initial tree structure. */\n// TODO(thure): Initialize these dynamically.\nconst defaultStateEntries: [string, NC.NavTreeItemState][] = [['root', { open: true, current: false }]];\n\nconst getInitialState = (): Map<string, NC.NavTreeItemState> => {\n const stringified = localStorage.getItem(KEY);\n if (!stringified) {\n return new Map(defaultStateEntries);\n }\n\n try {\n const cached: [string, { open: boolean; current: boolean }][] = JSON.parse(stringified);\n return new Map(cached.map(([key, value]) => [key, { open: value.open, current: false }]));\n } catch {\n return new Map(defaultStateEntries);\n }\n};\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const registry = yield* Capability.get(Capabilities.AtomRegistry);\n const layoutAtom = yield* Capability.get(AppCapabilities.Layout);\n\n // Backing state for persistence (not reactive).\n const backingState = getInitialState();\n\n // Per-path atom family for fine-grained reactivity.\n // keepAlive prevents atoms from being garbage collected when components unmount,\n // ensuring state is preserved across deletion/restoration cycles.\n const itemAtomFamily = Atom.family((pathString: string) =>\n Atom.make<NC.NavTreeItemState>(backingState.get(pathString) ?? { ...defaultItemState }).pipe(Atom.keepAlive),\n );\n\n const getItemAtom = (path: string[]): Atom.Atom<NC.NavTreeItemState> => {\n const pathString = Path.create(...path);\n if (!backingState.has(pathString)) {\n backingState.set(pathString, { ...defaultItemState });\n }\n return itemAtomFamily(pathString);\n };\n\n const getItem = (path: string[]): NC.NavTreeItemState => {\n return registry.get(getItemAtom(path));\n };\n\n const setItem = (path: string[], key: 'open' | 'current' | 'alternateTree', next: boolean) => {\n const pathString = Path.create(...path);\n const atom = itemAtomFamily(pathString);\n const currentValue = registry.get(atom);\n const newValue = { ...currentValue, [key]: next };\n\n registry.set(atom, newValue);\n\n if (!(key === 'open' && isTopLevelPath(path))) {\n backingState.set(pathString, newValue);\n localStorage.setItem(KEY, JSON.stringify(Array.from(backingState.entries())));\n }\n };\n\n // Subscribe to layout changes to update current state.\n let previous: string[] = [];\n const unsubscribe = registry.subscribe(layoutAtom, (layout) => {\n const removed = previous.filter((id) => !layout.active.includes(id));\n previous = layout.active;\n\n const handleUpdate = () => {\n // Mark removed items as not current.\n removed.forEach((id) => {\n const keys = Array.from(backingState.keys()).filter((key) => Path.last(key) === id);\n keys.forEach((key) => {\n setItem(Path.parts(key), 'current', false);\n });\n });\n\n // Mark active items as current.\n layout.active.forEach((id: string) => {\n const keys = Array.from(new Set([...backingState.keys(), id])).filter((key) => Path.last(key) === id);\n keys.forEach((key) => {\n setItem(Path.parts(key), 'current', true);\n });\n });\n };\n\n // TODO(wittjosiah): This is setTimeout because there's a race between the keys being initialized.\n // Keys are initialized on the first render of an item in the navtree.\n // This could be avoided if the location was a path as well and not just an id.\n const timeout = setTimeout(handleUpdate, 500);\n handleUpdate();\n return () => clearTimeout(timeout);\n });\n\n // Once graph is ready, expand every node marked open in state so the graph has children loaded for rendering.\n yield* Effect.gen(function* () {\n const { graph } = yield* Capability.waitFor(AppCapabilities.AppGraph);\n\n // Always expand the active workspace so its subtree is initialized.\n const layout = registry.get(layoutAtom);\n if (layout.workspace) {\n Graph.expand(graph, layout.workspace, 'child');\n }\n\n // Expand persisted open nodes, skipping inactive workspace tabs.\n const openPaths = Array.from(backingState.entries())\n .filter(([, state]) => state.open)\n .map(([pathString]) => Path.parts(pathString))\n .filter((path) => !isTopLevelPath(path));\n for (const path of openPaths) {\n const nodeId = path[path.length - 1];\n if (!nodeId) {\n continue;\n }\n Graph.expand(graph, nodeId, 'child');\n }\n }).pipe(Effect.forkDaemon);\n\n return Capability.contributes(\n NavTreeCapabilities.State,\n {\n getItem,\n getItemAtom,\n setItem,\n },\n () => Effect.sync(() => unsubscribe()),\n );\n }),\n);\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["Atom", "Effect", "Capabilities", "Capability", "AppCapabilities", "Graph", "Node", "Path", "KEY", "meta", "id", "defaultItemState", "open", "current", "alternateTree", "isTopLevelPath", "path", "length", "Node", "RootId", "defaultStateEntries", "getInitialState", "stringified", "localStorage", "getItem", "Map", "cached", "JSON", "parse", "map", "key", "value", "Capability", "makeModule", "fnUntraced", "registry", "get", "Capabilities", "AtomRegistry", "layoutAtom", "AppCapabilities", "Layout", "backingState", "itemAtomFamily", "Atom", "family", "pathString", "make", "pipe", "keepAlive", "getItemAtom", "Path", "create", "has", "set", "setItem", "next", "atom", "currentValue", "newValue", "stringify", "Array", "from", "entries", "previous", "unsubscribe", "subscribe", "layout", "removed", "filter", "active", "includes", "handleUpdate", "forEach", "keys", "last", "parts", "Set", "timeout", "setTimeout", "clearTimeout", "gen", "graph", "waitFor", "AppGraph", "workspace", "Graph", "expand", "openPaths", "state", "nodeId", "forkDaemon", "contributes", "NavTreeCapabilities", "State", "sync"]
|
|
7
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavTreePlugin.d.ts","sourceRoot":"","sources":["../../../src/NavTreePlugin.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NavTreePlugin.d.ts","sourceRoot":"","sources":["../../../src/NavTreePlugin.tsx"],"names":[],"mappings":"AAMA,OAAO,EAA+D,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAW1G,eAAO,MAAM,aAAa,4BAyDzB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
import { GraphBuilder } from '@dxos/plugin-graph';
|
|
4
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<GraphBuilder.BuilderExtensions>>, never, never>;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=app-graph-builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/app-graph-builder/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAe,MAAM,oBAAoB,CAAC;;AAI/D,wBA4BE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/app-graph-builder/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,eAAe,qIAA0E,CAAC"}
|
|
@@ -1,109 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
state: Map<string, import("@dxos/live-object").Live<{
|
|
7
|
-
open: boolean;
|
|
8
|
-
current: boolean;
|
|
9
|
-
alternateTree?: boolean;
|
|
10
|
-
}>>;
|
|
11
|
-
getItem: (path: string[]) => import("@dxos/live-object").Live<{
|
|
12
|
-
open: boolean;
|
|
13
|
-
current: boolean;
|
|
14
|
-
alternateTree?: boolean;
|
|
15
|
-
}>;
|
|
16
|
-
setItem: (path: string[], key: "open" | "current" | "alternateTree", next: boolean) => void;
|
|
17
|
-
isOpen: (path: string[], item: Readonly<{
|
|
18
|
-
id: string;
|
|
19
|
-
type: string;
|
|
20
|
-
cacheable?: string[];
|
|
21
|
-
properties: Readonly<Partial<{
|
|
22
|
-
testId?: string;
|
|
23
|
-
disabled?: boolean;
|
|
24
|
-
position?: import("@dxos/util").Position;
|
|
25
|
-
label: import("@dxos/react-ui").Label;
|
|
26
|
-
className?: string;
|
|
27
|
-
headingClassName?: string;
|
|
28
|
-
icon?: string;
|
|
29
|
-
iconHue?: string;
|
|
30
|
-
} & {
|
|
31
|
-
role?: string;
|
|
32
|
-
error?: string;
|
|
33
|
-
modified?: boolean;
|
|
34
|
-
palette?: string;
|
|
35
|
-
} & {
|
|
36
|
-
persistenceClass: string;
|
|
37
|
-
persistenceKey: string;
|
|
38
|
-
acceptPersistenceClass: Set<string>;
|
|
39
|
-
acceptPersistenceKey: Set<string>;
|
|
40
|
-
onRearrangeChildren: (nextOrder: Readonly</*elided*/ any>[]) => import("@dxos/util").MaybePromise<void>;
|
|
41
|
-
onCopy: (activeNode: Readonly</*elided*/ any>, index?: number) => import("@dxos/util").MaybePromise<void>;
|
|
42
|
-
onTransferStart: (activeNode: Readonly</*elided*/ any>, index?: number) => import("@dxos/util").MaybePromise<void>;
|
|
43
|
-
onTransferEnd: (activeNode: Readonly</*elided*/ any>, destinationParent: Readonly</*elided*/ any>) => import("@dxos/util").MaybePromise<void>;
|
|
44
|
-
}>>;
|
|
45
|
-
data: any;
|
|
46
|
-
}>) => boolean;
|
|
47
|
-
isCurrent: (path: string[], item: Readonly<{
|
|
48
|
-
id: string;
|
|
49
|
-
type: string;
|
|
50
|
-
cacheable?: string[];
|
|
51
|
-
properties: Readonly<Partial<{
|
|
52
|
-
testId?: string;
|
|
53
|
-
disabled?: boolean;
|
|
54
|
-
position?: import("@dxos/util").Position;
|
|
55
|
-
label: import("@dxos/react-ui").Label;
|
|
56
|
-
className?: string;
|
|
57
|
-
headingClassName?: string;
|
|
58
|
-
icon?: string;
|
|
59
|
-
iconHue?: string;
|
|
60
|
-
} & {
|
|
61
|
-
role?: string;
|
|
62
|
-
error?: string;
|
|
63
|
-
modified?: boolean;
|
|
64
|
-
palette?: string;
|
|
65
|
-
} & {
|
|
66
|
-
persistenceClass: string;
|
|
67
|
-
persistenceKey: string;
|
|
68
|
-
acceptPersistenceClass: Set<string>;
|
|
69
|
-
acceptPersistenceKey: Set<string>;
|
|
70
|
-
onRearrangeChildren: (nextOrder: Readonly</*elided*/ any>[]) => import("@dxos/util").MaybePromise<void>;
|
|
71
|
-
onCopy: (activeNode: Readonly</*elided*/ any>, index?: number) => import("@dxos/util").MaybePromise<void>;
|
|
72
|
-
onTransferStart: (activeNode: Readonly</*elided*/ any>, index?: number) => import("@dxos/util").MaybePromise<void>;
|
|
73
|
-
onTransferEnd: (activeNode: Readonly</*elided*/ any>, destinationParent: Readonly</*elided*/ any>) => import("@dxos/util").MaybePromise<void>;
|
|
74
|
-
}>>;
|
|
75
|
-
data: any;
|
|
76
|
-
}>) => boolean;
|
|
77
|
-
isAlternateTree: (path: string[], item: Readonly<{
|
|
78
|
-
id: string;
|
|
79
|
-
type: string;
|
|
80
|
-
cacheable?: string[];
|
|
81
|
-
properties: Readonly<Partial<{
|
|
82
|
-
testId?: string;
|
|
83
|
-
disabled?: boolean;
|
|
84
|
-
position?: import("@dxos/util").Position;
|
|
85
|
-
label: import("@dxos/react-ui").Label;
|
|
86
|
-
className?: string;
|
|
87
|
-
headingClassName?: string;
|
|
88
|
-
icon?: string;
|
|
89
|
-
iconHue?: string;
|
|
90
|
-
} & {
|
|
91
|
-
role?: string;
|
|
92
|
-
error?: string;
|
|
93
|
-
modified?: boolean;
|
|
94
|
-
palette?: string;
|
|
95
|
-
} & {
|
|
96
|
-
persistenceClass: string;
|
|
97
|
-
persistenceKey: string;
|
|
98
|
-
acceptPersistenceClass: Set<string>;
|
|
99
|
-
acceptPersistenceKey: Set<string>;
|
|
100
|
-
onRearrangeChildren: (nextOrder: Readonly</*elided*/ any>[]) => import("@dxos/util").MaybePromise<void>;
|
|
101
|
-
onCopy: (activeNode: Readonly</*elided*/ any>, index?: number) => import("@dxos/util").MaybePromise<void>;
|
|
102
|
-
onTransferStart: (activeNode: Readonly</*elided*/ any>, index?: number) => import("@dxos/util").MaybePromise<void>;
|
|
103
|
-
onTransferEnd: (activeNode: Readonly</*elided*/ any>, destinationParent: Readonly</*elided*/ any>) => import("@dxos/util").MaybePromise<void>;
|
|
104
|
-
}>>;
|
|
105
|
-
data: any;
|
|
106
|
-
}>) => boolean;
|
|
107
|
-
}>> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
108
|
-
export * from './capabilities';
|
|
1
|
+
export * from './app-graph-builder';
|
|
2
|
+
export * from './keyboard';
|
|
3
|
+
export * from './operation-handler';
|
|
4
|
+
export * from './react-surface';
|
|
5
|
+
export * from './state';
|
|
109
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/keyboard/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,QAAQ,8FAA0D,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<null>>, Error, Capability.Service>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=keyboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyboard.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/keyboard/keyboard.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AAS/D,wBAkDE"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Capability } from '@dxos/app-framework';
|
|
2
|
+
import { OperationHandlerSet } from '@dxos/operation';
|
|
3
|
+
export declare const OperationHandler: Capability.LazyCapability<OperationHandlerSet.OperationHandlerSet, Capability.ModuleReturn, Error>;
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/operation-handler/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,eAAO,MAAM,gBAAgB,oGAG5B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
import type { OperationHandlerSet } from '@dxos/operation';
|
|
4
|
+
declare const _default: (props: OperationHandlerSet.OperationHandlerSet) => Effect.Effect<Capability.ModuleReturn, Error, Capability.Service>;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=operation-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation-handler.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/operation-handler/operation-handler.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;;AAI3D,wBAIE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-surface/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,YAAY,iJAAmE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
3
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Capabilities.ReactSurface>>, never, never>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=react-surface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-surface/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AAO/D,wBAsCE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/state/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,KAAK,+IAAoD,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
import { type NavTreeCapabilities as NC } from '../../types';
|
|
4
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<NC.NavTreeStateStore>>, Error, Capability.Service>;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/state/state.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAM/D,OAAO,EAAE,KAAK,mBAAmB,IAAI,EAAE,EAAuB,MAAM,aAAa,CAAC;;AA4BlF,wBA2GE"}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { type NavTreeItemGraphNode } from '../../types';
|
|
2
|
+
import { Node } from '@dxos/plugin-graph';
|
|
4
3
|
import { type L1TabsProps } from '../Sidebar';
|
|
5
4
|
export declare const NAV_TREE_ITEM = "NavTreeItem";
|
|
6
|
-
export type NavTreeProps =
|
|
7
|
-
|
|
5
|
+
export type NavTreeProps = {
|
|
6
|
+
id: string;
|
|
7
|
+
root?: Node.Node;
|
|
8
|
+
tab: string;
|
|
9
|
+
} & Pick<L1TabsProps, 'open'>;
|
|
10
|
+
export declare const NavTree: React.ForwardRefExoticComponent<{
|
|
11
|
+
id: string;
|
|
12
|
+
root?: Node.Node;
|
|
13
|
+
tab: string;
|
|
14
|
+
} & Pick<L1TabsProps, "open"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
15
|
//# sourceMappingURL=NavTree.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavTree.d.ts","sourceRoot":"","sources":["../../../../../src/components/NavTree/NavTree.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"NavTree.d.ts","sourceRoot":"","sources":["../../../../../src/components/NavTree/NavTree.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,EAAE,IAAI,EAAiD,MAAM,oBAAoB,CAAC;AAMzF,OAAO,EAAkB,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9D,eAAO,MAAM,aAAa,gBAAgB,CAAC;AAE3C,MAAM,MAAM,YAAY,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;AAGrG,eAAO,MAAM,OAAO;QAHa,MAAM;WAAS,IAAI,CAAC,IAAI;SAAO,MAAM;oEA4BpE,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type StoryObj } from '@storybook/react-vite';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { NavTreeContainer } from '
|
|
3
|
+
import { NavTreeContainer } from '../../containers';
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.
|
|
6
|
+
component: React.ComponentType<any>;
|
|
7
7
|
render: () => React.JSX.Element;
|
|
8
8
|
decorators: import("@storybook/react").Decorator[];
|
|
9
9
|
parameters: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavTree.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/NavTree/NavTree.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NavTree.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/NavTree/NavTree.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAkD,MAAM,OAAO,CAAC;AAgBvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AA8FpD,QAAA,MAAM,IAAI;;;;;;;;;yBA/GV,CAAS,IAAG,CAAC,EAAE,CAAC;;;;;;;;;;;;;;CAsJyB,CAAC;AAE1C,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE/C,eAAO,MAAM,OAAO,EAAE,KA4CrB,CAAC"}
|
package/dist/types/src/components/{NavTreeContext.d.ts → NavTreeContext/NavTreeContext.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type NavTreeContextValue } from '
|
|
1
|
+
import { type NavTreeContextValue } from '../types';
|
|
2
2
|
export declare const NavTreeContext: import("react").Context<NavTreeContextValue | null>;
|
|
3
3
|
export declare const useNavTreeContext: () => NavTreeContextValue;
|
|
4
4
|
//# sourceMappingURL=NavTreeContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavTreeContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/NavTreeContext/NavTreeContext.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,eAAO,MAAM,cAAc,qDAAkD,CAAC;AAE9E,eAAO,MAAM,iBAAiB,2BAAiF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/NavTreeContext/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type Node } from '@dxos/app-graph';
|
|
3
3
|
import { type ActionProperties } from '../../types';
|
|
4
4
|
export type NavTreeItemActionMenuProps = ActionProperties & {
|
|
5
|
-
parent: Node;
|
|
5
|
+
parent: Node.Node;
|
|
6
|
+
path?: string[];
|
|
6
7
|
caller?: string;
|
|
7
8
|
monolithic?: boolean;
|
|
8
|
-
menuActions?: Action[];
|
|
9
|
+
menuActions?: Node.Action[];
|
|
9
10
|
};
|
|
10
|
-
export declare const NavTreeItemActionDropdownMenu:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
export declare const NavTreeItemActionDropdownMenu: React.ForwardRefExoticComponent<Omit<NavTreeItemActionMenuProps, "className"> & {
|
|
12
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
13
|
+
} & {
|
|
14
|
+
className?: string;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
role?: string;
|
|
17
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
18
|
+
export declare const NavTreeItemMonolithicAction: (props: Node.Action & {
|
|
19
|
+
parent: Node.Node;
|
|
20
|
+
path?: string[];
|
|
21
|
+
onAction?: (action: Node.Action) => void;
|
|
14
22
|
baseLabel: string;
|
|
15
23
|
}) => React.JSX.Element;
|
|
16
|
-
export declare const NavTreeItemAction: ({ monolithic, menuActions, parent: node, ...props }: NavTreeItemActionMenuProps) => React.JSX.Element;
|
|
24
|
+
export declare const NavTreeItemAction: ({ monolithic, menuActions, menuType, parent: node, path, ...props }: NavTreeItemActionMenuProps) => React.JSX.Element;
|
|
17
25
|
//# sourceMappingURL=NavTreeItemAction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavTreeItemAction.d.ts","sourceRoot":"","sources":["../../../../../src/components/NavTreeItem/NavTreeItemAction.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"NavTreeItemAction.d.ts","sourceRoot":"","sources":["../../../../../src/components/NavTreeItem/NavTreeItemAction.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAO5C,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAcpD,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,GAAG;IAC1D,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;2CA6BzC,CAAC;AAIF,eAAO,MAAM,2BAA2B,GACtC,OAAO,IAAI,CAAC,MAAM,GAAG;IACnB,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC;IACzC,SAAS,EAAE,MAAM,CAAC;CACnB,sBAmCF,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,qEAO/B,0BAA0B,sBAW5B,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { type StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import * as Effect from 'effect/Effect';
|
|
2
3
|
import { type NavTreeItemActionMenuProps } from './NavTreeItemAction';
|
|
3
4
|
declare const meta: {
|
|
4
5
|
title: string;
|
|
5
|
-
component: ({ monolithic, menuActions, parent: node, ...props }: NavTreeItemActionMenuProps) => import("react").JSX.Element;
|
|
6
|
+
component: ({ monolithic, menuActions, menuType, parent: node, path, ...props }: NavTreeItemActionMenuProps) => import("react").JSX.Element;
|
|
6
7
|
args: {
|
|
7
8
|
icon: string;
|
|
8
9
|
parent: {
|
|
@@ -17,7 +18,7 @@ declare const meta: {
|
|
|
17
18
|
menuActions: {
|
|
18
19
|
id: string;
|
|
19
20
|
type: string;
|
|
20
|
-
data: () => void
|
|
21
|
+
data: () => Effect.Effect<void, never, never>;
|
|
21
22
|
properties: {
|
|
22
23
|
label: string;
|
|
23
24
|
icon: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavTreeItemAction.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/NavTreeItem/NavTreeItemAction.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"NavTreeItemAction.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/NavTreeItem/NavTreeItemAction.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAQxC,OAAO,EAAqB,KAAK,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AA8BzF,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBgC,CAAC;AAE3C,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavTreeItemColumns.d.ts","sourceRoot":"","sources":["../../../../../src/components/NavTreeItem/NavTreeItemColumns.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"NavTreeItemColumns.d.ts","sourceRoot":"","sources":["../../../../../src/components/NavTreeItem/NavTreeItemColumns.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkC,MAAM,OAAO,CAAC;AASvD,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAIxD,eAAO,MAAM,kBAAkB,mDAA+B,uBAAuB,uBAuFnF,CAAC"}
|
|
@@ -5,11 +5,14 @@ import { type MenuItem } from '@dxos/react-ui-menu';
|
|
|
5
5
|
export declare const L0ItemActiveTabIndicator: ({ classNames }: ThemedClassName<{}>) => React.JSX.Element;
|
|
6
6
|
export type L0MenuProps = {
|
|
7
7
|
menuActions: MenuItem[];
|
|
8
|
-
topLevelItems: Node
|
|
9
|
-
pinnedItems: Node
|
|
10
|
-
userAccountItem?: Node
|
|
11
|
-
parent?: Node
|
|
8
|
+
topLevelItems: Node.Node[];
|
|
9
|
+
pinnedItems: Node.Node[];
|
|
10
|
+
userAccountItem?: Node.Node;
|
|
11
|
+
parent?: Node.Node;
|
|
12
12
|
path: string[];
|
|
13
|
+
onItemHover?: (params: {
|
|
14
|
+
item: Node.Node;
|
|
15
|
+
}) => void;
|
|
13
16
|
};
|
|
14
|
-
export declare const L0Menu: ({ menuActions, topLevelItems, pinnedItems, userAccountItem, parent, path }: L0MenuProps) => React.JSX.Element;
|
|
17
|
+
export declare const L0Menu: ({ menuActions, topLevelItems, pinnedItems, userAccountItem, parent, path, onItemHover, }: L0MenuProps) => React.JSX.Element;
|
|
15
18
|
//# sourceMappingURL=L0Menu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"L0Menu.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/L0Menu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"L0Menu.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/L0Menu.tsx"],"names":[],"mappings":"AAcA,OAAO,KAUN,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,EAKL,KAAK,eAAe,EAKrB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAQ,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAqG1D,eAAO,MAAM,wBAAwB,GAAI,gBAAgB,eAAe,CAAC,EAAE,CAAC,sBAQ3E,CAAC;AAmHF,MAAM,MAAM,WAAW,GAAG;IACxB,WAAW,EAAE,QAAQ,EAAE,CAAC;IACxB,aAAa,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;IAC3B,WAAW,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;IACzB,eAAe,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC;IAC5B,MAAM,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC;IACnB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAA;KAAE,KAAK,IAAI,CAAC;CACrD,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,0FAQpB,WAAW,sBA4Fb,CAAC"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Node } from '@dxos/app-graph';
|
|
3
3
|
export type L1PanelProps = {
|
|
4
4
|
open?: boolean;
|
|
5
5
|
path: string[];
|
|
6
|
-
item: Node
|
|
7
|
-
|
|
6
|
+
item: Node.Node;
|
|
7
|
+
isCurrent: boolean;
|
|
8
8
|
onBack?: () => void;
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
* Space or settings panel.
|
|
12
|
-
*/
|
|
13
|
-
export declare const L1Panel: ({ open, path, item, currentItemId, onBack }: L1PanelProps) => React.JSX.Element;
|
|
10
|
+
export declare const L1Panel: React.MemoExoticComponent<({ open, path, item, isCurrent, onBack }: L1PanelProps) => React.JSX.Element>;
|
|
14
11
|
//# sourceMappingURL=L1Panel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"L1Panel.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/L1Panel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"L1Panel.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/L1Panel.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAiBvC,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAmRF,eAAO,MAAM,OAAO,sEA9QuC,YAAY,uBA8QlC,CAAC"}
|