@dxos/plugin-deck 0.8.4-main.f5c0578 → 0.8.4-main.fcc0d83b33
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/add-toast-JWJOQNVL.mjs +24 -0
- package/dist/lib/browser/add-toast-JWJOQNVL.mjs.map +7 -0
- package/dist/lib/browser/adjust-RG6LIQLX.mjs +95 -0
- package/dist/lib/browser/adjust-RG6LIQLX.mjs.map +7 -0
- package/dist/lib/browser/chunk-GLB73Q6U.mjs +22 -0
- package/dist/lib/browser/chunk-GLB73Q6U.mjs.map +7 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-LSZ47AY3.mjs +48 -0
- package/dist/lib/browser/chunk-LSZ47AY3.mjs.map +7 -0
- package/dist/lib/browser/chunk-MARE7ZFK.mjs +215 -0
- package/dist/lib/browser/chunk-MARE7ZFK.mjs.map +7 -0
- package/dist/lib/browser/chunk-XM263CQU.mjs +72 -0
- package/dist/lib/browser/chunk-XM263CQU.mjs.map +7 -0
- package/dist/lib/browser/chunk-ZYYOSX5I.mjs +69 -0
- package/dist/lib/browser/chunk-ZYYOSX5I.mjs.map +7 -0
- package/dist/lib/browser/close-URA766JO.mjs +44 -0
- package/dist/lib/browser/close-URA766JO.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +111 -147
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/open-OPFOOHCQ.mjs +147 -0
- package/dist/lib/browser/open-OPFOOHCQ.mjs.map +7 -0
- package/dist/lib/browser/operations/index.mjs +13 -0
- package/dist/lib/browser/operations/index.mjs.map +7 -0
- package/dist/lib/browser/revert-workspace-KP2Y4QLG.mjs +21 -0
- package/dist/lib/browser/revert-workspace-KP2Y4QLG.mjs.map +7 -0
- package/dist/lib/browser/scroll-into-view-S5H2FGSQ.mjs +21 -0
- package/dist/lib/browser/scroll-into-view-S5H2FGSQ.mjs.map +7 -0
- package/dist/lib/browser/set-AEKFFSIX.mjs +37 -0
- package/dist/lib/browser/set-AEKFFSIX.mjs.map +7 -0
- package/dist/lib/browser/set-layout-mode-CWIGQDFZ.mjs +85 -0
- package/dist/lib/browser/set-layout-mode-CWIGQDFZ.mjs.map +7 -0
- package/dist/lib/browser/show-undo-XFVEDKYC.mjs +59 -0
- package/dist/lib/browser/show-undo-XFVEDKYC.mjs.map +7 -0
- package/dist/lib/browser/switch-workspace-DSAAXZSI.mjs +60 -0
- 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 +12 -12
- package/dist/lib/browser/update-companion-IDBBBHT3.mjs +32 -0
- package/dist/lib/browser/update-companion-IDBBBHT3.mjs.map +7 -0
- package/dist/lib/browser/update-complementary-55PNO5MD.mjs +28 -0
- package/dist/lib/browser/update-complementary-55PNO5MD.mjs.map +7 -0
- package/dist/lib/browser/update-dialog-VNARIANC.mjs +29 -0
- package/dist/lib/browser/update-dialog-VNARIANC.mjs.map +7 -0
- package/dist/lib/browser/update-plank-size-H63PRRXS.mjs +28 -0
- package/dist/lib/browser/update-plank-size-H63PRRXS.mjs.map +7 -0
- package/dist/lib/browser/update-popover-ODTPZ3JL.mjs +33 -0
- package/dist/lib/browser/update-popover-ODTPZ3JL.mjs.map +7 -0
- package/dist/lib/browser/update-sidebar-JDVQ36WK.mjs +25 -0
- package/dist/lib/browser/update-sidebar-JDVQ36WK.mjs.map +7 -0
- package/dist/lib/node-esm/add-toast-JUTN4GTI.mjs +25 -0
- package/dist/lib/node-esm/add-toast-JUTN4GTI.mjs.map +7 -0
- package/dist/lib/node-esm/adjust-P5QK33P4.mjs +96 -0
- package/dist/lib/node-esm/adjust-P5QK33P4.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-FO7YDJZ3.mjs +216 -0
- package/dist/lib/node-esm/chunk-FO7YDJZ3.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-KY7ZCANM.mjs +50 -0
- package/dist/lib/node-esm/chunk-KY7ZCANM.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-L7OVX7CV.mjs +73 -0
- package/dist/lib/node-esm/chunk-L7OVX7CV.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-SHSR2CYO.mjs +24 -0
- package/dist/lib/node-esm/chunk-SHSR2CYO.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-WGBUTT5K.mjs +71 -0
- package/dist/lib/node-esm/chunk-WGBUTT5K.mjs.map +7 -0
- package/dist/lib/node-esm/close-U5VC7ERP.mjs +45 -0
- package/dist/lib/node-esm/close-U5VC7ERP.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +139 -0
- package/dist/lib/node-esm/index.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -0
- package/dist/lib/node-esm/open-4B3P5XGS.mjs +148 -0
- package/dist/lib/node-esm/open-4B3P5XGS.mjs.map +7 -0
- package/dist/lib/node-esm/operations/index.mjs +14 -0
- package/dist/lib/node-esm/operations/index.mjs.map +7 -0
- package/dist/lib/node-esm/revert-workspace-QD63M2U7.mjs +22 -0
- package/dist/lib/node-esm/revert-workspace-QD63M2U7.mjs.map +7 -0
- package/dist/lib/node-esm/scroll-into-view-G5M2EWK7.mjs +22 -0
- package/dist/lib/node-esm/scroll-into-view-G5M2EWK7.mjs.map +7 -0
- package/dist/lib/node-esm/set-ERJCXZBY.mjs +38 -0
- package/dist/lib/node-esm/set-ERJCXZBY.mjs.map +7 -0
- package/dist/lib/node-esm/set-layout-mode-BOZD7744.mjs +86 -0
- package/dist/lib/node-esm/set-layout-mode-BOZD7744.mjs.map +7 -0
- package/dist/lib/node-esm/show-undo-H5BRBYDC.mjs +60 -0
- package/dist/lib/node-esm/show-undo-H5BRBYDC.mjs.map +7 -0
- package/dist/lib/node-esm/switch-workspace-F54PXE5N.mjs +61 -0
- 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 +33 -0
- package/dist/lib/node-esm/types/index.mjs.map +7 -0
- package/dist/lib/node-esm/update-companion-47LMKL5R.mjs +33 -0
- package/dist/lib/node-esm/update-companion-47LMKL5R.mjs.map +7 -0
- package/dist/lib/node-esm/update-complementary-7VYYG7L2.mjs +29 -0
- package/dist/lib/node-esm/update-complementary-7VYYG7L2.mjs.map +7 -0
- package/dist/lib/node-esm/update-dialog-CABL7OWW.mjs +30 -0
- package/dist/lib/node-esm/update-dialog-CABL7OWW.mjs.map +7 -0
- package/dist/lib/node-esm/update-plank-size-WYTSMZF2.mjs +29 -0
- package/dist/lib/node-esm/update-plank-size-WYTSMZF2.mjs.map +7 -0
- package/dist/lib/node-esm/update-popover-YZDYGL7G.mjs +34 -0
- package/dist/lib/node-esm/update-popover-YZDYGL7G.mjs.map +7 -0
- package/dist/lib/node-esm/update-sidebar-HV736LUN.mjs +26 -0
- package/dist/lib/node-esm/update-sidebar-HV736LUN.mjs.map +7 -0
- package/dist/types/src/DeckPlugin.d.ts +2 -1
- package/dist/types/src/DeckPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts +4 -2
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/check-app-scheme.d.ts +17 -2
- package/dist/types/src/capabilities/check-app-scheme.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +196 -12
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-root.d.ts +4 -2
- package/dist/types/src/capabilities/react-root.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +3 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings.d.ts +5 -2
- package/dist/types/src/capabilities/settings.d.ts.map +1 -1
- package/dist/types/src/capabilities/state.d.ts +136 -46
- package/dist/types/src/capabilities/state.d.ts.map +1 -1
- package/dist/types/src/capabilities/tools.d.ts +4 -3
- package/dist/types/src/capabilities/tools.d.ts.map +1 -1
- package/dist/types/src/capabilities/url-handler.d.ts +3 -2
- package/dist/types/src/capabilities/url-handler.d.ts.map +1 -1
- package/dist/types/src/components/DeckSettings/DeckSettings.d.ts +4 -4
- package/dist/types/src/components/DeckSettings/DeckSettings.d.ts.map +1 -1
- package/dist/types/src/components/DeckSettings/DeckSettings.stories.d.ts +61 -0
- package/dist/types/src/components/DeckSettings/DeckSettings.stories.d.ts.map +1 -0
- package/dist/types/src/components/DeckSettings/index.d.ts +1 -1
- package/dist/types/src/components/DeckSettings/index.d.ts.map +1 -1
- package/dist/types/src/components/Matrix/Matrix.d.ts +41 -0
- package/dist/types/src/components/Matrix/Matrix.d.ts.map +1 -0
- package/dist/types/src/components/Matrix/Matrix.stories.d.ts +17 -0
- package/dist/types/src/components/Matrix/Matrix.stories.d.ts.map +1 -0
- package/dist/types/src/components/Matrix/index.d.ts +3 -0
- package/dist/types/src/components/Matrix/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +3 -2
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/{components/DeckLayout → containers/Deck}/Banner.d.ts +1 -1
- package/dist/types/src/containers/Deck/Banner.d.ts.map +1 -0
- package/dist/types/src/containers/Deck/Deck.d.ts +25 -0
- package/dist/types/src/containers/Deck/Deck.d.ts.map +1 -0
- package/dist/types/src/containers/Deck/Deck.stories.d.ts +61 -0
- package/dist/types/src/containers/Deck/Deck.stories.d.ts.map +1 -0
- package/dist/types/src/containers/Deck/DeckContent.d.ts +7 -0
- package/dist/types/src/containers/Deck/DeckContent.d.ts.map +1 -0
- package/dist/types/src/containers/Deck/DeckRoot.d.ts +39 -0
- package/dist/types/src/containers/Deck/DeckRoot.d.ts.map +1 -0
- package/dist/types/src/containers/Deck/DeckViewport.d.ts +16 -0
- package/dist/types/src/containers/Deck/DeckViewport.d.ts.map +1 -0
- package/dist/types/src/containers/Deck/StatusBar.d.ts.map +1 -0
- package/dist/types/src/containers/Deck/index.d.ts +2 -0
- package/dist/types/src/containers/Deck/index.d.ts.map +1 -0
- package/dist/types/src/containers/DeckLayout/ActiveNode.d.ts.map +1 -0
- package/dist/types/src/containers/DeckLayout/DeckLayout.d.ts +5 -0
- package/dist/types/src/containers/DeckLayout/DeckLayout.d.ts.map +1 -0
- package/dist/types/src/containers/DeckLayout/DeckLayout.stories.d.ts +63 -0
- package/dist/types/src/containers/DeckLayout/DeckLayout.stories.d.ts.map +1 -0
- package/dist/types/src/containers/DeckLayout/Dialog.d.ts.map +1 -0
- package/dist/types/src/containers/DeckLayout/Fallback.d.ts +2 -0
- package/dist/types/src/containers/DeckLayout/Fallback.d.ts.map +1 -0
- package/dist/types/src/containers/DeckLayout/Popover.d.ts +5 -0
- package/dist/types/src/containers/DeckLayout/Popover.d.ts.map +1 -0
- package/dist/types/src/containers/DeckLayout/Toast.d.ts +10 -0
- package/dist/types/src/containers/DeckLayout/Toast.d.ts.map +1 -0
- package/dist/types/src/containers/DeckLayout/constants.d.ts.map +1 -0
- package/dist/types/src/containers/DeckLayout/index.d.ts +4 -0
- package/dist/types/src/containers/DeckLayout/index.d.ts.map +1 -0
- package/dist/types/src/containers/Plank/Plank.d.ts +17 -0
- package/dist/types/src/containers/Plank/Plank.d.ts.map +1 -0
- package/dist/types/src/containers/Plank/Plank.stories.d.ts +61 -0
- package/dist/types/src/containers/Plank/Plank.stories.d.ts.map +1 -0
- package/dist/types/src/containers/Plank/PlankComponent.d.ts +17 -0
- package/dist/types/src/containers/Plank/PlankComponent.d.ts.map +1 -0
- package/dist/types/src/containers/Plank/PlankContent.d.ts +10 -0
- package/dist/types/src/containers/Plank/PlankContent.d.ts.map +1 -0
- package/dist/types/src/{components → containers}/Plank/PlankControls.d.ts +5 -6
- package/dist/types/src/containers/Plank/PlankControls.d.ts.map +1 -0
- package/dist/types/src/containers/Plank/PlankError.d.ts +15 -0
- package/dist/types/src/containers/Plank/PlankError.d.ts.map +1 -0
- package/dist/types/src/{components → containers}/Plank/PlankHeading.d.ts +5 -4
- package/dist/types/src/containers/Plank/PlankHeading.d.ts.map +1 -0
- package/dist/types/src/{components → containers}/Plank/PlankLoading.d.ts.map +1 -1
- package/dist/types/src/containers/Plank/PlankRoot.d.ts +37 -0
- package/dist/types/src/containers/Plank/PlankRoot.d.ts.map +1 -0
- package/dist/types/src/containers/Plank/index.d.ts +4 -0
- package/dist/types/src/containers/Plank/index.d.ts.map +1 -0
- package/dist/types/src/containers/Sidebar/ComplementarySidebar.d.ts.map +1 -0
- package/dist/types/src/containers/Sidebar/Sidebar.d.ts.map +1 -0
- package/dist/types/src/{components → containers}/Sidebar/SidebarButton.d.ts +1 -1
- package/dist/types/src/containers/Sidebar/SidebarButton.d.ts.map +1 -0
- package/dist/types/src/{components → containers}/Sidebar/index.d.ts.map +1 -1
- package/dist/types/src/containers/index.d.ts +6 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/hooks/index.d.ts +2 -0
- package/dist/types/src/hooks/index.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 +4 -4
- package/dist/types/src/hooks/useDeckCompanions.d.ts.map +1 -1
- package/dist/types/src/hooks/useDeckState.d.ts +17 -0
- package/dist/types/src/hooks/useDeckState.d.ts.map +1 -0
- package/dist/types/src/hooks/useHoistStatusbar.d.ts +1 -1
- package/dist/types/src/hooks/useHoistStatusbar.d.ts.map +1 -1
- package/dist/types/src/hooks/useMainSize.d.ts +2 -2
- package/dist/types/src/hooks/useMainSize.d.ts.map +1 -1
- package/dist/types/src/hooks/useNodeActionExpander.d.ts +1 -1
- package/dist/types/src/hooks/useNodeActionExpander.d.ts.map +1 -1
- package/dist/types/src/hooks/useSelectedCompanion.d.ts +13 -0
- package/dist/types/src/hooks/useSelectedCompanion.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +1 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/layout.d.ts +20 -9
- package/dist/types/src/layout.d.ts.map +1 -1
- package/dist/types/src/layout.test.d.ts +2 -0
- package/dist/types/src/layout.test.d.ts.map +1 -0
- package/dist/types/src/meta.d.ts +2 -3
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/add-toast.d.ts +5 -0
- package/dist/types/src/operations/add-toast.d.ts.map +1 -0
- package/dist/types/src/operations/adjust.d.ts +5 -0
- package/dist/types/src/operations/adjust.d.ts.map +1 -0
- package/dist/types/src/operations/close.d.ts +5 -0
- package/dist/types/src/operations/close.d.ts.map +1 -0
- package/dist/types/src/operations/definitions.d.ts +15 -0
- package/dist/types/src/operations/definitions.d.ts.map +1 -0
- package/dist/types/src/operations/helpers.d.ts +3 -0
- package/dist/types/src/operations/helpers.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +4 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/open.d.ts +5 -0
- package/dist/types/src/operations/open.d.ts.map +1 -0
- package/dist/types/src/operations/revert-workspace.d.ts +5 -0
- package/dist/types/src/operations/revert-workspace.d.ts.map +1 -0
- package/dist/types/src/operations/scroll-into-view.d.ts +5 -0
- package/dist/types/src/operations/scroll-into-view.d.ts.map +1 -0
- package/dist/types/src/operations/set-layout-mode.d.ts +9 -0
- package/dist/types/src/operations/set-layout-mode.d.ts.map +1 -0
- package/dist/types/src/operations/set.d.ts +5 -0
- package/dist/types/src/operations/set.d.ts.map +1 -0
- package/dist/types/src/operations/show-undo.d.ts +5 -0
- package/dist/types/src/operations/show-undo.d.ts.map +1 -0
- package/dist/types/src/operations/switch-workspace.d.ts +5 -0
- package/dist/types/src/operations/switch-workspace.d.ts.map +1 -0
- 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 +5 -0
- package/dist/types/src/operations/update-complementary.d.ts.map +1 -0
- package/dist/types/src/operations/update-dialog.d.ts +5 -0
- package/dist/types/src/operations/update-dialog.d.ts.map +1 -0
- package/dist/types/src/operations/update-plank-size.d.ts +5 -0
- package/dist/types/src/operations/update-plank-size.d.ts.map +1 -0
- package/dist/types/src/operations/update-popover.d.ts +5 -0
- package/dist/types/src/operations/update-popover.d.ts.map +1 -0
- package/dist/types/src/operations/update-sidebar.d.ts +5 -0
- package/dist/types/src/operations/update-sidebar.d.ts.map +1 -0
- 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 +11 -0
- package/dist/types/src/types/Settings.d.ts.map +1 -0
- package/dist/types/src/{capabilities → types}/capabilities.d.ts +101 -94
- package/dist/types/src/types/capabilities.d.ts.map +1 -0
- package/dist/types/src/types/events.d.ts +7 -0
- package/dist/types/src/types/events.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +3 -0
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +66 -64
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/src/util/index.d.ts +2 -1
- package/dist/types/src/util/index.d.ts.map +1 -1
- package/dist/types/src/util/layoutAppliesTopbar.d.ts +1 -1
- package/dist/types/src/util/layoutAppliesTopbar.d.ts.map +1 -1
- package/dist/types/src/util/plank-url-params.d.ts +14 -0
- package/dist/types/src/util/plank-url-params.d.ts.map +1 -0
- package/dist/types/src/util/plank-url-params.test.d.ts +2 -0
- package/dist/types/src/util/plank-url-params.test.d.ts.map +1 -0
- package/dist/types/src/util/sanitize-persisted-state.d.ts +19 -0
- package/dist/types/src/util/sanitize-persisted-state.d.ts.map +1 -0
- package/dist/types/src/util/sanitize-persisted-state.test.d.ts +2 -0
- package/dist/types/src/util/sanitize-persisted-state.test.d.ts.map +1 -0
- package/dist/types/src/util/set-active.d.ts +19 -4
- package/dist/types/src/util/set-active.d.ts.map +1 -1
- package/dist/types/src/util/set-active.test.d.ts +2 -0
- package/dist/types/src/util/set-active.test.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +90 -56
- package/src/DeckPlugin.ts +44 -71
- package/src/capabilities/app-graph-builder.ts +112 -127
- package/src/capabilities/check-app-scheme.ts +123 -24
- package/src/capabilities/index.ts +13 -14
- package/src/capabilities/operation-handler.ts +16 -0
- package/src/capabilities/react-root.tsx +37 -29
- package/src/capabilities/react-surface.tsx +28 -22
- package/src/capabilities/settings.ts +30 -19
- package/src/capabilities/state.ts +74 -88
- package/src/capabilities/tools.ts +58 -51
- package/src/capabilities/url-handler.ts +221 -50
- package/src/components/DeckSettings/DeckSettings.stories.tsx +38 -0
- package/src/components/DeckSettings/DeckSettings.tsx +19 -73
- package/src/components/DeckSettings/index.ts +2 -2
- package/src/components/Matrix/Matrix.stories.tsx +220 -0
- package/src/components/Matrix/Matrix.tsx +205 -0
- package/src/components/Matrix/SPEC.md +219 -0
- package/src/components/Matrix/index.ts +6 -0
- package/src/components/index.ts +6 -3
- package/src/{components/DeckLayout → containers/Deck}/Banner.tsx +13 -11
- package/src/containers/Deck/Deck.stories.tsx +81 -0
- package/src/containers/Deck/Deck.tsx +21 -0
- package/src/containers/Deck/DeckContent.tsx +105 -0
- package/src/containers/Deck/DeckRoot.tsx +50 -0
- package/src/containers/Deck/DeckViewport.tsx +456 -0
- package/src/{components/DeckLayout → containers/Deck}/StatusBar.tsx +4 -4
- package/src/containers/Deck/index.ts +5 -0
- package/src/{components → containers}/DeckLayout/ActiveNode.tsx +8 -3
- package/src/containers/DeckLayout/DeckLayout.stories.tsx +397 -0
- package/src/containers/DeckLayout/DeckLayout.tsx +62 -0
- package/src/containers/DeckLayout/Dialog.tsx +52 -0
- package/src/containers/DeckLayout/Fallback.tsx +24 -0
- package/src/containers/DeckLayout/Popover.tsx +161 -0
- package/src/{components → containers}/DeckLayout/Toast.tsx +30 -5
- package/src/{components → containers}/DeckLayout/constants.ts +1 -0
- package/src/{components → containers}/DeckLayout/index.ts +3 -2
- package/src/containers/Plank/Plank.stories.tsx +108 -0
- package/src/containers/Plank/Plank.tsx +22 -0
- package/src/containers/Plank/PlankComponent.tsx +217 -0
- package/src/containers/Plank/PlankContent.tsx +45 -0
- package/src/{components → containers}/Plank/PlankControls.tsx +45 -38
- package/src/containers/Plank/PlankError.tsx +79 -0
- package/src/{components → containers}/Plank/PlankHeading.tsx +68 -64
- package/src/{components → containers}/Plank/PlankLoading.tsx +1 -1
- package/src/containers/Plank/PlankRoot.tsx +49 -0
- package/src/{components → containers}/Plank/index.ts +0 -2
- package/src/containers/Sidebar/ComplementarySidebar.tsx +210 -0
- package/src/containers/Sidebar/Sidebar.tsx +44 -0
- package/src/containers/Sidebar/SidebarButton.tsx +100 -0
- package/src/containers/index.ts +11 -0
- package/src/hooks/index.ts +2 -0
- package/src/hooks/useCompanions.ts +3 -3
- package/src/hooks/useDeckCompanions.ts +8 -10
- package/src/hooks/useDeckState.ts +73 -0
- package/src/hooks/useHoistStatusbar.ts +4 -5
- package/src/hooks/useMainSize.ts +2 -2
- package/src/hooks/useNodeActionExpander.ts +4 -4
- package/src/hooks/useSelectedCompanion.ts +32 -0
- package/src/index.ts +1 -2
- package/src/layout.test.ts +59 -0
- package/src/layout.ts +38 -40
- package/src/meta.ts +8 -5
- package/src/operations/add-toast.ts +24 -0
- package/src/operations/adjust.ts +83 -0
- package/src/operations/close.ts +35 -0
- package/src/operations/definitions.ts +49 -0
- package/src/operations/helpers.ts +22 -0
- package/src/operations/index.ts +26 -0
- package/src/operations/open.ts +184 -0
- package/src/operations/revert-workspace.ts +22 -0
- package/src/operations/scroll-into-view.ts +24 -0
- package/src/operations/set-layout-mode.ts +84 -0
- package/src/operations/set.ts +36 -0
- package/src/operations/show-undo.ts +47 -0
- package/src/operations/switch-workspace.ts +60 -0
- package/src/operations/update-companion.ts +35 -0
- package/src/operations/update-complementary.ts +33 -0
- package/src/operations/update-dialog.ts +34 -0
- package/src/operations/update-plank-size.ts +29 -0
- package/src/operations/update-popover.ts +36 -0
- package/src/operations/update-sidebar.ts +28 -0
- package/src/translations.ts +42 -52
- package/src/types/Settings.ts +42 -0
- package/src/types/capabilities.ts +35 -0
- package/src/types/events.ts +21 -0
- package/src/types/index.ts +3 -0
- package/src/types/schema.ts +51 -56
- package/src/util/index.ts +2 -1
- package/src/util/layoutAppliesTopbar.ts +2 -2
- package/src/util/plank-url-params.test.ts +85 -0
- package/src/util/plank-url-params.ts +36 -0
- package/src/util/sanitize-persisted-state.test.ts +79 -0
- package/src/util/sanitize-persisted-state.ts +52 -0
- package/src/util/set-active.test.ts +106 -0
- package/src/util/set-active.ts +50 -30
- package/src/vite-env.d.ts +5 -0
- package/dist/lib/browser/app-graph-builder-DVEKLXB4.mjs +0 -152
- package/dist/lib/browser/app-graph-builder-DVEKLXB4.mjs.map +0 -7
- package/dist/lib/browser/check-app-scheme-3BQJXWEY.mjs +0 -32
- package/dist/lib/browser/check-app-scheme-3BQJXWEY.mjs.map +0 -7
- package/dist/lib/browser/chunk-6MQIYIPY.mjs +0 -1494
- package/dist/lib/browser/chunk-6MQIYIPY.mjs.map +0 -7
- package/dist/lib/browser/chunk-CNTGBCMK.mjs +0 -145
- package/dist/lib/browser/chunk-CNTGBCMK.mjs.map +0 -7
- package/dist/lib/browser/chunk-F5BQOOEG.mjs +0 -160
- package/dist/lib/browser/chunk-F5BQOOEG.mjs.map +0 -7
- package/dist/lib/browser/chunk-M57WD3V6.mjs +0 -16
- package/dist/lib/browser/chunk-M57WD3V6.mjs.map +0 -7
- package/dist/lib/browser/chunk-MX7WRVX3.mjs +0 -127
- package/dist/lib/browser/chunk-MX7WRVX3.mjs.map +0 -7
- package/dist/lib/browser/chunk-NRCPV6AV.mjs +0 -129
- package/dist/lib/browser/chunk-NRCPV6AV.mjs.map +0 -7
- package/dist/lib/browser/chunk-Z5KITAZW.mjs +0 -13
- package/dist/lib/browser/chunk-Z5KITAZW.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-2SUIIV6N.mjs +0 -521
- package/dist/lib/browser/intent-resolver-2SUIIV6N.mjs.map +0 -7
- package/dist/lib/browser/react-root-GVZANZX7.mjs +0 -43
- package/dist/lib/browser/react-root-GVZANZX7.mjs.map +0 -7
- package/dist/lib/browser/react-surface-NXSSD2GW.mjs +0 -40
- package/dist/lib/browser/react-surface-NXSSD2GW.mjs.map +0 -7
- package/dist/lib/browser/settings-LUPQPZ27.mjs +0 -29
- package/dist/lib/browser/settings-LUPQPZ27.mjs.map +0 -7
- package/dist/lib/browser/state-CRXR7X63.mjs +0 -12
- package/dist/lib/browser/toolkit-OBKFXX23.mjs +0 -47
- package/dist/lib/browser/toolkit-OBKFXX23.mjs.map +0 -7
- package/dist/lib/browser/url-handler-LROZYQ26.mjs +0 -70
- package/dist/lib/browser/url-handler-LROZYQ26.mjs.map +0 -7
- package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/toolkit.d.ts +0 -5
- package/dist/types/src/capabilities/toolkit.d.ts.map +0 -1
- package/dist/types/src/components/DeckLayout/ActiveNode.d.ts.map +0 -1
- package/dist/types/src/components/DeckLayout/Banner.d.ts.map +0 -1
- package/dist/types/src/components/DeckLayout/ContentEmpty.d.ts +0 -3
- package/dist/types/src/components/DeckLayout/ContentEmpty.d.ts.map +0 -1
- package/dist/types/src/components/DeckLayout/DeckLayout.d.ts +0 -6
- package/dist/types/src/components/DeckLayout/DeckLayout.d.ts.map +0 -1
- package/dist/types/src/components/DeckLayout/Dialog.d.ts.map +0 -1
- package/dist/types/src/components/DeckLayout/Fallback.d.ts +0 -3
- package/dist/types/src/components/DeckLayout/Fallback.d.ts.map +0 -1
- package/dist/types/src/components/DeckLayout/Popover.d.ts +0 -5
- package/dist/types/src/components/DeckLayout/Popover.d.ts.map +0 -1
- package/dist/types/src/components/DeckLayout/StatusBar.d.ts.map +0 -1
- package/dist/types/src/components/DeckLayout/Toast.d.ts +0 -5
- package/dist/types/src/components/DeckLayout/Toast.d.ts.map +0 -1
- package/dist/types/src/components/DeckLayout/Topbar.d.ts +0 -3
- package/dist/types/src/components/DeckLayout/Topbar.d.ts.map +0 -1
- package/dist/types/src/components/DeckLayout/constants.d.ts.map +0 -1
- package/dist/types/src/components/DeckLayout/index.d.ts +0 -4
- package/dist/types/src/components/DeckLayout/index.d.ts.map +0 -1
- package/dist/types/src/components/Plank/Plank.d.ts +0 -27
- package/dist/types/src/components/Plank/Plank.d.ts.map +0 -1
- package/dist/types/src/components/Plank/Plank.stories.d.ts +0 -8
- package/dist/types/src/components/Plank/Plank.stories.d.ts.map +0 -1
- package/dist/types/src/components/Plank/PlankControls.d.ts.map +0 -1
- package/dist/types/src/components/Plank/PlankError.d.ts +0 -13
- package/dist/types/src/components/Plank/PlankError.d.ts.map +0 -1
- package/dist/types/src/components/Plank/PlankHeading.d.ts.map +0 -1
- package/dist/types/src/components/Plank/index.d.ts +0 -6
- package/dist/types/src/components/Plank/index.d.ts.map +0 -1
- package/dist/types/src/components/Sidebar/ComplementarySidebar.d.ts.map +0 -1
- package/dist/types/src/components/Sidebar/Sidebar.d.ts.map +0 -1
- package/dist/types/src/components/Sidebar/SidebarButton.d.ts.map +0 -1
- package/dist/types/src/components/fragments.d.ts +0 -4
- package/dist/types/src/components/fragments.d.ts.map +0 -1
- package/dist/types/src/events.d.ts +0 -4
- package/dist/types/src/events.d.ts.map +0 -1
- package/dist/types/src/util/overscroll.d.ts +0 -47
- package/dist/types/src/util/overscroll.d.ts.map +0 -1
- package/src/capabilities/capabilities.ts +0 -14
- package/src/capabilities/intent-resolver.ts +0 -469
- package/src/capabilities/toolkit.ts +0 -55
- package/src/components/DeckLayout/ContentEmpty.tsx +0 -31
- package/src/components/DeckLayout/DeckLayout.tsx +0 -302
- package/src/components/DeckLayout/Dialog.tsx +0 -36
- package/src/components/DeckLayout/Fallback.tsx +0 -28
- package/src/components/DeckLayout/Popover.tsx +0 -104
- package/src/components/DeckLayout/Topbar.tsx +0 -11
- package/src/components/Plank/Plank.stories.tsx +0 -56
- package/src/components/Plank/Plank.tsx +0 -267
- package/src/components/Plank/PlankError.tsx +0 -49
- package/src/components/Sidebar/ComplementarySidebar.tsx +0 -194
- package/src/components/Sidebar/Sidebar.tsx +0 -42
- package/src/components/Sidebar/SidebarButton.tsx +0 -87
- package/src/components/fragments.ts +0 -14
- package/src/events.ts +0 -11
- package/src/util/overscroll.ts +0 -69
- /package/dist/lib/browser/{state-CRXR7X63.mjs.map → chunk-J5LGTIGS.mjs.map} +0 -0
- /package/dist/types/src/{components/DeckLayout → containers/Deck}/StatusBar.d.ts +0 -0
- /package/dist/types/src/{components → containers}/DeckLayout/ActiveNode.d.ts +0 -0
- /package/dist/types/src/{components → containers}/DeckLayout/Dialog.d.ts +0 -0
- /package/dist/types/src/{components → containers}/DeckLayout/constants.d.ts +0 -0
- /package/dist/types/src/{components → containers}/Plank/PlankLoading.d.ts +0 -0
- /package/dist/types/src/{components → containers}/Sidebar/ComplementarySidebar.d.ts +0 -0
- /package/dist/types/src/{components → containers}/Sidebar/Sidebar.d.ts +0 -0
- /package/dist/types/src/{components → containers}/Sidebar/index.d.ts +0 -0
- /package/src/{components → containers}/Sidebar/index.ts +0 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
__export
|
|
4
|
+
} from "./chunk-HSLMI22Q.mjs";
|
|
5
|
+
|
|
6
|
+
// src/operations/definitions.ts
|
|
7
|
+
var definitions_exports = {};
|
|
8
|
+
__export(definitions_exports, {
|
|
9
|
+
Adjust: () => Adjust,
|
|
10
|
+
UpdatePlankSize: () => UpdatePlankSize
|
|
11
|
+
});
|
|
12
|
+
import * as Schema from "effect/Schema";
|
|
13
|
+
import { Capability } from "@dxos/app-framework";
|
|
14
|
+
import { Operation } from "@dxos/compute";
|
|
15
|
+
import { meta } from "#meta";
|
|
16
|
+
var PartAdjustment = Schema.Union(Schema.Literal("close").annotations({
|
|
17
|
+
description: "Close the plank."
|
|
18
|
+
}), Schema.Literal("companion").annotations({
|
|
19
|
+
description: "Open the companion plank."
|
|
20
|
+
}), Schema.Literal("solo").annotations({
|
|
21
|
+
description: "Solo the plank."
|
|
22
|
+
}), Schema.Literal("solo--fullscreen").annotations({
|
|
23
|
+
description: "Fullscreen the plank."
|
|
24
|
+
}), Schema.Literal("increment-start").annotations({
|
|
25
|
+
description: "Move the plank towards the start of the deck."
|
|
26
|
+
}), Schema.Literal("increment-end").annotations({
|
|
27
|
+
description: "Move the plank towards the end of the deck."
|
|
28
|
+
}));
|
|
29
|
+
var Adjust = Operation.make({
|
|
30
|
+
meta: {
|
|
31
|
+
key: `${meta.id}.operation.adjust`,
|
|
32
|
+
name: "Adjust",
|
|
33
|
+
description: "Adjust the layout of a plank."
|
|
34
|
+
},
|
|
35
|
+
services: [
|
|
36
|
+
Capability.Service
|
|
37
|
+
],
|
|
38
|
+
input: Schema.Struct({
|
|
39
|
+
id: Schema.String.annotations({
|
|
40
|
+
description: "The id of the plank to adjust."
|
|
41
|
+
}),
|
|
42
|
+
type: PartAdjustment.annotations({
|
|
43
|
+
description: "The type of adjustment to make."
|
|
44
|
+
})
|
|
45
|
+
}),
|
|
46
|
+
output: Schema.Void
|
|
47
|
+
});
|
|
48
|
+
var UpdatePlankSize = Operation.make({
|
|
49
|
+
meta: {
|
|
50
|
+
key: `${meta.id}.operation.update-plank-size`,
|
|
51
|
+
name: "Update Plank Size",
|
|
52
|
+
description: "Update the size of a plank."
|
|
53
|
+
},
|
|
54
|
+
services: [
|
|
55
|
+
Capability.Service
|
|
56
|
+
],
|
|
57
|
+
input: Schema.Struct({
|
|
58
|
+
id: Schema.String.annotations({
|
|
59
|
+
description: "The id of the plank to resize."
|
|
60
|
+
}),
|
|
61
|
+
size: Schema.Number.annotations({
|
|
62
|
+
description: "The new size of the plank."
|
|
63
|
+
})
|
|
64
|
+
}),
|
|
65
|
+
output: Schema.Void
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
export {
|
|
69
|
+
Adjust,
|
|
70
|
+
UpdatePlankSize,
|
|
71
|
+
definitions_exports
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=chunk-L7OVX7CV.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/definitions.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Capability } from '@dxos/app-framework';\nimport { Operation } from '@dxos/compute';\n\nimport { meta } from '#meta';\n\nconst PartAdjustment = Schema.Union(\n Schema.Literal('close').annotations({ description: 'Close the plank.' }),\n Schema.Literal('companion').annotations({ description: 'Open the companion plank.' }),\n Schema.Literal('solo').annotations({ description: 'Solo the plank.' }),\n Schema.Literal('solo--fullscreen').annotations({ description: 'Fullscreen the plank.' }),\n Schema.Literal('increment-start').annotations({ description: 'Move the plank towards the start of the deck.' }),\n Schema.Literal('increment-end').annotations({ description: 'Move the plank towards the end of the deck.' }),\n);\n\nexport type PartAdjustment = Schema.Schema.Type<typeof PartAdjustment>;\n\nexport const Adjust = Operation.make({\n meta: {\n key: `${meta.id}.operation.adjust`,\n name: 'Adjust',\n description: 'Adjust the layout of a plank.',\n },\n services: [Capability.Service],\n input: Schema.Struct({\n id: Schema.String.annotations({ description: 'The id of the plank to adjust.' }),\n type: PartAdjustment.annotations({ description: 'The type of adjustment to make.' }),\n }),\n output: Schema.Void,\n});\n\nexport const UpdatePlankSize = Operation.make({\n meta: {\n key: `${meta.id}.operation.update-plank-size`,\n name: 'Update Plank Size',\n description: 'Update the size of a plank.',\n },\n services: [Capability.Service],\n input: Schema.Struct({\n id: Schema.String.annotations({ description: 'The id of the plank to resize.' }),\n size: Schema.Number.annotations({ description: 'The new size of the plank.' }),\n }),\n output: Schema.Void,\n});\n"],
|
|
5
|
+
"mappings": ";;;;;;AAAA;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,iBAAiB;AAE1B,SAASC,YAAY;AAErB,IAAMC,iBAAwBC,aACrBC,eAAQ,OAAA,EAASC,YAAY;EAAEC,aAAa;AAAmB,CAAA,GAC/DF,eAAQ,WAAA,EAAaC,YAAY;EAAEC,aAAa;AAA4B,CAAA,GAC5EF,eAAQ,MAAA,EAAQC,YAAY;EAAEC,aAAa;AAAkB,CAAA,GAC7DF,eAAQ,kBAAA,EAAoBC,YAAY;EAAEC,aAAa;AAAwB,CAAA,GAC/EF,eAAQ,iBAAA,EAAmBC,YAAY;EAAEC,aAAa;AAAgD,CAAA,GACtGF,eAAQ,eAAA,EAAiBC,YAAY;EAAEC,aAAa;AAA8C,CAAA,CAAA;AAKpG,IAAMC,SAASP,UAAUQ,KAAK;EACnCP,MAAM;IACJQ,KAAK,GAAGR,KAAKS,EAAE;IACfC,MAAM;IACNL,aAAa;EACf;EACAM,UAAU;IAACb,WAAWc;;EACtBC,OAAcC,cAAO;IACnBL,IAAWM,cAAOX,YAAY;MAAEC,aAAa;IAAiC,CAAA;IAC9EW,MAAMf,eAAeG,YAAY;MAAEC,aAAa;IAAkC,CAAA;EACpF,CAAA;EACAY,QAAeC;AACjB,CAAA;AAEO,IAAMC,kBAAkBpB,UAAUQ,KAAK;EAC5CP,MAAM;IACJQ,KAAK,GAAGR,KAAKS,EAAE;IACfC,MAAM;IACNL,aAAa;EACf;EACAM,UAAU;IAACb,WAAWc;;EACtBC,OAAcC,cAAO;IACnBL,IAAWM,cAAOX,YAAY;MAAEC,aAAa;IAAiC,CAAA;IAC9Ee,MAAaC,cAAOjB,YAAY;MAAEC,aAAa;IAA6B,CAAA;EAC9E,CAAA;EACAY,QAAeC;AACjB,CAAA;",
|
|
6
|
+
"names": ["Schema", "Capability", "Operation", "meta", "PartAdjustment", "Union", "Literal", "annotations", "description", "Adjust", "make", "key", "id", "name", "services", "Service", "input", "Struct", "String", "type", "output", "Void", "UpdatePlankSize", "size", "Number"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// src/operations/helpers.ts
|
|
4
|
+
import { invariant } from "@dxos/invariant";
|
|
5
|
+
var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-deck/src/operations/helpers.ts";
|
|
6
|
+
var updateActiveDeck = (current, deckUpdates) => {
|
|
7
|
+
const currentDeck = current.decks[current.activeDeck];
|
|
8
|
+
invariant(currentDeck, `Deck not found: ${current.activeDeck}`, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 7, S: void 0, A: ["currentDeck", "`Deck not found: ${current.activeDeck}`"] });
|
|
9
|
+
return {
|
|
10
|
+
...current,
|
|
11
|
+
decks: {
|
|
12
|
+
...current.decks,
|
|
13
|
+
[current.activeDeck]: {
|
|
14
|
+
...currentDeck,
|
|
15
|
+
...deckUpdates
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
updateActiveDeck
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=chunk-SHSR2CYO.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/helpers.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { invariant } from '@dxos/invariant';\n\nimport { type DeckState, type StoredDeckState } from '../types';\n\nexport const updateActiveDeck = (current: StoredDeckState, deckUpdates: Partial<DeckState>): StoredDeckState => {\n const currentDeck = current.decks[current.activeDeck];\n invariant(currentDeck, `Deck not found: ${current.activeDeck}`);\n return {\n ...current,\n decks: {\n ...current.decks,\n [current.activeDeck]: {\n ...currentDeck,\n ...deckUpdates,\n },\n },\n };\n};\n"],
|
|
5
|
+
"mappings": ";;;AAIA,SAASA,iBAAiB;AAI1B,IAAA,eAAaC;AAEXD,IAAAA,mBAAwB,CAAA,SAAA,gBAA0BE;AAClD,QAAA,cAAO,QAAA,MAAA,QAAA,UAAA;YACFC,aAAO,mBAAA,QAAA,UAAA,IAAA,EAAA,YAAA,YAAA,GAAA,cAAA,GAAA,GAAA,GAAA,QAAA,GAAA,CAAA,eAAA,yCAAA,EAAA,CAAA;SACVC;;WAEGD;iBACIE;eACAC,UAAW,GAAA;QAChB,GAAA;QACF,GAAA;MACF;IACA;;;",
|
|
6
|
+
"names": ["invariant", "updateActiveDeck", "activeDeck", "current", "decks", "currentDeck", "deckUpdates"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// src/layout.ts
|
|
4
|
+
import { produce } from "immer";
|
|
5
|
+
var openEntry = (deck, entryId, options) => {
|
|
6
|
+
return produce([
|
|
7
|
+
...deck
|
|
8
|
+
], (draft) => {
|
|
9
|
+
if (draft.find((id) => id === entryId)) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
const key = options?.key;
|
|
13
|
+
if (key) {
|
|
14
|
+
const index = draft.findIndex((id) => id.split("+")[0] === key);
|
|
15
|
+
if (index !== -1) {
|
|
16
|
+
draft.splice(index, 1, entryId);
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
draft.push(entryId);
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
var openSubjectsOnActiveDeck = (active, subject, options) => {
|
|
24
|
+
if (subject.length > 0 && subject.every((id) => active.includes(id))) {
|
|
25
|
+
return [
|
|
26
|
+
...active
|
|
27
|
+
];
|
|
28
|
+
}
|
|
29
|
+
const { pivotId, key } = options ?? {};
|
|
30
|
+
const pivotIndex = pivotId ? active.findIndex((id) => id === pivotId) : -1;
|
|
31
|
+
const baseDeck = pivotIndex !== -1 ? active.slice(0, pivotIndex + 1) : [
|
|
32
|
+
...active
|
|
33
|
+
];
|
|
34
|
+
return subject.reduce((acc, entryId) => openEntry(acc, entryId, {
|
|
35
|
+
key
|
|
36
|
+
}), baseDeck);
|
|
37
|
+
};
|
|
38
|
+
var closeEntry = (deck, entryId) => {
|
|
39
|
+
return produce(deck, (draft) => {
|
|
40
|
+
const index = draft.findIndex((id) => id === entryId);
|
|
41
|
+
if (index !== -1) {
|
|
42
|
+
draft.splice(index, 1);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
var incrementPlank = (deck, adjustment) => {
|
|
47
|
+
return produce(deck, (draft) => {
|
|
48
|
+
const index = draft.findIndex((id) => id === adjustment.id);
|
|
49
|
+
if (index === -1 || adjustment.type === "increment-start" && index === 0 || adjustment.type === "increment-end" && index === draft.length - 1) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if (adjustment.type === "increment-start") {
|
|
53
|
+
[draft[index - 1], draft[index]] = [
|
|
54
|
+
draft[index],
|
|
55
|
+
draft[index - 1]
|
|
56
|
+
];
|
|
57
|
+
} else if (adjustment.type === "increment-end") {
|
|
58
|
+
[draft[index], draft[index + 1]] = [
|
|
59
|
+
draft[index + 1],
|
|
60
|
+
draft[index]
|
|
61
|
+
];
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export {
|
|
67
|
+
openSubjectsOnActiveDeck,
|
|
68
|
+
closeEntry,
|
|
69
|
+
incrementPlank
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=chunk-WGBUTT5K.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/layout.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { produce } from 'immer';\n\nimport { type DeckAction } from '#types';\n\ntype OpenLayoutEntryOptions = {\n key?: string;\n};\n\n/**\n * Mutates a deck list using stack semantics: new items open to the right (`push`).\n * Callers that open from a pivot must truncate the deck first (see deck `open` operation).\n */\nexport const openEntry = (deck: readonly string[], entryId: string, options?: OpenLayoutEntryOptions): string[] => {\n return produce([...deck], (draft) => {\n if (draft.find((id) => id === entryId)) {\n return;\n }\n\n const key = options?.key;\n if (key) {\n const index = draft.findIndex((id) => id.split('+')[0] === key);\n if (index !== -1) {\n draft.splice(index, 1, entryId);\n return;\n }\n }\n\n draft.push(entryId);\n });\n};\n\nexport type OpenSubjectsOnActiveDeckOptions = {\n pivotId?: string;\n key?: string;\n};\n\n/**\n * Computes the next multi-mode `active` list for {@link LayoutOperation.Open}.\n * If `pivotId` is present and found, truncates the deck after that id.\n * Applies each subject with {@link openEntry}.\n * If the pivot is missing, appends onto the full `active` list.\n *\n * When all subjects are already present in the active deck, the deck is returned\n * unchanged so that pivot truncation does not discard open planks when navigating\n * to something that is already visible.\n */\nexport const openSubjectsOnActiveDeck = (\n active: readonly string[],\n subject: readonly string[],\n options?: OpenSubjectsOnActiveDeckOptions,\n): string[] => {\n if (subject.length > 0 && subject.every((id) => active.includes(id))) {\n return [...active];\n }\n\n const { pivotId, key } = options ?? {};\n const pivotIndex = pivotId ? active.findIndex((id) => id === pivotId) : -1;\n const baseDeck = pivotIndex !== -1 ? active.slice(0, pivotIndex + 1) : [...active];\n return subject.reduce((acc, entryId) => openEntry(acc, entryId, { key }), baseDeck);\n};\n\nexport const closeEntry = (deck: string[], entryId: string): string[] => {\n return produce(deck, (draft) => {\n const index = draft.findIndex((id) => id === entryId);\n if (index !== -1) {\n draft.splice(index, 1);\n }\n });\n};\n\nexport const incrementPlank = (deck: string[], adjustment: DeckAction.Adjustment): string[] => {\n return produce(deck, (draft) => {\n const index = draft.findIndex((id) => id === adjustment.id);\n if (\n index === -1 ||\n (adjustment.type === 'increment-start' && index === 0) ||\n (adjustment.type === 'increment-end' && index === draft.length - 1)\n ) {\n return;\n }\n\n if (adjustment.type === 'increment-start') {\n // Swap the current item with the previous item.\n [draft[index - 1], draft[index]] = [draft[index], draft[index - 1]];\n } else if (adjustment.type === 'increment-end') {\n // Swap the current item with the next item.\n [draft[index], draft[index + 1]] = [draft[index + 1], draft[index]];\n }\n });\n};\n"],
|
|
5
|
+
"mappings": ";;;AAIA,SAASA,eAAe;AAYjB,IAAMC,YAAY,CAACC,MAAyBC,SAAiBC,YAAAA;AAClE,SAAOJ,QAAQ;OAAIE;KAAO,CAACG,UAAAA;AACzB,QAAIA,MAAMC,KAAK,CAACC,OAAOA,OAAOJ,OAAAA,GAAU;AACtC;IACF;AAEA,UAAMK,MAAMJ,SAASI;AACrB,QAAIA,KAAK;AACP,YAAMC,QAAQJ,MAAMK,UAAU,CAACH,OAAOA,GAAGI,MAAM,GAAA,EAAK,CAAA,MAAOH,GAAAA;AAC3D,UAAIC,UAAU,IAAI;AAChBJ,cAAMO,OAAOH,OAAO,GAAGN,OAAAA;AACvB;MACF;IACF;AAEAE,UAAMQ,KAAKV,OAAAA;EACb,CAAA;AACF;AAiBO,IAAMW,2BAA2B,CACtCC,QACAC,SACAZ,YAAAA;AAEA,MAAIY,QAAQC,SAAS,KAAKD,QAAQE,MAAM,CAACX,OAAOQ,OAAOI,SAASZ,EAAAA,CAAAA,GAAM;AACpE,WAAO;SAAIQ;;EACb;AAEA,QAAM,EAAEK,SAASZ,IAAG,IAAKJ,WAAW,CAAC;AACrC,QAAMiB,aAAaD,UAAUL,OAAOL,UAAU,CAACH,OAAOA,OAAOa,OAAAA,IAAW;AACxE,QAAME,WAAWD,eAAe,KAAKN,OAAOQ,MAAM,GAAGF,aAAa,CAAA,IAAK;OAAIN;;AAC3E,SAAOC,QAAQQ,OAAO,CAACC,KAAKtB,YAAYF,UAAUwB,KAAKtB,SAAS;IAAEK;EAAI,CAAA,GAAIc,QAAAA;AAC5E;AAEO,IAAMI,aAAa,CAACxB,MAAgBC,YAAAA;AACzC,SAAOH,QAAQE,MAAM,CAACG,UAAAA;AACpB,UAAMI,QAAQJ,MAAMK,UAAU,CAACH,OAAOA,OAAOJ,OAAAA;AAC7C,QAAIM,UAAU,IAAI;AAChBJ,YAAMO,OAAOH,OAAO,CAAA;IACtB;EACF,CAAA;AACF;AAEO,IAAMkB,iBAAiB,CAACzB,MAAgB0B,eAAAA;AAC7C,SAAO5B,QAAQE,MAAM,CAACG,UAAAA;AACpB,UAAMI,QAAQJ,MAAMK,UAAU,CAACH,OAAOA,OAAOqB,WAAWrB,EAAE;AAC1D,QACEE,UAAU,MACTmB,WAAWC,SAAS,qBAAqBpB,UAAU,KACnDmB,WAAWC,SAAS,mBAAmBpB,UAAUJ,MAAMY,SAAS,GACjE;AACA;IACF;AAEA,QAAIW,WAAWC,SAAS,mBAAmB;AAEzC,OAACxB,MAAMI,QAAQ,CAAA,GAAIJ,MAAMI,KAAAA,CAAM,IAAI;QAACJ,MAAMI,KAAAA;QAAQJ,MAAMI,QAAQ,CAAA;;IAClE,WAAWmB,WAAWC,SAAS,iBAAiB;AAE9C,OAACxB,MAAMI,KAAAA,GAAQJ,MAAMI,QAAQ,CAAA,CAAE,IAAI;QAACJ,MAAMI,QAAQ,CAAA;QAAIJ,MAAMI,KAAAA;;IAC9D;EACF,CAAA;AACF;",
|
|
6
|
+
"names": ["produce", "openEntry", "deck", "entryId", "options", "draft", "find", "id", "key", "index", "findIndex", "split", "splice", "push", "openSubjectsOnActiveDeck", "active", "subject", "length", "every", "includes", "pivotId", "pivotIndex", "baseDeck", "slice", "reduce", "acc", "closeEntry", "incrementPlank", "adjustment", "type"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
closeEntry
|
|
4
|
+
} from "./chunk-WGBUTT5K.mjs";
|
|
5
|
+
import {
|
|
6
|
+
computeActiveUpdates
|
|
7
|
+
} from "./chunk-KY7ZCANM.mjs";
|
|
8
|
+
import {
|
|
9
|
+
updateActiveDeck
|
|
10
|
+
} from "./chunk-SHSR2CYO.mjs";
|
|
11
|
+
import {
|
|
12
|
+
DeckCapabilities
|
|
13
|
+
} from "./chunk-FO7YDJZ3.mjs";
|
|
14
|
+
import "./chunk-HSLMI22Q.mjs";
|
|
15
|
+
|
|
16
|
+
// src/operations/close.ts
|
|
17
|
+
import * as Effect from "effect/Effect";
|
|
18
|
+
import { Capabilities, Capability } from "@dxos/app-framework";
|
|
19
|
+
import { LayoutOperation } from "@dxos/app-toolkit";
|
|
20
|
+
import { Operation } from "@dxos/compute";
|
|
21
|
+
import { AttentionCapabilities } from "@dxos/plugin-attention/types";
|
|
22
|
+
var handler = LayoutOperation.Close.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
|
|
23
|
+
const deck = yield* DeckCapabilities.getDeck();
|
|
24
|
+
const attention = yield* Capability.get(AttentionCapabilities.Attention);
|
|
25
|
+
const active = deck.solo ? [
|
|
26
|
+
deck.solo
|
|
27
|
+
] : deck.active;
|
|
28
|
+
const next = input.subject.reduce((acc, id) => closeEntry(acc, id), active);
|
|
29
|
+
const { deckUpdates, toAttend } = computeActiveUpdates({
|
|
30
|
+
next,
|
|
31
|
+
deck,
|
|
32
|
+
attention
|
|
33
|
+
});
|
|
34
|
+
yield* Capabilities.updateAtomValue(DeckCapabilities.State, (state) => updateActiveDeck(state, deckUpdates));
|
|
35
|
+
if (toAttend) {
|
|
36
|
+
yield* Operation.schedule(LayoutOperation.ScrollIntoView, {
|
|
37
|
+
subject: toAttend
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
})));
|
|
41
|
+
var close_default = handler;
|
|
42
|
+
export {
|
|
43
|
+
close_default as default
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=close-U5VC7ERP.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/close.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/compute';\nimport { AttentionCapabilities } from '@dxos/plugin-attention/types';\n\nimport { closeEntry } from '../layout';\nimport { DeckCapabilities } from '../types';\nimport { computeActiveUpdates } from '../util';\nimport { updateActiveDeck } from './helpers';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.Close> = LayoutOperation.Close.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 active = deck.solo ? [deck.solo] : deck.active;\n const next = input.subject.reduce((acc, id) => closeEntry(acc, id), active);\n const { deckUpdates, toAttend } = computeActiveUpdates({ next, deck, attention });\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
|
+
"mappings": ";;;;;;;;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAC1B,SAASC,6BAA6B;AAOtC,IAAMC,UAA+DC,gBAAgBC,MAAMC,KACzFC,UAAUC,YACDC,kBAAW,WAAWC,OAAK;AAChC,QAAMC,OAAO,OAAOC,iBAAiBC,QAAO;AAC5C,QAAMC,YAAY,OAAOC,WAAWC,IAAIC,sBAAsBC,SAAS;AAEvE,QAAMC,SAASR,KAAKS,OAAO;IAACT,KAAKS;MAAQT,KAAKQ;AAC9C,QAAME,OAAOX,MAAMY,QAAQC,OAAO,CAACC,KAAKC,OAAOC,WAAWF,KAAKC,EAAAA,GAAKN,MAAAA;AACpE,QAAM,EAAEQ,aAAaC,SAAQ,IAAKC,qBAAqB;IAAER;IAAMV;IAAMG;EAAU,CAAA;AAC/E,SAAOgB,aAAaC,gBAAgBnB,iBAAiBoB,OAAO,CAACC,UAAUC,iBAAiBD,OAAON,WAAAA,CAAAA;AAE/F,MAAIC,UAAU;AACZ,WAAOrB,UAAU4B,SAAS/B,gBAAgBgC,gBAAgB;MAAEd,SAASM;IAAS,CAAA;EAChF;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,gBAAezB;",
|
|
6
|
+
"names": ["Effect", "Capabilities", "Capability", "LayoutOperation", "Operation", "AttentionCapabilities", "handler", "LayoutOperation", "Close", "pipe", "Operation", "withHandler", "fnUntraced", "input", "deck", "DeckCapabilities", "getDeck", "attention", "Capability", "get", "AttentionCapabilities", "Attention", "active", "solo", "next", "subject", "reduce", "acc", "id", "closeEntry", "deckUpdates", "toAttend", "computeActiveUpdates", "Capabilities", "updateAtomValue", "State", "state", "updateActiveDeck", "schedule", "ScrollIntoView"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
DeckCapabilities,
|
|
4
|
+
DeckEvents
|
|
5
|
+
} from "./chunk-FO7YDJZ3.mjs";
|
|
6
|
+
import "./chunk-HSLMI22Q.mjs";
|
|
7
|
+
|
|
8
|
+
// src/DeckPlugin.ts
|
|
9
|
+
import { setAutoFreeze } from "immer";
|
|
10
|
+
import { ActivationEvent, ActivationEvents, Plugin } from "@dxos/app-framework";
|
|
11
|
+
import { AppActivationEvents, AppPlugin } from "@dxos/app-toolkit";
|
|
12
|
+
import { translations as stackTranslations } from "@dxos/react-ui-stack/translations";
|
|
13
|
+
import { AppGraphBuilder, CheckAppScheme, DeckSettings, DeckState, OperationHandler, ReactRoot, ReactSurface, UrlHandler } from "#capabilities";
|
|
14
|
+
import { meta } from "#meta";
|
|
15
|
+
import { translations } from "#translations";
|
|
16
|
+
import { DeckEvents as DeckEvents2 } from "#types";
|
|
17
|
+
setAutoFreeze(false);
|
|
18
|
+
var DeckPlugin = Plugin.define(meta).pipe(
|
|
19
|
+
AppPlugin.addAppGraphModule({
|
|
20
|
+
activate: AppGraphBuilder
|
|
21
|
+
}),
|
|
22
|
+
AppPlugin.addOperationHandlerModule({
|
|
23
|
+
activate: OperationHandler
|
|
24
|
+
}),
|
|
25
|
+
AppPlugin.addSurfaceModule({
|
|
26
|
+
activate: ReactSurface
|
|
27
|
+
}),
|
|
28
|
+
AppPlugin.addTranslationsModule({
|
|
29
|
+
translations: [
|
|
30
|
+
...translations,
|
|
31
|
+
...stackTranslations
|
|
32
|
+
]
|
|
33
|
+
}),
|
|
34
|
+
Plugin.addModule({
|
|
35
|
+
activatesOn: AppActivationEvents.SetupSettings,
|
|
36
|
+
firesAfterActivation: [
|
|
37
|
+
DeckEvents2.SettingsReady
|
|
38
|
+
],
|
|
39
|
+
activate: DeckSettings
|
|
40
|
+
}),
|
|
41
|
+
Plugin.addModule({
|
|
42
|
+
activatesOn: ActivationEvent.allOf(DeckEvents2.SettingsReady, ActivationEvents.OperationInvokerReady),
|
|
43
|
+
activate: CheckAppScheme
|
|
44
|
+
}),
|
|
45
|
+
Plugin.addModule({
|
|
46
|
+
// TODO(wittjosiah): Does not integrate with settings store.
|
|
47
|
+
// Should this be a different event?
|
|
48
|
+
// Should settings store be renamed to be more generic?
|
|
49
|
+
activatesOn: ActivationEvent.oneOf(AppActivationEvents.SetupSettings, AppActivationEvents.SetupAppGraph),
|
|
50
|
+
firesAfterActivation: [
|
|
51
|
+
AppActivationEvents.LayoutReady,
|
|
52
|
+
DeckEvents2.StateReady
|
|
53
|
+
],
|
|
54
|
+
activate: DeckState
|
|
55
|
+
}),
|
|
56
|
+
Plugin.addModule({
|
|
57
|
+
activatesOn: ActivationEvents.Startup,
|
|
58
|
+
activate: ReactRoot
|
|
59
|
+
}),
|
|
60
|
+
// Plugin.addModule({
|
|
61
|
+
// activatesOn: Events.SetupArtifactDefinition,
|
|
62
|
+
// activate: Tools,
|
|
63
|
+
// }),
|
|
64
|
+
Plugin.addModule({
|
|
65
|
+
activatesOn: ActivationEvent.allOf(ActivationEvents.OperationInvokerReady, DeckEvents2.StateReady),
|
|
66
|
+
activate: UrlHandler
|
|
67
|
+
}),
|
|
68
|
+
Plugin.make
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
// src/meta.ts
|
|
72
|
+
import { trim } from "@dxos/util";
|
|
73
|
+
var meta2 = {
|
|
74
|
+
id: "org.dxos.plugin.deck",
|
|
75
|
+
name: "Layout",
|
|
76
|
+
description: trim`
|
|
77
|
+
Flexible layout system for arranging workspace views in tabs, splits, and panels.
|
|
78
|
+
Customize your workspace organization with drag-and-drop layout management.
|
|
79
|
+
`,
|
|
80
|
+
icon: "ph--layout--regular"
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
// src/hooks/useBreakpoints.ts
|
|
84
|
+
import { useMediaQuery } from "@dxos/react-ui";
|
|
85
|
+
|
|
86
|
+
// src/hooks/useCompanions.ts
|
|
87
|
+
import { useMemo } from "react";
|
|
88
|
+
import { useAppGraph } from "@dxos/app-toolkit/ui";
|
|
89
|
+
import { useConnections } from "@dxos/plugin-graph";
|
|
90
|
+
import { byPosition } from "@dxos/util";
|
|
91
|
+
import { PLANK_COMPANION_TYPE } from "#types";
|
|
92
|
+
var useCompanions = (id) => {
|
|
93
|
+
const { graph } = useAppGraph();
|
|
94
|
+
const nodes = useConnections(graph, id, "child");
|
|
95
|
+
const companions = nodes.filter((node) => node.type === PLANK_COMPANION_TYPE);
|
|
96
|
+
return useMemo(() => companions.toSorted((a, b) => byPosition(a.properties, b.properties)), [
|
|
97
|
+
companions
|
|
98
|
+
]);
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
// src/hooks/useDeckCompanions.ts
|
|
102
|
+
import { useAppGraph as useAppGraph2 } from "@dxos/app-toolkit/ui";
|
|
103
|
+
import { Node } from "@dxos/plugin-graph";
|
|
104
|
+
import { useConnections as useConnections2 } from "@dxos/plugin-graph";
|
|
105
|
+
import { byPosition as byPosition2 } from "@dxos/util";
|
|
106
|
+
import { DECK_COMPANION_TYPE } from "#types";
|
|
107
|
+
|
|
108
|
+
// src/hooks/useDeckState.ts
|
|
109
|
+
import { useAtomValue } from "@effect-atom/atom-react";
|
|
110
|
+
import { useCallback, useMemo as useMemo2 } from "react";
|
|
111
|
+
import { Capabilities } from "@dxos/app-framework";
|
|
112
|
+
import { useCapability } from "@dxos/app-framework/ui";
|
|
113
|
+
import { invariant } from "@dxos/invariant";
|
|
114
|
+
import { DeckCapabilities as DeckCapabilities2 } from "#types";
|
|
115
|
+
|
|
116
|
+
// src/hooks/useHoistStatusbar.ts
|
|
117
|
+
import { useMemo as useMemo3 } from "react";
|
|
118
|
+
import { useAtomCapability } from "@dxos/app-framework/ui";
|
|
119
|
+
import { useThemeContext } from "@dxos/react-ui";
|
|
120
|
+
import { DeckCapabilities as DeckCapabilities3 } from "#types";
|
|
121
|
+
|
|
122
|
+
// src/hooks/useMainSize.ts
|
|
123
|
+
import { useMainContext } from "@dxos/react-ui";
|
|
124
|
+
|
|
125
|
+
// src/hooks/useNodeActionExpander.ts
|
|
126
|
+
import { useEffect } from "react";
|
|
127
|
+
import { Graph } from "@dxos/plugin-graph";
|
|
128
|
+
|
|
129
|
+
// src/hooks/useSelectedCompanion.ts
|
|
130
|
+
import { useMemo as useMemo4 } from "react";
|
|
131
|
+
import { getLinkedVariant } from "@dxos/react-ui-attention";
|
|
132
|
+
export {
|
|
133
|
+
DeckCapabilities,
|
|
134
|
+
DeckEvents,
|
|
135
|
+
DeckPlugin,
|
|
136
|
+
meta2 as meta,
|
|
137
|
+
useCompanions
|
|
138
|
+
};
|
|
139
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/DeckPlugin.ts", "../../../src/meta.ts", "../../../src/hooks/useBreakpoints.ts", "../../../src/hooks/useCompanions.ts", "../../../src/hooks/useDeckCompanions.ts", "../../../src/hooks/useDeckState.ts", "../../../src/hooks/useHoistStatusbar.ts", "../../../src/hooks/useMainSize.ts", "../../../src/hooks/useNodeActionExpander.ts", "../../../src/hooks/useSelectedCompanion.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { setAutoFreeze } from 'immer';\n\nimport { ActivationEvent, ActivationEvents, Plugin } from '@dxos/app-framework';\nimport { AppActivationEvents, AppPlugin } from '@dxos/app-toolkit';\nimport { translations as stackTranslations } from '@dxos/react-ui-stack/translations';\n\nimport {\n AppGraphBuilder,\n CheckAppScheme,\n DeckSettings,\n DeckState,\n OperationHandler,\n ReactRoot,\n ReactSurface,\n UrlHandler,\n} from '#capabilities';\nimport { meta } from '#meta';\nimport { translations } from '#translations';\nimport { DeckEvents } from '#types';\n\n// NOTE(Zan): When producing values with immer, we shouldn't auto-freeze them because\n// our signal implementation needs to add some hidden properties to the produced values.\n// TODO(Zan): Move this to a more global location if we use immer more broadly.\nsetAutoFreeze(false);\n\nexport const DeckPlugin = Plugin.define(meta).pipe(\n AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),\n AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),\n AppPlugin.addSurfaceModule({ activate: ReactSurface }),\n AppPlugin.addTranslationsModule({ translations: [...translations, ...stackTranslations] }),\n Plugin.addModule({\n activatesOn: AppActivationEvents.SetupSettings,\n firesAfterActivation: [DeckEvents.SettingsReady],\n activate: DeckSettings,\n }),\n Plugin.addModule({\n activatesOn: ActivationEvent.allOf(DeckEvents.SettingsReady, ActivationEvents.OperationInvokerReady),\n activate: CheckAppScheme,\n }),\n Plugin.addModule({\n // TODO(wittjosiah): Does not integrate with settings store.\n // Should this be a different event?\n // Should settings store be renamed to be more generic?\n activatesOn: ActivationEvent.oneOf(AppActivationEvents.SetupSettings, AppActivationEvents.SetupAppGraph),\n firesAfterActivation: [AppActivationEvents.LayoutReady, DeckEvents.StateReady],\n activate: DeckState,\n }),\n Plugin.addModule({\n activatesOn: ActivationEvents.Startup,\n activate: ReactRoot,\n }),\n // Plugin.addModule({\n // activatesOn: Events.SetupArtifactDefinition,\n // activate: Tools,\n // }),\n Plugin.addModule({\n activatesOn: ActivationEvent.allOf(ActivationEvents.OperationInvokerReady, DeckEvents.StateReady),\n activate: UrlHandler,\n }),\n Plugin.make,\n);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.deck',\n name: 'Layout',\n description: trim`\n Flexible layout system for arranging workspace views in tabs, splits, and panels.\n Customize your workspace organization with drag-and-drop layout management.\n `,\n icon: 'ph--layout--regular',\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { useMediaQuery } from '@dxos/react-ui';\n\nexport const useBreakpoints = () => {\n const [isNotMobile] = useMediaQuery('md');\n const [isDesktop] = useMediaQuery('lg');\n return isDesktop ? 'desktop' : isNotMobile ? 'tablet' : 'mobile';\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { useMemo } from 'react';\n\nimport { useAppGraph } from '@dxos/app-toolkit/ui';\nimport { useConnections } from '@dxos/plugin-graph';\nimport { byPosition } from '@dxos/util';\n\nimport { PLANK_COMPANION_TYPE } from '#types';\n\nexport const useCompanions = (id?: string) => {\n const { graph } = useAppGraph();\n const nodes = useConnections(graph, id, 'child');\n const companions = nodes.filter((node) => node.type === PLANK_COMPANION_TYPE);\n return useMemo(() => companions.toSorted((a, b) => byPosition(a.properties, b.properties)), [companions]);\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { useAppGraph } from '@dxos/app-toolkit/ui';\nimport { Node, type Node as NodeType } from '@dxos/plugin-graph';\nimport { useConnections } from '@dxos/plugin-graph';\nimport { type Label } from '@dxos/ui-types/translations';\nimport { type Position, byPosition } from '@dxos/util';\n\nimport { DECK_COMPANION_TYPE } from '#types';\n\nexport type DeckCompanion = NodeType.Node<\n any,\n {\n label: Label;\n icon: string;\n // TODO(burdon): Scroll area should be controlled by surface.\n /** If true, the panel will not be wrapped in a scroll area. */\n fixed?: boolean;\n position?: Position;\n joyride?: string;\n }\n>;\n\nexport const useDeckCompanions = (): DeckCompanion[] => {\n const { graph } = useAppGraph();\n const connections = useConnections(graph, Node.RootId, 'child');\n const companions = connections.filter((node) => node.type === DECK_COMPANION_TYPE) as DeckCompanion[];\n return companions.toSorted((a, b) => byPosition(a.properties, b.properties));\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { useAtomValue } from '@effect-atom/atom-react';\nimport { useCallback, useMemo } from 'react';\n\nimport { Capabilities } from '@dxos/app-framework';\nimport { useCapability } from '@dxos/app-framework/ui';\nimport { invariant } from '@dxos/invariant';\n\nimport {\n DeckCapabilities,\n type EphemeralDeckState,\n type DeckPluginState,\n type DeckState,\n type StoredDeckState,\n} from '#types';\n\nexport type DeckStateHook = {\n /** Combined state value (reactive). Includes both persisted and ephemeral state. */\n state: DeckPluginState;\n /** The active deck, computed from decks[activeDeck]. */\n deck: DeckState;\n /** Update persisted state. */\n updateState: (fn: (current: StoredDeckState) => StoredDeckState) => void;\n /** Update ephemeral state. */\n updateEphemeral: (fn: (current: EphemeralDeckState) => EphemeralDeckState) => void;\n};\n\n/**\n * Hook to access the deck plugin state reactively.\n * Returns the combined state, the active deck, and update functions for each atom.\n */\nexport const useDeckState = (): DeckStateHook => {\n const registry = useCapability(Capabilities.AtomRegistry);\n const stateAtom = useCapability(DeckCapabilities.State);\n const ephemeralAtom = useCapability(DeckCapabilities.EphemeralState);\n const persistedState = useAtomValue(stateAtom);\n const ephemeralState = useAtomValue(ephemeralAtom);\n\n // Compute deck from decks[activeDeck] to ensure it's always current.\n const deck = useMemo(() => {\n const deck = persistedState.decks[persistedState.activeDeck];\n invariant(deck, `Deck not found: ${persistedState.activeDeck}`);\n return deck;\n }, [persistedState.decks, persistedState.activeDeck]);\n\n // Combine persisted and ephemeral state into a unified view.\n const state = useMemo(\n (): DeckPluginState => ({\n ...persistedState,\n ...ephemeralState,\n }),\n [persistedState, ephemeralState],\n );\n\n const updateState = useCallback(\n (fn: (current: StoredDeckState) => StoredDeckState) => {\n registry.set(stateAtom, fn(registry.get(stateAtom)));\n },\n [registry, stateAtom],\n );\n\n const updateEphemeral = useCallback(\n (fn: (current: EphemeralDeckState) => EphemeralDeckState) => {\n registry.set(ephemeralAtom, fn(registry.get(ephemeralAtom)));\n },\n [registry, ephemeralAtom],\n );\n\n return useMemo(() => ({ state, deck, updateState, updateEphemeral }), [state, deck, updateState, updateEphemeral]);\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { useMemo } from 'react';\n\nimport { useAtomCapability } from '@dxos/app-framework/ui';\nimport { useThemeContext } from '@dxos/react-ui';\n\nimport { DeckCapabilities, type LayoutMode } from '#types';\n\nexport const useHoistStatusbar = (breakpoint: string, layoutMode?: LayoutMode): boolean => {\n const { safeAreaPadding } = useThemeContext();\n const enableStatusbar = useAtomCapability(DeckCapabilities.Settings).enableStatusbar;\n\n return useMemo(() => {\n return (\n breakpoint === 'desktop' &&\n layoutMode !== 'solo--fullscreen' &&\n !!enableStatusbar &&\n safeAreaPadding?.bottom === 0\n );\n }, [enableStatusbar, breakpoint, safeAreaPadding?.bottom, layoutMode]);\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { useMainContext } from '@dxos/react-ui';\n\nexport const useMainSize = () => {\n const { navigationSidebarState, complementarySidebarState } = useMainContext('DeckPluginPlank');\n return {\n 'data-sidebar-left-state': navigationSidebarState,\n 'data-sidebar-right-state': complementarySidebarState,\n };\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { useEffect } from 'react';\n\nimport { Graph, type Node } from '@dxos/plugin-graph';\n\nexport const useNodeActionExpander = (node?: Node.Node) => {\n useEffect(() => {\n if (node) {\n const frame = requestAnimationFrame(() => {\n const graph = Graph.getGraph(node);\n void Graph.expand(graph, node.id, 'action');\n });\n return () => cancelAnimationFrame(frame);\n }\n }, [node]);\n};\n", "//\n// Copyright 2026 DXOS.org\n//\n\nimport { useMemo } from 'react';\n\nimport { type Node } from '@dxos/plugin-graph';\nimport { getLinkedVariant } from '@dxos/react-ui-attention';\n\n/**\n * Resolves which companion to show based on variant preference.\n * Falls back to first available if preferred variant not found.\n */\nexport const useSelectedCompanion = (companions: Node.Node[], preferredVariant?: string) => {\n return useMemo(() => {\n if (companions.length === 0) {\n return { companionId: undefined, variant: undefined };\n }\n\n // Try to find companion matching the preferred variant.\n if (preferredVariant) {\n const preferred = companions.find((companion) => getLinkedVariant(companion.id) === preferredVariant);\n if (preferred) {\n return { companionId: preferred.id, variant: getLinkedVariant(preferred.id) };\n }\n }\n\n // Fallback to first companion.\n const first = companions[0];\n return { companionId: first.id, variant: getLinkedVariant(first.id) };\n }, [companions, preferredVariant]);\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAIA,SAASA,qBAAqB;AAE9B,SAASC,iBAAiBC,kBAAkBC,cAAc;AAC1D,SAASC,qBAAqBC,iBAAiB;AAC/C,SAASC,gBAAgBC,yBAAyB;AAElD,SACEC,iBACAC,gBACAC,cACAC,WACAC,kBACAC,WACAC,cACAC,kBACK;AACP,SAASC,YAAY;AACrB,SAASV,oBAAoB;AAC7B,SAASW,cAAAA,mBAAkB;AAK3BjB,cAAc,KAAA;AAEP,IAAMkB,aAAaf,OAAOgB,OAAOH,IAAAA,EAAMI;EAC5Cf,UAAUgB,kBAAkB;IAAEC,UAAUd;EAAgB,CAAA;EACxDH,UAAUkB,0BAA0B;IAAED,UAAUV;EAAiB,CAAA;EACjEP,UAAUmB,iBAAiB;IAAEF,UAAUR;EAAa,CAAA;EACpDT,UAAUoB,sBAAsB;IAAEnB,cAAc;SAAIA;SAAiBC;;EAAmB,CAAA;EACxFJ,OAAOuB,UAAU;IACfC,aAAavB,oBAAoBwB;IACjCC,sBAAsB;MAACZ,YAAWa;;IAClCR,UAAUZ;EACZ,CAAA;EACAP,OAAOuB,UAAU;IACfC,aAAa1B,gBAAgB8B,MAAMd,YAAWa,eAAe5B,iBAAiB8B,qBAAqB;IACnGV,UAAUb;EACZ,CAAA;EACAN,OAAOuB,UAAU;;;;IAIfC,aAAa1B,gBAAgBgC,MAAM7B,oBAAoBwB,eAAexB,oBAAoB8B,aAAa;IACvGL,sBAAsB;MAACzB,oBAAoB+B;MAAalB,YAAWmB;;IACnEd,UAAUX;EACZ,CAAA;EACAR,OAAOuB,UAAU;IACfC,aAAazB,iBAAiBmC;IAC9Bf,UAAUT;EACZ,CAAA;;;;;EAKAV,OAAOuB,UAAU;IACfC,aAAa1B,gBAAgB8B,MAAM7B,iBAAiB8B,uBAAuBf,YAAWmB,UAAU;IAChGd,UAAUP;EACZ,CAAA;EACAZ,OAAOmC;AAAI;;;AC1Db,SAASC,YAAY;AAEd,IAAMC,QAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaJ;;;;EAIbK,MAAM;AACR;;;ACXA,SAASC,qBAAqB;;;ACA9B,SAASC,eAAe;AAExB,SAASC,mBAAmB;AAC5B,SAASC,sBAAsB;AAC/B,SAASC,kBAAkB;AAE3B,SAASC,4BAA4B;AAE9B,IAAMC,gBAAgB,CAACC,OAAAA;AAC5B,QAAM,EAAEC,MAAK,IAAKN,YAAAA;AAClB,QAAMO,QAAQN,eAAeK,OAAOD,IAAI,OAAA;AACxC,QAAMG,aAAaD,MAAME,OAAO,CAACC,SAASA,KAAKC,SAASR,oBAAAA;AACxD,SAAOJ,QAAQ,MAAMS,WAAWI,SAAS,CAACC,GAAGC,MAAMZ,WAAWW,EAAEE,YAAYD,EAAEC,UAAU,CAAA,GAAI;IAACP;GAAW;AAC1G;;;ACbA,SAASQ,eAAAA,oBAAmB;AAC5B,SAASC,YAAmC;AAC5C,SAASC,kBAAAA,uBAAsB;AAE/B,SAAwBC,cAAAA,mBAAkB;AAE1C,SAASC,2BAA2B;;;ACNpC,SAASC,oBAAoB;AAC7B,SAASC,aAAaC,WAAAA,gBAAe;AAErC,SAASC,oBAAoB;AAC7B,SAASC,qBAAqB;AAC9B,SAASC,iBAAiB;AAE1B,SACEC,oBAAAA,yBAKK;;;ACbP,SAASC,WAAAA,gBAAe;AAExB,SAASC,yBAAyB;AAClC,SAASC,uBAAuB;AAEhC,SAASC,oBAAAA,yBAAyC;;;ACLlD,SAASC,sBAAsB;;;ACA/B,SAASC,iBAAiB;AAE1B,SAASC,aAAwB;;;ACFjC,SAASC,WAAAA,gBAAe;AAGxB,SAASC,wBAAwB;",
|
|
6
|
+
"names": ["setAutoFreeze", "ActivationEvent", "ActivationEvents", "Plugin", "AppActivationEvents", "AppPlugin", "translations", "stackTranslations", "AppGraphBuilder", "CheckAppScheme", "DeckSettings", "DeckState", "OperationHandler", "ReactRoot", "ReactSurface", "UrlHandler", "meta", "DeckEvents", "DeckPlugin", "define", "pipe", "addAppGraphModule", "activate", "addOperationHandlerModule", "addSurfaceModule", "addTranslationsModule", "addModule", "activatesOn", "SetupSettings", "firesAfterActivation", "SettingsReady", "allOf", "OperationInvokerReady", "oneOf", "SetupAppGraph", "LayoutReady", "StateReady", "Startup", "make", "trim", "meta", "id", "name", "description", "icon", "useMediaQuery", "useMemo", "useAppGraph", "useConnections", "byPosition", "PLANK_COMPANION_TYPE", "useCompanions", "id", "graph", "nodes", "companions", "filter", "node", "type", "toSorted", "a", "b", "properties", "useAppGraph", "Node", "useConnections", "byPosition", "DECK_COMPANION_TYPE", "useAtomValue", "useCallback", "useMemo", "Capabilities", "useCapability", "invariant", "DeckCapabilities", "useMemo", "useAtomCapability", "useThemeContext", "DeckCapabilities", "useMainContext", "useEffect", "Graph", "useMemo", "getLinkedVariant"]
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"inputs":{"src/types/capabilities.ts":{"bytes":3986,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/events.ts":{"bytes":2036,"imports":[{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"src/types/capabilities.ts","kind":"import-statement","original":"./capabilities"}],"format":"esm"},"src/types/Settings.ts":{"bytes":4164,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true}],"format":"esm"},"src/types/schema.ts":{"bytes":21292,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"src/types/Settings.ts","kind":"import-statement","original":"./Settings"},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":704,"imports":[{"path":"src/types/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/types/events.ts","kind":"import-statement","original":"./events"},{"path":"src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"src/types/Settings.ts","kind":"import-statement","original":"./Settings"}],"format":"esm"},"src/DeckPlugin.ts":{"bytes":8259,"imports":[{"path":"immer","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack/translations","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/meta.ts":{"bytes":1402,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/useBreakpoints.ts":{"bytes":1181,"imports":[{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/useCompanions.ts":{"bytes":2419,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/useDeckCompanions.ts":{"bytes":2989,"imports":[{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/useDeckState.ts":{"bytes":7508,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/useHoistStatusbar.ts":{"bytes":2654,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/useMainSize.ts":{"bytes":1379,"imports":[{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/useNodeActionExpander.ts":{"bytes":1904,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/useSelectedCompanion.ts":{"bytes":3826,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/index.ts":{"bytes":1157,"imports":[{"path":"src/hooks/useBreakpoints.ts","kind":"import-statement","original":"./useBreakpoints"},{"path":"src/hooks/useCompanions.ts","kind":"import-statement","original":"./useCompanions"},{"path":"src/hooks/useDeckCompanions.ts","kind":"import-statement","original":"./useDeckCompanions"},{"path":"src/hooks/useDeckState.ts","kind":"import-statement","original":"./useDeckState"},{"path":"src/hooks/useHoistStatusbar.ts","kind":"import-statement","original":"./useHoistStatusbar"},{"path":"src/hooks/useMainSize.ts","kind":"import-statement","original":"./useMainSize"},{"path":"src/hooks/useNodeActionExpander.ts","kind":"import-statement","original":"./useNodeActionExpander"},{"path":"src/hooks/useSelectedCompanion.ts","kind":"import-statement","original":"./useSelectedCompanion"}],"format":"esm"},"src/index.ts":{"bytes":839,"imports":[{"path":"src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"src/DeckPlugin.ts","kind":"import-statement","original":"./DeckPlugin"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/hooks/index.ts","kind":"import-statement","original":"./hooks"}],"format":"esm"},"src/operations/definitions.ts":{"bytes":6355,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/operations/add-toast.ts":{"bytes":2512,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/layout.ts":{"bytes":9777,"imports":[{"path":"immer","kind":"import-statement","external":true}],"format":"esm"},"src/util/layoutAppliesTopbar.ts":{"bytes":1161,"imports":[],"format":"esm"},"src/util/plank-url-params.ts":{"bytes":3834,"imports":[{"path":"@dxos/app-toolkit","kind":"import-statement","external":true}],"format":"esm"},"src/util/sanitize-persisted-state.ts":{"bytes":5242,"imports":[],"format":"esm"},"src/util/set-active.ts":{"bytes":6262,"imports":[],"format":"esm"},"src/util/index.ts":{"bytes":733,"imports":[{"path":"src/util/layoutAppliesTopbar.ts","kind":"import-statement","original":"./layoutAppliesTopbar"},{"path":"src/util/plank-url-params.ts","kind":"import-statement","original":"./plank-url-params"},{"path":"src/util/sanitize-persisted-state.ts","kind":"import-statement","original":"./sanitize-persisted-state"},{"path":"src/util/set-active.ts","kind":"import-statement","original":"./set-active"}],"format":"esm"},"src/operations/helpers.ts":{"bytes":2197,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"src/operations/adjust.ts":{"bytes":11920,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Function","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/plugin-attention/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/layout.ts","kind":"import-statement","original":"../layout"},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"},{"path":"src/util/index.ts","kind":"import-statement","original":"../util"},{"path":"src/operations/definitions.ts","kind":"import-statement","original":"./definitions"},{"path":"src/operations/helpers.ts","kind":"import-statement","original":"./helpers"}],"format":"esm"},"src/operations/close.ts":{"bytes":4954,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/plugin-attention/types","kind":"import-statement","external":true},{"path":"src/layout.ts","kind":"import-statement","original":"../layout"},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"},{"path":"src/util/index.ts","kind":"import-statement","original":"../util"},{"path":"src/operations/helpers.ts","kind":"import-statement","original":"./helpers"}],"format":"esm"},"src/operations/open.ts":{"bytes":25658,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-attention/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-client/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-observability/operations","kind":"import-statement","external":true},{"path":"src/layout.ts","kind":"import-statement","original":"../layout"},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"},{"path":"src/util/index.ts","kind":"import-statement","original":"../util"},{"path":"src/operations/helpers.ts","kind":"import-statement","original":"./helpers"}],"format":"esm"},"src/operations/revert-workspace.ts":{"bytes":2510,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/scroll-into-view.ts":{"bytes":2465,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/set.ts":{"bytes":4308,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/plugin-attention/types","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"},{"path":"src/util/index.ts","kind":"import-statement","original":"../util"},{"path":"src/operations/helpers.ts","kind":"import-statement","original":"./helpers"}],"format":"esm"},"src/operations/set-layout-mode.ts":{"bytes":11070,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"},{"path":"src/operations/helpers.ts","kind":"import-statement","original":"./helpers"}],"format":"esm"},"src/operations/show-undo.ts":{"bytes":5995,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/switch-workspace.ts":{"bytes":8570,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/update-companion.ts":{"bytes":3845,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"},{"path":"src/operations/helpers.ts","kind":"import-statement","original":"./helpers"}],"format":"esm"},"src/operations/update-complementary.ts":{"bytes":4302,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/update-dialog.ts":{"bytes":3880,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/update-plank-size.ts":{"bytes":2905,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"},{"path":"src/operations/definitions.ts","kind":"import-statement","original":"./definitions"},{"path":"src/operations/helpers.ts","kind":"import-statement","original":"./helpers"}],"format":"esm"},"src/operations/update-popover.ts":{"bytes":4851,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/update-sidebar.ts":{"bytes":3029,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/index.ts":{"bytes":2599,"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/operations/definitions.ts","kind":"import-statement","original":"./definitions"},{"path":"src/operations/add-toast.ts","kind":"dynamic-import","original":"./add-toast"},{"path":"src/operations/adjust.ts","kind":"dynamic-import","original":"./adjust"},{"path":"src/operations/close.ts","kind":"dynamic-import","original":"./close"},{"path":"src/operations/open.ts","kind":"dynamic-import","original":"./open"},{"path":"src/operations/revert-workspace.ts","kind":"dynamic-import","original":"./revert-workspace"},{"path":"src/operations/scroll-into-view.ts","kind":"dynamic-import","original":"./scroll-into-view"},{"path":"src/operations/set.ts","kind":"dynamic-import","original":"./set"},{"path":"src/operations/set-layout-mode.ts","kind":"dynamic-import","original":"./set-layout-mode"},{"path":"src/operations/show-undo.ts","kind":"dynamic-import","original":"./show-undo"},{"path":"src/operations/switch-workspace.ts","kind":"dynamic-import","original":"./switch-workspace"},{"path":"src/operations/update-companion.ts","kind":"dynamic-import","original":"./update-companion"},{"path":"src/operations/update-complementary.ts","kind":"dynamic-import","original":"./update-complementary"},{"path":"src/operations/update-dialog.ts","kind":"dynamic-import","original":"./update-dialog"},{"path":"src/operations/update-plank-size.ts","kind":"dynamic-import","original":"./update-plank-size"},{"path":"src/operations/update-popover.ts","kind":"dynamic-import","original":"./update-popover"},{"path":"src/operations/update-sidebar.ts","kind":"dynamic-import","original":"./update-sidebar"}],"format":"esm"},"src/translations.ts":{"bytes":7212,"imports":[{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/lib/node-esm/update-dialog-CABL7OWW.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2121},"dist/lib/node-esm/update-dialog-CABL7OWW.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-FO7YDJZ3.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/update-dialog.ts","inputs":{"src/operations/update-dialog.ts":{"bytesInOutput":793}},"bytes":1110},"dist/lib/node-esm/update-plank-size-WYTSMZF2.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1553},"dist/lib/node-esm/update-plank-size-WYTSMZF2.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-L7OVX7CV.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-SHSR2CYO.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-FO7YDJZ3.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/update-plank-size.ts","inputs":{"src/operations/update-plank-size.ts":{"bytesInOutput":491}},"bytes":937},"dist/lib/node-esm/update-popover-YZDYGL7G.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2602},"dist/lib/node-esm/update-popover-YZDYGL7G.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-FO7YDJZ3.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/update-popover.ts","inputs":{"src/operations/update-popover.ts":{"bytesInOutput":1036}},"bytes":1356},"dist/lib/node-esm/update-sidebar-HV736LUN.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1648},"dist/lib/node-esm/update-sidebar-HV736LUN.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-FO7YDJZ3.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/update-sidebar.ts","inputs":{"src/operations/update-sidebar.ts":{"bytesInOutput":637}},"bytes":957},"dist/lib/node-esm/revert-workspace-QD63M2U7.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1407},"dist/lib/node-esm/revert-workspace-QD63M2U7.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-FO7YDJZ3.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/revert-workspace.ts","inputs":{"src/operations/revert-workspace.ts":{"bytesInOutput":514}},"bytes":840},"dist/lib/node-esm/scroll-into-view-G5M2EWK7.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1370},"dist/lib/node-esm/scroll-into-view-G5M2EWK7.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-FO7YDJZ3.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/scroll-into-view.ts","inputs":{"src/operations/scroll-into-view.ts":{"bytesInOutput":485}},"bytes":811},"dist/lib/node-esm/set-ERJCXZBY.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2350},"dist/lib/node-esm/set-ERJCXZBY.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-KY7ZCANM.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-SHSR2CYO.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-FO7YDJZ3.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/plugin-attention/types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/set.ts","inputs":{"src/operations/set.ts":{"bytesInOutput":873}},"bytes":1282},"dist/lib/node-esm/set-layout-mode-BOZD7744.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5337},"dist/lib/node-esm/set-layout-mode-BOZD7744.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-SHSR2CYO.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-FO7YDJZ3.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/set-layout-mode.ts","inputs":{"src/operations/set-layout-mode.ts":{"bytesInOutput":2594}},"bytes":3003},"dist/lib/node-esm/show-undo-H5BRBYDC.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3053},"dist/lib/node-esm/show-undo-H5BRBYDC.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-FO7YDJZ3.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/show-undo.ts","inputs":{"src/operations/show-undo.ts":{"bytesInOutput":1345}},"bytes":1650},"dist/lib/node-esm/switch-workspace-F54PXE5N.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3942},"dist/lib/node-esm/switch-workspace-F54PXE5N.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-FO7YDJZ3.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/switch-workspace.ts","inputs":{"src/operations/switch-workspace.ts":{"bytesInOutput":2043}},"bytes":2384},"dist/lib/node-esm/update-companion-47LMKL5R.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2102},"dist/lib/node-esm/update-companion-47LMKL5R.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-SHSR2CYO.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-FO7YDJZ3.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/update-companion.ts","inputs":{"src/operations/update-companion.ts":{"bytesInOutput":813}},"bytes":1198},"dist/lib/node-esm/update-complementary-7VYYG7L2.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2294},"dist/lib/node-esm/update-complementary-7VYYG7L2.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-FO7YDJZ3.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/update-complementary.ts","inputs":{"src/operations/update-complementary.ts":{"bytesInOutput":992}},"bytes":1330},"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":13627},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-FO7YDJZ3.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"immer","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack/translations","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true}],"exports":["DeckCapabilities","DeckEvents","DeckPlugin","meta","useCompanions"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0},"src/DeckPlugin.ts":{"bytesInOutput":2086},"src/meta.ts":{"bytesInOutput":322},"src/hooks/useBreakpoints.ts":{"bytesInOutput":48},"src/hooks/index.ts":{"bytesInOutput":0},"src/hooks/useCompanions.ts":{"bytesInOutput":544},"src/hooks/useDeckCompanions.ts":{"bytesInOutput":285},"src/hooks/useDeckState.ts":{"bytesInOutput":331},"src/hooks/useHoistStatusbar.ts":{"bytesInOutput":219},"src/hooks/useMainSize.ts":{"bytesInOutput":49},"src/hooks/useNodeActionExpander.ts":{"bytesInOutput":79},"src/hooks/useSelectedCompanion.ts":{"bytesInOutput":106}},"bytes":4700},"dist/lib/node-esm/operations/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1359},"dist/lib/node-esm/operations/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-L7OVX7CV.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/add-toast-JUTN4GTI.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/adjust-P5QK33P4.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/close-U5VC7ERP.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/open-4B3P5XGS.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/revert-workspace-QD63M2U7.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/scroll-into-view-G5M2EWK7.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/set-ERJCXZBY.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/set-layout-mode-BOZD7744.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/show-undo-H5BRBYDC.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/switch-workspace-F54PXE5N.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/update-companion-47LMKL5R.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/update-complementary-7VYYG7L2.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/update-dialog-CABL7OWW.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/update-plank-size-WYTSMZF2.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/update-popover-YZDYGL7G.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/update-sidebar-HV736LUN.mjs","kind":"dynamic-import"}],"exports":["DeckOperation","DeckOperationHandlerSet"],"entryPoint":"src/operations/index.ts","inputs":{"src/operations/index.ts":{"bytesInOutput":846}},"bytes":1174},"dist/lib/node-esm/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3279},"dist/lib/node-esm/translations.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"#meta","kind":"import-statement","external":true}],"exports":["translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":2321}},"bytes":2537},"dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-FO7YDJZ3.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"}],"exports":["DECK_COMPANION_TYPE","DeckAction","DeckCapabilities","DeckEvents","DeckState","EphemeralDeckState","PLANK_COMPANION_TYPE","PlankSizing","Settings","StoredDeckState","defaultDeck","getMode","isLayoutMode"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":674},"dist/lib/node-esm/add-toast-JUTN4GTI.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1364},"dist/lib/node-esm/add-toast-JUTN4GTI.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-FO7YDJZ3.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/add-toast.ts","inputs":{"src/operations/add-toast.ts":{"bytesInOutput":493}},"bytes":798},"dist/lib/node-esm/adjust-P5QK33P4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6211},"dist/lib/node-esm/adjust-P5QK33P4.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-L7OVX7CV.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-WGBUTT5K.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-KY7ZCANM.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-SHSR2CYO.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-FO7YDJZ3.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Function","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/plugin-attention/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/adjust.ts","inputs":{"src/operations/adjust.ts":{"bytesInOutput":2694}},"bytes":3242},"dist/lib/node-esm/chunk-L7OVX7CV.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3156},"dist/lib/node-esm/chunk-L7OVX7CV.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["Adjust","UpdatePlankSize","definitions_exports"],"inputs":{"src/operations/definitions.ts":{"bytesInOutput":1806}},"bytes":2091},"dist/lib/node-esm/close-U5VC7ERP.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2669},"dist/lib/node-esm/close-U5VC7ERP.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-WGBUTT5K.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-KY7ZCANM.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-SHSR2CYO.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-FO7YDJZ3.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/plugin-attention/types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/close.ts","inputs":{"src/operations/close.ts":{"bytesInOutput":1005}},"bytes":1473},"dist/lib/node-esm/open-4B3P5XGS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":11798},"dist/lib/node-esm/open-4B3P5XGS.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-WGBUTT5K.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-KY7ZCANM.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-SHSR2CYO.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-FO7YDJZ3.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-attention/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-client/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-observability/operations","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/open.ts","inputs":{"src/operations/open.ts":{"bytesInOutput":5203}},"bytes":5682},"dist/lib/node-esm/chunk-WGBUTT5K.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5038},"dist/lib/node-esm/chunk-WGBUTT5K.mjs":{"imports":[{"path":"immer","kind":"import-statement","external":true}],"exports":["closeEntry","incrementPlank","openSubjectsOnActiveDeck"],"inputs":{"src/layout.ts":{"bytesInOutput":1761}},"bytes":1987},"dist/lib/node-esm/chunk-KY7ZCANM.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4635},"dist/lib/node-esm/chunk-KY7ZCANM.mjs":{"imports":[{"path":"@dxos/app-toolkit","kind":"import-statement","external":true}],"exports":["computeActiveUpdates"],"inputs":{"src/util/set-active.ts":{"bytesInOutput":1130},"src/util/index.ts":{"bytesInOutput":0},"src/util/plank-url-params.ts":{"bytesInOutput":60}},"bytes":1422},"dist/lib/node-esm/chunk-SHSR2CYO.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1086},"dist/lib/node-esm/chunk-SHSR2CYO.mjs":{"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true}],"exports":["updateActiveDeck"],"inputs":{"src/operations/helpers.ts":{"bytesInOutput":600}},"bytes":798},"dist/lib/node-esm/chunk-FO7YDJZ3.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":15604},"dist/lib/node-esm/chunk-FO7YDJZ3.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true}],"exports":["DECK_COMPANION_TYPE","DeckAction","DeckCapabilities","DeckEvents","DeckState","EphemeralDeckState","PLANK_COMPANION_TYPE","PlankSizing","Settings_exports","StoredDeckState","defaultDeck","getMode","isLayoutMode"],"inputs":{"src/types/capabilities.ts":{"bytesInOutput":1012},"src/types/index.ts":{"bytesInOutput":0},"src/types/events.ts":{"bytesInOutput":375},"src/types/schema.ts":{"bytesInOutput":5340},"src/types/Settings.ts":{"bytesInOutput":1148}},"bytes":8428},"dist/lib/node-esm/chunk-HSLMI22Q.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/chunk-HSLMI22Q.mjs":{"imports":[],"exports":["__export"],"inputs":{},"bytes":327}}}
|