@dxos/plugin-deck 0.8.4-main.422d1c7879 → 0.8.4-main.51f1e5ca51

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 (252) hide show
  1. package/dist/lib/browser/{add-toast-EUN62IUE.mjs → add-toast-JWJOQNVL.mjs} +3 -3
  2. package/dist/lib/browser/{add-toast-EUN62IUE.mjs.map → add-toast-JWJOQNVL.mjs.map} +1 -1
  3. package/dist/lib/browser/{adjust-XWB6ZZ6U.mjs → adjust-RG6LIQLX.mjs} +7 -7
  4. package/dist/lib/browser/{adjust-XWB6ZZ6U.mjs.map → adjust-RG6LIQLX.mjs.map} +1 -1
  5. package/dist/lib/browser/{chunk-KUTDCWZF.mjs → chunk-GLB73Q6U.mjs} +2 -10
  6. package/dist/lib/browser/{chunk-KUTDCWZF.mjs.map → chunk-GLB73Q6U.mjs.map} +2 -2
  7. package/dist/lib/browser/{chunk-BRZAVPMC.mjs → chunk-LSZ47AY3.mjs} +1 -1
  8. package/dist/lib/browser/{chunk-5LM6A3EC.mjs → chunk-MARE7ZFK.mjs} +22 -15
  9. package/dist/lib/browser/{chunk-5LM6A3EC.mjs.map → chunk-MARE7ZFK.mjs.map} +3 -3
  10. package/dist/lib/browser/{chunk-FRVCL5NO.mjs → chunk-XM263CQU.mjs} +2 -2
  11. package/dist/lib/browser/chunk-XM263CQU.mjs.map +7 -0
  12. package/dist/lib/browser/{chunk-DF2VZ6W3.mjs → chunk-ZYYOSX5I.mjs} +1 -1
  13. package/dist/lib/browser/{chunk-DF2VZ6W3.mjs.map → chunk-ZYYOSX5I.mjs.map} +2 -2
  14. package/dist/lib/browser/{close-JXK73YIM.mjs → close-URA766JO.mjs} +6 -6
  15. package/dist/lib/browser/{close-JXK73YIM.mjs.map → close-URA766JO.mjs.map} +1 -1
  16. package/dist/lib/browser/index.mjs +7 -70
  17. package/dist/lib/browser/index.mjs.map +4 -4
  18. package/dist/lib/browser/meta.json +1 -1
  19. package/dist/lib/browser/{open-K2JOEW2E.mjs → open-OPFOOHCQ.mjs} +7 -10
  20. package/dist/lib/browser/open-OPFOOHCQ.mjs.map +7 -0
  21. package/dist/lib/browser/operations/index.mjs +3 -3
  22. package/dist/lib/browser/operations/index.mjs.map +3 -3
  23. package/dist/lib/browser/{revert-workspace-BNIR5U64.mjs → revert-workspace-KP2Y4QLG.mjs} +3 -3
  24. package/dist/lib/browser/{revert-workspace-BNIR5U64.mjs.map → revert-workspace-KP2Y4QLG.mjs.map} +1 -1
  25. package/dist/lib/browser/{scroll-into-view-4GSKC3GA.mjs → scroll-into-view-S5H2FGSQ.mjs} +3 -3
  26. package/dist/lib/browser/{scroll-into-view-4GSKC3GA.mjs.map → scroll-into-view-S5H2FGSQ.mjs.map} +1 -1
  27. package/dist/lib/browser/{set-XCG6NIAO.mjs → set-AEKFFSIX.mjs} +5 -5
  28. package/dist/lib/browser/{set-XCG6NIAO.mjs.map → set-AEKFFSIX.mjs.map} +1 -1
  29. package/dist/lib/browser/{set-layout-mode-BEVNGOY2.mjs → set-layout-mode-CWIGQDFZ.mjs} +5 -10
  30. package/dist/lib/browser/set-layout-mode-CWIGQDFZ.mjs.map +7 -0
  31. package/dist/lib/browser/{show-undo-5RQNREEB.mjs → show-undo-XFVEDKYC.mjs} +3 -3
  32. package/dist/lib/browser/{show-undo-5RQNREEB.mjs.map → show-undo-XFVEDKYC.mjs.map} +1 -1
  33. package/dist/lib/browser/{switch-workspace-ICJJWNFT.mjs → switch-workspace-DSAAXZSI.mjs} +4 -12
  34. package/dist/lib/browser/switch-workspace-DSAAXZSI.mjs.map +7 -0
  35. package/dist/lib/browser/translations.mjs +57 -0
  36. package/dist/lib/browser/translations.mjs.map +7 -0
  37. package/dist/lib/browser/types/index.mjs +1 -1
  38. package/dist/lib/browser/{update-companion-VPCBH3YT.mjs → update-companion-IDBBBHT3.mjs} +4 -4
  39. package/dist/lib/browser/{update-companion-VPCBH3YT.mjs.map → update-companion-IDBBBHT3.mjs.map} +1 -1
  40. package/dist/lib/browser/{update-complementary-74DEQY6T.mjs → update-complementary-55PNO5MD.mjs} +3 -3
  41. package/dist/lib/browser/{update-complementary-74DEQY6T.mjs.map → update-complementary-55PNO5MD.mjs.map} +1 -1
  42. package/dist/lib/browser/{update-dialog-6TDUYI5R.mjs → update-dialog-VNARIANC.mjs} +3 -3
  43. package/dist/lib/browser/{update-dialog-6TDUYI5R.mjs.map → update-dialog-VNARIANC.mjs.map} +1 -1
  44. package/dist/lib/browser/{update-plank-size-5VHZOTHE.mjs → update-plank-size-H63PRRXS.mjs} +5 -5
  45. package/dist/lib/browser/{update-plank-size-5VHZOTHE.mjs.map → update-plank-size-H63PRRXS.mjs.map} +1 -1
  46. package/dist/lib/browser/{update-popover-W7E2Z5T6.mjs → update-popover-ODTPZ3JL.mjs} +3 -3
  47. package/dist/lib/browser/{update-popover-W7E2Z5T6.mjs.map → update-popover-ODTPZ3JL.mjs.map} +1 -1
  48. package/dist/lib/browser/{update-sidebar-H3A6ZFRU.mjs → update-sidebar-JDVQ36WK.mjs} +3 -3
  49. package/dist/lib/browser/{update-sidebar-H3A6ZFRU.mjs.map → update-sidebar-JDVQ36WK.mjs.map} +1 -1
  50. package/dist/lib/node-esm/{add-toast-AZM7NFNM.mjs → add-toast-JUTN4GTI.mjs} +3 -3
  51. package/dist/lib/node-esm/{add-toast-AZM7NFNM.mjs.map → add-toast-JUTN4GTI.mjs.map} +1 -1
  52. package/dist/lib/node-esm/{adjust-ICALXQ6F.mjs → adjust-P5QK33P4.mjs} +7 -7
  53. package/dist/lib/node-esm/{adjust-ICALXQ6F.mjs.map → adjust-P5QK33P4.mjs.map} +1 -1
  54. package/dist/lib/node-esm/{chunk-B7WZXRW4.mjs → chunk-FO7YDJZ3.mjs} +22 -15
  55. package/dist/lib/node-esm/{chunk-B7WZXRW4.mjs.map → chunk-FO7YDJZ3.mjs.map} +3 -3
  56. package/dist/lib/node-esm/{chunk-MB4SDDVY.mjs → chunk-KY7ZCANM.mjs} +1 -1
  57. package/dist/lib/node-esm/{chunk-A63Q53TW.mjs → chunk-L7OVX7CV.mjs} +2 -2
  58. package/dist/lib/node-esm/chunk-L7OVX7CV.mjs.map +7 -0
  59. package/dist/lib/node-esm/{chunk-MLVJ2ODW.mjs → chunk-SHSR2CYO.mjs} +2 -10
  60. package/dist/lib/node-esm/{chunk-MLVJ2ODW.mjs.map → chunk-SHSR2CYO.mjs.map} +2 -2
  61. package/dist/lib/node-esm/{chunk-IRWCUYJY.mjs → chunk-WGBUTT5K.mjs} +1 -1
  62. package/dist/lib/node-esm/{chunk-IRWCUYJY.mjs.map → chunk-WGBUTT5K.mjs.map} +2 -2
  63. package/dist/lib/node-esm/{close-GC5V3GD5.mjs → close-U5VC7ERP.mjs} +6 -6
  64. package/dist/lib/node-esm/{close-GC5V3GD5.mjs.map → close-U5VC7ERP.mjs.map} +1 -1
  65. package/dist/lib/node-esm/index.mjs +7 -70
  66. package/dist/lib/node-esm/index.mjs.map +4 -4
  67. package/dist/lib/node-esm/meta.json +1 -1
  68. package/dist/lib/node-esm/{open-XXEHIR6G.mjs → open-4B3P5XGS.mjs} +7 -10
  69. package/dist/lib/node-esm/open-4B3P5XGS.mjs.map +7 -0
  70. package/dist/lib/node-esm/operations/index.mjs +3 -3
  71. package/dist/lib/node-esm/operations/index.mjs.map +3 -3
  72. package/dist/lib/node-esm/{revert-workspace-WCXAL5C6.mjs → revert-workspace-QD63M2U7.mjs} +3 -3
  73. package/dist/lib/node-esm/{revert-workspace-WCXAL5C6.mjs.map → revert-workspace-QD63M2U7.mjs.map} +1 -1
  74. package/dist/lib/node-esm/{scroll-into-view-2ZNU44ZO.mjs → scroll-into-view-G5M2EWK7.mjs} +3 -3
  75. package/dist/lib/node-esm/{scroll-into-view-2ZNU44ZO.mjs.map → scroll-into-view-G5M2EWK7.mjs.map} +1 -1
  76. package/dist/lib/node-esm/{set-5MO2JCUQ.mjs → set-ERJCXZBY.mjs} +5 -5
  77. package/dist/lib/node-esm/{set-5MO2JCUQ.mjs.map → set-ERJCXZBY.mjs.map} +1 -1
  78. package/dist/lib/node-esm/{set-layout-mode-3RK4HIG7.mjs → set-layout-mode-BOZD7744.mjs} +5 -10
  79. package/dist/lib/node-esm/set-layout-mode-BOZD7744.mjs.map +7 -0
  80. package/dist/lib/node-esm/{show-undo-WV7SAYGJ.mjs → show-undo-H5BRBYDC.mjs} +3 -3
  81. package/dist/lib/node-esm/{show-undo-WV7SAYGJ.mjs.map → show-undo-H5BRBYDC.mjs.map} +1 -1
  82. package/dist/lib/node-esm/{switch-workspace-VNM75H66.mjs → switch-workspace-F54PXE5N.mjs} +4 -12
  83. package/dist/lib/node-esm/switch-workspace-F54PXE5N.mjs.map +7 -0
  84. package/dist/lib/node-esm/translations.mjs +58 -0
  85. package/dist/lib/node-esm/translations.mjs.map +7 -0
  86. package/dist/lib/node-esm/types/index.mjs +1 -1
  87. package/dist/lib/node-esm/{update-companion-SIB3GWH7.mjs → update-companion-47LMKL5R.mjs} +4 -4
  88. package/dist/lib/node-esm/{update-companion-SIB3GWH7.mjs.map → update-companion-47LMKL5R.mjs.map} +1 -1
  89. package/dist/lib/node-esm/{update-complementary-CZTIVIXU.mjs → update-complementary-7VYYG7L2.mjs} +3 -3
  90. package/dist/lib/node-esm/{update-complementary-CZTIVIXU.mjs.map → update-complementary-7VYYG7L2.mjs.map} +1 -1
  91. package/dist/lib/node-esm/{update-dialog-HEDV5XBB.mjs → update-dialog-CABL7OWW.mjs} +3 -3
  92. package/dist/lib/node-esm/{update-dialog-HEDV5XBB.mjs.map → update-dialog-CABL7OWW.mjs.map} +1 -1
  93. package/dist/lib/node-esm/{update-plank-size-JJLU7VE3.mjs → update-plank-size-WYTSMZF2.mjs} +5 -5
  94. package/dist/lib/node-esm/{update-plank-size-JJLU7VE3.mjs.map → update-plank-size-WYTSMZF2.mjs.map} +1 -1
  95. package/dist/lib/node-esm/{update-popover-HI5TU2VT.mjs → update-popover-YZDYGL7G.mjs} +3 -3
  96. package/dist/lib/node-esm/{update-popover-HI5TU2VT.mjs.map → update-popover-YZDYGL7G.mjs.map} +1 -1
  97. package/dist/lib/node-esm/{update-sidebar-QB5BA655.mjs → update-sidebar-HV736LUN.mjs} +3 -3
  98. package/dist/lib/node-esm/{update-sidebar-QB5BA655.mjs.map → update-sidebar-HV736LUN.mjs.map} +1 -1
  99. package/dist/types/src/DeckPlugin.d.ts.map +1 -1
  100. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  101. package/dist/types/src/capabilities/check-app-scheme.d.ts.map +1 -1
  102. package/dist/types/src/capabilities/index.d.ts +17 -17
  103. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  104. package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
  105. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
  106. package/dist/types/src/capabilities/react-root.d.ts.map +1 -1
  107. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  108. package/dist/types/src/capabilities/settings.d.ts.map +1 -1
  109. package/dist/types/src/capabilities/state.d.ts +16 -16
  110. package/dist/types/src/capabilities/state.d.ts.map +1 -1
  111. package/dist/types/src/capabilities/tools.d.ts.map +1 -1
  112. package/dist/types/src/capabilities/url-handler.d.ts.map +1 -1
  113. package/dist/types/src/components/DeckSettings/DeckSettings.d.ts.map +1 -1
  114. package/dist/types/src/components/DeckSettings/DeckSettings.stories.d.ts +42 -52
  115. package/dist/types/src/components/DeckSettings/DeckSettings.stories.d.ts.map +1 -1
  116. package/dist/types/src/components/Matrix/Matrix.d.ts +2 -2
  117. package/dist/types/src/components/Matrix/Matrix.d.ts.map +1 -1
  118. package/dist/types/src/components/Matrix/Matrix.stories.d.ts.map +1 -1
  119. package/dist/types/src/containers/Deck/Banner.d.ts +1 -1
  120. package/dist/types/src/containers/Deck/Banner.d.ts.map +1 -1
  121. package/dist/types/src/containers/Deck/Deck.d.ts.map +1 -1
  122. package/dist/types/src/containers/Deck/Deck.stories.d.ts +42 -52
  123. package/dist/types/src/containers/Deck/Deck.stories.d.ts.map +1 -1
  124. package/dist/types/src/containers/Deck/DeckContent.d.ts +4 -4
  125. package/dist/types/src/containers/Deck/DeckContent.d.ts.map +1 -1
  126. package/dist/types/src/containers/Deck/DeckRoot.d.ts +5 -8
  127. package/dist/types/src/containers/Deck/DeckRoot.d.ts.map +1 -1
  128. package/dist/types/src/containers/Deck/DeckViewport.d.ts +4 -7
  129. package/dist/types/src/containers/Deck/DeckViewport.d.ts.map +1 -1
  130. package/dist/types/src/containers/Deck/StatusBar.d.ts.map +1 -1
  131. package/dist/types/src/containers/DeckLayout/DeckLayout.d.ts.map +1 -1
  132. package/dist/types/src/containers/DeckLayout/DeckLayout.stories.d.ts +42 -52
  133. package/dist/types/src/containers/DeckLayout/DeckLayout.stories.d.ts.map +1 -1
  134. package/dist/types/src/containers/DeckLayout/Popover.d.ts.map +1 -1
  135. package/dist/types/src/containers/DeckLayout/Toast.d.ts +1 -1
  136. package/dist/types/src/containers/DeckLayout/Toast.d.ts.map +1 -1
  137. package/dist/types/src/containers/DeckLayout/index.d.ts.map +1 -1
  138. package/dist/types/src/containers/Plank/Plank.d.ts +1 -1
  139. package/dist/types/src/containers/Plank/Plank.d.ts.map +1 -1
  140. package/dist/types/src/containers/Plank/Plank.stories.d.ts +42 -52
  141. package/dist/types/src/containers/Plank/Plank.stories.d.ts.map +1 -1
  142. package/dist/types/src/containers/Plank/PlankContent.d.ts +1 -1
  143. package/dist/types/src/containers/Plank/PlankError.d.ts +1 -1
  144. package/dist/types/src/containers/Plank/PlankError.d.ts.map +1 -1
  145. package/dist/types/src/containers/Plank/PlankRoot.d.ts.map +1 -1
  146. package/dist/types/src/containers/Sidebar/ComplementarySidebar.d.ts.map +1 -1
  147. package/dist/types/src/containers/Sidebar/SidebarButton.d.ts +1 -1
  148. package/dist/types/src/containers/Sidebar/SidebarButton.d.ts.map +1 -1
  149. package/dist/types/src/hooks/useBreakpoints.d.ts +1 -1
  150. package/dist/types/src/hooks/useCompanions.d.ts.map +1 -1
  151. package/dist/types/src/hooks/useDeckCompanions.d.ts +1 -1
  152. package/dist/types/src/hooks/useDeckCompanions.d.ts.map +1 -1
  153. package/dist/types/src/hooks/useHoistStatusbar.d.ts.map +1 -1
  154. package/dist/types/src/hooks/useMainSize.d.ts.map +1 -1
  155. package/dist/types/src/hooks/useNodeActionExpander.d.ts.map +1 -1
  156. package/dist/types/src/hooks/useSelectedCompanion.d.ts.map +1 -1
  157. package/dist/types/src/layout.d.ts.map +1 -1
  158. package/dist/types/src/operations/add-toast.d.ts +1 -1
  159. package/dist/types/src/operations/add-toast.d.ts.map +1 -1
  160. package/dist/types/src/operations/adjust.d.ts +1 -1
  161. package/dist/types/src/operations/adjust.d.ts.map +1 -1
  162. package/dist/types/src/operations/close.d.ts +1 -1
  163. package/dist/types/src/operations/close.d.ts.map +1 -1
  164. package/dist/types/src/operations/definitions.d.ts +2 -2
  165. package/dist/types/src/operations/definitions.d.ts.map +1 -1
  166. package/dist/types/src/operations/helpers.d.ts.map +1 -1
  167. package/dist/types/src/operations/index.d.ts +1 -1
  168. package/dist/types/src/operations/index.d.ts.map +1 -1
  169. package/dist/types/src/operations/open.d.ts +1 -1
  170. package/dist/types/src/operations/open.d.ts.map +1 -1
  171. package/dist/types/src/operations/revert-workspace.d.ts +1 -1
  172. package/dist/types/src/operations/revert-workspace.d.ts.map +1 -1
  173. package/dist/types/src/operations/scroll-into-view.d.ts +1 -1
  174. package/dist/types/src/operations/scroll-into-view.d.ts.map +1 -1
  175. package/dist/types/src/operations/set-layout-mode.d.ts +1 -1
  176. package/dist/types/src/operations/set-layout-mode.d.ts.map +1 -1
  177. package/dist/types/src/operations/set.d.ts +1 -1
  178. package/dist/types/src/operations/set.d.ts.map +1 -1
  179. package/dist/types/src/operations/show-undo.d.ts +1 -1
  180. package/dist/types/src/operations/show-undo.d.ts.map +1 -1
  181. package/dist/types/src/operations/switch-workspace.d.ts +1 -1
  182. package/dist/types/src/operations/switch-workspace.d.ts.map +1 -1
  183. package/dist/types/src/operations/update-companion.d.ts +1 -1
  184. package/dist/types/src/operations/update-companion.d.ts.map +1 -1
  185. package/dist/types/src/operations/update-complementary.d.ts +1 -1
  186. package/dist/types/src/operations/update-complementary.d.ts.map +1 -1
  187. package/dist/types/src/operations/update-dialog.d.ts +1 -1
  188. package/dist/types/src/operations/update-dialog.d.ts.map +1 -1
  189. package/dist/types/src/operations/update-plank-size.d.ts +1 -1
  190. package/dist/types/src/operations/update-plank-size.d.ts.map +1 -1
  191. package/dist/types/src/operations/update-popover.d.ts +1 -1
  192. package/dist/types/src/operations/update-popover.d.ts.map +1 -1
  193. package/dist/types/src/operations/update-sidebar.d.ts +1 -1
  194. package/dist/types/src/operations/update-sidebar.d.ts.map +1 -1
  195. package/dist/types/src/translations.d.ts +42 -53
  196. package/dist/types/src/translations.d.ts.map +1 -1
  197. package/dist/types/src/types/Settings.d.ts +5 -5
  198. package/dist/types/src/types/Settings.d.ts.map +1 -1
  199. package/dist/types/src/types/capabilities.d.ts +16 -16
  200. package/dist/types/src/types/capabilities.d.ts.map +1 -1
  201. package/dist/types/src/types/events.d.ts.map +1 -1
  202. package/dist/types/src/types/schema.d.ts.map +1 -1
  203. package/dist/types/src/util/layoutAppliesTopbar.d.ts.map +1 -1
  204. package/dist/types/src/util/plank-url-params.d.ts.map +1 -1
  205. package/dist/types/src/util/sanitize-persisted-state.d.ts.map +1 -1
  206. package/dist/types/src/util/set-active.d.ts.map +1 -1
  207. package/dist/types/tsconfig.tsbuildinfo +1 -1
  208. package/package.json +51 -45
  209. package/src/DeckPlugin.ts +2 -3
  210. package/src/capabilities/app-graph-builder.ts +2 -2
  211. package/src/capabilities/index.ts +1 -1
  212. package/src/capabilities/operation-handler.ts +1 -1
  213. package/src/capabilities/settings.ts +1 -1
  214. package/src/capabilities/url-handler.ts +1 -1
  215. package/src/components/DeckSettings/DeckSettings.stories.tsx +2 -1
  216. package/src/components/DeckSettings/DeckSettings.tsx +8 -47
  217. package/src/components/Matrix/Matrix.stories.tsx +1 -1
  218. package/src/containers/Deck/Deck.stories.tsx +1 -1
  219. package/src/containers/DeckLayout/DeckLayout.stories.tsx +1 -1
  220. package/src/containers/Plank/Plank.stories.tsx +1 -1
  221. package/src/containers/Sidebar/SidebarButton.tsx +7 -1
  222. package/src/hooks/useDeckCompanions.ts +1 -1
  223. package/src/operations/add-toast.ts +1 -1
  224. package/src/operations/adjust.ts +1 -1
  225. package/src/operations/close.ts +1 -1
  226. package/src/operations/definitions.ts +1 -1
  227. package/src/operations/index.ts +1 -1
  228. package/src/operations/open.ts +1 -1
  229. package/src/operations/revert-workspace.ts +1 -1
  230. package/src/operations/scroll-into-view.ts +1 -1
  231. package/src/operations/set-layout-mode.ts +1 -1
  232. package/src/operations/set.ts +1 -1
  233. package/src/operations/show-undo.ts +1 -1
  234. package/src/operations/switch-workspace.ts +1 -1
  235. package/src/operations/update-companion.ts +1 -1
  236. package/src/operations/update-complementary.ts +1 -1
  237. package/src/operations/update-dialog.ts +1 -1
  238. package/src/operations/update-plank-size.ts +1 -1
  239. package/src/operations/update-popover.ts +1 -1
  240. package/src/operations/update-sidebar.ts +1 -1
  241. package/src/translations.ts +2 -12
  242. package/src/types/Settings.ts +30 -5
  243. package/dist/lib/browser/chunk-FRVCL5NO.mjs.map +0 -7
  244. package/dist/lib/browser/open-K2JOEW2E.mjs.map +0 -7
  245. package/dist/lib/browser/set-layout-mode-BEVNGOY2.mjs.map +0 -7
  246. package/dist/lib/browser/switch-workspace-ICJJWNFT.mjs.map +0 -7
  247. package/dist/lib/node-esm/chunk-A63Q53TW.mjs.map +0 -7
  248. package/dist/lib/node-esm/open-XXEHIR6G.mjs.map +0 -7
  249. package/dist/lib/node-esm/set-layout-mode-3RK4HIG7.mjs.map +0 -7
  250. package/dist/lib/node-esm/switch-workspace-VNM75H66.mjs.map +0 -7
  251. /package/dist/lib/browser/{chunk-BRZAVPMC.mjs.map → chunk-LSZ47AY3.mjs.map} +0 -0
  252. /package/dist/lib/node-esm/{chunk-MB4SDDVY.mjs.map → chunk-KY7ZCANM.mjs.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/operations/revert-workspace.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/operation';\n\nimport { DeckCapabilities } from '../types';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.RevertWorkspace> = LayoutOperation.RevertWorkspace.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* () {\n const state = yield* Capabilities.getAtomValue(DeckCapabilities.State);\n yield* Operation.invoke(LayoutOperation.SwitchWorkspace, { subject: state.previousDeck });\n }),\n ),\n);\n\nexport default handler;\n"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\n\nimport { DeckCapabilities } from '../types';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.RevertWorkspace> = LayoutOperation.RevertWorkspace.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* () {\n const state = yield* Capabilities.getAtomValue(DeckCapabilities.State);\n yield* Operation.invoke(LayoutOperation.SwitchWorkspace, { subject: state.previousDeck });\n }),\n ),\n);\n\nexport default handler;\n"],
5
5
  "mappings": ";;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,oBAAoB;AAC7B,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAI1B,IAAMC,UAAyEC,gBAAgBC,gBAAgBC,KAC7GC,UAAUC,YACDC,kBAAW,aAAA;AAChB,QAAMC,QAAQ,OAAOC,aAAaC,aAAaC,iBAAiBC,KAAK;AACrE,SAAOP,UAAUQ,OAAOX,gBAAgBY,iBAAiB;IAAEC,SAASP,MAAMQ;EAAa,CAAA;AACzF,CAAA,CAAA,CAAA;AAIJ,IAAA,2BAAef;",
6
6
  "names": ["Effect", "Capabilities", "LayoutOperation", "Operation", "handler", "LayoutOperation", "RevertWorkspace", "pipe", "Operation", "withHandler", "fnUntraced", "state", "Capabilities", "getAtomValue", "DeckCapabilities", "State", "invoke", "SwitchWorkspace", "subject", "previousDeck"]
7
7
  }
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  DeckCapabilities
3
- } from "./chunk-5LM6A3EC.mjs";
3
+ } from "./chunk-MARE7ZFK.mjs";
4
4
  import "./chunk-J5LGTIGS.mjs";
