@dxos/plugin-deck 0.8.4-main.406dc2a → 0.8.4-main.52d7546f51

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 (280) hide show
  1. package/dist/lib/browser/app-graph-builder-X7LCO5KE.mjs +121 -0
  2. package/dist/lib/browser/app-graph-builder-X7LCO5KE.mjs.map +7 -0
  3. package/dist/lib/browser/check-app-scheme-PGISDJX7.mjs +32 -0
  4. package/dist/lib/browser/check-app-scheme-PGISDJX7.mjs.map +7 -0
  5. package/dist/lib/browser/{chunk-7I6H3N4Q.mjs → chunk-DONG2FYU.mjs} +152 -19
  6. package/dist/lib/browser/chunk-DONG2FYU.mjs.map +7 -0
  7. package/dist/lib/browser/chunk-JGC4ZLG3.mjs +1469 -0
  8. package/dist/lib/browser/chunk-JGC4ZLG3.mjs.map +7 -0
  9. package/dist/lib/browser/{chunk-CNTGBCMK.mjs → chunk-NHABISX2.mjs} +40 -33
  10. package/dist/lib/browser/chunk-NHABISX2.mjs.map +7 -0
  11. package/dist/lib/browser/chunk-YT3AJVUU.mjs +161 -0
  12. package/dist/lib/browser/chunk-YT3AJVUU.mjs.map +7 -0
  13. package/dist/lib/browser/index.mjs +82 -74
  14. package/dist/lib/browser/index.mjs.map +4 -4
  15. package/dist/lib/browser/meta.json +1 -1
  16. package/dist/lib/browser/operation-resolver-XJFR3PNQ.mjs +597 -0
  17. package/dist/lib/browser/operation-resolver-XJFR3PNQ.mjs.map +7 -0
  18. package/dist/lib/browser/react-root-AJFHKHRL.mjs +47 -0
  19. package/dist/lib/browser/react-root-AJFHKHRL.mjs.map +7 -0
  20. package/dist/lib/browser/react-surface-KBRBGEXY.mjs +43 -0
  21. package/dist/lib/browser/react-surface-KBRBGEXY.mjs.map +7 -0
  22. package/dist/lib/browser/settings-ES42FGLG.mjs +38 -0
  23. package/dist/lib/browser/settings-ES42FGLG.mjs.map +7 -0
  24. package/dist/lib/browser/state-YMI6IDEL.mjs +104 -0
  25. package/dist/lib/browser/state-YMI6IDEL.mjs.map +7 -0
  26. package/dist/lib/browser/toolkit-VRD54KY3.mjs +54 -0
  27. package/dist/lib/browser/toolkit-VRD54KY3.mjs.map +7 -0
  28. package/dist/lib/browser/types/index.mjs +11 -4
  29. package/dist/lib/browser/url-handler-37UPOB3U.mjs +94 -0
  30. package/dist/lib/browser/url-handler-37UPOB3U.mjs.map +7 -0
  31. package/dist/lib/node-esm/app-graph-builder-US54I64T.mjs +122 -0
  32. package/dist/lib/node-esm/app-graph-builder-US54I64T.mjs.map +7 -0
  33. package/dist/lib/node-esm/check-app-scheme-CK6EVG5D.mjs +33 -0
  34. package/dist/lib/node-esm/check-app-scheme-CK6EVG5D.mjs.map +7 -0
  35. package/dist/lib/node-esm/chunk-7NPS347C.mjs +1470 -0
  36. package/dist/lib/node-esm/chunk-7NPS347C.mjs.map +7 -0
  37. package/dist/lib/node-esm/chunk-ADPMWKLL.mjs +154 -0
  38. package/dist/lib/node-esm/chunk-ADPMWKLL.mjs.map +7 -0
  39. package/dist/lib/node-esm/chunk-CVYHPJIN.mjs +297 -0
  40. package/dist/lib/node-esm/chunk-CVYHPJIN.mjs.map +7 -0
  41. package/dist/lib/node-esm/chunk-ZMJPCZ3V.mjs +162 -0
  42. package/dist/lib/node-esm/chunk-ZMJPCZ3V.mjs.map +7 -0
  43. package/dist/lib/node-esm/index.mjs +183 -0
  44. package/dist/lib/node-esm/index.mjs.map +7 -0
  45. package/dist/lib/node-esm/meta.json +1 -0
  46. package/dist/lib/node-esm/operation-resolver-ZQGNATPX.mjs +598 -0
  47. package/dist/lib/node-esm/operation-resolver-ZQGNATPX.mjs.map +7 -0
  48. package/dist/lib/node-esm/react-root-2S77ABBS.mjs +48 -0
  49. package/dist/lib/node-esm/react-root-2S77ABBS.mjs.map +7 -0
  50. package/dist/lib/node-esm/react-surface-FIHMAFXH.mjs +44 -0
  51. package/dist/lib/node-esm/react-surface-FIHMAFXH.mjs.map +7 -0
  52. package/dist/lib/node-esm/settings-E3TH3FAW.mjs +39 -0
  53. package/dist/lib/node-esm/settings-E3TH3FAW.mjs.map +7 -0
  54. package/dist/lib/node-esm/state-WQEFBQMD.mjs +105 -0
  55. package/dist/lib/node-esm/state-WQEFBQMD.mjs.map +7 -0
  56. package/dist/lib/node-esm/toolkit-ME546G5T.mjs +55 -0
  57. package/dist/lib/node-esm/toolkit-ME546G5T.mjs.map +7 -0
  58. package/dist/lib/node-esm/types/index.mjs +40 -0
  59. package/dist/lib/node-esm/url-handler-2KYHXINK.mjs +95 -0
  60. package/dist/lib/node-esm/url-handler-2KYHXINK.mjs.map +7 -0
  61. package/dist/types/src/DeckPlugin.d.ts +2 -1
  62. package/dist/types/src/DeckPlugin.d.ts.map +1 -1
  63. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
  64. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
  65. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
  66. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
  67. package/dist/types/src/capabilities/check-app-scheme/check-app-scheme.d.ts +5 -0
  68. package/dist/types/src/capabilities/check-app-scheme/check-app-scheme.d.ts.map +1 -0
  69. package/dist/types/src/capabilities/check-app-scheme/index.d.ts +3 -0
  70. package/dist/types/src/capabilities/check-app-scheme/index.d.ts.map +1 -0
  71. package/dist/types/src/capabilities/index.d.ts +8 -13
  72. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  73. package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
  74. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
  75. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
  76. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
  77. package/dist/types/src/capabilities/react-root/index.d.ts +6 -0
  78. package/dist/types/src/capabilities/react-root/index.d.ts.map +1 -0
  79. package/dist/types/src/capabilities/react-root/react-root.d.ts +9 -0
  80. package/dist/types/src/capabilities/react-root/react-root.d.ts.map +1 -0
  81. package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
  82. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
  83. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
  84. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
  85. package/dist/types/src/capabilities/settings/index.d.ts +19 -0
  86. package/dist/types/src/capabilities/settings/index.d.ts.map +1 -0
  87. package/dist/types/src/capabilities/settings/settings.d.ts +22 -0
  88. package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -0
  89. package/dist/types/src/capabilities/state/index.d.ts +174 -0
  90. package/dist/types/src/capabilities/state/index.d.ts.map +1 -0
  91. package/dist/types/src/capabilities/state/state.d.ts +177 -0
  92. package/dist/types/src/capabilities/state/state.d.ts.map +1 -0
  93. package/dist/types/src/capabilities/toolkit/index.d.ts +3 -0
  94. package/dist/types/src/capabilities/toolkit/index.d.ts.map +1 -0
  95. package/dist/types/src/capabilities/toolkit/toolkit.d.ts +27 -0
  96. package/dist/types/src/capabilities/toolkit/toolkit.d.ts.map +1 -0
  97. package/dist/types/src/capabilities/tools/index.d.ts +3 -0
  98. package/dist/types/src/capabilities/tools/index.d.ts.map +1 -0
  99. package/dist/types/src/capabilities/tools/tools.d.ts +12 -0
  100. package/dist/types/src/capabilities/tools/tools.d.ts.map +1 -0
  101. package/dist/types/src/capabilities/url-handler/index.d.ts +3 -0
  102. package/dist/types/src/capabilities/url-handler/index.d.ts.map +1 -0
  103. package/dist/types/src/capabilities/url-handler/url-handler.d.ts +5 -0
  104. package/dist/types/src/capabilities/url-handler/url-handler.d.ts.map +1 -0
  105. package/dist/types/src/components/DeckLayout/ActiveNode.d.ts.map +1 -1
  106. package/dist/types/src/components/DeckLayout/ContentEmpty.d.ts.map +1 -1
  107. package/dist/types/src/components/DeckLayout/DeckLayout.d.ts.map +1 -1
  108. package/dist/types/src/components/DeckLayout/DeckLayout.stories.d.ts +2 -1
  109. package/dist/types/src/components/DeckLayout/DeckLayout.stories.d.ts.map +1 -1
  110. package/dist/types/src/components/DeckLayout/DeckMain.d.ts.map +1 -1
  111. package/dist/types/src/components/DeckLayout/Dialog.d.ts.map +1 -1
  112. package/dist/types/src/components/DeckLayout/Popover.d.ts.map +1 -1
  113. package/dist/types/src/components/DeckLayout/Toast.d.ts +3 -3
  114. package/dist/types/src/components/DeckLayout/Toast.d.ts.map +1 -1
  115. package/dist/types/src/components/DeckSettings/DeckSettings.d.ts +4 -2
  116. package/dist/types/src/components/DeckSettings/DeckSettings.d.ts.map +1 -1
  117. package/dist/types/src/components/Plank/Plank.d.ts +3 -3
  118. package/dist/types/src/components/Plank/Plank.d.ts.map +1 -1
  119. package/dist/types/src/components/Plank/Plank.stories.d.ts +24 -5
  120. package/dist/types/src/components/Plank/Plank.stories.d.ts.map +1 -1
  121. package/dist/types/src/components/Plank/PlankControls.d.ts +1 -1
  122. package/dist/types/src/components/Plank/PlankControls.d.ts.map +1 -1
  123. package/dist/types/src/components/Plank/PlankError.d.ts +1 -1
  124. package/dist/types/src/components/Plank/PlankError.d.ts.map +1 -1
  125. package/dist/types/src/components/Plank/PlankHeading.d.ts +2 -2
  126. package/dist/types/src/components/Plank/PlankHeading.d.ts.map +1 -1
  127. package/dist/types/src/components/Sidebar/ComplementarySidebar.d.ts.map +1 -1
  128. package/dist/types/src/components/Sidebar/Sidebar.d.ts.map +1 -1
  129. package/dist/types/src/components/Sidebar/SidebarButton.d.ts.map +1 -1
  130. package/dist/types/src/hooks/index.d.ts +1 -0
  131. package/dist/types/src/hooks/index.d.ts.map +1 -1
  132. package/dist/types/src/hooks/useDeckCompanions.d.ts +3 -3
  133. package/dist/types/src/hooks/useDeckCompanions.d.ts.map +1 -1
  134. package/dist/types/src/hooks/useDeckState.d.ts +17 -0
  135. package/dist/types/src/hooks/useDeckState.d.ts.map +1 -0
  136. package/dist/types/src/hooks/useHoistStatusbar.d.ts +1 -1
  137. package/dist/types/src/hooks/useHoistStatusbar.d.ts.map +1 -1
  138. package/dist/types/src/hooks/useNodeActionExpander.d.ts +1 -1
  139. package/dist/types/src/hooks/useNodeActionExpander.d.ts.map +1 -1
  140. package/dist/types/src/index.d.ts +1 -2
  141. package/dist/types/src/index.d.ts.map +1 -1
  142. package/dist/types/src/meta.d.ts +2 -2
  143. package/dist/types/src/meta.d.ts.map +1 -1
  144. package/dist/types/src/translations.d.ts +2 -1
  145. package/dist/types/src/translations.d.ts.map +1 -1
  146. package/dist/types/src/{capabilities → types}/capabilities.d.ts +98 -90
  147. package/dist/types/src/types/capabilities.d.ts.map +1 -0
  148. package/dist/types/src/types/events.d.ts +7 -0
  149. package/dist/types/src/types/events.d.ts.map +1 -0
  150. package/dist/types/src/types/index.d.ts +2 -0
  151. package/dist/types/src/types/index.d.ts.map +1 -1
  152. package/dist/types/src/types/schema.d.ts +88 -27
  153. package/dist/types/src/types/schema.d.ts.map +1 -1
  154. package/dist/types/src/util/set-active.d.ts +18 -3
  155. package/dist/types/src/util/set-active.d.ts.map +1 -1
  156. package/dist/types/tsconfig.tsbuildinfo +1 -1
  157. package/package.json +54 -47
  158. package/src/DeckPlugin.ts +28 -48
  159. package/src/capabilities/app-graph-builder/app-graph-builder.ts +119 -0
  160. package/src/capabilities/app-graph-builder/index.ts +7 -0
  161. package/src/capabilities/check-app-scheme/check-app-scheme.ts +45 -0
  162. package/src/capabilities/check-app-scheme/index.ts +7 -0
  163. package/src/capabilities/index.ts +9 -14
  164. package/src/capabilities/operation-resolver/index.ts +10 -0
  165. package/src/capabilities/operation-resolver/operation-resolver.ts +570 -0
  166. package/src/capabilities/react-root/index.ts +7 -0
  167. package/src/capabilities/react-root/react-root.tsx +47 -0
  168. package/src/capabilities/react-surface/index.ts +7 -0
  169. package/src/capabilities/react-surface/react-surface.tsx +38 -0
  170. package/src/capabilities/settings/index.ts +7 -0
  171. package/src/capabilities/settings/settings.ts +39 -0
  172. package/src/capabilities/state/index.ts +7 -0
  173. package/src/capabilities/state/state.ts +105 -0
  174. package/src/capabilities/toolkit/index.ts +7 -0
  175. package/src/capabilities/toolkit/toolkit.ts +64 -0
  176. package/src/capabilities/tools/index.ts +7 -0
  177. package/src/capabilities/tools/tools.ts +92 -0
  178. package/src/capabilities/url-handler/index.ts +7 -0
  179. package/src/capabilities/url-handler/url-handler.ts +96 -0
  180. package/src/components/DeckLayout/ActiveNode.tsx +3 -2
  181. package/src/components/DeckLayout/Banner.tsx +6 -6
  182. package/src/components/DeckLayout/ContentEmpty.tsx +4 -5
  183. package/src/components/DeckLayout/DeckLayout.stories.tsx +20 -32
  184. package/src/components/DeckLayout/DeckLayout.tsx +13 -11
  185. package/src/components/DeckLayout/DeckMain.tsx +46 -45
  186. package/src/components/DeckLayout/Dialog.tsx +21 -12
  187. package/src/components/DeckLayout/Fallback.tsx +2 -2
  188. package/src/components/DeckLayout/Popover.tsx +60 -32
  189. package/src/components/DeckLayout/StatusBar.tsx +3 -3
  190. package/src/components/DeckLayout/Toast.tsx +5 -5
  191. package/src/components/DeckSettings/DeckSettings.tsx +39 -29
  192. package/src/components/Plank/Plank.stories.tsx +16 -7
  193. package/src/components/Plank/Plank.tsx +70 -53
  194. package/src/components/Plank/PlankControls.tsx +6 -6
  195. package/src/components/Plank/PlankError.tsx +2 -2
  196. package/src/components/Plank/PlankHeading.tsx +34 -38
  197. package/src/components/Sidebar/ComplementarySidebar.tsx +63 -32
  198. package/src/components/Sidebar/Sidebar.tsx +5 -5
  199. package/src/components/Sidebar/SidebarButton.tsx +35 -28
  200. package/src/components/fragments.ts +1 -1
  201. package/src/hooks/index.ts +1 -0
  202. package/src/hooks/useCompanions.ts +1 -1
  203. package/src/hooks/useDeckCompanions.ts +6 -4
  204. package/src/hooks/useDeckState.ts +82 -0
  205. package/src/hooks/useHoistStatusbar.ts +3 -5
  206. package/src/hooks/useNodeActionExpander.ts +4 -4
  207. package/src/index.ts +1 -2
  208. package/src/meta.ts +7 -2
  209. package/src/translations.ts +2 -1
  210. package/src/types/capabilities.ts +33 -0
  211. package/src/types/events.ts +21 -0
  212. package/src/types/index.ts +2 -0
  213. package/src/types/schema.ts +85 -11
  214. package/src/util/layoutAppliesTopbar.ts +1 -1
  215. package/src/util/set-active.ts +49 -29
  216. package/dist/lib/browser/app-graph-builder-YYP67JHW.mjs +0 -153
  217. package/dist/lib/browser/app-graph-builder-YYP67JHW.mjs.map +0 -7
  218. package/dist/lib/browser/check-app-scheme-GCOL6YDT.mjs +0 -32
  219. package/dist/lib/browser/check-app-scheme-GCOL6YDT.mjs.map +0 -7
  220. package/dist/lib/browser/chunk-7I6H3N4Q.mjs.map +0 -7
  221. package/dist/lib/browser/chunk-CNTGBCMK.mjs.map +0 -7
  222. package/dist/lib/browser/chunk-HUWUYTOI.mjs +0 -16
  223. package/dist/lib/browser/chunk-HUWUYTOI.mjs.map +0 -7
  224. package/dist/lib/browser/chunk-JQKOS2HB.mjs +0 -1531
  225. package/dist/lib/browser/chunk-JQKOS2HB.mjs.map +0 -7
  226. package/dist/lib/browser/chunk-MHP4GPX5.mjs +0 -11
  227. package/dist/lib/browser/chunk-MHP4GPX5.mjs.map +0 -7
  228. package/dist/lib/browser/chunk-RJP5R7PY.mjs +0 -127
  229. package/dist/lib/browser/chunk-RJP5R7PY.mjs.map +0 -7
  230. package/dist/lib/browser/chunk-VX7MMQOW.mjs +0 -129
  231. package/dist/lib/browser/chunk-VX7MMQOW.mjs.map +0 -7
  232. package/dist/lib/browser/intent-resolver-7XNOEPVN.mjs +0 -524
  233. package/dist/lib/browser/intent-resolver-7XNOEPVN.mjs.map +0 -7
  234. package/dist/lib/browser/react-root-OJEF7YCH.mjs +0 -43
  235. package/dist/lib/browser/react-root-OJEF7YCH.mjs.map +0 -7
  236. package/dist/lib/browser/react-surface-XN2NJYHO.mjs +0 -40
  237. package/dist/lib/browser/react-surface-XN2NJYHO.mjs.map +0 -7
  238. package/dist/lib/browser/settings-M3KSKRAP.mjs +0 -30
  239. package/dist/lib/browser/settings-M3KSKRAP.mjs.map +0 -7
  240. package/dist/lib/browser/state-6ZSDTF6Q.mjs +0 -12
  241. package/dist/lib/browser/toolkit-L7C3UAEU.mjs +0 -63
  242. package/dist/lib/browser/toolkit-L7C3UAEU.mjs.map +0 -7
  243. package/dist/lib/browser/url-handler-EHTLXZRR.mjs +0 -70
  244. package/dist/lib/browser/url-handler-EHTLXZRR.mjs.map +0 -7
  245. package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
  246. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
  247. package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
  248. package/dist/types/src/capabilities/check-app-scheme.d.ts +0 -4
  249. package/dist/types/src/capabilities/check-app-scheme.d.ts.map +0 -1
  250. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  251. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  252. package/dist/types/src/capabilities/react-root.d.ts +0 -7
  253. package/dist/types/src/capabilities/react-root.d.ts.map +0 -1
  254. package/dist/types/src/capabilities/react-surface.d.ts +0 -4
  255. package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
  256. package/dist/types/src/capabilities/settings.d.ts +0 -4
  257. package/dist/types/src/capabilities/settings.d.ts.map +0 -1
  258. package/dist/types/src/capabilities/state.d.ts +0 -104
  259. package/dist/types/src/capabilities/state.d.ts.map +0 -1
  260. package/dist/types/src/capabilities/toolkit.d.ts +0 -6
  261. package/dist/types/src/capabilities/toolkit.d.ts.map +0 -1
  262. package/dist/types/src/capabilities/tools.d.ts +0 -11
  263. package/dist/types/src/capabilities/tools.d.ts.map +0 -1
  264. package/dist/types/src/capabilities/url-handler.d.ts +0 -4
  265. package/dist/types/src/capabilities/url-handler.d.ts.map +0 -1
  266. package/dist/types/src/events.d.ts +0 -4
  267. package/dist/types/src/events.d.ts.map +0 -1
  268. package/src/capabilities/app-graph-builder.ts +0 -143
  269. package/src/capabilities/capabilities.ts +0 -14
  270. package/src/capabilities/check-app-scheme.ts +0 -40
  271. package/src/capabilities/intent-resolver.ts +0 -472
  272. package/src/capabilities/react-root.tsx +0 -39
  273. package/src/capabilities/react-surface.tsx +0 -30
  274. package/src/capabilities/settings.ts +0 -27
  275. package/src/capabilities/state.ts +0 -108
  276. package/src/capabilities/toolkit.ts +0 -57
  277. package/src/capabilities/tools.ts +0 -84
  278. package/src/capabilities/url-handler.ts +0 -60
  279. package/src/events.ts +0 -11
  280. /package/dist/lib/{browser/state-6ZSDTF6Q.mjs.map → node-esm/types/index.mjs.map} +0 -0
