@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,20 +1,20 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
updateActiveDeck
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SHSR2CYO.mjs";
|
|
5
5
|
import {
|
|
6
6
|
DeckCapabilities,
|
|
7
7
|
getMode,
|
|
8
8
|
isLayoutMode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FO7YDJZ3.mjs";
|
|
10
10
|
import "./chunk-HSLMI22Q.mjs";
|
|
11
11
|
|
|
12
12
|
// src/operations/set-layout-mode.ts
|
|
13
13
|
import * as Effect from "effect/Effect";
|
|
14
14
|
import { Capabilities } from "@dxos/app-framework";
|
|
15
15
|
import { LayoutOperation } from "@dxos/app-toolkit";
|
|
16
|
+
import { Operation } from "@dxos/compute";
|
|
16
17
|
import { log } from "@dxos/log";
|
|
17
|
-
import { Operation } from "@dxos/operation";
|
|
18
18
|
import { isNonNullable } from "@dxos/util";
|
|
19
19
|
var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-deck/src/operations/set-layout-mode.ts";
|
|
20
20
|
var handler = LayoutOperation.SetLayoutMode.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
|
|
@@ -76,16 +76,11 @@ var handler = LayoutOperation.SetLayoutMode.pipe(Operation.withHandler(Effect.fn
|
|
|
76
76
|
const deckUpdates = computeModeUpdate(state.previousMode[state.activeDeck]);
|
|
77
77
|
yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state2) => updateActiveDeck(state2, deckUpdates));
|
|
78
78
|
} else {
|
|
79
|
-
log.warn("Invalid layout mode", input, {
|
|
80
|
-
F: __dxlog_file,
|
|
81
|
-
L: 78,
|
|
82
|
-
S: this,
|
|
83
|
-
C: (f, a) => f(...a)
|
|
84
|
-
});
|
|
79
|
+
log.warn("Invalid layout mode", input, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 74, S: this });
|
|
85
80
|
}
|
|
86
81
|
})));
|
|
87
82
|
var set_layout_mode_default = handler;
|
|
88
83
|
export {
|
|
89
84
|
set_layout_mode_default as default
|
|
90
85
|
};
|
|
91
|
-
//# sourceMappingURL=set-layout-mode-
|
|
86
|
+
//# sourceMappingURL=set-layout-mode-BOZD7744.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,13 +1,13 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
DeckCapabilities
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FO7YDJZ3.mjs";
|
|
5
5
|
import "./chunk-HSLMI22Q.mjs";
|
|
6
6
|
|
|
7
7
|
// src/operations/show-undo.ts
|
|
8
8
|
import * as Effect from "effect/Effect";
|
|
9
9
|
import { Capabilities, Capability, UndoOperation } from "@dxos/app-framework";
|
|
10
|
-
import { Operation } from "@dxos/
|
|
10
|
+
import { Operation } from "@dxos/compute";
|
|
11
11
|
import { meta } from "#meta";
|
|
12
12
|
var handler = UndoOperation.ShowUndo.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
|
|
13
13
|
const historyTracker = yield* Capability.get(Capabilities.HistoryTracker);
|
|
@@ -57,4 +57,4 @@ var show_undo_default = handler;
|
|
|
57
57
|
export {
|
|
58
58
|
show_undo_default as default
|
|
59
59
|
};
|
|
60
|
-
//# sourceMappingURL=show-undo-
|
|
60
|
+
//# sourceMappingURL=show-undo-H5BRBYDC.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
|
}
|
|
@@ -2,15 +2,15 @@ import { createRequire } from 'node:module';const require = createRequire(import
|
|
|
2
2
|
import {
|
|
3
3
|
DeckCapabilities,
|
|
4
4
|
defaultDeck
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FO7YDJZ3.mjs";
|
|
6
6
|
import "./chunk-HSLMI22Q.mjs";
|
|
7
7
|
|
|
8
8
|
// src/operations/switch-workspace.ts
|
|
9
9
|
import * as Effect from "effect/Effect";
|
|
10
10
|
import { Capabilities, Capability } from "@dxos/app-framework";
|
|
11
11
|
import { AppCapabilities, isPinnedWorkspace, LayoutOperation } from "@dxos/app-toolkit";
|
|
12
|
+
import { Operation } from "@dxos/compute";
|
|
12
13
|
import { invariant } from "@dxos/invariant";
|
|
13
|
-
import { Operation } from "@dxos/operation";
|
|
14
14
|
import { Graph, Node } from "@dxos/plugin-graph";
|
|
15
15
|
var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-deck/src/operations/switch-workspace.ts";
|
|
16
16
|
var handler = LayoutOperation.SwitchWorkspace.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
|
|
@@ -36,15 +36,7 @@ var handler = LayoutOperation.SwitchWorkspace.pipe(Operation.withHandler(Effect.
|
|
|
36
36
|
{
|
|
37
37
|
const state = yield* Capabilities.getAtomValue(DeckCapabilities.State);
|
|
38
38
|
const deck = state.decks[input.subject];
|
|
39
|
-
invariant(deck, `Deck not found: ${input.subject}`, {
|
|
40
|
-
F: __dxlog_file,
|
|
41
|
-
L: 42,
|
|
42
|
-
S: this,
|
|
43
|
-
A: [
|
|
44
|
-
"deck",
|
|
45
|
-
"`Deck not found: ${input.subject}`"
|
|
46
|
-
]
|
|
47
|
-
});
|
|
39
|
+
invariant(deck, `Deck not found: ${input.subject}`, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 36, S: this, A: ["deck", "`Deck not found: ${input.subject}`"] });
|
|
48
40
|
const first = deck.solo ? deck.solo : deck.active[0];
|
|
49
41
|
if (first) {
|
|
50
42
|
yield* Operation.schedule(LayoutOperation.ScrollIntoView, {
|
|
@@ -66,4 +58,4 @@ var switch_workspace_default = handler;
|
|
|
66
58
|
export {
|
|
67
59
|
switch_workspace_default as default
|
|
68
60
|
};
|
|
69
|
-
//# sourceMappingURL=switch-workspace-
|
|
61
|
+
//# sourceMappingURL=switch-workspace-F54PXE5N.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,58 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import "./chunk-HSLMI22Q.mjs";
|
|
3
|
+
|
|
4
|
+
// src/translations.ts
|
|
5
|
+
import { meta } from "#meta";
|
|
6
|
+
var translations = [
|
|
7
|
+
{
|
|
8
|
+
"en-US": {
|
|
9
|
+
[meta.id]: {
|
|
10
|
+
"plugin.name": "Deck",
|
|
11
|
+
"settings.title": "Deck settings",
|
|
12
|
+
"main-header.label": "Main header",
|
|
13
|
+
"open-navigation-sidebar.label": "Open sidebar",
|
|
14
|
+
"collapse-navigation-sidebar.label": "Close sidebar",
|
|
15
|
+
"open-complementary-sidebar.label": "Open context sidebar",
|
|
16
|
+
"close-complementary-sidebar.label": "Close context sidebar",
|
|
17
|
+
"sidebar.title": "Navigation sidebar",
|
|
18
|
+
"complementary-sidebar.title": "Context sidebar",
|
|
19
|
+
"plugin-error.message": "Content failed to render.",
|
|
20
|
+
"content-fallback.message": "Unsupported",
|
|
21
|
+
"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.",
|
|
22
|
+
"toggle-fullscreen.label": "Toggle fullscreen",
|
|
23
|
+
"undo-available.label": "Click to undo previous action.",
|
|
24
|
+
"undo-action.label": "Undo",
|
|
25
|
+
"undo-action.alt": "Undo previous action",
|
|
26
|
+
"undo-close.label": "Dismiss",
|
|
27
|
+
"error-fallback.message": "Unable to open this object",
|
|
28
|
+
"plank-heading-fallback.label": "Untitled",
|
|
29
|
+
"actions-menu.label": "Options",
|
|
30
|
+
"settings.deck.label": "Disable deck",
|
|
31
|
+
"pending.heading": "Loading\u2026",
|
|
32
|
+
"insert-plank.label": "Open",
|
|
33
|
+
"resize.label": "Drag to resize",
|
|
34
|
+
"pin-start.label": "Pin to the left sidebar",
|
|
35
|
+
"pin-end.label": "Pin to the right sidebar",
|
|
36
|
+
"increment-start.label": "Move to the left",
|
|
37
|
+
"increment-end.label": "Move to the right",
|
|
38
|
+
"show-deck-plank.label": "Return to deck",
|
|
39
|
+
"show-solo-plank.label": "Maximize",
|
|
40
|
+
"exit-fullscreen.label": "Exit fullscreen",
|
|
41
|
+
"show-fullscreen-plank.label": "Fullscreen",
|
|
42
|
+
"close.label": "Close",
|
|
43
|
+
"minify.label": "Minify",
|
|
44
|
+
"open-companion.label": "Open companion",
|
|
45
|
+
"close-companion.label": "Close companion",
|
|
46
|
+
"close-current.label": "Close current plank",
|
|
47
|
+
"close-others.label": "Close other planks",
|
|
48
|
+
"close-all.label": "Close all planks",
|
|
49
|
+
"close-navigation-sidebar.button": "Close",
|
|
50
|
+
"companion-plank-heading-fallback.label": "Related"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
];
|
|
55
|
+
export {
|
|
56
|
+
translations
|
|
57
|
+
};
|
|
58
|
+
//# 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,35 +1,33 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
ChangeCompanion
|
|
4
|
-
} from "./chunk-GI5JXNBT.mjs";
|
|
5
2
|
import {
|
|
6
3
|
updateActiveDeck
|
|
7
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SHSR2CYO.mjs";
|
|
8
5
|
import {
|
|
9
6
|
DeckCapabilities
|
|
10
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FO7YDJZ3.mjs";
|
|
11
8
|
import "./chunk-HSLMI22Q.mjs";
|
|
12
9
|
|
|
13
|
-
// src/operations/
|
|
10
|
+
// src/operations/update-companion.ts
|
|
14
11
|
import * as Effect from "effect/Effect";
|
|
15
12
|
import { Capabilities } from "@dxos/app-framework";
|
|
16
|
-
import {
|
|
13
|
+
import { LayoutOperation } from "@dxos/app-toolkit";
|
|
14
|
+
import { Operation } from "@dxos/compute";
|
|
17
15
|
import { getLinkedVariant } from "@dxos/react-ui-attention";
|
|
18
|
-
var handler =
|
|
19
|
-
if (input.
|
|
16
|
+
var handler = LayoutOperation.UpdateCompanion.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
|
|
17
|
+
if (input.subject === null) {
|
|
20
18
|
yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state) => updateActiveDeck(state, {
|
|
21
19
|
companionOpen: false
|
|
22
20
|
}));
|
|
23
21
|
} else {
|
|
24
|
-
const variant = getLinkedVariant(input.
|
|
22
|
+
const variant = getLinkedVariant(input.subject);
|
|
25
23
|
yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state) => updateActiveDeck(state, {
|
|
26
24
|
companionOpen: true,
|
|
27
25
|
companionVariant: variant
|
|
28
26
|
}));
|
|
29
27
|
}
|
|
30
28
|
})));
|
|
31
|
-
var
|
|
29
|
+
var update_companion_default = handler;
|
|
32
30
|
export {
|
|
33
|
-
|
|
31
|
+
update_companion_default as default
|
|
34
32
|
};
|
|
35
|
-
//# sourceMappingURL=
|
|
33
|
+
//# sourceMappingURL=update-companion-47LMKL5R.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/node-esm/{update-complementary-7HIRM7OT.mjs → update-complementary-7VYYG7L2.mjs}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
DeckCapabilities
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FO7YDJZ3.mjs";
|
|
5
5
|
import "./chunk-HSLMI22Q.mjs";
|
|
6
6
|
|
|
7
7
|
// src/operations/update-complementary.ts
|
|
8
8
|
import * as Effect from "effect/Effect";
|
|
9
9
|
import { Capabilities } from "@dxos/app-framework";
|
|
10
10
|
import { LayoutOperation } from "@dxos/app-toolkit";
|
|
11
|
-
import { Operation } from "@dxos/
|
|
11
|
+
import { Operation } from "@dxos/compute";
|
|
12
12
|
var handler = LayoutOperation.UpdateComplementary.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
|
|
13
13
|
const state = yield* Capabilities.getAtomValue(DeckCapabilities.State);
|
|
14
14
|
const panelChanged = state.complementarySidebarPanel !== input.subject;
|
|
@@ -26,4 +26,4 @@ var update_complementary_default = handler;
|
|
|
26
26
|
export {
|
|
27
27
|
update_complementary_default as default
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=update-complementary-
|
|
29
|
+
//# sourceMappingURL=update-complementary-7VYYG7L2.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,14 +1,14 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
DeckCapabilities
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FO7YDJZ3.mjs";
|
|
5
5
|
import "./chunk-HSLMI22Q.mjs";
|
|
6
6
|
|
|
7
7
|
// src/operations/update-dialog.ts
|
|
8
8
|
import * as Effect from "effect/Effect";
|
|
9
9
|
import { Capabilities } from "@dxos/app-framework";
|
|
10
10
|
import { LayoutOperation } from "@dxos/app-toolkit";
|
|
11
|
-
import { Operation } from "@dxos/
|
|
11
|
+
import { Operation } from "@dxos/compute";
|
|
12
12
|
var handler = LayoutOperation.UpdateDialog.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
|
|
13
13
|
yield* Capabilities.updateAtomValue(DeckCapabilities.EphemeralState, (state) => ({
|
|
14
14
|
...state,
|
|
@@ -27,4 +27,4 @@ var update_dialog_default = handler;
|
|
|
27
27
|
export {
|
|
28
28
|
update_dialog_default as default
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=update-dialog-
|
|
30
|
+
//# sourceMappingURL=update-dialog-CABL7OWW.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/
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\n\nimport { DeckCapabilities } from '../types';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.UpdateDialog> = LayoutOperation.UpdateDialog.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n yield* Capabilities.updateAtomValue(DeckCapabilities.EphemeralState, (state) => ({\n ...state,\n dialogOpen: input.state ?? Boolean(input.subject),\n dialogType: input.type ?? 'default',\n dialogBlockAlign: input.blockAlign ?? 'center',\n dialogOverlayClasses: input.overlayClasses,\n dialogOverlayStyle: input.overlayStyle,\n dialogContent: input.subject\n ? {\n component: input.subject,\n props: input.props,\n }\n : null,\n }));\n }),\n ),\n);\n\nexport default handler;\n"],
|
|
5
5
|
"mappings": ";;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,oBAAoB;AAC7B,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAI1B,IAAMC,UAAsEC,gBAAgBC,aAAaC,KACvGC,UAAUC,YACDC,kBAAW,WAAWC,OAAK;AAChC,SAAOC,aAAaC,gBAAgBC,iBAAiBC,gBAAgB,CAACC,WAAW;IAC/E,GAAGA;IACHC,YAAYN,MAAMK,SAASE,QAAQP,MAAMQ,OAAO;IAChDC,YAAYT,MAAMU,QAAQ;IAC1BC,kBAAkBX,MAAMY,cAAc;IACtCC,sBAAsBb,MAAMc;IAC5BC,oBAAoBf,MAAMgB;IAC1BC,eAAejB,MAAMQ,UACjB;MACEU,WAAWlB,MAAMQ;MACjBW,OAAOnB,MAAMmB;IACf,IACA;EACN,EAAA;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,wBAAe1B;",
|
|
6
6
|
"names": ["Effect", "Capabilities", "LayoutOperation", "Operation", "handler", "LayoutOperation", "UpdateDialog", "pipe", "Operation", "withHandler", "fnUntraced", "input", "Capabilities", "updateAtomValue", "DeckCapabilities", "EphemeralState", "state", "dialogOpen", "Boolean", "subject", "dialogType", "type", "dialogBlockAlign", "blockAlign", "dialogOverlayClasses", "overlayClasses", "dialogOverlayStyle", "overlayStyle", "dialogContent", "component", "props"]
|
|
7
7
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
UpdatePlankSize
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-L7OVX7CV.mjs";
|
|
5
5
|
import {
|
|
6
6
|
updateActiveDeck
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SHSR2CYO.mjs";
|
|
8
8
|
import {
|
|
9
9
|
DeckCapabilities
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FO7YDJZ3.mjs";
|
|
11
11
|
import "./chunk-HSLMI22Q.mjs";
|
|
12
12
|
|
|
13
13
|
// src/operations/update-plank-size.ts
|
|
14
14
|
import * as Effect from "effect/Effect";
|
|
15
15
|
import { Capabilities } from "@dxos/app-framework";
|
|
16
|
-
import { Operation } from "@dxos/
|
|
16
|
+
import { Operation } from "@dxos/compute";
|
|
17
17
|
var handler = UpdatePlankSize.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
|
|
18
18
|
yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state) => updateActiveDeck(state, {
|
|
19
19
|
plankSizing: {
|
|
@@ -26,4 +26,4 @@ var update_plank_size_default = handler;
|
|
|
26
26
|
export {
|
|
27
27
|
update_plank_size_default as default
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=update-plank-size-
|
|
29
|
+
//# sourceMappingURL=update-plank-size-WYTSMZF2.mjs.map
|
package/dist/lib/node-esm/{update-plank-size-IIZKU7YR.mjs.map → update-plank-size-WYTSMZF2.mjs.map}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/operations/update-plank-size.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities } from '@dxos/app-framework';\nimport { Operation } from '@dxos/
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities } from '@dxos/app-framework';\nimport { Operation } from '@dxos/compute';\n\nimport { DeckCapabilities } from '../types';\nimport { UpdatePlankSize } from './definitions';\nimport { updateActiveDeck } from './helpers';\n\nconst handler: Operation.WithHandler<typeof UpdatePlankSize> = UpdatePlankSize.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state) =>\n updateActiveDeck(state, {\n plankSizing: {\n ...state.decks[state.activeDeck]?.plankSizing,\n [input.id]: input.size,\n },\n }),\n );\n }),\n ),\n);\n\nexport default handler;\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,oBAAoB;AAC7B,SAASC,iBAAiB;AAM1B,IAAMC,UAAyDC,gBAAgBC,KAC7EC,UAAUC,YACDC,kBAAW,WAAWC,OAAK;AAChC,SAAOC,aAAaC,gBAAgBC,iBAAiBC,OAAO,CAACC,UAC3DC,iBAAiBD,OAAO;IACtBE,aAAa;MACX,GAAGF,MAAMG,MAAMH,MAAMI,UAAU,GAAGF;MAClC,CAACP,MAAMU,EAAE,GAAGV,MAAMW;IACpB;EACF,CAAA,CAAA;AAEJ,CAAA,CAAA,CAAA;AAIJ,IAAA,4BAAejB;",
|
|
6
6
|
"names": ["Effect", "Capabilities", "Operation", "handler", "UpdatePlankSize", "pipe", "Operation", "withHandler", "fnUntraced", "input", "Capabilities", "updateAtomValue", "DeckCapabilities", "State", "state", "updateActiveDeck", "plankSizing", "decks", "activeDeck", "id", "size"]
|
|
7
7
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
DeckCapabilities
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FO7YDJZ3.mjs";
|
|
5
5
|
import "./chunk-HSLMI22Q.mjs";
|
|
6
6
|
|
|
7
7
|
// src/operations/update-popover.ts
|
|
8
8
|
import * as Effect from "effect/Effect";
|
|
9
9
|
import { Capabilities } from "@dxos/app-framework";
|
|
10
10
|
import { LayoutOperation } from "@dxos/app-toolkit";
|
|
11
|
-
import { Operation } from "@dxos/
|
|
11
|
+
import { Operation } from "@dxos/compute";
|
|
12
12
|
var handler = LayoutOperation.UpdatePopover.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
|
|
13
13
|
yield* Capabilities.updateAtomValue(DeckCapabilities.EphemeralState, (state) => ({
|
|
14
14
|
...state,
|
|
@@ -31,4 +31,4 @@ var update_popover_default = handler;
|
|
|
31
31
|
export {
|
|
32
32
|
update_popover_default as default
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=update-popover-
|
|
34
|
+
//# sourceMappingURL=update-popover-YZDYGL7G.mjs.map
|
package/dist/lib/node-esm/{update-popover-RO5QEH4C.mjs.map → update-popover-YZDYGL7G.mjs.map}
RENAMED
|
@@ -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/
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\n\nimport { DeckCapabilities } from '../types';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.UpdatePopover> = LayoutOperation.UpdatePopover.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n yield* Capabilities.updateAtomValue(DeckCapabilities.EphemeralState, (state) => ({\n ...state,\n popoverOpen: input.state ?? Boolean(input.subject),\n popoverKind: input.kind ?? 'base',\n popoverTitle: input.kind === 'card' ? input.title : undefined,\n popoverContentRef: input.subjectRef,\n popoverContent:\n typeof input.subject === 'string'\n ? { component: input.subject, props: input.props }\n : input.subject\n ? { subject: input.subject }\n : null,\n popoverSide: input.side,\n popoverAnchor: input.variant === 'virtual' ? input.anchor : state.popoverAnchor,\n popoverAnchorId: input.variant !== 'virtual' ? input.anchorId : state.popoverAnchorId,\n }));\n }),\n ),\n);\n\nexport default handler;\n"],
|
|
5
5
|
"mappings": ";;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,oBAAoB;AAC7B,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAI1B,IAAMC,UAAuEC,gBAAgBC,cAAcC,KACzGC,UAAUC,YACDC,kBAAW,WAAWC,OAAK;AAChC,SAAOC,aAAaC,gBAAgBC,iBAAiBC,gBAAgB,CAACC,WAAW;IAC/E,GAAGA;IACHC,aAAaN,MAAMK,SAASE,QAAQP,MAAMQ,OAAO;IACjDC,aAAaT,MAAMU,QAAQ;IAC3BC,cAAcX,MAAMU,SAAS,SAASV,MAAMY,QAAQC;IACpDC,mBAAmBd,MAAMe;IACzBC,gBACE,OAAOhB,MAAMQ,YAAY,WACrB;MAAES,WAAWjB,MAAMQ;MAASU,OAAOlB,MAAMkB;IAAM,IAC/ClB,MAAMQ,UACJ;MAAEA,SAASR,MAAMQ;IAAQ,IACzB;IACRW,aAAanB,MAAMoB;IACnBC,eAAerB,MAAMsB,YAAY,YAAYtB,MAAMuB,SAASlB,MAAMgB;IAClEG,iBAAiBxB,MAAMsB,YAAY,YAAYtB,MAAMyB,WAAWpB,MAAMmB;EACxE,EAAA;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,yBAAe/B;",
|
|
6
6
|
"names": ["Effect", "Capabilities", "LayoutOperation", "Operation", "handler", "LayoutOperation", "UpdatePopover", "pipe", "Operation", "withHandler", "fnUntraced", "input", "Capabilities", "updateAtomValue", "DeckCapabilities", "EphemeralState", "state", "popoverOpen", "Boolean", "subject", "popoverKind", "kind", "popoverTitle", "title", "undefined", "popoverContentRef", "subjectRef", "popoverContent", "component", "props", "popoverSide", "side", "popoverAnchor", "variant", "anchor", "popoverAnchorId", "anchorId"]
|
|
7
7
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
DeckCapabilities
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FO7YDJZ3.mjs";
|
|
5
5
|
import "./chunk-HSLMI22Q.mjs";
|
|
6
6
|
|
|
7
7
|
// src/operations/update-sidebar.ts
|
|
8
8
|
import * as Effect from "effect/Effect";
|
|
9
9
|
import { Capabilities } from "@dxos/app-framework";
|
|
10
10
|
import { LayoutOperation } from "@dxos/app-toolkit";
|
|
11
|
-
import { Operation } from "@dxos/
|
|
11
|
+
import { Operation } from "@dxos/compute";
|
|
12
12
|
var handler = LayoutOperation.UpdateSidebar.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
|
|
13
13
|
const state = yield* Capabilities.getAtomValue(DeckCapabilities.State);
|
|
14
14
|
const next = input.state ?? state.sidebarState;
|
|
@@ -23,4 +23,4 @@ var update_sidebar_default = handler;
|
|
|
23
23
|
export {
|
|
24
24
|
update_sidebar_default as default
|
|
25
25
|
};
|
|
26
|
-
//# sourceMappingURL=update-sidebar-
|
|
26
|
+
//# sourceMappingURL=update-sidebar-HV736LUN.mjs.map
|
package/dist/lib/node-esm/{update-sidebar-2RX6VLEK.mjs.map → update-sidebar-HV736LUN.mjs.map}
RENAMED
|
@@ -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/
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\n\nimport { DeckCapabilities } from '../types';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.UpdateSidebar> = LayoutOperation.UpdateSidebar.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n const state = yield* Capabilities.getAtomValue(DeckCapabilities.State);\n const next = input.state ?? state.sidebarState;\n if (next !== state.sidebarState) {\n yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state) => ({\n ...state,\n sidebarState: next,\n }));\n }\n }),\n ),\n);\n\nexport default handler;\n"],
|
|
5
5
|
"mappings": ";;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,oBAAoB;AAC7B,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAI1B,IAAMC,UAAuEC,gBAAgBC,cAAcC,KACzGC,UAAUC,YACDC,kBAAW,WAAWC,OAAK;AAChC,QAAMC,QAAQ,OAAOC,aAAaC,aAAaC,iBAAiBC,KAAK;AACrE,QAAMC,OAAON,MAAMC,SAASA,MAAMM;AAClC,MAAID,SAASL,MAAMM,cAAc;AAC/B,WAAOL,aAAaM,gBAAgBJ,iBAAiBC,OAAO,CAACJ,YAAW;MACtE,GAAGA;MACHM,cAAcD;IAChB,EAAA;EACF;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,yBAAeb;",
|
|
6
6
|
"names": ["Effect", "Capabilities", "LayoutOperation", "Operation", "handler", "LayoutOperation", "UpdateSidebar", "pipe", "Operation", "withHandler", "fnUntraced", "input", "state", "Capabilities", "getAtomValue", "DeckCapabilities", "State", "next", "sidebarState", "updateAtomValue"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeckPlugin.d.ts","sourceRoot":"","sources":["../../../src/DeckPlugin.ts"],"names":[],"mappings":"AAMA,OAAO,EAAqC,MAAM,EAAE,MAAM,qBAAqB,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 @@
|
|
|
1
|
+
{"version":3,"file":"DeckPlugin.node.d.ts","sourceRoot":"","sources":["../../../src/DeckPlugin.node.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAM7C,eAAO,MAAM,UAAU,4BAItB,CAAC;eAEa,UAAU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeckPlugin.test.d.ts","sourceRoot":"","sources":["../../../src/DeckPlugin.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAI/D,OAAO,EAAE,YAAY,EAAe,MAAM,oBAAoB,CAAC
|
|
1
|
+
{"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAI/D,OAAO,EAAE,YAAY,EAAe,MAAM,oBAAoB,CAAC"}
|
|
@@ -14,6 +14,6 @@ export declare const shouldDeferNavigationHandlers: () => boolean;
|
|
|
14
14
|
* If the app doesn't open: dispatches handlers immediately.
|
|
15
15
|
* In Safari: universal links handle this natively, so the check is skipped.
|
|
16
16
|
*/
|
|
17
|
-
declare const _default: (props: void) => Effect.Effect<void, Error | import("@dxos/
|
|
17
|
+
declare const _default: (props: void) => Effect.Effect<void, Error | import("@dxos/compute").NoHandlerError, Capability.Service>;
|
|
18
18
|
export default _default;
|
|
19
19
|
//# sourceMappingURL=check-app-scheme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-app-scheme.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/check-app-scheme.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAuF/D;;;GAGG;AACH,eAAO,MAAM,6BAA6B,QAAO,OAEhD,CAAC;AAEF;;;;;;;;GAQG
|
|
1
|
+
{"version":3,"file":"check-app-scheme.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/check-app-scheme.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAuF/D;;;GAGG;AACH,eAAO,MAAM,6BAA6B,QAAO,OAEhD,CAAC;AAEF;;;;;;;;GAQG"}
|