@dxos/plugin-navtree 0.8.4-main.c1de068 → 0.8.4-main.c85a9c8dae

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 (238) hide show
  1. package/dist/lib/browser/CommandsDialogContent-A27AKTHH.mjs +111 -0
  2. package/dist/lib/browser/CommandsDialogContent-A27AKTHH.mjs.map +7 -0
  3. package/dist/lib/browser/CommandsTrigger-HBZYQCGV.mjs +33 -0
  4. package/dist/lib/browser/CommandsTrigger-HBZYQCGV.mjs.map +7 -0
  5. package/dist/lib/browser/NavTreeContainer-B5K4FUJS.mjs +12 -0
  6. package/dist/lib/browser/NavTreeContainer-B5K4FUJS.mjs.map +7 -0
  7. package/dist/lib/browser/NavTreeDocumentTitle-GEE3URWH.mjs +26 -0
  8. package/dist/lib/browser/NavTreeDocumentTitle-GEE3URWH.mjs.map +7 -0
  9. package/dist/lib/browser/app-graph-builder-XGA4GPGL.mjs +44 -0
  10. package/dist/lib/browser/app-graph-builder-XGA4GPGL.mjs.map +7 -0
  11. package/dist/lib/browser/chunk-DQCYMXEU.mjs +1426 -0
  12. package/dist/lib/browser/chunk-DQCYMXEU.mjs.map +7 -0
  13. package/dist/lib/browser/chunk-H3OJ4WLF.mjs +14 -0
  14. package/dist/lib/browser/chunk-H3OJ4WLF.mjs.map +7 -0
  15. package/dist/lib/browser/chunk-X2HDG62A.mjs +23 -0
  16. package/dist/lib/browser/chunk-X2HDG62A.mjs.map +7 -0
  17. package/dist/lib/browser/chunk-YKTYPINZ.mjs +19 -0
  18. package/dist/lib/browser/chunk-YKTYPINZ.mjs.map +7 -0
  19. package/dist/lib/browser/index.mjs +88 -96
  20. package/dist/lib/browser/index.mjs.map +4 -4
  21. package/dist/lib/browser/{keyboard-QRS6WOQH.mjs → keyboard-OJZC54PK.mjs} +22 -19
  22. package/dist/lib/browser/keyboard-OJZC54PK.mjs.map +7 -0
  23. package/dist/lib/browser/meta.json +1 -1
  24. package/dist/lib/browser/operation-resolver-BNAMYOHF.mjs +53 -0
  25. package/dist/lib/browser/operation-resolver-BNAMYOHF.mjs.map +7 -0
  26. package/dist/lib/browser/react-surface-AYHOAJ4I.mjs +59 -0
  27. package/dist/lib/browser/react-surface-AYHOAJ4I.mjs.map +7 -0
  28. package/dist/lib/browser/state-AC3EETN7.mjs +131 -0
  29. package/dist/lib/browser/state-AC3EETN7.mjs.map +7 -0
  30. package/dist/types/src/NavTreePlugin.d.ts +2 -1
  31. package/dist/types/src/NavTreePlugin.d.ts.map +1 -1
  32. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
  33. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
  34. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
  35. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
  36. package/dist/types/src/capabilities/index.d.ts +5 -105
  37. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  38. package/dist/types/src/capabilities/keyboard/index.d.ts +3 -0
  39. package/dist/types/src/capabilities/keyboard/index.d.ts.map +1 -0
  40. package/dist/types/src/capabilities/keyboard/keyboard.d.ts +5 -0
  41. package/dist/types/src/capabilities/keyboard/keyboard.d.ts.map +1 -0
  42. package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
  43. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
  44. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
  45. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
  46. package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
  47. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
  48. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
  49. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
  50. package/dist/types/src/capabilities/state/index.d.ts +3 -0
  51. package/dist/types/src/capabilities/state/index.d.ts.map +1 -0
  52. package/dist/types/src/capabilities/state/state.d.ts +6 -0
  53. package/dist/types/src/capabilities/state/state.d.ts.map +1 -0
  54. package/dist/types/src/components/NavTree/NavTree.d.ts +12 -5
  55. package/dist/types/src/components/NavTree/NavTree.d.ts.map +1 -1
  56. package/dist/types/src/components/NavTree/NavTree.stories.d.ts +27 -5
  57. package/dist/types/src/components/NavTree/NavTree.stories.d.ts.map +1 -1
  58. package/dist/types/src/components/NavTreeItem/NavTreeItemAction.d.ts +6 -6
  59. package/dist/types/src/components/NavTreeItem/NavTreeItemAction.d.ts.map +1 -1
  60. package/dist/types/src/components/NavTreeItem/NavTreeItemAction.stories.d.ts +33 -4
  61. package/dist/types/src/components/NavTreeItem/NavTreeItemAction.stories.d.ts.map +1 -1
  62. package/dist/types/src/components/NavTreeItem/NavTreeItemColumns.d.ts +2 -2
  63. package/dist/types/src/components/NavTreeItem/NavTreeItemColumns.d.ts.map +1 -1
  64. package/dist/types/src/components/Sidebar/L0Menu.d.ts +10 -5
  65. package/dist/types/src/components/Sidebar/L0Menu.d.ts.map +1 -1
  66. package/dist/types/src/components/Sidebar/L1Panel.d.ts +4 -8
  67. package/dist/types/src/components/Sidebar/L1Panel.d.ts.map +1 -1
  68. package/dist/types/src/components/Sidebar/L1Tabs.d.ts +13 -0
  69. package/dist/types/src/components/Sidebar/L1Tabs.d.ts.map +1 -0
  70. package/dist/types/src/components/Sidebar/index.d.ts +1 -0
  71. package/dist/types/src/components/Sidebar/index.d.ts.map +1 -1
  72. package/dist/types/src/components/UserAccountAvatar/UserAccountAvatar.d.ts.map +1 -1
  73. package/dist/types/src/components/UserAccountAvatar/UserAccountAvatar.stories.d.ts +8 -5
  74. package/dist/types/src/components/UserAccountAvatar/UserAccountAvatar.stories.d.ts.map +1 -1
  75. package/dist/types/src/components/index.d.ts +0 -3
  76. package/dist/types/src/components/index.d.ts.map +1 -1
  77. package/dist/types/src/components/types.d.ts +8 -16
  78. package/dist/types/src/components/types.d.ts.map +1 -1
  79. package/dist/types/src/containers/CommandsDialogContent/CommandsDialogContent.d.ts +6 -0
  80. package/dist/types/src/containers/CommandsDialogContent/CommandsDialogContent.d.ts.map +1 -0
  81. package/dist/types/src/containers/CommandsDialogContent/index.d.ts +3 -0
  82. package/dist/types/src/containers/CommandsDialogContent/index.d.ts.map +1 -0
  83. package/dist/types/src/containers/CommandsTrigger/CommandsTrigger.d.ts.map +1 -0
  84. package/dist/types/src/containers/CommandsTrigger/index.d.ts +3 -0
  85. package/dist/types/src/containers/CommandsTrigger/index.d.ts.map +1 -0
  86. package/dist/types/src/containers/NavTreeContainer/NavTreeContainer.d.ts +9 -0
  87. package/dist/types/src/containers/NavTreeContainer/NavTreeContainer.d.ts.map +1 -0
  88. package/dist/types/src/containers/NavTreeContainer/index.d.ts +3 -0
  89. package/dist/types/src/containers/NavTreeContainer/index.d.ts.map +1 -0
  90. package/dist/types/src/{components → containers/NavTreeDocumentTitle}/NavTreeDocumentTitle.d.ts +1 -1
  91. package/dist/types/src/containers/NavTreeDocumentTitle/NavTreeDocumentTitle.d.ts.map +1 -0
  92. package/dist/types/src/containers/NavTreeDocumentTitle/index.d.ts +3 -0
  93. package/dist/types/src/containers/NavTreeDocumentTitle/index.d.ts.map +1 -0
  94. package/dist/types/src/containers/index.d.ts +7 -0
  95. package/dist/types/src/containers/index.d.ts.map +1 -0
  96. package/dist/types/src/experimental/Tree.d.ts +1 -2
  97. package/dist/types/src/experimental/Tree.d.ts.map +1 -1
  98. package/dist/types/src/experimental/Tree.stories.d.ts +23 -6
  99. package/dist/types/src/experimental/Tree.stories.d.ts.map +1 -1
  100. package/dist/types/src/hooks/index.d.ts +5 -0
  101. package/dist/types/src/hooks/index.d.ts.map +1 -0
  102. package/dist/types/src/hooks/useActions.d.ts +7 -0
  103. package/dist/types/src/hooks/useActions.d.ts.map +1 -0
  104. package/dist/types/src/hooks/useLoadDescendents.d.ts +6 -0
  105. package/dist/types/src/hooks/useLoadDescendents.d.ts.map +1 -0
  106. package/dist/types/src/hooks/useNavTreeModel.d.ts +7 -0
  107. package/dist/types/src/hooks/useNavTreeModel.d.ts.map +1 -0
  108. package/dist/types/src/hooks/useNavTreeState.d.ts +22 -0
  109. package/dist/types/src/hooks/useNavTreeState.d.ts.map +1 -0
  110. package/dist/types/src/index.d.ts +1 -2
  111. package/dist/types/src/index.d.ts.map +1 -1
  112. package/dist/types/src/meta.d.ts +3 -4
  113. package/dist/types/src/meta.d.ts.map +1 -1
  114. package/dist/types/src/testing/app-graph-builder.d.ts +2 -3
  115. package/dist/types/src/testing/app-graph-builder.d.ts.map +1 -1
  116. package/dist/types/src/testing/generator.d.ts +5 -6
  117. package/dist/types/src/testing/generator.d.ts.map +1 -1
  118. package/dist/types/src/testing/update-state.d.ts +2 -2
  119. package/dist/types/src/testing/update-state.d.ts.map +1 -1
  120. package/dist/types/src/translations.d.ts +1 -0
  121. package/dist/types/src/translations.d.ts.map +1 -1
  122. package/dist/types/src/types/capabilities.d.ts +16 -0
  123. package/dist/types/src/types/capabilities.d.ts.map +1 -0
  124. package/dist/types/src/types/events.d.ts +5 -0
  125. package/dist/types/src/types/events.d.ts.map +1 -0
  126. package/dist/types/src/types/index.d.ts +4 -0
  127. package/dist/types/src/types/index.d.ts.map +1 -0
  128. package/dist/types/src/{types.d.ts → types/schema.d.ts} +10 -9
  129. package/dist/types/src/types/schema.d.ts.map +1 -0
  130. package/dist/types/src/util.d.ts +12 -9
  131. package/dist/types/src/util.d.ts.map +1 -1
  132. package/dist/types/tsconfig.tsbuildinfo +1 -1
  133. package/package.json +56 -53
  134. package/src/NavTreePlugin.tsx +64 -84
  135. package/src/capabilities/app-graph-builder/app-graph-builder.ts +42 -0
  136. package/src/capabilities/app-graph-builder/index.ts +7 -0
  137. package/src/capabilities/index.ts +5 -9
  138. package/src/capabilities/keyboard/index.ts +7 -0
  139. package/src/capabilities/keyboard/keyboard.ts +66 -0
  140. package/src/capabilities/operation-resolver/index.ts +7 -0
  141. package/src/capabilities/operation-resolver/operation-resolver.ts +44 -0
  142. package/src/capabilities/react-surface/index.ts +7 -0
  143. package/src/capabilities/react-surface/react-surface.tsx +53 -0
  144. package/src/capabilities/state/index.ts +7 -0
  145. package/src/capabilities/state/state.ts +149 -0
  146. package/src/components/NavTree/NavTree.stories.tsx +105 -98
  147. package/src/components/NavTree/NavTree.tsx +69 -34
  148. package/src/components/NavTreeItem/NavTreeItemAction.stories.tsx +21 -13
  149. package/src/components/NavTreeItem/NavTreeItemAction.tsx +39 -33
  150. package/src/components/NavTreeItem/NavTreeItemColumns.tsx +66 -36
  151. package/src/components/Sidebar/L0Menu.tsx +170 -179
  152. package/src/components/Sidebar/L1Panel.tsx +248 -134
  153. package/src/components/Sidebar/L1Tabs.tsx +43 -0
  154. package/src/components/Sidebar/index.ts +1 -0
  155. package/src/components/UserAccountAvatar/UserAccountAvatar.stories.tsx +9 -9
  156. package/src/components/UserAccountAvatar/UserAccountAvatar.tsx +20 -12
  157. package/src/components/index.ts +1 -3
  158. package/src/components/types.ts +15 -19
  159. package/src/containers/CommandsDialogContent/CommandsDialogContent.tsx +133 -0
  160. package/src/containers/CommandsDialogContent/index.ts +7 -0
  161. package/src/containers/CommandsTrigger/CommandsTrigger.tsx +26 -0
  162. package/src/containers/CommandsTrigger/index.ts +7 -0
  163. package/src/containers/NavTreeContainer/NavTreeContainer.tsx +270 -0
  164. package/src/containers/NavTreeContainer/index.ts +7 -0
  165. package/src/{components → containers/NavTreeDocumentTitle}/NavTreeDocumentTitle.tsx +5 -4
  166. package/src/containers/NavTreeDocumentTitle/index.ts +7 -0
  167. package/src/containers/index.ts +12 -0
  168. package/src/experimental/Tree.stories.tsx +78 -83
  169. package/src/experimental/Tree.tsx +6 -23
  170. package/src/hooks/index.ts +8 -0
  171. package/src/hooks/useActions.ts +38 -0
  172. package/src/hooks/useLoadDescendents.ts +23 -0
  173. package/src/hooks/useNavTreeModel.ts +112 -0
  174. package/src/hooks/useNavTreeState.ts +42 -0
  175. package/src/index.ts +1 -2
  176. package/src/meta.ts +11 -8
  177. package/src/testing/app-graph-builder.ts +159 -234
  178. package/src/testing/generator.ts +20 -18
  179. package/src/testing/update-state.ts +6 -6
  180. package/src/translations.ts +1 -0
  181. package/src/types/capabilities.ts +21 -0
  182. package/src/types/events.ts +12 -0
  183. package/src/types/index.ts +7 -0
  184. package/src/{types.ts → types/schema.ts} +9 -8
  185. package/src/util.ts +26 -33
  186. package/dist/lib/browser/app-graph-builder-5J4LRWDX.mjs +0 -45
  187. package/dist/lib/browser/app-graph-builder-5J4LRWDX.mjs.map +0 -7
  188. package/dist/lib/browser/chunk-ERDGQTH5.mjs +0 -16
  189. package/dist/lib/browser/chunk-ERDGQTH5.mjs.map +0 -7
  190. package/dist/lib/browser/chunk-SICQTLXC.mjs +0 -1442
  191. package/dist/lib/browser/chunk-SICQTLXC.mjs.map +0 -7
  192. package/dist/lib/browser/chunk-WCARAZ7J.mjs +0 -15
  193. package/dist/lib/browser/chunk-WCARAZ7J.mjs.map +0 -7
  194. package/dist/lib/browser/intent-resolver-3XYN2CBU.mjs +0 -47
  195. package/dist/lib/browser/intent-resolver-3XYN2CBU.mjs.map +0 -7
  196. package/dist/lib/browser/keyboard-QRS6WOQH.mjs.map +0 -7
  197. package/dist/lib/browser/react-surface-WURHCBQQ.mjs +0 -51
  198. package/dist/lib/browser/react-surface-WURHCBQQ.mjs.map +0 -7
  199. package/dist/lib/browser/state-54DY3DOY.mjs +0 -117
  200. package/dist/lib/browser/state-54DY3DOY.mjs.map +0 -7
  201. package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
  202. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
  203. package/dist/types/src/capabilities/capabilities.d.ts +0 -21
  204. package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
  205. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  206. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  207. package/dist/types/src/capabilities/keyboard.d.ts +0 -4
  208. package/dist/types/src/capabilities/keyboard.d.ts.map +0 -1
  209. package/dist/types/src/capabilities/react-surface.d.ts +0 -4
  210. package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
  211. package/dist/types/src/capabilities/state.d.ts +0 -20
  212. package/dist/types/src/capabilities/state.d.ts.map +0 -1
  213. package/dist/types/src/components/CommandsDialog/CommandsDialog.d.ts +0 -5
  214. package/dist/types/src/components/CommandsDialog/CommandsDialog.d.ts.map +0 -1
  215. package/dist/types/src/components/CommandsDialog/CommandsTrigger.d.ts.map +0 -1
  216. package/dist/types/src/components/CommandsDialog/index.d.ts +0 -3
  217. package/dist/types/src/components/CommandsDialog/index.d.ts.map +0 -1
  218. package/dist/types/src/components/NavTreeContainer.d.ts +0 -9
  219. package/dist/types/src/components/NavTreeContainer.d.ts.map +0 -1
  220. package/dist/types/src/components/NavTreeDocumentTitle.d.ts.map +0 -1
  221. package/dist/types/src/events.d.ts +0 -4
  222. package/dist/types/src/events.d.ts.map +0 -1
  223. package/dist/types/src/hooks.d.ts +0 -3
  224. package/dist/types/src/hooks.d.ts.map +0 -1
  225. package/dist/types/src/types.d.ts.map +0 -1
  226. package/src/capabilities/app-graph-builder.ts +0 -52
  227. package/src/capabilities/capabilities.ts +0 -20
  228. package/src/capabilities/intent-resolver.ts +0 -37
  229. package/src/capabilities/keyboard.ts +0 -59
  230. package/src/capabilities/react-surface.tsx +0 -45
  231. package/src/capabilities/state.ts +0 -104
  232. package/src/components/CommandsDialog/CommandsDialog.tsx +0 -118
  233. package/src/components/CommandsDialog/CommandsTrigger.tsx +0 -35
  234. package/src/components/CommandsDialog/index.ts +0 -6
  235. package/src/components/NavTreeContainer.tsx +0 -313
  236. package/src/events.ts +0 -11
  237. package/src/hooks.ts +0 -21
  238. /package/dist/types/src/{components/CommandsDialog → containers/CommandsTrigger}/CommandsTrigger.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"L1Panel.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/L1Panel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AA2B5C,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAiHF,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,eAAe,GAAG,QAAQ,CAAC,GAAG;IACpF,aAAa,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IAC3B,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,qCAAqC,aAAa,sBAgB1E,CAAC"}
