@dxos/plugin-navtree 0.7.5-main.499c70c → 0.7.5-main.6a330ac

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 (127) hide show
  1. package/dist/lib/browser/app-graph-builder-BL7LRXCM.mjs +44 -0
  2. package/dist/lib/browser/app-graph-builder-BL7LRXCM.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-AOAGODQB.mjs +15 -0
  4. package/dist/lib/browser/chunk-AOAGODQB.mjs.map +7 -0
  5. package/dist/lib/browser/chunk-GXNOX2XZ.mjs +1262 -0
  6. package/dist/lib/browser/chunk-GXNOX2XZ.mjs.map +7 -0
  7. package/dist/lib/browser/{chunk-VAXG4OAG.mjs → chunk-KOXMEAOS.mjs} +3 -3
  8. package/dist/lib/browser/{chunk-VAXG4OAG.mjs.map → chunk-KOXMEAOS.mjs.map} +3 -3
  9. package/dist/lib/browser/index.mjs +108 -1199
  10. package/dist/lib/browser/index.mjs.map +4 -4
  11. package/dist/lib/browser/intent-resolver-U25VBFH3.mjs +47 -0
  12. package/dist/lib/browser/intent-resolver-U25VBFH3.mjs.map +7 -0
  13. package/dist/lib/browser/keyboard-MUBRTPI5.mjs +46 -0
  14. package/dist/lib/browser/keyboard-MUBRTPI5.mjs.map +7 -0
  15. package/dist/lib/browser/meta.json +1 -1
  16. package/dist/lib/browser/react-surface-SG4QBA2U.mjs +57 -0
  17. package/dist/lib/browser/react-surface-SG4QBA2U.mjs.map +7 -0
  18. package/dist/lib/browser/state-IEFQTUPG.mjs +108 -0
  19. package/dist/lib/browser/state-IEFQTUPG.mjs.map +7 -0
  20. package/dist/types/src/NavTreePlugin.d.ts +1 -3
  21. package/dist/types/src/NavTreePlugin.d.ts.map +1 -1
  22. package/dist/types/src/capabilities/app-graph-builder.d.ts +181 -0
  23. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
  24. package/dist/types/src/capabilities/capabilities.d.ts +18 -0
  25. package/dist/types/src/capabilities/capabilities.d.ts.map +1 -0
  26. package/dist/types/src/capabilities/index.d.ts +251 -0
  27. package/dist/types/src/capabilities/index.d.ts.map +1 -0
  28. package/dist/types/src/capabilities/intent-resolver.d.ts +4 -0
  29. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -0
  30. package/dist/types/src/capabilities/keyboard.d.ts +4 -0
  31. package/dist/types/src/capabilities/keyboard.d.ts.map +1 -0
  32. package/dist/types/src/capabilities/react-surface.d.ts +4 -0
  33. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  34. package/dist/types/src/capabilities/state.d.ts +17 -0
  35. package/dist/types/src/capabilities/state.d.ts.map +1 -0
  36. package/dist/types/src/components/CommandsDialog.d.ts +1 -2
  37. package/dist/types/src/components/CommandsDialog.d.ts.map +1 -1
  38. package/dist/types/src/components/CommandsTrigger.d.ts +1 -2
  39. package/dist/types/src/components/CommandsTrigger.d.ts.map +1 -1
  40. package/dist/types/src/components/HaloButton.d.ts +1 -2
  41. package/dist/types/src/components/HaloButton.d.ts.map +1 -1
  42. package/dist/types/src/components/HaloButton.stories.d.ts +1 -2
  43. package/dist/types/src/components/HaloButton.stories.d.ts.map +1 -1
  44. package/dist/types/src/components/L0Menu.d.ts +8 -0
  45. package/dist/types/src/components/L0Menu.d.ts.map +1 -0
  46. package/dist/types/src/components/L1Panels.d.ts +13 -0
  47. package/dist/types/src/components/L1Panels.d.ts.map +1 -0
  48. package/dist/types/src/components/NavTree.d.ts +2 -22
  49. package/dist/types/src/components/NavTree.d.ts.map +1 -1
  50. package/dist/types/src/components/NavTree.stories.d.ts +2 -2
  51. package/dist/types/src/components/NavTree.stories.d.ts.map +1 -1
  52. package/dist/types/src/components/NavTreeContainer.d.ts +4 -3
  53. package/dist/types/src/components/NavTreeContainer.d.ts.map +1 -1
  54. package/dist/types/src/components/NavTreeContext.d.ts +4 -0
  55. package/dist/types/src/components/NavTreeContext.d.ts.map +1 -0
  56. package/dist/types/src/components/NavTreeItemAction.d.ts +6 -10
  57. package/dist/types/src/components/NavTreeItemAction.d.ts.map +1 -1
  58. package/dist/types/src/components/NavTreeItemAction.stories.d.ts +2 -7
  59. package/dist/types/src/components/NavTreeItemAction.stories.d.ts.map +1 -1
  60. package/dist/types/src/components/NavTreeItemColumns.d.ts +4 -0
  61. package/dist/types/src/components/NavTreeItemColumns.d.ts.map +1 -0
  62. package/dist/types/src/components/NotchStart.d.ts +1 -2
  63. package/dist/types/src/components/NotchStart.d.ts.map +1 -1
  64. package/dist/types/src/components/index.d.ts +3 -0
  65. package/dist/types/src/components/index.d.ts.map +1 -1
  66. package/dist/types/src/components/types.d.ts +26 -0
  67. package/dist/types/src/components/types.d.ts.map +1 -0
  68. package/dist/types/src/events.d.ts +4 -0
  69. package/dist/types/src/events.d.ts.map +1 -0
  70. package/dist/types/src/experimental/Tree.d.ts +8 -8
  71. package/dist/types/src/experimental/Tree.d.ts.map +1 -1
  72. package/dist/types/src/experimental/Tree.stories.d.ts +2 -3
  73. package/dist/types/src/experimental/Tree.stories.d.ts.map +1 -1
  74. package/dist/types/src/hooks.d.ts +3 -0
  75. package/dist/types/src/hooks.d.ts.map +1 -0
  76. package/dist/types/src/index.d.ts +3 -2
  77. package/dist/types/src/index.d.ts.map +1 -1
  78. package/dist/types/src/meta.d.ts +1 -2
  79. package/dist/types/src/meta.d.ts.map +1 -1
  80. package/dist/types/src/stories/Graph.stories.d.ts +2 -2
  81. package/dist/types/src/stories/Graph.stories.d.ts.map +1 -1
  82. package/dist/types/src/stories/StorybookNavTree.d.ts +3 -0
  83. package/dist/types/src/stories/StorybookNavTree.d.ts.map +1 -0
  84. package/dist/types/src/translations.d.ts +0 -7
  85. package/dist/types/src/translations.d.ts.map +1 -1
  86. package/dist/types/src/types.d.ts +3 -2
  87. package/dist/types/src/types.d.ts.map +1 -1
  88. package/dist/types/src/util.d.ts +9 -0
  89. package/dist/types/src/util.d.ts.map +1 -1
  90. package/dist/types/tsconfig.tsbuildinfo +1 -1
  91. package/package.json +34 -39
  92. package/src/NavTreePlugin.tsx +67 -291
  93. package/src/capabilities/app-graph-builder.ts +42 -0
  94. package/src/capabilities/capabilities.ts +19 -0
  95. package/src/capabilities/index.ts +13 -0
  96. package/src/capabilities/intent-resolver.ts +36 -0
  97. package/src/capabilities/keyboard.ts +54 -0
  98. package/src/capabilities/react-surface.tsx +56 -0
  99. package/src/capabilities/state.ts +97 -0
  100. package/src/components/CommandsDialog.tsx +3 -4
  101. package/src/components/CommandsTrigger.tsx +7 -5
  102. package/src/components/L0Menu.tsx +332 -0
  103. package/src/components/L1Panels.tsx +119 -0
  104. package/src/components/NavTree.stories.tsx +6 -6
  105. package/src/components/NavTree.tsx +26 -124
  106. package/src/components/NavTreeContainer.tsx +114 -45
  107. package/src/components/NavTreeContext.tsx +13 -0
  108. package/src/components/NavTreeItemAction.stories.tsx +0 -2
  109. package/src/components/NavTreeItemAction.tsx +58 -316
  110. package/src/components/NavTreeItemColumns.tsx +71 -0
  111. package/src/components/NotchStart.tsx +6 -5
  112. package/src/components/index.ts +3 -0
  113. package/src/components/types.ts +35 -0
  114. package/src/events.ts +11 -0
  115. package/src/hooks.ts +21 -0
  116. package/src/index.ts +3 -4
  117. package/src/meta.ts +1 -1
  118. package/src/stories/Graph.stories.tsx +6 -5
  119. package/src/stories/StorybookNavTree.tsx +63 -0
  120. package/src/translations.ts +0 -7
  121. package/src/types.ts +3 -2
  122. package/src/util.ts +56 -2
  123. package/dist/lib/browser/meta.mjs +0 -13
  124. package/dist/lib/browser/meta.mjs.map +0 -7
  125. package/dist/types/src/components/NavTreeFooter.d.ts +0 -6
  126. package/dist/types/src/components/NavTreeFooter.d.ts.map +0 -1
  127. package/src/components/NavTreeFooter.tsx +0 -159
