@dxos/plugin-deck 0.8.4-main.9be5663bfe → 0.8.4-main.abd8ff62ef
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.
- package/dist/lib/browser/DeckPlugin-YAAL6CBD.mjs +70 -0
- package/dist/lib/browser/DeckPlugin-YAAL6CBD.mjs.map +7 -0
- package/dist/lib/browser/{add-toast-HW74YZHJ.mjs → add-toast-JWJOQNVL.mjs} +3 -3
- package/dist/lib/browser/{add-toast-HW74YZHJ.mjs.map → add-toast-JWJOQNVL.mjs.map} +1 -1
- package/dist/lib/browser/{adjust-OXVHZTBE.mjs → adjust-RG6LIQLX.mjs} +10 -11
- package/dist/lib/browser/adjust-RG6LIQLX.mjs.map +7 -0
- package/dist/lib/browser/{chunk-KUTDCWZF.mjs → chunk-GLB73Q6U.mjs} +2 -10
- package/dist/lib/{node-esm/chunk-MLVJ2ODW.mjs.map → browser/chunk-GLB73Q6U.mjs.map} +2 -2
- package/dist/lib/browser/{chunk-BRZAVPMC.mjs → chunk-LSZ47AY3.mjs} +1 -1
- package/dist/lib/browser/{chunk-GFOCQS7S.mjs → chunk-MARE7ZFK.mjs} +22 -23
- package/dist/lib/browser/{chunk-GFOCQS7S.mjs.map → chunk-MARE7ZFK.mjs.map} +3 -3
- package/dist/lib/browser/{chunk-2YNVGCOQ.mjs → chunk-XM263CQU.mjs} +4 -20
- package/dist/lib/browser/chunk-XM263CQU.mjs.map +7 -0
- package/dist/lib/browser/{chunk-DF2VZ6W3.mjs → chunk-ZYYOSX5I.mjs} +1 -1
- package/dist/lib/browser/{chunk-DF2VZ6W3.mjs.map → chunk-ZYYOSX5I.mjs.map} +2 -2
- package/dist/lib/browser/{close-N5FCDT7Y.mjs → close-URA766JO.mjs} +6 -6
- package/dist/lib/browser/{close-N5FCDT7Y.mjs.map → close-URA766JO.mjs.map} +1 -1
- package/dist/lib/browser/index.mjs +8 -128
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{open-J5HV42UN.mjs → open-OPFOOHCQ.mjs} +7 -10
- package/dist/lib/browser/open-OPFOOHCQ.mjs.map +7 -0
- package/dist/lib/browser/operations/index.mjs +3 -3
- package/dist/lib/browser/operations/index.mjs.map +3 -3
- package/dist/lib/browser/{revert-workspace-VWNN7RYF.mjs → revert-workspace-KP2Y4QLG.mjs} +3 -3
- package/dist/lib/browser/{revert-workspace-VWNN7RYF.mjs.map → revert-workspace-KP2Y4QLG.mjs.map} +1 -1
- package/dist/lib/browser/{scroll-into-view-CA7E3PSO.mjs → scroll-into-view-S5H2FGSQ.mjs} +3 -3
- package/dist/lib/browser/{scroll-into-view-CA7E3PSO.mjs.map → scroll-into-view-S5H2FGSQ.mjs.map} +1 -1
- package/dist/lib/browser/{set-YVWQQZLE.mjs → set-AEKFFSIX.mjs} +5 -5
- package/dist/lib/browser/{set-YVWQQZLE.mjs.map → set-AEKFFSIX.mjs.map} +1 -1
- package/dist/lib/browser/{set-layout-mode-DRNBZHE7.mjs → set-layout-mode-CWIGQDFZ.mjs} +5 -10
- package/dist/lib/browser/set-layout-mode-CWIGQDFZ.mjs.map +7 -0
- package/dist/lib/browser/{show-undo-KA2XHQ6E.mjs → show-undo-XFVEDKYC.mjs} +3 -3
- package/dist/lib/browser/{show-undo-KA2XHQ6E.mjs.map → show-undo-XFVEDKYC.mjs.map} +1 -1
- package/dist/lib/browser/{switch-workspace-U7SPENHU.mjs → switch-workspace-DSAAXZSI.mjs} +4 -12
- package/dist/lib/browser/switch-workspace-DSAAXZSI.mjs.map +7 -0
- package/dist/lib/browser/translations.mjs +57 -0
- package/dist/lib/browser/translations.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +1 -1
- package/dist/lib/browser/{change-companion-Z3Q2UPX4.mjs → update-companion-IDBBBHT3.mjs} +11 -13
- package/dist/lib/browser/update-companion-IDBBBHT3.mjs.map +7 -0
- package/dist/lib/browser/{update-complementary-W6UVLWLI.mjs → update-complementary-55PNO5MD.mjs} +3 -3
- package/dist/lib/browser/{update-complementary-W6UVLWLI.mjs.map → update-complementary-55PNO5MD.mjs.map} +1 -1
- package/dist/lib/browser/{update-dialog-VCTI7WKS.mjs → update-dialog-VNARIANC.mjs} +3 -3
- package/dist/lib/browser/{update-dialog-VCTI7WKS.mjs.map → update-dialog-VNARIANC.mjs.map} +1 -1
- package/dist/lib/browser/{update-plank-size-6TPVOYLT.mjs → update-plank-size-H63PRRXS.mjs} +5 -5
- package/dist/lib/browser/{update-plank-size-6TPVOYLT.mjs.map → update-plank-size-H63PRRXS.mjs.map} +1 -1
- package/dist/lib/browser/{update-popover-4EVVZSB6.mjs → update-popover-ODTPZ3JL.mjs} +3 -3
- package/dist/lib/browser/{update-popover-4EVVZSB6.mjs.map → update-popover-ODTPZ3JL.mjs.map} +1 -1
- package/dist/lib/browser/{update-sidebar-PAZARC4Q.mjs → update-sidebar-JDVQ36WK.mjs} +3 -3
- package/dist/lib/browser/{update-sidebar-PAZARC4Q.mjs.map → update-sidebar-JDVQ36WK.mjs.map} +1 -1
- package/dist/lib/node-esm/DeckPlugin-ZILU7U44.mjs +71 -0
- package/dist/lib/node-esm/DeckPlugin-ZILU7U44.mjs.map +7 -0
- package/dist/lib/node-esm/{add-toast-FA7NTWKA.mjs → add-toast-JUTN4GTI.mjs} +3 -3
- package/dist/lib/node-esm/{add-toast-FA7NTWKA.mjs.map → add-toast-JUTN4GTI.mjs.map} +1 -1
- package/dist/lib/node-esm/{adjust-G6FGZW6H.mjs → adjust-P5QK33P4.mjs} +10 -11
- package/dist/lib/node-esm/adjust-P5QK33P4.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-6BWQJDNT.mjs → chunk-FO7YDJZ3.mjs} +22 -23
- package/dist/lib/node-esm/{chunk-6BWQJDNT.mjs.map → chunk-FO7YDJZ3.mjs.map} +3 -3
- package/dist/lib/node-esm/{chunk-MB4SDDVY.mjs → chunk-KY7ZCANM.mjs} +1 -1
- package/dist/lib/node-esm/{chunk-GI5JXNBT.mjs → chunk-L7OVX7CV.mjs} +4 -20
- package/dist/lib/node-esm/chunk-L7OVX7CV.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-MLVJ2ODW.mjs → chunk-SHSR2CYO.mjs} +2 -10
- package/dist/lib/{browser/chunk-KUTDCWZF.mjs.map → node-esm/chunk-SHSR2CYO.mjs.map} +2 -2
- package/dist/lib/node-esm/{chunk-IRWCUYJY.mjs → chunk-WGBUTT5K.mjs} +1 -1
- package/dist/lib/node-esm/{chunk-IRWCUYJY.mjs.map → chunk-WGBUTT5K.mjs.map} +2 -2
- package/dist/lib/node-esm/{close-AMA63RJN.mjs → close-U5VC7ERP.mjs} +6 -6
- package/dist/lib/node-esm/{close-AMA63RJN.mjs.map → close-U5VC7ERP.mjs.map} +1 -1
- package/dist/lib/node-esm/index.mjs +8 -128
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{open-KRCARMEB.mjs → open-4B3P5XGS.mjs} +7 -10
- package/dist/lib/node-esm/open-4B3P5XGS.mjs.map +7 -0
- package/dist/lib/node-esm/operations/index.mjs +3 -3
- package/dist/lib/node-esm/operations/index.mjs.map +3 -3
- package/dist/lib/node-esm/{revert-workspace-A2K3JQFS.mjs → revert-workspace-QD63M2U7.mjs} +3 -3
- package/dist/lib/node-esm/{revert-workspace-A2K3JQFS.mjs.map → revert-workspace-QD63M2U7.mjs.map} +1 -1
- package/dist/lib/node-esm/{scroll-into-view-B2U4RQK7.mjs → scroll-into-view-G5M2EWK7.mjs} +3 -3
- package/dist/lib/node-esm/{scroll-into-view-B2U4RQK7.mjs.map → scroll-into-view-G5M2EWK7.mjs.map} +1 -1
- package/dist/lib/node-esm/{set-HCWNW76S.mjs → set-ERJCXZBY.mjs} +5 -5
- package/dist/lib/node-esm/{set-HCWNW76S.mjs.map → set-ERJCXZBY.mjs.map} +1 -1
- package/dist/lib/node-esm/{set-layout-mode-E27AI5KE.mjs → set-layout-mode-BOZD7744.mjs} +5 -10
- package/dist/lib/node-esm/set-layout-mode-BOZD7744.mjs.map +7 -0
- package/dist/lib/node-esm/{show-undo-YTZXH422.mjs → show-undo-H5BRBYDC.mjs} +3 -3
- package/dist/lib/node-esm/{show-undo-YTZXH422.mjs.map → show-undo-H5BRBYDC.mjs.map} +1 -1
- package/dist/lib/node-esm/{switch-workspace-AQCNGS4Y.mjs → switch-workspace-F54PXE5N.mjs} +4 -12
- package/dist/lib/node-esm/switch-workspace-F54PXE5N.mjs.map +7 -0
- package/dist/lib/node-esm/translations.mjs +58 -0
- package/dist/lib/node-esm/translations.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +1 -1
- package/dist/lib/node-esm/{change-companion-V6343HMY.mjs → update-companion-47LMKL5R.mjs} +11 -13
- package/dist/lib/node-esm/update-companion-47LMKL5R.mjs.map +7 -0
- package/dist/lib/node-esm/{update-complementary-7HIRM7OT.mjs → update-complementary-7VYYG7L2.mjs} +3 -3
- package/dist/lib/node-esm/{update-complementary-7HIRM7OT.mjs.map → update-complementary-7VYYG7L2.mjs.map} +1 -1
- package/dist/lib/node-esm/{update-dialog-F3JF7MBZ.mjs → update-dialog-CABL7OWW.mjs} +3 -3
- package/dist/lib/node-esm/{update-dialog-F3JF7MBZ.mjs.map → update-dialog-CABL7OWW.mjs.map} +1 -1
- package/dist/lib/node-esm/{update-plank-size-IIZKU7YR.mjs → update-plank-size-WYTSMZF2.mjs} +5 -5
- package/dist/lib/node-esm/{update-plank-size-IIZKU7YR.mjs.map → update-plank-size-WYTSMZF2.mjs.map} +1 -1
- package/dist/lib/node-esm/{update-popover-RO5QEH4C.mjs → update-popover-YZDYGL7G.mjs} +3 -3
- package/dist/lib/node-esm/{update-popover-RO5QEH4C.mjs.map → update-popover-YZDYGL7G.mjs.map} +1 -1
- package/dist/lib/node-esm/{update-sidebar-2RX6VLEK.mjs → update-sidebar-HV736LUN.mjs} +3 -3
- package/dist/lib/node-esm/{update-sidebar-2RX6VLEK.mjs.map → update-sidebar-HV736LUN.mjs.map} +1 -1
- package/dist/types/src/DeckPlugin.d.ts +1 -0
- package/dist/types/src/DeckPlugin.d.ts.map +1 -1
- package/dist/types/src/DeckPlugin.node.d.ts +4 -0
- package/dist/types/src/DeckPlugin.node.d.ts.map +1 -0
- package/dist/types/src/DeckPlugin.test.d.ts +2 -0
- package/dist/types/src/DeckPlugin.test.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/check-app-scheme.d.ts +1 -1
- package/dist/types/src/capabilities/check-app-scheme.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +18 -30
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-root.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings.d.ts +2 -13
- package/dist/types/src/capabilities/settings.d.ts.map +1 -1
- package/dist/types/src/capabilities/state.d.ts +16 -16
- package/dist/types/src/capabilities/state.d.ts.map +1 -1
- package/dist/types/src/capabilities/tools.d.ts.map +1 -1
- package/dist/types/src/capabilities/url-handler.d.ts +1 -1
- package/dist/types/src/capabilities/url-handler.d.ts.map +1 -1
- package/dist/types/src/components/DeckSettings/DeckSettings.d.ts.map +1 -1
- package/dist/types/src/components/DeckSettings/DeckSettings.stories.d.ts +42 -52
- package/dist/types/src/components/DeckSettings/DeckSettings.stories.d.ts.map +1 -1
- package/dist/types/src/components/Matrix/Matrix.d.ts +2 -2
- package/dist/types/src/components/Matrix/Matrix.d.ts.map +1 -1
- package/dist/types/src/components/Matrix/Matrix.stories.d.ts.map +1 -1
- package/dist/types/src/containers/Deck/Banner.d.ts +1 -1
- package/dist/types/src/containers/Deck/Banner.d.ts.map +1 -1
- package/dist/types/src/containers/Deck/Deck.d.ts.map +1 -1
- package/dist/types/src/containers/Deck/Deck.stories.d.ts +42 -52
- package/dist/types/src/containers/Deck/Deck.stories.d.ts.map +1 -1
- package/dist/types/src/containers/Deck/DeckContent.d.ts +4 -4
- package/dist/types/src/containers/Deck/DeckContent.d.ts.map +1 -1
- package/dist/types/src/containers/Deck/DeckRoot.d.ts +5 -8
- package/dist/types/src/containers/Deck/DeckRoot.d.ts.map +1 -1
- package/dist/types/src/containers/Deck/DeckViewport.d.ts +4 -7
- package/dist/types/src/containers/Deck/DeckViewport.d.ts.map +1 -1
- package/dist/types/src/containers/Deck/StatusBar.d.ts.map +1 -1
- package/dist/types/src/containers/DeckLayout/DeckLayout.d.ts.map +1 -1
- package/dist/types/src/containers/DeckLayout/DeckLayout.stories.d.ts +42 -52
- package/dist/types/src/containers/DeckLayout/DeckLayout.stories.d.ts.map +1 -1
- package/dist/types/src/containers/DeckLayout/Dialog.d.ts.map +1 -1
- package/dist/types/src/containers/DeckLayout/Popover.d.ts.map +1 -1
- package/dist/types/src/containers/DeckLayout/Toast.d.ts +1 -1
- package/dist/types/src/containers/DeckLayout/Toast.d.ts.map +1 -1
- package/dist/types/src/containers/DeckLayout/index.d.ts.map +1 -1
- package/dist/types/src/containers/Plank/Plank.d.ts +2 -2
- package/dist/types/src/containers/Plank/Plank.d.ts.map +1 -1
- package/dist/types/src/containers/Plank/Plank.stories.d.ts +42 -52
- package/dist/types/src/containers/Plank/Plank.stories.d.ts.map +1 -1
- package/dist/types/src/containers/Plank/PlankComponent.d.ts +2 -0
- package/dist/types/src/containers/Plank/PlankComponent.d.ts.map +1 -1
- package/dist/types/src/containers/Plank/PlankContent.d.ts +1 -1
- package/dist/types/src/containers/Plank/PlankControls.d.ts.map +1 -1
- package/dist/types/src/containers/Plank/PlankError.d.ts +1 -1
- package/dist/types/src/containers/Plank/PlankError.d.ts.map +1 -1
- package/dist/types/src/containers/Plank/PlankHeading.d.ts +2 -1
- package/dist/types/src/containers/Plank/PlankHeading.d.ts.map +1 -1
- package/dist/types/src/containers/Plank/PlankRoot.d.ts +2 -2
- package/dist/types/src/containers/Plank/PlankRoot.d.ts.map +1 -1
- package/dist/types/src/containers/Sidebar/ComplementarySidebar.d.ts.map +1 -1
- package/dist/types/src/containers/Sidebar/SidebarButton.d.ts +1 -1
- package/dist/types/src/containers/Sidebar/SidebarButton.d.ts.map +1 -1
- package/dist/types/src/hooks/useBreakpoints.d.ts +1 -1
- package/dist/types/src/hooks/useCompanions.d.ts.map +1 -1
- package/dist/types/src/hooks/useDeckCompanions.d.ts +2 -1
- package/dist/types/src/hooks/useDeckCompanions.d.ts.map +1 -1
- package/dist/types/src/hooks/useHoistStatusbar.d.ts.map +1 -1
- package/dist/types/src/hooks/useMainSize.d.ts.map +1 -1
- package/dist/types/src/hooks/useNodeActionExpander.d.ts.map +1 -1
- package/dist/types/src/hooks/useSelectedCompanion.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +3 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/layout.d.ts.map +1 -1
- package/dist/types/src/operations/add-toast.d.ts +1 -1
- package/dist/types/src/operations/add-toast.d.ts.map +1 -1
- package/dist/types/src/operations/adjust.d.ts +1 -1
- package/dist/types/src/operations/adjust.d.ts.map +1 -1
- package/dist/types/src/operations/close.d.ts +1 -1
- package/dist/types/src/operations/close.d.ts.map +1 -1
- package/dist/types/src/operations/definitions.d.ts +4 -7
- package/dist/types/src/operations/definitions.d.ts.map +1 -1
- package/dist/types/src/operations/helpers.d.ts.map +1 -1
- package/dist/types/src/operations/index.d.ts +1 -1
- package/dist/types/src/operations/index.d.ts.map +1 -1
- package/dist/types/src/operations/open.d.ts +1 -1
- package/dist/types/src/operations/open.d.ts.map +1 -1
- package/dist/types/src/operations/revert-workspace.d.ts +1 -1
- package/dist/types/src/operations/revert-workspace.d.ts.map +1 -1
- package/dist/types/src/operations/scroll-into-view.d.ts +1 -1
- package/dist/types/src/operations/scroll-into-view.d.ts.map +1 -1
- package/dist/types/src/operations/set-layout-mode.d.ts +1 -1
- package/dist/types/src/operations/set-layout-mode.d.ts.map +1 -1
- package/dist/types/src/operations/set.d.ts +1 -1
- package/dist/types/src/operations/set.d.ts.map +1 -1
- package/dist/types/src/operations/show-undo.d.ts +1 -1
- package/dist/types/src/operations/show-undo.d.ts.map +1 -1
- package/dist/types/src/operations/switch-workspace.d.ts +1 -1
- package/dist/types/src/operations/switch-workspace.d.ts.map +1 -1
- package/dist/types/src/operations/update-companion.d.ts +5 -0
- package/dist/types/src/operations/update-companion.d.ts.map +1 -0
- package/dist/types/src/operations/update-complementary.d.ts +1 -1
- package/dist/types/src/operations/update-complementary.d.ts.map +1 -1
- package/dist/types/src/operations/update-dialog.d.ts +1 -1
- package/dist/types/src/operations/update-dialog.d.ts.map +1 -1
- package/dist/types/src/operations/update-plank-size.d.ts +1 -1
- package/dist/types/src/operations/update-plank-size.d.ts.map +1 -1
- package/dist/types/src/operations/update-popover.d.ts +1 -1
- package/dist/types/src/operations/update-popover.d.ts.map +1 -1
- package/dist/types/src/operations/update-sidebar.d.ts +1 -1
- package/dist/types/src/operations/update-sidebar.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +42 -53
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Settings.d.ts +7 -6
- package/dist/types/src/types/Settings.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +18 -29
- package/dist/types/src/types/capabilities.d.ts.map +1 -1
- package/dist/types/src/types/events.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +0 -10
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/src/util/layoutAppliesTopbar.d.ts.map +1 -1
- package/dist/types/src/util/plank-url-params.d.ts.map +1 -1
- package/dist/types/src/util/sanitize-persisted-state.d.ts.map +1 -1
- package/dist/types/src/util/set-active.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +56 -55
- package/src/DeckPlugin.node.ts +17 -0
- package/src/DeckPlugin.test.ts +27 -0
- package/src/DeckPlugin.ts +6 -5
- package/src/capabilities/app-graph-builder.ts +2 -2
- package/src/capabilities/index.ts +1 -1
- package/src/capabilities/operation-handler.ts +1 -1
- package/src/capabilities/react-surface.tsx +1 -2
- package/src/capabilities/settings.ts +1 -1
- package/src/capabilities/tools.ts +3 -3
- package/src/capabilities/url-handler.ts +6 -1
- package/src/components/DeckSettings/DeckSettings.stories.tsx +2 -1
- package/src/components/DeckSettings/DeckSettings.tsx +8 -47
- package/src/components/Matrix/Matrix.stories.tsx +16 -12
- package/src/containers/Deck/Deck.stories.tsx +1 -1
- package/src/containers/Deck/DeckViewport.tsx +10 -10
- package/src/containers/DeckLayout/ActiveNode.tsx +2 -2
- package/src/containers/DeckLayout/DeckLayout.stories.tsx +17 -13
- package/src/containers/DeckLayout/Dialog.tsx +8 -2
- package/src/containers/DeckLayout/Popover.tsx +6 -4
- package/src/containers/Plank/Plank.stories.tsx +9 -7
- package/src/containers/Plank/PlankComponent.tsx +58 -21
- package/src/containers/Plank/PlankControls.tsx +2 -2
- package/src/containers/Plank/PlankError.tsx +1 -1
- package/src/containers/Plank/PlankHeading.tsx +16 -6
- package/src/containers/Plank/PlankRoot.tsx +2 -2
- package/src/containers/Sidebar/ComplementarySidebar.tsx +2 -1
- package/src/containers/Sidebar/Sidebar.tsx +2 -2
- package/src/containers/Sidebar/SidebarButton.tsx +7 -1
- package/src/hooks/useDeckCompanions.ts +2 -1
- package/src/index.ts +10 -2
- package/src/operations/add-toast.ts +1 -1
- package/src/operations/adjust.ts +3 -3
- package/src/operations/close.ts +1 -1
- package/src/operations/definitions.ts +5 -17
- package/src/operations/index.ts +2 -2
- package/src/operations/open.ts +1 -1
- package/src/operations/revert-workspace.ts +1 -1
- package/src/operations/scroll-into-view.ts +1 -1
- package/src/operations/set-layout-mode.ts +1 -1
- package/src/operations/set.ts +1 -1
- package/src/operations/show-undo.ts +1 -1
- package/src/operations/switch-workspace.ts +1 -1
- package/src/operations/{change-companion.ts → update-companion.ts} +5 -5
- package/src/operations/update-complementary.ts +1 -1
- package/src/operations/update-dialog.ts +1 -1
- package/src/operations/update-plank-size.ts +1 -1
- package/src/operations/update-popover.ts +1 -1
- package/src/operations/update-sidebar.ts +1 -1
- package/src/translations.ts +2 -12
- package/src/types/Settings.ts +31 -6
- package/src/types/schema.ts +0 -7
- package/dist/lib/browser/adjust-OXVHZTBE.mjs.map +0 -7
- package/dist/lib/browser/change-companion-Z3Q2UPX4.mjs.map +0 -7
- package/dist/lib/browser/chunk-2YNVGCOQ.mjs.map +0 -7
- package/dist/lib/browser/open-J5HV42UN.mjs.map +0 -7
- package/dist/lib/browser/set-layout-mode-DRNBZHE7.mjs.map +0 -7
- package/dist/lib/browser/switch-workspace-U7SPENHU.mjs.map +0 -7
- package/dist/lib/node-esm/adjust-G6FGZW6H.mjs.map +0 -7
- package/dist/lib/node-esm/change-companion-V6343HMY.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-GI5JXNBT.mjs.map +0 -7
- package/dist/lib/node-esm/open-KRCARMEB.mjs.map +0 -7
- package/dist/lib/node-esm/set-layout-mode-E27AI5KE.mjs.map +0 -7
- package/dist/lib/node-esm/switch-workspace-AQCNGS4Y.mjs.map +0 -7
- package/dist/types/src/operations/change-companion.d.ts +0 -5
- package/dist/types/src/operations/change-companion.d.ts.map +0 -1
- /package/dist/lib/browser/{chunk-BRZAVPMC.mjs.map → chunk-LSZ47AY3.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-MB4SDDVY.mjs.map → chunk-KY7ZCANM.mjs.map} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openSubjectsOnActiveDeck
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZYYOSX5I.mjs";
|
|
4
4
|
import {
|
|
5
5
|
computeActiveUpdates
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LSZ47AY3.mjs";
|
|
7
7
|
import {
|
|
8
8
|
updateActiveDeck
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GLB73Q6U.mjs";
|
|
10
10
|
import {
|
|
11
11
|
DeckCapabilities
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MARE7ZFK.mjs";
|
|
13
13
|
import "./chunk-J5LGTIGS.mjs";
|
|
14
14
|
|
|
15
15
|
// src/operations/open.ts
|
|
@@ -17,9 +17,9 @@ import * as Effect from "effect/Effect";
|
|
|
17
17
|
import * as Option from "effect/Option";
|
|
18
18
|
import { Capabilities, Capability } from "@dxos/app-framework";
|
|
19
19
|
import { AppCapabilities, LayoutOperation, createEdgeExistenceChecker, expandPath, validateNavigationTarget } from "@dxos/app-toolkit";
|
|
20
|
+
import { Operation } from "@dxos/compute";
|
|
20
21
|
import { Context } from "@dxos/context";
|
|
21
22
|
import { Obj } from "@dxos/echo";
|
|
22
|
-
import { Operation } from "@dxos/operation";
|
|
23
23
|
import { AttentionCapabilities } from "@dxos/plugin-attention/types";
|
|
24
24
|
import { ClientCapabilities } from "@dxos/plugin-client/types";
|
|
25
25
|
import { Graph } from "@dxos/plugin-graph";
|
|
@@ -30,10 +30,7 @@ var handler = LayoutOperation.Open.pipe(Operation.withHandler(Effect.fnUntraced(
|
|
|
30
30
|
const attention = yield* Capability.get(AttentionCapabilities.Attention);
|
|
31
31
|
const capabilities = yield* Capability.Service;
|
|
32
32
|
const pathResolvers = capabilities.getAll(AppCapabilities.NavigationPathResolver);
|
|
33
|
-
const checkRemoteExistence = yield* Capability.get(ClientCapabilities.Client).pipe(Effect.map((client) => createEdgeExistenceChecker((spaceId, body) => client.edge.http.execQuery(new Context(void 0, {
|
|
34
|
-
F: __dxlog_file,
|
|
35
|
-
L: 40
|
|
36
|
-
}), spaceId, body))), Effect.catchAll(() => Effect.succeed(void 0)));
|
|
33
|
+
const checkRemoteExistence = yield* Capability.get(ClientCapabilities.Client).pipe(Effect.map((client) => createEdgeExistenceChecker((spaceId, body) => client.edge.http.execQuery(new Context(void 0, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 25 }), spaceId, body))), Effect.catchAll(() => Effect.succeed(void 0)));
|
|
37
34
|
if (input.navigation === "immediate") {
|
|
38
35
|
for (const subjectId of input.subject) {
|
|
39
36
|
expandPath(graph, subjectId);
|
|
@@ -147,4 +144,4 @@ var open_default = handler;
|
|
|
147
144
|
export {
|
|
148
145
|
open_default as default
|
|
149
146
|
};
|
|
150
|
-
//# sourceMappingURL=open-
|
|
147
|
+
//# sourceMappingURL=open-OPFOOHCQ.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/open.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport * as Option from 'effect/Option';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport {\n AppCapabilities,\n LayoutOperation,\n createEdgeExistenceChecker,\n expandPath,\n validateNavigationTarget,\n} from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\nimport { Context } from '@dxos/context';\nimport { Obj } from '@dxos/echo';\nimport { AttentionCapabilities } from '@dxos/plugin-attention/types';\nimport { ClientCapabilities } from '@dxos/plugin-client/types';\nimport { Graph } from '@dxos/plugin-graph';\nimport { ObservabilityOperation } from '@dxos/plugin-observability/operations';\n\nimport { openSubjectsOnActiveDeck } from '../layout';\nimport { DeckCapabilities } from '../types';\nimport { computeActiveUpdates } from '../util';\nimport { updateActiveDeck } from './helpers';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.Open> = LayoutOperation.Open.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n const { graph } = yield* Capability.get(AppCapabilities.AppGraph);\n const attention = yield* Capability.get(AttentionCapabilities.Attention);\n\n // Validate navigation targets, redirecting to 404 if not found.\n const capabilities = yield* Capability.Service;\n const pathResolvers = capabilities.getAll(AppCapabilities.NavigationPathResolver);\n const checkRemoteExistence = yield* Capability.get(ClientCapabilities.Client).pipe(\n Effect.map((client) =>\n createEdgeExistenceChecker((spaceId, body) => client.edge.http.execQuery(new Context(), spaceId, body)),\n ),\n Effect.catchAll(() => Effect.succeed(undefined)),\n );\n\n // Immediate: skip 404 / resolver checks but still expand the path (same as validate’s first step).\n if (input.navigation === 'immediate') {\n for (const subjectId of input.subject) {\n expandPath(graph, subjectId);\n }\n }\n\n const validatedSubjects = yield* Effect.all(\n input.subject.map((subjectId) =>\n input.navigation === 'immediate'\n ? Effect.succeed(subjectId)\n : validateNavigationTarget({ graph, subjectId, pathResolvers, checkRemoteExistence }),\n ),\n );\n input = { ...input, subject: validatedSubjects };\n\n {\n const state = yield* Capabilities.getAtomValue(DeckCapabilities.State);\n if (input.workspace && state.activeDeck !== input.workspace) {\n yield* Operation.invoke(LayoutOperation.SwitchWorkspace, { subject: input.workspace });\n }\n }\n\n // Dedup subjects against the active deck using DXN identity.\n // The same object can appear under different graph paths (e.g., via collections vs types).\n // Resolve each subject's DXN and, if it matches an already-open deck item, remap the\n // subject to the existing deck entry so that openEntry's exact-match check succeeds.\n // Only needed in multi (deck) mode; solo mode replaces the single visible item anyway.\n {\n const deck = yield* DeckCapabilities.getDeck();\n const active = !deck.solo && deck.initialized ? deck.active : [];\n if (active.length > 0 && input.subject.length > 0) {\n const resolveDxn = (qualifiedPath: string) =>\n Effect.reduce(pathResolvers, Option.none<string>(), (acc, resolver) =>\n Option.isSome(acc)\n ? Effect.succeed(acc)\n : resolver(qualifiedPath).pipe(\n Effect.map((opt) => Option.map(opt, (dxn) => dxn.toString())),\n Effect.catchAll(() => Effect.succeed(Option.none<string>())),\n ),\n );\n\n // Build DXN → deck item ID map for active items.\n const deckDxnMap = new Map<string, string>();\n yield* Effect.all(\n active.map((deckId) =>\n resolveDxn(deckId).pipe(\n Effect.map((opt) => {\n if (Option.isSome(opt)) {\n deckDxnMap.set(opt.value, deckId);\n }\n }),\n ),\n ),\n { concurrency: 'unbounded' },\n );\n\n // Remap subjects whose DXN matches an existing deck item.\n if (deckDxnMap.size > 0) {\n const remapped = yield* Effect.all(\n input.subject.map((subjectId) =>\n resolveDxn(subjectId).pipe(\n Effect.map((opt) => {\n if (Option.isSome(opt)) {\n const existing = deckDxnMap.get(opt.value);\n if (existing && existing !== subjectId) {\n return existing;\n }\n }\n return subjectId;\n }),\n ),\n ),\n { concurrency: 'unbounded' },\n );\n input = { ...input, subject: remapped };\n }\n }\n }\n\n // Compute the next active deck state and apply it.\n // In solo or uninitialized mode the subject list replaces the deck entirely.\n // In multi (deck) mode, subjects are merged via openSubjectsOnActiveDeck which\n // uses stack semantics (truncate after pivot, then push new entries).\n let previouslyOpenIds: Set<string>;\n {\n const deck = yield* DeckCapabilities.getDeck();\n previouslyOpenIds = new Set<string>(deck.solo ? [deck.solo] : deck.active);\n const next =\n deck.solo || !deck.initialized\n ? [...input.subject]\n : openSubjectsOnActiveDeck(deck.active, input.subject, {\n pivotId: input.pivotId,\n key: input.key,\n });\n\n const { deckUpdates, toAttend: _toAttend } = computeActiveUpdates({ next, deck, attention });\n yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state) => updateActiveDeck(state, deckUpdates));\n }\n\n // Schedule side-effects for the newly opened items: scroll into view, expose in\n // the navigation sidebar, and emit observability events.\n // When nothing is newly opened (subject was already visible), the fallback\n // `input.subject[0]` still triggers scroll and expose so the user is taken there.\n {\n const deck = yield* DeckCapabilities.getDeck();\n const ids = deck.solo ? [deck.solo] : deck.active;\n const newlyOpen = ids.filter((i: string) => !previouslyOpenIds.has(i));\n\n if (input.scrollIntoView !== false && (newlyOpen[0] ?? input.subject[0])) {\n yield* Operation.schedule(LayoutOperation.ScrollIntoView, {\n subject: newlyOpen[0] ?? input.subject[0],\n });\n }\n\n if (newlyOpen[0] ?? input.subject[0]) {\n yield* Operation.schedule(LayoutOperation.Expose, { subject: newlyOpen[0] ?? input.subject[0] });\n }\n\n for (const subjectId of newlyOpen) {\n const typename = Option.match(Graph.getNode(graph, subjectId), {\n onNone: () => undefined,\n onSome: (node) => {\n const active = node.data;\n return Obj.isObject(active) ? Obj.getTypename(active) : undefined;\n },\n });\n yield* Operation.schedule(ObservabilityOperation.SendEvent, {\n name: 'navigation.activate',\n properties: { subjectId, typename },\n });\n }\n }\n\n return validatedSubjects;\n }),\n ),\n);\n\nexport default handler;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;AAIA,YAAYA,YAAY;AACxB,YAAYC,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SACEC,iBACAC,iBACAC,4BACAC,YACAC,gCACK;AACP,SAASC,iBAAiB;AAC1B,SAASC,eAAe;AACxB,SAASC,WAAW;AACpB,SAASC,6BAA6B;AACtC,SAASC,0BAA0B;AACnC,SAASC,aAAa;AACtB,SAASC,8BAA8B;AAOvC,IAAA,eAAoEC;IAI9D,UAAMC,gBAAmBC,KAAAA,KAAWC,UAAIC,YAAsBC,kBAAS,WAAA,OAAA;AAEvE,QAAA,EAAA,MAAA,IAAA,OAAA,WAAA,IAAA,gBAAA,QAAgE;AAChE,QAAMC,YAAAA,OAAe,WAAOJ,IAAWK,sBAAO,SAAA;AAE9C,QAAMC,eAAAA,OAAAA,WAA8BN;AAOpC,QAAA,gBAAA,aAAA,OAAA,gBAAA,sBAAA;AACA,QAAIO,uBAAqB,OAAA,WAAa,IAAA,mBAAA,MAAA,EAAA,KAAA,WAAA,CAAA,WAAA,2BAAA,CAAA,SAAA,SAAA,OAAA,KAAA,KAAA,UAAA,IAAA,QAAA,QAAA,EAAA,YAAA,YAAA,GAAA,cAAA,GAAA,GAAA,CAAA,GAAA,SAAA,IAAA,CAAA,CAAA,GAAA,gBAAA,MAAA,eAAA,MAAA,CAAA,CAAA;YAElCC,eAAWC,aAAOC;AACpB,eAAA,aAAA,MAAA,SAAA;AACF,iBAAA,OAAA,SAAA;IAEA;;4BAI0CA,OAAAA,WAAAA,MAAAA,QAAAA,IAAAA,CAAAA,cAAAA,MAAAA,eAAAA,cAAAA,eAAAA,SAAAA,IAAAA,yBAAAA;IAAWC;IAAeL;IAAqB;IAGjF;EAAE,CAAA,CAAA,CAAGC;UAAOK;IAA2B,GAAA;IAE/C,SAAA;;;UAGI,QAAOC,OAAUC,aAAOhB,aAAgBiB,iBAAiB,KAAA;cAAEH,aAAeI,MAAAA,eAAS,MAAA,WAAA;AAAC,aAAA,UAAA,OAAA,gBAAA,iBAAA;QACtF,SAAA,MAAA;MACF,CAAA;IAEA;EACA;;AAOE,UAAIC,OAAOC,OAAS,iBAAWN,QAAc;UAC3C,SAAMO,CAAAA,KAAAA,QAAcC,KAAAA,cACXC,KAAM,SAACV,CAAAA;QAShB,OAAA,SAAA,KAAA,MAAA,QAAA,SAAA,GAAA;AACA,YAAMW,aAAa,CAAA,kBAAIC,cAAAA,eAAAA,YAAAA,GAAAA,CAAAA,KAAAA,aAAAA,cAAAA,GAAAA,IAAAA,eAAAA,GAAAA,IAAAA,SAAAA,aAAAA,EAAAA,KAAAA,WAAAA,CAAAA,QAAAA,WAAAA,KAAAA,CAAAA,QAAAA,IAAAA,SAAAA,CAAAA,CAAAA,GAAAA,gBAAAA,MAAAA,eAAAA,YAAAA,CAAAA,CAAAA,CAAAA,CAAAA;yBAKJC,oBAAAA,IAAOC;aAChBH,WAAAA,OAAWI,IAAID,CAAAA,WAAWE,WAAAA,MAAAA,EAAAA,KAAAA,WAAAA,CAAAA,QAAAA;AAC5B,YAAA,cAAA,GAAA,GAAA;AAIN,qBAAA,IAAA,IAAA,OAAA,MAAA;QAAEC;MAAyB,CAAA,CAAA,CAAA,GAAA;QAG7B,aAAA;MACA,CAAA;qBAKU,OAAIC,GAAOL;yBACT,OAAiBF,WAAAA,MAAWrB,QAAQ6B,IAAK,CAAA,cAAA,WAAA,SAAA,EAAA,KAAA,WAAA,CAAA,QAAA;cACrCC,cAAAA,GAAYA,GAAAA;kBACd,WAAOA,WAAAA,IAAAA,IAAAA,KAAAA;AACT,gBAAA,YAAA,aAAA,WAAA;AACF,qBAAA;YACA;UACF;AAGFH,iBAAAA;QAAyB,CAAA,CAAA,CAAA,GAAA;UAE7BrB,aAAQ;;gBAAYK;UAAkB,GAAA;UACxC,SAAA;QACF;MACF;IAEA;EACA;MAKE;;UACiDoB,OAAS,OAAA,iBAAA,QAAA;wBAAe,IAAA,IAAA,KAAA,OAAA;MACzE,KAAMC;aAEI1B,MAAMK;UACVsB,OAAAA,KAAAA,QAAAA,CAAAA,KAAyBF,cAAazB;MACpC4B,GAAAA,MAAS5B;QACT6B,yBAAc,KAAA,QAAA,MAAA,SAAA;MAChB,SAAA,MAAA;MAEN,KAAQC,MAAAA;;UAAkEL,EAAAA,aAAAA,UAAAA,UAAAA,IAAAA,qBAAAA;MAAMjC;MAAU;MAC1F;IACF,CAAA;AAEA,WAAA,aAAA,gBAAA,iBAAA,OAAA,CAAA,UAAA,iBAAgF,OAAA,WAAA,CAAA;EAChF;;UAK2BiC,OAAS,OAAA,iBAAA,QAAA;UAAIA,MAAKf,KAAM,OAAA;MACjD,KAAMqB;IAEN,IAAI/B,KAAAA;UACF,YAAOM,IAAU0B,OAAQ,CAACzC,MAAAA,CAAAA,kBAAgB0C,IAAAA,CAAAA,CAAAA;cACxC5B,mBAAqB,UAAUA,UAAU,CAAA,KAAA,MAAA,QAAA,CAAA,IAAA;AAC3C,aAAA,UAAA,SAAA,gBAAA,gBAAA;QACF,SAAA,UAAA,CAAA,KAAA,MAAA,QAAA,CAAA;MAEI0B,CAAAA;;kBACkD1B,CAAAA,KAAS0B,MAAS,QAAO/B,CAAAA,GAAAA;AAAiB,aAAA,UAAA,SAAA,gBAAA,QAAA;QAChG,SAAA,UAAA,CAAA,KAAA,MAAA,QAAA,CAAA;MAEA,CAAK;;eAEDkC,aAAcC,WAAAA;YACdC,WAASC,aAAAA,MAAAA,QAAAA,OAAAA,SAAAA,GAAAA;gBACP,MAAM3B;gBACN,CAAA,SAAW4B;AACb,gBAAA,SAAA,KAAA;AACF,iBAAA,IAAA,SAAA,MAAA,IAAA,IAAA,YAAA,MAAA,IAAA;QACA;;aAEEC,UAAY,SAAA,uBAAA,WAAA;cAAEpC;oBAAWqC;UAAS;UACpC;QACF;MACF,CAAA;IAEA;EACF;AAIJ,SAAA;;;",
|
|
6
|
+
"names": ["Effect", "Option", "Capabilities", "Capability", "AppCapabilities", "LayoutOperation", "createEdgeExistenceChecker", "expandPath", "validateNavigationTarget", "Operation", "Context", "Obj", "AttentionCapabilities", "ClientCapabilities", "Graph", "ObservabilityOperation", "LayoutOperation", "attention", "Capability", "get", "AttentionCapabilities", "Attention", "capabilities", "Service", "checkRemoteExistence", "input", "expandPath", "graph", "subjectId", "pathResolvers", "subject", "Operation", "invoke", "SwitchWorkspace", "workspace", "active", "length", "resolveDxn", "qualifiedPath", "reduce", "deckDxnMap", "Map", "isSome", "opt", "set", "deckId", "concurrency", "Option", "value", "existing", "deck", "next", "openSubjectsOnActiveDeck", "pivotId", "key", "deckUpdates", "newlyOpen", "schedule", "ScrollIntoView", "onNone", "undefined", "onSome", "node", "isObject", "properties", "typename"]
|
|
7
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
definitions_exports
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-XM263CQU.mjs";
|
|
4
4
|
import "../chunk-J5LGTIGS.mjs";
|
|
5
5
|
|
|
6
6
|
// src/operations/index.ts
|
|
7
|
-
import { OperationHandlerSet } from "@dxos/
|
|
8
|
-
var DeckOperationHandlerSet = OperationHandlerSet.lazy(() => import("../add-toast-
|
|
7
|
+
import { OperationHandlerSet } from "@dxos/compute";
|
|
8
|
+
var DeckOperationHandlerSet = OperationHandlerSet.lazy(() => import("../add-toast-JWJOQNVL.mjs"), () => import("../adjust-RG6LIQLX.mjs"), () => import("../close-URA766JO.mjs"), () => import("../open-OPFOOHCQ.mjs"), () => import("../revert-workspace-KP2Y4QLG.mjs"), () => import("../scroll-into-view-S5H2FGSQ.mjs"), () => import("../set-AEKFFSIX.mjs"), () => import("../set-layout-mode-CWIGQDFZ.mjs"), () => import("../show-undo-XFVEDKYC.mjs"), () => import("../switch-workspace-DSAAXZSI.mjs"), () => import("../update-companion-IDBBBHT3.mjs"), () => import("../update-complementary-55PNO5MD.mjs"), () => import("../update-dialog-VNARIANC.mjs"), () => import("../update-plank-size-H63PRRXS.mjs"), () => import("../update-popover-ODTPZ3JL.mjs"), () => import("../update-sidebar-JDVQ36WK.mjs"));
|
|
9
9
|
export {
|
|
10
10
|
definitions_exports as DeckOperation,
|
|
11
11
|
DeckOperationHandlerSet
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/operations/index.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/
|
|
5
|
-
"mappings": ";;;;;;AAIA,SAASA,2BAA2B;AAI7B,IAAMC,
|
|
6
|
-
"names": ["OperationHandlerSet", "DeckOperationHandlerSet", "
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/compute';\n\nexport * as DeckOperation from './definitions';\n\nexport const DeckOperationHandlerSet = OperationHandlerSet.lazy(\n () => import('./add-toast'),\n () => import('./adjust'),\n () => import('./close'),\n () => import('./open'),\n () => import('./revert-workspace'),\n () => import('./scroll-into-view'),\n () => import('./set'),\n () => import('./set-layout-mode'),\n () => import('./show-undo'),\n () => import('./switch-workspace'),\n () => import('./update-companion'),\n () => import('./update-complementary'),\n () => import('./update-dialog'),\n () => import('./update-plank-size'),\n () => import('./update-popover'),\n () => import('./update-sidebar'),\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;AAIA,SAASA,2BAA2B;AAI7B,IAAMC,0BAA0BD,oBAAoBE,KACzD,MAAM,OAAO,2BAAA,GACb,MAAM,OAAO,wBAAA,GACb,MAAM,OAAO,uBAAA,GACb,MAAM,OAAO,sBAAA,GACb,MAAM,OAAO,kCAAA,GACb,MAAM,OAAO,kCAAA,GACb,MAAM,OAAO,qBAAA,GACb,MAAM,OAAO,iCAAA,GACb,MAAM,OAAO,2BAAA,GACb,MAAM,OAAO,kCAAA,GACb,MAAM,OAAO,kCAAA,GACb,MAAM,OAAO,sCAAA,GACb,MAAM,OAAO,+BAAA,GACb,MAAM,OAAO,mCAAA,GACb,MAAM,OAAO,gCAAA,GACb,MAAM,OAAO,gCAAA,CAAA;",
|
|
6
|
+
"names": ["OperationHandlerSet", "DeckOperationHandlerSet", "lazy"]
|
|
7
7
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeckCapabilities
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MARE7ZFK.mjs";
|
|
4
4
|
import "./chunk-J5LGTIGS.mjs";
|
|
5
5
|
|
|
6
6
|
// src/operations/revert-workspace.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/
|
|
10
|
+
import { Operation } from "@dxos/compute";
|
|
11
11
|
var handler = LayoutOperation.RevertWorkspace.pipe(Operation.withHandler(Effect.fnUntraced(function* () {
|
|
12
12
|
const state = yield* Capabilities.getAtomValue(DeckCapabilities.State);
|
|
13
13
|
yield* Operation.invoke(LayoutOperation.SwitchWorkspace, {
|
|
@@ -18,4 +18,4 @@ var revert_workspace_default = handler;
|
|
|
18
18
|
export {
|
|
19
19
|
revert_workspace_default as default
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=revert-workspace-
|
|
21
|
+
//# sourceMappingURL=revert-workspace-KP2Y4QLG.mjs.map
|
package/dist/lib/browser/{revert-workspace-VWNN7RYF.mjs.map → revert-workspace-KP2Y4QLG.mjs.map}
RENAMED
|
@@ -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/
|
|
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-
|
|
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/
|
|
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-
|
|
21
|
+
//# sourceMappingURL=scroll-into-view-S5H2FGSQ.mjs.map
|
package/dist/lib/browser/{scroll-into-view-CA7E3PSO.mjs.map → scroll-into-view-S5H2FGSQ.mjs.map}
RENAMED
|
@@ -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/
|
|
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-
|
|
3
|
+
} from "./chunk-LSZ47AY3.mjs";
|
|
4
4
|
import {
|
|
5
5
|
updateActiveDeck
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GLB73Q6U.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DeckCapabilities
|
|
9
|
-
} from "./chunk-
|
|
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/
|
|
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-
|
|
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/
|
|
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-
|
|
3
|
+
} from "./chunk-GLB73Q6U.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeckCapabilities,
|
|
6
6
|
getMode,
|
|
7
7
|
isLayoutMode
|
|
8
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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/
|
|
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-
|
|
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/
|
|
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-
|
|
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-
|
|
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
|
+
}
|
|
@@ -1,34 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChangeCompanion
|
|
3
|
-
} from "./chunk-2YNVGCOQ.mjs";
|
|
4
1
|
import {
|
|
5
2
|
updateActiveDeck
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GLB73Q6U.mjs";
|
|
7
4
|
import {
|
|
8
5
|
DeckCapabilities
|
|
9
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MARE7ZFK.mjs";
|
|
10
7
|
import "./chunk-J5LGTIGS.mjs";
|
|
11
8
|
|
|
12
|
-
// src/operations/
|
|
9
|
+
// src/operations/update-companion.ts
|
|
13
10
|
import * as Effect from "effect/Effect";
|
|
14
11
|
import { Capabilities } from "@dxos/app-framework";
|
|
15
|
-
import {
|
|
12
|
+
import { LayoutOperation } from "@dxos/app-toolkit";
|
|
13
|
+
import { Operation } from "@dxos/compute";
|
|
16
14
|
import { getLinkedVariant } from "@dxos/react-ui-attention";
|
|
17
|
-
var handler =
|
|
18
|
-
if (input.
|
|
15
|
+
var handler = LayoutOperation.UpdateCompanion.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
|
|
16
|
+
if (input.subject === null) {
|
|
19
17
|
yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state) => updateActiveDeck(state, {
|
|
20
18
|
companionOpen: false
|
|
21
19
|
}));
|
|
22
20
|
} else {
|
|
23
|
-
const variant = getLinkedVariant(input.
|
|
21
|
+
const variant = getLinkedVariant(input.subject);
|
|
24
22
|
yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state) => updateActiveDeck(state, {
|
|
25
23
|
companionOpen: true,
|
|
26
24
|
companionVariant: variant
|
|
27
25
|
}));
|
|
28
26
|
}
|
|
29
27
|
})));
|
|
30
|
-
var
|
|
28
|
+
var update_companion_default = handler;
|
|
31
29
|
export {
|
|
32
|
-
|
|
30
|
+
update_companion_default as default
|
|
33
31
|
};
|
|
34
|
-
//# sourceMappingURL=
|
|
32
|
+
//# sourceMappingURL=update-companion-IDBBBHT3.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,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
|
+
"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
|
+
}
|
package/dist/lib/browser/{update-complementary-W6UVLWLI.mjs → update-complementary-55PNO5MD.mjs}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeckCapabilities
|
|
3
|
-
} from "./chunk-
|
|
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/
|
|
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-
|
|
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/
|
|
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-
|
|
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/
|
|
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-
|
|
29
|
+
//# sourceMappingURL=update-dialog-VNARIANC.mjs.map
|