@@ -4,11 +4,10 @@
4
4
 
5
5
  import React, { useMemo } from 'react';
6
6
 
7
- import { Surface, useCapability } from '@dxos/app-framework';
7
+ import { Surface } from '@dxos/app-framework/ui';
8
8
  import { type Label, Main } from '@dxos/react-ui';
9
9
 
10
- import { DeckCapabilities } from '../../capabilities';
11
- import { useBreakpoints, useHoistStatusbar } from '../../hooks';
10
+ import { useBreakpoints, useDeckState, useHoistStatusbar } from '../../hooks';
12
11
  import { meta } from '../../meta';
13
12
  import { getMode } from '../../types';
14
13
  import { layoutAppliesTopbar } from '../../util';
@@ -16,7 +15,8 @@ import { layoutAppliesTopbar } from '../../util';
16
15
  const label = ['sidebar title', { ns: meta.id }] satisfies Label;
17
16
 
18
17
  export const Sidebar = () => {
19
- const { popoverAnchorId, activeDeck: current, deck } = useCapability(DeckCapabilities.DeckState);
18
+ const { state, deck } = useDeckState();
19
+ const { popoverAnchorId, activeDeck: current } = state;
20
20
  const breakpoint = useBreakpoints();
21
21
  const layoutMode = getMode(deck);
22
22
  const topbar = layoutAppliesTopbar(breakpoint, layoutMode);
@@ -36,7 +36,7 @@ export const Sidebar = () => {
36
36
  hoistStatusbar && 'block-end-[--statusbar-size]',
37
37
  ]}