5
5
 
6
6
  // src/operations/scroll-into-view.ts
7
7
  import * as Effect from "effect/Effect";
8
8
  import { Capabilities } from "@dxos/app-framework";
9
9
  import { LayoutOperation } from "@dxos/app-toolkit";
10
- import { Operation } from "@dxos/operation";
10
+ import { Operation } from "@dxos/compute";
11
11
  var handler = LayoutOperation.ScrollIntoView.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
12
12
  yield* Capabilities.updateAtomValue(DeckCapabilities.EphemeralState, (state) => ({
13
13
  ...state,
@@ -18,4 +18,4 @@ var scroll_into_view_default = handler;
18
18
  export {
19
19
  scroll_into_view_default as default
20
20
  };
21
- //# sourceMappingURL=scroll-into-view-4GSKC3GA.mjs.map
21
+ //# sourceMappingURL=scroll-into-view-S5H2FGSQ.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/operations/scroll-into-view.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/operation';\n\nimport { DeckCapabilities } from '../types';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.ScrollIntoView> = LayoutOperation.ScrollIntoView.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n yield* Capabilities.updateAtomValue(DeckCapabilities.EphemeralState, (state) => ({\n ...state,\n scrollIntoView: input.subject,\n }));\n }),\n ),\n);\n\nexport default handler;\n"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\n\nimport { DeckCapabilities } from '../types';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.ScrollIntoView> = LayoutOperation.ScrollIntoView.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n yield* Capabilities.updateAtomValue(DeckCapabilities.EphemeralState, (state) => ({\n ...state,\n scrollIntoView: input.subject,\n }));\n }),\n ),\n);\n\nexport default handler;\n"],
5
5
  "mappings": ";;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,oBAAoB;AAC7B,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAI1B,IAAMC,UAAwEC,gBAAgBC,eAAeC,KAC3GC,UAAUC,YACDC,kBAAW,WAAWC,OAAK;AAChC,SAAOC,aAAaC,gBAAgBC,iBAAiBC,gBAAgB,CAACC,WAAW;IAC/E,GAAGA;IACHC,gBAAgBN,MAAMO;EACxB,EAAA;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,2BAAed;",
6
6
  "names": ["Effect", "Capabilities", "LayoutOperation", "Operation", "handler", "LayoutOperation", "ScrollIntoView", "pipe", "Operation", "withHandler", "fnUntraced", "input", "Capabilities", "updateAtomValue", "DeckCapabilities", "EphemeralState", "state", "scrollIntoView", "subject"]
7
7
  }
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  computeActiveUpdates
3
- } from "./chunk-BRZAVPMC.mjs";
3
+ } from "./chunk-LSZ47AY3.mjs";
4
4
  import {
5
5
  updateActiveDeck
6
- } from "./chunk-KUTDCWZF.mjs";
6
+ } from "./chunk-GLB73Q6U.mjs";
7
7
  import {
8
8
  DeckCapabilities
9
- } from "./chunk-5LM6A3EC.mjs";
9
+ } from "./chunk-MARE7ZFK.mjs";
10
10
  import "./chunk-J5LGTIGS.mjs";
