@dxos/plugin-simple-layout 0.8.4-main.9735255 → 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 (167) hide show
  1. package/dist/lib/browser/{chunk-P77G4YTR.mjs → chunk-7VLT3S46.mjs} +3 -3
  2. package/dist/lib/browser/chunk-7VLT3S46.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-TMZNLVT2.mjs +1170 -0
  4. package/dist/lib/browser/chunk-TMZNLVT2.mjs.map +7 -0
  5. package/dist/lib/browser/index.mjs +20 -19
  6. package/dist/lib/browser/index.mjs.map +3 -3
  7. package/dist/lib/browser/meta.json +1 -1
  8. package/dist/lib/browser/{operation-resolver-775UYAC2.mjs → operation-resolver-BYRIQOQT.mjs} +30 -28
  9. package/dist/lib/browser/operation-resolver-BYRIQOQT.mjs.map +7 -0
  10. package/dist/lib/browser/{react-root-KM55OMGJ.mjs → react-root-MMB575WY.mjs} +5 -5
  11. package/dist/lib/browser/react-root-MMB575WY.mjs.map +7 -0
  12. package/dist/lib/browser/{react-surface-BABGAWGY.mjs → react-surface-M6CURANW.mjs} +10 -8
  13. package/dist/lib/browser/react-surface-M6CURANW.mjs.map +7 -0
  14. package/dist/lib/browser/{spotlight-dismiss-VSNOPETH.mjs → spotlight-dismiss-67PHYS5B.mjs} +3 -3
  15. package/dist/lib/browser/spotlight-dismiss-67PHYS5B.mjs.map +7 -0
  16. package/dist/lib/browser/{state-OUFTC2KV.mjs → state-A3PGDWWZ.mjs} +5 -4
  17. package/dist/lib/browser/state-A3PGDWWZ.mjs.map +7 -0
  18. package/dist/lib/browser/url-handler-HTIUY6WL.mjs +152 -0
  19. package/dist/lib/browser/url-handler-HTIUY6WL.mjs.map +7 -0
  20. package/dist/lib/node-esm/chunk-FLOYBAHE.mjs +1171 -0
  21. package/dist/lib/node-esm/chunk-FLOYBAHE.mjs.map +7 -0
  22. package/dist/lib/node-esm/{chunk-F5TEKVJG.mjs → chunk-VIDE5UMB.mjs} +3 -3
  23. package/dist/lib/node-esm/chunk-VIDE5UMB.mjs.map +7 -0
  24. package/dist/lib/node-esm/index.mjs +20 -19
  25. package/dist/lib/node-esm/index.mjs.map +3 -3
  26. package/dist/lib/node-esm/meta.json +1 -1
  27. package/dist/lib/node-esm/{operation-resolver-LDNYS3DI.mjs → operation-resolver-BDTFNCS2.mjs} +30 -28
  28. package/dist/lib/node-esm/operation-resolver-BDTFNCS2.mjs.map +7 -0
  29. package/dist/lib/node-esm/{react-root-36UYFEEB.mjs → react-root-ENZKVSY4.mjs} +5 -5
  30. package/dist/lib/node-esm/react-root-ENZKVSY4.mjs.map +7 -0
  31. package/dist/lib/node-esm/{react-surface-CGHFVWU3.mjs → react-surface-ITVNQYLG.mjs} +10 -8
  32. package/dist/lib/node-esm/react-surface-ITVNQYLG.mjs.map +7 -0
  33. package/dist/lib/node-esm/{spotlight-dismiss-L5PCWIJG.mjs → spotlight-dismiss-RMLRZUVY.mjs} +3 -3
  34. package/dist/lib/node-esm/spotlight-dismiss-RMLRZUVY.mjs.map +7 -0
  35. package/dist/lib/node-esm/{state-Q2ZA26W5.mjs → state-ZCFZTTPL.mjs} +5 -4
  36. package/dist/lib/node-esm/state-ZCFZTTPL.mjs.map +7 -0
  37. package/dist/lib/node-esm/url-handler-WBVVKVPC.mjs +153 -0
  38. package/dist/lib/node-esm/url-handler-WBVVKVPC.mjs.map +7 -0
  39. package/dist/types/src/SimpleLayoutPlugin.d.ts.map +1 -1
  40. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +2 -2
  41. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -1
  42. package/dist/types/src/capabilities/react-root/react-root.d.ts +1 -1
  43. package/dist/types/src/capabilities/react-root/react-root.d.ts.map +1 -1
  44. package/dist/types/src/capabilities/react-surface/index.d.ts +1 -1
  45. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -1
  46. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +2 -2
  47. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -1
  48. package/dist/types/src/capabilities/spotlight-dismiss/index.d.ts +1 -1
  49. package/dist/types/src/capabilities/spotlight-dismiss/index.d.ts.map +1 -1
  50. package/dist/types/src/capabilities/spotlight-dismiss/spotlight-dismiss.d.ts +1 -1
  51. package/dist/types/src/capabilities/spotlight-dismiss/spotlight-dismiss.d.ts.map +1 -1
  52. package/dist/types/src/capabilities/state/index.d.ts +1 -1
  53. package/dist/types/src/capabilities/state/state.d.ts +1 -1
  54. package/dist/types/src/capabilities/state/state.d.ts.map +1 -1
  55. package/dist/types/src/capabilities/url-handler/url-handler.d.ts +3 -1
  56. package/dist/types/src/capabilities/url-handler/url-handler.d.ts.map +1 -1
  57. package/dist/types/src/components/ContentError.stories.d.ts +1 -3
  58. package/dist/types/src/components/ContentError.stories.d.ts.map +1 -1
  59. package/dist/types/src/components/Home/Home.d.ts.map +1 -1
  60. package/dist/types/src/components/MobileLayout/MobileLayout.d.ts +35 -0
  61. package/dist/types/src/components/MobileLayout/MobileLayout.d.ts.map +1 -0
  62. package/dist/types/src/components/MobileLayout/MobileLayout.stories.d.ts +7 -0
  63. package/dist/types/src/components/MobileLayout/MobileLayout.stories.d.ts.map +1 -0
  64. package/dist/types/src/components/MobileLayout/index.d.ts +2 -0
  65. package/dist/types/src/components/MobileLayout/index.d.ts.map +1 -0
  66. package/dist/types/src/components/Popover/Popover.d.ts.map +1 -1
  67. package/dist/types/src/components/SimpleLayout/AppBar.d.ts +26 -0
  68. package/dist/types/src/components/SimpleLayout/AppBar.d.ts.map +1 -0
  69. package/dist/types/src/components/SimpleLayout/AppBar.stories.d.ts +47 -0
  70. package/dist/types/src/components/SimpleLayout/AppBar.stories.d.ts.map +1 -0
  71. package/dist/types/src/components/SimpleLayout/Drawer.d.ts +1 -1
  72. package/dist/types/src/components/SimpleLayout/Drawer.d.ts.map +1 -1
  73. package/dist/types/src/components/SimpleLayout/Main.d.ts.map +1 -1
  74. package/dist/types/src/components/SimpleLayout/NavBar.d.ts +10 -3
  75. package/dist/types/src/components/SimpleLayout/NavBar.d.ts.map +1 -1
  76. package/dist/types/src/components/SimpleLayout/NavBar.stories.d.ts +4 -4
  77. package/dist/types/src/components/SimpleLayout/NavBar.stories.d.ts.map +1 -1
  78. package/dist/types/src/components/SimpleLayout/SimpleLayout.d.ts.map +1 -1
  79. package/dist/types/src/components/SimpleLayout/SimpleLayout.stories.d.ts.map +1 -1
  80. package/dist/types/src/components/SimpleLayout/index.d.ts +3 -0
  81. package/dist/types/src/components/SimpleLayout/index.d.ts.map +1 -1
  82. package/dist/types/src/components/Workspace/Workspace.d.ts +3 -1
  83. package/dist/types/src/components/Workspace/Workspace.d.ts.map +1 -1
  84. package/dist/types/src/components/index.d.ts +1 -0
  85. package/dist/types/src/components/index.d.ts.map +1 -1
  86. package/dist/types/src/hooks/actions.d.ts +20 -0
  87. package/dist/types/src/hooks/actions.d.ts.map +1 -0
  88. package/dist/types/src/hooks/index.d.ts +4 -0
  89. package/dist/types/src/hooks/index.d.ts.map +1 -1
  90. package/dist/types/src/hooks/useAppBarProps.d.ts +7 -0
  91. package/dist/types/src/hooks/useAppBarProps.d.ts.map +1 -0
  92. package/dist/types/src/hooks/useCompanions.d.ts +5 -1
  93. package/dist/types/src/hooks/useCompanions.d.ts.map +1 -1
  94. package/dist/types/src/hooks/useDrawerActions.d.ts +13 -0
  95. package/dist/types/src/hooks/useDrawerActions.d.ts.map +1 -0
  96. package/dist/types/src/hooks/useNavbarActions.d.ts +14 -0
  97. package/dist/types/src/hooks/useNavbarActions.d.ts.map +1 -0
  98. package/dist/types/src/hooks/useSimpleLayoutState.d.ts +3 -3
  99. package/dist/types/src/hooks/useSimpleLayoutState.d.ts.map +1 -1
  100. package/dist/types/src/types/capabilities.d.ts +7 -6
  101. package/dist/types/src/types/capabilities.d.ts.map +1 -1
  102. package/dist/types/src/types/events.d.ts.map +1 -1
  103. package/dist/types/tsconfig.tsbuildinfo +1 -1
  104. package/package.json +36 -30
  105. package/src/SimpleLayoutPlugin.ts +10 -9
  106. package/src/capabilities/operation-resolver/operation-resolver.ts +24 -22
  107. package/src/capabilities/react-root/react-root.tsx +2 -2
  108. package/src/capabilities/react-surface/react-surface.tsx +6 -5
  109. package/src/capabilities/spotlight-dismiss/spotlight-dismiss.ts +2 -2
  110. package/src/capabilities/state/state.tsx +4 -3
  111. package/src/capabilities/url-handler/url-handler.ts +111 -34
  112. package/src/components/ContentError.stories.tsx +8 -7
  113. package/src/components/ContentLoading.stories.tsx +2 -2
  114. package/src/components/ContentLoading.tsx +1 -1
  115. package/src/components/Dialog/Dialog.tsx +5 -5
  116. package/src/components/Home/Home.tsx +41 -33
  117. package/src/components/MobileLayout/MobileLayout.stories.tsx +129 -0
  118. package/src/components/MobileLayout/MobileLayout.tsx +305 -0
  119. package/src/components/MobileLayout/index.ts +5 -0
  120. package/src/components/Popover/Popover.tsx +17 -7
  121. package/src/components/SimpleLayout/AppBar.stories.tsx +144 -0
  122. package/src/components/SimpleLayout/AppBar.tsx +94 -0
  123. package/src/components/SimpleLayout/Drawer.tsx +22 -68
  124. package/src/components/SimpleLayout/Main.tsx +40 -29
  125. package/src/components/SimpleLayout/NavBar.stories.tsx +131 -23
  126. package/src/components/SimpleLayout/NavBar.tsx +15 -47
  127. package/src/components/SimpleLayout/SimpleLayout.stories.tsx +20 -11
  128. package/src/components/SimpleLayout/SimpleLayout.tsx +38 -19
  129. package/src/components/SimpleLayout/index.ts +3 -0
  130. package/src/components/Workspace/Workspace.tsx +34 -24
  131. package/src/components/hooks.ts +4 -4
  132. package/src/components/index.ts +1 -0
  133. package/src/hooks/actions.ts +85 -0
  134. package/src/hooks/index.ts +4 -0
  135. package/src/hooks/useAppBarProps.ts +116 -0
  136. package/src/hooks/useCompanions.ts +8 -5
  137. package/src/hooks/useDrawerActions.ts +98 -0
  138. package/src/hooks/useNavbarActions.ts +86 -0
  139. package/src/hooks/useSimpleLayoutState.ts +5 -5
  140. package/src/types/capabilities.ts +10 -6
  141. package/src/types/events.ts +3 -2
  142. package/dist/lib/browser/chunk-LR3EE3VB.mjs +0 -789
  143. package/dist/lib/browser/chunk-LR3EE3VB.mjs.map +0 -7
  144. package/dist/lib/browser/chunk-P77G4YTR.mjs.map +0 -7
  145. package/dist/lib/browser/operation-resolver-775UYAC2.mjs.map +0 -7
  146. package/dist/lib/browser/react-root-KM55OMGJ.mjs.map +0 -7
  147. package/dist/lib/browser/react-surface-BABGAWGY.mjs.map +0 -7
  148. package/dist/lib/browser/spotlight-dismiss-VSNOPETH.mjs.map +0 -7
  149. package/dist/lib/browser/state-OUFTC2KV.mjs.map +0 -7
  150. package/dist/lib/browser/url-handler-DOUFQIAC.mjs +0 -54
  151. package/dist/lib/browser/url-handler-DOUFQIAC.mjs.map +0 -7
  152. package/dist/lib/node-esm/chunk-F5TEKVJG.mjs.map +0 -7
  153. package/dist/lib/node-esm/chunk-HB2B3LLG.mjs +0 -790
  154. package/dist/lib/node-esm/chunk-HB2B3LLG.mjs.map +0 -7
  155. package/dist/lib/node-esm/operation-resolver-LDNYS3DI.mjs.map +0 -7
  156. package/dist/lib/node-esm/react-root-36UYFEEB.mjs.map +0 -7
  157. package/dist/lib/node-esm/react-surface-CGHFVWU3.mjs.map +0 -7
  158. package/dist/lib/node-esm/spotlight-dismiss-L5PCWIJG.mjs.map +0 -7
  159. package/dist/lib/node-esm/state-Q2ZA26W5.mjs.map +0 -7
  160. package/dist/lib/node-esm/url-handler-DVAZZEUO.mjs +0 -55
  161. package/dist/lib/node-esm/url-handler-DVAZZEUO.mjs.map +0 -7
  162. package/dist/types/src/components/ContentError.d.ts +0 -5
  163. package/dist/types/src/components/ContentError.d.ts.map +0 -1
  164. package/dist/types/src/components/SimpleLayout/Banner.d.ts +0 -8
  165. package/dist/types/src/components/SimpleLayout/Banner.d.ts.map +0 -1
  166. package/src/components/ContentError.tsx +0 -23
  167. package/src/components/SimpleLayout/Banner.tsx +0 -113
