@dxos/plugin-deck 0.9.1-main.c7dcc2e112 → 0.10.0

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 (258) hide show
  1. package/PLUGIN.mdl +3 -1
  2. package/dist/lib/neutral/{DeckLayout-VX2BP4Q2.mjs → DeckLayout-B3RUUV5P.mjs} +4 -3
  3. package/dist/lib/neutral/DeckLayout-B3RUUV5P.mjs.map +7 -0
  4. package/dist/lib/neutral/DeckPlugin.mjs +2 -6
  5. package/dist/lib/neutral/DeckPlugin.mjs.map +3 -3
  6. package/dist/lib/neutral/DeckSettings-Z7GMB7XJ.mjs +32 -0
  7. package/dist/lib/neutral/DeckSettings-Z7GMB7XJ.mjs.map +7 -0
  8. package/dist/lib/neutral/{add-toast-APKTCLIA.mjs → add-toast-BHNEH5UY.mjs} +2 -2
  9. package/dist/lib/neutral/{adjust-7CZI4GK3.mjs → adjust-MJB6UMRQ.mjs} +16 -10
  10. package/dist/lib/neutral/adjust-MJB6UMRQ.mjs.map +7 -0
  11. package/dist/lib/neutral/{app-graph-builder-6HTXRTU2.mjs → app-graph-builder-2F7P4IFQ.mjs} +4 -3
  12. package/dist/lib/neutral/app-graph-builder-2F7P4IFQ.mjs.map +7 -0
  13. package/dist/lib/neutral/capabilities/index.mjs +5 -5
  14. package/dist/lib/neutral/chunk-FKGYHBUB.mjs +8 -0
  15. package/dist/lib/neutral/{chunk-CL7JIOI5.mjs → chunk-ICOJ4GMB.mjs} +10 -6
  16. package/dist/lib/neutral/chunk-ICOJ4GMB.mjs.map +7 -0
  17. package/dist/lib/neutral/{chunk-NGX6RXNV.mjs → chunk-PP32NEVY.mjs} +2 -2
  18. package/dist/lib/neutral/chunk-PP32NEVY.mjs.map +7 -0
  19. package/dist/lib/neutral/chunk-SONATB35.mjs +20 -0
  20. package/dist/lib/neutral/chunk-SONATB35.mjs.map +7 -0
  21. package/dist/lib/neutral/chunk-Z2B5RSVI.mjs +1096 -0
  22. package/dist/lib/neutral/chunk-Z2B5RSVI.mjs.map +7 -0
  23. package/dist/lib/neutral/{close-KJUCFIJ5.mjs → close-2YGB5IIP.mjs} +4 -3
  24. package/dist/lib/neutral/{close-KJUCFIJ5.mjs.map → close-2YGB5IIP.mjs.map} +1 -1
  25. package/dist/lib/neutral/components/index.mjs +201 -16
  26. package/dist/lib/neutral/components/index.mjs.map +4 -4
  27. package/dist/lib/neutral/containers/index.mjs +6 -11
  28. package/dist/lib/neutral/containers/index.mjs.map +3 -3
  29. package/dist/lib/neutral/hooks/index.mjs +101 -17
  30. package/dist/lib/neutral/hooks/index.mjs.map +4 -4
  31. package/dist/lib/neutral/index.mjs +7 -1
  32. package/dist/lib/neutral/meta.json +1 -1
  33. package/dist/lib/neutral/{notification-tracker-CUDFRDCF.mjs → notification-tracker-Y5CRTWJM.mjs} +4 -2
  34. package/dist/lib/neutral/notification-tracker-Y5CRTWJM.mjs.map +7 -0
  35. package/dist/lib/neutral/{open-VU7YS3HB.mjs → open-P6XQ56M7.mjs} +4 -3
  36. package/dist/lib/neutral/{open-VU7YS3HB.mjs.map → open-P6XQ56M7.mjs.map} +1 -1
  37. package/dist/lib/neutral/operations/index.mjs +1 -1
  38. package/dist/lib/neutral/plugin.mjs +1 -1
  39. package/dist/lib/neutral/{react-surface-O4POQWYL.mjs → react-surface-H63FXUK3.mjs} +2 -2
  40. package/dist/lib/neutral/{react-surface-O4POQWYL.mjs.map → react-surface-H63FXUK3.mjs.map} +1 -1
  41. package/dist/lib/neutral/{revert-workspace-24TKG3I7.mjs → revert-workspace-RXWP2TEE.mjs} +2 -2
  42. package/dist/lib/neutral/{scroll-into-view-3VXT6TWC.mjs → scroll-into-view-HFV5EGYZ.mjs} +2 -2
  43. package/dist/lib/neutral/{set-RFOLTI57.mjs → set-HOOVB7E4.mjs} +4 -3
  44. package/dist/lib/neutral/{set-RFOLTI57.mjs.map → set-HOOVB7E4.mjs.map} +1 -1
  45. package/dist/lib/neutral/{set-layout-mode-AZ73W52Z.mjs → set-layout-mode-XAGSZZGB.mjs} +2 -2
  46. package/dist/lib/neutral/{state-D3YXB5NP.mjs → state-F4X5GPGZ.mjs} +3 -2
  47. package/dist/lib/neutral/{state-D3YXB5NP.mjs.map → state-F4X5GPGZ.mjs.map} +1 -1
  48. package/dist/lib/neutral/{switch-workspace-TBPT23CZ.mjs → switch-workspace-PA7N6EUX.mjs} +2 -2
  49. package/dist/lib/neutral/translations.mjs +2 -2
  50. package/dist/lib/neutral/translations.mjs.map +2 -2
  51. package/dist/lib/neutral/types/index.mjs +1 -1
  52. package/dist/lib/neutral/{update-companion-5LCY6QME.mjs → update-companion-6A2SKQAI.mjs} +14 -6
  53. package/dist/lib/neutral/update-companion-6A2SKQAI.mjs.map +7 -0
  54. package/dist/lib/neutral/{update-complementary-HZ7QXZYE.mjs → update-complementary-K55I5EV5.mjs} +2 -2
  55. package/dist/lib/neutral/{update-dialog-A7W3R5EI.mjs → update-dialog-Z3GEXMVV.mjs} +2 -2
  56. package/dist/lib/neutral/{update-plank-size-XHTYBLSD.mjs → update-plank-size-BTESVV7N.mjs} +2 -2
  57. package/dist/lib/neutral/{update-popover-RDIHG73B.mjs → update-popover-QEVDSZSH.mjs} +2 -2
  58. package/dist/lib/neutral/{update-sidebar-GEI7USA5.mjs → update-sidebar-VSRCN47U.mjs} +2 -2
  59. package/dist/lib/neutral/{url-handler-PUS4X33T.mjs → url-handler-ERZXXEYR.mjs} +3 -2
  60. package/dist/lib/neutral/{url-handler-PUS4X33T.mjs.map → url-handler-ERZXXEYR.mjs.map} +1 -1
  61. package/dist/types/src/DeckPlugin.d.ts.map +1 -1
  62. package/dist/types/src/capabilities/app-graph-builder.d.ts +1 -2
  63. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  64. package/dist/types/src/capabilities/notification-tracker.d.ts +1 -1
  65. package/dist/types/src/capabilities/notification-tracker.d.ts.map +1 -1
  66. package/dist/types/src/capabilities/react-root.d.ts +1 -5
  67. package/dist/types/src/capabilities/react-root.d.ts.map +1 -1
  68. package/dist/types/src/capabilities/react-surface.d.ts +1 -1
  69. package/dist/types/src/capabilities/settings.d.ts +1 -3
  70. package/dist/types/src/capabilities/settings.d.ts.map +1 -1
  71. package/dist/types/src/capabilities/state.d.ts +1 -187
  72. package/dist/types/src/capabilities/state.d.ts.map +1 -1
  73. package/dist/types/src/capabilities/tools.d.ts +1 -1
  74. package/dist/types/src/capabilities/url-handler.d.ts +1 -1
  75. package/dist/types/src/components/Companion/Companion.d.ts +17 -0
  76. package/dist/types/src/components/Companion/Companion.d.ts.map +1 -0
  77. package/dist/types/src/components/Companion/index.d.ts +2 -0
  78. package/dist/types/src/components/Companion/index.d.ts.map +1 -0
  79. package/dist/types/src/components/Matrix/Matrix.d.ts +1 -1
  80. package/dist/types/src/components/Matrix/Matrix.d.ts.map +1 -1
  81. package/dist/types/src/components/Matrix/Matrix.stories.d.ts +2 -2
  82. package/dist/types/src/components/Matrix/Matrix.stories.d.ts.map +1 -1
  83. package/dist/types/src/components/Matrix/index.d.ts +1 -1
  84. package/dist/types/src/components/Matrix/index.d.ts.map +1 -1
  85. package/dist/types/src/components/Pane/Pane.d.ts +45 -0
  86. package/dist/types/src/components/Pane/Pane.d.ts.map +1 -0
  87. package/dist/types/src/components/Pane/Pane.stories.d.ts +7 -0
  88. package/dist/types/src/components/Pane/Pane.stories.d.ts.map +1 -0
  89. package/dist/types/src/components/Pane/index.d.ts +2 -0
  90. package/dist/types/src/components/Pane/index.d.ts.map +1 -0
  91. package/dist/types/src/components/Plank/Plank.d.ts +74 -0
  92. package/dist/types/src/components/Plank/Plank.d.ts.map +1 -0
  93. package/dist/types/src/components/Plank/Plank.stories.d.ts +6 -0
  94. package/dist/types/src/components/Plank/Plank.stories.d.ts.map +1 -0
  95. package/dist/types/src/components/Plank/index.d.ts +2 -0
  96. package/dist/types/src/components/Plank/index.d.ts.map +1 -0
  97. package/dist/types/src/components/index.d.ts +3 -2
  98. package/dist/types/src/components/index.d.ts.map +1 -1
  99. package/dist/types/src/containers/Deck/Deck.d.ts +1 -1
  100. package/dist/types/src/containers/Deck/Deck.d.ts.map +1 -1
  101. package/dist/types/src/containers/Deck/Deck.stories.d.ts +2 -2
  102. package/dist/types/src/containers/Deck/DeckPlank.d.ts +21 -0
  103. package/dist/types/src/containers/Deck/DeckPlank.d.ts.map +1 -0
  104. package/dist/types/src/containers/Deck/DeckViewport.d.ts +3 -1
  105. package/dist/types/src/containers/Deck/DeckViewport.d.ts.map +1 -1
  106. package/dist/types/src/containers/{Plank → Deck}/PlankControls.d.ts +3 -10
  107. package/dist/types/src/containers/Deck/PlankControls.d.ts.map +1 -0
  108. package/dist/types/src/containers/Deck/PlankFallback.d.ts +6 -0
  109. package/dist/types/src/containers/Deck/PlankFallback.d.ts.map +1 -0
  110. package/dist/types/src/containers/Deck/useDeckPlank.d.ts +49 -0
  111. package/dist/types/src/containers/Deck/useDeckPlank.d.ts.map +1 -0
  112. package/dist/types/src/containers/DeckLayout/DeckLayout.stories.d.ts +2 -2
  113. package/dist/types/src/containers/DeckLayout/DeckLayout.stories.d.ts.map +1 -1
  114. package/dist/types/src/{components → containers}/DeckSettings/DeckSettings.d.ts +1 -1
  115. package/dist/types/src/containers/DeckSettings/DeckSettings.d.ts.map +1 -0
  116. package/dist/types/src/{components → containers}/DeckSettings/DeckSettings.stories.d.ts +2 -2
  117. package/dist/types/src/{components → containers}/DeckSettings/DeckSettings.stories.d.ts.map +1 -1
  118. package/dist/types/src/containers/DeckSettings/index.d.ts.map +1 -0
  119. package/dist/types/src/containers/index.d.ts +1 -1
  120. package/dist/types/src/containers/index.d.ts.map +1 -1
  121. package/dist/types/src/hooks/index.d.ts +2 -0
  122. package/dist/types/src/hooks/index.d.ts.map +1 -1
  123. package/dist/types/src/hooks/useCompanionSplit.d.ts +28 -0
  124. package/dist/types/src/hooks/useCompanionSplit.d.ts.map +1 -0
  125. package/dist/types/src/hooks/useCompanions.d.ts +11 -7
  126. package/dist/types/src/hooks/useCompanions.d.ts.map +1 -1
  127. package/dist/types/src/hooks/useDeckCompanions.d.ts +2 -2
  128. package/dist/types/src/hooks/useDeckCompanions.d.ts.map +1 -1
  129. package/dist/types/src/hooks/useDeckState.d.ts +1 -1
  130. package/dist/types/src/hooks/useDeckState.d.ts.map +1 -1
  131. package/dist/types/src/hooks/useSelectedCompanionVariant.d.ts +6 -0
  132. package/dist/types/src/hooks/useSelectedCompanionVariant.d.ts.map +1 -0
  133. package/dist/types/src/index.d.ts +1 -0
  134. package/dist/types/src/index.d.ts.map +1 -1
  135. package/dist/types/src/meta.d.ts +4 -0
  136. package/dist/types/src/meta.d.ts.map +1 -1
  137. package/dist/types/src/operations/adjust.d.ts.map +1 -1
  138. package/dist/types/src/operations/update-companion.d.ts.map +1 -1
  139. package/dist/types/src/translations.d.ts +2 -2
  140. package/dist/types/src/translations.d.ts.map +1 -1
  141. package/dist/types/src/types/DeckCapabilities.d.ts +2 -2
  142. package/dist/types/src/types/DeckCapabilities.d.ts.map +1 -1
  143. package/dist/types/src/types/DeckOperation.d.ts +2 -2
  144. package/dist/types/src/types/DeckOperation.d.ts.map +1 -1
  145. package/dist/types/src/types/schema.d.ts +7 -7
  146. package/dist/types/src/types/schema.d.ts.map +1 -1
  147. package/dist/types/src/util/companion-view-state.d.ts +16 -0
  148. package/dist/types/src/util/companion-view-state.d.ts.map +1 -0
  149. package/dist/types/src/util/index.d.ts +1 -0
  150. package/dist/types/src/util/index.d.ts.map +1 -1
  151. package/dist/types/src/util/plank-url-params.d.ts +2 -0
  152. package/dist/types/src/util/plank-url-params.d.ts.map +1 -1
  153. package/dist/types/tsconfig.tsbuildinfo +1 -1
  154. package/package.json +49 -47
  155. package/src/DeckPlugin.ts +1 -2
  156. package/src/capabilities/app-graph-builder.ts +3 -2
  157. package/src/capabilities/notification-tracker.ts +3 -1
  158. package/src/capabilities/react-surface.tsx +1 -1
  159. package/src/components/Companion/Companion.tsx +91 -0
  160. package/src/components/Companion/index.ts +5 -0
  161. package/src/components/Matrix/Matrix.stories.tsx +13 -26
  162. package/src/components/Matrix/Matrix.tsx +3 -3
  163. package/src/components/Matrix/SPEC.md +1 -1
  164. package/src/components/Matrix/index.ts +1 -1
  165. package/src/components/Pane/Pane.stories.tsx +92 -0
  166. package/src/components/Pane/Pane.tsx +178 -0
  167. package/src/components/Pane/index.ts +5 -0
  168. package/src/components/Plank/Plank.stories.tsx +103 -0
  169. package/src/components/Plank/Plank.tsx +149 -0
  170. package/src/components/Plank/index.ts +5 -0
  171. package/src/components/index.ts +3 -4
  172. package/src/containers/Deck/Deck.tsx +3 -3
  173. package/src/containers/Deck/DeckPlank.tsx +187 -0
  174. package/src/containers/Deck/DeckViewport.tsx +116 -243
  175. package/src/containers/{Plank → Deck}/PlankControls.tsx +19 -17
  176. package/src/containers/Deck/PlankFallback.tsx +42 -0
  177. package/src/containers/Deck/useDeckPlank.ts +219 -0
  178. package/src/containers/DeckLayout/DeckLayout.stories.tsx +38 -51
  179. package/src/containers/DeckLayout/Dialog.tsx +1 -1
  180. package/src/{components → containers}/DeckSettings/DeckSettings.stories.tsx +1 -1
  181. package/src/containers/DeckSettings/DeckSettings.tsx +42 -0
  182. package/src/containers/Sidebar/ComplementarySidebar.tsx +2 -2
  183. package/src/containers/index.ts +1 -1
  184. package/src/hooks/index.ts +2 -0
  185. package/src/hooks/useCompanionSplit.ts +78 -0
  186. package/src/hooks/useCompanions.ts +39 -7
  187. package/src/hooks/useDeckCompanions.ts +3 -3
  188. package/src/hooks/useDeckState.ts +1 -1
  189. package/src/hooks/useSelectedCompanionVariant.ts +14 -0
  190. package/src/index.ts +7 -0
  191. package/src/operations/adjust.ts +23 -12
  192. package/src/operations/update-companion.ts +10 -6
  193. package/src/translations.ts +2 -2
  194. package/src/types/DeckCapabilities.ts +1 -1
  195. package/src/types/DeckOperation.ts +2 -1
  196. package/src/types/schema.ts +5 -4
  197. package/src/util/companion-view-state.ts +28 -0
  198. package/src/util/index.ts +1 -0
  199. package/src/util/plank-url-params.test.ts +5 -0
  200. package/src/util/plank-url-params.ts +3 -1
  201. package/src/util/sanitize-persisted-state.test.ts +1 -1
  202. package/src/util/set-active.test.ts +1 -1
  203. package/dist/lib/neutral/DeckLayout-VX2BP4Q2.mjs.map +0 -7
  204. package/dist/lib/neutral/DeckSettings-CQQZJ2YS.mjs +0 -27
  205. package/dist/lib/neutral/DeckSettings-CQQZJ2YS.mjs.map +0 -7
  206. package/dist/lib/neutral/adjust-7CZI4GK3.mjs.map +0 -7
  207. package/dist/lib/neutral/app-graph-builder-6HTXRTU2.mjs.map +0 -7
  208. package/dist/lib/neutral/chunk-CL7JIOI5.mjs.map +0 -7
  209. package/dist/lib/neutral/chunk-DNG3L5QN.mjs +0 -1304
  210. package/dist/lib/neutral/chunk-DNG3L5QN.mjs.map +0 -7
  211. package/dist/lib/neutral/chunk-NGX6RXNV.mjs.map +0 -7
  212. package/dist/lib/neutral/chunk-UZLAR4DR.mjs +0 -8
  213. package/dist/lib/neutral/notification-tracker-CUDFRDCF.mjs.map +0 -7
  214. package/dist/lib/neutral/update-companion-5LCY6QME.mjs.map +0 -7
  215. package/dist/types/src/components/DeckSettings/DeckSettings.d.ts.map +0 -1
  216. package/dist/types/src/components/DeckSettings/index.d.ts.map +0 -1
  217. package/dist/types/src/containers/Plank/Plank.d.ts +0 -17
  218. package/dist/types/src/containers/Plank/Plank.d.ts.map +0 -1
  219. package/dist/types/src/containers/Plank/Plank.stories.d.ts +0 -67
  220. package/dist/types/src/containers/Plank/Plank.stories.d.ts.map +0 -1
  221. package/dist/types/src/containers/Plank/PlankComponent.d.ts +0 -17
  222. package/dist/types/src/containers/Plank/PlankComponent.d.ts.map +0 -1
  223. package/dist/types/src/containers/Plank/PlankContent.d.ts +0 -10
  224. package/dist/types/src/containers/Plank/PlankContent.d.ts.map +0 -1
  225. package/dist/types/src/containers/Plank/PlankControls.d.ts.map +0 -1
  226. package/dist/types/src/containers/Plank/PlankError.d.ts +0 -15
  227. package/dist/types/src/containers/Plank/PlankError.d.ts.map +0 -1
  228. package/dist/types/src/containers/Plank/PlankHeading.d.ts +0 -22
  229. package/dist/types/src/containers/Plank/PlankHeading.d.ts.map +0 -1
  230. package/dist/types/src/containers/Plank/PlankLoading.d.ts +0 -3
  231. package/dist/types/src/containers/Plank/PlankLoading.d.ts.map +0 -1
  232. package/dist/types/src/containers/Plank/PlankRoot.d.ts +0 -37
  233. package/dist/types/src/containers/Plank/PlankRoot.d.ts.map +0 -1
  234. package/dist/types/src/containers/Plank/index.d.ts +0 -4
  235. package/dist/types/src/containers/Plank/index.d.ts.map +0 -1
  236. package/src/components/DeckSettings/DeckSettings.tsx +0 -34
  237. package/src/containers/Plank/Plank.stories.tsx +0 -108
  238. package/src/containers/Plank/Plank.tsx +0 -22
  239. package/src/containers/Plank/PlankComponent.tsx +0 -223
  240. package/src/containers/Plank/PlankContent.tsx +0 -45
  241. package/src/containers/Plank/PlankError.tsx +0 -82
  242. package/src/containers/Plank/PlankHeading.tsx +0 -236
  243. package/src/containers/Plank/PlankLoading.tsx +0 -10
  244. package/src/containers/Plank/PlankRoot.tsx +0 -49
  245. package/src/containers/Plank/index.ts +0 -7
  246. /package/dist/lib/neutral/{add-toast-APKTCLIA.mjs.map → add-toast-BHNEH5UY.mjs.map} +0 -0
  247. /package/dist/lib/neutral/{chunk-UZLAR4DR.mjs.map → chunk-FKGYHBUB.mjs.map} +0 -0
  248. /package/dist/lib/neutral/{revert-workspace-24TKG3I7.mjs.map → revert-workspace-RXWP2TEE.mjs.map} +0 -0
  249. /package/dist/lib/neutral/{scroll-into-view-3VXT6TWC.mjs.map → scroll-into-view-HFV5EGYZ.mjs.map} +0 -0
  250. /package/dist/lib/neutral/{set-layout-mode-AZ73W52Z.mjs.map → set-layout-mode-XAGSZZGB.mjs.map} +0 -0
  251. /package/dist/lib/neutral/{switch-workspace-TBPT23CZ.mjs.map → switch-workspace-PA7N6EUX.mjs.map} +0 -0
  252. /package/dist/lib/neutral/{update-complementary-HZ7QXZYE.mjs.map → update-complementary-K55I5EV5.mjs.map} +0 -0
  253. /package/dist/lib/neutral/{update-dialog-A7W3R5EI.mjs.map → update-dialog-Z3GEXMVV.mjs.map} +0 -0
  254. /package/dist/lib/neutral/{update-plank-size-XHTYBLSD.mjs.map → update-plank-size-BTESVV7N.mjs.map} +0 -0
  255. /package/dist/lib/neutral/{update-popover-RDIHG73B.mjs.map → update-popover-QEVDSZSH.mjs.map} +0 -0
  256. /package/dist/lib/neutral/{update-sidebar-GEI7USA5.mjs.map → update-sidebar-VSRCN47U.mjs.map} +0 -0
  257. /package/dist/types/src/{components → containers}/DeckSettings/index.d.ts +0 -0
  258. /package/src/{components → containers}/DeckSettings/index.ts +0 -0