11
11
 
12
12
  // src/operations/set.ts
13
13
  import * as Effect from "effect/Effect";
14
14
  import { Capabilities, Capability } from "@dxos/app-framework";
15
15
  import { LayoutOperation } from "@dxos/app-toolkit";
16
- import { Operation } from "@dxos/operation";
16
+ import { Operation } from "@dxos/compute";
17
17
  import { AttentionCapabilities } from "@dxos/plugin-attention/types";
18
18
  var handler = LayoutOperation.Set.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
19
19
  const deck = yield* DeckCapabilities.getDeck();
@@ -34,4 +34,4 @@ var set_default = handler;
34
34
  export {
35
35
  set_default as default
36
36
  };
37
- //# sourceMappingURL=set-XCG6NIAO.mjs.map
37
+ //# sourceMappingURL=set-AEKFFSIX.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/operations/set.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 { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/operation';\nimport { AttentionCapabilities } from '@dxos/plugin-attention/types';\n\nimport { DeckCapabilities } from '../types';\nimport { computeActiveUpdates } from '../util';\nimport { updateActiveDeck } from './helpers';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.Set> = LayoutOperation.Set.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n const deck = yield* DeckCapabilities.getDeck();\n const attention = yield* Capability.get(AttentionCapabilities.Attention);\n\n const { deckUpdates, toAttend } = computeActiveUpdates({\n next: input.subject as string[],\n deck,\n attention,\n });\n yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state) => updateActiveDeck(state, deckUpdates));\n\n if (toAttend) {\n yield* Operation.schedule(LayoutOperation.ScrollIntoView, { subject: toAttend });\n }\n }),\n ),\n);\n\nexport default handler;\n"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\nimport { AttentionCapabilities } from '@dxos/plugin-attention/types';\n\nimport { DeckCapabilities } from '../types';\nimport { computeActiveUpdates } from '../util';\nimport { updateActiveDeck } from './helpers';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.Set> = LayoutOperation.Set.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n const deck = yield* DeckCapabilities.getDeck();\n const attention = yield* Capability.get(AttentionCapabilities.Attention);\n\n const { deckUpdates, toAttend } = computeActiveUpdates({\n next: input.subject as string[],\n deck,\n attention,\n });\n yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state) => updateActiveDeck(state, deckUpdates));\n\n if (toAttend) {\n yield* Operation.schedule(LayoutOperation.ScrollIntoView, { subject: toAttend });\n }\n }),\n ),\n);\n\nexport default handler;\n"],
5
5
  "mappings": ";;;;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAC1B,SAASC,6BAA6B;AAMtC,IAAMC,UAA6DC,gBAAgBC,IAAIC,KACrFC,UAAUC,YACDC,kBAAW,WAAWC,OAAK;AAChC,QAAMC,OAAO,OAAOC,iBAAiBC,QAAO;AAC5C,QAAMC,YAAY,OAAOC,WAAWC,IAAIC,sBAAsBC,SAAS;AAEvE,QAAM,EAAEC,aAAaC,SAAQ,IAAKC,qBAAqB;IACrDC,MAAMZ,MAAMa;IACZZ;IACAG;EACF,CAAA;AACA,SAAOU,aAAaC,gBAAgBb,iBAAiBc,OAAO,CAACC,UAAUC,iBAAiBD,OAAOR,WAAAA,CAAAA;AAE/F,MAAIC,UAAU;AACZ,WAAOb,UAAUsB,SAASzB,gBAAgB0B,gBAAgB;MAAEP,SAASH;IAAS,CAAA;EAChF;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,cAAejB;",
