@dxos/plugin-simple-layout 0.8.4-main.69d29f4 → 0.8.4-main.74a063c4e0

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 (247) hide show
  1. package/dist/lib/browser/index.mjs +44 -58
  2. package/dist/lib/browser/index.mjs.map +4 -4
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/lib/node-esm/index.mjs +44 -57
  5. package/dist/lib/node-esm/index.mjs.map +4 -4
  6. package/dist/lib/node-esm/meta.json +1 -1
  7. package/dist/types/src/SimpleLayoutPlugin.d.ts +1 -1
  8. package/dist/types/src/SimpleLayoutPlugin.d.ts.map +1 -1
  9. package/dist/types/src/capabilities/app-graph-builder.d.ts +6 -0
  10. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
  11. package/dist/types/src/capabilities/index.d.ts +21 -6
  12. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  13. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  14. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  15. package/dist/types/src/capabilities/{react-root/react-root.d.ts → react-root.d.ts} +1 -1
  16. package/dist/types/src/capabilities/react-root.d.ts.map +1 -0
  17. package/dist/types/src/capabilities/react-surface.d.ts +5 -0
  18. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  19. package/dist/types/src/capabilities/{spotlight-dismiss/spotlight-dismiss.d.ts → spotlight-dismiss.d.ts} +1 -1
  20. package/dist/types/src/capabilities/spotlight-dismiss.d.ts.map +1 -0
  21. package/dist/types/src/capabilities/{state/state.d.ts → state.d.ts} +2 -2
  22. package/dist/types/src/capabilities/state.d.ts.map +1 -0
  23. package/dist/types/src/capabilities/url-handler.d.ts +12 -0
  24. package/dist/types/src/capabilities/url-handler.d.ts.map +1 -0
  25. package/dist/types/src/components/ContentError.stories.d.ts +26 -15
  26. package/dist/types/src/components/ContentError.stories.d.ts.map +1 -1
  27. package/dist/types/src/components/DebugOverlay/DebugOverlay.d.ts +19 -0
  28. package/dist/types/src/components/DebugOverlay/DebugOverlay.d.ts.map +1 -0
  29. package/dist/types/src/components/DebugOverlay/index.d.ts +2 -0
  30. package/dist/types/src/components/DebugOverlay/index.d.ts.map +1 -0
  31. package/dist/types/src/components/Home/Home.d.ts.map +1 -1
  32. package/dist/types/src/components/Loading/Loading.d.ts +3 -0
  33. package/dist/types/src/components/Loading/Loading.d.ts.map +1 -0
  34. package/dist/types/src/components/{ContentLoading.stories.d.ts → Loading/Loading.stories.d.ts} +1 -1
  35. package/dist/types/src/components/Loading/Loading.stories.d.ts.map +1 -0
  36. package/dist/types/src/components/Loading/index.d.ts +2 -0
  37. package/dist/types/src/components/Loading/index.d.ts.map +1 -0
  38. package/dist/types/src/components/MobileLayout/MobileLayout.d.ts +35 -0
  39. package/dist/types/src/components/MobileLayout/MobileLayout.d.ts.map +1 -0
  40. package/dist/types/src/components/MobileLayout/MobileLayout.stories.d.ts +7 -0
  41. package/dist/types/src/components/MobileLayout/MobileLayout.stories.d.ts.map +1 -0
  42. package/dist/types/src/components/MobileLayout/index.d.ts +2 -0
  43. package/dist/types/src/components/MobileLayout/index.d.ts.map +1 -0
  44. package/dist/types/src/components/NavBranch/NavBranch.d.ts +11 -0
  45. package/dist/types/src/components/NavBranch/NavBranch.d.ts.map +1 -0
  46. package/dist/types/src/components/NavBranch/index.d.ts +2 -0
  47. package/dist/types/src/components/NavBranch/index.d.ts.map +1 -0
  48. package/dist/types/src/components/Popover/Popover.d.ts.map +1 -1
  49. package/dist/types/src/components/SimpleLayout/AppBar.d.ts +28 -0
  50. package/dist/types/src/components/SimpleLayout/AppBar.d.ts.map +1 -0
  51. package/dist/types/src/components/SimpleLayout/AppBar.stories.d.ts +54 -0
  52. package/dist/types/src/components/SimpleLayout/AppBar.stories.d.ts.map +1 -0
  53. package/dist/types/src/components/SimpleLayout/Drawer.d.ts +9 -0
  54. package/dist/types/src/components/SimpleLayout/Drawer.d.ts.map +1 -0
  55. package/dist/types/src/components/SimpleLayout/Main.d.ts +1 -1
  56. package/dist/types/src/components/SimpleLayout/Main.d.ts.map +1 -1
  57. package/dist/types/src/components/SimpleLayout/NavBar.d.ts +18 -6
  58. package/dist/types/src/components/SimpleLayout/NavBar.d.ts.map +1 -1
  59. package/dist/types/src/components/SimpleLayout/NavBar.stories.d.ts +35 -21
  60. package/dist/types/src/components/SimpleLayout/NavBar.stories.d.ts.map +1 -1
  61. package/dist/types/src/components/SimpleLayout/SimpleLayout.d.ts.map +1 -1
  62. package/dist/types/src/components/SimpleLayout/SimpleLayout.stories.d.ts +26 -15
  63. package/dist/types/src/components/SimpleLayout/SimpleLayout.stories.d.ts.map +1 -1
  64. package/dist/types/src/components/SimpleLayout/index.d.ts +3 -0
  65. package/dist/types/src/components/SimpleLayout/index.d.ts.map +1 -1
  66. package/dist/types/src/components/hooks.d.ts +4 -2
  67. package/dist/types/src/components/hooks.d.ts.map +1 -1
  68. package/dist/types/src/components/index.d.ts +4 -2
  69. package/dist/types/src/components/index.d.ts.map +1 -1
  70. package/dist/types/src/hooks/actions.d.ts +19 -0
  71. package/dist/types/src/hooks/actions.d.ts.map +1 -0
  72. package/dist/types/src/hooks/index.d.ts +5 -0
  73. package/dist/types/src/hooks/index.d.ts.map +1 -1
  74. package/dist/types/src/hooks/useAppBarProps.d.ts +7 -0
  75. package/dist/types/src/hooks/useAppBarProps.d.ts.map +1 -0
  76. package/dist/types/src/hooks/useCompanions.d.ts +12 -0
  77. package/dist/types/src/hooks/useCompanions.d.ts.map +1 -0
  78. package/dist/types/src/hooks/useDrawerActions.d.ts +13 -0
  79. package/dist/types/src/hooks/useDrawerActions.d.ts.map +1 -0
  80. package/dist/types/src/hooks/useNavbarActions.d.ts +14 -0
  81. package/dist/types/src/hooks/useNavbarActions.d.ts.map +1 -0
  82. package/dist/types/src/hooks/useSimpleLayoutState.d.ts +3 -3
  83. package/dist/types/src/hooks/useSimpleLayoutState.d.ts.map +1 -1
  84. package/dist/types/src/operations/close.d.ts +5 -0
  85. package/dist/types/src/operations/close.d.ts.map +1 -0
  86. package/dist/types/src/operations/index.d.ts +3 -0
  87. package/dist/types/src/operations/index.d.ts.map +1 -0
  88. package/dist/types/src/operations/open.d.ts +5 -0
  89. package/dist/types/src/operations/open.d.ts.map +1 -0
  90. package/dist/types/src/operations/revert-workspace.d.ts +5 -0
  91. package/dist/types/src/operations/revert-workspace.d.ts.map +1 -0
  92. package/dist/types/src/operations/set-layout-mode.d.ts +5 -0
  93. package/dist/types/src/operations/set-layout-mode.d.ts.map +1 -0
  94. package/dist/types/src/operations/set.d.ts +5 -0
  95. package/dist/types/src/operations/set.d.ts.map +1 -0
  96. package/dist/types/src/operations/state-access.d.ts +8 -0
  97. package/dist/types/src/operations/state-access.d.ts.map +1 -0
  98. package/dist/types/src/operations/switch-workspace.d.ts +5 -0
  99. package/dist/types/src/operations/switch-workspace.d.ts.map +1 -0
  100. package/dist/types/src/operations/update-complementary.d.ts +5 -0
  101. package/dist/types/src/operations/update-complementary.d.ts.map +1 -0
  102. package/dist/types/src/operations/update-dialog.d.ts +5 -0
  103. package/dist/types/src/operations/update-dialog.d.ts.map +1 -0
  104. package/dist/types/src/operations/update-popover.d.ts +5 -0
  105. package/dist/types/src/operations/update-popover.d.ts.map +1 -0
  106. package/dist/types/src/operations/update-sidebar.d.ts +5 -0
  107. package/dist/types/src/operations/update-sidebar.d.ts.map +1 -0
  108. package/dist/types/src/translations.d.ts +26 -13
  109. package/dist/types/src/translations.d.ts.map +1 -1
  110. package/dist/types/src/types/capabilities.d.ts +18 -5
  111. package/dist/types/src/types/capabilities.d.ts.map +1 -1
  112. package/dist/types/src/types/events.d.ts.map +1 -1
  113. package/dist/types/tsconfig.tsbuildinfo +1 -1
  114. package/package.json +46 -30
  115. package/src/SimpleLayoutPlugin.ts +24 -13
  116. package/src/capabilities/app-graph-builder.ts +21 -0
  117. package/src/capabilities/index.ts +13 -6
  118. package/src/capabilities/operation-handler.ts +14 -0
  119. package/src/capabilities/{react-root/react-root.tsx → react-root.tsx} +4 -4
  120. package/src/capabilities/react-surface.tsx +50 -0
  121. package/src/capabilities/{spotlight-dismiss/spotlight-dismiss.ts → spotlight-dismiss.ts} +2 -2
  122. package/src/capabilities/{state/state.tsx → state.tsx} +8 -5
  123. package/src/capabilities/url-handler.ts +161 -0
  124. package/src/components/ContentError.stories.tsx +8 -7
  125. package/src/components/DebugOverlay/DebugOverlay.tsx +96 -0
  126. package/src/components/DebugOverlay/index.ts +5 -0
  127. package/src/components/Dialog/Dialog.tsx +6 -6
  128. package/src/components/Home/Home.tsx +51 -43
  129. package/src/components/{ContentLoading.stories.tsx → Loading/Loading.stories.tsx} +5 -5
  130. package/src/components/{ContentLoading.tsx → Loading/Loading.tsx} +2 -2
  131. package/src/components/Loading/index.ts +5 -0
  132. package/src/components/MobileLayout/MobileLayout.stories.tsx +133 -0
  133. package/src/components/MobileLayout/MobileLayout.tsx +374 -0
  134. package/src/components/MobileLayout/index.ts +5 -0
  135. package/src/components/NavBranch/NavBranch.tsx +128 -0
  136. package/src/components/{Workspace → NavBranch}/index.ts +1 -1
  137. package/src/components/Popover/Popover.tsx +10 -9
  138. package/src/components/SimpleLayout/AppBar.stories.tsx +143 -0
  139. package/src/components/SimpleLayout/AppBar.tsx +94 -0
  140. package/src/components/SimpleLayout/Drawer.tsx +98 -0
  141. package/src/components/SimpleLayout/Main.tsx +45 -48
  142. package/src/components/SimpleLayout/NavBar.stories.tsx +131 -27
  143. package/src/components/SimpleLayout/NavBar.tsx +21 -62
  144. package/src/components/SimpleLayout/SimpleLayout.stories.tsx +45 -55
  145. package/src/components/SimpleLayout/SimpleLayout.tsx +45 -7
  146. package/src/components/SimpleLayout/index.ts +3 -0
  147. package/src/components/hooks.ts +10 -14
  148. package/src/components/index.ts +4 -2
  149. package/src/hooks/actions.ts +84 -0
  150. package/src/hooks/index.ts +5 -0
  151. package/src/hooks/useAppBarProps.ts +115 -0
  152. package/src/hooks/useCompanions.ts +22 -0
  153. package/src/hooks/useDrawerActions.ts +100 -0
  154. package/src/hooks/useNavbarActions.ts +87 -0
  155. package/src/hooks/useSimpleLayoutState.ts +5 -5
  156. package/src/meta.ts +1 -1
  157. package/src/operations/close.ts +34 -0
  158. package/src/operations/index.ts +16 -0
  159. package/src/operations/open.ts +63 -0
  160. package/src/operations/revert-workspace.ts +22 -0
  161. package/src/operations/set-layout-mode.ts +12 -0
  162. package/src/operations/set.ts +23 -0
  163. package/src/operations/state-access.ts +19 -0
  164. package/src/operations/switch-workspace.ts +26 -0
  165. package/src/operations/update-complementary.ts +35 -0
  166. package/src/operations/update-dialog.ts +28 -0
  167. package/src/operations/update-popover.ts +35 -0
  168. package/src/operations/update-sidebar.ts +12 -0
  169. package/src/translations.ts +21 -13
  170. package/src/types/capabilities.ts +16 -7
  171. package/src/types/events.ts +3 -2
  172. package/dist/lib/browser/chunk-CLPGTNWJ.mjs +0 -29
  173. package/dist/lib/browser/chunk-CLPGTNWJ.mjs.map +0 -7
  174. package/dist/lib/browser/chunk-FK4M7GJV.mjs +0 -613
  175. package/dist/lib/browser/chunk-FK4M7GJV.mjs.map +0 -7
  176. package/dist/lib/browser/operation-resolver-LTB63NKP.mjs +0 -168
  177. package/dist/lib/browser/operation-resolver-LTB63NKP.mjs.map +0 -7
  178. package/dist/lib/browser/react-root-6ARAPH3O.mjs +0 -21
  179. package/dist/lib/browser/react-root-6ARAPH3O.mjs.map +0 -7
  180. package/dist/lib/browser/react-surface-SO7B23GS.mjs +0 -39
  181. package/dist/lib/browser/react-surface-SO7B23GS.mjs.map +0 -7
  182. package/dist/lib/browser/spotlight-dismiss-VSNOPETH.mjs +0 -66
  183. package/dist/lib/browser/spotlight-dismiss-VSNOPETH.mjs.map +0 -7
  184. package/dist/lib/browser/state-H4IGICBB.mjs +0 -45
  185. package/dist/lib/browser/state-H4IGICBB.mjs.map +0 -7
  186. package/dist/lib/browser/url-handler-7CFGTLNG.mjs +0 -54
  187. package/dist/lib/browser/url-handler-7CFGTLNG.mjs.map +0 -7
  188. package/dist/lib/node-esm/chunk-EGFZAVBD.mjs +0 -614
  189. package/dist/lib/node-esm/chunk-EGFZAVBD.mjs.map +0 -7
  190. package/dist/lib/node-esm/chunk-MUVVYBUE.mjs +0 -31
  191. package/dist/lib/node-esm/chunk-MUVVYBUE.mjs.map +0 -7
  192. package/dist/lib/node-esm/operation-resolver-7O6O7T4Q.mjs +0 -169
  193. package/dist/lib/node-esm/operation-resolver-7O6O7T4Q.mjs.map +0 -7
  194. package/dist/lib/node-esm/react-root-2CPA2ZUS.mjs +0 -22
  195. package/dist/lib/node-esm/react-root-2CPA2ZUS.mjs.map +0 -7
  196. package/dist/lib/node-esm/react-surface-FKAV56MO.mjs +0 -40
  197. package/dist/lib/node-esm/react-surface-FKAV56MO.mjs.map +0 -7
  198. package/dist/lib/node-esm/spotlight-dismiss-L5PCWIJG.mjs +0 -68
  199. package/dist/lib/node-esm/spotlight-dismiss-L5PCWIJG.mjs.map +0 -7
  200. package/dist/lib/node-esm/state-QIU2LMLT.mjs +0 -46
  201. package/dist/lib/node-esm/state-QIU2LMLT.mjs.map +0 -7
  202. package/dist/lib/node-esm/url-handler-4LYP3JM7.mjs +0 -55
  203. package/dist/lib/node-esm/url-handler-4LYP3JM7.mjs.map +0 -7
  204. package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -3
  205. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
  206. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -5
  207. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
  208. package/dist/types/src/capabilities/react-root/index.d.ts +0 -6
  209. package/dist/types/src/capabilities/react-root/index.d.ts.map +0 -1
  210. package/dist/types/src/capabilities/react-root/react-root.d.ts.map +0 -1
  211. package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
  212. package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
  213. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +0 -5
  214. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
  215. package/dist/types/src/capabilities/spotlight-dismiss/index.d.ts +0 -3
  216. package/dist/types/src/capabilities/spotlight-dismiss/index.d.ts.map +0 -1
  217. package/dist/types/src/capabilities/spotlight-dismiss/spotlight-dismiss.d.ts.map +0 -1
  218. package/dist/types/src/capabilities/state/index.d.ts +0 -13
  219. package/dist/types/src/capabilities/state/index.d.ts.map +0 -1
  220. package/dist/types/src/capabilities/state/state.d.ts.map +0 -1
  221. package/dist/types/src/capabilities/url-handler/index.d.ts +0 -3
  222. package/dist/types/src/capabilities/url-handler/index.d.ts.map +0 -1
  223. package/dist/types/src/capabilities/url-handler/url-handler.d.ts +0 -10
  224. package/dist/types/src/capabilities/url-handler/url-handler.d.ts.map +0 -1
  225. package/dist/types/src/components/ContentError.d.ts +0 -5
  226. package/dist/types/src/components/ContentError.d.ts.map +0 -1
  227. package/dist/types/src/components/ContentLoading.d.ts +0 -3
  228. package/dist/types/src/components/ContentLoading.d.ts.map +0 -1
  229. package/dist/types/src/components/ContentLoading.stories.d.ts.map +0 -1
  230. package/dist/types/src/components/SimpleLayout/Banner.d.ts +0 -8
  231. package/dist/types/src/components/SimpleLayout/Banner.d.ts.map +0 -1
  232. package/dist/types/src/components/Workspace/Workspace.d.ts +0 -9
  233. package/dist/types/src/components/Workspace/Workspace.d.ts.map +0 -1
  234. package/dist/types/src/components/Workspace/index.d.ts +0 -2
  235. package/dist/types/src/components/Workspace/index.d.ts.map +0 -1
  236. package/src/capabilities/operation-resolver/index.ts +0 -10
  237. package/src/capabilities/operation-resolver/operation-resolver.ts +0 -178
  238. package/src/capabilities/react-root/index.ts +0 -7
  239. package/src/capabilities/react-surface/index.ts +0 -7
  240. package/src/capabilities/react-surface/react-surface.tsx +0 -40
  241. package/src/capabilities/spotlight-dismiss/index.ts +0 -7
  242. package/src/capabilities/state/index.ts +0 -9
  243. package/src/capabilities/url-handler/index.ts +0 -7
  244. package/src/capabilities/url-handler/url-handler.ts +0 -80
  245. package/src/components/ContentError.tsx +0 -23
  246. package/src/components/SimpleLayout/Banner.tsx +0 -82
  247. package/src/components/Workspace/Workspace.tsx +0 -115