1
+ {"version":3,"file":"L1Panel.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/L1Panel.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAevC,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAkQF,eAAO,MAAM,OAAO,sEA7PuC,YAAY,uBA6PlC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { type Node } from '@dxos/app-graph';
3
+ import { type L1PanelProps } from './L1Panel';
4
+ export type L1TabsProps = Pick<L1PanelProps, 'open' | 'onBack'> & {
5
+ currentItemId: string;
6
+ path: string[];
7
+ topLevelItems: Node.Node[];
8
+ };
9
+ /**
10
+ * Each workspace is an L1 tab.
11
+ */
12
+ export declare const L1Tabs: ({ topLevelItems, currentItemId, onBack, open, path }: L1TabsProps) => React.JSX.Element;
13
+ //# sourceMappingURL=L1Tabs.d.ts.map
@@ -0,0 +1 @@
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,3 +1,4 @@
1
1
  export * from './L0Menu';
2
2
  export * from './L1Panel';
3
+ export * from './L1Tabs';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"UserAccountAvatar.d.ts","sourceRoot":"","sources":["../../../../../src/components/UserAccountAvatar/UserAccountAvatar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAU,KAAK,YAAY,EAAE,KAAK,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAGtE,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,sCAAsC,sBAAsB,sBAiB7F,CAAC"}
1
+ {"version":3,"file":"UserAccountAvatar.d.ts","sourceRoot":"","sources":["../../../../../src/components/UserAccountAvatar/UserAccountAvatar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAU,KAAK,YAAY,EAAE,KAAK,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAKtE,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,sCAAsC,sBAAsB,sBAuB7F,CAAC"}
@@ -1,7 +1,10 @@
1
- import '@dxos-theme';
2
- import { type Meta } from '@storybook/react-vite';
3
- import { UserAccountAvatar } from './UserAccountAvatar';
4
- declare const meta: Meta<typeof UserAccountAvatar>;
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ declare const meta: {
3
+ title: string;
4
+ decorators: import("@storybook/react").Decorator[];
5
+ component: ({ size, userId, hue, emoji, status }: import("./UserAccountAvatar").UserAccountAvatarProps) => import("react").JSX.Element;
6
+ };
5
7
  export default meta;
6
- export declare const Default: {};
8
+ type Story = StoryObj<typeof meta>;
9
+ export declare const Default: Story;
7
10
  //# sourceMappingURL=UserAccountAvatar.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UserAccountAvatar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/UserAccountAvatar/UserAccountAvatar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAIlD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,iBAAiB,CAIxC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,IAAK,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';
4
+ import type { TreeModel, TreeProps } from '@dxos/react-ui-list';
5
+ import type { NavTreeItemGraphNode } from '../types';
6
6
  import type { L1PanelProps } from './Sidebar';
7
- import type { FlattenedActions, NavTreeItemGraphNode } from '../types';
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
- getActions: (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,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEvE,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,QAAQ,CAAC,GAAG;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,EAAE,CAAC;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,IAAI,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAClD,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,gBAAgB,CAAC;IAC7C,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,YAAY,CAAC,IAAI,CAAC,CAAC;IACrD,eAAe,CAAC,EAAE,CAAC,IAAI,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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,mGA4GjC,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,yBAY3B,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,8FAmO7B,CAAC;AAEF,eAAO,MAAM,gBAAgB,yFAA0B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { NavTreeContainer } from './NavTreeContainer';
2
+ export default 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,MAAM,oBAAoB,CAAC;AAEtD,eAAe,gBAAgB,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/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,qCAAqC,CAAC;AAEhE,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,10 +1,9 @@
1
1
  import React, { type HTMLAttributes, type PropsWithChildren } from 'react';
2
2
  import { type ClassNameValue, type Size } from '@dxos/react-ui';
3
- export declare const IconButton: ({ iconName, classNames, size, onClick, weight, }: {
3
+ export declare const IconButton: ({ iconName, classNames, size, onClick, }: {
4
4
  iconName: string;
5
5
  classNames?: ClassNameValue;
6
6
  size?: Size;
7
- weight?: "regular" | "duotone" | "fill";
8
7
  } & Pick<HTMLAttributes<HTMLDivElement>, "onClick">) => React.JSX.Element;
9
8
  export type TreeNodeData = {
10
9
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Tree.d.ts","sourceRoot":"","sources":["../../../../src/experimental/Tree.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,cAAc,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE3E,OAAO,EAAE,KAAK,cAAc,EAAQ,KAAK,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAStE,eAAO,MAAM,UAAU,GAAI,kDAMxB;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,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Aa,CAAC;AAEnF,eAAO,MAAM,IAAI,GAAI,mCAAmC,SAAS,sBAchE,CAAC"}
@@ -1,8 +1,25 @@
1
- import '@dxos-theme';
2
- import { type Meta } from '@storybook/react-vite';
3
- import { type JSX } from 'react';
4
- export declare const Default: () => JSX.Element;
5
- export declare const Visitor: () => JSX.Element;
6
- declare const meta: Meta;
1
+ import React from 'react';
2
+ import { type TreeProps } from './Tree';
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ className, showRoot, ...props }: TreeProps) => React.JSX.Element;
6
+ decorators: import("@storybook/react").Decorator[];
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ };
7
11
  export default meta;
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;
8
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":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAc,EAAE,KAAK,GAAG,EAA+C,MAAM,OAAO,CAAC;AAoGrF,eAAO,MAAM,OAAO,mBAEnB,CAAC;AAEF,eAAO,MAAM,OAAO,mBAenB,CAAC;AAmGF,QAAA,MAAM,IAAI,EAAE,IAIX,CAAC;AAEF,eAAe,IAAI,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,7 @@
1
+ import { Node } from '@dxos/plugin-graph';
2
+ import { type FlattenedActions } from '../types';
3
+ /**
4
+ * Returns flattened actions and grouped sub-actions for a given graph node.
5
+ */
6
+ export declare const useActions: (node: Node.Node) => FlattenedActions;
7
+ //# 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;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,MAAM,IAAI,CAAC,IAAI,KAAG,gBAuB5C,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;AA0ErD;;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,6 +1,5 @@
1
- import { type PluginMeta } from '@dxos/app-framework';
2
- export declare const NAVTREE_PLUGIN = "dxos.org/plugin/navtree";
1
+ import { type Plugin } from '@dxos/app-framework';
2
+ export declare const meta: Plugin.Meta;
3
3
  export declare const KEY_BINDING = "KeyBinding";
4
- export declare const COMMANDS_DIALOG = "dxos.org/plugin/navtree/CommandsDialog";
5
- export declare const meta: PluginMeta;
4
+ export declare const COMMANDS_DIALOG: string;
6
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;AAEtD,eAAO,MAAM,cAAc,4BAA4B,CAAC;AAGxD,eAAO,MAAM,WAAW,eAAe,CAAC;AAExC,eAAO,MAAM,eAAe,2CAAqC,CAAC;AAElE,eAAO,MAAM,IAAI,EAAE,UAGlB,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,QAA8B,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":"AAOA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,EAA4B,KAAK,iBAAiB,EAAE,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 { Schema } from 'effect';
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,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,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,SAAgB,SAAS,EAAE,gBAAgB,CAAC;gBAEhC,EAAE,KAAK,EAAE,SAAS,EAAE,GAAE;QAAE,KAAK,CAAC,EAAE,MAAM,EAAE,CAA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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"}
@@ -10,6 +10,7 @@ export declare const translations: [{
10
10
  readonly 'node actions menu invoker label': "More options";
11
11
  readonly 'tree item actions label': "More actions";
12
12
  readonly 'empty branch message': " ";
13
+ readonly 'button back': "Back to Space";
13
14
  };
14
15
  };
15
16
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,eAAO,MAAM,YAAY;;QAGnB,SAAA,CAAC,IAAI,CAAC,EAAE,CAAC;;;;;;;;;UASR;;EAGwB,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,eAAO,MAAM,YAAY;;QAGnB,SAAA,CAAC,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;UAUR;;EAGwB,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,28 +1,29 @@
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
- label: Label;
20
- icon?: string;
19
+ testId?: string;
21
20
  disabled?: boolean;
22
21
  position?: Position;
23
- testId?: string;
22
+ label: Label;
24
23
  className?: string;
25
24
  headingClassName?: string;
25
+ icon?: string;
26
+ iconHue?: string;
26
27
  };
27
28
  export type NodeProperties = SharedProperties & {
28
29
  role?: string;
@@ -48,4 +49,4 @@ export type KeyBinding = {
48
49
  unknown?: string;
49
50
  };
50
51
  export {};
51
- //# 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,CAAC;AAE9D,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,IAAI,CAC1C,GAAG,EACH,OAAO,CACL,cAAc,GAAG;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,sBAAsB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACpC,oBAAoB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAClC,WAAW,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,YAAY,CAAC,IAAI,CAAC,CAAC;IAC1D,MAAM,EAAE,CAAC,UAAU,EAAE,oBAAoB,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,IAAI,CAAC,CAAC;IACjF,eAAe,EAAE,CAAC,UAAU,EAAE,oBAAoB,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,Y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