6
6
  "names": ["Effect", "Capabilities", "Capability", "LayoutOperation", "Operation", "AttentionCapabilities", "handler", "LayoutOperation", "Set", "pipe", "Operation", "withHandler", "fnUntraced", "input", "deck", "DeckCapabilities", "getDeck", "attention", "Capability", "get", "AttentionCapabilities", "Attention", "deckUpdates", "toAttend", "computeActiveUpdates", "next", "subject", "Capabilities", "updateAtomValue", "State", "state", "updateActiveDeck", "schedule", "ScrollIntoView"]
7
7
  }
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  updateActiveDeck
3
- } from "./chunk-KUTDCWZF.mjs";
3
+ } from "./chunk-GLB73Q6U.mjs";
4
4
  import {
5
5
  DeckCapabilities,
6
6
  getMode,
7
7
  isLayoutMode
8
- } from "./chunk-5LM6A3EC.mjs";
8
+ } from "./chunk-MARE7ZFK.mjs";
9
9
  import "./chunk-J5LGTIGS.mjs";
10
10
 
11
11
  // src/operations/set-layout-mode.ts
12
12
  import * as Effect from "effect/Effect";
13
13
  import { Capabilities } from "@dxos/app-framework";
14
14
  import { LayoutOperation } from "@dxos/app-toolkit";
15
+ import { Operation } from "@dxos/compute";
15
16
  import { log } from "@dxos/log";
16
- import { Operation } from "@dxos/operation";
17
17
  import { isNonNullable } from "@dxos/util";
18
18
  var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-deck/src/operations/set-layout-mode.ts";
19
19
  var handler = LayoutOperation.SetLayoutMode.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
@@ -75,16 +75,11 @@ var handler = LayoutOperation.SetLayoutMode.pipe(Operation.withHandler(Effect.fn
75
75
  const deckUpdates = computeModeUpdate(state.previousMode[state.activeDeck]);
76
76
  yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state2) => updateActiveDeck(state2, deckUpdates));
77
77
  } else {
78
- log.warn("Invalid layout mode", input, {
79
- F: __dxlog_file,
80
- L: 78,
81
- S: this,
82
- C: (f, a) => f(...a)
83
- });
78
+ log.warn("Invalid layout mode", input, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 74, S: this });
84
79
  }
85
80
  })));
86
81
  var set_layout_mode_default = handler;
87
82
  export {
88
83
  set_layout_mode_default as default
89
84
  };
90
- //# sourceMappingURL=set-layout-mode-BEVNGOY2.mjs.map
85
+ //# sourceMappingURL=set-layout-mode-CWIGQDFZ.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/operations/set-layout-mode.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\nimport { log } from '@dxos/log';\nimport { isNonNullable } from '@dxos/util';\n\nimport { DeckCapabilities, type DeckState, type LayoutMode, getMode, isLayoutMode } from '../types';\nimport { updateActiveDeck } from './helpers';\n\n/**\n * Transitions between layout modes (multi, solo, solo--fullscreen) or reverts to the previous mode.\n * Computes which planks become active/inactive and persists the previous mode for revert support.\n */\nconst handler: Operation.WithHandler<typeof LayoutOperation.SetLayoutMode> = LayoutOperation.SetLayoutMode.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n if ('mode' in input && !isLayoutMode(input.mode)) {\n return;\n }\n\n const state = yield* Capabilities.getAtomValue(DeckCapabilities.State);\n const deck = yield* DeckCapabilities.getDeck();\n\n const computeModeUpdate = (mode: LayoutMode, subject?: string): Partial<DeckState> => {\n const current = deck.solo ? [deck.solo] : deck.active;\n const next = (mode !== 'multi' ? [subject ?? deck.solo ?? deck.active[0]] : [...deck.active, deck.solo]).filter(\n isNonNullable,\n );\n\n const removed = current.filter((id: string) => !next.includes(id));\n const closed = Array.from(new Set([...deck.inactive.filter((id: string) => !next.includes(id)), ...removed]));\n\n const soloUpdate =\n mode !== 'multi' && next[0]\n ? { solo: next[0] }\n : mode === 'multi' && deck.solo\n ? { solo: undefined, initialized: true }\n : {};\n\n const fullscreenUpdate = mode === 'solo--fullscreen' ? { fullscreen: !deck.fullscreen } : {};\n\n return {\n inactive: closed,\n ...soloUpdate,\n ...fullscreenUpdate,\n };\n };\n\n if ('mode' in input) {\n const currentMode = getMode(deck);\n const subject = 'subject' in input ? input.subject : undefined;\n const deckUpdates = computeModeUpdate(input.mode as LayoutMode, subject);\n\n yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state) => {\n const newPreviousMode =\n currentMode !== input.mode\n ? { ...state.previousMode, [state.activeDeck]: currentMode }\n : state.previousMode;\n return {\n ...updateActiveDeck(state, deckUpdates),\n previousMode: newPreviousMode,\n };\n });\n\n if (subject) {\n yield* Operation.schedule(LayoutOperation.Expose, { subject });\n }\n } else if ('revert' in input) {\n const deckUpdates = computeModeUpdate(state.previousMode[state.activeDeck]);\n yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state) => updateActiveDeck(state, deckUpdates));\n } else {\n log.warn('Invalid layout mode', input);\n }\n }),\n ),\n);\n\nexport default handler;\n"],
5
+ "mappings": ";;;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,oBAAoB;AAC7B,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAC1B,SAASC,WAAW;AACpB,SAASC,qBAAqB;AAK9B,IAAA,eAAA;IAQQ,UAAA,gBAAA,cAAA,KAAA,UAAA,YAAA,kBAAA,WAAA,OAAA;AACF,MAAA,UAAA,SAAA,CAAA,aAAA,MAAA,IAAA,GAAA;AAEA;EACA;AAEA,QAAMC,QAAAA,OAAAA,aAAuCC,aAAAA,iBAAAA,KAAAA;QAC3C,OAAMC,OAAUC,iBAAY,QAAA;4BAAU,CAAA,MAAA,YAAA;UAAIA,UAAW,KAAA,OAAA;MACrD,KAAMC;QAA4BH,KAAAA;UAA0C,QAAA,SAAA,UAAA;iBAASI,KAAM,QAAA,KAAA,OAAA,CAAA;QAAEF;MAAYG,GAAAA,KACvGC;MAGF,KAAMC;IACN,GAAA,OAAMC,aAAeC;oBAAsBC,QAASL,OAAQM,CAAAA,OAAgBR,CAAAA,KAAKS,SAASD,EAAAA,CAAAA;mBAASJ,MAAAA,KAAAA,oBAAAA,IAAAA;MAAQ,GAAA,KAAA,SAAA,OAAA,CAAA,OAAA,CAAA,KAAA,SAAA,EAAA,CAAA;MAE3G,GAAMM;;AAEgB,UAChBC,aAAS,SAAWZ,WAClB,KAAA,CAAA,IAAA;MAAEa,MAAMC,KAAAA,CAAAA;QAAWC,SAAAA,WAAa,KAAA,OAAA;MAChC,MAAC;MAET,aAAMC;QAAmDC,CAAAA;AAA6B,UAAK,mBAAA,SAAA,qBAAA;MAE3F,YAAO,CAAA,KAAA;QACLT,CAAAA;WACGG;MACH,UAAGK;MACL,GAAA;MACF,GAAA;IAEI;;MAEF,UAAMlB,OAAU;AAChB,UAAMoB,cAAcrB,QAAAA,IAAAA;AAEpB,UAAA,UAAOsB,aAAaC,QAAgBC,MAAAA,UAAiBC;UACnD,cAAMC,kBACJC,MAAgBC,MAAMb,OAClB;wBAAWc,gBAAY,iBAAA,OAAA,CAAAC,WAAA;YAAGA,kBAAmBH,gBAAAA,MAAAA,OAAAA;QAC7CG,GAAAA,OAAMD;QACZ,CAAAC,OAAO,UAAA,GAAA;UACLA,OAAGC;aACHF;QACF,GAAA,iBAAAC,QAAA,WAAA;QACF,cAAA;MAEI7B;;iBACkDA;AAAQ,aAAA,UAAA,SAAA,gBAAA,QAAA;QAC9D;MACK,CAAA;IACL;aACOqB,YAAAA,OAAaC;AACtB,UAAO,cAAA,kBAAA,MAAA,aAAA,MAAA,UAAA,CAAA;AACLS,WAAIC,aAAK,gBAAuBL,iBAAAA,OAAAA,CAAAA,WAAAA,iBAAAA,QAAAA,WAAAA,CAAAA;EAClC,OAAA;AACF,QAAA,KAAA,uBAAA,OAAA,EAAA,YAAA,YAAA,GAAA,cAAA,GAAA,IAAA,GAAA,KAAA,CAAA;EAIJ;;;",
6
+ "names": ["Effect", "Capabilities", "LayoutOperation", "Operation", "log", "isNonNullable", "computeModeUpdate", "subject", "current", "deck", "next", "active", "filter", "isNonNullable", "removed", "closed", "from", "inactive", "id", "includes", "soloUpdate", "mode", "solo", "undefined", "initialized", "fullscreenUpdate", "fullscreen", "deckUpdates", "Capabilities", "updateAtomValue", "DeckCapabilities", "State", "newPreviousMode", "currentMode", "input", "previousMode", "state", "updateActiveDeck", "log", "warn"]
7
+ }
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  DeckCapabilities
3
- } from "./chunk-5LM6A3EC.mjs";
3
+ } from "./chunk-MARE7ZFK.mjs";
4
4
  import "./chunk-J5LGTIGS.mjs";
5
5
 
6
6
  // src/operations/show-undo.ts
7
7
  import * as Effect from "effect/Effect";
8
8
  import { Capabilities, Capability, UndoOperation } from "@dxos/app-framework";
9
- import { Operation } from "@dxos/operation";
9
+ import { Operation } from "@dxos/compute";
10
10
  import { meta } from "#meta";
11
11
  var handler = UndoOperation.ShowUndo.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
12
12
  const historyTracker = yield* Capability.get(Capabilities.HistoryTracker);
@@ -56,4 +56,4 @@ var show_undo_default = handler;
56
56
  export {
57
57
  show_undo_default as default
58
58
  };
