@dxos/plugin-deck 0.8.4-main.f5c0578 → 0.8.4-main.fcfe5033a5
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-3V7TYC2M.mjs +24 -0
- package/dist/lib/browser/add-toast-3V7TYC2M.mjs.map +7 -0
- package/dist/lib/browser/adjust-ZMPN7P7J.mjs +96 -0
- package/dist/lib/browser/adjust-ZMPN7P7J.mjs.map +7 -0
- package/dist/lib/browser/change-companion-F7GCREGM.mjs +34 -0
- package/dist/lib/browser/change-companion-F7GCREGM.mjs.map +7 -0
- package/dist/lib/browser/chunk-BRZAVPMC.mjs +48 -0
- package/dist/lib/browser/chunk-BRZAVPMC.mjs.map +7 -0
- package/dist/lib/browser/chunk-DF2VZ6W3.mjs +69 -0
- package/dist/lib/browser/chunk-DF2VZ6W3.mjs.map +7 -0
- package/dist/lib/browser/chunk-FUWSZ6IC.mjs +88 -0
- package/dist/lib/browser/chunk-FUWSZ6IC.mjs.map +7 -0
- package/dist/lib/browser/chunk-GN52IRQ7.mjs +216 -0
- package/dist/lib/browser/chunk-GN52IRQ7.mjs.map +7 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-KUTDCWZF.mjs +30 -0
- package/dist/lib/browser/chunk-KUTDCWZF.mjs.map +7 -0
- package/dist/lib/browser/close-N2F26CVG.mjs +44 -0
- package/dist/lib/browser/close-N2F26CVG.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +161 -134
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/open-VWO7VOOU.mjs +150 -0
- package/dist/lib/browser/open-VWO7VOOU.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-LGKZZKCI.mjs +21 -0
- package/dist/lib/browser/revert-workspace-LGKZZKCI.mjs.map +7 -0
- package/dist/lib/browser/scroll-into-view-TSVSNKIH.mjs +21 -0
- package/dist/lib/browser/scroll-into-view-TSVSNKIH.mjs.map +7 -0
- package/dist/lib/browser/set-N2LGA2BY.mjs +37 -0
- package/dist/lib/browser/set-N2LGA2BY.mjs.map +7 -0
- package/dist/lib/browser/set-layout-mode-TONTQO6G.mjs +90 -0
- package/dist/lib/browser/set-layout-mode-TONTQO6G.mjs.map +7 -0
- package/dist/lib/browser/show-undo-IFXNEIQY.mjs +59 -0
- package/dist/lib/browser/show-undo-IFXNEIQY.mjs.map +7 -0
- package/dist/lib/browser/switch-workspace-ZJDC5SSR.mjs +68 -0
- package/dist/lib/browser/switch-workspace-ZJDC5SSR.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +12 -12
- package/dist/lib/browser/update-complementary-ELUOK3GD.mjs +28 -0
- package/dist/lib/browser/update-complementary-ELUOK3GD.mjs.map +7 -0
- package/dist/lib/browser/update-dialog-LMGLOTWX.mjs +29 -0
- package/dist/lib/browser/update-dialog-LMGLOTWX.mjs.map +7 -0
- package/dist/lib/browser/update-plank-size-WQAPELII.mjs +28 -0
- package/dist/lib/browser/update-plank-size-WQAPELII.mjs.map +7 -0
- package/dist/lib/browser/update-popover-P6YO6FWJ.mjs +33 -0
- package/dist/lib/browser/update-popover-P6YO6FWJ.mjs.map +7 -0
- package/dist/lib/browser/update-sidebar-NGWS6IDJ.mjs +25 -0
- package/dist/lib/browser/update-sidebar-NGWS6IDJ.mjs.map +7 -0
- package/dist/lib/node-esm/add-toast-G4OQEGOS.mjs +25 -0
- package/dist/lib/node-esm/add-toast-G4OQEGOS.mjs.map +7 -0
- package/dist/lib/node-esm/adjust-KSNI7C3B.mjs +97 -0
- package/dist/lib/node-esm/adjust-KSNI7C3B.mjs.map +7 -0
- package/dist/lib/node-esm/change-companion-LCJPT6AX.mjs +35 -0
- package/dist/lib/node-esm/change-companion-LCJPT6AX.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-4ED7B7OZ.mjs +217 -0
- package/dist/lib/node-esm/chunk-4ED7B7OZ.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-7KL65RLL.mjs +89 -0
- package/dist/lib/node-esm/chunk-7KL65RLL.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-IRWCUYJY.mjs +71 -0
- package/dist/lib/node-esm/chunk-IRWCUYJY.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-MB4SDDVY.mjs +50 -0
- package/dist/lib/node-esm/chunk-MB4SDDVY.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-MLVJ2ODW.mjs +32 -0
- package/dist/lib/node-esm/chunk-MLVJ2ODW.mjs.map +7 -0
- package/dist/lib/node-esm/close-YHIBVE2S.mjs +45 -0
- package/dist/lib/node-esm/close-YHIBVE2S.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +202 -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-353DYMMN.mjs +151 -0
- package/dist/lib/node-esm/open-353DYMMN.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-OS5R3PFJ.mjs +22 -0
- package/dist/lib/node-esm/revert-workspace-OS5R3PFJ.mjs.map +7 -0
- package/dist/lib/node-esm/scroll-into-view-LC2SVKCW.mjs +22 -0
- package/dist/lib/node-esm/scroll-into-view-LC2SVKCW.mjs.map +7 -0
- package/dist/lib/node-esm/set-3EZ7LJFU.mjs +38 -0
- package/dist/lib/node-esm/set-3EZ7LJFU.mjs.map +7 -0
- package/dist/lib/node-esm/set-layout-mode-3YBHGEK6.mjs +91 -0
- package/dist/lib/node-esm/set-layout-mode-3YBHGEK6.mjs.map +7 -0
- package/dist/lib/node-esm/show-undo-RAHLRPUU.mjs +60 -0
- package/dist/lib/node-esm/show-undo-RAHLRPUU.mjs.map +7 -0
- package/dist/lib/node-esm/switch-workspace-S6CXDPXZ.mjs +69 -0
- package/dist/lib/node-esm/switch-workspace-S6CXDPXZ.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-complementary-V5Y2RMYL.mjs +29 -0
- package/dist/lib/node-esm/update-complementary-V5Y2RMYL.mjs.map +7 -0
- package/dist/lib/node-esm/update-dialog-IMTCLAWR.mjs +30 -0
- package/dist/lib/node-esm/update-dialog-IMTCLAWR.mjs.map +7 -0
- package/dist/lib/node-esm/update-plank-size-I3DKCPHZ.mjs +29 -0
- package/dist/lib/node-esm/update-plank-size-I3DKCPHZ.mjs.map +7 -0
- package/dist/lib/node-esm/update-popover-7JX3KWYL.mjs +34 -0
- package/dist/lib/node-esm/update-popover-7JX3KWYL.mjs.map +7 -0
- package/dist/lib/node-esm/update-sidebar-B5DCSREP.mjs +26 -0
- package/dist/lib/node-esm/update-sidebar-B5DCSREP.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 +134 -44
- 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 +71 -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/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 +71 -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 +42 -0
- package/dist/types/src/containers/Deck/DeckRoot.d.ts.map +1 -0
- package/dist/types/src/containers/Deck/DeckViewport.d.ts +19 -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 +73 -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 +71 -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/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/useDeckCompanions.d.ts +3 -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/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/change-companion.d.ts +5 -0
- package/dist/types/src/operations/change-companion.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 +18 -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-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 +52 -52
- 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 +103 -96
- 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 +68 -56
- 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 +87 -49
- package/src/DeckPlugin.ts +43 -69
- 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 +57 -50
- package/src/capabilities/url-handler.ts +221 -50
- package/src/components/DeckSettings/DeckSettings.stories.tsx +37 -0
- package/src/components/DeckSettings/DeckSettings.tsx +55 -70
- package/src/components/DeckSettings/index.ts +2 -2
- package/src/components/Matrix/Matrix.stories.tsx +216 -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 +393 -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 +106 -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 +209 -0
- package/src/containers/Sidebar/Sidebar.tsx +44 -0
- package/src/containers/Sidebar/SidebarButton.tsx +94 -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 +7 -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/change-companion.ts +35 -0
- package/src/operations/close.ts +35 -0
- package/src/operations/definitions.ts +62 -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-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 +52 -52
- package/src/types/Settings.ts +17 -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 +52 -50
- 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}/Banner.d.ts +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/SidebarButton.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,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,SAAOC,QAAQ;OAAIH;KAAO,CAACI,UAAAA;AACzB,QAAIA,MAAMC,KAAK,CAACC,OAAOA,OAAOL,OAAAA,GAAU;AACtC;IACF;AAEA,UAAMM,MAAML,SAASK;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,GAAGP,OAAAA;AACvB;MACF;IACF;AAEAG,UAAMQ,KAAKX,OAAAA;EACb,CAAA;AACF;AAiBO,IAAMY,2BAA2B,CACtCC,QACAC,SACAb,YAAAA;AAEA,MAAIa,QAAQC,SAAS,KAAKD,QAAQE,MAAM,CAACX,OAAOQ,OAAOI,SAASZ,EAAAA,CAAAA,GAAM;AACpE,WAAO;SAAIQ;;EACb;AAEA,QAAM,EAAEK,SAASZ,IAAG,IAAKL,WAAW,CAAC;AACrC,QAAMkB,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,KAAKvB,YAAYF,UAAUyB,KAAKvB,SAAS;IAAEM;EAAI,CAAA,GAAIc,QAAAA;AAC5E;AAEO,IAAMI,aAAa,CAACzB,MAAgBC,YAAAA;AACzC,SAAOE,QAAQH,MAAM,CAACI,UAAAA;AACpB,UAAMI,QAAQJ,MAAMK,UAAU,CAACH,OAAOA,OAAOL,OAAAA;AAC7C,QAAIO,UAAU,IAAI;AAChBJ,YAAMO,OAAOH,OAAO,CAAA;IACtB;EACF,CAAA;AACF;AAEO,IAAMkB,iBAAiB,CAAC1B,MAAgB2B,eAAAA;AAC7C,SAAOxB,QAAQH,MAAM,CAACI,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", "produce", "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,50 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// src/util/set-active.ts
|
|
4
|
+
var computeActiveUpdates = ({ next, deck, attention }) => {
|
|
5
|
+
const active = deck.solo ? [
|
|
6
|
+
deck.solo
|
|
7
|
+
] : deck.active;
|
|
8
|
+
const removed = active.filter((id) => !next.includes(id));
|
|
9
|
+
const closed = Array.from(/* @__PURE__ */ new Set([
|
|
10
|
+
...deck.inactive.filter((id) => !next.includes(id)),
|
|
11
|
+
...removed
|
|
12
|
+
]));
|
|
13
|
+
const updates = {
|
|
14
|
+
inactive: closed,
|
|
15
|
+
solo: deck.solo,
|
|
16
|
+
active: deck.active,
|
|
17
|
+
fullscreen: deck.fullscreen
|
|
18
|
+
};
|
|
19
|
+
if (deck.solo || !deck.initialized) {
|
|
20
|
+
updates.solo = next[0];
|
|
21
|
+
} else {
|
|
22
|
+
updates.active = next;
|
|
23
|
+
}
|
|
24
|
+
if (deck.fullscreen && !updates.solo) {
|
|
25
|
+
updates.fullscreen = false;
|
|
26
|
+
}
|
|
27
|
+
let toAttend;
|
|
28
|
+
if (attention) {
|
|
29
|
+
const attended = attention.getCurrent();
|
|
30
|
+
const [attendedId] = Array.from(attended);
|
|
31
|
+
const isAttendedAvailable = !!attendedId && next.includes(attendedId);
|
|
32
|
+
if (!isAttendedAvailable) {
|
|
33
|
+
const attendedIndex = active.indexOf(attendedId);
|
|
34
|
+
const index = attendedIndex === -1 ? 0 : attendedIndex >= next.length ? next.length - 1 : attendedIndex;
|
|
35
|
+
toAttend = next[index];
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
deckUpdates: updates,
|
|
40
|
+
toAttend
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
// src/util/plank-url-params.ts
|
|
45
|
+
import { fromUrlPath, toUrlPath } from "@dxos/app-toolkit";
|
|
46
|
+
|
|
47
|
+
export {
|
|
48
|
+
computeActiveUpdates
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=chunk-MB4SDDVY.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/util/set-active.ts", "../../../src/util/plank-url-params.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type AttentionManager } from '@dxos/react-ui-attention';\n\nimport { type DeckState } from '#types';\n\nexport type SetActiveOptions = {\n next: string[];\n deck: DeckState;\n attention?: AttentionManager;\n};\n\nexport type SetActiveResult = {\n /** Updates to apply to the deck. */\n deckUpdates: {\n inactive: string[];\n solo: string | undefined;\n active: string[];\n fullscreen: boolean;\n };\n /** ID of the item to attend (scroll into view) if attention changed. */\n toAttend?: string;\n};\n\n/**\n * Computes the new active state for the deck without mutating.\n * Returns the updates to apply and optionally an item to attend.\n */\nexport const computeActiveUpdates = ({ next, deck, attention }: SetActiveOptions): SetActiveResult => {\n const active = deck.solo ? [deck.solo] : deck.active;\n const removed = active.filter((id) => !next.includes(id));\n const closed = Array.from(new Set([...deck.inactive.filter((id) => !next.includes(id)), ...removed]));\n\n const updates = {\n inactive: closed,\n solo: deck.solo,\n active: deck.active,\n fullscreen: deck.fullscreen,\n };\n\n if (deck.solo || !deck.initialized) {\n updates.solo = next[0];\n } else {\n updates.active = next;\n }\n\n if (deck.fullscreen && !updates.solo) {\n updates.fullscreen = false;\n }\n\n let toAttend: string | undefined;\n if (attention) {\n const attended = attention.getCurrent();\n const [attendedId] = Array.from(attended);\n const isAttendedAvailable = !!attendedId && next.includes(attendedId);\n if (!isAttendedAvailable) {\n const attendedIndex = active.indexOf(attendedId);\n // If outside of bounds, focus on the first/last plank, otherwise focus on the new plank in the same position.\n const index = attendedIndex === -1 ? 0 : attendedIndex >= next.length ? next.length - 1 : attendedIndex;\n toAttend = next[index];\n }\n }\n\n return { deckUpdates: updates, toAttend };\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { fromUrlPath, toUrlPath } from '@dxos/app-toolkit';\n\nconst PLANK_PARAM = 'plank';\n\n/**\n * Serialize deck active qualified IDs into a URL search string.\n * Preserves non-plank query params from the existing search string.\n */\nexport const serializePlanks = (active: readonly string[], existingSearch: string): string => {\n const params = new URLSearchParams(existingSearch);\n params.delete(PLANK_PARAM);\n for (const id of active) {\n params.append(PLANK_PARAM, toUrlPath(id));\n }\n return params.size > 0 ? `?${params.toString()}` : '';\n};\n\n/**\n * Deserialize plank query params from a URL back to qualified graph IDs.\n */\nexport const deserializePlanks = (url: URL): string[] => {\n return url.searchParams.getAll(PLANK_PARAM).map(fromUrlPath);\n};\n\n/**\n * Strip plank query params from a search string, preserving all others.\n */\nexport const stripPlanks = (existingSearch: string): string => {\n const params = new URLSearchParams(existingSearch);\n params.delete(PLANK_PARAM);\n return params.size > 0 ? `?${params.toString()}` : '';\n};\n"],
|
|
5
|
+
"mappings": ";;;AA8BO,IAAMA,uBAAuB,CAAC,EAAEC,MAAMC,MAAMC,UAAS,MAAoB;AAC9E,QAAMC,SAASF,KAAKG,OAAO;IAACH,KAAKG;MAAQH,KAAKE;AAC9C,QAAME,UAAUF,OAAOG,OAAO,CAACC,OAAO,CAACP,KAAKQ,SAASD,EAAAA,CAAAA;AACrD,QAAME,SAASC,MAAMC,KAAK,oBAAIC,IAAI;OAAIX,KAAKY,SAASP,OAAO,CAACC,OAAO,CAACP,KAAKQ,SAASD,EAAAA,CAAAA;OAASF;GAAQ,CAAA;AAEnG,QAAMS,UAAU;IACdD,UAAUJ;IACVL,MAAMH,KAAKG;IACXD,QAAQF,KAAKE;IACbY,YAAYd,KAAKc;EACnB;AAEA,MAAId,KAAKG,QAAQ,CAACH,KAAKe,aAAa;AAClCF,YAAQV,OAAOJ,KAAK,CAAA;EACtB,OAAO;AACLc,YAAQX,SAASH;EACnB;AAEA,MAAIC,KAAKc,cAAc,CAACD,QAAQV,MAAM;AACpCU,YAAQC,aAAa;EACvB;AAEA,MAAIE;AACJ,MAAIf,WAAW;AACb,UAAMgB,WAAWhB,UAAUiB,WAAU;AACrC,UAAM,CAACC,UAAAA,IAAcV,MAAMC,KAAKO,QAAAA;AAChC,UAAMG,sBAAsB,CAAC,CAACD,cAAcpB,KAAKQ,SAASY,UAAAA;AAC1D,QAAI,CAACC,qBAAqB;AACxB,YAAMC,gBAAgBnB,OAAOoB,QAAQH,UAAAA;AAErC,YAAMI,QAAQF,kBAAkB,KAAK,IAAIA,iBAAiBtB,KAAKyB,SAASzB,KAAKyB,SAAS,IAAIH;AAC1FL,iBAAWjB,KAAKwB,KAAAA;IAClB;EACF;AAEA,SAAO;IAAEE,aAAaZ;IAASG;EAAS;AAC1C;;;AC9DA,SAASU,aAAaC,iBAAiB;",
|
|
6
|
+
"names": ["computeActiveUpdates", "next", "deck", "attention", "active", "solo", "removed", "filter", "id", "includes", "closed", "Array", "from", "Set", "inactive", "updates", "fullscreen", "initialized", "toAttend", "attended", "getCurrent", "attendedId", "isAttendedAvailable", "attendedIndex", "indexOf", "index", "length", "deckUpdates", "fromUrlPath", "toUrlPath"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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}`, {
|
|
9
|
+
F: __dxlog_file,
|
|
10
|
+
L: 11,
|
|
11
|
+
S: void 0,
|
|
12
|
+
A: [
|
|
13
|
+
"currentDeck",
|
|
14
|
+
"`Deck not found: ${current.activeDeck}`"
|
|
15
|
+
]
|
|
16
|
+
});
|
|
17
|
+
return {
|
|
18
|
+
...current,
|
|
19
|
+
decks: {
|
|
20
|
+
...current.decks,
|
|
21
|
+
[current.activeDeck]: {
|
|
22
|
+
...currentDeck,
|
|
23
|
+
...deckUpdates
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
updateActiveDeck
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=chunk-MLVJ2ODW.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;;AAInB,IAAMC,mBAAmB,CAACC,SAA0BC,gBAAAA;AACzD,QAAMC,cAAcF,QAAQG,MAAMH,QAAQI,UAAU;AACpDN,YAAUI,aAAa,mBAAmBF,QAAQI,UAAU,IAAE;;;;;;;;;AAC9D,SAAO;IACL,GAAGJ;IACHG,OAAO;MACL,GAAGH,QAAQG;MACX,CAACH,QAAQI,UAAU,GAAG;QACpB,GAAGF;QACH,GAAGD;MACL;IACF;EACF;AACF;",
|
|
6
|
+
"names": ["invariant", "updateActiveDeck", "current", "deckUpdates", "currentDeck", "decks", "activeDeck"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
closeEntry
|
|
4
|
+
} from "./chunk-IRWCUYJY.mjs";
|
|
5
|
+
import {
|
|
6
|
+
computeActiveUpdates
|
|
7
|
+
} from "./chunk-MB4SDDVY.mjs";
|
|
8
|
+
import {
|
|
9
|
+
updateActiveDeck
|
|
10
|
+
} from "./chunk-MLVJ2ODW.mjs";
|
|
11
|
+
import {
|
|
12
|
+
DeckCapabilities
|
|
13
|
+
} from "./chunk-4ED7B7OZ.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/operation";
|
|
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-YHIBVE2S.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/operation';\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,202 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
DeckCapabilities,
|
|
4
|
+
DeckEvents
|
|
5
|
+
} from "./chunk-4ED7B7OZ.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";
|
|
13
|
+
import { AppGraphBuilder, CheckAppScheme, DeckSettings, DeckState, OperationHandler, ReactRoot, ReactSurface, UrlHandler } from "#capabilities";
|
|
14
|
+
import { meta as meta2 } from "#meta";
|
|
15
|
+
import { DeckEvents as DeckEvents2 } from "#types";
|
|
16
|
+
|
|
17
|
+
// src/translations.ts
|
|
18
|
+
import { meta } from "#meta";
|
|
19
|
+
var translations = [
|
|
20
|
+
{
|
|
21
|
+
"en-US": {
|
|
22
|
+
[meta.id]: {
|
|
23
|
+
"plugin.name": "Deck",
|
|
24
|
+
"settings.title": "Deck settings",
|
|
25
|
+
"main-header.label": "Main header",
|
|
26
|
+
"open-navigation-sidebar.label": "Open sidebar",
|
|
27
|
+
"collapse-navigation-sidebar.label": "Minimize sidebar",
|
|
28
|
+
"open-complementary-sidebar.label": "Open context sidebar",
|
|
29
|
+
"close-complementary-sidebar.label": "Minimize context sidebar",
|
|
30
|
+
"sidebar.title": "Navigation sidebar",
|
|
31
|
+
"complementary-sidebar.title": "Context sidebar",
|
|
32
|
+
"plugin-error.message": "Content failed to render.",
|
|
33
|
+
"content-fallback.message": "Unsupported",
|
|
34
|
+
"content-fallback.description": "No plugin had a response for the address you navigated\xA0to. Double-check the URL, and ensure you\u2019ve enabled a plugin that supports the\xA0object.",
|
|
35
|
+
"toggle-fullscreen.label": "Toggle fullscreen",
|
|
36
|
+
"settings.show-hints.label": "Show hints",
|
|
37
|
+
"settings.show-hints.description": "Show helpful tips and keyboard shortcut hints in the interface.",
|
|
38
|
+
"settings.native-redirect.label": "Enable native url redirect",
|
|
39
|
+
"settings.native-redirect.description": "Redirect supported URLs to the native desktop application.",
|
|
40
|
+
"undo-available.label": "Click to undo previous action.",
|
|
41
|
+
"undo-action.label": "Undo",
|
|
42
|
+
"undo-action.alt": "Undo previous action",
|
|
43
|
+
"undo-close.label": "Dismiss",
|
|
44
|
+
"error-fallback.message": "Unable to open this object",
|
|
45
|
+
"plank-heading-fallback.label": "Untitled",
|
|
46
|
+
"actions-menu.label": "Options",
|
|
47
|
+
"settings.deck.label": "Disable deck",
|
|
48
|
+
"pending.heading": "Loading\u2026",
|
|
49
|
+
"insert-plank.label": "Open",
|
|
50
|
+
"resize.label": "Drag to resize",
|
|
51
|
+
"pin-start.label": "Pin to the left sidebar",
|
|
52
|
+
"pin-end.label": "Pin to the right sidebar",
|
|
53
|
+
"increment-start.label": "Move to the left",
|
|
54
|
+
"increment-end.label": "Move to the right",
|
|
55
|
+
"show-deck-plank.label": "Return to deck",
|
|
56
|
+
"show-solo-plank.label": "Maximize",
|
|
57
|
+
"exit-fullscreen.label": "Exit fullscreen",
|
|
58
|
+
"show-fullscreen-plank.label": "Fullscreen",
|
|
59
|
+
"close.label": "Close",
|
|
60
|
+
"minify.label": "Minify",
|
|
61
|
+
"open-companion.label": "Open companion",
|
|
62
|
+
"close-companion.label": "Close companion",
|
|
63
|
+
"settings.enable-statusbar.label": "Show status bar",
|
|
64
|
+
"settings.enable-statusbar.description": "Display a status bar at the bottom of the application.",
|
|
65
|
+
"settings.enable-deck.label": "Enable Deck",
|
|
66
|
+
"settings.enable-deck.description": "Display multiple panels side by side instead of one at a time.",
|
|
67
|
+
"settings.encapsulated-planks.label": "Encapsulated planks",
|
|
68
|
+
"settings.encapsulated-planks.description": "Render each plank inside its own isolated container.",
|
|
69
|
+
"close-current.label": "Close current plank",
|
|
70
|
+
"close-others.label": "Close other planks",
|
|
71
|
+
"close-all.label": "Close all planks",
|
|
72
|
+
"close-navigation-sidebar.button": "Close",
|
|
73
|
+
"companion-plank-heading-fallback.label": "Related"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
];
|
|
78
|
+
|
|
79
|
+
// src/DeckPlugin.ts
|
|
80
|
+
setAutoFreeze(false);
|
|
81
|
+
var DeckPlugin = Plugin.define(meta2).pipe(
|
|
82
|
+
AppPlugin.addAppGraphModule({
|
|
83
|
+
activate: AppGraphBuilder
|
|
84
|
+
}),
|
|
85
|
+
AppPlugin.addOperationHandlerModule({
|
|
86
|
+
activate: OperationHandler
|
|
87
|
+
}),
|
|
88
|
+
AppPlugin.addSurfaceModule({
|
|
89
|
+
activate: ReactSurface
|
|
90
|
+
}),
|
|
91
|
+
AppPlugin.addTranslationsModule({
|
|
92
|
+
translations: [
|
|
93
|
+
...translations,
|
|
94
|
+
...stackTranslations
|
|
95
|
+
]
|
|
96
|
+
}),
|
|
97
|
+
Plugin.addModule({
|
|
98
|
+
activatesOn: AppActivationEvents.SetupSettings,
|
|
99
|
+
firesAfterActivation: [
|
|
100
|
+
DeckEvents2.SettingsReady
|
|
101
|
+
],
|
|
102
|
+
activate: DeckSettings
|
|
103
|
+
}),
|
|
104
|
+
Plugin.addModule({
|
|
105
|
+
activatesOn: ActivationEvent.allOf(DeckEvents2.SettingsReady, ActivationEvents.OperationInvokerReady),
|
|
106
|
+
activate: CheckAppScheme
|
|
107
|
+
}),
|
|
108
|
+
Plugin.addModule({
|
|
109
|
+
// TODO(wittjosiah): Does not integrate with settings store.
|
|
110
|
+
// Should this be a different event?
|
|
111
|
+
// Should settings store be renamed to be more generic?
|
|
112
|
+
activatesOn: ActivationEvent.oneOf(AppActivationEvents.SetupSettings, AppActivationEvents.SetupAppGraph),
|
|
113
|
+
firesAfterActivation: [
|
|
114
|
+
AppActivationEvents.LayoutReady,
|
|
115
|
+
DeckEvents2.StateReady
|
|
116
|
+
],
|
|
117
|
+
activate: DeckState
|
|
118
|
+
}),
|
|
119
|
+
Plugin.addModule({
|
|
120
|
+
activatesOn: ActivationEvents.Startup,
|
|
121
|
+
activate: ReactRoot
|
|
122
|
+
}),
|
|
123
|
+
// Plugin.addModule({
|
|
124
|
+
// activatesOn: Events.SetupArtifactDefinition,
|
|
125
|
+
// activate: Tools,
|
|
126
|
+
// }),
|
|
127
|
+
Plugin.addModule({
|
|
128
|
+
activatesOn: ActivationEvent.allOf(ActivationEvents.OperationInvokerReady, DeckEvents2.StateReady),
|
|
129
|
+
activate: UrlHandler
|
|
130
|
+
}),
|
|
131
|
+
Plugin.make
|
|
132
|
+
);
|
|
133
|
+
|
|
134
|
+
// src/meta.ts
|
|
135
|
+
import { trim } from "@dxos/util";
|
|
136
|
+
var meta3 = {
|
|
137
|
+
id: "org.dxos.plugin.deck",
|
|
138
|
+
name: "Layout",
|
|
139
|
+
description: trim`
|
|
140
|
+
Flexible layout system for arranging workspace views in tabs, splits, and panels.
|
|
141
|
+
Customize your workspace organization with drag-and-drop layout management.
|
|
142
|
+
`,
|
|
143
|
+
icon: "ph--layout--regular"
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
// src/hooks/useBreakpoints.ts
|
|
147
|
+
import { useMediaQuery } from "@dxos/react-ui";
|
|
148
|
+
|
|
149
|
+
// src/hooks/useCompanions.ts
|
|
150
|
+
import { useMemo } from "react";
|
|
151
|
+
import { useAppGraph } from "@dxos/app-toolkit/ui";
|
|
152
|
+
import { useConnections } from "@dxos/plugin-graph";
|
|
153
|
+
import { byPosition } from "@dxos/util";
|
|
154
|
+
import { PLANK_COMPANION_TYPE } from "#types";
|
|
155
|
+
var useCompanions = (id) => {
|
|
156
|
+
const { graph } = useAppGraph();
|
|
157
|
+
const nodes = useConnections(graph, id, "child");
|
|
158
|
+
const companions = nodes.filter((node) => node.type === PLANK_COMPANION_TYPE);
|
|
159
|
+
return useMemo(() => companions.toSorted((a, b) => byPosition(a.properties, b.properties)), [
|
|
160
|
+
companions
|
|
161
|
+
]);
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
// src/hooks/useDeckCompanions.ts
|
|
165
|
+
import { useAppGraph as useAppGraph2 } from "@dxos/app-toolkit/ui";
|
|
166
|
+
import { Node } from "@dxos/plugin-graph";
|
|
167
|
+
import { useConnections as useConnections2 } from "@dxos/plugin-graph";
|
|
168
|
+
import { byPosition as byPosition2 } from "@dxos/util";
|
|
169
|
+
import { DECK_COMPANION_TYPE } from "#types";
|
|
170
|
+
|
|
171
|
+
// src/hooks/useDeckState.ts
|
|
172
|
+
import { useAtomValue } from "@effect-atom/atom-react";
|
|
173
|
+
import { useCallback, useMemo as useMemo2 } from "react";
|
|
174
|
+
import { Capabilities } from "@dxos/app-framework";
|
|
175
|
+
import { useCapability } from "@dxos/app-framework/ui";
|
|
176
|
+
import { invariant } from "@dxos/invariant";
|
|
177
|
+
import { DeckCapabilities as DeckCapabilities2 } from "#types";
|
|
178
|
+
|
|
179
|
+
// src/hooks/useHoistStatusbar.ts
|
|
180
|
+
import { useMemo as useMemo3 } from "react";
|
|
181
|
+
import { useAtomCapability } from "@dxos/app-framework/ui";
|
|
182
|
+
import { useThemeContext } from "@dxos/react-ui";
|
|
183
|
+
import { DeckCapabilities as DeckCapabilities3 } from "#types";
|
|
184
|
+
|
|
185
|
+
// src/hooks/useMainSize.ts
|
|
186
|
+
import { useMainContext } from "@dxos/react-ui";
|
|
187
|
+
|
|
188
|
+
// src/hooks/useNodeActionExpander.ts
|
|
189
|
+
import { useEffect } from "react";
|
|
190
|
+
import { Graph } from "@dxos/plugin-graph";
|
|
191
|
+
|
|
192
|
+
// src/hooks/useSelectedCompanion.ts
|
|
193
|
+
import { useMemo as useMemo4 } from "react";
|
|
194
|
+
import { getLinkedVariant } from "@dxos/react-ui-attention";
|
|
195
|
+
export {
|
|
196
|
+
DeckCapabilities,
|
|
197
|
+
DeckEvents,
|
|
198
|
+
DeckPlugin,
|
|
199
|
+
meta3 as meta,
|
|
200
|
+
useCompanions
|
|
201
|
+
};
|
|
202
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/DeckPlugin.ts", "../../../src/translations.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';\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 { DeckEvents } from '#types';\n\nimport { translations } from './translations';\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 Resource } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n {\n 'en-US': {\n [meta.id]: {\n 'plugin.name': 'Deck',\n 'settings.title': 'Deck settings',\n 'main-header.label': 'Main header',\n 'open-navigation-sidebar.label': 'Open sidebar',\n 'collapse-navigation-sidebar.label': 'Minimize sidebar',\n 'open-complementary-sidebar.label': 'Open context sidebar',\n 'close-complementary-sidebar.label': 'Minimize context sidebar',\n 'sidebar.title': 'Navigation sidebar',\n 'complementary-sidebar.title': 'Context sidebar',\n 'plugin-error.message': 'Content failed to render.',\n 'content-fallback.message': 'Unsupported',\n 'content-fallback.description':\n 'No plugin had a response for the address you navigated to. Double-check the URL, and ensure you’ve enabled a plugin that supports the object.',\n 'toggle-fullscreen.label': 'Toggle fullscreen',\n 'settings.show-hints.label': 'Show hints',\n 'settings.show-hints.description': 'Show helpful tips and keyboard shortcut hints in the interface.',\n 'settings.native-redirect.label': 'Enable native url redirect',\n 'settings.native-redirect.description': 'Redirect supported URLs to the native desktop application.',\n 'undo-available.label': 'Click to undo previous action.',\n 'undo-action.label': 'Undo',\n 'undo-action.alt': 'Undo previous action',\n 'undo-close.label': 'Dismiss',\n 'error-fallback.message': 'Unable to open this object',\n 'plank-heading-fallback.label': 'Untitled',\n 'actions-menu.label': 'Options',\n 'settings.deck.label': 'Disable deck',\n 'pending.heading': 'Loading…',\n 'insert-plank.label': 'Open',\n 'resize.label': 'Drag to resize',\n 'pin-start.label': 'Pin to the left sidebar',\n 'pin-end.label': 'Pin to the right sidebar',\n 'increment-start.label': 'Move to the left',\n 'increment-end.label': 'Move to the right',\n 'show-deck-plank.label': 'Return to deck',\n 'show-solo-plank.label': 'Maximize',\n 'exit-fullscreen.label': 'Exit fullscreen',\n 'show-fullscreen-plank.label': 'Fullscreen',\n 'close.label': 'Close',\n 'minify.label': 'Minify',\n 'open-companion.label': 'Open companion',\n 'close-companion.label': 'Close companion',\n 'settings.enable-statusbar.label': 'Show status bar',\n 'settings.enable-statusbar.description': 'Display a status bar at the bottom of the application.',\n 'settings.enable-deck.label': 'Enable Deck',\n 'settings.enable-deck.description': 'Display multiple panels side by side instead of one at a time.',\n 'settings.encapsulated-planks.label': 'Encapsulated planks',\n 'settings.encapsulated-planks.description': 'Render each plank inside its own isolated container.',\n 'close-current.label': 'Close current plank',\n 'close-others.label': 'Close other planks',\n 'close-all.label': 'Close all planks',\n 'close-navigation-sidebar.button': 'Close',\n 'companion-plank-heading-fallback.label': 'Related',\n },\n },\n },\n] as const satisfies Resource[];\n", "//\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';\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 }\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,QAAAA,aAAY;AACrB,SAASC,cAAAA,mBAAkB;;;ACf3B,SAASC,YAAY;AAEd,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,KAAKC,EAAE,GAAG;QACT,eAAe;QACf,kBAAkB;QAClB,qBAAqB;QACrB,iCAAiC;QACjC,qCAAqC;QACrC,oCAAoC;QACpC,qCAAqC;QACrC,iBAAiB;QACjB,+BAA+B;QAC/B,wBAAwB;QACxB,4BAA4B;QAC5B,gCACE;QACF,2BAA2B;QAC3B,6BAA6B;QAC7B,mCAAmC;QACnC,kCAAkC;QAClC,wCAAwC;QACxC,wBAAwB;QACxB,qBAAqB;QACrB,mBAAmB;QACnB,oBAAoB;QACpB,0BAA0B;QAC1B,gCAAgC;QAChC,sBAAsB;QACtB,uBAAuB;QACvB,mBAAmB;QACnB,sBAAsB;QACtB,gBAAgB;QAChB,mBAAmB;QACnB,iBAAiB;QACjB,yBAAyB;QACzB,uBAAuB;QACvB,yBAAyB;QACzB,yBAAyB;QACzB,yBAAyB;QACzB,+BAA+B;QAC/B,eAAe;QACf,gBAAgB;QAChB,wBAAwB;QACxB,yBAAyB;QACzB,mCAAmC;QACnC,yCAAyC;QACzC,8BAA8B;QAC9B,oCAAoC;QACpC,sCAAsC;QACtC,4CAA4C;QAC5C,uBAAuB;QACvB,sBAAsB;QACtB,mBAAmB;QACnB,mCAAmC;QACnC,0CAA0C;MAC5C;IACF;EACF;;;;ADtCFC,cAAc,KAAA;AAEP,IAAMC,aAAaC,OAAOC,OAAOC,KAAAA,EAAMC;EAC5CC,UAAUC,kBAAkB;IAAEC,UAAUC;EAAgB,CAAA;EACxDH,UAAUI,0BAA0B;IAAEF,UAAUG;EAAiB,CAAA;EACjEL,UAAUM,iBAAiB;IAAEJ,UAAUK;EAAa,CAAA;EACpDP,UAAUQ,sBAAsB;IAAEC,cAAc;SAAIA;SAAiBC;;EAAmB,CAAA;EACxFd,OAAOe,UAAU;IACfC,aAAaC,oBAAoBC;IACjCC,sBAAsB;MAACC,YAAWC;;IAClCf,UAAUgB;EACZ,CAAA;EACAtB,OAAOe,UAAU;IACfC,aAAaO,gBAAgBC,MAAMJ,YAAWC,eAAeI,iBAAiBC,qBAAqB;IACnGpB,UAAUqB;EACZ,CAAA;EACA3B,OAAOe,UAAU;;;;IAIfC,aAAaO,gBAAgBK,MAAMX,oBAAoBC,eAAeD,oBAAoBY,aAAa;IACvGV,sBAAsB;MAACF,oBAAoBa;MAAaV,YAAWW;;IACnEzB,UAAU0B;EACZ,CAAA;EACAhC,OAAOe,UAAU;IACfC,aAAaS,iBAAiBQ;IAC9B3B,UAAU4B;EACZ,CAAA;;;;;EAKAlC,OAAOe,UAAU;IACfC,aAAaO,gBAAgBC,MAAMC,iBAAiBC,uBAAuBN,YAAWW,UAAU;IAChGzB,UAAU6B;EACZ,CAAA;EACAnC,OAAOoC;AAAI;;;AE3Db,SAASC,YAAY;AAEd,IAAMC,QAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;EAIbC,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,IAAKC,YAAAA;AAClB,QAAMC,QAAQC,eAAeH,OAAOD,IAAI,OAAA;AACxC,QAAMK,aAAaF,MAAMG,OAAO,CAACC,SAASA,KAAKC,SAASC,oBAAAA;AACxD,SAAOC,QAAQ,MAAML,WAAWM,SAAS,CAACC,GAAGC,MAAMC,WAAWF,EAAEG,YAAYF,EAAEE,UAAU,CAAA,GAAI;IAACV;GAAW;AAC1G;;;ACbA,SAASW,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", "meta", "translations", "meta", "id", "setAutoFreeze", "DeckPlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addAppGraphModule", "activate", "AppGraphBuilder", "addOperationHandlerModule", "OperationHandler", "addSurfaceModule", "ReactSurface", "addTranslationsModule", "translations", "stackTranslations", "addModule", "activatesOn", "AppActivationEvents", "SetupSettings", "firesAfterActivation", "DeckEvents", "SettingsReady", "DeckSettings", "ActivationEvent", "allOf", "ActivationEvents", "OperationInvokerReady", "CheckAppScheme", "oneOf", "SetupAppGraph", "LayoutReady", "StateReady", "DeckState", "Startup", "ReactRoot", "UrlHandler", "make", "trim", "meta", "id", "name", "description", "trim", "icon", "useMediaQuery", "useMemo", "useAppGraph", "useConnections", "byPosition", "PLANK_COMPANION_TYPE", "useCompanions", "id", "graph", "useAppGraph", "nodes", "useConnections", "companions", "filter", "node", "type", "PLANK_COMPANION_TYPE", "useMemo", "toSorted", "a", "b", "byPosition", "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":4122,"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":2122,"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":2226,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true}],"format":"esm"},"src/types/schema.ts":{"bytes":22365,"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":793,"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/translations.ts":{"bytes":9584,"imports":[{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/DeckPlugin.ts":{"bytes":8319,"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","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"src/meta.ts":{"bytes":1480,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/useBreakpoints.ts":{"bytes":1275,"imports":[{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/useCompanions.ts":{"bytes":2516,"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":3038,"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":7612,"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":2755,"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":1470,"imports":[{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/useNodeActionExpander.ts":{"bytes":2009,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/useSelectedCompanion.ts":{"bytes":3930,"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":1242,"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":922,"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":7957,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/operations/add-toast.ts":{"bytes":2612,"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/operation","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/layout.ts":{"bytes":9861,"imports":[{"path":"immer","kind":"import-statement","external":true}],"format":"esm"},"src/util/layoutAppliesTopbar.ts":{"bytes":1259,"imports":[],"format":"esm"},"src/util/plank-url-params.ts":{"bytes":3929,"imports":[{"path":"@dxos/app-toolkit","kind":"import-statement","external":true}],"format":"esm"},"src/util/sanitize-persisted-state.ts":{"bytes":5345,"imports":[],"format":"esm"},"src/util/set-active.ts":{"bytes":6351,"imports":[],"format":"esm"},"src/util/index.ts":{"bytes":821,"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":2270,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"src/operations/adjust.ts":{"bytes":12024,"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/operation","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/change-companion.ts":{"bytes":3860,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/operation","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/definitions.ts","kind":"import-statement","original":"./definitions"},{"path":"src/operations/helpers.ts","kind":"import-statement","original":"./helpers"}],"format":"esm"},"src/operations/close.ts":{"bytes":5050,"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/operation","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":25697,"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/context","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","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":2617,"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/operation","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/scroll-into-view.ts":{"bytes":2572,"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/operation","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/set.ts":{"bytes":4402,"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/operation","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":11147,"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/log","kind":"import-statement","external":true},{"path":"@dxos/operation","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":6095,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/operation","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":8680,"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/invariant","kind":"import-statement","external":true},{"path":"@dxos/operation","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-complementary.ts":{"bytes":4413,"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/operation","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/update-dialog.ts":{"bytes":3984,"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/operation","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/update-plank-size.ts":{"bytes":3013,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/operation","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":4956,"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/operation","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/update-sidebar.ts":{"bytes":3134,"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/operation","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/index.ts":{"bytes":2695,"imports":[{"path":"@dxos/operation","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/change-companion.ts","kind":"dynamic-import","original":"./change-companion"},{"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-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"}},"outputs":{"dist/lib/node-esm/update-plank-size-I3DKCPHZ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1555},"dist/lib/node-esm/update-plank-size-I3DKCPHZ.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-7KL65RLL.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-MLVJ2ODW.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-4ED7B7OZ.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/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/update-plank-size.ts","inputs":{"src/operations/update-plank-size.ts":{"bytesInOutput":493}},"bytes":939},"dist/lib/node-esm/update-popover-7JX3KWYL.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2604},"dist/lib/node-esm/update-popover-7JX3KWYL.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-4ED7B7OZ.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/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/update-popover.ts","inputs":{"src/operations/update-popover.ts":{"bytesInOutput":1038}},"bytes":1358},"dist/lib/node-esm/update-sidebar-B5DCSREP.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1650},"dist/lib/node-esm/update-sidebar-B5DCSREP.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-4ED7B7OZ.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/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/update-sidebar.ts","inputs":{"src/operations/update-sidebar.ts":{"bytesInOutput":639}},"bytes":959},"dist/lib/node-esm/revert-workspace-OS5R3PFJ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1409},"dist/lib/node-esm/revert-workspace-OS5R3PFJ.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-4ED7B7OZ.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/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/revert-workspace.ts","inputs":{"src/operations/revert-workspace.ts":{"bytesInOutput":516}},"bytes":842},"dist/lib/node-esm/scroll-into-view-LC2SVKCW.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1372},"dist/lib/node-esm/scroll-into-view-LC2SVKCW.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-4ED7B7OZ.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/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/scroll-into-view.ts","inputs":{"src/operations/scroll-into-view.ts":{"bytesInOutput":487}},"bytes":813},"dist/lib/node-esm/set-3EZ7LJFU.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2352},"dist/lib/node-esm/set-3EZ7LJFU.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-MB4SDDVY.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-MLVJ2ODW.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-4ED7B7OZ.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/operation","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":875}},"bytes":1284},"dist/lib/node-esm/set-layout-mode-3YBHGEK6.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5750},"dist/lib/node-esm/set-layout-mode-3YBHGEK6.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-MLVJ2ODW.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-4ED7B7OZ.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/log","kind":"import-statement","external":true},{"path":"@dxos/operation","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":2622}},"bytes":3031},"dist/lib/node-esm/show-undo-RAHLRPUU.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3055},"dist/lib/node-esm/show-undo-RAHLRPUU.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-4ED7B7OZ.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/operation","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":1347}},"bytes":1652},"dist/lib/node-esm/switch-workspace-S6CXDPXZ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4409},"dist/lib/node-esm/switch-workspace-S6CXDPXZ.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-4ED7B7OZ.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/invariant","kind":"import-statement","external":true},{"path":"@dxos/operation","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":2073}},"bytes":2414},"dist/lib/node-esm/update-complementary-V5Y2RMYL.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2296},"dist/lib/node-esm/update-complementary-V5Y2RMYL.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-4ED7B7OZ.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/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/update-complementary.ts","inputs":{"src/operations/update-complementary.ts":{"bytesInOutput":994}},"bytes":1332},"dist/lib/node-esm/update-dialog-IMTCLAWR.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2123},"dist/lib/node-esm/update-dialog-IMTCLAWR.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-4ED7B7OZ.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/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/update-dialog.ts","inputs":{"src/operations/update-dialog.ts":{"bytesInOutput":795}},"bytes":1112},"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":18125},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-4ED7B7OZ.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","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"#meta","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":2037},"src/translations.ts":{"bytesInOutput":3179},"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":7876},"dist/lib/node-esm/operations/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1384},"dist/lib/node-esm/operations/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-7KL65RLL.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/add-toast-G4OQEGOS.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/adjust-KSNI7C3B.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/change-companion-LCJPT6AX.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/close-YHIBVE2S.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/open-353DYMMN.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/revert-workspace-OS5R3PFJ.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/scroll-into-view-LC2SVKCW.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/set-3EZ7LJFU.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/set-layout-mode-3YBHGEK6.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/show-undo-RAHLRPUU.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/switch-workspace-S6CXDPXZ.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/update-complementary-V5Y2RMYL.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/update-dialog-IMTCLAWR.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/update-plank-size-I3DKCPHZ.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/update-popover-7JX3KWYL.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/update-sidebar-B5DCSREP.mjs","kind":"dynamic-import"}],"exports":["DeckOperation","DeckOperationHandlerSet"],"entryPoint":"src/operations/index.ts","inputs":{"src/operations/index.ts":{"bytesInOutput":848}},"bytes":1176},"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-4ED7B7OZ.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-G4OQEGOS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1366},"dist/lib/node-esm/add-toast-G4OQEGOS.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-4ED7B7OZ.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/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/add-toast.ts","inputs":{"src/operations/add-toast.ts":{"bytesInOutput":495}},"bytes":800},"dist/lib/node-esm/adjust-KSNI7C3B.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6209},"dist/lib/node-esm/adjust-KSNI7C3B.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-7KL65RLL.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-IRWCUYJY.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-MB4SDDVY.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-MLVJ2ODW.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-4ED7B7OZ.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/operation","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":2682}},"bytes":3249},"dist/lib/node-esm/change-companion-LCJPT6AX.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2011},"dist/lib/node-esm/change-companion-LCJPT6AX.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-7KL65RLL.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-MLVJ2ODW.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-4ED7B7OZ.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/operation","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/change-companion.ts","inputs":{"src/operations/change-companion.ts":{"bytesInOutput":750}},"bytes":1193},"dist/lib/node-esm/chunk-7KL65RLL.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3882},"dist/lib/node-esm/chunk-7KL65RLL.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/operation","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["Adjust","ChangeCompanion","UpdatePlankSize","definitions_exports"],"inputs":{"src/operations/definitions.ts":{"bytesInOutput":2218}},"bytes":2522},"dist/lib/node-esm/close-YHIBVE2S.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2671},"dist/lib/node-esm/close-YHIBVE2S.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-IRWCUYJY.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-MB4SDDVY.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-MLVJ2ODW.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-4ED7B7OZ.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/operation","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":1007}},"bytes":1475},"dist/lib/node-esm/open-353DYMMN.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":13107},"dist/lib/node-esm/open-353DYMMN.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-IRWCUYJY.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-MB4SDDVY.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-MLVJ2ODW.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-4ED7B7OZ.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/context","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","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":5191}},"bytes":5670},"dist/lib/node-esm/chunk-IRWCUYJY.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5049},"dist/lib/node-esm/chunk-IRWCUYJY.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-MB4SDDVY.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4635},"dist/lib/node-esm/chunk-MB4SDDVY.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-MLVJ2ODW.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1070},"dist/lib/node-esm/chunk-MLVJ2ODW.mjs":{"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true}],"exports":["updateActiveDeck"],"inputs":{"src/operations/helpers.ts":{"bytesInOutput":613}},"bytes":811},"dist/lib/node-esm/chunk-4ED7B7OZ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":15080},"dist/lib/node-esm/chunk-4ED7B7OZ.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":1040},"src/types/index.ts":{"bytesInOutput":0},"src/types/events.ts":{"bytesInOutput":375},"src/types/schema.ts":{"bytesInOutput":5617},"src/types/Settings.ts":{"bytesInOutput":508}},"bytes":8093},"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}}}
|