38
38
  >
39
- <Surface role='navigation' data={navigationData} limit={1} />
39
+ <Surface.Surface role='navigation' data={navigationData} limit={1} />
40
40
  </Main.NavigationSidebar>
41
41
  );
42
42
  };
@@ -4,45 +4,56 @@
4
4
 
5
5
  import React, { useCallback } from 'react';
6
6
 
7
- import { LayoutAction, createIntent, useCapability, useIntentDispatcher } from '@dxos/app-framework';
7
+ import { useOperationInvoker } from '@dxos/app-framework/ui';
8
+ import { LayoutOperation } from '@dxos/app-toolkit';
8
9
  import { IconButton, type IconButtonProps, type ThemedClassName, useTranslation } from '@dxos/react-ui';
9
10
 
10
- import { DeckCapabilities } from '../../capabilities';
11
- import { getCompanionId, useDeckCompanions } from '../../hooks';
11
+ import { getCompanionId, useDeckCompanions, useDeckState } from '../../hooks';
12
12
  import { meta } from '../../meta';
13
13
 
14
14
  export const ToggleSidebarButton = ({
15
15
  classNames,
16
16
  variant = 'ghost',
17
17
  }: ThemedClassName<Pick<IconButtonProps, 'variant'>>) => {
18
- const layoutContext = useCapability(DeckCapabilities.MutableDeckState);
18
+ const { updateState } = useDeckState();
19
19
  const { t } = useTranslation(meta.id);
20
+
21
+ const handleClick = useCallback(() => {
22
+ updateState((state) => ({
23
+ ...state,
24
+ sidebarState: state.sidebarState === 'expanded' ? 'collapsed' : 'expanded',
25
+ }));
26
+ }, [updateState]);
27
+
20
28
  return (
21
29
  <IconButton
22
30
  variant={variant}
23
- iconOnly
24
31
  icon='ph--sidebar--regular'
32
+ iconOnly
25
33
  size={4}
26
34
  label={t('open navigation sidebar label')}
27
- onClick={() =>
28
- (layoutContext.sidebarState = layoutContext.sidebarState === 'expanded' ? 'collapsed' : 'expanded')
29
- }
35
+ onClick={handleClick}
30
36
  classNames={classNames}
31
37
  />
32
38
  );
33
39
  };