59
- //# sourceMappingURL=show-undo-5RQNREEB.mjs.map
59
+ //# sourceMappingURL=show-undo-XFVEDKYC.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/operations/show-undo.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability, UndoOperation } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/operation';\n\nimport { meta } from '#meta';\n\nimport { DeckCapabilities } from '../types';\n\nconst handler: Operation.WithHandler<typeof UndoOperation.ShowUndo> = UndoOperation.ShowUndo.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n const historyTracker = yield* Capability.get(Capabilities.HistoryTracker);\n\n const newUndoId = `show-undo-${Date.now()}`;\n // TODO(wittjosiah): Support undoing further back than the last action.\n yield* Capabilities.updateAtomValue(DeckCapabilities.EphemeralState, (state) => {\n const filteredToasts = state.currentUndoId\n ? state.toasts.filter((toast) => toast.id !== state.currentUndoId)\n : state.toasts;\n\n const toast: LayoutOperation.Toast = {\n id: newUndoId,\n title: input.message ?? ['undo-available.label', { ns: meta.id }],\n duration: 10_000,\n actionLabel: ['undo-action.label', { ns: meta.id }],\n actionAlt: ['undo-action.alt', { ns: meta.id }],\n closeLabel: ['undo-close.label', { ns: meta.id }],\n onAction: () => historyTracker.undoPromise(),\n };\n\n return {\n ...state,\n currentUndoId: newUndoId,\n toasts: [...filteredToasts, toast],\n };\n });\n }),\n ),\n);\n\nexport default handler;\n"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability, UndoOperation } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\n\nimport { meta } from '#meta';\n\nimport { DeckCapabilities } from '../types';\n\nconst handler: Operation.WithHandler<typeof UndoOperation.ShowUndo> = UndoOperation.ShowUndo.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n const historyTracker = yield* Capability.get(Capabilities.HistoryTracker);\n\n const newUndoId = `show-undo-${Date.now()}`;\n // TODO(wittjosiah): Support undoing further back than the last action.\n yield* Capabilities.updateAtomValue(DeckCapabilities.EphemeralState, (state) => {\n const filteredToasts = state.currentUndoId\n ? state.toasts.filter((toast) => toast.id !== state.currentUndoId)\n : state.toasts;\n\n const toast: LayoutOperation.Toast = {\n id: newUndoId,\n title: input.message ?? ['undo-available.label', { ns: meta.id }],\n duration: 10_000,\n actionLabel: ['undo-action.label', { ns: meta.id }],\n actionAlt: ['undo-action.alt', { ns: meta.id }],\n closeLabel: ['undo-close.label', { ns: meta.id }],\n onAction: () => historyTracker.undoPromise(),\n };\n\n return {\n ...state,\n currentUndoId: newUndoId,\n toasts: [...filteredToasts, toast],\n };\n });\n }),\n ),\n);\n\nexport default handler;\n"],
5
5
  "mappings": ";;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,YAAYC,qBAAqB;AAExD,SAASC,iBAAiB;AAE1B,SAASC,YAAY;AAIrB,IAAMC,UAAgEC,cAAcC,SAASC,KAC3FC,UAAUC,YACDC,kBAAW,WAAWC,OAAK;AAChC,QAAMC,iBAAiB,OAAOC,WAAWC,IAAIC,aAAaC,cAAc;AAExE,QAAMC,YAAY,aAAaC,KAAKC,IAAG,CAAA;AAEvC,SAAOJ,aAAaK,gBAAgBC,iBAAiBC,gBAAgB,CAACC,UAAAA;AACpE,UAAMC,iBAAiBD,MAAME,gBACzBF,MAAMG,OAAOC,OAAO,CAACC,WAAUA,OAAMC,OAAON,MAAME,aAAa,IAC/DF,MAAMG;AAEV,UAAME,QAA+B;MACnCC,IAAIZ;MACJa,OAAOnB,MAAMoB,WAAW;QAAC;QAAwB;UAAEC,IAAIC,KAAKJ;QAAG;;MAC/DK,UAAU;MACVC,aAAa;QAAC;QAAqB;UAAEH,IAAIC,KAAKJ;QAAG;;MACjDO,WAAW;QAAC;QAAmB;UAAEJ,IAAIC,KAAKJ;QAAG;;MAC7CQ,YAAY;QAAC;QAAoB;UAAEL,IAAIC,KAAKJ;QAAG;;MAC/CS,UAAU,MAAM1B,eAAe2B,YAAW;IAC5C;AAEA,WAAO;MACL,GAAGhB;MACHE,eAAeR;MACfS,QAAQ;WAAIF;QAAgBI;;IAC9B;EACF,CAAA;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,oBAAexB;",
6
6
  "names": ["Effect", "Capabilities", "Capability", "UndoOperation", "Operation", "meta", "handler", "UndoOperation", "ShowUndo", "pipe", "Operation", "withHandler", "fnUntraced", "input", "historyTracker", "Capability", "get", "Capabilities", "HistoryTracker", "newUndoId", "Date", "now", "updateAtomValue", "DeckCapabilities", "EphemeralState", "state", "filteredToasts", "currentUndoId", "toasts", "filter", "toast", "id", "title", "message", "ns", "meta", "duration", "actionLabel", "actionAlt", "closeLabel", "onAction", "undoPromise"]
7
7
  }
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  DeckCapabilities,
3
3
  defaultDeck
4
- } from "./chunk-5LM6A3EC.mjs";
4
+ } from "./chunk-MARE7ZFK.mjs";
5
5
  import "./chunk-J5LGTIGS.mjs";
6
6
 
7
7
  // src/operations/switch-workspace.ts
8
8
  import * as Effect from "effect/Effect";
9
9
  import { Capabilities, Capability } from "@dxos/app-framework";
10
10
  import { AppCapabilities, isPinnedWorkspace, LayoutOperation } from "@dxos/app-toolkit";
11
+ import { Operation } from "@dxos/compute";
11
12
  import { invariant } from "@dxos/invariant";
12
- import { Operation } from "@dxos/operation";
13
13
  import { Graph, Node } from "@dxos/plugin-graph";
14
14
  var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-deck/src/operations/switch-workspace.ts";
15
15
  var handler = LayoutOperation.SwitchWorkspace.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