@@ -1 +1 @@
1
- {"version":3,"file":"SimpleLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/SimpleLayout.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAY3C,eAAO,MAAM,YAAY,yBAuBxB,CAAC"}
1
+ {"version":3,"file":"SimpleLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/SimpleLayout.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAc3D,eAAO,MAAM,YAAY,yBAwCxB,CAAC"}
@@ -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;;;GAGG;AACH,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;AA6EjE,QAAA,MAAM,IAAI;;;;;;;yBA1EW,CAAQ,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiFA,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAMrB,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"}
@@ -3,7 +3,9 @@ export type WorkspaceProps = {
3
3
  id: string;
4
4
  };
5
5
  /**
6
- *
6
+ * Displays the contents of a workspace disposition graph node as a searchable list.
7
+ * Shows direct children of the workspace with icons and labels,
8
+ * allowing users to filter via search and navigate by selecting an item.
7
9
  */
8
10
  export declare const Workspace: ({ id }: WorkspaceProps) => React.JSX.Element;
9
11
  //# sourceMappingURL=Workspace.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Workspace.d.ts","sourceRoot":"","sources":["../../../../../src/components/Workspace/Workspace.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAa9D,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF;;GAEG;AAEH,eAAO,MAAM,SAAS,GAAI,QAAQ,cAAc,sBA+B/C,CAAC"}
