@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.
Files changed (244) hide show
  1. package/dist/lib/browser/CommandsDialogContent-U726OBZ2.mjs +117 -0
  2. package/dist/lib/browser/CommandsDialogContent-U726OBZ2.mjs.map +7 -0
  3. package/dist/lib/browser/CommandsTrigger-LCFJL36T.mjs +32 -0
  4. package/dist/lib/browser/CommandsTrigger-LCFJL36T.mjs.map +7 -0
  5. package/dist/lib/browser/NavTreeContainer-35LP3XZM.mjs +12 -0
  6. package/dist/lib/browser/NavTreeContainer-35LP3XZM.mjs.map +7 -0
  7. package/dist/lib/browser/NavTreeDocumentTitle-L6NLLWLD.mjs +26 -0
  8. package/dist/lib/browser/NavTreeDocumentTitle-L6NLLWLD.mjs.map +7 -0
  9. package/dist/lib/browser/app-graph-builder-Z43OTNI2.mjs +44 -0
  10. package/dist/lib/browser/app-graph-builder-Z43OTNI2.mjs.map +7 -0
  11. package/dist/lib/browser/{chunk-E6MZBCU5.mjs → chunk-A4VDCIJC.mjs} +3 -3
  12. package/dist/lib/browser/chunk-A4VDCIJC.mjs.map +7 -0
  13. package/dist/lib/browser/chunk-KF26WA4O.mjs +23 -0
  14. package/dist/lib/browser/chunk-KF26WA4O.mjs.map +7 -0
  15. package/dist/lib/browser/chunk-MTTE5C5L.mjs +1452 -0
  16. package/dist/lib/browser/chunk-MTTE5C5L.mjs.map +7 -0
  17. package/dist/lib/browser/chunk-PD6TZ6TP.mjs +14 -0
  18. package/dist/lib/browser/chunk-PD6TZ6TP.mjs.map +7 -0
  19. package/dist/lib/browser/expose-LKZ6QBBD.mjs +43 -0
  20. package/dist/lib/browser/expose-LKZ6QBBD.mjs.map +7 -0
  21. package/dist/lib/browser/index.mjs +86 -91
  22. package/dist/lib/browser/index.mjs.map +4 -4
  23. package/dist/lib/browser/{keyboard-YYTYJW4M.mjs → keyboard-HYGFQO7T.mjs} +25 -19
  24. package/dist/lib/browser/keyboard-HYGFQO7T.mjs.map +7 -0
  25. package/dist/lib/browser/meta.json +1 -1
  26. package/dist/lib/browser/operation-handler-VHOUWGCZ.mjs +16 -0
  27. package/dist/lib/browser/operation-handler-VHOUWGCZ.mjs.map +7 -0
  28. package/dist/lib/browser/react-surface-XWFN75ZB.mjs +59 -0
  29. package/dist/lib/browser/react-surface-XWFN75ZB.mjs.map +7 -0
  30. package/dist/lib/browser/state-CWMNNF7K.mjs +131 -0
  31. package/dist/lib/browser/state-CWMNNF7K.mjs.map +7 -0
  32. package/dist/types/src/NavTreePlugin.d.ts +2 -1
  33. package/dist/types/src/NavTreePlugin.d.ts.map +1 -1
  34. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
  35. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
  36. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
  37. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
  38. package/dist/types/src/capabilities/index.d.ts +5 -108
  39. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  40. package/dist/types/src/capabilities/keyboard/index.d.ts +3 -0
  41. package/dist/types/src/capabilities/keyboard/index.d.ts.map +1 -0
  42. package/dist/types/src/capabilities/keyboard/keyboard.d.ts +5 -0
  43. package/dist/types/src/capabilities/keyboard/keyboard.d.ts.map +1 -0
  44. package/dist/types/src/capabilities/operation-handler/index.d.ts +4 -0
  45. package/dist/types/src/capabilities/operation-handler/index.d.ts.map +1 -0
  46. package/dist/types/src/capabilities/operation-handler/operation-handler.d.ts +6 -0
  47. package/dist/types/src/capabilities/operation-handler/operation-handler.d.ts.map +1 -0
  48. package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
  49. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
  50. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
  51. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
  52. package/dist/types/src/capabilities/state/index.d.ts +3 -0
  53. package/dist/types/src/capabilities/state/index.d.ts.map +1 -0
  54. package/dist/types/src/capabilities/state/state.d.ts +6 -0
  55. package/dist/types/src/capabilities/state/state.d.ts.map +1 -0
  56. package/dist/types/src/components/NavTree/NavTree.d.ts +11 -4
  57. package/dist/types/src/components/NavTree/NavTree.d.ts.map +1 -1
  58. package/dist/types/src/components/NavTree/NavTree.stories.d.ts +2 -2
  59. package/dist/types/src/components/NavTree/NavTree.stories.d.ts.map +1 -1
  60. package/dist/types/src/components/{NavTreeContext.d.ts → NavTreeContext/NavTreeContext.d.ts} +1 -1
  61. package/dist/types/src/components/NavTreeContext/NavTreeContext.d.ts.map +1 -0
  62. package/dist/types/src/components/NavTreeContext/index.d.ts +2 -0
  63. package/dist/types/src/components/NavTreeContext/index.d.ts.map +1 -0
  64. package/dist/types/src/components/NavTreeItem/NavTreeItemAction.d.ts +16 -8
  65. package/dist/types/src/components/NavTreeItem/NavTreeItemAction.d.ts.map +1 -1
  66. package/dist/types/src/components/NavTreeItem/NavTreeItemAction.stories.d.ts +3 -2
  67. package/dist/types/src/components/NavTreeItem/NavTreeItemAction.stories.d.ts.map +1 -1
  68. package/dist/types/src/components/NavTreeItem/NavTreeItemColumns.d.ts.map +1 -1
  69. package/dist/types/src/components/Sidebar/L0Menu.d.ts +8 -5
  70. package/dist/types/src/components/Sidebar/L0Menu.d.ts.map +1 -1
  71. package/dist/types/src/components/Sidebar/L1Panel.d.ts +4 -7
  72. package/dist/types/src/components/Sidebar/L1Panel.d.ts.map +1 -1
  73. package/dist/types/src/components/Sidebar/L1Tabs.d.ts +5 -4
  74. package/dist/types/src/components/Sidebar/L1Tabs.d.ts.map +1 -1
  75. package/dist/types/src/components/UserAccountAvatar/UserAccountAvatar.stories.d.ts.map +1 -1
  76. package/dist/types/src/components/index.d.ts +0 -3
  77. package/dist/types/src/components/index.d.ts.map +1 -1
  78. package/dist/types/src/components/types.d.ts +8 -16
  79. package/dist/types/src/components/types.d.ts.map +1 -1
  80. package/dist/types/src/containers/CommandsDialogContent/CommandsDialogContent.d.ts +6 -0
  81. package/dist/types/src/containers/CommandsDialogContent/CommandsDialogContent.d.ts.map +1 -0
  82. package/dist/types/src/containers/CommandsDialogContent/CommandsDialogContent.stories.d.ts +30 -0
  83. package/dist/types/src/containers/CommandsDialogContent/CommandsDialogContent.stories.d.ts.map +1 -0
  84. package/dist/types/src/containers/CommandsDialogContent/index.d.ts +3 -0
  85. package/dist/types/src/containers/CommandsDialogContent/index.d.ts.map +1 -0
  86. package/dist/types/src/containers/CommandsTrigger/CommandsTrigger.d.ts.map +1 -0
  87. package/dist/types/src/containers/CommandsTrigger/index.d.ts +3 -0
  88. package/dist/types/src/containers/CommandsTrigger/index.d.ts.map +1 -0
  89. package/dist/types/src/containers/NavTreeContainer/NavTreeContainer.d.ts +9 -0
  90. package/dist/types/src/containers/NavTreeContainer/NavTreeContainer.d.ts.map +1 -0
  91. package/dist/types/src/containers/NavTreeContainer/index.d.ts +3 -0
  92. package/dist/types/src/containers/NavTreeContainer/index.d.ts.map +1 -0
  93. package/dist/types/src/{components → containers/NavTreeDocumentTitle}/NavTreeDocumentTitle.d.ts +1 -1
  94. package/dist/types/src/containers/NavTreeDocumentTitle/NavTreeDocumentTitle.d.ts.map +1 -0
  95. package/dist/types/src/containers/NavTreeDocumentTitle/index.d.ts +3 -0
  96. package/dist/types/src/containers/NavTreeDocumentTitle/index.d.ts.map +1 -0
  97. package/dist/types/src/containers/index.d.ts +7 -0
  98. package/dist/types/src/containers/index.d.ts.map +1 -0
  99. package/dist/types/src/experimental/Tree.stories.d.ts +18 -4
  100. package/dist/types/src/experimental/Tree.stories.d.ts.map +1 -1
  101. package/dist/types/src/hooks/index.d.ts +5 -0
  102. package/dist/types/src/hooks/index.d.ts.map +1 -0
  103. package/dist/types/src/hooks/useActions.d.ts +5 -0
  104. package/dist/types/src/hooks/useActions.d.ts.map +1 -0
  105. package/dist/types/src/hooks/useLoadDescendents.d.ts +6 -0
  106. package/dist/types/src/hooks/useLoadDescendents.d.ts.map +1 -0
  107. package/dist/types/src/hooks/useNavTreeModel.d.ts +7 -0
  108. package/dist/types/src/hooks/useNavTreeModel.d.ts.map +1 -0
  109. package/dist/types/src/hooks/useNavTreeState.d.ts +22 -0
  110. package/dist/types/src/hooks/useNavTreeState.d.ts.map +1 -0
  111. package/dist/types/src/index.d.ts +1 -2
  112. package/dist/types/src/index.d.ts.map +1 -1
  113. package/dist/types/src/meta.d.ts +2 -2
  114. package/dist/types/src/meta.d.ts.map +1 -1
  115. package/dist/types/src/operations/expose.d.ts +5 -0
  116. package/dist/types/src/operations/expose.d.ts.map +1 -0
  117. package/dist/types/src/operations/index.d.ts +3 -0
  118. package/dist/types/src/operations/index.d.ts.map +1 -0
  119. package/dist/types/src/testing/app-graph-builder.d.ts +2 -3
  120. package/dist/types/src/testing/app-graph-builder.d.ts.map +1 -1
  121. package/dist/types/src/testing/generator.d.ts +5 -6
  122. package/dist/types/src/testing/generator.d.ts.map +1 -1
  123. package/dist/types/src/testing/update-state.d.ts +2 -2
  124. package/dist/types/src/testing/update-state.d.ts.map +1 -1
  125. package/dist/types/src/types/capabilities.d.ts +16 -0
  126. package/dist/types/src/types/capabilities.d.ts.map +1 -0
  127. package/dist/types/src/types/events.d.ts +5 -0
  128. package/dist/types/src/types/events.d.ts.map +1 -0
  129. package/dist/types/src/types/index.d.ts +4 -0
  130. package/dist/types/src/types/index.d.ts.map +1 -0
  131. package/dist/types/src/{types.d.ts → types/schema.d.ts} +6 -6
  132. package/dist/types/src/types/schema.d.ts.map +1 -0
  133. package/dist/types/src/util.d.ts +11 -7
  134. package/dist/types/src/util.d.ts.map +1 -1
  135. package/dist/types/tsconfig.tsbuildinfo +1 -1
  136. package/package.json +55 -53
  137. package/src/NavTreePlugin.tsx +54 -73
  138. package/src/capabilities/app-graph-builder/app-graph-builder.ts +42 -0
  139. package/src/capabilities/app-graph-builder/index.ts +7 -0
  140. package/src/capabilities/index.ts +5 -9
  141. package/src/capabilities/keyboard/index.ts +7 -0
  142. package/src/capabilities/keyboard/keyboard.ts +66 -0
  143. package/src/capabilities/operation-handler/index.ts +11 -0
  144. package/src/capabilities/operation-handler/operation-handler.ts +16 -0
  145. package/src/capabilities/react-surface/index.ts +7 -0
  146. package/src/capabilities/react-surface/react-surface.tsx +53 -0
  147. package/src/capabilities/state/index.ts +7 -0
  148. package/src/capabilities/state/state.ts +149 -0
  149. package/src/components/NavTree/NavTree.stories.tsx +44 -51
  150. package/src/components/NavTree/NavTree.tsx +63 -32
  151. package/src/components/{NavTreeContext.tsx → NavTreeContext/NavTreeContext.tsx} +1 -1
  152. package/src/components/NavTreeContext/index.ts +5 -0
  153. package/src/components/NavTreeItem/NavTreeItemAction.stories.tsx +17 -9
  154. package/src/components/NavTreeItem/NavTreeItemAction.tsx +65 -42
  155. package/src/components/NavTreeItem/NavTreeItemColumns.tsx +42 -16
  156. package/src/components/Sidebar/L0Menu.tsx +141 -177
  157. package/src/components/Sidebar/L1Panel.tsx +251 -93
  158. package/src/components/Sidebar/L1Tabs.tsx +18 -33
  159. package/src/components/UserAccountAvatar/UserAccountAvatar.stories.tsx +2 -3
  160. package/src/components/UserAccountAvatar/UserAccountAvatar.tsx +1 -1
  161. package/src/components/index.ts +1 -3
  162. package/src/components/types.ts +14 -19
  163. package/src/containers/CommandsDialogContent/CommandsDialogContent.stories.tsx +46 -0
  164. package/src/containers/CommandsDialogContent/CommandsDialogContent.tsx +131 -0
  165. package/src/containers/CommandsDialogContent/index.ts +7 -0
  166. package/src/containers/CommandsTrigger/CommandsTrigger.tsx +28 -0
  167. package/src/containers/CommandsTrigger/index.ts +7 -0
  168. package/src/containers/NavTreeContainer/NavTreeContainer.tsx +271 -0
  169. package/src/containers/NavTreeContainer/index.ts +6 -0
  170. package/src/{components → containers/NavTreeDocumentTitle}/NavTreeDocumentTitle.tsx +4 -3
  171. package/src/containers/NavTreeDocumentTitle/index.ts +7 -0
  172. package/src/containers/index.ts +12 -0
  173. package/src/experimental/Tree.stories.tsx +55 -58
  174. package/src/experimental/Tree.tsx +4 -4
  175. package/src/hooks/index.ts +8 -0
  176. package/src/hooks/useActions.ts +34 -0
  177. package/src/hooks/useLoadDescendents.ts +23 -0
  178. package/src/hooks/useNavTreeModel.ts +118 -0
  179. package/src/hooks/useNavTreeState.ts +42 -0
  180. package/src/index.ts +1 -2
  181. package/src/meta.ts +4 -4
  182. package/src/operations/expose.ts +42 -0
  183. package/src/operations/index.ts +7 -0
  184. package/src/testing/app-graph-builder.ts +158 -234
  185. package/src/testing/generator.ts +19 -17
  186. package/src/testing/update-state.ts +6 -6
  187. package/src/types/capabilities.ts +21 -0
  188. package/src/types/events.ts +12 -0
  189. package/src/types/index.ts +7 -0
  190. package/src/{types.ts → types/schema.ts} +5 -5
  191. package/src/util.ts +27 -16
  192. package/dist/lib/browser/app-graph-builder-OHSCN3GX.mjs +0 -46
  193. package/dist/lib/browser/app-graph-builder-OHSCN3GX.mjs.map +0 -7
  194. package/dist/lib/browser/chunk-5VLWX4PK.mjs +0 -15
  195. package/dist/lib/browser/chunk-5VLWX4PK.mjs.map +0 -7
  196. package/dist/lib/browser/chunk-7D2MPHXV.mjs +0 -1483
  197. package/dist/lib/browser/chunk-7D2MPHXV.mjs.map +0 -7
  198. package/dist/lib/browser/chunk-E6MZBCU5.mjs.map +0 -7
  199. package/dist/lib/browser/intent-resolver-YUVXVPHG.mjs +0 -47
  200. package/dist/lib/browser/intent-resolver-YUVXVPHG.mjs.map +0 -7
  201. package/dist/lib/browser/keyboard-YYTYJW4M.mjs.map +0 -7
  202. package/dist/lib/browser/react-surface-J7MWWAGD.mjs +0 -51
  203. package/dist/lib/browser/react-surface-J7MWWAGD.mjs.map +0 -7
  204. package/dist/lib/browser/state-EUSVT6BI.mjs +0 -117
  205. package/dist/lib/browser/state-EUSVT6BI.mjs.map +0 -7
  206. package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
  207. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
  208. package/dist/types/src/capabilities/capabilities.d.ts +0 -21
  209. package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
  210. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  211. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  212. package/dist/types/src/capabilities/keyboard.d.ts +0 -4
  213. package/dist/types/src/capabilities/keyboard.d.ts.map +0 -1
  214. package/dist/types/src/capabilities/react-surface.d.ts +0 -4
  215. package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
  216. package/dist/types/src/capabilities/state.d.ts +0 -20
  217. package/dist/types/src/capabilities/state.d.ts.map +0 -1
  218. package/dist/types/src/components/CommandsDialog/CommandsDialog.d.ts +0 -5
  219. package/dist/types/src/components/CommandsDialog/CommandsDialog.d.ts.map +0 -1
  220. package/dist/types/src/components/CommandsDialog/CommandsTrigger.d.ts.map +0 -1
  221. package/dist/types/src/components/CommandsDialog/index.d.ts +0 -3
  222. package/dist/types/src/components/CommandsDialog/index.d.ts.map +0 -1
  223. package/dist/types/src/components/NavTreeContainer.d.ts +0 -9
  224. package/dist/types/src/components/NavTreeContainer.d.ts.map +0 -1
  225. package/dist/types/src/components/NavTreeContext.d.ts.map +0 -1
  226. package/dist/types/src/components/NavTreeDocumentTitle.d.ts.map +0 -1
  227. package/dist/types/src/events.d.ts +0 -4
  228. package/dist/types/src/events.d.ts.map +0 -1
  229. package/dist/types/src/hooks.d.ts +0 -3
  230. package/dist/types/src/hooks.d.ts.map +0 -1
  231. package/dist/types/src/types.d.ts.map +0 -1
  232. package/src/capabilities/app-graph-builder.ts +0 -53
  233. package/src/capabilities/capabilities.ts +0 -20
  234. package/src/capabilities/intent-resolver.ts +0 -37
  235. package/src/capabilities/keyboard.ts +0 -59
  236. package/src/capabilities/react-surface.tsx +0 -45
  237. package/src/capabilities/state.ts +0 -105
  238. package/src/components/CommandsDialog/CommandsDialog.tsx +0 -126
  239. package/src/components/CommandsDialog/CommandsTrigger.tsx +0 -36
  240. package/src/components/CommandsDialog/index.ts +0 -6
  241. package/src/components/NavTreeContainer.tsx +0 -369
  242. package/src/events.ts +0 -11
  243. package/src/hooks.ts +0 -21
  244. /package/dist/types/src/{components/CommandsDialog → containers/CommandsTrigger}/CommandsTrigger.d.ts +0 -0