@@ -35,15 +35,7 @@ var handler = LayoutOperation.SwitchWorkspace.pipe(Operation.withHandler(Effect.
35
35
  {
36
36
  const state = yield* Capabilities.getAtomValue(DeckCapabilities.State);
37
37
  const deck = state.decks[input.subject];
38
- invariant(deck, `Deck not found: ${input.subject}`, {
39
- F: __dxlog_file,
40
- L: 42,
41
- S: this,
42
- A: [
43
- "deck",
44
- "`Deck not found: ${input.subject}`"
45
- ]
46
- });
38
+ invariant(deck, `Deck not found: ${input.subject}`, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 36, S: this, A: ["deck", "`Deck not found: ${input.subject}`"] });
47
39
  const first = deck.solo ? deck.solo : deck.active[0];
48
40
  if (first) {
49
41
  yield* Operation.schedule(LayoutOperation.ScrollIntoView, {
@@ -65,4 +57,4 @@ var switch_workspace_default = handler;
65
57
  export {
66
58
  switch_workspace_default as default
67
59
  };
68
- //# sourceMappingURL=switch-workspace-ICJJWNFT.mjs.map
60
+ //# sourceMappingURL=switch-workspace-DSAAXZSI.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/operations/switch-workspace.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, isPinnedWorkspace, LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\nimport { invariant } from '@dxos/invariant';\nimport { Graph, Node } from '@dxos/plugin-graph';\n\nimport { DeckCapabilities, defaultDeck } from '../types';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.SwitchWorkspace> = LayoutOperation.SwitchWorkspace.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n const { graph } = yield* Capability.get(AppCapabilities.AppGraph);\n\n {\n const state = yield* Capabilities.getAtomValue(DeckCapabilities.State);\n // TODO(wittjosiah): This is a hack to prevent the previous deck from being set for pinned items.\n // Ideally this should be worked into the data model in a generic way.\n const shouldUpdatePrevious = !isPinnedWorkspace(state.activeDeck);\n\n yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state) => {\n const newDecks = state.decks[input.subject]\n ? state.decks\n : { ...state.decks, [input.subject]: { ...defaultDeck } };\n return {\n ...state,\n previousDeck: shouldUpdatePrevious ? state.activeDeck : state.previousDeck,\n activeDeck: input.subject,\n decks: newDecks,\n };\n });\n }\n\n {\n const state = yield* Capabilities.getAtomValue(DeckCapabilities.State);\n const deck = state.decks[input.subject];\n invariant(deck, `Deck not found: ${input.subject}`);\n\n const first = deck.solo ? deck.solo : deck.active[0];\n if (first) {\n yield* Operation.schedule(LayoutOperation.ScrollIntoView, { subject: first });\n } else {\n const [item] = Graph.getConnections(graph, input.subject, 'child').filter(\n (node) => !Node.isActionLike(node) && !node.properties.disposition,\n );\n if (item) {\n yield* Operation.schedule(LayoutOperation.Open, { subject: [item.id] });\n }\n }\n }\n }),\n ),\n);\n\nexport default handler;\n"],
5
+ "mappings": ";;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,iBAAiBC,mBAAmBC,uBAAuB;AACpE,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAC1B,SAASC,OAAOC,YAAY;AAI5B,IAAA,eAA+EC;IAKzE,UAAA,gBAAA,gBAAA,KAAA,UAAA,YAAA,kBAAA,WAAA,OAAA;QACE,EAAA,MAAMC,IAAQ,OAAOC,WAAAA,IAAaC,gBAAaC,QAAAA;;AAE/C,UAAA,QAAA,OAAA,aAAA,aAAA,iBAAA,KAAA;UAIE,uBAAuBC,CAAAA,kBAAoB,MACvCJ,UACA;wBAAWI,gBAAK,iBAAA,OAAA,CAAAJ,WAAA;YAAGK,WAAMC,OAAU,MAAA,MAAA,OAAA,IAAAN,OAAA,QAAA;kBAAKO;QAAY,CAAA,MAAA,OAAA,GAAA;UAAE,GAAA;QAC1D;;aAEEC;QACAC,GAAAA;QACAL,cAAOM,uBAAAA,OAAAA,aAAAA,OAAAA;QACT,YAAA,MAAA;QACF,OAAA;MACF;IAEA,CAAA;;;AAGEC,UAAAA,QAAUC,OAAO,aAAgB,aAAQN,iBAAS,KAAA;AAElD,UAAMO,OAAAA,MAAaC,MAAI,MAAQA,OAAOF;AACtC,cAAIC,MAAO,mBAAA,MAAA,OAAA,IAAA,EAAA,YAAA,YAAA,GAAA,cAAA,GAAA,IAAA,GAAA,MAAA,GAAA,CAAA,QAAA,oCAAA,EAAA,CAAA;UACT,QAAOE,KAAAA,OAAUC,KAASjB,OAAAA,KAAAA,OAAgBkB,CAAAA;eAAkBX;AAAe,aAAA,UAAA,SAAA,gBAAA,gBAAA;QACtE,SAAA;MACL,CAAA;WAGA;YACE,CAAA,IAAOS,IAAAA,MAAUC,eAASjB,OAAAA,MAAgBmB,SAAM,OAAA,EAAA,OAAA,CAAA,SAAA,CAAA,KAAA,aAAA,IAAA,KAAA,CAAA,KAAA,WAAA,WAAA;gBAAEZ;yBAAiB,SAAA,gBAAA,MAAA;mBAAC;YAAC,KAAA;UACvE;QACF,CAAA;MACF;IACF;EAIJ;;;",
6
+ "names": ["Effect", "Capabilities", "Capability", "AppCapabilities", "isPinnedWorkspace", "LayoutOperation", "Operation", "invariant", "Graph", "Node", "LayoutOperation", "state", "Capabilities", "getAtomValue", "DeckCapabilities", "decks", "input", "subject", "defaultDeck", "previousDeck", "activeDeck", "newDecks", "invariant", "deck", "first", "solo", "Operation", "schedule", "ScrollIntoView", "Open"]
7
+ }
@@ -0,0 +1,57 @@
1
+ import "./chunk-J5LGTIGS.mjs";
2
+
3
+ // src/translations.ts
4
+ import { meta } from "#meta";
5
+ var translations = [
6
+ {
7
+ "en-US": {
8
+ [meta.id]: {
9
+ "plugin.name": "Deck",
10
+ "settings.title": "Deck settings",
11
+ "main-header.label": "Main header",
12
+ "open-navigation-sidebar.label": "Open sidebar",
13
+ "collapse-navigation-sidebar.label": "Close sidebar",
14
+ "open-complementary-sidebar.label": "Open context sidebar",
15
+ "close-complementary-sidebar.label": "Close context sidebar",
16
+ "sidebar.title": "Navigation sidebar",
17
+ "complementary-sidebar.title": "Context sidebar",
18
+ "plugin-error.message": "Content failed to render.",
19
+ "content-fallback.message": "Unsupported",
20
+ "content-fallback.description": "No plugin had a response for the address you navigated\xA0to. Double-check the URL, and ensure you\u2019ve enabled a plugin that supports the\xA0object.",
21
+ "toggle-fullscreen.label": "Toggle fullscreen",
22
+ "undo-available.label": "Click to undo previous action.",
23
+ "undo-action.label": "Undo",
24
+ "undo-action.alt": "Undo previous action",
25
+ "undo-close.label": "Dismiss",
26
+ "error-fallback.message": "Unable to open this object",
27
+ "plank-heading-fallback.label": "Untitled",
28
+ "actions-menu.label": "Options",
29
+ "settings.deck.label": "Disable deck",
30
+ "pending.heading": "Loading\u2026",
31
+ "insert-plank.label": "Open",
32
+ "resize.label": "Drag to resize",
33
+ "pin-start.label": "Pin to the left sidebar",
34
+ "pin-end.label": "Pin to the right sidebar",
35
+ "increment-start.label": "Move to the left",
36
+ "increment-end.label": "Move to the right",
37
+ "show-deck-plank.label": "Return to deck",
38
+ "show-solo-plank.label": "Maximize",
39
+ "exit-fullscreen.label": "Exit fullscreen",
40
+ "show-fullscreen-plank.label": "Fullscreen",
41
+ "close.label": "Close",
42
+ "minify.label": "Minify",
43
+ "open-companion.label": "Open companion",
44
+ "close-companion.label": "Close companion",
45
+ "close-current.label": "Close current plank",
46
+ "close-others.label": "Close other planks",
47
+ "close-all.label": "Close all planks",
48
+ "close-navigation-sidebar.button": "Close",
49
+ "companion-plank-heading-fallback.label": "Related"
50
+ }
51
+ }
52
+ }
53
+ ];
54
+ export {
55
+ translations
56
+ };
57
+ //# sourceMappingURL=translations.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/translations.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n {\n 'en-US': {\n [meta.id]: {\n 'plugin.name': 'Deck',\n 'settings.title': 'Deck settings',\n 'main-header.label': 'Main header',\n 'open-navigation-sidebar.label': 'Open sidebar',\n 'collapse-navigation-sidebar.label': 'Close sidebar',\n 'open-complementary-sidebar.label': 'Open context sidebar',\n 'close-complementary-sidebar.label': 'Close context sidebar',\n 'sidebar.title': 'Navigation sidebar',\n 'complementary-sidebar.title': 'Context sidebar',\n 'plugin-error.message': 'Content failed to render.',\n 'content-fallback.message': 'Unsupported',\n 'content-fallback.description':\n 'No plugin had a response for the address you navigated to. Double-check the URL, and ensure you’ve enabled a plugin that supports the object.',\n 'toggle-fullscreen.label': 'Toggle fullscreen',\n 'undo-available.label': 'Click to undo previous action.',\n 'undo-action.label': 'Undo',\n 'undo-action.alt': 'Undo previous action',\n 'undo-close.label': 'Dismiss',\n 'error-fallback.message': 'Unable to open this object',\n 'plank-heading-fallback.label': 'Untitled',\n 'actions-menu.label': 'Options',\n 'settings.deck.label': 'Disable deck',\n 'pending.heading': 'Loading…',\n 'insert-plank.label': 'Open',\n 'resize.label': 'Drag to resize',\n 'pin-start.label': 'Pin to the left sidebar',\n 'pin-end.label': 'Pin to the right sidebar',\n 'increment-start.label': 'Move to the left',\n 'increment-end.label': 'Move to the right',\n 'show-deck-plank.label': 'Return to deck',\n 'show-solo-plank.label': 'Maximize',\n 'exit-fullscreen.label': 'Exit fullscreen',\n 'show-fullscreen-plank.label': 'Fullscreen',\n 'close.label': 'Close',\n 'minify.label': 'Minify',\n 'open-companion.label': 'Open companion',\n 'close-companion.label': 'Close companion',\n 'close-current.label': 'Close current plank',\n 'close-others.label': 'Close other planks',\n 'close-all.label': 'Close all planks',\n 'close-navigation-sidebar.button': 'Close',\n 'companion-plank-heading-fallback.label': 'Related',\n },\n },\n },\n] as const satisfies Resource[];\n"],
5
+ "mappings": ";;;AAMA,SAASA,YAAY;AAEd,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACD,KAAKE,EAAE,GAAG;QACT,eAAe;QACf,kBAAkB;QAClB,qBAAqB;QACrB,iCAAiC;QACjC,qCAAqC;QACrC,oCAAoC;QACpC,qCAAqC;QACrC,iBAAiB;QACjB,+BAA+B;QAC/B,wBAAwB;QACxB,4BAA4B;QAC5B,gCACE;QACF,2BAA2B;QAC3B,wBAAwB;QACxB,qBAAqB;QACrB,mBAAmB;QACnB,oBAAoB;QACpB,0BAA0B;QAC1B,gCAAgC;QAChC,sBAAsB;QACtB,uBAAuB;QACvB,mBAAmB;QACnB,sBAAsB;QACtB,gBAAgB;QAChB,mBAAmB;QACnB,iBAAiB;QACjB,yBAAyB;QACzB,uBAAuB;QACvB,yBAAyB;QACzB,yBAAyB;QACzB,yBAAyB;QACzB,+BAA+B;QAC/B,eAAe;QACf,gBAAgB;QAChB,wBAAwB;QACxB,yBAAyB;QACzB,uBAAuB;QACvB,sBAAsB;QACtB,mBAAmB;QACnB,mCAAmC;QACnC,0CAA0C;MAC5C;IACF;EACF;;",
6
+ "names": ["meta", "translations", "id"]
7
+ }
@@ -12,7 +12,7 @@ import {
12
12
  defaultDeck,
13
13
  getMode,
14
14
  isLayoutMode
15
- } from "../chunk-5LM6A3EC.mjs";
15
+ } from "../chunk-MARE7ZFK.mjs";
16
16
  import "../chunk-J5LGTIGS.mjs";
17
17
  export {
18
18
  DECK_COMPANION_TYPE,
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  updateActiveDeck
3
- } from "./chunk-KUTDCWZF.mjs";
3
+ } from "./chunk-GLB73Q6U.mjs";
4
4
  import {
5
5
  DeckCapabilities
6
- } from "./chunk-5LM6A3EC.mjs";
6
+ } from "./chunk-MARE7ZFK.mjs";
7
7
  import "./chunk-J5LGTIGS.mjs";
8
8
 
9
9
  // src/operations/update-companion.ts
10
10
  import * as Effect from "effect/Effect";
11
11
  import { Capabilities } from "@dxos/app-framework";
12
12
  import { LayoutOperation } from "@dxos/app-toolkit";
13
- import { Operation } from "@dxos/operation";
13
+ import { Operation } from "@dxos/compute";
14
14
  import { getLinkedVariant } from "@dxos/react-ui-attention";
15
15
  var handler = LayoutOperation.UpdateCompanion.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
16
16
  if (input.subject === null) {
@@ -29,4 +29,4 @@ var update_companion_default = handler;
29
29
  export {
30
30
  update_companion_default as default
31
31
  };
32
- //# sourceMappingURL=update-companion-VPCBH3YT.mjs.map
32
+ //# sourceMappingURL=update-companion-IDBBBHT3.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/operations/update-companion.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/operation';\nimport { getLinkedVariant } from '@dxos/react-ui-attention';\n\nimport { DeckCapabilities } from '../types';\nimport { updateActiveDeck } from './helpers';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.UpdateCompanion> = LayoutOperation.UpdateCompanion.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n if (input.subject === null) {\n yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state) =>\n updateActiveDeck(state, { companionOpen: false }),\n );\n } else {\n const variant = getLinkedVariant(input.subject);\n yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state) =>\n updateActiveDeck(state, {\n companionOpen: true,\n companionVariant: variant,\n }),\n );\n }\n }),\n ),\n);\n\nexport default handler;\n"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\nimport { getLinkedVariant } from '@dxos/react-ui-attention';\n\nimport { DeckCapabilities } from '../types';\nimport { updateActiveDeck } from './helpers';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.UpdateCompanion> = LayoutOperation.UpdateCompanion.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n if (input.subject === null) {\n yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state) =>\n updateActiveDeck(state, { companionOpen: false }),\n );\n } else {\n const variant = getLinkedVariant(input.subject);\n yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state) =>\n updateActiveDeck(state, {\n companionOpen: true,\n companionVariant: variant,\n }),\n );\n }\n }),\n ),\n);\n\nexport default handler;\n"],
5
5
  "mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,oBAAoB;AAC7B,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAC1B,SAASC,wBAAwB;AAKjC,IAAMC,UAAyEC,gBAAgBC,gBAAgBC,KAC7GC,UAAUC,YACDC,kBAAW,WAAWC,OAAK;AAChC,MAAIA,MAAMC,YAAY,MAAM;AAC1B,WAAOC,aAAaC,gBAAgBC,iBAAiBC,OAAO,CAACC,UAC3DC,iBAAiBD,OAAO;MAAEE,eAAe;IAAM,CAAA,CAAA;EAEnD,OAAO;AACL,UAAMC,UAAUC,iBAAiBV,MAAMC,OAAO;AAC9C,WAAOC,aAAaC,gBAAgBC,iBAAiBC,OAAO,CAACC,UAC3DC,iBAAiBD,OAAO;MACtBE,eAAe;MACfG,kBAAkBF;IACpB,CAAA,CAAA;EAEJ;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,2BAAehB;",
6
6
  "names": ["Effect", "Capabilities", "LayoutOperation", "Operation", "getLinkedVariant", "handler", "LayoutOperation", "UpdateCompanion", "pipe", "Operation", "withHandler", "fnUntraced", "input", "subject", "Capabilities", "updateAtomValue", "DeckCapabilities", "State", "state", "updateActiveDeck", "companionOpen", "variant", "getLinkedVariant", "companionVariant"]
7
7
  }
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  DeckCapabilities
3
- } from "./chunk-5LM6A3EC.mjs";
3
+ } from "./chunk-MARE7ZFK.mjs";
4
4
  import "./chunk-J5LGTIGS.mjs";