1
+ {"version":3,"file":"Workspace.d.ts","sourceRoot":"","sources":["../../../../../src/components/Workspace/Workspace.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAe9D,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAI,QAAQ,cAAc,sBAqC/C,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export * from './ContentLoading';
2
2
  export * from './Home';
3
+ export * from './MobileLayout';
3
4
  export * from './Popover';
4
5
  export * from './SimpleLayout';
5
6
  export * from './Workspace';
@@ -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,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { type Atom } from '@effect-atom/atom-react';
2
+ import { type Capabilities } from '@dxos/app-framework';
3
+ import { type AppCapabilities } from '@dxos/app-toolkit';
4
+ import { type ActionGraphProps } from '@dxos/react-ui-menu';
5
+ import { type SimpleLayoutState } from '../types';
6
+ export declare const PLANK_COMPANION_TYPE = "dxos.org/plugin/deck/plank-companion";
7
+ export type CompanionActionsConfig = {
8
+ /** Prefix for companion action IDs (e.g. 'navbar' or 'drawer') */
9
+ idPrefix: string;
10
+ /** Optional: highlight companion with this variant */
11
+ selectedVariant?: string;
12
+ /** invokeSync function for dispatching operations */
13
+ invokeSync: Capabilities.OperationInvoker['invokeSync'];
14
+ };
15
+ /**
16
+ * Creates action graph nodes and edges for companion actions.
17
+ * Shared logic between useNavbarActions and useDrawerActions.
18
+ */
19
+ export declare const createCompanionActions: (graph: AppCapabilities.AppGraph["graph"], stateAtom: Atom.Atom<SimpleLayoutState>, get: (atom: Atom.Atom<any>) => any, config: CompanionActionsConfig) => Pick<ActionGraphProps, "nodes" | "edges">;
20
+ //# 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,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,KAAK,eAAe,EAAmB,MAAM,mBAAmB,CAAC;AAG1E,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAGlD,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,qDAAqD;IACrD,UAAU,EAAE,YAAY,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;CACzD,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,3 +1,7 @@
1
+ export * from './useAppBarProps';
1
2
  export * from './useCompanions';
3
+ export * from './actions';
4
+ export * from './useDrawerActions';
5
+ export * from './useNavbarActions';
2
6
  export * from './useSimpleLayoutState';
3
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,iBAAiB,CAAC;AAChC,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,eAAe,CAAC;AAIjD;;;GAGG;AACH,eAAO,MAAM,cAAc,QAAO,IAAI,CAAC,WAAW,EAAE,YAAY,CA2F/D,CAAC"}
@@ -1,4 +1,8 @@
1
- export declare const useCompanions: (id?: string) => Readonly<{
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<{
2
6
  id: string;
3
7
  type: string;
4
8
  cacheable?: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"useCompanions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useCompanions.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,aAAa,GAAI,KAAK,MAAM;;;;;;IAKxC,CAAC"}
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,aAkEvD,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;AAS7B,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,UAAU,CAAC;AAE7C,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"}
@@ -1,9 +1,13 @@
1
1
  import { type Atom } from '@effect-atom/atom-react';
2
2
  import { Capability } from '@dxos/app-framework';
3
- import { type DrawerState, type Label } from '@dxos/react-ui';
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';
@@ -19,17 +23,14 @@ export type SimpleLayoutState = {
19
23
  popoverKind?: 'base' | 'card';
20
24
  popoverTitle?: Label;
21
25
  popoverContent?: any;
22
- workspace: string;
23
- previousWorkspace: string;
24
- active?: string;
26
+ /** Bottom drawer state. */
27
+ drawerState: DrawerState;
25
28
  /** Stack of previously active item IDs for back navigation. */
26
29
  history: string[];
27
30
  /** Whether running in popover window context (hides mobile-specific UI). */
28
31
  isPopover?: boolean;
29
32
  /** Variant of the companion to display in the drawer (e.g., "comments", "assistant-chat"). */
30
33
  companionVariant?: string;
31
- /** State of the companion drawer. */
32
- drawerState?: DrawerState;
33
34
  };
34
35
  export declare const SimpleLayoutState: Capability.InterfaceDef<Atom.Writable<SimpleLayoutState, SimpleLayoutState>>;
35
36
  //# 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,WAAW,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAK9D,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;IAEpB,8FAA8F;IAC9F,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qCAAqC;IACrC,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,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,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,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"}