@@ -1,12 +1,13 @@
1
1
  import React from 'react';
2
2
  import { type Node } from '@dxos/app-graph';
3
3
  import { type L1PanelProps } from './L1Panel';
4
- export type L1TabsProps = Pick<L1PanelProps, 'open' | 'currentItemId' | 'onBack'> & {
4
+ export type L1TabsProps = Pick<L1PanelProps, 'open' | 'onBack'> & {
5
+ currentItemId: string;
5
6
  path: string[];
6
- topLevelItems: Node<any>[];
7
+ topLevelItems: Node.Node[];
7
8
  };
8
9
  /**
9
- * Each space is an L1 tab.
10
+ * Each workspace is an L1 tab.
10
11
  */
11
- export declare const L1Tabs: ({ topLevelItems, onBack, ...props }: L1TabsProps) => React.JSX.Element;
12
+ export declare const L1Tabs: ({ topLevelItems, currentItemId, onBack, open, path }: L1TabsProps) => React.JSX.Element;
12
13
  //# sourceMappingURL=L1Tabs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"L1Tabs.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/L1Tabs.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAM5C,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAEvD,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,eAAe,GAAG,QAAQ,CAAC,GAAG;IAClF,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,aAAa,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,GAAI,qCAAqC,WAAW,sBAgBtE,CAAC"}
1
+ {"version":3,"file":"L1Tabs.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/L1Tabs.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAI5C,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAEvD,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,QAAQ,CAAC,GAAG;IAChE,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,aAAa,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,GAAI,sDAAsD,WAAW,sBAqBvF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"UserAccountAvatar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/UserAccountAvatar/UserAccountAvatar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAMjE,QAAA,MAAM,IAAI;;;;CAKgC,CAAC;AAE3C,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
1
+ {"version":3,"file":"UserAccountAvatar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/UserAccountAvatar/UserAccountAvatar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAMjE,QAAA,MAAM,IAAI;;;;CAIgC,CAAC;AAE3C,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
@@ -1,7 +1,4 @@
1
- export * from './CommandsDialog';
2
1
  export * from './NavTree';
3
- export * from './NavTreeContainer';
4
2
  export * from './NavTreeContext';
5
- export * from './NavTreeDocumentTitle';
6
3
  export type * from './types';
7
4
  //# 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,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,mBAAmB,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AAEjC,mBAAmB,SAAS,CAAC"}
@@ -1,30 +1,22 @@
1
1
  import type { FC } from 'react';
2
- import type { Node } from '@dxos/app-graph';
2
+ import { type Node } from '@dxos/app-graph';
3
3
  import type { Density } from '@dxos/react-ui';
4
- import type { TreeProps } from '@dxos/react-ui-list';
5
- import type { MaybePromise } from '@dxos/util';
6
- import type { FlattenedActions, NavTreeItemGraphNode } from '../types';
4
+ import type { TreeModel, TreeProps } from '@dxos/react-ui-list';
5
+ import type { NavTreeItemGraphNode } from '../types';
7
6
  import type { L1PanelProps } from './Sidebar';
8
- export type NavTreeContextValue = Pick<TreeProps<NavTreeItemGraphNode, {
9
- disposition?: string;
10
- sort?: boolean;
11
- }>, 'useItems' | 'getProps' | 'isCurrent' | 'isOpen' | 'canDrop' | 'onOpenChange' | 'onSelect'> & Pick<L1PanelProps, 'onBack'> & {
12
- tab: string;
13
- topbar?: boolean;
7
+ export type NavTreeContextValue = {
8
+ model: TreeModel<NavTreeItemGraphNode>;
14
9
  popoverAnchorId?: string;
15
10
  renderItemEnd?: FC<{
16
- node: Node;
11
+ node: Node.Node;
17
12
  open: boolean;
18
13
  }>;
19
- useActions: (node: Node) => FlattenedActions;
20
- loadDescendents?: (node: Node) => MaybePromise<void>;
21
- isAlternateTree?: (path: string[], item: NavTreeItemGraphNode) => boolean;
22
14
  setAlternateTree?: (path: string[], open: boolean) => void;
23
15
  onTabChange?: (node: NavTreeItemGraphNode) => void;
24
- };
16
+ } & Pick<TreeProps<NavTreeItemGraphNode>, 'blockInstruction' | 'canDrop' | 'canSelect' | 'onOpenChange' | 'onSelect' | 'onItemHover'> & Pick<L1PanelProps, 'onBack'>;
25
17
  export type NavTreeItemColumnsProps = {
26
18
  path: string[];
27
- item: Node;
19
+ item: Node.Node;
28
20
  open: boolean;
29
21
  density?: Density;
30
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE9C,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,SAAS,CAAC,oBAAoB,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,EACzE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,cAAc,GAAG,UAAU,CAC3F,GACC,IAAI,CAAC,YAAY,EAAE,QA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YAAY,EAAE,MAAM,WAAW,CAAC;AAE9C,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,SAAS,CAAC,oBAAoB,CAAC,CAAC;IACvC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,EAAE,CAAC;QAAE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;QAAC,IAAI,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IACvD,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3D,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;CACpD,GAAG,IAAI,CACN,SAAS,CAAC,oBAAoB,CAAC,EAC/B,kBAAkB,GAAG,SAAS,GAAG,WAAW,GAAG,cAAc,GAAG,UAAU,GAAG,aAAa,CAC3F,GACC,IAAI,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;AAE/B,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export type CommandsDialogContentProps = {
3
+ selected?: string;
4
+ };
5
+ export declare const CommandsDialogContent: React.ForwardRefExoticComponent<CommandsDialogContentProps & React.RefAttributes<HTMLDivElement>>;
6
+ //# sourceMappingURL=CommandsDialogContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandsDialogContent.d.ts","sourceRoot":"","sources":["../../../../../src/containers/CommandsDialogContent/CommandsDialogContent.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAe7D,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAGF,eAAO,MAAM,qBAAqB,mGA0GjC,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ import React from 'react';
3
+ declare const meta: {
4
+ title: string;
5
+ component: React.ForwardRefExoticComponent<import("./CommandsDialogContent").CommandsDialogContentProps & React.RefAttributes<HTMLDivElement>>;
6
+ render: () => React.JSX.Element;
7
+ decorators: import("@storybook/react").Decorator[];
8
+ parameters: {
9
+ layout: string;
10
+ translations: [{
11
+ readonly 'en-US': {
12
+ readonly [meta.id]: {
13
+ readonly 'app menu label': "App menu";
14
+ readonly 'open settings label': "Settings";
15
+ readonly 'open commands label': "Search commands";
16
+ readonly 'commands dialog title': "Commands";
17
+ readonly 'command list input placeholder': "Search for commands…";
18
+ readonly 'node actions menu invoker label': "More options";
19
+ readonly 'tree item actions label': "More actions";
20
+ readonly 'empty branch message': " ";
21
+ readonly 'button back': "Back to Space";
22
+ };
23
+ };
24
+ }];
25
+ };
26
+ };
27
+ export default meta;
28
+ type Story = StoryObj<typeof meta>;
29
+ export declare const Default: Story;
30
+ //# sourceMappingURL=CommandsDialogContent.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandsDialogContent.stories.d.ts","sourceRoot":"","sources":["../../../../../src/containers/CommandsDialogContent/CommandsDialogContent.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAoB1B,QAAA,MAAM,IAAI;;;;;;;;;yBAlByB,CAAQ,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;CAgCL,CAAC;AAE/C,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { CommandsDialogContent } from './CommandsDialogContent';
2
+ export default CommandsDialogContent;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/CommandsDialogContent/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandsTrigger.d.ts","sourceRoot":"","sources":["../../../../../src/containers/CommandsTrigger/CommandsTrigger.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,eAAO,MAAM,eAAe,yBAc3B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { CommandsTrigger } from './CommandsTrigger';
2
+ export default CommandsTrigger;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/CommandsTrigger/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,eAAe,eAAe,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export declare const NODE_TYPE = "dxos/app-graph/node";
3
+ export type NavTreeContainerProps = {
4
+ popoverAnchorId?: string;
5
+ tab: string;
6
+ };
7
+ export declare const NavTreeContainer$: React.ForwardRefExoticComponent<NavTreeContainerProps & React.RefAttributes<HTMLDivElement>>;
8
+ export declare const NavTreeContainer: React.NamedExoticComponent<NavTreeContainerProps & React.RefAttributes<HTMLDivElement>>;
9
+ //# sourceMappingURL=NavTreeContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavTreeContainer.d.ts","sourceRoot":"","sources":["../../../../../src/containers/NavTreeContainer/NavTreeContainer.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAoE,MAAM,OAAO,CAAC;AAiBzF,eAAO,MAAM,SAAS,wBAAwB,CAAC;AAY/C,MAAM,MAAM,qBAAqB,GAAG;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,eAAO,MAAM,iBAAiB,8FAoO7B,CAAC;AAEF,eAAO,MAAM,gBAAgB,yFAA0B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { NavTreeContainer, NODE_TYPE } from './NavTreeContainer';
2
+ export { NavTreeContainer as default } from './NavTreeContainer';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/NavTreeContainer/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { type Node } from '@dxos/app-graph';
2
2
  export declare const NavTreeDocumentTitle: ({ node }: {
3
- node?: Node;
3
+ node?: Node.Node;
4
4
  }) => null;
5
5
  //# sourceMappingURL=NavTreeDocumentTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavTreeDocumentTitle.d.ts","sourceRoot":"","sources":["../../../../../src/containers/NavTreeDocumentTitle/NavTreeDocumentTitle.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAM5C,eAAO,MAAM,oBAAoB,GAAI,UAAU;IAAE,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,CAAA;CAAE,SAMlE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { NavTreeDocumentTitle } from './NavTreeDocumentTitle';
2
+ export default NavTreeDocumentTitle;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/NavTreeDocumentTitle/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { type ComponentType } from 'react';
2
+ export { NODE_TYPE } from './NavTreeContainer';
3
+ export declare const CommandsDialogContent: ComponentType<any>;
4
+ export declare const CommandsTrigger: ComponentType<any>;
5
+ export declare const NavTreeContainer: ComponentType<any>;
6
+ export declare const NavTreeDocumentTitle: ComponentType<any>;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/containers/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAQ,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,eAAO,MAAM,qBAAqB,EAAE,aAAa,CAAC,GAAG,CAAiD,CAAC;AACvG,eAAO,MAAM,eAAe,EAAE,aAAa,CAAC,GAAG,CAA2C,CAAC;AAC3F,eAAO,MAAM,gBAAgB,EAAE,aAAa,CAAC,GAAG,CAA4C,CAAC;AAC7F,eAAO,MAAM,oBAAoB,EAAE,aAAa,CAAC,GAAG,CAAgD,CAAC"}
@@ -1,11 +1,25 @@
1
- import { type JSX } from 'react';
1
+ import React from 'react';
2
2
  import { type TreeProps } from './Tree';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: ({ className, showRoot, ...props }: TreeProps) => JSX.Element;
5
+ component: ({ className, showRoot, ...props }: TreeProps) => React.JSX.Element;
6
6
  decorators: import("@storybook/react").Decorator[];
7
+ parameters: {
8
+ layout: string;
9
+ };
7
10
  };
8
11
  export default meta;
9
- export declare const Default: () => JSX.Element;
10
- export declare const Visitor: () => JSX.Element;
12
+ /**
13
+ * Space:
14
+ * - Space panels are separated from each other to give them more weight than folders.
15
+ * - Private space isn't different (just first, different icon).
16
+ * - Edit titles in place.
17
+ *
18
+ * Navigation:
19
+ * - up/down across spaces/folder peers
20
+ * - right to enter space/folder children
21
+ * - left to parent
22
+ */
23
+ export declare const Default: () => React.JSX.Element;
24
+ export declare const Visitor: () => React.JSX.Element;
11
25
  //# sourceMappingURL=Tree.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tree.stories.d.ts","sourceRoot":"","sources":["../../../../src/experimental/Tree.stories.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,KAAK,GAAG,EAA+C,MAAM,OAAO,CAAC;AAOrF,OAAO,EAAyC,KAAK,SAAS,EAAuB,MAAM,QAAQ,CAAC;AA8LpG,QAAA,MAAM,IAAI;;;;CAImB,CAAC;AAE9B,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,mBAEnB,CAAC;AAEF,eAAO,MAAM,OAAO,mBAenB,CAAC"}
1
+ {"version":3,"file":"Tree.stories.d.ts","sourceRoot":"","sources":["../../../../src/experimental/Tree.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,OAAO,EAAyC,KAAK,SAAS,EAAuB,MAAM,QAAQ,CAAC;AA6KpG,QAAA,MAAM,IAAI;;;;;;;CAOmB,CAAC;AAE9B,eAAe,IAAI,CAAC;AAEpB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,OAAO,yBAEnB,CAAC;AAEF,eAAO,MAAM,OAAO,yBAenB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './useActions';
2
+ export * from './useLoadDescendents';
3
+ export * from './useNavTreeModel';
4
+ export * from './useNavTreeState';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { Node } from '@dxos/plugin-graph';
2
+ import { type FlattenedActions } from '../types';
3
+ /** Returns flattened actions and grouped sub-actions for a given graph node. */
4
+ export declare const useActions: (node: Node.Node) => FlattenedActions;
5
+ //# sourceMappingURL=useActions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useActions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useActions.ts"],"names":[],"mappings":"AAOA,OAAO,EAAS,IAAI,EAAiC,MAAM,oBAAoB,CAAC;AAEhF,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,gFAAgF;AAChF,eAAO,MAAM,UAAU,GAAI,MAAM,IAAI,CAAC,IAAI,KAAG,gBAqB5C,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { type Node } from '@dxos/app-graph';
2
+ /**
3
+ * Expands a root node in the app graph.
4
+ */
5
+ export declare const useLoadDescendents: (root?: Node.Node) => void;
6
+ //# sourceMappingURL=useLoadDescendents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLoadDescendents.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useLoadDescendents.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAI5C;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,OAAO,IAAI,CAAC,IAAI,SASlD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { type TreeModel } from '@dxos/react-ui-list';
2
+ import { type NavTreeItemGraphNode } from '../types';
3
+ /**
4
+ * Creates a TreeModel backed by the app graph and navtree state.
5
+ */
6
+ export declare const useNavTreeModel: (rootId: string) => TreeModel<NavTreeItemGraphNode>;
7
+ //# sourceMappingURL=useNavTreeModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useNavTreeModel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useNavTreeModel.ts"],"names":[],"mappings":"AAWA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAG3D,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAgFrD;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,QAAQ,MAAM,KAAG,SAAS,CAAC,oBAAoB,CAoB9E,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { type Atom } from '@effect-atom/atom-react';
2
+ import { NavTreeCapabilities } from '../types';
3
+ export type UseNavTreeStateResult = {
4
+ getItem: (path: string[]) => NavTreeCapabilities.NavTreeItemState;
5
+ getItemAtom: (path: string[]) => Atom.Atom<NavTreeCapabilities.NavTreeItemState>;
6
+ setItem: (path: string[], key: 'open' | 'current' | 'alternateTree', next: boolean) => void;
7
+ };
8
+ /**
9
+ * Hook that provides access to navtree state functions.
10
+ * For reactive subscriptions, use `useNavTreeItemState` or `useAtomValue(getItemAtom(path))`.
11
+ */
12
+ export declare const useNavTreeState: () => UseNavTreeStateResult;
13
+ /**
14
+ * Hook that subscribes to a single navtree item's state.
15
+ * Use this for fine-grained reactivity.
16
+ */
17
+ export declare const useNavTreeItemState: (path: string[]) => NavTreeCapabilities.NavTreeItemState;
18
+ /**
19
+ * Hook that subscribes to the alternateTree state for a tree item.
20
+ */
21
+ export declare const useIsAlternateTree: (path: string[], _item?: any) => boolean;
22
+ //# sourceMappingURL=useNavTreeState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useNavTreeState.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useNavTreeState.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAgB,MAAM,yBAAyB,CAAC;AAKlE,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,mBAAmB,CAAC,gBAAgB,CAAC;IAClE,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IACjF,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,eAAe,EAAE,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CAC7F,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAO,qBAElC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,MAAM,MAAM,EAAE,KAAG,mBAAmB,CAAC,gBAKxE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,EAAE,EAAE,QAAQ,GAAG,KAAG,OAEhE,CAAC"}
@@ -1,5 +1,4 @@
1
- export { NavTreeCapabilities } from './capabilities';
2
- export { NavTreeEvents } from './events';
1
+ export { NavTreeCapabilities, NavTreeEvents } from './types';
3
2
  export * from './NavTreePlugin';
4
3
  export * from './meta';
5
4
  export * from './util';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7D,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC"}
@@ -1,5 +1,5 @@
1
- import { type PluginMeta } from '@dxos/app-framework';
2
- export declare const meta: PluginMeta;
1
+ import { type Plugin } from '@dxos/app-framework';
2
+ export declare const meta: Plugin.Meta;
3
3
  export declare const KEY_BINDING = "KeyBinding";
4
4
  export declare const COMMANDS_DIALOG: string;
5
5
  //# sourceMappingURL=meta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGtD,eAAO,MAAM,IAAI,EAAE,UAOlB,CAAC;AAGF,eAAO,MAAM,WAAW,eAAe,CAAC;AAExC,eAAO,MAAM,eAAe,QAA8B,CAAC"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,IAOzB,CAAC;AAGF,eAAO,MAAM,WAAW,eAAe,CAAC;AAExC,eAAO,MAAM,eAAe,QAA+B,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { LayoutOperation } from '@dxos/app-toolkit';
2
+ import { Operation } from '@dxos/operation';
3
+ declare const handler: Operation.WithHandler<typeof LayoutOperation.Expose>;
4
+ export default handler;
5
+ //# sourceMappingURL=expose.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expose.d.ts","sourceRoot":"","sources":["../../../../src/operations/expose.ts"],"names":[],"mappings":"AAQA,OAAO,EAAmB,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAErE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAM5C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,MAAM,CAuBjE,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { OperationHandlerSet } from '@dxos/operation';
2
+ export declare const NavTreeOperationHandlerSet: OperationHandlerSet.OperationHandlerSet;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/operations/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,eAAO,MAAM,0BAA0B,yCAAqD,CAAC"}
@@ -1,4 +1,3 @@
1
- import { type PluginContext } from '@dxos/app-framework';
2
- import { type BuilderExtensions } from '@dxos/plugin-graph';
3
- export declare const storybookGraphBuilders: (context: PluginContext) => BuilderExtensions;
1
+ import { type BuilderExtensions } from '@dxos/app-graph';
2
+ export declare const storybookGraphBuilders: () => BuilderExtensions;
4
3
  //# sourceMappingURL=app-graph-builder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/testing/app-graph-builder.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,EAAE,KAAK,iBAAiB,EAA4B,MAAM,oBAAoB,CAAC;AAGtF,eAAO,MAAM,sBAAsB,GAAI,SAAS,aAAa,KAAG,iBAiQ/D,CAAC"}
1
+ {"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/testing/app-graph-builder.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAKzD,eAAO,MAAM,sBAAsB,QAAO,iBAsLzC,CAAC"}
@@ -1,15 +1,14 @@
1
- import * as Schema from 'effect/Schema';
2
- import { type Live } from '@dxos/echo';
1
+ import { Type } from '@dxos/echo';
3
2
  export type TestItem = {
4
3
  id: string;
5
4
  type: string;
6
5
  } & Record<string, any>;
7
6
  type ObjectDataGenerator = {
8
- createSchema?: () => Schema.Schema.AnyNoContext;
7
+ createSchema?: () => Type.AnyObj;
9
8
  createData: () => any;
10
9
  };
11
- type ObjectFactory<T extends Live<any>> = {
12
- schema?: Schema.Schema.AnyNoContext;
10
+ type ObjectFactory<T> = {
11
+ schema?: Type.AnyObj;
13
12
  createObject: () => T;
14
13
  };
15
14
  type ObjectFactoryMap = {
@@ -29,7 +28,7 @@ export declare class TestObjectGenerator {
29
28
  types?: string[];
30
29
  factories?: ObjectFactoryMap;
31
30
  });
32
- get schema(): Schema.Schema.AnyNoContext[];
31
+ get schema(): Type.AnyObj[];
33
32
  createObject({ types }?: {
34
33
  types?: string[];
35
34
  }): any;
@@ -1 +1 @@
1
- {"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../../src/testing/generator.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,KAAK,IAAI,EAAa,MAAM,YAAY,CAAC;AASlD,MAAM,MAAM,QAAQ,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAE1E,KAAK,mBAAmB,GAAG;IACzB,YAAY,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC;IAChD,UAAU,EAAE,MAAM,GAAG,CAAC;CACvB,CAAC;AAEF,KAAK,aAAa,CAAC,CAAC,SAAS,IAAI,CAAC,GAAG,CAAC,IAAI;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC;IACpC,YAAY,EAAE,MAAM,CAAC,CAAC;CACvB,CAAC;AAEF,KAAK,gBAAgB,GAAG;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,CAAA;CAAE,CAAC;AAW/D,eAAO,MAAM,MAAM,UAAgC,CAAC;AACpD,eAAO,MAAM,QAAQ,UAAkB,CAAC;AAExC,eAAO,MAAM,iBAAiB,EAAE;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB,CAAA;CAmCpE,CAAC;AAEF;;GAEG;AACH,qBAAa,mBAAmB;IAC9B,SAA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AAO,MAAM,QAAQ,UAAkB,CAAC;AAExC,eAAO,MAAM,iBAAiB,EAAE;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB,CAAA;CAqCpE,CAAC;AAEF;;GAEG;AACH,qBAAa,mBAAmB;IAC9B,SAAgB,SAAS,EAAE,gBAAgB,CAAC;gBAEhC,EAAE,KAAK,EAAE,SAAS,EAAE,GAAE;QAAE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,SAAS,CAAC,EAAE,gBAAgB,CAAA;KAAO;IASzF,IAAI,MAAM,IAAI,IAAI,CAAC,MAAM,EAAE,CAE1B;IAED,YAAY,CAAC,EAAE,KAAK,EAAE,GAAE;QAAE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;KAAO;IAMjD,aAAa,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE;CAGtE;AAeD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+EtB,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { type Instruction } from '@atlaskit/pragmatic-drag-and-drop-hitbox/tree-item';
2
- import { type NodeArg } from '@dxos/app-graph';
2
+ import { type Node } from '@dxos/app-graph';
3
3
  import { type TreeData } from '@dxos/react-ui-list';
4
4
  export declare const updateState: ({ state, instruction, source, target, }: {
5
- state: NodeArg<any>;
5
+ state: Node.NodeArg<any>;
6
6
  instruction: Instruction;
7
7
  source: TreeData;
8
8
  target: TreeData;
@@ -1 +1 @@
1
- {"version":3,"file":"update-state.d.ts","sourceRoot":"","sources":["../../../../src/testing/update-state.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,oDAAoD,CAAC;AAEtF,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAmBpD,eAAO,MAAM,WAAW,GAAI,yCAKzB;IACD,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IACpB,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,EAAE,QAAQ,CAAC;IACjB,MAAM,EAAE,QAAQ,CAAC;CAClB,SAgCA,CAAC"}
1
+ {"version":3,"file":"update-state.d.ts","sourceRoot":"","sources":["../../../../src/testing/update-state.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,oDAAoD,CAAC;AAEtF,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAmBpD,eAAO,MAAM,WAAW,GAAI,yCAKzB;IACD,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACzB,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,EAAE,QAAQ,CAAC;IACjB,MAAM,EAAE,QAAQ,CAAC;CAClB,SAgCA,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { type Atom } from '@effect-atom/atom-react';
2
+ import { Capability } from '@dxos/app-framework';
3
+ export declare namespace NavTreeCapabilities {
4
+ type NavTreeItemState = {
5
+ open: boolean;
6
+ current: boolean;
7
+ alternateTree?: boolean;
8
+ };
9
+ type NavTreeStateStore = {
10
+ getItem: (path: string[]) => NavTreeItemState;
11
+ getItemAtom: (path: string[]) => Atom.Atom<NavTreeItemState>;
12
+ setItem: (path: string[], key: 'open' | 'current' | 'alternateTree', next: boolean) => void;
13
+ };
14
+ const State: Capability.InterfaceDef<NavTreeStateStore>;
15
+ }
16
+ //# sourceMappingURL=capabilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/types/capabilities.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIjD,yBAAiB,mBAAmB,CAAC;IACnC,KAAY,gBAAgB,GAAG;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,aAAa,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAE5F,KAAY,iBAAiB,GAAG;QAC9B,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,gBAAgB,CAAC;QAC9C,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC7D,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,eAAe,EAAE,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;KAC7F,CAAC;IAEK,MAAM,KAAK,4CAAoE,CAAC;CACxF"}
@@ -0,0 +1,5 @@
1
+ import { type ActivationEvent } from '@dxos/app-framework';
2
+ export declare namespace NavTreeEvents {
3
+ const StateReady: ActivationEvent.ActivationEvent;
4
+ }
5
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../src/types/events.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAK3D,yBAAiB,aAAa,CAAC;IACtB,MAAM,UAAU,EAAE,eAAe,CAAC,eAA+D,CAAC;CAC1G"}
@@ -0,0 +1,4 @@
1
+ export * from './capabilities';
2
+ export * from './events';
3
+ export * from './schema';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
@@ -1,19 +1,19 @@
1
- import { type Action, type ActionLike, type Node } from '@dxos/app-graph';
1
+ import { type Node } from '@dxos/app-graph';
2
2
  import { type Label } from '@dxos/react-ui';
3
3
  import { type MaybePromise, type Position } from '@dxos/util';
4
- export type NavTreeItemGraphNode = Node<any, Partial<NodeProperties & {
4
+ export type NavTreeItemGraphNode = Node.Node<any, Partial<NodeProperties & {
5
5
  persistenceClass: string;
6
6
  persistenceKey: string;
7
7
  acceptPersistenceClass: Set<string>;
8
8
  acceptPersistenceKey: Set<string>;
9
- onRearrangeChildren: (nextOrder: NavTreeItemGraphNode[]) => MaybePromise<void>;
9
+ onRearrange: (nextOrder: unknown[]) => MaybePromise<void>;
10
10
  onCopy: (activeNode: NavTreeItemGraphNode, index?: number) => MaybePromise<void>;
11
11
  onTransferStart: (activeNode: NavTreeItemGraphNode, index?: number) => MaybePromise<void>;
12
12
  onTransferEnd: (activeNode: NavTreeItemGraphNode, destinationParent: NavTreeItemGraphNode) => MaybePromise<void>;
13
13
  }>>;
14
14
  export type FlattenedActions = {
15
- actions: ActionLike[];
16
- groupedActions: Record<string, Action[]>;
15
+ actions: Node.ActionLike[];
16
+ groupedActions: Record<string, Node.Action[]>;
17
17
  };
18
18
  type SharedProperties = {
19
19
  testId?: string;
@@ -49,4 +49,4 @@ export type KeyBinding = {
49
49
  unknown?: string;
50
50
  };
51
51
  export {};
52
- //# sourceMappingURL=types.d.ts.map
52
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/types/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,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BAAgB,GAAG;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,GAAG;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;CAClC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IAGvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1,9 +1,13 @@
1
- import { type Action, type Node, type ReadableGraph } from '@dxos/app-graph';
1
+ import { Graph, Node } from '@dxos/plugin-graph';
2
2
  import { type NavTreeItemGraphNode } from './types';
3
- export declare const getParent: (graph: ReadableGraph, node: NavTreeItemGraphNode, path: string[]) => NavTreeItemGraphNode | undefined;
4
- export declare const getPersistenceParent: (graph: ReadableGraph, node: NavTreeItemGraphNode, path: string[], persistenceClass: string) => NavTreeItemGraphNode | null;
5
- export declare const resolveMigrationOperation: (graph: ReadableGraph, activeNode: NavTreeItemGraphNode, destinationPath: string[], destinationRelatedNode?: NavTreeItemGraphNode) => "transfer" | "copy" | "reject";
6
- export declare const sortActions: (actions: Action[]) => Action[];
7
- export declare const getChildren: (graph: ReadableGraph, node: NavTreeItemGraphNode, path?: readonly string[]) => NavTreeItemGraphNode[];
8
- export declare const l0ItemType: (item: Node<any>) => "link" | "tab" | "collection" | "action";
3
+ export declare const getParent: (graph: Graph.ReadableGraph, node: NavTreeItemGraphNode, path: string[]) => NavTreeItemGraphNode | undefined;
4
+ export declare const getPersistenceParent: (graph: Graph.ReadableGraph, node: NavTreeItemGraphNode, path: string[], persistenceClass: string) => NavTreeItemGraphNode | null;
5
+ export declare const resolveMigrationOperation: (graph: Graph.ReadableGraph, activeNode: NavTreeItemGraphNode, destinationPath: string[], destinationRelatedNode?: NavTreeItemGraphNode) => "transfer" | "copy" | "reject";
6
+ export declare const sortActions: (actions: Node.Action[]) => Node.Action[];
7
+ export declare const getChildren: (graph: Graph.ReadableGraph, node: NavTreeItemGraphNode, path?: readonly string[]) => NavTreeItemGraphNode[];
8
+ /**
9
+ * Determines whether a node should be visible based on its disposition.
10
+ */
11
+ export declare const filterItems: (node: Node.Node, disposition?: string) => boolean;
12
+ export declare const l0ItemType: (item: Node.Node) => "action" | "tab";
9
13
  //# sourceMappingURL=util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/util.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,IAAI,EAAE,KAAK,aAAa,EAAgB,MAAM,iBAAiB,CAAC;AAG3F,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD,eAAO,MAAM,SAAS,GACpB,OAAO,aAAa,EACpB,MAAM,oBAAoB,EAC1B,MAAM,MAAM,EAAE,KACb,oBAAoB,GAAG,SAGzB,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,OAAO,aAAa,EACpB,MAAM,oBAAoB,EAC1B,MAAM,MAAM,EAAE,EACd,kBAAkB,MAAM,KACvB,oBAAoB,GAAG,IAOzB,CAAC;AAEF,eAAO,MAAM,yBAAyB,GACpC,OAAO,aAAa,EACpB,YAAY,oBAAoB,EAChC,iBAAiB,MAAM,EAAE,EACzB,yBAAyB,oBAAoB,KAC5C,UAAU,GAAG,MAAM,GAAG,QAsBxB,C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