5
5
 
6
6
  // src/operations/update-complementary.ts
7
7
  import * as Effect from "effect/Effect";
8
8
  import { Capabilities } from "@dxos/app-framework";
9
9
  import { LayoutOperation } from "@dxos/app-toolkit";
10
- import { Operation } from "@dxos/operation";
10
+ import { Operation } from "@dxos/compute";
11
11
  var handler = LayoutOperation.UpdateComplementary.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
12
12
  const state = yield* Capabilities.getAtomValue(DeckCapabilities.State);
13
13
  const panelChanged = state.complementarySidebarPanel !== input.subject;
@@ -25,4 +25,4 @@ var update_complementary_default = handler;
25
25
  export {
26
26
  update_complementary_default as default
27
27
  };
28
- //# sourceMappingURL=update-complementary-74DEQY6T.mjs.map
28
+ //# sourceMappingURL=update-complementary-55PNO5MD.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/operations/update-complementary.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/operation';\n\nimport { DeckCapabilities } from '../types';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.UpdateComplementary> =\n LayoutOperation.UpdateComplementary.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n const state = yield* Capabilities.getAtomValue(DeckCapabilities.State);\n const panelChanged = state.complementarySidebarPanel !== input.subject;\n const next = input.subject ? 'expanded' : (input.state ?? state.complementarySidebarState);\n const stateChanged = next !== state.complementarySidebarState;\n\n if (panelChanged || stateChanged) {\n yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state) => ({\n ...state,\n complementarySidebarPanel: panelChanged ? input.subject : state.complementarySidebarPanel,\n complementarySidebarState: stateChanged ? next : state.complementarySidebarState,\n }));\n }\n }),\n ),\n );\n\nexport default handler;\n"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\n\nimport { DeckCapabilities } from '../types';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.UpdateComplementary> =\n LayoutOperation.UpdateComplementary.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n const state = yield* Capabilities.getAtomValue(DeckCapabilities.State);\n const panelChanged = state.complementarySidebarPanel !== input.subject;\n const next = input.subject ? 'expanded' : (input.state ?? state.complementarySidebarState);\n const stateChanged = next !== state.complementarySidebarState;\n\n if (panelChanged || stateChanged) {\n yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state) => ({\n ...state,\n complementarySidebarPanel: panelChanged ? input.subject : state.complementarySidebarPanel,\n complementarySidebarState: stateChanged ? next : state.complementarySidebarState,\n }));\n }\n }),\n ),\n );\n\nexport default handler;\n"],
5
5
  "mappings": ";;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,oBAAoB;AAC7B,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAI1B,IAAMC,UACJC,gBAAgBC,oBAAoBC,KAClCC,UAAUC,YACDC,kBAAW,WAAWC,OAAK;AAChC,QAAMC,QAAQ,OAAOC,aAAaC,aAAaC,iBAAiBC,KAAK;AACrE,QAAMC,eAAeL,MAAMM,8BAA8BP,MAAMQ;AAC/D,QAAMC,OAAOT,MAAMQ,UAAU,aAAcR,MAAMC,SAASA,MAAMS;AAChE,QAAMC,eAAeF,SAASR,MAAMS;AAEpC,MAAIJ,gBAAgBK,cAAc;AAChC,WAAOT,aAAaU,gBAAgBR,iBAAiBC,OAAO,CAACJ,YAAW;MACtE,GAAGA;MACHM,2BAA2BD,eAAeN,MAAMQ,UAAUP,OAAMM;MAChEG,2BAA2BC,eAAeF,OAAOR,OAAMS;IACzD,EAAA;EACF;AACF,CAAA,CAAA,CAAA;AAIN,IAAA,+BAAejB;",
6
6
  "names": ["Effect", "Capabilities", "LayoutOperation", "Operation", "handler", "LayoutOperation", "UpdateComplementary", "pipe", "Operation", "withHandler", "fnUntraced", "input", "state", "Capabilities", "getAtomValue", "DeckCapabilities", "State", "panelChanged", "complementarySidebarPanel", "subject", "next", "complementarySidebarState", "stateChanged", "updateAtomValue"]
7
7
  }
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  DeckCapabilities
3
- } from "./chunk-5LM6A3EC.mjs";
3
+ } from "./chunk-MARE7ZFK.mjs";
4
4
  import "./chunk-J5LGTIGS.mjs";
5
5
 
6
6
  // src/operations/update-dialog.ts
7
7
  import * as Effect from "effect/Effect";
8
8
  import { Capabilities } from "@dxos/app-framework";
9
9
  import { LayoutOperation } from "@dxos/app-toolkit";
10
- import { Operation } from "@dxos/operation";
10
+ import { Operation } from "@dxos/compute";
11
11
  var handler = LayoutOperation.UpdateDialog.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
12
12
  yield* Capabilities.updateAtomValue(DeckCapabilities.EphemeralState, (state) => ({
13
13
  ...state,
@@ -26,4 +26,4 @@ var update_dialog_default = handler;
26
26
  export {
27
27
  update_dialog_default as default
28
28
  };
29
- //# sourceMappingURL=update-dialog-6TDUYI5R.mjs.map
29
+ //# sourceMappingURL=update-dialog-VNARIANC.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/operations/update-dialog.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/operation';\n\nimport { DeckCapabilities } from '../types';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.UpdateDialog> = LayoutOperation.UpdateDialog.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n yield* Capabilities.updateAtomValue(DeckCapabilities.EphemeralState, (state) => ({\n ...state,\n dialogOpen: input.state ?? Boolean(input.subject),\n dialogType: input.type ?? 'default',\n dialogBlockAlign: input.blockAlign ?? 'center',\n dialogOverlayClasses: input.overlayClasses,\n dialogOverlayStyle: input.overlayStyle,\n dialogContent: input.subject\n ? {\n component: input.subject,\n props: input.props,\n }\n : null,\n }));\n }),\n ),\n);\n\nexport default handler;\n"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\n\nimport { DeckCapabilities } from '../types';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.UpdateDialog> = LayoutOperation.UpdateDialog.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n yield* Capabilities.updateAtomValue(DeckCapabilities.EphemeralState, (state) => ({\n ...state,\n dialogOpen: input.state ?? Boolean(input.subject),\n dialogType: input.type ?? 'default',\n dialogBlockAlign: input.blockAlign ?? 'center',\n dialogOverlayClasses: input.overlayClasses,\n dialogOverlayStyle: input.overlayStyle,\n dialogContent: input.subject\n ? {\n component: input.subject,\n props: input.props,\n }\n : null,\n }));\n }),\n ),\n);\n\nexport default handler;\n"],
5
5
  "mappings": ";;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,oBAAoB;AAC7B,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAI1B,IAAMC,UAAsEC,gBAAgBC,aAAaC,KACvGC,UAAUC,YACDC,kBAAW,WAAWC,OAAK;AAChC,SAAOC,aAAaC,gBAAgBC,iBAAiBC,gBAAgB,CAACC,WAAW;IAC/E,GAAGA;IACHC,YAAYN,MAAMK,SAASE,QAAQP,MAAMQ,OAAO;IAChDC,YAAYT,MAAMU,QAAQ;IAC1BC,kBAAkBX,MAAMY,cAAc;IACtCC,sBAAsBb,MAAMc;IAC5BC,oBAAoBf,MAAMgB;IAC1BC,eAAejB,MAAMQ,UACjB;MACEU,WAAWlB,MAAMQ;MACjBW,OAAOnB,MAAMmB;IACf,IACA;EACN,EAAA;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,wBAAe1B;",
6
6
  "names": ["Effect", "Capabilities", "LayoutOperation", "Operation", "handler", "LayoutOperation", "UpdateDialog", "pipe", "Operation", "withHandler", "fnUntraced", "input", "Capabilities", "updateAtomValue", "DeckCapabilities", "EphemeralState", "state", "dialogOpen", "Boolean", "subject", "dialogType", "type", "dialogBlockAlign", "blockAlign", "dialogOverlayClasses", "overlayClasses", "dialogOverlayStyle", "overlayStyle", "dialogContent", "component", "props"]
7
7
  }
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  UpdatePlankSize
3
- } from "./chunk-FRVCL5NO.mjs";
3
+ } from "./chunk-XM263CQU.mjs";
4
4
  import {
5
5
  updateActiveDeck
6
- } from "./chunk-KUTDCWZF.mjs";
6
+ } from "./chunk-GLB73Q6U.mjs";
7
7
  import {
8
8
  DeckCapabilities
9
- } from "./chunk-5LM6A3EC.mjs";
9
+ } from "./chunk-MARE7ZFK.mjs";
10
10
  import "./chunk-J5LGTIGS.mjs";
11
11
 
12
12
  // src/operations/update-plank-size.ts
13
13
  import * as Effect from "effect/Effect";
14
14
  import { Capabilities } from "@dxos/app-framework";
15
- import { Operation } from "@dxos/operation";
15
+ import { Operation } from "@dxos/compute";
16
16
  var handler = UpdatePlankSize.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