@@ -0,0 +1,251 @@
1
+ export declare const AppGraphBuilder: (props?: import("@dxos/app-framework").PluginsContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<Readonly<{
2
+ id: string;
3
+ position: import("@dxos/util").Position;
4
+ resolver?: import("@dxos/app-graph").ResolverExtension;
5
+ connector?: import("@dxos/app-graph").ConnectorExtension;
6
+ relation?: import("@dxos/app-graph").Relation;
7
+ type?: string;
8
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
9
+ }> | Readonly<{
10
+ id: string;
11
+ position: import("@dxos/util").Position;
12
+ resolver?: import("@dxos/app-graph").ResolverExtension;
13
+ connector?: import("@dxos/app-graph").ConnectorExtension;
14
+ relation?: import("@dxos/app-graph").Relation;
15
+ type?: string;
16
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
17
+ }>[] | (Readonly<{
18
+ id: string;
19
+ position: import("@dxos/util").Position;
20
+ resolver?: import("@dxos/app-graph").ResolverExtension;
21
+ connector?: import("@dxos/app-graph").ConnectorExtension;
22
+ relation?: import("@dxos/app-graph").Relation;
23
+ type?: string;
24
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
25
+ }> | Readonly<{
26
+ id: string;
27
+ position: import("@dxos/util").Position;
28
+ resolver?: import("@dxos/app-graph").ResolverExtension;
29
+ connector?: import("@dxos/app-graph").ConnectorExtension;
30
+ relation?: import("@dxos/app-graph").Relation;
31
+ type?: string;
32
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
33
+ }>[] | (Readonly<{
34
+ id: string;
35
+ position: import("@dxos/util").Position;
36
+ resolver?: import("@dxos/app-graph").ResolverExtension;
37
+ connector?: import("@dxos/app-graph").ConnectorExtension;
38
+ relation?: import("@dxos/app-graph").Relation;
39
+ type?: string;
40
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
41
+ }> | Readonly<{
42
+ id: string;
43
+ position: import("@dxos/util").Position;
44
+ resolver?: import("@dxos/app-graph").ResolverExtension;
45
+ connector?: import("@dxos/app-graph").ConnectorExtension;
46
+ relation?: import("@dxos/app-graph").Relation;
47
+ type?: string;
48
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
49
+ }>[] | (Readonly<{
50
+ id: string;
51
+ position: import("@dxos/util").Position;
52
+ resolver?: import("@dxos/app-graph").ResolverExtension;
53
+ connector?: import("@dxos/app-graph").ConnectorExtension;
54
+ relation?: import("@dxos/app-graph").Relation;
55
+ type?: string;
56
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
57
+ }> | Readonly<{
58
+ id: string;
59
+ position: import("@dxos/util").Position;
60
+ resolver?: import("@dxos/app-graph").ResolverExtension;
61
+ connector?: import("@dxos/app-graph").ConnectorExtension;
62
+ relation?: import("@dxos/app-graph").Relation;
63
+ type?: string;
64
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
65
+ }>[] | (Readonly<{
66
+ id: string;
67
+ position: import("@dxos/util").Position;
68
+ resolver?: import("@dxos/app-graph").ResolverExtension;
69
+ connector?: import("@dxos/app-graph").ConnectorExtension;
70
+ relation?: import("@dxos/app-graph").Relation;
71
+ type?: string;
72
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
73
+ }> | Readonly<{
74
+ id: string;
75
+ position: import("@dxos/util").Position;
76
+ resolver?: import("@dxos/app-graph").ResolverExtension;
77
+ connector?: import("@dxos/app-graph").ConnectorExtension;
78
+ relation?: import("@dxos/app-graph").Relation;
79
+ type?: string;
80
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
81
+ }>[] | (Readonly<{
82
+ id: string;
83
+ position: import("@dxos/util").Position;
84
+ resolver?: import("@dxos/app-graph").ResolverExtension;
85
+ connector?: import("@dxos/app-graph").ConnectorExtension;
86
+ relation?: import("@dxos/app-graph").Relation;
87
+ type?: string;
88
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
89
+ }> | Readonly<{
90
+ id: string;
91
+ position: import("@dxos/util").Position;
92
+ resolver?: import("@dxos/app-graph").ResolverExtension;
93
+ connector?: import("@dxos/app-graph").ConnectorExtension;
94
+ relation?: import("@dxos/app-graph").Relation;
95
+ type?: string;
96
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
97
+ }>[] | (Readonly<{
98
+ id: string;
99
+ position: import("@dxos/util").Position;
100
+ resolver?: import("@dxos/app-graph").ResolverExtension;
101
+ connector?: import("@dxos/app-graph").ConnectorExtension;
102
+ relation?: import("@dxos/app-graph").Relation;
103
+ type?: string;
104
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
105
+ }> | Readonly<{
106
+ id: string;
107
+ position: import("@dxos/util").Position;
108
+ resolver?: import("@dxos/app-graph").ResolverExtension;
109
+ connector?: import("@dxos/app-graph").ConnectorExtension;
110
+ relation?: import("@dxos/app-graph").Relation;
111
+ type?: string;
112
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
113
+ }>[] | (Readonly<{
114
+ id: string;
115
+ position: import("@dxos/util").Position;
116
+ resolver?: import("@dxos/app-graph").ResolverExtension;
117
+ connector?: import("@dxos/app-graph").ConnectorExtension;
118
+ relation?: import("@dxos/app-graph").Relation;
119
+ type?: string;
120
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
121
+ }> | Readonly<{
122
+ id: string;
123
+ position: import("@dxos/util").Position;
124
+ resolver?: import("@dxos/app-graph").ResolverExtension;
125
+ connector?: import("@dxos/app-graph").ConnectorExtension;
126
+ relation?: import("@dxos/app-graph").Relation;
127
+ type?: string;
128
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
129
+ }>[] | (Readonly<{
130
+ id: string;
131
+ position: import("@dxos/util").Position;
132
+ resolver?: import("@dxos/app-graph").ResolverExtension;
133
+ connector?: import("@dxos/app-graph").ConnectorExtension;
134
+ relation?: import("@dxos/app-graph").Relation;
135
+ type?: string;
136
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
137
+ }> | Readonly<{
138
+ id: string;
139
+ position: import("@dxos/util").Position;
140
+ resolver?: import("@dxos/app-graph").ResolverExtension;
141
+ connector?: import("@dxos/app-graph").ConnectorExtension;
142
+ relation?: import("@dxos/app-graph").Relation;
143
+ type?: string;
144
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
145
+ }>[] | (Readonly<{
146
+ id: string;
147
+ position: import("@dxos/util").Position;
148
+ resolver?: import("@dxos/app-graph").ResolverExtension;
149
+ connector?: import("@dxos/app-graph").ConnectorExtension;
150
+ relation?: import("@dxos/app-graph").Relation;
151
+ type?: string;
152
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
153
+ }> | Readonly<{
154
+ id: string;
155
+ position: import("@dxos/util").Position;
156
+ resolver?: import("@dxos/app-graph").ResolverExtension;
157
+ connector?: import("@dxos/app-graph").ConnectorExtension;
158
+ relation?: import("@dxos/app-graph").Relation;
159
+ type?: string;
160
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
161
+ }>[] | (any[] | Readonly<{
162
+ id: string;
163
+ position: import("@dxos/util").Position;
164
+ resolver?: import("@dxos/app-graph").ResolverExtension;
165
+ connector?: import("@dxos/app-graph").ConnectorExtension;
166
+ relation?: import("@dxos/app-graph").Relation;
167
+ type?: string;
168
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
169
+ }> | Readonly<{
170
+ id: string;
171
+ position: import("@dxos/util").Position;
172
+ resolver?: import("@dxos/app-graph").ResolverExtension;
173
+ connector?: import("@dxos/app-graph").ConnectorExtension;
174
+ relation?: import("@dxos/app-graph").Relation;
175
+ type?: string;
176
+ filter?: (node: import("@dxos/app-graph").Node) => boolean;
177
+ }>[])[])[])[])[])[])[])[])[])[])[]> | import("@dxos/app-framework").AnyCapability[]>>;
178
+ export declare const IntentResolver: (props?: import("@dxos/app-framework").PluginsContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.IntentResolver> | import("@dxos/app-framework").AnyCapability[]>>;
179
+ export declare const Keyboard: (props?: import("@dxos/app-framework").PluginsContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<null> | import("@dxos/app-framework").AnyCapability[]>>;
180
+ export declare const ReactSurface: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.ReactSurface> | import("@dxos/app-framework").AnyCapability[]>>;
181
+ export declare const State: (props?: import("@dxos/app-framework").PluginsContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<{
182
+ state: Map<string, import("@dxos/live-object").ReactiveObject<{
183
+ open: boolean;
184
+ current: boolean;
185
+ }>>;
186
+ getItem: (path: string[]) => import("@dxos/live-object").ReactiveObject<{
187
+ open: boolean;
188
+ current: boolean;
189
+ }>;
190
+ setItem: (path: string[], key: "open" | "current", next: boolean) => void;
191
+ isOpen: (path: string[], item: Readonly<{
192
+ id: string;
193
+ type: string;
194
+ cacheable?: string[];
195
+ properties: Readonly<Partial<{
196
+ label: import("@dxos/react-ui").Label;
197
+ icon?: string;
198
+ disabled?: boolean;
199
+ position?: import("@dxos/util").Position;
200
+ testId?: string;
201
+ className?: string;
202
+ headingClassName?: string;
203
+ } & {
204
+ role?: string;
205
+ error?: string;
206
+ modified?: boolean;
207
+ palette?: string;
208
+ } & {
209
+ persistenceClass: string;
210
+ persistenceKey: string;
211
+ acceptPersistenceClass: Set<string>;
212
+ acceptPersistenceKey: Set<string>;
213
+ onRearrangeChildren: (nextOrder: Readonly</*elided*/ any>[]) => import("@dxos/util").MaybePromise<void>;
214
+ onCopy: (activeNode: Readonly</*elided*/ any>, index?: number) => import("@dxos/util").MaybePromise<void>;
215
+ onTransferStart: (activeNode: Readonly</*elided*/ any>, index?: number) => import("@dxos/util").MaybePromise<void>;
216
+ onTransferEnd: (activeNode: Readonly</*elided*/ any>, destinationParent: Readonly</*elided*/ any>) => import("@dxos/util").MaybePromise<void>;
217
+ }>>;
218
+ data: any;
219
+ }>) => boolean;
220
+ isCurrent: (path: string[], item: Readonly<{
221
+ id: string;
222
+ type: string;
223
+ cacheable?: string[];
224
+ properties: Readonly<Partial<{
225
+ label: import("@dxos/react-ui").Label;
226
+ icon?: string;
227
+ disabled?: boolean;
228
+ position?: import("@dxos/util").Position;
229
+ testId?: string;
230
+ className?: string;
231
+ headingClassName?: string;
232
+ } & {
233
+ role?: string;
234
+ error?: string;
235
+ modified?: boolean;
236
+ palette?: string;
237
+ } & {
238
+ persistenceClass: string;
239
+ persistenceKey: string;
240
+ acceptPersistenceClass: Set<string>;
241
+ acceptPersistenceKey: Set<string>;
242
+ onRearrangeChildren: (nextOrder: Readonly</*elided*/ any>[]) => import("@dxos/util").MaybePromise<void>;
243
+ onCopy: (activeNode: Readonly</*elided*/ any>, index?: number) => import("@dxos/util").MaybePromise<void>;
244
+ onTransferStart: (activeNode: Readonly</*elided*/ any>, index?: number) => import("@dxos/util").MaybePromise<void>;
245
+ onTransferEnd: (activeNode: Readonly</*elided*/ any>, destinationParent: Readonly</*elided*/ any>) => import("@dxos/util").MaybePromise<void>;
246
+ }>>;
247
+ data: any;
248
+ }>) => boolean;
249
+ }> | import("@dxos/app-framework").AnyCapability[]>>;
250
+ export * from './capabilities';
251
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;;qBAO28F,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;qFAPtsV,CAAC;AACzE,eAAO,MAAM,cAAc,mPAA0C,CAAC;AACtE,eAAO,MAAM,QAAQ,8LAAmC,CAAC;AACzD,eAAO,MAAM,YAAY,gMAAwC,CAAC;AAClE,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gEAGsI,CAAC;yEAAgG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;gEAAlG,CAAC;yEAAgG,CAAC;;;;;oDAHxM,CAAC;AAEnD,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { type PluginsContext, Capabilities } from '@dxos/app-framework';
2
+ declare const _default: (context: PluginsContext) => import("@dxos/app-framework").Capability<Capabilities.IntentResolver>;
3
+ export default _default;
4
+ //# sourceMappingURL=intent-resolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intent-resolver.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/intent-resolver.ts"],"names":[],"mappings":"AAIA,OAAO,EAAe,KAAK,cAAc,EAAE,YAAY,EAAgC,MAAM,qBAAqB,CAAC;kCAM1F,cAAc;AAAvC,wBAyBI"}
@@ -0,0 +1,4 @@
1
+ import { type PluginsContext } from '@dxos/app-framework';
2
+ declare const _default: (context: PluginsContext) => import("@dxos/app-framework").Capability<null>;
3
+ export default _default;
4
+ //# sourceMappingURL=keyboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keyboard.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/keyboard.ts"],"names":[],"mappings":"AAIA,OAAO,EAAgD,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;kCAO/E,cAAc;AAAvC,wBA0CE"}
@@ -0,0 +1,4 @@
1
+ import { Capabilities } from '@dxos/app-framework';
2
+ declare const _default: () => import("@dxos/app-framework").Capability<Capabilities.ReactSurface>;
3
+ export default _default;
4
+ //# sourceMappingURL=react-surface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAA8B,MAAM,qBAAqB,CAAC;;AAY/E,wBAqCK"}
@@ -0,0 +1,17 @@
1
+ import { type PluginsContext } from '@dxos/app-framework';
2
+ import { type ReactiveObject } from '@dxos/live-object';
3
+ declare const _default: (context: PluginsContext) => import("@dxos/app-framework").Capability<{
4
+ state: Map<string, ReactiveObject<{
5
+ open: boolean;
6
+ current: boolean;
7
+ }>>;
8
+ getItem: (path: string[]) => ReactiveObject<{
9
+ open: boolean;
10
+ current: boolean;
11
+ }>;
12
+ setItem: (path: string[], key: "open" | "current", next: boolean) => void;
13
+ isOpen: (path: string[], item: import("../types").NavTreeItemGraphNode) => boolean;
14
+ isCurrent: (path: string[], item: import("../types").NavTreeItemGraphNode) => boolean;
15
+ }>;
16
+ export default _default;
17
+ //# sourceMappingURL=state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/state.ts"],"names":[],"mappings":"AAMA,OAAO,EAA6B,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,EAAE,KAAK,cAAc,EAAU,MAAM,mBAAmB,CAAC;kCA4BvC,cAAc;;;;;;;;;;;;;AAAvC,wBA6DE"}
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
1
  export declare const CommandsDialogContent: ({ selected: initial }: {
3
2
  selected?: string;
4
- }) => React.JSX.Element;
3
+ }) => import("react/jsx-runtime").JSX.Element;
5
4
  //# sourceMappingURL=CommandsDialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CommandsDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/CommandsDialog.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAcjD,eAAO,MAAM,qBAAqB,0BAA2B;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,sBA6FjF,CAAC"}
1
+ {"version":3,"file":"CommandsDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/CommandsDialog.tsx"],"names":[],"mappings":"AAiBA,eAAO,MAAM,qBAAqB,0BAA2B;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,4CA6FjF,CAAC"}
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- export declare const CommandsTrigger: () => React.JSX.Element;
1
+ export declare const CommandsTrigger: () => import("react/jsx-runtime").JSX.Element;
3
2
  //# sourceMappingURL=CommandsTrigger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CommandsTrigger.d.ts","sourceRoot":"","sources":["../../../../src/components/CommandsTrigger.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,eAAO,MAAM,eAAe,yBAoB3B,CAAC"}
1
+ {"version":3,"file":"CommandsTrigger.d.ts","sourceRoot":"","sources":["../../../../src/components/CommandsTrigger.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,eAAe,+CAsB3B,CAAC"}
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { type Size } from '@dxos/react-ui';
3
2
  export type HaloButtonProps = {
4
3
  size?: Size;
@@ -8,5 +7,5 @@ export type HaloButtonProps = {
8
7
  internal?: boolean;
9
8
  onClick?: () => void;
10
9
  };
11
- export declare const HaloButton: (props: HaloButtonProps) => React.JSX.Element;
10
+ export declare const HaloButton: (props: HaloButtonProps) => import("react/jsx-runtime").JSX.Element;
12
11
  //# sourceMappingURL=HaloButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HaloButton.d.ts","sourceRoot":"","sources":["../../../../src/components/HaloButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAU,KAAK,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAMnD,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,UAAU,UAAW,eAAe,sBAkBhD,CAAC"}
1
+ {"version":3,"file":"HaloButton.d.ts","sourceRoot":"","sources":["../../../../src/components/HaloButton.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAU,KAAK,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAMnD,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,UAAU,UAAW,eAAe,4CAkBhD,CAAC"}
@@ -1,8 +1,7 @@
1
1
  import '@dxos-theme';
2
2
  import { type Meta } from '@storybook/react';
3
- import React from 'react';
4
3
  import { HaloButton } from './HaloButton';
5
- export declare const Default: (props: any) => React.JSX.Element;
4
+ export declare const Default: (props: any) => import("react/jsx-runtime").JSX.Element;
6
5
  declare const meta: Meta<typeof HaloButton>;
7
6
  export default meta;
8
7
  //# sourceMappingURL=HaloButton.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HaloButton.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/HaloButton.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,eAAO,MAAM,OAAO,UAAW,GAAG,sBAEjC,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAGjC,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"HaloButton.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/HaloButton.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAG7C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,eAAO,MAAM,OAAO,UAAW,GAAG,4CAEjC,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAGjC,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { type Node } from '@dxos/app-graph';
2
+ export declare const L0Menu: ({ topLevelItems, pinnedItems, parent, path, }: {
3
+ topLevelItems: Node<any>[];
4
+ pinnedItems: Node<any>[];
5
+ parent?: Node<any>;
6
+ path: string[];
7
+ }) => import("react/jsx-runtime").JSX.Element;
8
+ //# sourceMappingURL=L0Menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"L0Menu.d.ts","sourceRoot":"","sources":["../../../../src/components/L0Menu.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAuQ5C,eAAO,MAAM,MAAM,kDAKhB;IACD,aAAa,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IAC3B,WAAW,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IACzB,MAAM,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IACnB,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB,4CA0CA,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { type Node } from '@dxos/app-graph';
2
+ export type L1PanelProps = {
3
+ item: Node<any>;
4
+ path: string[];
5
+ currentItemId: string;
6
+ onBack?: () => void;
7
+ };
8
+ export declare const L1Panels: ({ topLevelItems, path, currentItemId, onBack, }: Pick<L1PanelProps, "onBack"> & {
9
+ topLevelItems: Node<any>[];
10
+ path: string[];
11
+ currentItemId: string;
12
+ }) => import("react/jsx-runtime").JSX.Element;
13
+ //# sourceMappingURL=L1Panels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"L1Panels.d.ts","sourceRoot":"","sources":["../../../../src/components/L1Panels.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAY5C,MAAM,MAAM,YAAY,GAAG;IAAE,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAC;IAAC,aAAa,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC;AA0E3G,eAAO,MAAM,QAAQ,oDAKlB,IAAI,CAAC,YAAY,EAAE,QAAQ,CAAC,GAAG;IAChC,aAAa,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IAC3B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;CACvB,4CAgBA,CAAC"}
@@ -1,24 +1,4 @@
1
- import React, { type FC } from 'react';
2
- import { type Node } from '@dxos/app-graph';
3
- import { type TreeProps } from '@dxos/react-ui-list';
4
- import { type MaybePromise } from '@dxos/util';
5
- import { type FlattenedActions, type NavTreeItemGraphNode } from '../types';
1
+ import { type NavTreeProps } from './types';
6
2
  export declare const NAV_TREE_ITEM = "NavTreeItem";
7
- export type NavTreeProps = Omit<TreeProps<NavTreeItemGraphNode>, 'draggable' | 'gridTemplateColumns' | 'renderColumns'> & Pick<NavTreeColumnsProps, 'getActions' | 'loadDescendents' | 'renderItemEnd' | 'popoverAnchorId'>;
8
- export declare const NavTree: ({ getActions, loadDescendents, renderItemEnd, popoverAnchorId, ...props }: NavTreeProps) => React.JSX.Element;
9
- type NavTreeColumnsProps = {
10
- path: string[];
11
- node: Node;
12
- getActions: (node: Node) => FlattenedActions;
13
- open: boolean;
14
- menuOpen: boolean;
15
- setMenuOpen: (open: boolean) => void;
16
- loadDescendents?: (node: Node) => MaybePromise<void>;
17
- renderItemEnd?: FC<{
18
- node: Node;
19
- open: boolean;
20
- }>;
21
- popoverAnchorId?: string;
22
- };
23
- export {};
3
+ export declare const NavTree: ({ id, root }: NavTreeProps) => import("react/jsx-runtime").JSX.Element;
24
4
  //# sourceMappingURL=NavTree.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavTree.d.ts","sourceRoot":"","sources":["../../../../src/components/NavTree.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAoC,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEzE,OAAO,EAAY,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAI/C,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAE5E,eAAO,MAAM,aAAa,gBAAgB,CAAC;AAE3C,MAAM,MAAM,YAAY,GAAG,IAAI,CAC7B,SAAS,CAAC,oBAAoB,CAAC,EAC/B,WAAW,GAAG,qBAAqB,GAAG,eAAe,CACtD,GACC,IAAI,CAAC,mBAAmB,EAAE,YAAY,GAAG,iBAAiB,GAAG,eAAe,GAAG,iBAAiB,CAAC,CAAC;AAEpG,eAAO,MAAM,OAAO,8EAA+E,YAAY,sBA4B9G,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,gBAAgB,CAAC;IAC7C,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,YAAY,CAAC,IAAI,CAAC,CAAC;IACrD,aAAa,CAAC,EAAE,EAAE,CAAC;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,IAAI,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAClD,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC"}
1
+ {"version":3,"file":"NavTree.d.ts","sourceRoot":"","sources":["../../../../src/components/NavTree.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAG5C,eAAO,MAAM,aAAa,gBAAgB,CAAC;AAE3C,eAAO,MAAM,OAAO,iBAAkB,YAAY,4CAuBjD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import '@dxos-theme';
2
2
  import { type Meta } from '@storybook/react';
3
- import { NavTree } from './NavTree';
4
- declare const meta: Meta<typeof NavTree>;
3
+ import { StorybookNavTree } from '../stories/StorybookNavTree';
4
+ declare const meta: Meta<typeof StorybookNavTree>;
5
5
  export default meta;
6
6
  export declare const Default: {};
7
7
  //# sourceMappingURL=NavTree.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavTree.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/NavTree.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAIrB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAU7C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQpC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,OAAO,CA4E9B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,IAAK,CAAC"}
1
+ {"version":3,"file":"NavTree.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/NavTree.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAIrB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAU7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAQ/D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,gBAAgB,CA4EvC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,IAAK,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
- import { type NavTreeProps } from './NavTree';
2
+ import { type NavTreeContextValue } from './types';
3
3
  export declare const NODE_TYPE = "dxos/app-graph/node";
4
4
  export type NavTreeContainerProps = {
5
5
  popoverAnchorId?: string;
6
- } & Pick<NavTreeProps, 'isOpen' | 'isCurrent' | 'onOpenChange'>;
7
- export declare const NavTreeContainer: React.MemoExoticComponent<({ isCurrent, popoverAnchorId, ...props }: NavTreeContainerProps) => React.JSX.Element>;
6
+ topbar?: boolean;
7
+ } & Pick<NavTreeContextValue, 'tab'>;
8
+ export declare const NavTreeContainer: React.MemoExoticComponent<({ tab, popoverAnchorId, topbar }: NavTreeContainerProps) => import("react/jsx-runtime").JSX.Element>;
8
9
  //# sourceMappingURL=NavTreeContainer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavTreeContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/NavTreeContainer.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAW5D,OAAO,EAA0B,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AActE,eAAO,MAAM,SAAS,wBAAwB,CAAC;AAM/C,MAAM,MAAM,qBAAqB,GAAG;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,GAAG,IAAI,CAAC,YAAY,EAAE,QAAQ,GAAG,WAAW,GAAG,cAAc,CAAC,CAAC;AAEhE,eAAO,MAAM,gBAAgB,uEAAmD,qBAAqB,uBA6LnG,CAAC"}
1
+ {"version":3,"file":"NavTreeContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/NavTreeContainer.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAgD,MAAM,OAAO,CAAC;AAoBrE,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAcnD,eAAO,MAAM,SAAS,wBAAwB,CAAC;AAM/C,MAAM,MAAM,qBAAqB,GAAG;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,GAAG,IAAI,CAAC,mBAAmB,EAAE,KAAK,CAAC,CAAC;AAErC,eAAO,MAAM,gBAAgB,+DAA2C,qBAAqB,6CAwP3F,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { type NavTreeContextValue } from './types';
2
+ export declare const NavTreeContext: import("react").Context<NavTreeContextValue | null>;
3
+ export declare const useNavTreeContext: () => NavTreeContextValue;
4
+ //# sourceMappingURL=NavTreeContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavTreeContext.d.ts","sourceRoot":"","sources":["../../../../src/components/NavTreeContext.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,eAAO,MAAM,cAAc,qDAAkD,CAAC;AAE9E,eAAO,MAAM,iBAAiB,2BAAmF,CAAC"}
@@ -1,4 +1,4 @@
1
- import React, { type MutableRefObject, type PropsWithChildren } from 'react';
1
+ import { type MutableRefObject } from 'react';
2
2
  import { type Action, type Node } from '@dxos/app-graph';
3
3
  import { type ActionProperties } from '../types';
4
4
  export type NavTreeItemActionMenuProps = ActionProperties & {
@@ -7,17 +7,13 @@ export type NavTreeItemActionMenuProps = ActionProperties & {
7
7
  monolithic?: boolean;
8
8
  menuActions?: Action[];
9
9
  suppressNextTooltip?: MutableRefObject<boolean>;
10
- menuOpen?: boolean;
11
- defaultMenuOpen?: boolean;
12
- onChangeMenuOpen?: (nextOpen: boolean) => void;
13
10
  onAction?: (action: Action) => void;
14
11
  };
15
- export declare const NavTreeItemActionDropdownMenu: ({ label, icon, testId, defaultMenuOpen, menuActions, menuOpen, suppressNextTooltip, onChangeMenuOpen, onAction, }: NavTreeItemActionMenuProps) => React.JSX.Element;
16
- export declare const NavTreeItemActionContextMenu: (props: PropsWithChildren<Pick<NavTreeItemActionMenuProps, "menuActions" | "onAction">>) => React.JSX.Element;
17
- export declare const NavTreeItemActionSearchList: ({ menuActions, icon, label, testId, suppressNextTooltip, onAction, }: Pick<NavTreeItemActionMenuProps, "icon" | "menuActions" | "testId" | "label" | "onAction" | "suppressNextTooltip">) => React.JSX.Element;
18
- export declare const NavTreeItemMonolithicAction: ({ parent, properties: { disabled, caller, testId, label, icon }, data: invoke, }: Action & {
12
+ export declare const NavTreeItemActionDropdownMenu: ({ label, icon, testId, menuActions, onAction, }: NavTreeItemActionMenuProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const NavTreeItemMonolithicAction: ({ parent, properties: { disabled, caller, testId, icon, variant, iconOnly }, data: invoke, baseLabel, }: Action & {
19
14
  parent: Node;
20
15
  onAction?: (action: Action) => void;
21
- }) => React.JSX.Element;
22
- export declare const NavTreeItemAction: ({ monolithic, menuActions, parent: node, ...props }: NavTreeItemActionMenuProps) => React.JSX.Element;
16
+ baseLabel: string;
17
+ }) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const NavTreeItemAction: ({ monolithic, menuActions, parent: node, ...props }: NavTreeItemActionMenuProps) => import("react/jsx-runtime").JSX.Element;
23
19
  //# sourceMappingURL=NavTreeItemAction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavTreeItemAction.d.ts","sourceRoot":"","sources":["../../../../src/components/NavTreeItemAction.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,gBAAgB,EAAE,KAAK,iBAAiB,EAAoB,MAAM,OAAO,CAAC;AAE/F,OAAO,EAAE,KAAK,MAAM,EAAmB,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAiB1E,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,GAAG;IAC1D,MAAM,EAAE,IAAI,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,mBAAmB,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAChD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC,CAAC;AAUF,eAAO,MAAM,6BAA6B,sHAUvC,0BAA0B,sBAuE5B,CAAC;AAEF,eAAO,MAAM,4BAA4B,UAChC,iBAAiB,CAAC,IAAI,CAAC,0BAA0B,EAAE,aAAa,GAAG,UAAU,CAAC,CAAC,sBAGvF,CAAC;AA6CF,eAAO,MAAM,2BAA2B,yEAOrC,IAAI,CACL,0BAA0B,EAC1B,MAAM,GAAG,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,GAAG,qBAAqB,CACjF,sBAmGA,CAAC;AAEF,eAAO,MAAM,2BAA2B,qFAIrC,MAAM,GAAG;IAAE,MAAM,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,sBAuBhE,CAAC;AAEF,eAAO,MAAM,iBAAiB,wDAAyD,0BAA0B,sBAgDhH,CAAC"}
1
+ {"version":3,"file":"NavTreeItemAction.d.ts","sourceRoot":"","sources":["../../../../src/components/NavTreeItemAction.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,gBAAgB,EAAU,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAMzD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,GAAG;IAC1D,MAAM,EAAE,IAAI,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,mBAAmB,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAChD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC,CAAC;AASF,eAAO,MAAM,6BAA6B,oDAMvC,0BAA0B,4CAqB5B,CAAC;AAEF,eAAO,MAAM,2BAA2B,4GAKrC,MAAM,GAAG;IAAE,MAAM,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,4CAyBnF,CAAC;AAEF,eAAO,MAAM,iBAAiB,wDAAyD,0BAA0B,4CAiBhH,CAAC"}
@@ -2,8 +2,8 @@ import '@dxos-theme';
2
2
  import { type NavTreeItemActionMenuProps } from './NavTreeItemAction';
3
3
  declare const _default: {
4
4
  title: string;
5
- component: ({ monolithic, menuActions, parent: node, ...props }: NavTreeItemActionMenuProps) => import("react").JSX.Element;
6
- decorators: import("@storybook/react/*").Decorator[];
5
+ component: ({ monolithic, menuActions, parent: node, ...props }: NavTreeItemActionMenuProps) => import("react/jsx-runtime").JSX.Element;
6
+ decorators: import("@storybook/react").Decorator[];
7
7
  args: {
8
8
  icon: string;
9
9
  parent: {
@@ -38,9 +38,4 @@ declare const _default: {
38
38
  };
39
39
  export default _default;
40
40
  export declare const Default: {};
41
- export declare const SearchList: {
42
- args: {
43
- menuType: string;
44
- };
45
- };
46
41
  //# sourceMappingURL=NavTreeItemAction.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavTreeItemAction.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/NavTreeItemAction.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAMrB,OAAO,EAAqB,KAAK,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BzF,wBAaE;AAEF,eAAO,MAAM,OAAO,IAAK,CAAC;AAE1B,eAAO,MAAM,UAAU;;;;CAAuC,CAAC"}
1
+ {"version":3,"file":"NavTreeItemAction.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/NavTreeItemAction.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAMrB,OAAO,EAAqB,KAAK,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BzF,wBAaE;AAEF,eAAO,MAAM,OAAO,IAAK,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { NavTreeItemColumnsProps } from './types';
3
+ export declare const NavTreeItemColumns: React.MemoExoticComponent<({ path, item, open }: NavTreeItemColumnsProps) => import("react/jsx-runtime").JSX.Element>;
4
+ //# sourceMappingURL=NavTreeItemColumns.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavTreeItemColumns.d.ts","sourceRoot":"","sources":["../../../../src/components/NavTreeItemColumns.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAQ9C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAIvD,eAAO,MAAM,kBAAkB,mDAA+B,uBAAuB,6CAsDnF,CAAC"}
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- export declare const NotchStart: () => React.JSX.Element;
1
+ export declare const NotchStart: () => import("react/jsx-runtime").JSX.Element;
3
2
  //# sourceMappingURL=NotchStart.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotchStart.d.ts","sourceRoot":"","sources":["../../../../src/components/NotchStart.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,eAAO,MAAM,UAAU,yBActB,CAAC"}
1
+ {"version":3,"file":"NotchStart.d.ts","sourceRoot":"","sources":["../../../../src/components/NotchStart.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,UAAU,+CAetB,CAAC"}
@@ -1,6 +1,9 @@
1
1
  export * from './CommandsDialog';
2
+ export * from './CommandsTrigger';
2
3
  export * from './NavTree';
3
4
  export * from './NavTreeContainer';
5
+ export * from './NavTreeContext';
4
6
  export * from './NavTreeDocumentTitle';
5
7
  export * from './NotchStart';
8
+ export * from './types';
6
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
@@ -0,0 +1,26 @@
1
+ import type { FC } from 'react';
2
+ import type { Node } from '@dxos/app-graph';
3
+ import type { TreeProps } from '@dxos/react-ui-list';
4
+ import type { MaybePromise } from '@dxos/util';
5
+ import { type L1PanelProps } from './L1Panels';
6
+ import type { FlattenedActions, NavTreeItemGraphNode } from '../types';
7
+ export type NavTreeItemColumnsProps = {
8
+ path: string[];
9
+ item: Node;
10
+ open: boolean;
11
+ };
12
+ export type NavTreeProps = Pick<TreeProps<NavTreeItemGraphNode>, 'id' | 'root'>;
13
+ export type NavTreeContextValue = Pick<TreeProps<NavTreeItemGraphNode>, 'getProps' | 'isCurrent' | 'isOpen' | 'onOpenChange' | 'canDrop' | 'onSelect'> & Pick<L1PanelProps, 'onBack'> & {
14
+ tab: string;
15
+ onTabChange?: (node: NavTreeItemGraphNode) => void;
16
+ getItems: (node?: NavTreeItemGraphNode, disposition?: string) => NavTreeItemGraphNode[];
17
+ getActions: (node: Node) => FlattenedActions;
18
+ loadDescendents?: (node: Node) => MaybePromise<void>;
19
+ renderItemEnd?: FC<{
20
+ node: Node;
21
+ open: boolean;
22
+ }>;
23
+ popoverAnchorId?: string;
24
+ topbar?: boolean;
25
+ };
26
+ //# sourceMappingURL=types.d.ts.map