@dxos/plugin-deck 0.8.4-main.422d1c7879 → 0.8.4-main.4f23b4e393

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 (349) hide show
  1. package/dist/lib/neutral/DeckLayout-6SICSSUF.mjs +278 -0
  2. package/dist/lib/neutral/DeckLayout-6SICSSUF.mjs.map +7 -0
  3. package/dist/lib/neutral/DeckPlugin.mjs +70 -0
  4. package/dist/lib/neutral/DeckPlugin.mjs.map +7 -0
  5. package/dist/lib/neutral/DeckPlugin.node.mjs +18 -0
  6. package/dist/lib/neutral/DeckPlugin.node.mjs.map +7 -0
  7. package/dist/lib/neutral/DeckSettings-W5I57OXM.mjs +27 -0
  8. package/dist/lib/neutral/DeckSettings-W5I57OXM.mjs.map +7 -0
  9. package/dist/lib/{browser/add-toast-EUN62IUE.mjs → neutral/add-toast-2OMTFZ2L.mjs} +5 -5
  10. package/dist/lib/{browser/add-toast-EUN62IUE.mjs.map → neutral/add-toast-2OMTFZ2L.mjs.map} +2 -2
  11. package/dist/lib/{browser/adjust-XWB6ZZ6U.mjs → neutral/adjust-RXTF3IT3.mjs} +15 -17
  12. package/dist/lib/neutral/adjust-RXTF3IT3.mjs.map +7 -0
  13. package/dist/lib/neutral/app-graph-builder-GZYYAN5B.mjs +129 -0
  14. package/dist/lib/neutral/app-graph-builder-GZYYAN5B.mjs.map +7 -0
  15. package/dist/lib/neutral/capabilities/index.mjs +23 -0
  16. package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
  17. package/dist/lib/neutral/check-app-scheme-A7FZVNZO.mjs +10 -0
  18. package/dist/lib/neutral/chunk-4MYX2NT3.mjs +1335 -0
  19. package/dist/lib/neutral/chunk-4MYX2NT3.mjs.map +7 -0
  20. package/dist/lib/neutral/chunk-64ODQD6S.mjs +282 -0
  21. package/dist/lib/neutral/chunk-64ODQD6S.mjs.map +7 -0
  22. package/dist/lib/neutral/chunk-6MOYMDKQ.mjs +8 -0
  23. package/dist/lib/neutral/chunk-6MOYMDKQ.mjs.map +7 -0
  24. package/dist/lib/neutral/chunk-GBIGQKYW.mjs +112 -0
  25. package/dist/lib/neutral/chunk-GBIGQKYW.mjs.map +7 -0
  26. package/dist/lib/{browser/chunk-KUTDCWZF.mjs → neutral/chunk-GLB73Q6U.mjs} +2 -10
  27. package/dist/lib/{browser/chunk-KUTDCWZF.mjs.map → neutral/chunk-GLB73Q6U.mjs.map} +2 -2
  28. package/dist/lib/neutral/chunk-JMYWDX4I.mjs +19 -0
  29. package/dist/lib/neutral/chunk-JMYWDX4I.mjs.map +7 -0
  30. package/dist/lib/neutral/chunk-VHETZ22W.mjs +101 -0
  31. package/dist/lib/neutral/chunk-VHETZ22W.mjs.map +7 -0
  32. package/dist/lib/{browser/chunk-DF2VZ6W3.mjs → neutral/chunk-ZYYOSX5I.mjs} +1 -1
  33. package/dist/lib/{browser/chunk-DF2VZ6W3.mjs.map → neutral/chunk-ZYYOSX5I.mjs.map} +2 -2
  34. package/dist/lib/{browser/close-JXK73YIM.mjs → neutral/close-DG5IVQCE.mjs} +12 -12
  35. package/dist/lib/{browser/close-JXK73YIM.mjs.map → neutral/close-DG5IVQCE.mjs.map} +2 -2
  36. package/dist/lib/neutral/components/index.mjs +126 -0
  37. package/dist/lib/neutral/components/index.mjs.map +7 -0
  38. package/dist/lib/neutral/containers/index.mjs +32 -0
  39. package/dist/lib/neutral/containers/index.mjs.map +7 -0
  40. package/dist/lib/neutral/hooks/index.mjs +178 -0
  41. package/dist/lib/neutral/hooks/index.mjs.map +7 -0
  42. package/dist/lib/{node-esm/types → neutral}/index.mjs +13 -8
  43. package/dist/lib/neutral/meta.json +1 -0
  44. package/dist/lib/neutral/meta.mjs +8 -0
  45. package/dist/lib/{browser/open-K2JOEW2E.mjs → neutral/open-SGYZO7RF.mjs} +21 -24
  46. package/dist/lib/neutral/open-SGYZO7RF.mjs.map +7 -0
  47. package/dist/lib/neutral/operation-handler-266CVMTW.mjs +13 -0
  48. package/dist/lib/neutral/operation-handler-266CVMTW.mjs.map +7 -0
  49. package/dist/lib/neutral/operations/index.mjs +8 -0
  50. package/dist/lib/neutral/operations/index.mjs.map +7 -0
  51. package/dist/lib/neutral/plugin.mjs +16 -0
  52. package/dist/lib/neutral/plugin.mjs.map +7 -0
  53. package/dist/lib/neutral/react-root-WZ6KH27J.mjs +41 -0
  54. package/dist/lib/neutral/react-root-WZ6KH27J.mjs.map +7 -0
  55. package/dist/lib/neutral/react-surface-KAAZDHV3.mjs +34 -0
  56. package/dist/lib/neutral/react-surface-KAAZDHV3.mjs.map +7 -0
  57. package/dist/lib/{browser/revert-workspace-BNIR5U64.mjs → neutral/revert-workspace-V6D7W6CL.mjs} +5 -5
  58. package/dist/lib/{browser/revert-workspace-BNIR5U64.mjs.map → neutral/revert-workspace-V6D7W6CL.mjs.map} +2 -2
  59. package/dist/lib/{browser/scroll-into-view-4GSKC3GA.mjs → neutral/scroll-into-view-UM446Q2T.mjs} +5 -5
  60. package/dist/lib/{browser/scroll-into-view-4GSKC3GA.mjs.map → neutral/scroll-into-view-UM446Q2T.mjs.map} +2 -2
  61. package/dist/lib/{browser/set-XCG6NIAO.mjs → neutral/set-JFFKT32S.mjs} +11 -11
  62. package/dist/lib/{browser/set-XCG6NIAO.mjs.map → neutral/set-JFFKT32S.mjs.map} +2 -2
  63. package/dist/lib/{browser/set-layout-mode-BEVNGOY2.mjs → neutral/set-layout-mode-I4YV5V2Y.mjs} +10 -15
  64. package/dist/lib/neutral/set-layout-mode-I4YV5V2Y.mjs.map +7 -0
  65. package/dist/lib/neutral/settings-FE7AC5VS.mjs +34 -0
  66. package/dist/lib/neutral/settings-FE7AC5VS.mjs.map +7 -0
  67. package/dist/lib/{browser/show-undo-5RQNREEB.mjs → neutral/show-undo-ZCMF4J2Q.mjs} +5 -5
  68. package/dist/lib/{browser/show-undo-5RQNREEB.mjs.map → neutral/show-undo-ZCMF4J2Q.mjs.map} +2 -2
  69. package/dist/lib/neutral/state-IIDXMQUO.mjs +86 -0
  70. package/dist/lib/neutral/state-IIDXMQUO.mjs.map +7 -0
  71. package/dist/lib/{browser/switch-workspace-ICJJWNFT.mjs → neutral/switch-workspace-CVDYG5YZ.mjs} +8 -16
  72. package/dist/lib/neutral/switch-workspace-CVDYG5YZ.mjs.map +7 -0
  73. package/dist/lib/neutral/translations.mjs +57 -0
  74. package/dist/lib/neutral/translations.mjs.map +7 -0
  75. package/dist/lib/{browser → neutral}/types/index.mjs +7 -5
  76. package/dist/lib/neutral/types/index.mjs.map +7 -0
  77. package/dist/lib/{browser/update-companion-VPCBH3YT.mjs → neutral/update-companion-VPCM7FJX.mjs} +7 -7
  78. package/dist/lib/neutral/update-companion-VPCM7FJX.mjs.map +7 -0
  79. package/dist/lib/{browser/update-complementary-74DEQY6T.mjs → neutral/update-complementary-SEQ6DDWA.mjs} +6 -6
  80. package/dist/lib/neutral/update-complementary-SEQ6DDWA.mjs.map +7 -0
  81. package/dist/lib/{browser/update-dialog-6TDUYI5R.mjs → neutral/update-dialog-VDHYE4QH.mjs} +5 -5
  82. package/dist/lib/{browser/update-dialog-6TDUYI5R.mjs.map → neutral/update-dialog-VDHYE4QH.mjs.map} +2 -2
  83. package/dist/lib/neutral/update-plank-size-ZXOUZD7Y.mjs +26 -0
  84. package/dist/lib/neutral/update-plank-size-ZXOUZD7Y.mjs.map +7 -0
  85. package/dist/lib/{browser/update-popover-W7E2Z5T6.mjs → neutral/update-popover-VFP32W57.mjs} +5 -5
  86. package/dist/lib/{browser/update-popover-W7E2Z5T6.mjs.map → neutral/update-popover-VFP32W57.mjs.map} +2 -2
  87. package/dist/lib/{browser/update-sidebar-H3A6ZFRU.mjs → neutral/update-sidebar-O5HBOXYH.mjs} +6 -6
  88. package/dist/lib/{browser/update-sidebar-H3A6ZFRU.mjs.map → neutral/update-sidebar-O5HBOXYH.mjs.map} +2 -2
  89. package/dist/lib/neutral/url-handler-3QTKEM2K.mjs +184 -0
  90. package/dist/lib/neutral/url-handler-3QTKEM2K.mjs.map +7 -0
  91. package/dist/types/src/DeckPlugin.d.ts +1 -0
  92. package/dist/types/src/DeckPlugin.d.ts.map +1 -1
  93. package/dist/types/src/DeckPlugin.node.d.ts +4 -0
  94. package/dist/types/src/DeckPlugin.node.d.ts.map +1 -0
  95. package/dist/types/src/DeckPlugin.test.d.ts +2 -0
  96. package/dist/types/src/DeckPlugin.test.d.ts.map +1 -0
  97. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  98. package/dist/types/src/capabilities/check-app-scheme.d.ts +1 -1
  99. package/dist/types/src/capabilities/check-app-scheme.d.ts.map +1 -1
  100. package/dist/types/src/capabilities/index.d.ts +17 -17
  101. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  102. package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
  103. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
  104. package/dist/types/src/capabilities/react-root.d.ts.map +1 -1
  105. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  106. package/dist/types/src/capabilities/settings.d.ts.map +1 -1
  107. package/dist/types/src/capabilities/state.d.ts +16 -16
  108. package/dist/types/src/capabilities/state.d.ts.map +1 -1
  109. package/dist/types/src/capabilities/tools.d.ts.map +1 -1
  110. package/dist/types/src/capabilities/url-handler.d.ts +1 -1
  111. package/dist/types/src/capabilities/url-handler.d.ts.map +1 -1
  112. package/dist/types/src/components/DeckSettings/DeckSettings.d.ts.map +1 -1
  113. package/dist/types/src/components/DeckSettings/DeckSettings.stories.d.ts +42 -52
  114. package/dist/types/src/components/DeckSettings/DeckSettings.stories.d.ts.map +1 -1
  115. package/dist/types/src/components/Matrix/Matrix.d.ts +2 -2
  116. package/dist/types/src/components/Matrix/Matrix.d.ts.map +1 -1
  117. package/dist/types/src/components/Matrix/Matrix.stories.d.ts.map +1 -1
  118. package/dist/types/src/containers/Deck/Banner.d.ts +1 -1
  119. package/dist/types/src/containers/Deck/Banner.d.ts.map +1 -1
  120. package/dist/types/src/containers/Deck/Deck.d.ts.map +1 -1
  121. package/dist/types/src/containers/Deck/Deck.stories.d.ts +42 -52
  122. package/dist/types/src/containers/Deck/Deck.stories.d.ts.map +1 -1
  123. package/dist/types/src/containers/Deck/DeckContent.d.ts +4 -4
  124. package/dist/types/src/containers/Deck/DeckContent.d.ts.map +1 -1
  125. package/dist/types/src/containers/Deck/DeckRoot.d.ts +5 -8
  126. package/dist/types/src/containers/Deck/DeckRoot.d.ts.map +1 -1
  127. package/dist/types/src/containers/Deck/DeckViewport.d.ts +4 -7
  128. package/dist/types/src/containers/Deck/DeckViewport.d.ts.map +1 -1
  129. package/dist/types/src/containers/Deck/StatusBar.d.ts.map +1 -1
  130. package/dist/types/src/containers/DeckLayout/DeckLayout.d.ts.map +1 -1
  131. package/dist/types/src/containers/DeckLayout/DeckLayout.stories.d.ts +42 -52
  132. package/dist/types/src/containers/DeckLayout/DeckLayout.stories.d.ts.map +1 -1
  133. package/dist/types/src/containers/DeckLayout/Popover.d.ts.map +1 -1
  134. package/dist/types/src/containers/DeckLayout/Toast.d.ts +1 -1
  135. package/dist/types/src/containers/DeckLayout/Toast.d.ts.map +1 -1
  136. package/dist/types/src/containers/DeckLayout/index.d.ts.map +1 -1
  137. package/dist/types/src/containers/Plank/Plank.d.ts +1 -1
  138. package/dist/types/src/containers/Plank/Plank.d.ts.map +1 -1
  139. package/dist/types/src/containers/Plank/Plank.stories.d.ts +42 -52
  140. package/dist/types/src/containers/Plank/Plank.stories.d.ts.map +1 -1
  141. package/dist/types/src/containers/Plank/PlankContent.d.ts +1 -1
  142. package/dist/types/src/containers/Plank/PlankError.d.ts +1 -1
  143. package/dist/types/src/containers/Plank/PlankError.d.ts.map +1 -1
  144. package/dist/types/src/containers/Plank/PlankRoot.d.ts +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/index.d.ts +1 -3
  158. package/dist/types/src/index.d.ts.map +1 -1
  159. package/dist/types/src/layout.d.ts.map +1 -1
  160. package/dist/types/src/meta.d.ts.map +1 -1
  161. package/dist/types/src/operations/add-toast.d.ts +1 -1
  162. package/dist/types/src/operations/add-toast.d.ts.map +1 -1
  163. package/dist/types/src/operations/adjust.d.ts +3 -3
  164. package/dist/types/src/operations/adjust.d.ts.map +1 -1
  165. package/dist/types/src/operations/close.d.ts +1 -1
  166. package/dist/types/src/operations/close.d.ts.map +1 -1
  167. package/dist/types/src/operations/helpers.d.ts.map +1 -1
  168. package/dist/types/src/operations/index.d.ts +1 -2
  169. package/dist/types/src/operations/index.d.ts.map +1 -1
  170. package/dist/types/src/operations/open.d.ts +1 -1
  171. package/dist/types/src/operations/open.d.ts.map +1 -1
  172. package/dist/types/src/operations/revert-workspace.d.ts +1 -1
  173. package/dist/types/src/operations/revert-workspace.d.ts.map +1 -1
  174. package/dist/types/src/operations/scroll-into-view.d.ts +1 -1
  175. package/dist/types/src/operations/scroll-into-view.d.ts.map +1 -1
  176. package/dist/types/src/operations/set-layout-mode.d.ts +1 -1
  177. package/dist/types/src/operations/set-layout-mode.d.ts.map +1 -1
  178. package/dist/types/src/operations/set.d.ts +1 -1
  179. package/dist/types/src/operations/set.d.ts.map +1 -1
  180. package/dist/types/src/operations/show-undo.d.ts +1 -1
  181. package/dist/types/src/operations/show-undo.d.ts.map +1 -1
  182. package/dist/types/src/operations/switch-workspace.d.ts +1 -1
  183. package/dist/types/src/operations/switch-workspace.d.ts.map +1 -1
  184. package/dist/types/src/operations/update-companion.d.ts +1 -1
  185. package/dist/types/src/operations/update-companion.d.ts.map +1 -1
  186. package/dist/types/src/operations/update-complementary.d.ts +1 -1
  187. package/dist/types/src/operations/update-complementary.d.ts.map +1 -1
  188. package/dist/types/src/operations/update-dialog.d.ts +1 -1
  189. package/dist/types/src/operations/update-dialog.d.ts.map +1 -1
  190. package/dist/types/src/operations/update-plank-size.d.ts +3 -3
  191. package/dist/types/src/operations/update-plank-size.d.ts.map +1 -1
  192. package/dist/types/src/operations/update-popover.d.ts +1 -1
  193. package/dist/types/src/operations/update-popover.d.ts.map +1 -1
  194. package/dist/types/src/operations/update-sidebar.d.ts +1 -1
  195. package/dist/types/src/operations/update-sidebar.d.ts.map +1 -1
  196. package/dist/types/src/plugin.d.ts +4 -0
  197. package/dist/types/src/plugin.d.ts.map +1 -0
  198. package/dist/types/src/translations.d.ts +42 -53
  199. package/dist/types/src/translations.d.ts.map +1 -1
  200. package/dist/types/src/types/DeckCapabilities.d.ts +188 -0
  201. package/dist/types/src/types/DeckCapabilities.d.ts.map +1 -0
  202. package/dist/types/src/types/DeckEvents.d.ts +5 -0
  203. package/dist/types/src/types/DeckEvents.d.ts.map +1 -0
  204. package/dist/types/src/types/DeckOperation.d.ts +15 -0
  205. package/dist/types/src/types/DeckOperation.d.ts.map +1 -0
  206. package/dist/types/src/types/Settings.d.ts +5 -5
  207. package/dist/types/src/types/Settings.d.ts.map +1 -1
  208. package/dist/types/src/types/index.d.ts +3 -2
  209. package/dist/types/src/types/index.d.ts.map +1 -1
  210. package/dist/types/src/types/schema.d.ts +0 -1
  211. package/dist/types/src/types/schema.d.ts.map +1 -1
  212. package/dist/types/src/util/layoutAppliesTopbar.d.ts.map +1 -1
  213. package/dist/types/src/util/plank-url-params.d.ts.map +1 -1
  214. package/dist/types/src/util/sanitize-persisted-state.d.ts.map +1 -1
  215. package/dist/types/src/util/set-active.d.ts.map +1 -1
  216. package/dist/types/tsconfig.tsbuildinfo +1 -1
  217. package/package.json +102 -66
  218. package/src/DeckPlugin.node.ts +17 -0
  219. package/src/DeckPlugin.test.ts +27 -0
  220. package/src/DeckPlugin.ts +4 -3
  221. package/src/capabilities/app-graph-builder.ts +3 -3
  222. package/src/capabilities/index.ts +1 -1
  223. package/src/capabilities/operation-handler.ts +1 -1
  224. package/src/capabilities/settings.ts +1 -1
  225. package/src/capabilities/url-handler.ts +1 -1
  226. package/src/components/DeckSettings/DeckSettings.stories.tsx +2 -1
  227. package/src/components/DeckSettings/DeckSettings.tsx +8 -47
  228. package/src/components/Matrix/Matrix.stories.tsx +1 -1
  229. package/src/containers/Deck/Banner.tsx +2 -2
  230. package/src/containers/Deck/Deck.stories.tsx +1 -1
  231. package/src/containers/Deck/DeckContent.tsx +1 -1
  232. package/src/containers/Deck/DeckViewport.tsx +4 -9
  233. package/src/containers/DeckLayout/ActiveNode.tsx +1 -1
  234. package/src/containers/DeckLayout/DeckLayout.stories.tsx +2 -2
  235. package/src/containers/DeckLayout/Fallback.tsx +1 -1
  236. package/src/containers/Plank/Plank.stories.tsx +2 -2
  237. package/src/containers/Plank/PlankHeading.tsx +3 -3
  238. package/src/containers/Plank/PlankLoading.tsx +1 -1
  239. package/src/containers/Plank/PlankRoot.tsx +1 -1
  240. package/src/containers/Sidebar/ComplementarySidebar.tsx +5 -7
  241. package/src/containers/Sidebar/SidebarButton.tsx +7 -1
  242. package/src/hooks/useDeckCompanions.ts +1 -1
  243. package/src/index.ts +1 -3
  244. package/src/meta.ts +1 -0
  245. package/src/operations/add-toast.ts +1 -1
  246. package/src/operations/adjust.ts +4 -5
  247. package/src/operations/close.ts +2 -2
  248. package/src/operations/index.ts +1 -3
  249. package/src/operations/open.ts +7 -7
  250. package/src/operations/revert-workspace.ts +1 -1
  251. package/src/operations/scroll-into-view.ts +1 -1
  252. package/src/operations/set-layout-mode.ts +1 -1
  253. package/src/operations/set.ts +2 -2
  254. package/src/operations/show-undo.ts +1 -1
  255. package/src/operations/switch-workspace.ts +1 -1
  256. package/src/operations/update-companion.ts +1 -1
  257. package/src/operations/update-complementary.ts +1 -1
  258. package/src/operations/update-dialog.ts +1 -1
  259. package/src/operations/update-plank-size.ts +3 -4
  260. package/src/operations/update-popover.ts +1 -1
  261. package/src/operations/update-sidebar.ts +1 -1
  262. package/src/plugin.ts +11 -0
  263. package/src/translations.ts +2 -12
  264. package/src/types/DeckCapabilities.ts +34 -0
  265. package/src/types/DeckEvents.ts +21 -0
  266. package/src/{operations/definitions.ts → types/DeckOperation.ts} +6 -4
  267. package/src/types/Settings.ts +30 -5
  268. package/src/types/index.ts +4 -2
  269. package/src/types/schema.ts +0 -2
  270. package/dist/lib/browser/adjust-XWB6ZZ6U.mjs.map +0 -7
  271. package/dist/lib/browser/chunk-5LM6A3EC.mjs +0 -208
  272. package/dist/lib/browser/chunk-5LM6A3EC.mjs.map +0 -7
  273. package/dist/lib/browser/chunk-BRZAVPMC.mjs +0 -48
  274. package/dist/lib/browser/chunk-BRZAVPMC.mjs.map +0 -7
  275. package/dist/lib/browser/chunk-FRVCL5NO.mjs +0 -72
  276. package/dist/lib/browser/chunk-FRVCL5NO.mjs.map +0 -7
  277. package/dist/lib/browser/index.mjs +0 -201
  278. package/dist/lib/browser/index.mjs.map +0 -7
  279. package/dist/lib/browser/meta.json +0 -1
  280. package/dist/lib/browser/open-K2JOEW2E.mjs.map +0 -7
  281. package/dist/lib/browser/operations/index.mjs +0 -13
  282. package/dist/lib/browser/operations/index.mjs.map +0 -7
  283. package/dist/lib/browser/set-layout-mode-BEVNGOY2.mjs.map +0 -7
  284. package/dist/lib/browser/switch-workspace-ICJJWNFT.mjs.map +0 -7
  285. package/dist/lib/browser/update-companion-VPCBH3YT.mjs.map +0 -7
  286. package/dist/lib/browser/update-complementary-74DEQY6T.mjs.map +0 -7
  287. package/dist/lib/browser/update-plank-size-5VHZOTHE.mjs +0 -28
  288. package/dist/lib/browser/update-plank-size-5VHZOTHE.mjs.map +0 -7
  289. package/dist/lib/node-esm/add-toast-AZM7NFNM.mjs +0 -25
  290. package/dist/lib/node-esm/add-toast-AZM7NFNM.mjs.map +0 -7
  291. package/dist/lib/node-esm/adjust-ICALXQ6F.mjs +0 -96
  292. package/dist/lib/node-esm/adjust-ICALXQ6F.mjs.map +0 -7
  293. package/dist/lib/node-esm/chunk-A63Q53TW.mjs +0 -73
  294. package/dist/lib/node-esm/chunk-A63Q53TW.mjs.map +0 -7
  295. package/dist/lib/node-esm/chunk-B7WZXRW4.mjs +0 -209
  296. package/dist/lib/node-esm/chunk-B7WZXRW4.mjs.map +0 -7
  297. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +0 -11
  298. package/dist/lib/node-esm/chunk-IRWCUYJY.mjs +0 -71
  299. package/dist/lib/node-esm/chunk-IRWCUYJY.mjs.map +0 -7
  300. package/dist/lib/node-esm/chunk-MB4SDDVY.mjs +0 -50
  301. package/dist/lib/node-esm/chunk-MB4SDDVY.mjs.map +0 -7
  302. package/dist/lib/node-esm/chunk-MLVJ2ODW.mjs +0 -32
  303. package/dist/lib/node-esm/chunk-MLVJ2ODW.mjs.map +0 -7
  304. package/dist/lib/node-esm/close-GC5V3GD5.mjs +0 -45
  305. package/dist/lib/node-esm/close-GC5V3GD5.mjs.map +0 -7
  306. package/dist/lib/node-esm/index.mjs +0 -202
  307. package/dist/lib/node-esm/index.mjs.map +0 -7
  308. package/dist/lib/node-esm/meta.json +0 -1
  309. package/dist/lib/node-esm/open-XXEHIR6G.mjs +0 -151
  310. package/dist/lib/node-esm/open-XXEHIR6G.mjs.map +0 -7
  311. package/dist/lib/node-esm/operations/index.mjs +0 -14
  312. package/dist/lib/node-esm/operations/index.mjs.map +0 -7
  313. package/dist/lib/node-esm/revert-workspace-WCXAL5C6.mjs +0 -22
  314. package/dist/lib/node-esm/revert-workspace-WCXAL5C6.mjs.map +0 -7
  315. package/dist/lib/node-esm/scroll-into-view-2ZNU44ZO.mjs +0 -22
  316. package/dist/lib/node-esm/scroll-into-view-2ZNU44ZO.mjs.map +0 -7
  317. package/dist/lib/node-esm/set-5MO2JCUQ.mjs +0 -38
  318. package/dist/lib/node-esm/set-5MO2JCUQ.mjs.map +0 -7
  319. package/dist/lib/node-esm/set-layout-mode-3RK4HIG7.mjs +0 -91
  320. package/dist/lib/node-esm/set-layout-mode-3RK4HIG7.mjs.map +0 -7
  321. package/dist/lib/node-esm/show-undo-WV7SAYGJ.mjs +0 -60
  322. package/dist/lib/node-esm/show-undo-WV7SAYGJ.mjs.map +0 -7
  323. package/dist/lib/node-esm/switch-workspace-VNM75H66.mjs +0 -69
  324. package/dist/lib/node-esm/switch-workspace-VNM75H66.mjs.map +0 -7
  325. package/dist/lib/node-esm/update-companion-SIB3GWH7.mjs +0 -33
  326. package/dist/lib/node-esm/update-companion-SIB3GWH7.mjs.map +0 -7
  327. package/dist/lib/node-esm/update-complementary-CZTIVIXU.mjs +0 -29
  328. package/dist/lib/node-esm/update-complementary-CZTIVIXU.mjs.map +0 -7
  329. package/dist/lib/node-esm/update-dialog-HEDV5XBB.mjs +0 -30
  330. package/dist/lib/node-esm/update-dialog-HEDV5XBB.mjs.map +0 -7
  331. package/dist/lib/node-esm/update-plank-size-JJLU7VE3.mjs +0 -29
  332. package/dist/lib/node-esm/update-plank-size-JJLU7VE3.mjs.map +0 -7
  333. package/dist/lib/node-esm/update-popover-HI5TU2VT.mjs +0 -34
  334. package/dist/lib/node-esm/update-popover-HI5TU2VT.mjs.map +0 -7
  335. package/dist/lib/node-esm/update-sidebar-QB5BA655.mjs +0 -26
  336. package/dist/lib/node-esm/update-sidebar-QB5BA655.mjs.map +0 -7
  337. package/dist/types/src/operations/definitions.d.ts +0 -15
  338. package/dist/types/src/operations/definitions.d.ts.map +0 -1
  339. package/dist/types/src/types/capabilities.d.ts +0 -191
  340. package/dist/types/src/types/capabilities.d.ts.map +0 -1
  341. package/dist/types/src/types/events.d.ts +0 -7
  342. package/dist/types/src/types/events.d.ts.map +0 -1
  343. package/src/types/capabilities.ts +0 -35
  344. package/src/types/events.ts +0 -21
  345. /package/dist/lib/{browser/chunk-J5LGTIGS.mjs.map → neutral/check-app-scheme-A7FZVNZO.mjs.map} +0 -0
  346. /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs +0 -0
  347. /package/dist/lib/{browser/types/index.mjs.map → neutral/chunk-J5LGTIGS.mjs.map} +0 -0
  348. /package/dist/lib/{node-esm/types → neutral}/index.mjs.map +0 -0
  349. /package/dist/lib/{node-esm/chunk-HSLMI22Q.mjs.map → neutral/meta.mjs.map} +0 -0