17
17
  yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state) => updateActiveDeck(state, {
18
18
  plankSizing: {
@@ -25,4 +25,4 @@ var update_plank_size_default = handler;
25
25
  export {
26
26
  update_plank_size_default as default
27
27
  };
28
- //# sourceMappingURL=update-plank-size-5VHZOTHE.mjs.map
28
+ //# sourceMappingURL=update-plank-size-H63PRRXS.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/operations/update-plank-size.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities } from '@dxos/app-framework';\nimport { Operation } from '@dxos/operation';\n\nimport { DeckCapabilities } from '../types';\nimport { UpdatePlankSize } from './definitions';\nimport { updateActiveDeck } from './helpers';\n\nconst handler: Operation.WithHandler<typeof UpdatePlankSize> = UpdatePlankSize.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state) =>\n updateActiveDeck(state, {\n plankSizing: {\n ...state.decks[state.activeDeck]?.plankSizing,\n [input.id]: input.size,\n },\n }),\n );\n }),\n ),\n);\n\nexport default handler;\n"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities } from '@dxos/app-framework';\nimport { Operation } from '@dxos/compute';\n\nimport { DeckCapabilities } from '../types';\nimport { UpdatePlankSize } from './definitions';\nimport { updateActiveDeck } from './helpers';\n\nconst handler: Operation.WithHandler<typeof UpdatePlankSize> = UpdatePlankSize.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state) =>\n updateActiveDeck(state, {\n plankSizing: {\n ...state.decks[state.activeDeck]?.plankSizing,\n [input.id]: input.size,\n },\n }),\n );\n }),\n ),\n);\n\nexport default handler;\n"],
5
5
  "mappings": ";;;;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,oBAAoB;AAC7B,SAASC,iBAAiB;AAM1B,IAAMC,UAAyDC,gBAAgBC,KAC7EC,UAAUC,YACDC,kBAAW,WAAWC,OAAK;AAChC,SAAOC,aAAaC,gBAAgBC,iBAAiBC,OAAO,CAACC,UAC3DC,iBAAiBD,OAAO;IACtBE,aAAa;MACX,GAAGF,MAAMG,MAAMH,MAAMI,UAAU,GAAGF;MAClC,CAACP,MAAMU,EAAE,GAAGV,MAAMW;IACpB;EACF,CAAA,CAAA;AAEJ,CAAA,CAAA,CAAA;AAIJ,IAAA,4BAAejB;",
6
6
  "names": ["Effect", "Capabilities", "Operation", "handler", "UpdatePlankSize", "pipe", "Operation", "withHandler", "fnUntraced", "input", "Capabilities", "updateAtomValue", "DeckCapabilities", "State", "state", "updateActiveDeck", "plankSizing", "decks", "activeDeck", "id", "size"]
7
7
  }
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  DeckCapabilities
3
- } from "./chunk-5LM6A3EC.mjs";
3
+ } from "./chunk-MARE7ZFK.mjs";
4
4
  import "./chunk-J5LGTIGS.mjs";
5
5
 
6
6
  // src/operations/update-popover.ts
7
7
  import * as Effect from "effect/Effect";
8
8
  import { Capabilities } from "@dxos/app-framework";
9
9
  import { LayoutOperation } from "@dxos/app-toolkit";
10
- import { Operation } from "@dxos/operation";
10
+ import { Operation } from "@dxos/compute";
11
11
  var handler = LayoutOperation.UpdatePopover.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
12
12
  yield* Capabilities.updateAtomValue(DeckCapabilities.EphemeralState, (state) => ({
13
13
  ...state,
@@ -30,4 +30,4 @@ var update_popover_default = handler;
30
30
  export {
31
31
  update_popover_default as default
32
32
  };
33
- //# sourceMappingURL=update-popover-W7E2Z5T6.mjs.map
33
+ //# sourceMappingURL=update-popover-ODTPZ3JL.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/operations/update-popover.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/operation';\n\nimport { DeckCapabilities } from '../types';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.UpdatePopover> = LayoutOperation.UpdatePopover.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n yield* Capabilities.updateAtomValue(DeckCapabilities.EphemeralState, (state) => ({\n ...state,\n popoverOpen: input.state ?? Boolean(input.subject),\n popoverKind: input.kind ?? 'base',\n popoverTitle: input.kind === 'card' ? input.title : undefined,\n popoverContentRef: input.subjectRef,\n popoverContent:\n typeof input.subject === 'string'\n ? { component: input.subject, props: input.props }\n : input.subject\n ? { subject: input.subject }\n : null,\n popoverSide: input.side,\n popoverAnchor: input.variant === 'virtual' ? input.anchor : state.popoverAnchor,\n popoverAnchorId: input.variant !== 'virtual' ? input.anchorId : state.popoverAnchorId,\n }));\n }),\n ),\n);\n\nexport default handler;\n"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\n\nimport { DeckCapabilities } from '../types';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.UpdatePopover> = LayoutOperation.UpdatePopover.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n yield* Capabilities.updateAtomValue(DeckCapabilities.EphemeralState, (state) => ({\n ...state,\n popoverOpen: input.state ?? Boolean(input.subject),\n popoverKind: input.kind ?? 'base',\n popoverTitle: input.kind === 'card' ? input.title : undefined,\n popoverContentRef: input.subjectRef,\n popoverContent:\n typeof input.subject === 'string'\n ? { component: input.subject, props: input.props }\n : input.subject\n ? { subject: input.subject }\n : null,\n popoverSide: input.side,\n popoverAnchor: input.variant === 'virtual' ? input.anchor : state.popoverAnchor,\n popoverAnchorId: input.variant !== 'virtual' ? input.anchorId : state.popoverAnchorId,\n }));\n }),\n ),\n);\n\nexport default handler;\n"],
5
5
  "mappings": ";;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,oBAAoB;AAC7B,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAI1B,IAAMC,UAAuEC,gBAAgBC,cAAcC,KACzGC,UAAUC,YACDC,kBAAW,WAAWC,OAAK;AAChC,SAAOC,aAAaC,gBAAgBC,iBAAiBC,gBAAgB,CAACC,WAAW;IAC/E,GAAGA;IACHC,aAAaN,MAAMK,SAASE,QAAQP,MAAMQ,OAAO;IACjDC,aAAaT,MAAMU,QAAQ;IAC3BC,cAAcX,MAAMU,SAAS,SAASV,MAAMY,QAAQC;IACpDC,mBAAmBd,MAAMe;IACzBC,gBACE,OAAOhB,MAAMQ,YAAY,WACrB;MAAES,WAAWjB,MAAMQ;MAASU,OAAOlB,MAAMkB;IAAM,IAC/ClB,MAAMQ,UACJ;MAAEA,SAASR,MAAMQ;IAAQ,IACzB;IACRW,aAAanB,MAAMoB;IACnBC,eAAerB,MAAMsB,YAAY,YAAYtB,MAAMuB,SAASlB,MAAMgB;IAClEG,iBAAiBxB,MAAMsB,YAAY,YAAYtB,MAAMyB,WAAWpB,MAAMmB;EACxE,EAAA;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,yBAAe/B;",
6
6
  "names": ["Effect", "Capabilities", "LayoutOperation", "Operation", "handler", "LayoutOperation", "UpdatePopover", "pipe", "Operation", "withHandler", "fnUntraced", "input", "Capabilities", "updateAtomValue", "DeckCapabilities", "EphemeralState", "state", "popoverOpen", "Boolean", "subject", "popoverKind", "kind", "popoverTitle", "title", "undefined", "popoverContentRef", "subjectRef", "popoverContent", "component", "props", "popoverSide", "side", "popoverAnchor", "variant", "anchor", "popoverAnchorId", "anchorId"]
7
7
  }
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  DeckCapabilities
3
- } from "./chunk-5LM6A3EC.mjs";
3
+ } from "./chunk-MARE7ZFK.mjs";
4
4
  import "./chunk-J5LGTIGS.mjs";
5
5
 
6
6
  // src/operations/update-sidebar.ts
7
7
  import * as Effect from "effect/Effect";
8
8
  import { Capabilities } from "@dxos/app-framework";
9
9
  import { LayoutOperation } from "@dxos/app-toolkit";
10
- import { Operation } from "@dxos/operation";
10
+ import { Operation } from "@dxos/compute";
11
11
  var handler = LayoutOperation.UpdateSidebar.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
12
12
  const state = yield* Capabilities.getAtomValue(DeckCapabilities.State);
13
13
  const next = input.state ?? state.sidebarState;
@@ -22,4 +22,4 @@ var update_sidebar_default = handler;
22
22
  export {
23
23
  update_sidebar_default as default
24
24
  };
25
- //# sourceMappingURL=update-sidebar-H3A6ZFRU.mjs.map
25
+ //# sourceMappingURL=update-sidebar-JDVQ36WK.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/operations/update-sidebar.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/operation';\n\nimport { DeckCapabilities } from '../types';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.UpdateSidebar> = LayoutOperation.UpdateSidebar.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n const state = yield* Capabilities.getAtomValue(DeckCapabilities.State);\n const next = input.state ?? state.sidebarState;\n if (next !== state.sidebarState) {\n yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state) => ({\n ...state,\n sidebarState: next,\n }));\n }\n }),\n ),\n);\n\nexport default handler;\n"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\n\nimport { DeckCapabilities } from '../types';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.UpdateSidebar> = LayoutOperation.UpdateSidebar.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n const state = yield* Capabilities.getAtomValue(DeckCapabilities.State);\n const next = input.state ?? state.sidebarState;\n if (next !== state.sidebarState) {\n yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state) => ({\n ...state,\n sidebarState: next,\n }));\n }\n }),\n ),\n);\n\nexport default handler;\n"],
5
5
  "mappings": ";;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,oBAAoB;AAC7B,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAI1B,IAAMC,UAAuEC,gBAAgBC,cAAcC,KACzGC,UAAUC,YACDC,kBAAW,WAAWC,OAAK;AAChC,QAAMC,QAAQ,OAAOC,aAAaC,aAAaC,iBAAiBC,KAAK;AACrE,QAAMC,OAAON,MAAMC,SAASA,MAAMM;AAClC,MAAID,SAASL,MAAMM,cAAc;AAC/B,WAAOL,aAAaM,gBAAgBJ,iBAAiBC,OAAO,CAACJ,YAAW;MACtE,GAAGA;MACHM,cAAcD;IAChB,EAAA;EACF;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,yBAAeb;",
6
6
  "names": ["Effect", "Capabilities", "LayoutOperation", "Operation", "handler", "LayoutOperation", "UpdateSidebar", "pipe", "Operation", "withHandler", "fnUntraced", "input", "state", "Capabilities", "getAtomValue", "DeckCapabilities", "State", "next", "sidebarState", "updateAtomValue"]
7
7
  }
@@ -1,14 +1,14 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
3
  DeckCapabilities
4
- } from "./chunk-B7WZXRW4.mjs";
4
+ } from "./chunk-FO7YDJZ3.mjs";
5
5
  import "./chunk-HSLMI22Q.mjs";
6
6
 
7
7
  // src/operations/add-toast.ts
8
8
  import * as Effect from "effect/Effect";
9
9
  import { Capabilities } from "@dxos/app-framework";
10
10
  import { LayoutOperation } from "@dxos/app-toolkit";
11
- import { Operation } from "@dxos/operation";
11
+ import { Operation } from "@dxos/compute";
12
12
  var handler = LayoutOperation.AddToast.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
13
13
  yield* Capabilities.updateAtomValue(DeckCapabilities.EphemeralState, (state) => ({
14
14
  ...state,
@@ -22,4 +22,4 @@ var add_toast_default = handler;
22
22
  export {
23
23
  add_toast_default as default
24
24
  };
25
- //# sourceMappingURL=add-toast-AZM7NFNM.mjs.map
25
+ //# sourceMappingURL=add-toast-JUTN4GTI.mjs.map