@@ -10,7 +10,9 @@ export declare const DeckContentEmpty: () => React.JSX.Element;
10
10
  */
11
11
  export declare const DeckSoloMode: () => React.JSX.Element;
12
12
  /**
13
- * Multi-plank horizontal scrolling layout.
13
+ * Multi-plank horizontal scrolling layout. Planks are resizable {@link Mosaic.Tile}s in a horizontal
14
+ * {@link Mosaic.Stack}; the scroll position is preserved across solo↔multi transitions and the
15
+ * just-navigated plank is scrolled into view.
14
16
  */
15
17
  export declare const DeckMultiMode: () => React.JSX.Element;
16
18
  //# sourceMappingURL=DeckViewport.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DeckViewport.d.ts","sourceRoot":"","sources":["../../../../../src/containers/Deck/DeckViewport.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAGZ,KAAK,iBAAiB,EAMvB,MAAM,OAAO,CAAC;AA+Bf,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;qCAKrB,EAAE,QAAQ,EAAE,EAAE,iBAAiB;;;;AAkD5D,eAAO,MAAM,gBAAgB,yBAW5B,CAAC;AAMF;;GAEG;AACH,eAAO,MAAM,YAAY,yBA8CxB,CAAC;AAMF;;GAEG;AACH,eAAO,MAAM,aAAa,yBAsFzB,CAAC"}
