@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
@@ -0,0 +1,121 @@
1
+ import {
2
+ DeckCapabilities,
3
+ meta
4
+ } from "./chunk-DONG2FYU.mjs";
5
+
6
+ // src/capabilities/app-graph-builder/app-graph-builder.ts
7
+ import * as Effect from "effect/Effect";
8
+ import { Capabilities, Capability } from "@dxos/app-framework";
9
+ import { AppCapabilities, LayoutOperation } from "@dxos/app-toolkit";
10
+ import { Operation } from "@dxos/operation";
11
+ import { AttentionCapabilities } from "@dxos/plugin-attention";
12
+ import { GraphBuilder, NodeMatcher } from "@dxos/plugin-graph";
13
+ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function* () {
14
+ const extensions = yield* GraphBuilder.createExtension({
15
+ id: meta.id,
16
+ match: NodeMatcher.whenRoot,
17
+ actions: (_node, get) => Effect.gen(function* () {
18
+ const closeCurrent = {
19
+ id: `${LayoutOperation.Close.meta.key}/current`,
20
+ data: Effect.fnUntraced(function* () {
21
+ const attention = yield* Capability.get(AttentionCapabilities.Attention);
22
+ const attended = attention.getCurrent().at(-1);
23
+ if (attended) {
24
+ yield* Operation.invoke(LayoutOperation.Close, {
25
+ subject: [
26
+ attended
27
+ ]
28
+ });
29
+ }
30
+ }),
31
+ properties: {
32
+ label: [
33
+ "close current label",
34
+ {
35
+ ns: meta.id
36
+ }
37
+ ],
38
+ icon: "ph--x--regular"
39
+ }
40
+ };
41
+ const closeOthers = {
42
+ id: `${LayoutOperation.Close.meta.key}/others`,
43
+ data: Effect.fnUntraced(function* () {
44
+ const attention = yield* Capability.get(AttentionCapabilities.Attention);
45
+ const deck2 = yield* DeckCapabilities.getDeck();
46
+ const attended = attention.getCurrent().at(-1);
47
+ const ids = deck2.active.filter((id) => id !== attended) ?? [];
48
+ yield* Operation.invoke(LayoutOperation.Close, {
49
+ subject: ids
50
+ });
51
+ }),
52
+ properties: {
53
+ label: [
54
+ "close others label",
55
+ {
56
+ ns: meta.id
57
+ }
58
+ ],
59
+ icon: "ph--x-square--regular"
60
+ }
61
+ };
62
+ const closeAll = {
63
+ id: `${LayoutOperation.Close.meta.key}/all`,
64
+ data: Effect.fnUntraced(function* () {
65
+ const deck2 = yield* DeckCapabilities.getDeck();
66
+ yield* Operation.invoke(LayoutOperation.Close, {
67
+ subject: deck2.active
68
+ });
69
+ }),
70
+ properties: {
71
+ label: [
72
+ "close all label",
73
+ {
74
+ ns: meta.id
75
+ }
76
+ ],
77
+ icon: "ph--x-circle--regular"
78
+ }
79
+ };
80
+ const state = get(yield* Capability.get(DeckCapabilities.State));
81
+ const deck = state.decks[state.activeDeck];
82
+ const toggleSidebar = {
83
+ id: `${LayoutOperation.UpdateSidebar.meta.key}/nav`,
84
+ data: Effect.fnUntraced(function* () {
85
+ yield* Capabilities.updateAtomValue(DeckCapabilities.State, (s) => ({
86
+ ...s,
87
+ sidebarState: s.sidebarState === "expanded" ? "collapsed" : "expanded"
88
+ }));
89
+ }),
90
+ properties: {
91
+ label: [
92
+ state.sidebarState === "expanded" ? "collapse navigation sidebar label" : "open navigation sidebar label",
93
+ {
94
+ ns: meta.id
95
+ }
96
+ ],
97
+ icon: "ph--sidebar--regular",
98
+ keyBinding: {
99
+ macos: "meta+'"
100
+ },
101
+ disposition: "pin-end",
102
+ position: "hoist",
103
+ l0Breakpoint: "lg"
104
+ }
105
+ };
106
+ return !deck?.solo ? [
107
+ closeCurrent,
108
+ closeOthers,
109
+ closeAll,
110
+ toggleSidebar
111
+ ] : [
112
+ toggleSidebar
113
+ ];
114
+ })
115
+ });
116
+ return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
117
+ }));
118
+ export {
119
+ app_graph_builder_default as default
120
+ };
121
+ //# sourceMappingURL=app-graph-builder-X7LCO5KE.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/app-graph-builder/app-graph-builder.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { AppCapabilities, LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/operation';\nimport { AttentionCapabilities } from '@dxos/plugin-attention';\nimport { GraphBuilder, NodeMatcher } from '@dxos/plugin-graph';\n\nimport { meta } from '../../meta';\nimport { DeckCapabilities } from '../../types';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const extensions = yield* GraphBuilder.createExtension({\n id: meta.id,\n match: NodeMatcher.whenRoot,\n actions: (_node, get) =>\n Effect.gen(function* () {\n // NOTE(Zan): This is currently disabled.\n // TODO(Zan): Fullscreen needs to know the active node and provide that to the layout part.\n // const _fullscreen = {\n // id: `${LayoutAction.UpdateLayout._tag}/fullscreen`,\n // data: async () => {\n // const { dispatchPromise: dispatch } = context.get(Capabilities.IntentDispatcher);\n // await dispatch(\n // createIntent(LayoutAction.SetLayoutMode, { part: 'mode', options: { mode: 'fullscreen' } }),\n // );\n // },\n // properties: {\n // label: ['toggle fullscreen label', { ns: meta.id }],\n // icon: 'ph--arrows-out--regular',\n // keyBinding: {\n // macos: 'ctrl+meta+f',\n // windows: 'shift+ctrl+f',\n // },\n // },\n // };\n\n const closeCurrent = {\n id: `${LayoutOperation.Close.meta.key}/current`,\n data: Effect.fnUntraced(function* () {\n const attention = yield* Capability.get(AttentionCapabilities.Attention);\n const attended = attention.getCurrent().at(-1);\n if (attended) {\n yield* Operation.invoke(LayoutOperation.Close, { subject: [attended] });\n }\n }),\n properties: {\n label: ['close current label', { ns: meta.id }],\n icon: 'ph--x--regular',\n },\n };\n\n const closeOthers = {\n id: `${LayoutOperation.Close.meta.key}/others`,\n data: Effect.fnUntraced(function* () {\n const attention = yield* Capability.get(AttentionCapabilities.Attention);\n const deck = yield* DeckCapabilities.getDeck();\n const attended = attention.getCurrent().at(-1);\n const ids = deck.active.filter((id: string) => id !== attended) ?? [];\n yield* Operation.invoke(LayoutOperation.Close, { subject: ids });\n }),\n properties: {\n label: ['close others label', { ns: meta.id }],\n icon: 'ph--x-square--regular',\n },\n };\n\n const closeAll = {\n id: `${LayoutOperation.Close.meta.key}/all`,\n data: Effect.fnUntraced(function* () {\n const deck = yield* DeckCapabilities.getDeck();\n yield* Operation.invoke(LayoutOperation.Close, { subject: deck.active });\n }),\n properties: {\n label: ['close all label', { ns: meta.id }],\n icon: 'ph--x-circle--regular',\n },\n };\n\n const state = get(yield* Capability.get(DeckCapabilities.State));\n const deck = state.decks[state.activeDeck];\n\n const toggleSidebar = {\n id: `${LayoutOperation.UpdateSidebar.meta.key}/nav`,\n data: Effect.fnUntraced(function* () {\n yield* Capabilities.updateAtomValue(DeckCapabilities.State, (s) => ({\n ...s,\n sidebarState: s.sidebarState === 'expanded' ? ('collapsed' as const) : ('expanded' as const),\n }));\n }),\n properties: {\n label: [\n state.sidebarState === 'expanded'\n ? 'collapse navigation sidebar label'\n : 'open navigation sidebar label',\n { ns: meta.id },\n ],\n icon: 'ph--sidebar--regular',\n keyBinding: {\n macos: \"meta+'\",\n },\n disposition: 'pin-end',\n position: 'hoist',\n l0Breakpoint: 'lg',\n },\n };\n\n return !deck?.solo ? [closeCurrent, closeOthers, closeAll, toggleSidebar] : [toggleSidebar];\n }),\n });\n\n return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);\n }),\n);\n"],
5
+ "mappings": ";;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,iBAAiBC,uBAAuB;AACjD,SAASC,iBA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AKW,GAAG;QACrCC,MAAajB,kBAAW,aAAA;AACtB,gBAAMgC,QAAO,OAAOC,iBAAiBC,QAAO;AAC5C,iBAAOV,UAAUC,OAAOX,gBAAgBC,OAAO;YAAEW,SAASM,MAAKI;UAAO,CAAA;QACxE,CAAA;QACAT,YAAY;UACVC,OAAO;YAAC;YAAmB;cAAEC,IAAIxB,KAAKD;YAAG;;UACzC0B,MAAM;QACR;MACF;AAEA,YAAMS,QAAQ5B,IAAI,OAAOb,WAAWa,IAAIsB,iBAAiBO,KAAK,CAAA;AAC9D,YAAMR,OAAOO,MAAME,MAAMF,MAAMG,UAAU;AAEzC,YAAMC,gBAAgB;QACpBvC,IAAI,GAAGU,gBAAgB8B,cAAcvC,KAAKW,GAAG;QAC7CC,MAAajB,kBAAW,aAAA;AACtB,iBAAO6C,aAAaC,gBAAgBb,iBAAiBO,OAAO,CAACO,OAAO;YAClE,GAAGA;YACHC,cAAcD,EAAEC,iBAAiB,aAAc,cAAyB;UAC1E,EAAA;QACF,CAAA;QACArB,YAAY;UACVC,OAAO;YACLW,MAAMS,iBAAiB,aACnB,sCACA;YACJ;cAAEnB,IAAIxB,KAAKD;YAAG;;UAEhB0B,MAAM;UACNmB,YAAY;YACVC,OAAO;UACT;UACAC,aAAa;UACbC,UAAU;UACVC,cAAc;QAChB;MACF;AAEA,aAAO,CAACrB,MAAMsB,OAAO;QAACzC;QAAckB;QAAaO;QAAUK;UAAiB;QAACA;;IAC/E,CAAA;EACJ,CAAA;AAEA,SAAO7C,WAAWyD,YAAYC,gBAAgBC,iBAAiBxD,UAAAA;AACjE,CAAA,CAAA;",
6
+ "names": ["Effect", "Capabilities", "Capability", "AppCapabilities", "LayoutOperation", "Operation", "AttentionCapabilities", "GraphBuilder", "NodeMatcher", "Capability", "makeModule", "fnUntraced", "extensions", "GraphBuilder", "createExtension", "id", "meta", "match", "NodeMatcher", "whenRoot", "actions", "_node", "get", "gen", "closeCurrent", "LayoutOperation", "Close", "key", "data", "attention", "AttentionCapabilities", "Attention", "attended", "getCurrent", "at", "Operation", "invoke", "subject", "properties", "label", "ns", "icon", "closeOthers", "deck", "DeckCapabilities", "getDeck", "ids", "active", "filter", "closeAll", "state", "State", "decks", "activeDeck", "toggleSidebar", "UpdateSidebar", "Capabilities", "updateAtomValue", "s", "sidebarState", "keyBinding", "macos", "disposition", "position", "l0Breakpoint", "solo", "contributes", "AppCapabilities", "AppGraphBuilder"]
7
+ }
@@ -0,0 +1,32 @@
1
+ import {
2
+ DeckCapabilities
3
+ } from "./chunk-DONG2FYU.mjs";
4
+
5
+ // src/capabilities/check-app-scheme/check-app-scheme.ts
6
+ import * as Effect from "effect/Effect";
7
+ import { Capabilities, Capability } from "@dxos/app-framework";
8
+ import { isTauri } from "@dxos/util";
9
+ var APP_SCHEME = "composer://";
10
+ var checkAppScheme = (url) => {
11
+ const iframe = document.createElement("iframe");
12
+ iframe.style.display = "none";
13
+ document.body.appendChild(iframe);
14
+ iframe.src = url + window.location.pathname.replace(/^\/+/, "") + window.location.search;
15
+ const timer = setTimeout(() => {
16
+ document.body.removeChild(iframe);
17
+ }, 3e3);
18
+ window.addEventListener("pagehide", (event) => {
19
+ clearTimeout(timer);
20
+ document.body.removeChild(iframe);
21
+ });
22
+ };
23
+ var check_app_scheme_default = Capability.makeModule(Effect.fnUntraced(function* () {
24
+ const settings = yield* Capabilities.getAtomValue(DeckCapabilities.Settings);
25
+ if (!isTauri() && settings?.enableNativeRedirect) {
26
+ checkAppScheme(APP_SCHEME);
27
+ }
28
+ }));
29
+ export {
30
+ check_app_scheme_default as default
31
+ };
32
+ //# sourceMappingURL=check-app-scheme-PGISDJX7.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/check-app-scheme/check-app-scheme.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { isTauri } from '@dxos/util';\n\nimport { DeckCapabilities } from '../../types';\n\nconst APP_SCHEME = 'composer://';\n\n/**\n * Attempts to redirect from the web app to the native desktop app using a custom URL scheme.\n * Creates a hidden iframe that navigates to the custom scheme URL (e.g., composer://workspace/123).\n * If the native app is installed and handles the scheme, the user will be redirected.\n * The iframe is automatically removed after 3 seconds or when the page is hidden.\n */\n// TODO(mjamesderocher): Factor out as part of NavigationPlugin.\nconst checkAppScheme = (url: string) => {\n const iframe = document.createElement('iframe');\n iframe.style.display = 'none';\n document.body.appendChild(iframe);\n\n iframe.src = url + window.location.pathname.replace(/^\\/+/, '') + window.location.search;\n\n const timer = setTimeout(() => {\n document.body.removeChild(iframe);\n }, 3000);\n\n window.addEventListener('pagehide', (event) => {\n clearTimeout(timer);\n document.body.removeChild(iframe);\n });\n};\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const settings = yield* Capabilities.getAtomValue(DeckCapabilities.Settings);\n if (!isTauri() && settings?.enableNativeRedirect) {\n checkAppScheme(APP_SCHEME);\n }\n }),\n);\n"],
5
+ "mappings": ";;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,eAAe;AAIxB,IAAMC,aAAa;AASnB,IAAMC,iBAAiB,CAACC,QAAAA;AACtB,QAAMC,SAASC,SAASC,cAAc,QAAA;AACtCF,SAAOG,MAAMC,UAAU;AACvBH,WAASI,KAAKC,YAAYN,MAAAA;AAE1BA,SAAOO,MAAMR,MAAMS,OAAOC,SAASC,SAASC,QAAQ,QAAQ,EAAA,IAAMH,OAAOC,SAASG;AAElF,QAAMC,QAAQC,WAAW,MAAA;AACvBb,aAASI,KAAKU,YAAYf,MAAAA;EAC5B,GAAG,GAAA;AAEHQ,SAAOQ,iBAAiB,YAAY,CAACC,UAAAA;AACnCC,iBAAaL,KAAAA;AACbZ,aAASI,KAAKU,YAAYf,MAAAA;EAC5B,CAAA;AACF;AAEA,IAAA,2BAAemB,WAAWC,WACjBC,kBAAW,aAAA;AAChB,QAAMC,WAAW,OAAOC,aAAaC,aAAaC,iBAAiBC,QAAQ;AAC3E,MAAI,CAACC,QAAAA,KAAaL,UAAUM,sBAAsB;AAChD9B,mBAAeD,UAAAA;EACjB;AACF,CAAA,CAAA;",
6
+ "names": ["Effect", "Capabilities", "Capability", "isTauri", "APP_SCHEME", "checkAppScheme", "url", "iframe", "document", "createElement", "style", "display", "body", "appendChild", "src", "window", "location", "pathname", "replace", "search", "timer", "setTimeout", "removeChild", "addEventListener", "event", "clearTimeout", "Capability", "makeModule", "fnUntraced", "settings", "Capabilities", "getAtomValue", "DeckCapabilities", "Settings", "isTauri", "enableNativeRedirect"]
7
+ }
@@ -1,10 +1,56 @@
1
- import {
2
- meta
3
- } from "./chunk-MHP4GPX5.mjs";
1
+ // src/types/capabilities.ts
2
+ import * as Effect from "effect/Effect";
3
+ import { Capabilities, Capability } from "@dxos/app-framework";
4
+ import { invariant } from "@dxos/invariant";
5
+
6
+ // src/meta.ts
7
+ import { trim } from "@dxos/util";
8
+ var meta = {
9
+ id: "dxos.org/plugin/deck",
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
+ `,
15
+ icon: "ph--layout--regular"
16
+ };
17
+
18
+ // src/types/capabilities.ts
19
+ var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-deck/src/types/capabilities.ts";
20
+ (function(DeckCapabilities2) {
21
+ DeckCapabilities2.Settings = Capability.make(`${meta.id}/capability/settings`);
22
+ DeckCapabilities2.State = Capability.make(`${meta.id}/capability/state`);
23
+ DeckCapabilities2.EphemeralState = Capability.make(`${meta.id}/capability/ephemeral-state`);
24
+ DeckCapabilities2.getDeck = () => Effect.gen(function* () {
25
+ const state = yield* Capabilities.getAtomValue(DeckCapabilities2.State);
26
+ const deck = state.decks[state.activeDeck];
27
+ invariant(deck, `Deck not found: ${state.activeDeck}`, {
28
+ F: __dxlog_file,
29
+ L: 30,
30
+ S: this,
31
+ A: [
32
+ "deck",
33
+ "`Deck not found: ${state.activeDeck}`"
34
+ ]
35
+ });
36
+ return deck;
37
+ });
38
+ })(DeckCapabilities || (DeckCapabilities = {}));
39
+ var DeckCapabilities;
40
+
41
+ // src/types/events.ts
42
+ import { AppActivationEvents } from "@dxos/app-toolkit";
43
+ (function(DeckEvents2) {
44
+ DeckEvents2.StateReady = AppActivationEvents.createStateEvent(`${meta.id}/state-ready`);
45
+ DeckEvents2.SettingsReady = AppActivationEvents.createSettingsEvent(DeckCapabilities.Settings.identifier);
46
+ })(DeckEvents || (DeckEvents = {}));
47
+ var DeckEvents;
4
48
 
5
49
  // src/types/schema.ts
6
50
  import * as Schema from "effect/Schema";
7
- import { LayoutAction } from "@dxos/app-framework";
51
+ import { Capability as Capability2 } from "@dxos/app-framework";
52
+ import { Label, LayoutOperation } from "@dxos/app-toolkit";
53
+ import { Operation } from "@dxos/operation";
8
54
  import { ATTENDABLE_PATH_SEPARATOR } from "@dxos/react-ui-attention";
9
55
  var PLANK_COMPANION_TYPE = `${meta.id}/plank-companion`;
10
56
  var DECK_COMPANION_TYPE = `${meta.id}/deck-companion`;
@@ -63,10 +109,22 @@ var getMode = (deck) => {
63
109
  }
64
110
  return "deck";
65
111
  };
66
- var DeckPluginState = Schema.Struct({
112
+ var DeckStateSchema = Schema.Struct({
67
113
  sidebarState: Schema.Literal("closed", "collapsed", "expanded"),
68
114
  complementarySidebarState: Schema.Literal("closed", "collapsed", "expanded"),
69
115
  complementarySidebarPanel: Schema.optional(Schema.String),
116
+ activeDeck: Schema.String,
117
+ previousDeck: Schema.String,
118
+ decks: Schema.mutable(Schema.Record({
119
+ key: Schema.String,
120
+ value: Schema.mutable(DeckState)
121
+ })),
122
+ previousMode: Schema.mutable(Schema.Record({
123
+ key: Schema.String,
124
+ value: LayoutMode
125
+ }))
126
+ }).pipe(Schema.mutable);
127
+ var DeckEphemeralStateSchema = Schema.Struct({
70
128
  dialogOpen: Schema.Boolean,
71
129
  dialogType: Schema.optional(Schema.Literal("default", "alert")),
72
130
  dialogBlockAlign: Schema.optional(Schema.Literal("start", "center", "end")),
@@ -81,21 +139,16 @@ var DeckPluginState = Schema.Struct({
81
139
  popoverSide: Schema.optional(Schema.Literal("top", "right", "bottom", "left")),
82
140
  popoverAnchor: Schema.optional(Schema.Any),
83
141
  popoverAnchorId: Schema.optional(Schema.String),
142
+ popoverKind: Schema.optional(Schema.Literal("base", "card")),
143
+ popoverTitle: Schema.optional(Label.annotations({
144
+ description: "The title of the popover."
145
+ })),
146
+ /** Ref of the subject to be passed to the popover Surface. */
147
+ popoverContentRef: Schema.optional(Schema.String),
84
148
  /** Data to be passed to the popover Surface. */
85
149
  popoverContent: Schema.optional(Schema.Any),
86
- toasts: Schema.mutable(Schema.Array(LayoutAction.Toast)),
150
+ toasts: Schema.mutable(Schema.Array(LayoutOperation.Toast)),
87
151
  currentUndoId: Schema.optional(Schema.String),
88
- activeDeck: Schema.String,
89
- previousDeck: Schema.String,
90
- decks: Schema.mutable(Schema.Record({
91
- key: Schema.String,
92
- value: Schema.mutable(DeckState)
93
- })),
94
- previousMode: Schema.mutable(Schema.Record({
95
- key: Schema.String,
96
- value: LayoutMode
97
- })),
98
- deck: Schema.mutable(DeckState),
99
152
  /** The identifier of a component to scroll into view when it is mounted. */
100
153
  scrollIntoView: Schema.optional(Schema.String)
101
154
  }).pipe(Schema.mutable);
@@ -142,9 +195,87 @@ var DeckPluginState = Schema.Struct({
142
195
  }
143
196
  DeckAction2.ChangeCompanion = ChangeCompanion;
144
197
  })(DeckAction || (DeckAction = {}));
198
+ (function(DeckOperation2) {
199
+ const PartAdjustmentSchema = Schema.Union(Schema.Literal("close").annotations({
200
+ description: "Close the plank."
201
+ }), Schema.Literal("companion").annotations({
202
+ description: "Open the companion plank."
203
+ }), Schema.Literal("solo").annotations({
204
+ description: "Solo the plank."
205
+ }), Schema.Literal("solo--fullscreen").annotations({
206
+ description: "Fullscreen the plank."
207
+ }), Schema.Literal("increment-start").annotations({
208
+ description: "Move the plank towards the start of the deck."
209
+ }), Schema.Literal("increment-end").annotations({
210
+ description: "Move the plank towards the end of the deck."
211
+ }));
212
+ DeckOperation2.Adjust = Operation.make({
213
+ meta: {
214
+ key: `${meta.id}/operation/adjust`,
215
+ name: "Adjust",
216
+ description: "Adjust the layout of a plank."
217
+ },
218
+ services: [
219
+ Capability2.Service
220
+ ],
221
+ schema: {
222
+ input: Schema.Struct({
223
+ id: Schema.String.annotations({
224
+ description: "The id of the plank to adjust."
225
+ }),
226
+ type: PartAdjustmentSchema.annotations({
227
+ description: "The type of adjustment to make."
228
+ })
229
+ }),
230
+ output: Schema.Void
231
+ }
232
+ });
233
+ DeckOperation2.UpdatePlankSize = Operation.make({
234
+ meta: {
235
+ key: `${meta.id}/operation/update-plank-size`,
236
+ name: "Update Plank Size",
237
+ description: "Update the size of a plank."
238
+ },
239
+ services: [
240
+ Capability2.Service
241
+ ],
242
+ schema: {
243
+ input: Schema.Struct({
244
+ id: Schema.String.annotations({
245
+ description: "The id of the plank to resize."
246
+ }),
247
+ size: Schema.Number.annotations({
248
+ description: "The new size of the plank."
249
+ })
250
+ }),
251
+ output: Schema.Void
252
+ }
253
+ });
254
+ DeckOperation2.ChangeCompanion = Operation.make({
255
+ meta: {
256
+ key: `${meta.id}/operation/change-companion`,
257
+ name: "Change Companion",
258
+ description: "Change the companion plank for a primary plank."
259
+ },
260
+ services: [
261
+ Capability2.Service
262
+ ],
263
+ schema: {
264
+ input: Schema.Struct({
265
+ primary: Schema.String,
266
+ companion: Schema.Union(Schema.String, Schema.Null)
267
+ }),
268
+ output: Schema.Void
269
+ }
270
+ });
271
+ })(DeckOperation || (DeckOperation = {}));
145
272
  var DeckAction;
273
+ var DeckOperation;
146
274
 
147
275
  export {
276
+ meta,
277
+ DeckCapabilities,
278
+ DeckEvents,
148
279
  PLANK_COMPANION_TYPE,
149
280
  DECK_COMPANION_TYPE,
150
281
  NewPlankPositions,
@@ -155,8 +286,10 @@ export {
155
286
  defaultDeck,
156
287
  isLayoutMode,
157
288
  getMode,
158
- DeckPluginState,
289
+ DeckStateSchema,
290
+ DeckEphemeralStateSchema,
159
291
  DeckAction,
292
+ DeckOperation,
160
293
  ATTENDABLE_PATH_SEPARATOR
161
294
  };
162
- //# sourceMappingURL=chunk-7I6H3N4Q.mjs.map
295
+ //# sourceMappingURL=chunk-DONG2FYU.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/types/capabilities.ts", "../../../src/meta.ts", "../../../src/types/events.ts", "../../../src/types/schema.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Atom } from '@effect-atom/atom-react';\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { invariant } from '@dxos/invariant';\n\nimport { meta } from '../meta';\nimport { type DeckEphemeralStateProps, type DeckSettingsProps, type DeckState, type DeckStateProps } from '../types';\n\nexport namespace DeckCapabilities {\n export const Settings = Capability.make<Atom.Writable<DeckSettingsProps>>(`${meta.id}/capability/settings`);\n\n /** Persisted state (stored in KVS/localStorage). */\n export const State = Capability.make<Atom.Writable<DeckStateProps>>(`${meta.id}/capability/state`);\n\n /** Transient/ephemeral state (not persisted). */\n export const EphemeralState = Capability.make<Atom.Writable<DeckEphemeralStateProps>>(\n `${meta.id}/capability/ephemeral-state`,\n );\n\n /** Get the current active deck from state. */\n export const getDeck = (): Effect.Effect<DeckState, Error, Capability.Service> =>\n Effect.gen(function* () {\n const state = yield* Capabilities.getAtomValue(State);\n const deck = state.decks[state.activeDeck];\n invariant(deck, `Deck not found: ${state.activeDeck}`);\n return deck;\n });\n}\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'dxos.org/plugin/deck',\n name: 'Layout',\n description: trim`\n Flexible layout system for arranging workspace views in tabs, splits, and panels.\n Customize your workspace organization with drag-and-drop layout management.\n `,\n icon: 'ph--layout--regular',\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type ActivationEvent } from '@dxos/app-framework';\nimport { AppActivationEvents } from '@dxos/app-toolkit';\n\nimport { meta } from '../meta';\n\nimport { DeckCapabilities } from './capabilities';\n\nexport namespace DeckEvents {\n export const StateReady: ActivationEvent.ActivationEvent = AppActivationEvents.createStateEvent(\n `${meta.id}/state-ready`,\n );\n\n /** Fired when DeckSettings capability is ready. */\n export const SettingsReady: ActivationEvent.ActivationEvent = AppActivationEvents.createSettingsEvent(\n DeckCapabilities.Settings.identifier,\n );\n}\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Capability } from '@dxos/app-framework';\nimport { Label, LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/operation';\nimport { type DeepReadonly } from '@dxos/util';\n\nimport { meta } from '../meta';\n\nexport { ATTENDABLE_PATH_SEPARATOR } from '@dxos/react-ui-attention';\n\nexport const PLANK_COMPANION_TYPE = `${meta.id}/plank-companion`;\nexport const DECK_COMPANION_TYPE = `${meta.id}/deck-companion`;\n\n// TODO(Zan): In the future we should consider adding new planks adjacent to the attended plank.\nexport const NewPlankPositions = ['start', 'end'] as const;\nexport type NewPlankPositioning = (typeof NewPlankPositions)[number];\n\nexport const OverscrollOptions = ['none', 'centering'] as const;\nexport type Overscroll = (typeof OverscrollOptions)[number];\n\nexport type Part = 'solo' | 'deck' | 'complementary';\nexport type ResolvedPart = Part | 'solo-primary' | 'solo-companion';\n\nexport const DeckSettingsSchema = Schema.Struct({\n showHints: Schema.optional(Schema.Boolean),\n enableDeck: Schema.optional(Schema.Boolean),\n enableStatusbar: Schema.optional(Schema.Boolean),\n enableNativeRedirect: Schema.optional(Schema.Boolean),\n newPlankPositioning: Schema.optional(Schema.Literal(...NewPlankPositions)),\n overscroll: Schema.optional(Schema.Literal(...OverscrollOptions)),\n // TODO(burdon): Rename layoutMode? (e.g., bento | encapsulated?)\n encapsulatedPlanks: Schema.optional(Schema.Boolean),\n}).pipe(Schema.mutable);\nexport type DeckSettingsProps = Schema.Schema.Type<typeof DeckSettingsSchema>;\n\nexport const PlankSizing = Schema.Record({ key: Schema.String, value: Schema.Number });\nexport type PlankSizing = Schema.Schema.Type<typeof PlankSizing>;\n\n// State of an individual deck.\nexport const DeckState = Schema.Struct({\n /** If false, the deck has not yet left solo mode and new planks should be soloed. */\n initialized: Schema.Boolean,\n active: Schema.mutable(Schema.Array(Schema.String)),\n // TODO(wittjosiah): Piping into both mutable and optional caused invalid typescript output.\n activeCompanions: Schema.optional(Schema.mutable(Schema.Record({ key: Schema.String, value: Schema.String }))),\n inactive: Schema.mutable(Schema.Array(Schema.String)),\n solo: Schema.optional(Schema.String),\n fullscreen: Schema.Boolean,\n plankSizing: Schema.mutable(PlankSizing),\n companionFrameSizing: Schema.mutable(PlankSizing),\n});\nexport type DeckState = Schema.Schema.Type<typeof DeckState>;\n\nexport const defaultDeck: DeckState = {\n initialized: false,\n active: [],\n activeCompanions: {},\n inactive: [],\n solo: undefined,\n fullscreen: false,\n plankSizing: {},\n companionFrameSizing: {},\n};\n\nconst LayoutMode = Schema.Literal('deck', 'solo', 'solo--fullscreen');\nexport type LayoutMode = Schema.Schema.Type<typeof LayoutMode>;\nexport const isLayoutMode = (value: any): value is LayoutMode => Schema.is(LayoutMode)(value);\n\nexport const getMode = (deck: DeckState | DeepReadonly<DeckState>): LayoutMode => {\n if (deck.solo) {\n return deck.fullscreen ? 'solo--fullscreen' : 'solo';\n }\n\n return 'deck';\n};\n\n// Persisted plugin state (stored in KVS/localStorage).\nexport const DeckStateSchema = Schema.Struct({\n sidebarState: Schema.Literal('closed', 'collapsed', 'expanded'),\n complementarySidebarState: Schema.Literal('closed', 'collapsed', 'expanded'),\n complementarySidebarPanel: Schema.optional(Schema.String),\n activeDeck: Schema.String,\n previousDeck: Schema.String,\n decks: Schema.mutable(Schema.Record({ key: Schema.String, value: Schema.mutable(DeckState) })),\n previousMode: Schema.mutable(Schema.Record({ key: Schema.String, value: LayoutMode })),\n}).pipe(Schema.mutable);\nexport type DeckStateProps = Schema.Schema.Type<typeof DeckStateSchema>;\n\n// TODO(burdon): Factor out state (in common with other layouts?)\n// Transient/ephemeral plugin state (not persisted).\nexport const DeckEphemeralStateSchema = Schema.Struct({\n dialogOpen: Schema.Boolean,\n dialogType: Schema.optional(Schema.Literal('default', 'alert')),\n dialogBlockAlign: Schema.optional(Schema.Literal('start', 'center', 'end')),\n dialogOverlayClasses: Schema.optional(Schema.String),\n dialogOverlayStyle: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),\n /** Data to be passed to the dialog Surface. */\n dialogContent: Schema.optional(Schema.Any),\n\n popoverOpen: Schema.Boolean,\n popoverSide: Schema.optional(Schema.Literal('top', 'right', 'bottom', 'left')),\n popoverAnchor: Schema.optional(Schema.Any),\n popoverAnchorId: Schema.optional(Schema.String),\n popoverKind: Schema.optional(Schema.Literal('base', 'card')),\n popoverTitle: Schema.optional(Label.annotations({ description: 'The title of the popover.' })),\n /** Ref of the subject to be passed to the popover Surface. */\n popoverContentRef: Schema.optional(Schema.String),\n /** Data to be passed to the popover Surface. */\n popoverContent: Schema.optional(Schema.Any),\n\n toasts: Schema.mutable(Schema.Array(LayoutOperation.Toast)),\n currentUndoId: Schema.optional(Schema.String),\n\n /** The identifier of a component to scroll into view when it is mounted. */\n scrollIntoView: Schema.optional(Schema.String),\n}).pipe(Schema.mutable);\nexport type DeckEphemeralStateProps = Schema.Schema.Type<typeof DeckEphemeralStateSchema>;\n\n// Combined state type (for convenience in components that need both).\nexport type DeckPluginState = DeckStateProps & DeckEphemeralStateProps;\n\nexport namespace DeckAction {\n const PartAdjustmentSchema = Schema.Union(\n Schema.Literal('close').annotations({ description: 'Close the plank.' }),\n Schema.Literal('companion').annotations({ description: 'Open the companion plank.' }),\n Schema.Literal('solo').annotations({ description: 'Solo the plank.' }),\n Schema.Literal('solo--fullscreen').annotations({ description: 'Fullscreen the plank.' }),\n Schema.Literal('increment-start').annotations({ description: 'Move the plank towards the start of the deck.' }),\n Schema.Literal('increment-end').annotations({ description: 'Move the plank towards the end of the deck.' }),\n );\n export type PartAdjustment = Schema.Schema.Type<typeof PartAdjustmentSchema>;\n export const Adjustment = Schema.mutable(Schema.Struct({ id: Schema.String, type: PartAdjustmentSchema }));\n export type Adjustment = Schema.Schema.Type<typeof Adjustment>;\n\n // An atomic transaction to apply to the deck, describing which element to move to which location.\n export class Adjust extends Schema.TaggedClass<Adjust>()(`${meta.id}/action/adjust`, {\n input: Adjustment,\n output: Schema.Void,\n }) {}\n\n export class UpdatePlankSize extends Schema.TaggedClass<UpdatePlankSize>()(`${meta.id}/action/update-plank-size`, {\n input: Schema.Struct({\n id: Schema.String,\n size: Schema.Number,\n }),\n output: Schema.Void,\n }) {}\n\n export class ChangeCompanion extends Schema.TaggedClass<ChangeCompanion>()(`${meta.id}/action/change-companion`, {\n input: Schema.Struct({\n primary: Schema.String,\n companion: Schema.Union(Schema.String, Schema.Null),\n }),\n output: Schema.Void,\n }) {}\n}\n\n/**\n * Operations for the Deck plugin.\n */\nexport namespace DeckOperation {\n const PartAdjustmentSchema = Schema.Union(\n Schema.Literal('close').annotations({ description: 'Close the plank.' }),\n Schema.Literal('companion').annotations({ description: 'Open the companion plank.' }),\n Schema.Literal('solo').annotations({ description: 'Solo the plank.' }),\n Schema.Literal('solo--fullscreen').annotations({ description: 'Fullscreen the plank.' }),\n Schema.Literal('increment-start').annotations({ description: 'Move the plank towards the start of the deck.' }),\n Schema.Literal('increment-end').annotations({ description: 'Move the plank towards the end of the deck.' }),\n );\n export type PartAdjustment = Schema.Schema.Type<typeof PartAdjustmentSchema>;\n\n export const Adjust = Operation.make({\n meta: {\n key: `${meta.id}/operation/adjust`,\n name: 'Adjust',\n description: 'Adjust the layout of a plank.',\n },\n services: [Capability.Service],\n schema: {\n input: Schema.Struct({\n id: Schema.String.annotations({ description: 'The id of the plank to adjust.' }),\n type: PartAdjustmentSchema.annotations({ description: 'The type of adjustment to make.' }),\n }),\n output: Schema.Void,\n },\n });\n\n export const UpdatePlankSize = Operation.make({\n meta: {\n key: `${meta.id}/operation/update-plank-size`,\n name: 'Update Plank Size',\n description: 'Update the size of a plank.',\n },\n services: [Capability.Service],\n schema: {\n input: Schema.Struct({\n id: Schema.String.annotations({ description: 'The id of the plank to resize.' }),\n size: Schema.Number.annotations({ description: 'The new size of the plank.' }),\n }),\n output: Schema.Void,\n },\n });\n\n export const ChangeCompanion = Operation.make({\n meta: {\n key: `${meta.id}/operation/change-companion`,\n name: 'Change Companion',\n description: 'Change the companion plank for a primary plank.',\n },\n services: [Capability.Service],\n schema: {\n input: Schema.Struct({\n primary: Schema.String,\n companion: Schema.Union(Schema.String, Schema.Null),\n }),\n output: Schema.Void,\n },\n });\n}\n"],
5
+ "mappings": ";AAKA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,iBAAiB;;;ACH1B,SAASC,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;EAIbC,MAAM;AACR;;;;UDFiBC,mBAAAA;oBACFC,WAAWC,WAAWC,KAAuC,GAAGC,KAAKC,EAAE,sBAAsB;oBAG7FC,QAAQJ,WAAWC,KAAoC,GAAGC,KAAKC,EAAE,mBAAmB;oBAGpFE,iBAAiBL,WAAWC,KACvC,GAAGC,KAAKC,EAAE,6BAA6B;oBAI5BG,UAAU,MACdC,WAAI,aAAA;AACT,UAAMC,QAAQ,OAAOC,aAAaC,aAAYZ,kBAACM,KAAAA;AAC/C,UAAMO,OAAOH,MAAMI,MAAMJ,MAAMK,UAAU;AACzCC,cAAUH,MAAM,mBAAmBH,MAAMK,UAAU,IAAE;;;;;;;;;AACrD,WAAOF;EACT,CAAA;AACJ,GAnBiBb,qBAAAA,mBAAAA,CAAAA,EAAAA;;;;AERjB,SAASiB,2BAA2B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C,CAAA;QAC9EmB,MAAa7D,cAAOyC,YAAY;UAAEC,aAAa;QAA6B,CAAA;MAC9E,CAAA;MACAgB,QAAeC;IACjB;EACF,CAAA;iBAEaG,kBAAkBK,UAAUC,KAAK;IAC5C5F,MAAM;MACJqB,KAAK,GAAGrB,KAAKC,EAAE;MACf4F,MAAM;MACN3B,aAAa;IACf;IACA4B,UAAU;MAACC,YAAWC;;IACtBC,QAAQ;MACNhB,OAAc3E,cAAO;QACnBiF,SAAgBjE;QAChBkE,WAAkBZ,aAAatD,eAAemE,WAAI;MACpD,CAAA;MACAP,QAAeC;IACjB;EACF,CAAA;AACF,GA1DiBO,kBAAAA,gBAAAA,CAAAA,EAAAA;;;",
6
+ "names": ["Effect", "Capabilities", "Capability", "invariant", "trim", "meta", "id", "name", "description", "trim", "icon", "DeckCapabilities", "Settings", "Capability", "make", "meta", "id", "State", "EphemeralState", "getDeck", "gen", "state", "Capabilities", "getAtomValue", "deck", "decks", "activeDeck", "invariant", "AppActivationEvents", "DeckEvents", "StateReady", "AppActivationEvents", "createStateEvent", "meta", "id", "SettingsReady", "createSettingsEvent", "DeckCapabilities", "Settings", "identifier", "Schema", "Capability", "Label", "LayoutOperation", "Operation", "ATTENDABLE_PATH_SEPARATOR", "PLANK_COMPANION_TYPE", "meta", "id", "DECK_COMPANION_TYPE", "NewPlankPositions", "OverscrollOptions", "DeckSettingsSchema", "Struct", "showHints", "optional", "Boolean", "enableDeck", "enableStatusbar", "enableNativeRedirect", "newPlankPositioning", "Literal", "overscroll", "encapsulatedPlanks", "pipe", "mutable", "PlankSizing", "Record", "key", "String", "value", "Number", "DeckState", "initialized", "active", "Array", "activeCompanions", "inactive", "solo", "fullscreen", "plankSizing", "companionFrameSizing", "defaultDeck", "undefined", "LayoutMode", "isLayoutMode", "is", "getMode", "deck", "DeckStateSchema", "sidebarState", "complementarySidebarState", "complementarySidebarPanel", "activeDeck", "previousDeck", "decks", "previousMode", "DeckEphemeralStateSchema", "dialogOpen", "dialogType", "dialogBlockAlign", "dialogOverlayClasses", "dialogOverlayStyle", "Any", "dialogContent", "popoverOpen", "popoverSide", "popoverAnchor", "popoverAnchorId", "popoverKind", "popoverTitle", "Label", "annotations", "description", "popoverContentRef", "popoverContent", "toasts", "LayoutOperation", "Toast", "currentUndoId", "scrollIntoView", "DeckAction", "PartAdjustmentSchema", "Union", "Adjustment", "type", "Adjust", "TaggedClass", "input", "output", "Void", "UpdatePlankSize", "size", "ChangeCompanion", "primary", "companion", "Null", "DeckOperation", "Operation", "make", "name", "services", "Capability", "Service", "schema"]
7
+ }