@@ -1 +1 @@
1
- {"version":3,"file":"NavBar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/NavBar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAUjE,QAAA,MAAM,IAAI;;;;;;;;yBARoD,CACzD,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;CAuBkB,CAAC;AAEhC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAI1B,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KAIjC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAI3B,CAAC"}
1
+ {"version":3,"file":"NavBar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/NavBar.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAkB,MAAM,OAAO,CAAC;AAoFvC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;yBAnFiE,CAE3E,IAAG,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;CAyFwB,CAAC;AAEhC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAQnC,eAAO,MAAM,OAAO,EAAE,KA8BrB,CAAC;AAQF,eAAO,MAAM,cAAc,EAAE,KAG5B,CAAC;AAQF,eAAO,MAAM,KAAK,EAAE,KAGnB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SimpleLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/SimpleLayout.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,eAAO,MAAM,YAAY,yBAQxB,CAAC"}
1
+ {"version":3,"file":"SimpleLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/SimpleLayout.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA4C,MAAM,OAAO,CAAC;AAcjE,eAAO,MAAM,YAAY,yBAuCxB,CAAC"}
@@ -1,4 +1,8 @@
1
1
  import { type StoryObj } from '@storybook/react-vite';
2
+ /**
3
+ * NOTE: To expose to iphone on network:
4
+ * `moon run storybook-react:serve dev -H 0.0.0.0`
5
+ */
2
6
  declare const meta: {
3
7
  title: string;
4
8
  component: () => import("react").JSX.Element;
@@ -6,25 +10,32 @@ declare const meta: {
6
10
  layout: string;
7
11
  translations: ({
8
12
  readonly 'en-US': {
9
- readonly [meta.id]: {
10
- readonly 'plugin name': "Simple layout";
11
- readonly 'settings title': "Simple layout settings";
12
- readonly 'workspaces heading': "Workspaces";
13
- readonly 'settings heading': "Settings";
14
- readonly 'back label': "Back";
15
- readonly 'browse label': "Browse";
16
- readonly 'notifications label': "Notifications";
17
- readonly 'profile label': "Profile";
18
- readonly 'app menu label': "App menu";
19
- readonly 'main menu label': "Main menu";
20
- readonly 'error fallback message': "An error occurred";
21
- readonly 'search placeholder': "Search...";
13
+ readonly "@dxos/react-ui-search": {
14
+ readonly "search.placeholder": "Search...";
15
+ readonly "empty-results.message": "No matching objects";
22
16
  };
23
17
  };
24
18
  } | {
25
19
  readonly 'en-US': {
26
- readonly "@dxos/react-ui-searchlist": {
27
- readonly "search.placeholder": "Search...";
20
+ readonly [meta.id]: {
21
+ readonly 'plugin.name': "Simple layout";
22
+ readonly 'settings.title': "Simple layout settings";
23
+ readonly 'workspaces.heading': "Workspaces";
24
+ readonly 'settings.heading': "Settings";
25
+ readonly 'back.label': "Back";
26
+ readonly 'browse.label': "Browse";
27
+ readonly 'notifications.label': "Notifications";
28
+ readonly 'profile.label': "Profile";
29
+ readonly 'app-menu.label': "App menu";
30
+ readonly 'main-menu.label': "Main menu";
31
+ readonly 'companions-menu.label': "Companions";
32
+ readonly 'error-fallback.message': "An error occurred";
33
+ readonly 'drawer.label': "Drawer";
34
+ readonly 'close-drawer.label': "Close drawer";
35
+ readonly 'expand-drawer.label': "Expand drawer";
36
+ readonly 'collapse-drawer.label': "Collapse drawer";
37
+ readonly 'actions-menu.label': "Actions";
38
+ readonly 'done.label': "Done";
28
39
  };
29
40
  };
30
41
  })[];
@@ -1 +1 @@
1
- {"version":3,"file":"SimpleLayout.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/SimpleLayout.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AA4EjE,QAAA,MAAM,IAAI;;;;;;;yBAzEW,CAAQ,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;CAgFA,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC"}
1
+ {"version":3,"file":"SimpleLayout.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/SimpleLayout.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AA8DjE;;;GAGG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;yBA9DmC,CAAQ,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;CAqExB,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC"}
@@ -1,2 +1,5 @@
1
+ export * from './AppBar';
2
+ export * from './Main';
3
+ export * from './NavBar';
1
4
  export * from './SimpleLayout';
2
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC"}
@@ -1,5 +1,7 @@
1
1
  /**
2
- * Hook to expand graph nodes two levels deep when directly linked to.
2
+ * Expand graph nodes along the full path from root to the given node ID.
3
+ * Walks each progressive prefix, ensuring ancestor nodes are materialized
4
+ * before attempting to access their children.
3
5
  */
4
- export declare const useLoadDescendents: (nodeId?: string) => void;
6
+ export declare const useExpandPath: (nodeId?: string) => void;
5
7
  //# sourceMappingURL=hooks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks.ts"],"names":[],"mappings":"AASA;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,SAAS,MAAM,SAiBjD,CAAC"}
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks.ts"],"names":[],"mappings":"AAUA;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,SAAS,MAAM,SAU5C,CAAC"}
@@ -1,6 +1,8 @@
1
- export * from './ContentLoading';
1
+ export * from './DebugOverlay';
2
2
  export * from './Home';
3
+ export * from './Loading';
4
+ export * from './MobileLayout';
3
5
  export * from './Popover';
4
6
  export * from './SimpleLayout';
5
- export * from './Workspace';
7
+ export * from './NavBranch';
6
8
  //# 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,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { type Atom } from '@effect-atom/atom-react';
2
+ import { type AppCapabilities } from '@dxos/app-toolkit';
3
+ import { type ActionGraphProps } from '@dxos/react-ui-menu';
4
+ import { type SimpleLayoutState } from '#types';
5
+ export declare const PLANK_COMPANION_TYPE = "org.dxos.plugin.deck.plank-companion";
6
+ export type CompanionActionsConfig = {
7
+ /** Prefix for companion action IDs (e.g. 'navbar' or 'drawer') */
8
+ idPrefix: string;
9
+ /** Optional: highlight companion with this variant */
10
+ selectedVariant?: string;
11
+ /** State updater for toggling the drawer. */
12
+ updateState: (fn: (state: SimpleLayoutState) => SimpleLayoutState) => void;
13
+ };
14
+ /**
15
+ * Creates action graph nodes and edges for companion actions.
16
+ * Shared logic between useNavbarActions and useDrawerActions.
17
+ */
18
+ export declare const createCompanionActions: (graph: AppCapabilities.AppGraph["graph"], stateAtom: Atom.Atom<SimpleLayoutState>, get: (atom: Atom.Atom<any>) => any, config: CompanionActionsConfig) => Pick<ActionGraphProps, "nodes" | "edges">;
19
+ //# sourceMappingURL=actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/actions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAGpD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGzD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAGhD,eAAO,MAAM,oBAAoB,yCAAyC,CAAC;AAE3E,MAAM,MAAM,sBAAsB,GAAG;IACnC,kEAAkE;IAClE,QAAQ,EAAE,MAAM,CAAC;IACjB,sDAAsD;IACtD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,6CAA6C;IAC7C,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,iBAAiB,KAAK,IAAI,CAAC;CAC5E,CAAC;AAEF;;;GAGG;AAEH,eAAO,MAAM,sBAAsB,GACjC,OAAO,eAAe,CAAC,QAAQ,CAAC,OAAO,CAAC,EACxC,WAAW,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,EACvC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,EAClC,QAAQ,sBAAsB,KAC7B,IAAI,CAAC,gBAAgB,EAAE,OAAO,GAAG,OAAO,CA8C1C,CAAC"}
@@ -1,2 +1,7 @@
1
+ export * from './useAppBarProps';
2
+ export * from './useCompanions';
3
+ export * from './actions';
4
+ export * from './useDrawerActions';
5
+ export * from './useNavbarActions';
1
6
  export * from './useSimpleLayoutState';
2
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { type AppBarProps } from '#components';
2
+ /**
3
+ * Hook that computes all AppBar props from the app graph.
4
+ * Derives activeId from state atom. Returns props ready to spread into the AppBar component.
5
+ */
6
+ export declare const useAppBarProps: () => Omit<AppBarProps, "classNames">;
7
+ //# sourceMappingURL=useAppBarProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAppBarProps.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAppBarProps.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAI/C;;;GAGG;AACH,eAAO,MAAM,cAAc,QAAO,IAAI,CAAC,WAAW,EAAE,YAAY,CA0F/D,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @deprecated Adopt the pattern from useNavbarActions (deriving from graph atoms)
3
+ * or merge the Drawer companion display into the NavBar component.
4
+ */
5
+ export declare const useCompanions: (nodeId?: string) => Readonly<{
6
+ id: string;
7
+ type: string;
8
+ cacheable?: string[];
9
+ properties: Readonly<Record<string, any>>;
10
+ data: any;
11
+ }>[];
12
+ //# sourceMappingURL=useCompanions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCompanions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useCompanions.ts"],"names":[],"mappings":"AAYA;;;GAGG;AACH,eAAO,MAAM,aAAa,GAAI,SAAS,MAAM;;;;;;IAK5C,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { Atom } from '@effect-atom/atom-react';
2
+ import { type ActionExecutor, type ActionGraphProps } from '@dxos/react-ui-menu';
3
+ export type DrawerActions = {
4
+ /** Action graph atom for the drawer. */
5
+ actions: Atom.Atom<ActionGraphProps>;
6
+ /** Action executor callback. */
7
+ onAction: ActionExecutor;
8
+ };
9
+ /**
10
+ * Builds the drawer actions including companion tabs and toolbar buttons.
11
+ */
12
+ export declare const useDrawerActions: (consumerName: string) => DrawerActions;
13
+ //# sourceMappingURL=useDrawerActions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDrawerActions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDrawerActions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAQ/C,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAsB,MAAM,qBAAqB,CAAC;AASrG,MAAM,MAAM,aAAa,GAAG;IAC1B,wCAAwC;IACxC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACrC,gCAAgC;IAChC,QAAQ,EAAE,cAAc,CAAC;CAC1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,cAAc,MAAM,KAAG,aAoEvD,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { Atom } from '@effect-atom/atom-react';
2
+ import { type ActionExecutor, type ActionGraphProps } from '@dxos/react-ui-menu';
3
+ export type NavbarActions = {
4
+ /** Action graph atom for the navbar. */
5
+ actions: Atom.Atom<ActionGraphProps>;
6
+ /** Action executor callback. */
7
+ onAction: ActionExecutor;
8
+ };
9
+ /**
10
+ * Builds the navbar actions including companion icons, separator, and main menu dropdown.
11
+ * Derives everything from graph connection atoms for proper reactivity.
12
+ */
13
+ export declare const useNavbarActions: () => NavbarActions;
14
+ //# sourceMappingURL=useNavbarActions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useNavbarActions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useNavbarActions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAO/C,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EAGtB,MAAM,qBAAqB,CAAC;AAU7B,MAAM,MAAM,aAAa,GAAG;IAC1B,wCAAwC;IACxC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACrC,gCAAgC;IAChC,QAAQ,EAAE,cAAc,CAAC;CAC1B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,QAAO,aAiDnC,CAAC"}
@@ -1,7 +1,7 @@
1
- import { type SimpleLayoutState } from '../types';
2
- export type SimpleLayoutStateHook = {
1
+ import { SimpleLayoutState } from '#types';
2
+ export type UseSimpleLayoutState = {
3
3
  state: SimpleLayoutState;
4
4
  updateState: (fn: (current: SimpleLayoutState) => SimpleLayoutState) => void;
5
5
  };
6
- export declare const useSimpleLayoutState: () => SimpleLayoutStateHook;
6
+ export declare const useSimpleLayoutState: () => UseSimpleLayoutState;
7
7
  //# sourceMappingURL=useSimpleLayoutState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSimpleLayoutState.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSimpleLayoutState.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,iBAAiB,EAAoD,MAAM,UAAU,CAAC;AAEpG,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,iBAAiB,CAAC;IACzB,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,iBAAiB,KAAK,IAAI,CAAC;CAC9E,CAAC;AAEF,eAAO,MAAM,oBAAoB,QAAO,qBAavC,CAAC"}
1
+ {"version":3,"file":"useSimpleLayoutState.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSimpleLayoutState.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAE3C,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,iBAAiB,CAAC;IACzB,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,iBAAiB,KAAK,IAAI,CAAC;CAC9E,CAAC;AAEF,eAAO,MAAM,oBAAoB,QAAO,oBAavC,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.Close>;
4
+ export default handler;
5
+ //# sourceMappingURL=close.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"close.d.ts","sourceRoot":"","sources":["../../../../src/operations/close.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,KAAK,CAsBhE,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { OperationHandlerSet } from '@dxos/operation';
2
+ export declare const SimpleLayoutOperationHandlerSet: 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":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,eAAO,MAAM,+BAA+B,yCAW3C,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.Open>;
4
+ export default handler;
5
+ //# sourceMappingURL=open.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open.d.ts","sourceRoot":"","sources":["../../../../src/operations/open.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,eAAe,EAGhB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAK5C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,IAAI,CAyC/D,CAAC;AAEF,eAAe,OAAO,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.RevertWorkspace>;
4
+ export default handler;
5
+ //# sourceMappingURL=revert-workspace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"revert-workspace.d.ts","sourceRoot":"","sources":["../../../../src/operations/revert-workspace.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,eAAe,CAU1E,CAAC;AAEF,eAAe,OAAO,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.SetLayoutMode>;
4
+ export default handler;
5
+ //# sourceMappingURL=set-layout-mode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-layout-mode.d.ts","sourceRoot":"","sources":["../../../../src/operations/set-layout-mode.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,aAAa,CAExE,CAAC;AAEF,eAAe,OAAO,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.Set>;
4
+ export default handler;
5
+ //# sourceMappingURL=set.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set.d.ts","sourceRoot":"","sources":["../../../../src/operations/set.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,GAAG,CAW9D,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,8 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ import { type SimpleLayoutState } from '../types';
4
+ export declare const layoutStateAccess: Effect.Effect<{
5
+ getState: () => SimpleLayoutState;
6
+ updateState: (fn: (current: SimpleLayoutState) => SimpleLayoutState) => void;
7
+ }, Error, Capability.Service>;
8
+ //# sourceMappingURL=state-access.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state-access.d.ts","sourceRoot":"","sources":["../../../../src/operations/state-access.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE/D,OAAO,EAAE,KAAK,iBAAiB,EAAoD,MAAM,UAAU,CAAC;AAEpG,eAAO,MAAM,iBAAiB;;sBAMR,CAAC,OAAO,EAAE,iBAAiB,KAAK,iBAAiB;6BAIrE,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.SwitchWorkspace>;
4
+ export default handler;
5
+ //# sourceMappingURL=switch-workspace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch-workspace.d.ts","sourceRoot":"","sources":["../../../../src/operations/switch-workspace.ts"],"names":[],"mappings":"AAIA,OAAO,EAAqB,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,eAAe,CAc1E,CAAC;AAEF,eAAe,OAAO,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.UpdateComplementary>;
4
+ export default handler;
5
+ //# sourceMappingURL=update-complementary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-complementary.d.ts","sourceRoot":"","sources":["../../../../src/operations/update-complementary.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAK5C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,mBAAmB,CAsB5E,CAAC;AAEJ,eAAe,OAAO,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.UpdateDialog>;
4
+ export default handler;
5
+ //# sourceMappingURL=update-dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-dialog.d.ts","sourceRoot":"","sources":["../../../../src/operations/update-dialog.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,YAAY,CAgBvE,CAAC;AAEF,eAAe,OAAO,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.UpdatePopover>;
4
+ export default handler;
5
+ //# sourceMappingURL=update-popover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-popover.d.ts","sourceRoot":"","sources":["../../../../src/operations/update-popover.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,aAAa,CAuBxE,CAAC;AAEF,eAAe,OAAO,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.UpdateSidebar>;
4
+ export default handler;
5
+ //# sourceMappingURL=update-sidebar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-sidebar.d.ts","sourceRoot":"","sources":["../../../../src/operations/update-sidebar.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,aAAa,CAExE,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,19 +1,32 @@
1
- import { meta } from './meta';
1
+ import { meta } from '#meta';
2
2
  export declare const translations: [{
3
+ readonly 'en-US': {
4
+ readonly "@dxos/react-ui-search": {
5
+ readonly "search.placeholder": "Search...";
6
+ readonly "empty-results.message": "No matching objects";
7
+ };
8
+ };
9
+ }, {
3
10
  readonly 'en-US': {
4
11
  readonly [meta.id]: {
5
- readonly 'plugin name': "Simple layout";
6
- readonly 'settings title': "Simple layout settings";
7
- readonly 'workspaces heading': "Workspaces";
8
- readonly 'settings heading': "Settings";
9
- readonly 'back label': "Back";
10
- readonly 'browse label': "Browse";
11
- readonly 'notifications label': "Notifications";
12
- readonly 'profile label': "Profile";
13
- readonly 'app menu label': "App menu";
14
- readonly 'main menu label': "Main menu";
15
- readonly 'error fallback message': "An error occurred";
16
- readonly 'search placeholder': "Search...";
12
+ readonly 'plugin.name': "Simple layout";
13
+ readonly 'settings.title': "Simple layout settings";
14
+ readonly 'workspaces.heading': "Workspaces";
15
+ readonly 'settings.heading': "Settings";
16
+ readonly 'back.label': "Back";
17
+ readonly 'browse.label': "Browse";
18
+ readonly 'notifications.label': "Notifications";
19
+ readonly 'profile.label': "Profile";
20
+ readonly 'app-menu.label': "App menu";
21
+ readonly 'main-menu.label': "Main menu";
22
+ readonly 'companions-menu.label': "Companions";
23
+ readonly 'error-fallback.message': "An error occurred";
24
+ readonly 'drawer.label': "Drawer";
25
+ readonly 'close-drawer.label': "Close drawer";
26
+ readonly 'expand-drawer.label': "Expand drawer";
27
+ readonly 'collapse-drawer.label': "Collapse drawer";
28
+ readonly 'actions-menu.label': "Actions";
29
+ readonly 'done.label': "Done";
17
30
  };
18
31
  };
19
32
  }];
@@ -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;;;;;;;;;;;;;UAaR;;EAGwB,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAE7B,eAAO,MAAM,YAAY;;;;;;;;;QAInB,SAAA,CAAC,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;UAmBR;;EAGwB,CAAC"}
@@ -1,16 +1,23 @@
1
1
  import { type Atom } from '@effect-atom/atom-react';
2
2
  import { Capability } from '@dxos/app-framework';
3
3
  import { type Label } from '@dxos/react-ui';
4
+ export type DrawerState = 'closed' | 'open' | 'expanded';
4
5
  export type SimpleLayoutState = {
5
6
  /** Data to be passed to the main content Surface. */
6
7
  content?: any;
8
+ previousWorkspace: string;
9
+ workspace: string;
10
+ active?: string;
7
11
  dialogOpen: boolean;
8
12
  dialogType?: 'default' | 'alert';
9
13
  dialogBlockAlign?: 'start' | 'center' | 'end';
10
14
  dialogOverlayClasses?: string;
11
15
  dialogOverlayStyle?: Record<string, any>;
12
16
  /** Data to be passed to the dialog Surface. */
13
- dialogContent?: any;
17
+ dialogContent?: {
18
+ component: string;
19
+ props?: any;
20
+ } | null;
14
21
  popoverOpen?: boolean;
15
22
  popoverSide?: 'top' | 'right' | 'bottom' | 'left';
16
23
  popoverVariant?: 'virtual' | 'react';
@@ -18,14 +25,20 @@ export type SimpleLayoutState = {
18
25
  popoverAnchorId?: string;
19
26
  popoverKind?: 'base' | 'card';
20
27
  popoverTitle?: Label;
21
- popoverContent?: any;
22
- workspace: string;
23
- previousWorkspace: string;
24
- active?: string;
28
+ popoverContent?: {
29
+ component: string;
30
+ props?: any;
31
+ } | {
32
+ subject: any;
33
+ } | null;
34
+ /** Bottom drawer state. */
35
+ drawerState: DrawerState;
25
36
  /** Stack of previously active item IDs for back navigation. */
26
37
  history: string[];
27
38
  /** Whether running in popover window context (hides mobile-specific UI). */
28
39
  isPopover?: boolean;
40
+ /** Variant of the companion to display in the drawer (e.g., "comments", "assistant-chat"). */
41
+ companionVariant?: string;
29
42
  };
30
43
  export declare const SimpleLayoutState: Capability.InterfaceDef<Atom.Writable<SimpleLayoutState, SimpleLayoutState>>;
31
44
  //# sourceMappingURL=capabilities.d.ts.map
@@ -1 +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;AACjD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAK5C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,qDAAqD;IACrD,OAAO,CAAC,EAAE,GAAG,CAAC;IAEd,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IACjC,gBAAgB,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IAC9C,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACzC,+CAA+C;IAC/C,aAAa,CAAC,EAAE,GAAG,CAAC;IAEpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAClD,cAAc,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IACrC,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,cAAc,CAAC,EAAE,GAAG,CAAC;IAErB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+DAA+D;IAC/D,OAAO,EAAE,MAAM,EAAE,CAAC;IAElB,4EAA4E;IAC5E,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,iBAAiB,8EAAwE,CAAC"}
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;AACjD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAI5C,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;AAGzD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,qDAAqD;IACrD,OAAO,CAAC,EAAE,GAAG,CAAC;IAEd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IACjC,gBAAgB,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IAC9C,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACzC,+CAA+C;IAC/C,aAAa,CAAC,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,GAAG,CAAA;KAAE,GAAG,IAAI,CAAC;IAE1D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAClD,cAAc,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IACrC,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,cAAc,CAAC,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,GAAG,CAAA;KAAE,GAAG;QAAE,OAAO,EAAE,GAAG,CAAA;KAAE,GAAG,IAAI,CAAC;IAE9E,2BAA2B;IAC3B,WAAW,EAAE,WAAW,CAAC;IAEzB,+DAA+D;IAC/D,OAAO,EAAE,MAAM,EAAE,CAAC;IAElB,4EAA4E;IAC5E,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,8FAA8F;IAC9F,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,8EAAwE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../src/types/events.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,eAAe,EAAU,MAAM,qBAAqB,CAAC;AAInE,yBAAiB,kBAAkB,CAAC;IAClC,wDAAwD;IACjD,MAAM,UAAU,EAAE,eAAe,CAAC,eAExC,CAAC;CACH"}
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,kBAAkB,CAAC;IAClC,wDAAwD;IACjD,MAAM,UAAU,EAAE,eAAe,CAAC,eAExC,CAAC;CACH"}