34
40
 
35
41
  export const CloseSidebarButton = () => {
36
- const layoutContext = useCapability(DeckCapabilities.MutableDeckState);
42
+ const { updateState } = useDeckState();
37
43
  const { t } = useTranslation(meta.id);
44
+
45
+ const handleClick = useCallback(() => {
46
+ updateState((state) => ({ ...state, sidebarState: 'collapsed' }));
47
+ }, [updateState]);
48
+
38
49
  return (
39
50
  <IconButton
40
51
  variant='ghost'
41
- iconOnly
42
52
  icon='ph--caret-line-left--regular'
53
+ iconOnly
43
54
  size={4}
44
55
  label={t('close navigation sidebar label')}
45
- onClick={() => (layoutContext.sidebarState = 'collapsed')}
56
+ onClick={handleClick}
46
57
  classNames='rounded-none pli-1 dx-focus-ring-inset pie-[max(.5rem,env(safe-area-inset-left))]'
47
58
  />
48
59
  );
@@ -53,35 +64,31 @@ export const ToggleComplementarySidebarButton = ({
53
64
  classNames,
54
65
  current,
55
66
  }: ThemedClassName<{ inR0?: boolean; current?: string }>) => {
56
- const { dispatchPromise: dispatch } = useIntentDispatcher();
57
- const layoutContext = useCapability(DeckCapabilities.MutableDeckState);
67
+ const { invokeSync } = useOperationInvoker();
68
+ const { state, updateState } = useDeckState();
58
69
  const { t } = useTranslation(meta.id);
59
70
 
60
71
  const companions = useDeckCompanions();
61
- const handleClick = useCallback(async () => {
62
- layoutContext.complementarySidebarState =
63
- layoutContext.complementarySidebarState === 'expanded' ? 'collapsed' : 'expanded';
64
- const firstCompanion = companions[0];
65
- if (layoutContext.complementarySidebarState === 'expanded' && !current && firstCompanion) {
66
- await dispatch(
67
- createIntent(LayoutAction.UpdateComplementary, {
68
- part: 'complementary',
69
- subject: getCompanionId(firstCompanion.id),
70
- }),
71
- );
72
+ const handleClick = useCallback(() => {
73
+ const nextState = state.complementarySidebarState === 'expanded' ? 'collapsed' : 'expanded';
74
+ updateState((state) => ({ ...state, complementarySidebarState: nextState }));
75
+
76
+ const subject = state.complementarySidebarPanel ?? (companions[0] && getCompanionId(companions[0].id));
77
+ if (nextState === 'expanded' && !current && subject) {
78
+ invokeSync(LayoutOperation.UpdateComplementary, { subject });
72
79
  }
73
- }, [layoutContext, current, companions, dispatch]);
80
+ }, [state, updateState, current, companions, invokeSync]);
74
81
 
75
82
  return (
76
83
  <IconButton
77
- iconOnly
78
- onClick={handleClick}
79
84
  variant='ghost'
80
- label={t('open complementary sidebar label')}
81
85
  classNames={['[&>svg]:-scale-x-100', classNames]}
82
86
  icon='ph--sidebar-simple--regular'
87
+ iconOnly
88
+ label={t('open complementary sidebar label')}
83
89
  size={inR0 ? 5 : 4}
84
90
  tooltipSide={inR0 ? 'left' : undefined}
91
+ onClick={handleClick}
85
92
  />
86
93
  );
87
94
  };
@@ -2,7 +2,7 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import { mx } from '@dxos/react-ui-theme';
5
+ import { mx } from '@dxos/ui-theme';
6
6
 
7
7
  export const soloInlinePadding =
8
8
  'pis-[calc(env(safe-area-inset-left)+.25rem)] pie-[calc(env(safe-area-inset-left)+.25rem)]';
@@ -5,6 +5,7 @@
5
5
  export * from './useBreakpoints';
6
6
  export * from './useCompanions';
7
7
  export * from './useDeckCompanions';
8
+ export * from './useDeckState';
8
9
  export * from './useHoistStatusbar';
9
10
  export * from './useMainSize';
10
11
  export * from './useNodeActionExpander';
@@ -4,7 +4,7 @@
4
4
 
5
5
  import { useMemo } from 'react';
6
6
 
7
- import { useAppGraph } from '@dxos/app-framework';
7
+ import { useAppGraph } from '@dxos/app-toolkit/ui';
8
8
  import { useConnections } from '@dxos/plugin-graph';
9
9
  import { byPosition } from '@dxos/util';
10
10
 
@@ -2,8 +2,10 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import { type Label, useAppGraph } from '@dxos/app-framework';
6
- import { type Node, ROOT_ID, useConnections } from '@dxos/plugin-graph';
5
+ import { useAppGraph } from '@dxos/app-toolkit/ui';
6
+ import { Node, type Node as NodeType } from '@dxos/plugin-graph';
7
+ import { useConnections } from '@dxos/plugin-graph';
8
+ import { type Label } from '@dxos/ui-types';
7
9
  import { type Position, byPosition } from '@dxos/util';
8
10
 
9
11
  import { ATTENDABLE_PATH_SEPARATOR, DECK_COMPANION_TYPE } from '../types';
@@ -13,7 +15,7 @@ export const getCompanionId = (id: string) => {
13
15
  return companionId ?? 'never';
14
16
  };
15
17
 
16
- export type DeckCompanion = Node<
18
+ export type DeckCompanion = NodeType.Node<
17
19
  any,
18
20
  {
19
21
  label: Label;
@@ -27,7 +29,7 @@ export type DeckCompanion = Node<
27
29
 
28
30
  export const useDeckCompanions = (): DeckCompanion[] => {
29
31
  const { graph } = useAppGraph();
30
- const connections = useConnections(graph, ROOT_ID);
32
+ const connections = useConnections(graph, Node.RootId);
31
33
  const companions = connections.filter((node) => node.type === DECK_COMPANION_TYPE) as DeckCompanion[];
32
34
  return companions.toSorted((a, b) => byPosition(a.properties, b.properties));
33
35
  };
@@ -0,0 +1,82 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import { useAtomValue } from '@effect-atom/atom-react';
6
+ import { useCallback, useMemo } from 'react';
7
+
8
+ import { Capabilities } from '@dxos/app-framework';
9
+ import { useCapability } from '@dxos/app-framework/ui';
10
+ import { invariant } from '@dxos/invariant';
11
+
12
+ import {
13
+ DeckCapabilities,
14
+ type DeckEphemeralStateProps,
15
+ type DeckPluginState,
16
+ type DeckState,
17
+ type DeckStateProps,
18
+ } from '../types';
19
+
20
+ export type DeckStateHook = {
21
+ /** Combined state value (reactive). Includes both persisted and ephemeral state. */
22
+ state: DeckPluginState;
23
+ /** The active deck, computed from decks[activeDeck]. */
24
+ deck: DeckState;
25
+ /** Update persisted state. */
26
+ updateState: (fn: (current: DeckStateProps) => DeckStateProps) => void;
27
+ /** Update ephemeral state. */
28
+ updateEphemeral: (fn: (current: DeckEphemeralStateProps) => DeckEphemeralStateProps) => void;
29
+ };
30
+
31
+ /**
32
+ * Hook to access the deck plugin state reactively.
33
+ * Returns the combined state, the active deck, and update functions for each atom.
34
+ */
35
+ export const useDeckState = (): DeckStateHook => {
36
+ const registry = useCapability(Capabilities.AtomRegistry);
37
+ const stateAtom = useCapability(DeckCapabilities.State);
38
+ const ephemeralAtom = useCapability(DeckCapabilities.EphemeralState);
39
+
40
+ const persistedState = useAtomValue(stateAtom);
41
+ const ephemeralState = useAtomValue(ephemeralAtom);
42
+
43
+ // Compute deck from decks[activeDeck] to ensure it's always current.
44
+ const deck = useMemo(() => {
45
+ const d = persistedState.decks[persistedState.activeDeck];
46
+ invariant(d, `Deck not found: ${persistedState.activeDeck}`);
47
+ return d;
48
+ }, [persistedState.decks, persistedState.activeDeck]);
49
+
50
+ // Combine persisted and ephemeral state into a unified view.
51
+ const state = useMemo(
52
+ (): DeckPluginState => ({
53
+ ...persistedState,
54
+ ...ephemeralState,
55
+ }),
56
+ [persistedState, ephemeralState],
57
+ );
58
+
59
+ const updateState = useCallback(
60
+ (fn: (current: DeckStateProps) => DeckStateProps) => {
61
+ registry.set(stateAtom, fn(registry.get(stateAtom)));
62
+ },
63
+ [registry, stateAtom],
64
+ );
65
+
66
+ const updateEphemeral = useCallback(
67
+ (fn: (current: DeckEphemeralStateProps) => DeckEphemeralStateProps) => {
68
+ registry.set(ephemeralAtom, fn(registry.get(ephemeralAtom)));
69
+ },
70
+ [registry, ephemeralAtom],
71
+ );
72
+
73
+ return useMemo(
74
+ () => ({
75
+ state,
76
+ deck,
77
+ updateState,
78
+ updateEphemeral,
79
+ }),
80
+ [state, deck, updateState, updateEphemeral],
81
+ );
82
+ };
@@ -4,16 +4,14 @@
4
4
 
5
5
  import { useMemo } from 'react';
6
6
 
7
- import { Capabilities, useCapability } from '@dxos/app-framework';
7
+ import { useAtomCapability } from '@dxos/app-framework/ui';
8
8
  import { useThemeContext } from '@dxos/react-ui';
9
9
 
10
- import { meta } from '../meta';
11
- import type { DeckSettingsProps, LayoutMode } from '../types';
10
+ import { DeckCapabilities, type LayoutMode } from '../types';
12
11
 
13
12
  export const useHoistStatusbar = (breakpoint: string, layoutMode?: LayoutMode): boolean => {
14
13
  const { safeAreaPadding } = useThemeContext();
15
- const enableStatusbar = useCapability(Capabilities.SettingsStore).getStore<DeckSettingsProps>(meta.id)?.value
16
- .enableStatusbar;
14
+ const enableStatusbar = useAtomCapability(DeckCapabilities.Settings).enableStatusbar;
17
15
 
18
16
  return useMemo(() => {
19
17
  return (
@@ -4,14 +4,14 @@
4
4
 
5
5
  import { useEffect } from 'react';
6
6
 
7
- import { type Node, getGraph } from '@dxos/plugin-graph';
7
+ import { Graph, type Node } from '@dxos/plugin-graph';
8
8
 
9
- export const useNodeActionExpander = (node?: Node) => {
9
+ export const useNodeActionExpander = (node?: Node.Node) => {
10
10
  useEffect(() => {
11
11
  if (node) {
12
12
  const frame = requestAnimationFrame(() => {
13
- const graph = getGraph(node);
14
- void graph.expand(node.id);
13
+ const graph = Graph.getGraph(node);
14
+ void Graph.expand(graph, node.id);
15
15
  });
16
16
  return () => cancelAnimationFrame(frame);
17
17
  }
package/src/index.ts CHANGED
@@ -2,8 +2,7 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- export { DeckCapabilities } from './capabilities';
6
- export { DeckEvents } from './events';
5
+ export { DeckCapabilities, DeckEvents } from './types';
7
6
  export * from './DeckPlugin';
8
7
  export * from './meta';
9
8
  export { useCompanions } from './hooks';
package/src/meta.ts CHANGED
@@ -2,10 +2,15 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { type PluginMeta } from '@dxos/app-framework';
5
+ import { type Plugin } from '@dxos/app-framework';
6
+ import { trim } from '@dxos/util';
6
7
 
7
- export const meta: PluginMeta = {
8
+ export const meta: Plugin.Meta = {
8
9
  id: 'dxos.org/plugin/deck',
9
10
  name: 'Layout',
11
+ description: trim`
12
+ Flexible layout system for arranging workspace views in tabs, splits, and panels.
13
+ Customize your workspace organization with drag-and-drop layout management.
14
+ `,
10
15
  icon: 'ph--layout--regular',
11
16
  };
@@ -34,7 +34,7 @@ export const translations = [
34
34
  'undo action label': 'Undo',
35
35
  'undo action alt': 'Undo previous action',
36
36
  'undo close label': 'Dismiss',
37
- 'error fallback message': 'Unable to open this item',
37
+ 'error fallback message': 'Unable to open this object',
38
38
  'plank heading fallback label': 'Untitled',
39
39
  'actions menu label': 'Options',
40
40
  'settings deck label': 'Disable deck',
@@ -64,6 +64,7 @@ export const translations = [
64
64
  'close others label': 'Close other planks',
65
65
  'close all label': 'Close all planks',
66
66
  'companion plank heading fallback label': 'Related',
67
+ 'open item label': 'Open',
67
68
  },
68
69
  },
69
70
  },
@@ -0,0 +1,33 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import { type Atom } from '@effect-atom/atom-react';
6
+ import * as Effect from 'effect/Effect';
7
+
8
+ import { Capabilities, Capability } from '@dxos/app-framework';
9
+ import { invariant } from '@dxos/invariant';
10
+
11
+ import { meta } from '../meta';
12
+ import { type DeckEphemeralStateProps, type DeckSettingsProps, type DeckState, type DeckStateProps } from '../types';
13
+
14
+ export namespace DeckCapabilities {
15
+ export const Settings = Capability.make<Atom.Writable<DeckSettingsProps>>(`${meta.id}/capability/settings`);
16
+
17
+ /** Persisted state (stored in KVS/localStorage). */
18
+ export const State = Capability.make<Atom.Writable<DeckStateProps>>(`${meta.id}/capability/state`);
19
+
20
+ /** Transient/ephemeral state (not persisted). */
21
+ export const EphemeralState = Capability.make<Atom.Writable<DeckEphemeralStateProps>>(
22
+ `${meta.id}/capability/ephemeral-state`,
23
+ );
24
+
25
+ /** Get the current active deck from state. */
26
+ export const getDeck = (): Effect.Effect<DeckState, Error, Capability.Service> =>
27
+ Effect.gen(function* () {
28
+ const state = yield* Capabilities.getAtomValue(State);
29
+ const deck = state.decks[state.activeDeck];
30
+ invariant(deck, `Deck not found: ${state.activeDeck}`);
31
+ return deck;
32
+ });
33
+ }
@@ -0,0 +1,21 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import { type ActivationEvent } from '@dxos/app-framework';
6
+ import { AppActivationEvents } from '@dxos/app-toolkit';
7
+
8
+ import { meta } from '../meta';
9
+
10
+ import { DeckCapabilities } from './capabilities';
11
+
12
+ export namespace DeckEvents {
13
+ export const StateReady: ActivationEvent.ActivationEvent = AppActivationEvents.createStateEvent(
14
+ `${meta.id}/state-ready`,
15
+ );
16
+
17
+ /** Fired when DeckSettings capability is ready. */
18
+ export const SettingsReady: ActivationEvent.ActivationEvent = AppActivationEvents.createSettingsEvent(
19
+ DeckCapabilities.Settings.identifier,
20
+ );
21
+ }
@@ -2,4 +2,6 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
+ export * from './capabilities';
6
+ export * from './events';
5
7
  export * from './schema';
@@ -4,7 +4,9 @@
4
4
 
5
5
  import * as Schema from 'effect/Schema';
6
6
 
7
- import { LayoutAction } from '@dxos/app-framework';
7
+ import { Capability } from '@dxos/app-framework';
8
+ import { Label, LayoutOperation } from '@dxos/app-toolkit';
9
+ import { Operation } from '@dxos/operation';
8
10
  import { type DeepReadonly } from '@dxos/util';
9
11
 
10
12
  import { meta } from '../meta';
@@ -77,12 +79,21 @@ export const getMode = (deck: DeckState | DeepReadonly<DeckState>): LayoutMode =
77
79
  return 'deck';
78
80
  };
79
81
 
80
- // State of the deck plugin.
81
- export const DeckPluginState = Schema.Struct({
82
+ // Persisted plugin state (stored in KVS/localStorage).
83
+ export const DeckStateSchema = Schema.Struct({
82
84
  sidebarState: Schema.Literal('closed', 'collapsed', 'expanded'),
83
85
  complementarySidebarState: Schema.Literal('closed', 'collapsed', 'expanded'),
84
86
  complementarySidebarPanel: Schema.optional(Schema.String),
87
+ activeDeck: Schema.String,
88
+ previousDeck: Schema.String,
89
+ decks: Schema.mutable(Schema.Record({ key: Schema.String, value: Schema.mutable(DeckState) })),
90
+ previousMode: Schema.mutable(Schema.Record({ key: Schema.String, value: LayoutMode })),
91
+ }).pipe(Schema.mutable);
92
+ export type DeckStateProps = Schema.Schema.Type<typeof DeckStateSchema>;
85
93
 
94
+ // TODO(burdon): Factor out state (in common with other layouts?)
95
+ // Transient/ephemeral plugin state (not persisted).
96
+ export const DeckEphemeralStateSchema = Schema.Struct({
86
97
  dialogOpen: Schema.Boolean,
87
98
  dialogType: Schema.optional(Schema.Literal('default', 'alert')),
88
99
  dialogBlockAlign: Schema.optional(Schema.Literal('start', 'center', 'end')),
@@ -95,23 +106,23 @@ export const DeckPluginState = Schema.Struct({
95
106
  popoverSide: Schema.optional(Schema.Literal('top', 'right', 'bottom', 'left')),
96
107
  popoverAnchor: Schema.optional(Schema.Any),
97
108
  popoverAnchorId: Schema.optional(Schema.String),
109
+ popoverKind: Schema.optional(Schema.Literal('base', 'card')),
110
+ popoverTitle: Schema.optional(Label.annotations({ description: 'The title of the popover.' })),
111
+ /** Ref of the subject to be passed to the popover Surface. */
112
+ popoverContentRef: Schema.optional(Schema.String),
98
113
  /** Data to be passed to the popover Surface. */
99
114
  popoverContent: Schema.optional(Schema.Any),
100
115
 
101
- toasts: Schema.mutable(Schema.Array(LayoutAction.Toast)),
116
+ toasts: Schema.mutable(Schema.Array(LayoutOperation.Toast)),
102
117
  currentUndoId: Schema.optional(Schema.String),
103
118
 
104
- activeDeck: Schema.String,
105
- previousDeck: Schema.String,
106
- decks: Schema.mutable(Schema.Record({ key: Schema.String, value: Schema.mutable(DeckState) })),
107
- previousMode: Schema.mutable(Schema.Record({ key: Schema.String, value: LayoutMode })),
108
- deck: Schema.mutable(DeckState),
109
-
110
119
  /** The identifier of a component to scroll into view when it is mounted. */
111
120
  scrollIntoView: Schema.optional(Schema.String),
112
121
  }).pipe(Schema.mutable);
122
+ export type DeckEphemeralStateProps = Schema.Schema.Type<typeof DeckEphemeralStateSchema>;
113
123
 
114
- export type DeckPluginState = Schema.Schema.Type<typeof DeckPluginState>;
124
+ // Combined state type (for convenience in components that need both).
125
+ export type DeckPluginState = DeckStateProps & DeckEphemeralStateProps;
115
126
 
116
127
  export namespace DeckAction {
117
128
  const PartAdjustmentSchema = Schema.Union(
@@ -148,3 +159,66 @@ export namespace DeckAction {
148
159
  output: Schema.Void,
149
160
  }) {}
150
161
  }
162
+
163
+ /**
164
+ * Operations for the Deck plugin.
165
+ */
166
+ export namespace DeckOperation {
167
+ const PartAdjustmentSchema = Schema.Union(
168
+ Schema.Literal('close').annotations({ description: 'Close the plank.' }),
169
+ Schema.Literal('companion').annotations({ description: 'Open the companion plank.' }),
170
+ Schema.Literal('solo').annotations({ description: 'Solo the plank.' }),
171
+ Schema.Literal('solo--fullscreen').annotations({ description: 'Fullscreen the plank.' }),
172
+ Schema.Literal('increment-start').annotations({ description: 'Move the plank towards the start of the deck.' }),
173
+ Schema.Literal('increment-end').annotations({ description: 'Move the plank towards the end of the deck.' }),
174
+ );
175
+ export type PartAdjustment = Schema.Schema.Type<typeof PartAdjustmentSchema>;
176
+
177
+ export const Adjust = Operation.make({
178
+ meta: {
179
+ key: `${meta.id}/operation/adjust`,
180
+ name: 'Adjust',
181
+ description: 'Adjust the layout of a plank.',
182
+ },
183
+ services: [Capability.Service],
184
+ schema: {
185
+ input: Schema.Struct({
186
+ id: Schema.String.annotations({ description: 'The id of the plank to adjust.' }),
187
+ type: PartAdjustmentSchema.annotations({ description: 'The type of adjustment to make.' }),
188
+ }),
189
+ output: Schema.Void,
190
+ },
191
+ });
192
+
193
+ export const UpdatePlankSize = Operation.make({
194
+ meta: {
195
+ key: `${meta.id}/operation/update-plank-size`,
196
+ name: 'Update Plank Size',
197
+ description: 'Update the size of a plank.',
198
+ },
199
+ services: [Capability.Service],
200
+ schema: {
201
+ input: Schema.Struct({
202
+ id: Schema.String.annotations({ description: 'The id of the plank to resize.' }),
203
+ size: Schema.Number.annotations({ description: 'The new size of the plank.' }),
204
+ }),
205
+ output: Schema.Void,
206
+ },
207
+ });
208
+
209
+ export const ChangeCompanion = Operation.make({
210
+ meta: {
211
+ key: `${meta.id}/operation/change-companion`,
212
+ name: 'Change Companion',
213
+ description: 'Change the companion plank for a primary plank.',
214
+ },
215
+ services: [Capability.Service],
216
+ schema: {
217
+ input: Schema.Struct({
218
+ primary: Schema.String,
219
+ companion: Schema.Union(Schema.String, Schema.Null),
220
+ }),
221
+ output: Schema.Void,
222
+ },
223
+ });
224
+ }
@@ -6,7 +6,7 @@ import { type LayoutMode } from '../types';
6
6
 
7
7
  export const layoutAppliesTopbar = (breakpoint: string, layoutMode?: LayoutMode) => {
8
8
  return (
9
- document.body.getAttribute('data-platform') === 'win' &&
9
+ document.body.getAttribute('data-platform') === 'windows' &&
10
10
  breakpoint === 'desktop' &&
11
11
  layoutMode !== 'solo--fullscreen'
12
12
  );