@@ -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
+ }
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  DECK_COMPANION_TYPE,
3
3
  DeckAction,
4
- DeckCapabilities,
5
- DeckEvents,
4
+ DeckCapabilities_exports,
5
+ DeckEvents_exports,
6
+ DeckOperation_exports,
6
7
  DeckState,
7
8
  EphemeralDeckState,
8
9
  PLANK_COMPANION_TYPE,
@@ -12,13 +13,14 @@ import {
12
13
  defaultDeck,
13
14
  getMode,
14
15
  isLayoutMode
15
- } from "../chunk-5LM6A3EC.mjs";
16
+ } from "../chunk-64ODQD6S.mjs";
16
17
  import "../chunk-J5LGTIGS.mjs";
17
18
  export {
18
19
  DECK_COMPANION_TYPE,
19
20
  DeckAction,
20
- DeckCapabilities,
21
- DeckEvents,
21
+ DeckCapabilities_exports as DeckCapabilities,
22
+ DeckEvents_exports as DeckEvents,
23
+ DeckOperation_exports as DeckOperation,
22
24
  DeckState,
23
25
  EphemeralDeckState,
24
26
  PLANK_COMPANION_TYPE,
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  updateActiveDeck
3
- } from "./chunk-KUTDCWZF.mjs";
3
+ } from "./chunk-GLB73Q6U.mjs";
4
4
  import {
5
- DeckCapabilities
6
- } from "./chunk-5LM6A3EC.mjs";
5
+ DeckCapabilities_exports
6
+ } from "./chunk-64ODQD6S.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) {
17
- yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state) => updateActiveDeck(state, {
17
+ yield* Capabilities.updateAtomValue(DeckCapabilities_exports.State, (state) => updateActiveDeck(state, {
18
18
  companionOpen: false
19
19
  }));
20
20
  } else {
21
21
  const variant = getLinkedVariant(input.subject);
22
- yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state) => updateActiveDeck(state, {
22
+ yield* Capabilities.updateAtomValue(DeckCapabilities_exports.State, (state) => updateActiveDeck(state, {
23
23
  companionOpen: true,
24
24
  companionVariant: variant
25
25
  }));
@@ -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-VPCM7FJX.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 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/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
+ "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,yBAAiBC,OAAO,CAACC,UAC3DC,iBAAiBD,OAAO;MAAEE,eAAe;IAAM,CAAA,CAAA;EAEnD,OAAO;AACL,UAAMC,UAAUC,iBAAiBV,MAAMC,OAAO;AAC9C,WAAOC,aAAaC,gBAAgBC,yBAAiBC,OAAO,CAACC,UAC3DC,iBAAiBD,OAAO;MACtBE,eAAe;MACfG,kBAAkBF;IACpB,CAAA,CAAA;EAEJ;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,2BAAehB;",
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
+ }
@@ -1,20 +1,20 @@
1
1
  import {
2
- DeckCapabilities
3
- } from "./chunk-5LM6A3EC.mjs";
2
+ DeckCapabilities_exports
3
+ } from "./chunk-64ODQD6S.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
- const state = yield* Capabilities.getAtomValue(DeckCapabilities.State);
12
+ const state = yield* Capabilities.getAtomValue(DeckCapabilities_exports.State);
13
13
  const panelChanged = state.complementarySidebarPanel !== input.subject;
14
14
  const next = input.subject ? "expanded" : input.state ?? state.complementarySidebarState;
15
15
  const stateChanged = next !== state.complementarySidebarState;
16
16
  if (panelChanged || stateChanged) {
17
- yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state2) => ({
17
+ yield* Capabilities.updateAtomValue(DeckCapabilities_exports.State, (state2) => ({
18
18
  ...state2,
19
19
  complementarySidebarPanel: panelChanged ? input.subject : state2.complementarySidebarPanel,
20
20
  complementarySidebarState: stateChanged ? next : state2.complementarySidebarState
@@ -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-SEQ6DDWA.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 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/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
+ "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,yBAAiBC,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,yBAAiBC,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
+ "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
+ }
@@ -1,15 +1,15 @@
1
1
  import {
2
- DeckCapabilities
3
- } from "./chunk-5LM6A3EC.mjs";
2
+ DeckCapabilities_exports
3
+ } from "./chunk-64ODQD6S.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
- yield* Capabilities.updateAtomValue(DeckCapabilities.EphemeralState, (state) => ({
12
+ yield* Capabilities.updateAtomValue(DeckCapabilities_exports.EphemeralState, (state) => ({
13
13
  ...state,
14
14
  dialogOpen: input.state ?? Boolean(input.subject),
15
15
  dialogType: input.type ?? "default",
@@ -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-VDHYE4QH.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"],
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;",
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
+ "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,yBAAiBC,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
  }
@@ -0,0 +1,26 @@
1
+ import {
2
+ updateActiveDeck
3
+ } from "./chunk-GLB73Q6U.mjs";
4
+ import {
5
+ DeckCapabilities_exports,
6
+ DeckOperation_exports
7
+ } from "./chunk-64ODQD6S.mjs";
8
+ import "./chunk-J5LGTIGS.mjs";
9
+
10
+ // src/operations/update-plank-size.ts
11
+ import * as Effect from "effect/Effect";
12
+ import { Capabilities } from "@dxos/app-framework";
13
+ import { Operation } from "@dxos/compute";
14
+ var handler = DeckOperation_exports.UpdatePlankSize.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
15
+ yield* Capabilities.updateAtomValue(DeckCapabilities_exports.State, (state) => updateActiveDeck(state, {
16
+ plankSizing: {
17
+ ...state.decks[state.activeDeck]?.plankSizing,
18
+ [input.id]: input.size
19
+ }
20
+ }));
21
+ })));
22
+ var update_plank_size_default = handler;
23
+ export {
24
+ update_plank_size_default as default
25
+ };
26
+ //# sourceMappingURL=update-plank-size-ZXOUZD7Y.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 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/compute';\n\nimport { DeckCapabilities, DeckOperation } from '../types';\nimport { updateActiveDeck } from './helpers';\n\nconst handler: Operation.WithHandler<typeof DeckOperation.UpdatePlankSize> = DeckOperation.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
+ "mappings": ";;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,oBAAoB;AAC7B,SAASC,iBAAiB;AAK1B,IAAMC,UAAuEC,sBAAcC,gBAAgBC,KACzGC,UAAUC,YACDC,kBAAW,WAAWC,OAAK;AAChC,SAAOC,aAAaC,gBAAgBC,yBAAiBC,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,4BAAelB;",
6
+ "names": ["Effect", "Capabilities", "Operation", "handler", "DeckOperation", "UpdatePlankSize", "pipe", "Operation", "withHandler", "fnUntraced", "input", "Capabilities", "updateAtomValue", "DeckCapabilities", "State", "state", "updateActiveDeck", "plankSizing", "decks", "activeDeck", "id", "size"]
7
+ }
@@ -1,15 +1,15 @@
1
1
  import {
2
- DeckCapabilities
3
- } from "./chunk-5LM6A3EC.mjs";
2
+ DeckCapabilities_exports
3
+ } from "./chunk-64ODQD6S.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
- yield* Capabilities.updateAtomValue(DeckCapabilities.EphemeralState, (state) => ({
12
+ yield* Capabilities.updateAtomValue(DeckCapabilities_exports.EphemeralState, (state) => ({
13
13
  ...state,
14
14
  popoverOpen: input.state ?? Boolean(input.subject),
15
15
  popoverKind: input.kind ?? "base",
@@ -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-VFP32W57.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"],
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;",
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
+ "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,yBAAiBC,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,18 +1,18 @@
1
1
  import {
2
- DeckCapabilities
3
- } from "./chunk-5LM6A3EC.mjs";
2
+ DeckCapabilities_exports
3
+ } from "./chunk-64ODQD6S.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
- const state = yield* Capabilities.getAtomValue(DeckCapabilities.State);
12
+ const state = yield* Capabilities.getAtomValue(DeckCapabilities_exports.State);
13
13
  const next = input.state ?? state.sidebarState;
14
14
  if (next !== state.sidebarState) {
15
- yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state2) => ({
15
+ yield* Capabilities.updateAtomValue(DeckCapabilities_exports.State, (state2) => ({
16
16
  ...state2,
17
17
  sidebarState: next
18
18
  }));
@@ -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-O5HBOXYH.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"],
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;",
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
+ "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,yBAAiBC,KAAK;AACrE,QAAMC,OAAON,MAAMC,SAASA,MAAMM;AAClC,MAAID,SAASL,MAAMM,cAAc;AAC/B,WAAOL,aAAaM,gBAAgBJ,yBAAiBC,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
  }
@@ -0,0 +1,184 @@
1
+ import {
2
+ updateActiveDeck
3
+ } from "./chunk-GLB73Q6U.mjs";
4
+ import {
5
+ shouldDeferNavigationHandlers
6
+ } from "./chunk-VHETZ22W.mjs";
7
+ import {
8
+ deserializePlanks,
9
+ serializePlanks,
10
+ stripPlanks
11
+ } from "./chunk-GBIGQKYW.mjs";
12
+ import "./chunk-J5LGTIGS.mjs";
13
+
14
+ // src/capabilities/url-handler.ts
15
+ import * as Effect from "effect/Effect";
16
+ import { Capabilities, Capability } from "@dxos/app-framework";
17
+ import { AppCapabilities, LayoutOperation, NOT_FOUND_PATH, expandPath, fromUrlPath, getWorkspaceFromPath, toUrlPath } from "@dxos/app-toolkit";
18
+ import { Operation } from "@dxos/compute";
19
+ import { runAndForwardErrors } from "@dxos/effect";
20
+ import { invariant } from "@dxos/invariant";
21
+ import { log } from "@dxos/log";
22
+ import { Node } from "@dxos/plugin-graph";
23
+ import { isTauri } from "@dxos/util";
24
+ import { DeckCapabilities, defaultDeck } from "#types";
25
+ var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-deck/src/capabilities/url-handler.ts";
26
+ var dispatchNavigationHandlers = Effect.fn(function* (url) {
27
+ const handlers = yield* Capability.getAll(AppCapabilities.NavigationHandler);
28
+ yield* Effect.all(handlers.map((handler) => handler(url)), {
29
+ concurrency: "unbounded"
30
+ });
31
+ });
32
+ var url_handler_default = Capability.makeModule(Effect.fnUntraced(function* () {
33
+ const operationService = yield* Capability.get(Capabilities.OperationInvoker);
34
+ const capabilities = yield* Capability.Service;
35
+ const registry = yield* Capability.get(Capabilities.AtomRegistry);
36
+ const stateAtom = yield* Capability.get(DeckCapabilities.State);
37
+ const settingsAtom = yield* Capability.get(DeckCapabilities.Settings);
38
+ const provideServices = (effect) => effect.pipe(Effect.provideService(Capability.Service, capabilities), Effect.provideService(Operation.Service, operationService));
39
+ const getState = () => registry.get(stateAtom);
40
+ const getDeck = () => {
41
+ const state = getState();
42
+ const deck = state.decks[state.activeDeck];
43
+ invariant(deck, `Deck not found: ${state.activeDeck}`, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 36, S: this, A: ["deck", "`Deck not found: ${state.activeDeck}`"] });
44
+ return deck;
45
+ };
46
+ const updateState = (fn2) => {
47
+ registry.set(stateAtom, fn2(getState()));
48
+ };
49
+ const handleNavigation = Effect.fn(function* (url) {
50
+ const { graph } = yield* Capability.get(AppCapabilities.AppGraph);
51
+ const resolvedUrl = url ?? new URL(window.location.href);
52
+ const settings = registry.get(settingsAtom);
53
+ const deferHandlers = settings?.enableNativeRedirect && shouldDeferNavigationHandlers();
54
+ if (!deferHandlers) {
55
+ yield* dispatchNavigationHandlers(resolvedUrl);
56
+ }
57
+ const pathname = resolvedUrl.pathname;
58
+ const state = getState();
59
+ if (pathname === "/reset") {
60
+ updateState((s) => ({
61
+ ...s,
62
+ activeDeck: "default",
63
+ decks: {
64
+ default: {
65
+ ...defaultDeck
66
+ }
67
+ }
68
+ }));
69
+ window.location.pathname = "/";
70
+ return;
71
+ }
72
+ const qualifiedId = fromUrlPath(pathname);
73
+ const workspace = getWorkspaceFromPath(qualifiedId);
74
+ if (workspace !== Node.RootId && workspace !== state.activeDeck) {
75
+ yield* Operation.invoke(LayoutOperation.SwitchWorkspace, {
76
+ subject: workspace
77
+ });
78
+ }
79
+ const deck = getDeck();
80
+ const activeId = qualifiedId !== workspace ? qualifiedId : void 0;
81
+ if (activeId) {
82
+ const resolvedIds = yield* Operation.invoke(LayoutOperation.Open, {
83
+ subject: [
84
+ activeId
85
+ ]
86
+ });
87
+ if (!deck.solo) {
88
+ yield* Operation.invoke(LayoutOperation.SetLayoutMode, {
89
+ subject: resolvedIds?.[0] ?? activeId,
90
+ mode: "solo"
91
+ });
92
+ }
93
+ } else if (deck.solo && deck.solo !== NOT_FOUND_PATH) {
94
+ const path = toUrlPath(deck.solo);
95
+ if (window.location.pathname !== path) {
96
+ history.replaceState(null, "", `${path}${stripPlanks(window.location.search)}`);
97
+ }
98
+ } else if (!activeId && !deck.solo) {
99
+ const plankIds = deserializePlanks(resolvedUrl);
100
+ if (plankIds.length > 0) {
101
+ for (const plankId of plankIds) {
102
+ expandPath(graph, plankId);
103
+ }
104
+ updateState((state2) => updateActiveDeck(state2, {
105
+ active: plankIds,
106
+ initialized: true
107
+ }));
108
+ }
109
+ }
110
+ });
111
+ const onPopState = () => void runAndForwardErrors(provideServices(handleNavigation()));
112
+ yield* provideServices(handleNavigation());
113
+ window.addEventListener("popstate", onPopState);
114
+ let unlistenDeepLink;
115
+ if (isTauri()) {
116
+ yield* Effect.gen(function* () {
117
+ const { getCurrent, onOpenUrl } = yield* Effect.promise(() => import("@tauri-apps/plugin-deep-link"));
118
+ const launchUrls = yield* Effect.promise(() => getCurrent());
119
+ if (launchUrls && launchUrls.length > 0) {
120
+ log("app launched with deep links", {
121
+ urls: launchUrls
122
+ }, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 124, S: this });
123
+ for (const urlString of launchUrls) {
124
+ yield* provideServices(handleDeepLink(urlString, handleNavigation));
125
+ }
126
+ }
127
+ unlistenDeepLink = yield* Effect.promise(() => onOpenUrl((urls) => {
128
+ for (const urlString of urls) {
129
+ void runAndForwardErrors(provideServices(handleDeepLink(urlString, handleNavigation)));
130
+ }
131
+ }));
132
+ }).pipe(Effect.catchAll((error) => Effect.sync(() => log.warn("failed to initialize deep link listener", {
133
+ error
134
+ }, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 136, S: this }))));
135
+ }
136
+ let lastSolo;
137
+ let lastActiveDeck;
138
+ let lastActiveKey;
139
+ const unsubscribe = registry.subscribe(stateAtom, () => {
140
+ const state = getState();
141
+ const deck = getDeck();
142
+ const solo = deck.solo;
143
+ const activeDeck = state.activeDeck;
144
+ const activeKey = solo ? void 0 : JSON.stringify(deck.active);
145
+ if (solo !== lastSolo || activeDeck !== lastActiveDeck || activeKey !== lastActiveKey) {
146
+ lastSolo = solo;
147
+ lastActiveDeck = activeDeck;
148
+ lastActiveKey = activeKey;
149
+ const path = solo && solo !== NOT_FOUND_PATH ? toUrlPath(solo) : toUrlPath(activeDeck);
150
+ const search = !solo ? serializePlanks(deck.active, window.location.search) : stripPlanks(window.location.search);
151
+ const newUrl = `${path}${search}`;
152
+ if (`${window.location.pathname}${window.location.search}` !== newUrl) {
153
+ history.pushState(null, "", newUrl);
154
+ }
155
+ }
156
+ });
157
+ return Capability.contributes(Capabilities.Null, null, () => Effect.sync(() => {
158
+ window.removeEventListener("popstate", onPopState);
159
+ unsubscribe();
160
+ unlistenDeepLink?.();
161
+ }));
162
+ }));
163
+ var isRedirectPath = (pathname) => pathname.startsWith("/redirect/");
164
+ var handleDeepLink = Effect.fn(function* (urlString, navigate) {
165
+ log("deep link received", {
166
+ url: urlString
167
+ }, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 170, S: this });
168
+ const deepLinkUrl = new URL(urlString);
169
+ const fullPath = deepLinkUrl.protocol !== "https:" && deepLinkUrl.protocol !== "http:" && deepLinkUrl.hostname ? "/" + deepLinkUrl.hostname + deepLinkUrl.pathname : deepLinkUrl.pathname;
170
+ if (isRedirectPath(fullPath)) {
171
+ return;
172
+ }
173
+ const current = new URL(window.location.href);
174
+ if (deepLinkUrl.search) {
175
+ deepLinkUrl.searchParams.forEach((value, key) => current.searchParams.set(key, value));
176
+ }
177
+ current.pathname = fullPath;
178
+ history.replaceState(null, "", current.pathname + current.search);
179
+ yield* navigate(current);
180
+ });
181
+ export {
182
+ url_handler_default as default
183
+ };
184
+ //# sourceMappingURL=url-handler-3QTKEM2K.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/url-handler.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 {\n AppCapabilities,\n LayoutOperation,\n NOT_FOUND_PATH,\n expandPath,\n fromUrlPath,\n getWorkspaceFromPath,\n toUrlPath,\n} from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\nimport { runAndForwardErrors } from '@dxos/effect';\nimport { invariant } from '@dxos/invariant';\nimport { log } from '@dxos/log';\nimport { Node } from '@dxos/plugin-graph';\nimport { isTauri } from '@dxos/util';\n\nimport { DeckCapabilities, type StoredDeckState, defaultDeck } from '#types';\n\nimport { updateActiveDeck } from '../operations/helpers';\nimport { deserializePlanks, serializePlanks, stripPlanks } from '../util';\nimport { shouldDeferNavigationHandlers } from './check-app-scheme';\n\n/** Dispatch all NavigationHandler contributions with a given URL. */\nconst dispatchNavigationHandlers = Effect.fn(function* (url: URL) {\n const handlers = yield* Capability.getAll(AppCapabilities.NavigationHandler);\n yield* Effect.all(\n handlers.map((handler) => handler(url)),\n { concurrency: 'unbounded' },\n );\n});\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const operationService = yield* Capability.get(Capabilities.OperationInvoker);\n const capabilities = yield* Capability.Service;\n const registry = yield* Capability.get(Capabilities.AtomRegistry);\n const stateAtom = yield* Capability.get(DeckCapabilities.State);\n const settingsAtom = yield* Capability.get(DeckCapabilities.Settings);\n\n const provideServices = <A, E>(effect: Effect.Effect<A, E, Capability.Service | Operation.Service>) =>\n effect.pipe(\n Effect.provideService(Capability.Service, capabilities),\n Effect.provideService(Operation.Service, operationService),\n );\n\n // Helper to get state.\n const getState = () => registry.get(stateAtom);\n\n // Helper to get computed deck from state.\n const getDeck = () => {\n const state = getState();\n const deck = state.decks[state.activeDeck];\n invariant(deck, `Deck not found: ${state.activeDeck}`);\n return deck;\n };\n\n // Helper to update state.\n const updateState = (fn: (current: StoredDeckState) => StoredDeckState) => {\n registry.set(stateAtom, fn(getState()));\n };\n\n const handleNavigation = Effect.fn(function* (url?: URL) {\n const { graph } = yield* Capability.get(AppCapabilities.AppGraph);\n const resolvedUrl = url ?? new URL(window.location.href);\n // When native redirect is active, check-app-scheme owns the initial dispatch\n // to prevent one-time tokens from being consumed before the native app can use them.\n const settings = registry.get(settingsAtom);\n const deferHandlers = settings?.enableNativeRedirect && shouldDeferNavigationHandlers();\n if (!deferHandlers) {\n yield* dispatchNavigationHandlers(resolvedUrl);\n }\n\n const pathname = resolvedUrl.pathname;\n const state = getState();\n if (pathname === '/reset') {\n updateState((s) => ({\n ...s,\n activeDeck: 'default',\n decks: {\n default: { ...defaultDeck },\n },\n }));\n window.location.pathname = '/';\n return;\n }\n\n const qualifiedId = fromUrlPath(pathname);\n const workspace = getWorkspaceFromPath(qualifiedId);\n if (workspace !== Node.RootId && workspace !== state.activeDeck) {\n yield* Operation.invoke(LayoutOperation.SwitchWorkspace, { subject: workspace });\n }\n\n const deck = getDeck();\n const activeId = qualifiedId !== workspace ? qualifiedId : undefined;\n if (activeId) {\n // Ensure the object referenced by the URL is open in the deck.\n // Open validates the target and may redirect to 404, returning the resolved IDs.\n const resolvedIds = yield* Operation.invoke(LayoutOperation.Open, { subject: [activeId] });\n // If not already in solo mode, switch to solo for the resolved target.\n if (!deck.solo) {\n yield* Operation.invoke(LayoutOperation.SetLayoutMode, {\n subject: resolvedIds?.[0] ?? activeId,\n mode: 'solo',\n });\n }\n } else if (deck.solo && deck.solo !== NOT_FOUND_PATH) {\n // Stay in solo mode; redirect URL to reflect the current solo item.\n // Do not switch to deck mode here — only explicit user action should change layout mode.\n const path = toUrlPath(deck.solo);\n if (window.location.pathname !== path) {\n history.replaceState(null, '', `${path}${stripPlanks(window.location.search)}`);\n }\n } else if (!activeId && !deck.solo) {\n // Multi-mode: restore planks from query params.\n const plankIds = deserializePlanks(resolvedUrl);\n if (plankIds.length > 0) {\n for (const plankId of plankIds) {\n expandPath(graph, plankId);\n }\n updateState((state) => updateActiveDeck(state, { active: plankIds, initialized: true }));\n }\n }\n });\n\n const onPopState = () => void runAndForwardErrors(provideServices(handleNavigation()));\n\n // Initial navigation.\n yield* provideServices(handleNavigation());\n window.addEventListener('popstate', onPopState);\n\n // Tauri deep link support.\n let unlistenDeepLink: (() => void) | undefined;\n if (isTauri()) {\n yield* Effect.gen(function* () {\n const { getCurrent, onOpenUrl } = yield* Effect.promise(() => import('@tauri-apps/plugin-deep-link'));\n\n const launchUrls = yield* Effect.promise(() => getCurrent());\n if (launchUrls && launchUrls.length > 0) {\n log('app launched with deep links', { urls: launchUrls });\n for (const urlString of launchUrls) {\n yield* provideServices(handleDeepLink(urlString, handleNavigation));\n }\n }\n\n unlistenDeepLink = yield* Effect.promise(() =>\n onOpenUrl((urls) => {\n for (const urlString of urls) {\n void runAndForwardErrors(provideServices(handleDeepLink(urlString, handleNavigation)));\n }\n }),\n );\n }).pipe(\n Effect.catchAll((error) => Effect.sync(() => log.warn('failed to initialize deep link listener', { error }))),\n );\n }\n\n // Sync URL with layout state changes.\n let lastSolo: string | undefined;\n let lastActiveDeck: string | undefined;\n let lastActiveKey: string | undefined;\n const unsubscribe = registry.subscribe(stateAtom, () => {\n const state = getState();\n const deck = getDeck();\n const solo = deck.solo;\n const activeDeck = state.activeDeck;\n const activeKey = solo ? undefined : JSON.stringify(deck.active);\n\n if (solo !== lastSolo || activeDeck !== lastActiveDeck || activeKey !== lastActiveKey) {\n lastSolo = solo;\n lastActiveDeck = activeDeck;\n lastActiveKey = activeKey;\n\n const path = solo && solo !== NOT_FOUND_PATH ? toUrlPath(solo) : toUrlPath(activeDeck);\n const search = !solo\n ? serializePlanks(deck.active, window.location.search)\n : stripPlanks(window.location.search);\n const newUrl = `${path}${search}`;\n\n if (`${window.location.pathname}${window.location.search}` !== newUrl) {\n history.pushState(null, '', newUrl);\n }\n }\n });\n\n return Capability.contributes(Capabilities.Null, null, () =>\n Effect.sync(() => {\n window.removeEventListener('popstate', onPopState);\n unsubscribe();\n unlistenDeepLink?.();\n }),\n );\n }),\n);\n\n/** Check if a path is a redirect path handled elsewhere (e.g., OAuth). */\nconst isRedirectPath = (pathname: string): boolean => pathname.startsWith('/redirect/');\n\n/** Handle a deep link URL string. Merges query params into window.location and navigates. */\nconst handleDeepLink = Effect.fn(function* (urlString: string, navigate: (url?: URL) => Effect.Effect<void, any, any>) {\n log('deep link received', { url: urlString });\n\n const deepLinkUrl = new URL(urlString);\n\n // For custom schemes (e.g., composer://a/b/c), new URL() treats the first segment as the\n // hostname. Reconstruct the full path from hostname + pathname.\n const fullPath =\n deepLinkUrl.protocol !== 'https:' && deepLinkUrl.protocol !== 'http:' && deepLinkUrl.hostname\n ? '/' + deepLinkUrl.hostname + deepLinkUrl.pathname\n : deepLinkUrl.pathname;\n\n if (isRedirectPath(fullPath)) {\n return;\n }\n\n // Merge deep link query params into the current window URL so handlers can read them.\n const current = new URL(window.location.href);\n if (deepLinkUrl.search) {\n deepLinkUrl.searchParams.forEach((value, key) => current.searchParams.set(key, value));\n }\n current.pathname = fullPath;\n history.replaceState(null, '', current.pathname + current.search);\n\n yield* navigate(current);\n});\n"],
5
+ "mappings": "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",
6
+ "names": ["Effect", "Capabilities", "Capability", "AppCapabilities", "LayoutOperation", "NOT_FOUND_PATH", "expandPath", "fromUrlPath", "getWorkspaceFromPath", "toUrlPath", "Operation", "runAndForwardErrors", "invariant", "log", "Node", "isTauri", "DeckCapabilities", "defaultDeck", "concurrency", "capabilities", "Service", "registry", "Capability", "Capabilities", "AtomRegistry", "stateAtom", "settingsAtom", "get", "DeckCapabilities", "Settings", "provideServices", "effect", "provideService", "getState", "getDeck", "deck", "state", "invariant", "fn", "handleNavigation", "Effect", "URL", "window", "location", "deferHandlers", "dispatchNavigationHandlers", "resolvedUrl", "pathname", "updateState", "activeDeck", "decks", "default", "workspace", "Node", "Operation", "LayoutOperation", "SwitchWorkspace", "activeId", "subject", "mode", "history", "replaceState", "plankIds", "deserializePlanks", "plankId", "expandPath", "graph", "updateActiveDeck", "initialized", "unlistenDeepLink", "launchUrls", "length", "log", "handleDeepLink", "urlString", "runAndForwardErrors", "lastActiveKey", "solo", "activeKey", "lastSolo", "lastActiveDeck", "newUrl", "path", "search", "pushState", "unsubscribe", "deepLinkUrl", "searchParams", "forEach", "value", "current", "fullPath", "navigate"]
7
+ }
@@ -1,3 +1,4 @@
1
1
  import { Plugin } from '@dxos/app-framework';
2
2
  export declare const DeckPlugin: Plugin.PluginFactory<void>;
3
+ export default DeckPlugin;
3
4
  //# sourceMappingURL=DeckPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DeckPlugin.d.ts","sourceRoot":"","sources":["../../../src/DeckPlugin.ts"],"names":[],"mappings":"AAMA,OAAO,EAAqC,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAwBhF,eAAO,MAAM,UAAU,4BAmCtB,CAAC"}
1
+ {"version":3,"file":"DeckPlugin.d.ts","sourceRoot":"","sources":["../../../src/DeckPlugin.ts"],"names":[],"mappings":"AAMA,OAAO,EAAqC,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAuBhF,eAAO,MAAM,UAAU,4BAmCtB,CAAC;eAEa,UAAU"}
@@ -0,0 +1,4 @@
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const DeckPlugin: Plugin.PluginFactory<void>;
3
+ export default DeckPlugin;
4
+ //# sourceMappingURL=DeckPlugin.node.d.ts.map