1
+ {"version":3,"file":"DeckViewport.d.ts","sourceRoot":"","sources":["../../../../../src/containers/Deck/DeckViewport.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAkC,MAAM,OAAO,CAAC;AAkCtF,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;qCAKrB,EAAE,QAAQ,EAAE,EAAE,iBAAiB;;;;AA+C5D,eAAO,MAAM,gBAAgB,yBAW5B,CAAC;AAMF;;GAEG;AACH,eAAO,MAAM,YAAY,yBAsCxB,CAAC;AAiDF;;;;GAIG;AACH,eAAO,MAAM,aAAa,yBAwEzB,CAAC"}
@@ -1,15 +1,8 @@
1
1
  import React from 'react';
2
2
  import { type ButtonGroupProps } from '@dxos/react-ui';
3
- import { type DeckAction, type LayoutMode } from '#types';
4
- export type PlankControlHandler = (event: DeckAction.PartAdjustment) => void;
5
- export type PlankCapabilities = {
6
- incrementStart?: boolean;
7
- incrementEnd?: boolean;
8
- deck?: boolean;
9
- solo?: boolean;
10
- fullscreen?: boolean;
11
- companion?: boolean;
12
- };
3
+ import { type DeckOperation, type LayoutMode } from '#types';
4
+ import { type PlankCapabilities } from './useDeckPlank';
5
+ export type PlankControlHandler = (event: DeckOperation.PartAdjustment) => void;
13
6
  export type PlankCompanionControlsProps = {
14
7
  primary?: string;
15
8
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlankControls.d.ts","sourceRoot":"","sources":["../../../../../src/containers/Deck/PlankControls.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkC,MAAM,OAAO,CAAC;AAIvD,OAAO,EAAe,KAAK,gBAAgB,EAAgD,MAAM,gBAAgB,CAAC;AAGlH,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,UAAU,EAAE,MAAM,QAAQ,CAAC;AAE7D,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,MAAM,MAAM,mBAAmB,GAAG,CAAC,KAAK,EAAE,aAAa,CAAC,cAAc,KAAK,IAAI,CAAC;AAQhF,MAAM,MAAM,2BAA2B,GAAG;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,sBAAsB,oGAmBlC,CAAC;AAUF,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,GAAG;IACnE,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,OAAO,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACtC,KAAK,CAAC,EAAE,OAAO,GAAG,cAAc,GAAG,YAAY,CAAC;IAChD,YAAY,EAAE,iBAAiB,CAAC;IAChC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,GAAG,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;CAChC,CAAC;AAKF,eAAO,MAAM,aAAa,wGAkHzB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { type ErrorFallbackProps } from '@dxos/react-ui';
3
+ export declare const PlankLoading: () => React.JSX.Element;
4
+ /** User-facing error fallback for a plank's content Surface. */
5
+ export declare const PlankErrorFallback: ({ error }: ErrorFallbackProps) => React.JSX.Element;
6
+ //# sourceMappingURL=PlankFallback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlankFallback.d.ts","sourceRoot":"","sources":["../../../../../src/containers/Deck/PlankFallback.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAGzC,OAAO,EAAiB,KAAK,kBAAkB,EAAkB,MAAM,gBAAgB,CAAC;AAMxF,eAAO,MAAM,YAAY,yBAAyE,CAAC;AAEnG,gEAAgE;AAChE,eAAO,MAAM,kBAAkB,cAAe,kBAAkB,sBAyB/D,CAAC"}
@@ -0,0 +1,49 @@
1
+ import { type AttentionSigilAction } from '@dxos/app-toolkit/ui';
2
+ import { type Node } from '@dxos/plugin-graph';
3
+ import { DeckOperation, type LayoutMode, type ResolvedPart } from '#types';
4
+ /** Capability flags that gate the plank toolbar controls. */
5
+ export type PlankCapabilities = {
6
+ deck?: boolean;
7
+ solo?: boolean;
8
+ incrementStart?: boolean;
9
+ incrementEnd?: boolean;
10
+ fullscreen?: boolean;
11
+ companion?: boolean;
12
+ };
13
+ export type UseDeckPlankOptions = {
14
+ id: string;
15
+ /** Resolved part for the primary plank (`solo` | `multi` | `complementary`). */
16
+ part: ResolvedPart;
17
+ layoutMode: LayoutMode;
18
+ /** Ordered active planks (multi mode); enables increment/close-range semantics. */
19
+ active?: string[];
20
+ /** Whether the companion pane should be shown for this plank (gated further by attention in multi-mode). */
21
+ companionShown?: boolean;
22
+ deckEnabled?: boolean;
23
+ };
24
+ export type DeckPlank = {
25
+ node: Node.Node | undefined;
26
+ companions: Node.Node[];
27
+ resolvedCompanionId: string | undefined;
28
+ currentCompanion: Node.Node | undefined;
29
+ hasCompanion: boolean;
30
+ /** Splitter orientation for the companion pane (defaults to `horizontal`). */
31
+ companionOrientation: 'horizontal' | 'vertical';
32
+ capabilities: PlankCapabilities;
33
+ /** Grouped sigil-menu actions, or `undefined` when the node is unresolved. */
34
+ sigilActions: AttentionSigilAction[][] | undefined;
35
+ popoverAnchorId?: string;
36
+ scrollIntoView?: string;
37
+ onAction: (action: AttentionSigilAction) => void;
38
+ onAdjust: (type: DeckOperation.PartAdjustment) => void;
39
+ onResize: (size: number) => void;
40
+ onScrollIntoView: (subject?: string) => void;
41
+ onUpdateCompanion: (companion: string | null) => void;
42
+ };
43
+ /**
44
+ * Resolves the graph node, companions, capabilities and sigil actions for a deck plank, and exposes the
45
+ * operation dispatchers that mutate deck layout state. This re-homes the framework wiring that the legacy
46
+ * `PlankContainer`/`PlankHeading` bundled, so the presentational components stay free of capabilities.
47
+ */
48
+ export declare const useDeckPlank: ({ id, part, layoutMode, active, companionShown, deckEnabled, }: UseDeckPlankOptions) => DeckPlank;
49
+ //# sourceMappingURL=useDeckPlank.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDeckPlank.d.ts","sourceRo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E,EAAE,GAAG,SAAS,CAAC;IACnD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACjD,QAAQ,EAAE,CAAC,IAAI,EAAE,aAAa,CAAC,cAAc,KAAK,IAAI,CAAC;IACvD,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,gBAAgB,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,iBAAiB,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACvD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,mEAOtB,mBAAmB,KAAG,SAgJxB,CAAC"}
@@ -10,7 +10,6 @@ declare const meta: {
10
10
  readonly 'en-US': {
11
11
  readonly [x: string]: {
12
12
  readonly 'plugin.name': 'Deck';
13
- readonly 'settings.title': 'Deck settings';
14
13
  readonly 'main-header.label': 'Main header';
15
14
  readonly 'open-navigation-sidebar.label': 'Open sidebar';
16
15
  readonly 'collapse-navigation-sidebar.label': 'Close sidebar';
@@ -44,7 +43,8 @@ declare const meta: {
44
43
  readonly 'show-fullscreen-plank.label': 'Fullscreen';
45
44
  readonly 'close.label': 'Close';
46
45
  readonly 'minify.label': 'Minify';
47
- readonly 'open-companion.label': 'Open companion';
46
+ readonly 'open-companion.label': 'Open companion side-by-side';
47
+ readonly 'open-companion-vertical.label': 'Open companion stacked';
48
48
  readonly 'close-companion.label': 'Close companion';
49
49
  readonly 'close-current.label': 'Close current plank';
50
50
  readonly 'close-others.label': 'Close other planks';
@@ -1 +1 @@
1
- {"version":3,"file":"DeckLayout.stories.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DeckLayout/DeckLayout.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAA8B,MAAM,OAAO,CAAC;AAoVnD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcyB,CAAC;eAErB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,IAAI,EAAE,KAUlB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAUnB,CAAC"}
1
+ {"version":3,"file":"DeckLayout.stories.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DeckLayout/DeckLayout.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAA8B,MAAM,OAAO,CAAC;AAuUnD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcyB,CAAC;eAErB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,IAAI,EAAE,KAUlB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAUnB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { type AppSurface } from '@dxos/app-toolkit/ui';
3
3
  import { Settings } from '#types';
4
- export type DeckSettingsProps = AppSurface.SettingsArticleProps<Settings.Settings>;
4
+ export type DeckSettingsProps = AppSurface.SettingsProps<Settings.Settings>;
5
5
  export declare const DeckSettings: ({ settings, onSettingsChange }: DeckSettingsProps) => React.JSX.Element;
6
6
  //# sourceMappingURL=DeckSettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeckSettings.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DeckSettings/DeckSettings.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAKvD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAIlC,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAE5E,eAAO,MAAM,YAAY,mCAAoC,iBAAiB,sBAwB7E,CAAC"}
@@ -10,7 +10,6 @@ declare const meta: {
10
10
  readonly 'en-US': {
11
11
  readonly [x: string]: {
12
12
  readonly 'plugin.name': 'Deck';
13
- readonly 'settings.title': 'Deck settings';
14
13
  readonly 'main-header.label': 'Main header';
15
14
  readonly 'open-navigation-sidebar.label': 'Open sidebar';
16
15
  readonly 'collapse-navigation-sidebar.label': 'Close sidebar';
@@ -44,7 +43,8 @@ declare const meta: {
44
43
  readonly 'show-fullscreen-plank.label': 'Fullscreen';
45
44
  readonly 'close.label': 'Close';
46
45
  readonly 'minify.label': 'Minify';
47
- readonly 'open-companion.label': 'Open companion';
46
+ readonly 'open-companion.label': 'Open companion side-by-side';
47
+ readonly 'open-companion-vertical.label': 'Open companion stacked';
48
48
  readonly 'close-companion.label': 'Close companion';
49
49
  readonly 'close-current.label': 'Close current plank';
50
50
  readonly 'close-others.label': 'Close other planks';
@@ -1 +1 @@
1
- {"version":3,"file":"DeckSettings.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckSettings/DeckSettings.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAQjE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAS2B,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC"}
1
+ {"version":3,"file":"DeckSettings.stories.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DeckSettings/DeckSettings.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAQjE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAS2B,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DeckSettings/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,IAAI,OAAO,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { type ComponentType } from 'react';
2
2
  export * from './Deck';
3
- export * from './Plank';
4
3
  export * from './Sidebar';
5
4
  export declare const DeckLayout: ComponentType<any>;
5
+ export declare const DeckSettings: ComponentType<any>;
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAE1B,eAAO,MAAM,UAAU,EAAE,aAAa,CAAC,GAAG,CAAsC,CAAC"}
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,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAE1B,eAAO,MAAM,UAAU,EAAE,aAAa,CAAC,GAAG,CAAsC,CAAC;AACjF,eAAO,MAAM,YAAY,EAAE,aAAa,CAAC,GAAG,CAAwC,CAAC"}
@@ -1,8 +1,10 @@
1
1
  export * from './useBreakpoints';
2
2
  export * from './useCompanions';
3
+ export * from './useCompanionSplit';
3
4
  export * from './useDeckCompanions';
4
5
  export * from './useDeckState';
5
6
  export * from './useMainSize';
6
7
  export * from './useNodeActionExpander';
7
8
  export * from './useSelectedCompanion';
9
+ export * from './useSelectedCompanionVariant';
8
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,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,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC"}
@@ -0,0 +1,28 @@
1
+ import * as Schema from 'effect/Schema';
2
+ import { type SplitterOrientation } from '@dxos/react-ui';
3
+ import { type AspectDef } from '@dxos/react-ui-attention';
4
+ /** Companion split point (rem) used until the user resizes a given orientation. */
5
+ export declare const DEFAULT_COMPANION_SIZE = 30;
6
+ declare const CompanionSplitSchema: Schema.mutable<Schema.Struct<{
7
+ horizontal: Schema.optional<typeof Schema.Number>;
8
+ vertical: Schema.optional<typeof Schema.Number>;
9
+ }>>;
10
+ export type CompanionSplit = Schema.Schema.Type<typeof CompanionSplitSchema>;
11
+ /**
12
+ * Companion splitter sizes (rem), memoized separately for each orientation so toggling the companion
13
+ * between side-by-side and stacked restores that orientation's last split point. Stored in the `local`
14
+ * backend (localStorage, persisted across reloads) via react-ui-attention view state.
15
+ */
16
+ export declare const companionSplitAspect: AspectDef<CompanionSplit>;
17
+ export type UseCompanionSplit = {
18
+ /** The remembered split point for the current orientation (or the default). */
19
+ size: number;
20
+ onSizeChange: (size: number) => void;
21
+ };
22
+ /**
23
+ * Reads and writes the global companion splitter size keyed by `orientation`. A live size keeps dragging
24
+ * smooth while the persisted write is debounced (and flushed on unmount) to avoid per-frame storage writes.
25
+ */
26
+ export declare const useCompanionSplit: (orientation: SplitterOrientation) => UseCompanionSplit;
27
+ export {};
28
+ //# sourceMappingURL=useCompanionSplit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCompanionSplit.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useCompanionSplit.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,KAAK,SAAS,EAAsD,MAAM,0BAA0B,CAAC;AAI9G,mFAAmF;AACnF,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAKzC,QAAA,MAAM,oBAAoB;;;GAGH,CAAC;AAExB,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE7E;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAAS,CAAC,cAAc,CAKzD,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,+EAA+E;IAC/E,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,gBAAiB,mBAAmB,KAAG,iBA8BpE,CAAC"}
@@ -1,8 +1,12 @@
1
- export declare const useCompanions: (id?: string) => Readonly<{
2
- id: string;
3
- type: string;
4
- cacheable?: string[];
5
- properties: Readonly<Record<string, any>>;
6
- data: any;
7
- }>[];
1
+ import { type Node } from '@dxos/plugin-graph';
2
+ /**
3
+ * Companion (child) nodes for a plank.
4
+ *
5
+ * The node's child-connections atom is read in a commit-phase effect rather than during render.
6
+ * Subscribing to it during render (via `useConnections`/`useAtomValue`) recomputes the shared atom and
7
+ * synchronously notifies its other subscribers — notably navtree items rendering the same node — which
8
+ * surfaces as a React "cannot update a component while rendering a different component" warning. Reading
9
+ * it from an effect defers that notification to the commit phase where cross-component updates are allowed.
10
+ */
11
+ export declare const useCompanions: (id?: string) => Node.Node[];
8
12
  //# sourceMappingURL=useCompanions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCompanions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useCompanions.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,aAAa,QAAS,MAAM;;;;;;IAKxC,CAAC"}
1
+ {"version":3,"file":"useCompanions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useCompanions.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAK/C;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,QAAS,MAAM,KAAG,IAAI,CAAC,IAAI,EA2BpD,CAAC"}
@@ -1,12 +1,12 @@
1
1
  import { type Node as NodeType } from '@dxos/plugin-graph';
2
2
  import { type Label } from '@dxos/ui-types/translations';
3
- import { type Position } from '@dxos/util';
3
+ import { Position } from '@dxos/util';
4
4
  export type DeckCompanion = NodeType.Node<any, {
5
5
  label: Label;
6
6
  icon: string;
7
7
  /** If true, the panel will not be wrapped in a scroll area. */
8
8
  fixed?: boolean;
9
- position?: Position;
9
+ position?: Position.Position;
10
10
  joyride?: string;
11
11
  }>;
12
12
  export declare const useDeckCompanions: () => DeckCompanion[];
@@ -1 +1 @@
1
- {"version":3,"file":"useDeckCompanions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDeckCompanions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAQ,KAAK,IAAI,IAAI,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,KAAK,QAAQ,EAAc,MAAM,YAAY,CAAC;AAIvD,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC,IAAI,CACvC,GAAG,EACH;IACE,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IAEb,+DAA+D;IAC/D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CACF,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAO,aAAa,EAKjD,CAAC"}
1
+ {"version":3,"file":"useDeckCompanions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDeckCompanions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAQ,KAAK,IAAI,IAAI,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAItC,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC,IAAI,CACvC,GAAG,EACH;IACE,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IAEb,+DAA+D;IAC/D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CACF,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAO,aAAa,EAKjD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type EphemeralDeckState, type DeckPluginState, type DeckState, type StoredDeckState } from '#types';
1
+ import { type DeckPluginState, type DeckState, type EphemeralDeckState, type StoredDeckState } from '#types';
2
2
  export type DeckStateHook = {
3
3
  /** Combined state value (reactive). Includes both persisted and ephemeral state. */
4
4
  state: DeckPluginState;
@@ -1 +1 @@
1
- {"version":3,"file":"useDeckState.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDeckState.ts"],"names":[],"mappings":"AAWA,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,eAAe,EACrB,MAAM,QAAQ,CAAC;AAEhB,MAAM,MAAM,aAAa,GAAG;IAC1B,oFAAoF;IACpF,KAAK,EAAE,eAAe,CAAC;IACvB,wDAAwD;IACxD,IAAI,EAAE,SAAS,CAAC;IAChB,8BAA8B;IAC9B,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,eAAe,KAAK,IAAI,CAAC;IACzE,8BAA8B;IAC9B,eAAe,EAAE,CAAC,EAAE,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,kBAAkB,KAAK,IAAI,CAAC;CACpF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,QAAO,aAsC/B,CAAC"}
1
+ {"version":3,"file":"useDeckState.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDeckState.ts"],"names":[],"mappings":"AAWA,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACrB,MAAM,QAAQ,CAAC;AAEhB,MAAM,MAAM,aAAa,GAAG;IAC1B,oFAAoF;IACpF,KAAK,EAAE,eAAe,CAAC;IACvB,wDAAwD;IACxD,IAAI,EAAE,SAAS,CAAC;IAChB,8BAA8B;IAC9B,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,eAAe,KAAK,IAAI,CAAC;IACzE,8BAA8B;IAC9B,eAAe,EAAE,CAAC,EAAE,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,kBAAkB,KAAK,IAAI,CAAC;CACpF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,QAAO,aAsC/B,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Reads the globally-selected companion variant (persisted via view state) so reopening the companion
3
+ * restores the last-selected tab rather than resetting to the first.
4
+ */
5
+ export declare const useSelectedCompanionVariant: () => string | undefined;
6
+ //# sourceMappingURL=useSelectedCompanionVariant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSelectedCompanionVariant.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSelectedCompanionVariant.ts"],"names":[],"mappings":"AAQA;;;GAGG;AACH,eAAO,MAAM,2BAA2B,QAAO,MAAM,GAAG,SACoB,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export * from './meta';
2
2
  export * from './types';
3
+ export { COMPANION_VIEW_STATE_CONTEXT, type CompanionSelection, companionVariantAspect, } from './util/companion-view-state';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AAGxB,OAAO,EACL,4BAA4B,EAC5B,KAAK,kBAAkB,EACvB,sBAAsB,GACvB,MAAM,6BAA6B,CAAC"}
@@ -16,6 +16,7 @@ export declare const meta: {
16
16
  } | undefined;
17
17
  readonly dependsOn?: readonly string[] | undefined;
18
18
  readonly spec?: string | undefined;
19
+ readonly createdAt?: string | undefined;
19
20
  readonly author?: string | undefined;
20
21
  };
21
22
  readonly release?: {
@@ -24,6 +25,9 @@ export declare const meta: {
24
25
  readonly dependencies?: {
25
26
  readonly [x: string]: string;
26
27
  } | undefined;
28
+ readonly pluginKey?: string | undefined;
29
+ readonly manifestHash?: string | undefined;
30
+ readonly createdAt?: string | undefined;
27
31
  } | undefined;
28
32
  };
29
33
  //# sourceMappingURL=meta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAC"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"adjust.d.ts","sourceRoot":"","sources":["../../../../src/operations/adjust.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,OAAO,EAAoB,aAAa,EAAwB,MAAM,UAAU,CAAC;AAIjF,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,MAAM,CA2D/D,CAAC;eAEa,OAAO"}
1
+ {"version":3,"file":"adjust.d.ts","sourceRoot":"","sources":["../../../../src/operations/adjust.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAK1C,OAAO,EAAoB,aAAa,EAAwB,MAAM,UAAU,CAAC;AAIjF,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,MAAM,CAuE/D,CAAC;eAEa,OAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"update-companion.d.ts","sourceRoot":"","sources":["../../../../src/operations/update-companion.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,eAAe,CAkB1E,CAAC;eAEa,OAAO"}
1
+ {"version":3,"file":"update-companion.d.ts","sourceRoot":"","sources":["../../../../src/operations/update-companion.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAQ1C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,eAAe,CAoB1E,CAAC;eAEa,OAAO"}
@@ -2,7 +2,6 @@ export declare const translations: [{
2
2
  readonly 'en-US': {
3
3
  readonly [x: string]: {
4
4
  readonly 'plugin.name': 'Deck';
5
- readonly 'settings.title': 'Deck settings';
6
5
  readonly 'main-header.label': 'Main header';
7
6
  readonly 'open-navigation-sidebar.label': 'Open sidebar';
8
7
  readonly 'collapse-navigation-sidebar.label': 'Close sidebar';
@@ -36,7 +35,8 @@ export declare const translations: [{
36
35
  readonly 'show-fullscreen-plank.label': 'Fullscreen';
37
36
  readonly 'close.label': 'Close';
38
37
  readonly 'minify.label': 'Minify';
39
- readonly 'open-companion.label': 'Open companion';
38
+ readonly 'open-companion.label': 'Open companion side-by-side';
39
+ readonly 'open-companion-vertical.label': 'Open companion stacked';
40
40
  readonly 'close-companion.label': 'Close companion';
41
41
  readonly 'close-current.label': 'Close current plank';
42
42
  readonly 'close-others.label': 'Close other planks';
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY;;;oCAIF,MAAM;uCACH,eAAe;0CACZ,aAAa;sDACD,cAAc;0DACV,eAAe;yDAChB,sBAAsB;0DACrB,uBAAuB;sCAC3C,oBAAoB;oDACN,iBAAiB;6CACxB,2BAA2B;iDACvB,aAAa;qDAEvC,8JAA+I;gDACtH,mBAAmB;6CACtB,gCAAgC;0CACnC,MAAM;wCACR,sBAAsB;yCACrB,SAAS;+CACH,4BAA4B;kDACzB,MAAM;qDACH,UAAU;2CACpB,SAAS;4CACR,cAAc;wCAClB,eAAU;2CACP,MAAM;qCACZ,gBAAgB;wCACb,yBAAyB;sCAC3B,0BAA0B;8CAClB,kBAAkB;4CACpB,mBAAmB;8CACjB,gBAAgB;8CAChB,UAAU;8CACV,iBAAiB;oDACX,YAAY;oCAC5B,OAAO;qCACN,QAAQ;6CACA,gBAAgB;8CACf,iBAAiB;4CACnB,qBAAqB;2CACtB,oBAAoB;wCACvB,kBAAkB;wDACF,OAAO;+DACA,SAAS;mDACrB,uBAAuB;6CAC7B,6BAA6B;mDACvB,kCAAkC;oDACjC,eAAe;kDACjB,sBAAsB;;;EAI5B,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY;;;oCAIF,MAAM;0CACA,aAAa;sDACD,cAAc;0DACV,eAAe;yDAChB,sBAAsB;0DACrB,uBAAuB;sCAC3C,oBAAoB;oDACN,iBAAiB;6CACxB,2BAA2B;iDACvB,aAAa;qDAEvC,8JAA+I;gDACtH,mBAAmB;6CACtB,gCAAgC;0CACnC,MAAM;wCACR,sBAAsB;yCACrB,SAAS;+CACH,4BAA4B;kDACzB,MAAM;qDACH,UAAU;2CACpB,SAAS;4CACR,cAAc;wCAClB,eAAU;2CACP,MAAM;qCACZ,gBAAgB;wCACb,yBAAyB;sCAC3B,0BAA0B;8CAClB,kBAAkB;4CACpB,mBAAmB;8CACjB,gBAAgB;8CAChB,UAAU;8CACV,iBAAiB;oDACX,YAAY;oCAC5B,OAAO;qCACN,QAAQ;6CACA,6BAA6B;sDACpB,wBAAwB;8CAChC,iBAAiB;4CACnB,qBAAqB;2CACtB,oBAAoB;wCACvB,kBAAkB;wDACF,OAAO;+DACA,SAAS;mDACrB,uBAAuB;6CAC7B,6BAA6B;mDACvB,kCAAkC;oDACjC,eAAe;kDACjB,sBAAsB;;;EAI5B,CAAC"}
@@ -21,7 +21,7 @@ export declare const State: Capability.InterfaceDef<Atom.Writable<{
21
21
  [x: string]: number;
22
22
  };
23
23
  companionOpen: boolean;
24
- companionVariant?: string | undefined;
24
+ companionOrientation?: "horizontal" | "vertical" | undefined;
25
25
  companionFrameSizing: {
26
26
  [x: string]: number;
27
27
  };
@@ -47,7 +47,7 @@ export declare const State: Capability.InterfaceDef<Atom.Writable<{
47
47
  [x: string]: number;
48
48
  };
49
49
  companionOpen: boolean;
50
- companionVariant?: string | undefined;
50
+ companionOrientation?: "horizontal" | "vertical" | undefined;
51
51
  companionFrameSizing: {
52
52
  [x: string]: number;
53
53
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DeckCapabilities.d.ts","sourceRoot":"","sources":["../../../../src/types/DeckCapabilities.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAK/D,OAAO,EAA2B,KAAK,SAAS,EAAwB,MAAM,UAAU,CAAC;AAEzF,eAAO,MAAM,QAAQ,sGAEpB,CAAC;AAEF,oDAAoD;AACpD,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA0F,CAAC;AAE7G,iDAAiD;AACjD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAE1B,CAAC;AAEF,8CAA8C;AAC9C,eAAO,MAAM,OAAO,QAAO,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,UAAU,CAAC,OAAO,CAMzE,CAAC"}
1
+ {"version":3,"file":"DeckCapabilities.d.ts","sourceRoot":"","sources":["../../../../src/types/DeckCapabilities.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAK/D,OAAO,EAAE,KAAK,SAAS,EAAiD,MAAM,UAAU,CAAC;AAEzF,eAAO,MAAM,QAAQ,sGAEpB,CAAC;AAEF,oDAAoD;AACpD,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA0F,CAAC;AAE7G,iDAAiD;AACjD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAE1B,CAAC;AAEF,8CAA8C;AAC9C,eAAO,MAAM,OAAO,QAAO,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,UAAU,CAAC,OAAO,CAMzE,CAAC"}
@@ -1,11 +1,11 @@
1
1
  import * as Schema from 'effect/Schema';
2
2
  import { Capability } from '@dxos/app-framework';
3
3
  import { Operation } from '@dxos/compute';
4
- declare const PartAdjustmentSchema: Schema.Union<[Schema.Literal<["close"]>, Schema.Literal<["companion"]>, Schema.Literal<["solo"]>, Schema.Literal<["solo--fullscreen"]>, Schema.Literal<["increment-start"]>, Schema.Literal<["increment-end"]>]>;
4
+ declare const PartAdjustmentSchema: Schema.Union<[Schema.Literal<["close"]>, Schema.Literal<["companion"]>, Schema.Literal<["companion-vertical"]>, Schema.Literal<["solo"]>, Schema.Literal<["solo--fullscreen"]>, Schema.Literal<["increment-start"]>, Schema.Literal<["increment-end"]>]>;
5
5
  export type PartAdjustment = Schema.Schema.Type<typeof PartAdjustmentSchema>;
6
6
  export declare const Adjust: Operation.Definition<{
7
7
  readonly id: string;
8
- readonly type: "close" | "companion" | "increment-end" | "increment-start" | "solo" | "solo--fullscreen";
8
+ readonly type: "close" | "companion" | "companion-vertical" | "increment-end" | "increment-start" | "solo" | "solo--fullscreen";
9
9
  }, void, Capability.Service>;
10
10
  export declare const UpdatePlankSize: Operation.Definition<{
11
11
  readonly id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"DeckOperation.d.ts","sourceRoot":"","sources":["../../../../src/types/DeckOperation.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAO1C,QAAA,MAAM,oBAAoB,kNAOzB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE7E,eAAO,MAAM,MAAM;;;4BAajB,CAAC;AAEH,eAAO,MAAM,eAAe;;;4BAa1B,CAAC"}
1
+ {"version":3,"file":"DeckOperation.d.ts","sourceRoot":"","sources":["../../../../src/types/DeckOperation.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAO1C,QAAA,MAAM,oBAAoB,0PAQzB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE7E,eAAO,MAAM,MAAM;;;4BAajB,CAAC;AAEH,eAAO,MAAM,eAAe;;;4BAa1B,CAAC"}
@@ -21,8 +21,8 @@ export declare const DeckState: Schema.Struct<{
21
21
  plankSizing: Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Number>>;
22
22
  /** Whether the companion pane is visible alongside the active plank(s). */
23
23
  companionOpen: typeof Schema.Boolean;
24
- /** Which companion variant to display when the companion pane is open. */
25
- companionVariant: Schema.optional<typeof Schema.String>;
24
+ /** Orientation of the companion splitter: `horizontal` (side-by-side) or `vertical` (stacked). */
25
+ companionOrientation: Schema.optional<Schema.Literal<["horizontal", "vertical"]>>;
26
26
  /** Persisted companion frame widths in rem, keyed by frame ID. */
27
27
  companionFrameSizing: Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Number>>;
28
28
  }>;
@@ -53,8 +53,8 @@ export declare const StoredDeckState: Schema.mutable<Schema.Struct<{
53
53
  plankSizing: Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Number>>;
54
54
  /** Whether the companion pane is visible alongside the active plank(s). */
55
55
  companionOpen: typeof Schema.Boolean;
56
- /** Which companion variant to display when the companion pane is open. */
57
- companionVariant: Schema.optional<typeof Schema.String>;
56
+ /** Orientation of the companion splitter: `horizontal` (side-by-side) or `vertical` (stacked). */
57
+ companionOrientation: Schema.optional<Schema.Literal<["horizontal", "vertical"]>>;
58
58
  /** Persisted companion frame widths in rem, keyed by frame ID. */
59
59
  companionFrameSizing: Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Number>>;
60
60
  }>>>>;
@@ -129,11 +129,11 @@ export declare const EphemeralDeckState: Schema.mutable<Schema.Struct<{
129
129
  export type EphemeralDeckState = Schema.Schema.Type<typeof EphemeralDeckState>;
130
130
  export type DeckPluginState = StoredDeckState & EphemeralDeckState;
131
131
  export declare namespace DeckAction {
132
- const PartAdjustmentSchema: Schema.Union<[Schema.Literal<["close"]>, Schema.Literal<["companion"]>, Schema.Literal<["solo"]>, Schema.Literal<["solo--fullscreen"]>, Schema.Literal<["increment-start"]>, Schema.Literal<["increment-end"]>]>;
132
+ const PartAdjustmentSchema: Schema.Union<[Schema.Literal<["close"]>, Schema.Literal<["companion"]>, Schema.Literal<["companion-vertical"]>, Schema.Literal<["solo"]>, Schema.Literal<["solo--fullscreen"]>, Schema.Literal<["increment-start"]>, Schema.Literal<["increment-end"]>]>;
133
133
  export type PartAdjustment = Schema.Schema.Type<typeof PartAdjustmentSchema>;
134
134
  export const Adjustment: Schema.mutable<Schema.Struct<{
135
135
  id: typeof Schema.String;
136
- type: Schema.Union<[Schema.Literal<["close"]>, Schema.Literal<["companion"]>, Schema.Literal<["solo"]>, Schema.Literal<["solo--fullscreen"]>, Schema.Literal<["increment-start"]>, Schema.Literal<["increment-end"]>]>;
136
+ type: Schema.Union<[Schema.Literal<["close"]>, Schema.Literal<["companion"]>, Schema.Literal<["companion-vertical"]>, Schema.Literal<["solo"]>, Schema.Literal<["solo--fullscreen"]>, Schema.Literal<["increment-start"]>, Schema.Literal<["increment-end"]>]>;
137
137
  }>>;
138
138
  export type Adjustment = Schema.Schema.Type<typeof Adjustment>;
139
139
  const Adjust_base: Schema.TaggedClass<Adjust, `${string}.action.adjust`, {
@@ -141,7 +141,7 @@ export declare namespace DeckAction {
141
141
  } & {
142
142
  input: Schema.mutable<Schema.Struct<{
143
143
  id: typeof Schema.String;
144
- type: Schema.Union<[Schema.Literal<["close"]>, Schema.Literal<["companion"]>, Schema.Literal<["solo"]>, Schema.Literal<["solo--fullscreen"]>, Schema.Literal<["increment-start"]>, Schema.Literal<["increment-end"]>]>;
144
+ type: Schema.Union<[Schema.Literal<["close"]>, Schema.Literal<["companion"]>, Schema.Literal<["companion-vertical"]>, Schema.Literal<["solo"]>, Schema.Literal<["solo--fullscreen"]>, Schema.Literal<["increment-start"]>, Schema.Literal<["increment-end"]>]>;
145
145
  }>>;
146
146
  output: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,gDAAgD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAShD,4EAA4E;;GAEvD,CAAC;AACxB,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAG/E,MAAM,MAAM,eAAe,GAAG,eAAe,GAAG,kBAAkB,CAAC;AAEnE,yBAAiB,UAAU,CAAC,CAAC;IAC3B,MAAM,oBAAoB,0PAQzB,CAAC;IACF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,oBAAoB,CAAC,CAAC;IAC7E,MAAM,CAAC,MAAM,UAAU;;;OAAmF,CAAC;IAC3G,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;;;;;;;;;;IAG/D,MAAM,OAAO,MAAO,SAAQ,WAG1B;KAAG;;;;;;;;;;IAEL,MAAM,OAAO,eAAgB,SAAQ,oBASpC;KAAG;;CACL"}
@@ -0,0 +1,16 @@
1
+ import * as Schema from 'effect/Schema';
2
+ import { type AspectDef } from '@dxos/react-ui-attention';
3
+ /** Global context shared by the deck-companion view-state aspects (split point + selected variant). */
4
+ export declare const COMPANION_VIEW_STATE_CONTEXT = "deck-companion";
5
+ declare const CompanionSelectionSchema: Schema.mutable<Schema.Struct<{
6
+ /** Linked variant of the currently selected companion tab. */
7
+ variant: Schema.optional<typeof Schema.String>;
8
+ }>>;
9
+ export type CompanionSelection = Schema.Schema.Type<typeof CompanionSelectionSchema>;
10
+ /**
11
+ * The globally-selected companion variant, persisted (localStorage) so reopening the companion restores
12
+ * the last-selected tab. Stored via react-ui-attention view state for consistency with the split point.
13
+ */
14
+ export declare const companionVariantAspect: AspectDef<CompanionSelection>;
15
+ export {};
16
+ //# sourceMappingURL=companion-view-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"companion-view-state.d.ts","sourceRoot":"","sources":["../../../../src/util/companion-view-state.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,0BAA0B,CAAC;AAE3E,uGAAuG;AACvG,eAAO,MAAM,4BAA4B,mBAAmB,CAAC;AAE7D,QAAA,MAAM,wBAAwB;IAC5B,8DAA8D;;GAEzC,CAAC;AAExB,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAErF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAE,SAAS,CAAC,kBAAkB,CAK/D,CAAC"}
@@ -1,3 +1,4 @@
1
+ export * from './companion-view-state';
1
2
  export * from './layoutAppliesTopbar';
2
3
  export * from './plank-url-params';
3
4
  export * from './sanitize-persisted-state';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/util/index.ts"],"names":[],"mappings":"AAIA,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/util/index.ts"],"names":[],"mappings":"AAIA,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC"}
@@ -5,6 +5,8 @@
5
5
  export declare const serializePlanks: (active: readonly string[], existingSearch: string) => string;
6
6
  /**
7
7
  * Deserialize plank query params from a URL back to qualified graph IDs.
8
+ * Duplicates are dropped (preserving first occurrence): a shared or hand-edited URL may repeat a
9
+ * `plank` param, and the deck's `active` list must stay unique so each plank renders under a distinct key.
8
10
  */
9
11
  export declare const deserializePlanks: (url: URL) => string[];
10
12
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"plank-url-params.d.ts","sourceRoot":"","sources":["../../../../src/util/plank-url-params.ts"],"names":[],"mappings":"AAQA;;;GAGG;AACH,eAAO,MAAM,eAAe,WAAY,SAAS,MAAM,EAAE,kBAAkB,MAAM,KAAG,MAOnF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAS,GAAG,KAAG,MAAM,EAElD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,mBAAoB,MAAM,KAAG,MAIpD,CAAC"}
1
+ {"version":3,"file":"plank-url-params.d.ts","sourceRoot":"","sources":["../../../../src/util/plank-url-params.ts"],"names":[],"mappings":"AAQA;;;GAGG;AACH,eAAO,MAAM,eAAe,WAAY,SAAS,MAAM,EAAE,kBAAkB,MAAM,KAAG,MAOnF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,QAAS,GAAG,KAAG,MAAM,EAElD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,mBAAoB,MAAM,KAAG,MAIpD,CAAC"}