@dxos/plugin-deck 0.8.4-main.84f28bd → 0.8.4-main.937b3ca
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/app-graph-builder-DTVCULQ4.mjs +120 -0
- package/dist/lib/browser/app-graph-builder-DTVCULQ4.mjs.map +7 -0
- package/dist/lib/browser/{check-app-scheme-57U62A3A.mjs → check-app-scheme-JSRXXIYF.mjs} +9 -9
- package/dist/lib/browser/check-app-scheme-JSRXXIYF.mjs.map +7 -0
- package/dist/lib/browser/chunk-ATFPDN6J.mjs +292 -0
- package/dist/lib/browser/chunk-ATFPDN6J.mjs.map +7 -0
- package/dist/lib/browser/chunk-EREEXCHO.mjs +1448 -0
- package/dist/lib/browser/chunk-EREEXCHO.mjs.map +7 -0
- package/dist/lib/browser/{chunk-CNTGBCMK.mjs → chunk-NHABISX2.mjs} +40 -33
- package/dist/lib/browser/chunk-NHABISX2.mjs.map +7 -0
- package/dist/lib/browser/chunk-UNG4CLLP.mjs +161 -0
- package/dist/lib/browser/chunk-UNG4CLLP.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +79 -67
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operation-resolver-CDYBLZJ4.mjs +595 -0
- package/dist/lib/browser/operation-resolver-CDYBLZJ4.mjs.map +7 -0
- package/dist/lib/browser/react-root-LYNEKGHM.mjs +47 -0
- package/dist/lib/browser/react-root-LYNEKGHM.mjs.map +7 -0
- package/dist/lib/browser/react-surface-RPKD7XUR.mjs +42 -0
- package/dist/lib/browser/react-surface-RPKD7XUR.mjs.map +7 -0
- package/dist/lib/browser/settings-OMHVGZ6V.mjs +37 -0
- package/dist/lib/browser/settings-OMHVGZ6V.mjs.map +7 -0
- package/dist/lib/browser/state-OC3BSB6E.mjs +103 -0
- package/dist/lib/browser/state-OC3BSB6E.mjs.map +7 -0
- package/dist/lib/browser/toolkit-R53LD3EA.mjs +53 -0
- package/dist/lib/browser/toolkit-R53LD3EA.mjs.map +7 -0
- package/dist/lib/browser/{types.mjs → types/index.mjs} +12 -7
- package/dist/lib/browser/url-handler-53TE6JZO.mjs +93 -0
- package/dist/lib/browser/url-handler-53TE6JZO.mjs.map +7 -0
- package/dist/lib/node-esm/app-graph-builder-473BNZDJ.mjs +121 -0
- package/dist/lib/node-esm/app-graph-builder-473BNZDJ.mjs.map +7 -0
- package/dist/lib/node-esm/{check-app-scheme-3YZIA73T.mjs → check-app-scheme-IVYRHKRH.mjs} +9 -9
- package/dist/lib/node-esm/check-app-scheme-IVYRHKRH.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-UJGQAMF7.mjs → chunk-ADPMWKLL.mjs} +40 -33
- package/dist/lib/node-esm/chunk-ADPMWKLL.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-SKEVPQ7E.mjs +162 -0
- package/dist/lib/node-esm/chunk-SKEVPQ7E.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-V6VEXRD4.mjs +1449 -0
- package/dist/lib/node-esm/chunk-V6VEXRD4.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-XAKTY3EB.mjs +294 -0
- package/dist/lib/node-esm/chunk-XAKTY3EB.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +79 -67
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/operation-resolver-WUOE33ID.mjs +596 -0
- package/dist/lib/node-esm/operation-resolver-WUOE33ID.mjs.map +7 -0
- package/dist/lib/node-esm/react-root-L7H43AS3.mjs +48 -0
- package/dist/lib/node-esm/react-root-L7H43AS3.mjs.map +7 -0
- package/dist/lib/node-esm/react-surface-77DKVMDV.mjs +43 -0
- package/dist/lib/node-esm/react-surface-77DKVMDV.mjs.map +7 -0
- package/dist/lib/node-esm/settings-2HB6FKIK.mjs +38 -0
- package/dist/lib/node-esm/settings-2HB6FKIK.mjs.map +7 -0
- package/dist/lib/node-esm/state-JRQ45ACJ.mjs +104 -0
- package/dist/lib/node-esm/state-JRQ45ACJ.mjs.map +7 -0
- package/dist/lib/node-esm/toolkit-JLPZNNKB.mjs +54 -0
- package/dist/lib/node-esm/toolkit-JLPZNNKB.mjs.map +7 -0
- package/dist/lib/node-esm/{types.mjs → types/index.mjs} +12 -7
- package/dist/lib/node-esm/url-handler-QGF2R24T.mjs +94 -0
- package/dist/lib/node-esm/url-handler-QGF2R24T.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/app-graph-builder.d.ts +6 -0
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/check-app-scheme/check-app-scheme.d.ts +5 -0
- package/dist/types/src/capabilities/check-app-scheme/check-app-scheme.d.ts.map +1 -0
- package/dist/types/src/capabilities/check-app-scheme/index.d.ts +3 -0
- package/dist/types/src/capabilities/check-app-scheme/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +8 -13
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-root/index.d.ts +6 -0
- package/dist/types/src/capabilities/react-root/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-root/react-root.d.ts +9 -0
- package/dist/types/src/capabilities/react-root/react-root.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings/index.d.ts +19 -0
- package/dist/types/src/capabilities/settings/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings/settings.d.ts +21 -0
- package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -0
- package/dist/types/src/capabilities/state/index.d.ts +172 -0
- package/dist/types/src/capabilities/state/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/state/state.d.ts +175 -0
- package/dist/types/src/capabilities/state/state.d.ts.map +1 -0
- package/dist/types/src/capabilities/toolkit/index.d.ts +3 -0
- package/dist/types/src/capabilities/toolkit/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/toolkit/toolkit.d.ts +26 -0
- package/dist/types/src/capabilities/toolkit/toolkit.d.ts.map +1 -0
- package/dist/types/src/capabilities/tools/index.d.ts +3 -0
- package/dist/types/src/capabilities/tools/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/tools/tools.d.ts +12 -0
- package/dist/types/src/capabilities/tools/tools.d.ts.map +1 -0
- package/dist/types/src/capabilities/url-handler/index.d.ts +3 -0
- package/dist/types/src/capabilities/url-handler/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/url-handler/url-handler.d.ts +5 -0
- package/dist/types/src/capabilities/url-handler/url-handler.d.ts.map +1 -0
- package/dist/types/src/components/DeckLayout/Banner.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/ContentEmpty.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/DeckLayout.d.ts +2 -3
- package/dist/types/src/components/DeckLayout/DeckLayout.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/DeckLayout.stories.d.ts +74 -0
- package/dist/types/src/components/DeckLayout/DeckLayout.stories.d.ts.map +1 -0
- package/dist/types/src/components/DeckLayout/DeckMain.d.ts +3 -0
- package/dist/types/src/components/DeckLayout/DeckMain.d.ts.map +1 -0
- package/dist/types/src/components/DeckLayout/Dialog.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/Popover.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/Toast.d.ts +7 -2
- package/dist/types/src/components/DeckLayout/Toast.d.ts.map +1 -1
- package/dist/types/src/components/DeckSettings/DeckSettings.d.ts +4 -2
- package/dist/types/src/components/DeckSettings/DeckSettings.d.ts.map +1 -1
- package/dist/types/src/components/Plank/Plank.d.ts +4 -4
- package/dist/types/src/components/Plank/Plank.d.ts.map +1 -1
- package/dist/types/src/components/Plank/Plank.stories.d.ts +104 -5
- package/dist/types/src/components/Plank/Plank.stories.d.ts.map +1 -1
- package/dist/types/src/components/Plank/PlankControls.d.ts +1 -1
- package/dist/types/src/components/Plank/PlankControls.d.ts.map +1 -1
- package/dist/types/src/components/Plank/PlankError.d.ts +1 -1
- package/dist/types/src/components/Plank/PlankError.d.ts.map +1 -1
- package/dist/types/src/components/Plank/PlankHeading.d.ts +3 -3
- package/dist/types/src/components/Plank/PlankHeading.d.ts.map +1 -1
- package/dist/types/src/components/Sidebar/ComplementarySidebar.d.ts.map +1 -1
- package/dist/types/src/components/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/types/src/components/Sidebar/SidebarButton.d.ts.map +1 -1
- package/dist/types/src/hooks/index.d.ts +1 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useDeckCompanions.d.ts +3 -3
- 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/useNodeActionExpander.d.ts +1 -1
- package/dist/types/src/hooks/useNodeActionExpander.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -3
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +3 -1
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/{capabilities → types}/capabilities.d.ts +96 -90
- 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 +4 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/src/{types.d.ts → types/schema.d.ts} +97 -38
- package/dist/types/src/types/schema.d.ts.map +1 -0
- package/dist/types/src/util/set-active.d.ts +18 -3
- package/dist/types/src/util/set-active.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +59 -49
- package/src/DeckPlugin.ts +45 -61
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +118 -0
- package/src/capabilities/app-graph-builder/index.ts +7 -0
- package/src/capabilities/{check-app-scheme.ts → check-app-scheme/check-app-scheme.ts} +12 -11
- package/src/capabilities/check-app-scheme/index.ts +7 -0
- package/src/capabilities/index.ts +9 -13
- package/src/capabilities/operation-resolver/index.ts +10 -0
- package/src/capabilities/operation-resolver/operation-resolver.ts +555 -0
- package/src/capabilities/react-root/index.ts +7 -0
- package/src/capabilities/react-root/react-root.tsx +47 -0
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +37 -0
- package/src/capabilities/settings/index.ts +7 -0
- package/src/capabilities/settings/settings.ts +38 -0
- package/src/capabilities/state/index.ts +7 -0
- package/src/capabilities/state/state.ts +104 -0
- package/src/capabilities/toolkit/index.ts +7 -0
- package/src/capabilities/toolkit/toolkit.ts +63 -0
- package/src/capabilities/tools/index.ts +7 -0
- package/src/capabilities/tools/tools.ts +92 -0
- package/src/capabilities/url-handler/index.ts +7 -0
- package/src/capabilities/url-handler/url-handler.ts +95 -0
- package/src/components/DeckLayout/ActiveNode.tsx +1 -1
- package/src/components/DeckLayout/Banner.tsx +6 -6
- package/src/components/DeckLayout/ContentEmpty.tsx +4 -5
- package/src/components/DeckLayout/DeckLayout.stories.tsx +51 -0
- package/src/components/DeckLayout/DeckLayout.tsx +18 -285
- package/src/components/DeckLayout/DeckMain.tsx +286 -0
- package/src/components/DeckLayout/Dialog.tsx +13 -10
- package/src/components/DeckLayout/Fallback.tsx +4 -4
- package/src/components/DeckLayout/Popover.tsx +44 -32
- package/src/components/DeckLayout/StatusBar.tsx +1 -1
- package/src/components/DeckLayout/Toast.tsx +30 -5
- package/src/components/DeckSettings/DeckSettings.tsx +91 -66
- package/src/components/Plank/Plank.stories.tsx +23 -16
- package/src/components/Plank/Plank.tsx +89 -56
- package/src/components/Plank/PlankControls.tsx +9 -9
- package/src/components/Plank/PlankError.tsx +7 -9
- package/src/components/Plank/PlankHeading.tsx +38 -42
- package/src/components/Sidebar/ComplementarySidebar.tsx +61 -33
- package/src/components/Sidebar/Sidebar.tsx +6 -6
- package/src/components/Sidebar/SidebarButton.tsx +39 -32
- package/src/components/fragments.ts +1 -1
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useCompanions.ts +1 -1
- package/src/hooks/useDeckCompanions.ts +7 -5
- package/src/hooks/useDeckState.ts +82 -0
- package/src/hooks/useHoistStatusbar.ts +4 -5
- package/src/hooks/useNodeActionExpander.ts +4 -4
- package/src/index.ts +1 -2
- package/src/meta.ts +8 -5
- package/src/translations.ts +3 -1
- package/src/types/capabilities.ts +33 -0
- package/src/types/events.ts +20 -0
- package/src/types/index.ts +7 -0
- package/src/{types.ts → types/schema.ts} +90 -20
- package/src/util/layoutAppliesTopbar.ts +1 -1
- package/src/util/set-active.ts +49 -29
- package/dist/lib/browser/app-graph-builder-JTFSDT2I.mjs +0 -152
- package/dist/lib/browser/app-graph-builder-JTFSDT2I.mjs.map +0 -7
- package/dist/lib/browser/check-app-scheme-57U62A3A.mjs.map +0 -7
- package/dist/lib/browser/chunk-7LJDT5OH.mjs +0 -127
- package/dist/lib/browser/chunk-7LJDT5OH.mjs.map +0 -7
- package/dist/lib/browser/chunk-CNTGBCMK.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-QBKDUEDV.mjs +0 -1494
- package/dist/lib/browser/chunk-QBKDUEDV.mjs.map +0 -7
- package/dist/lib/browser/chunk-QO3VIMKQ.mjs +0 -128
- package/dist/lib/browser/chunk-QO3VIMKQ.mjs.map +0 -7
- package/dist/lib/browser/chunk-XL7EWOGI.mjs +0 -162
- package/dist/lib/browser/chunk-XL7EWOGI.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-6YMAE4SF.mjs +0 -521
- package/dist/lib/browser/intent-resolver-6YMAE4SF.mjs.map +0 -7
- package/dist/lib/browser/react-root-UVN2LMU3.mjs +0 -43
- package/dist/lib/browser/react-root-UVN2LMU3.mjs.map +0 -7
- package/dist/lib/browser/react-surface-WOLHGHMN.mjs +0 -40
- package/dist/lib/browser/react-surface-WOLHGHMN.mjs.map +0 -7
- package/dist/lib/browser/settings-L5CR5GTJ.mjs +0 -29
- package/dist/lib/browser/settings-L5CR5GTJ.mjs.map +0 -7
- package/dist/lib/browser/state-ZTYWMORZ.mjs +0 -10
- package/dist/lib/browser/tools-2YYFHQAS.mjs +0 -88
- package/dist/lib/browser/tools-2YYFHQAS.mjs.map +0 -7
- package/dist/lib/browser/url-handler-KZW7GBA2.mjs +0 -70
- package/dist/lib/browser/url-handler-KZW7GBA2.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-YCSX45KJ.mjs +0 -153
- package/dist/lib/node-esm/app-graph-builder-YCSX45KJ.mjs.map +0 -7
- package/dist/lib/node-esm/check-app-scheme-3YZIA73T.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ANLUUC3J.mjs +0 -129
- package/dist/lib/node-esm/chunk-ANLUUC3J.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-F4YIQ5GG.mjs +0 -128
- package/dist/lib/node-esm/chunk-F4YIQ5GG.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-HHG6H2BX.mjs +0 -15
- package/dist/lib/node-esm/chunk-HHG6H2BX.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-KTPDAVNM.mjs +0 -17
- package/dist/lib/node-esm/chunk-KTPDAVNM.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-NMSUKHE3.mjs +0 -1495
- package/dist/lib/node-esm/chunk-NMSUKHE3.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-QFKYT4JK.mjs +0 -163
- package/dist/lib/node-esm/chunk-QFKYT4JK.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-UJGQAMF7.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-URTWBGD7.mjs +0 -522
- package/dist/lib/node-esm/intent-resolver-URTWBGD7.mjs.map +0 -7
- package/dist/lib/node-esm/react-root-GFX4GOJT.mjs +0 -44
- package/dist/lib/node-esm/react-root-GFX4GOJT.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-F6L5PLWK.mjs +0 -41
- package/dist/lib/node-esm/react-surface-F6L5PLWK.mjs.map +0 -7
- package/dist/lib/node-esm/settings-WE3TBMOC.mjs +0 -30
- package/dist/lib/node-esm/settings-WE3TBMOC.mjs.map +0 -7
- package/dist/lib/node-esm/state-DUK6WFDX.mjs +0 -11
- package/dist/lib/node-esm/state-DUK6WFDX.mjs.map +0 -7
- package/dist/lib/node-esm/tools-HH6NN7HB.mjs +0 -89
- package/dist/lib/node-esm/tools-HH6NN7HB.mjs.map +0 -7
- package/dist/lib/node-esm/types.mjs.map +0 -7
- package/dist/lib/node-esm/url-handler-774BWWKI.mjs +0 -71
- package/dist/lib/node-esm/url-handler-774BWWKI.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
- package/dist/types/src/capabilities/check-app-scheme.d.ts +0 -4
- package/dist/types/src/capabilities/check-app-scheme.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/react-root.d.ts +0 -7
- package/dist/types/src/capabilities/react-root.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface.d.ts +0 -4
- package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings.d.ts +0 -4
- package/dist/types/src/capabilities/settings.d.ts.map +0 -1
- package/dist/types/src/capabilities/state.d.ts +0 -101
- package/dist/types/src/capabilities/state.d.ts.map +0 -1
- package/dist/types/src/capabilities/tools.d.ts +0 -11
- package/dist/types/src/capabilities/tools.d.ts.map +0 -1
- package/dist/types/src/capabilities/url-handler.d.ts +0 -4
- package/dist/types/src/capabilities/url-handler.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/types.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder.ts +0 -141
- package/src/capabilities/capabilities.ts +0 -14
- package/src/capabilities/intent-resolver.ts +0 -468
- package/src/capabilities/react-root.tsx +0 -38
- package/src/capabilities/react-surface.tsx +0 -30
- package/src/capabilities/settings.ts +0 -26
- package/src/capabilities/state.ts +0 -104
- package/src/capabilities/tools.ts +0 -81
- package/src/capabilities/url-handler.ts +0 -59
- package/src/events.ts +0 -11
- /package/dist/lib/browser/{state-ZTYWMORZ.mjs.map → types/index.mjs.map} +0 -0
- /package/dist/lib/{browser/types.mjs.map → node-esm/types/index.mjs.map} +0 -0
package/package.json
CHANGED
|
@@ -1,28 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-deck",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.937b3ca",
|
|
4
4
|
"description": "DXOS Surface plugin for the main application layout.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/dxos/dxos"
|
|
10
|
+
},
|
|
7
11
|
"license": "MIT",
|
|
8
12
|
"author": "DXOS.org",
|
|
9
13
|
"sideEffects": true,
|
|
10
14
|
"type": "module",
|
|
11
15
|
"exports": {
|
|
12
16
|
".": {
|
|
17
|
+
"source": "./src/index.ts",
|
|
13
18
|
"types": "./dist/types/src/index.d.ts",
|
|
14
19
|
"browser": "./dist/lib/browser/index.mjs"
|
|
15
20
|
},
|
|
16
21
|
"./types": {
|
|
17
|
-
"
|
|
18
|
-
"
|
|
22
|
+
"source": "./src/types/index.ts",
|
|
23
|
+
"types": "./dist/types/src/types/index.d.ts",
|
|
24
|
+
"browser": "./dist/lib/browser/types/index.mjs"
|
|
19
25
|
}
|
|
20
26
|
},
|
|
21
27
|
"types": "dist/types/src/index.d.ts",
|
|
22
28
|
"typesVersions": {
|
|
23
29
|
"*": {
|
|
24
30
|
"types": [
|
|
25
|
-
"dist/types/src/types.d.ts"
|
|
31
|
+
"dist/types/src/types/index.d.ts"
|
|
26
32
|
]
|
|
27
33
|
}
|
|
28
34
|
},
|
|
@@ -31,57 +37,61 @@
|
|
|
31
37
|
"src"
|
|
32
38
|
],
|
|
33
39
|
"dependencies": {
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
40
|
+
"@effect-atom/atom": "^0.4.13",
|
|
41
|
+
"@effect-atom/atom-react": "^0.4.6",
|
|
42
|
+
"@effect/ai": "0.32.1",
|
|
43
|
+
"@effect/experimental": "0.57.11",
|
|
44
|
+
"@fluentui/react-tabster": "9.26.11",
|
|
37
45
|
"@radix-ui/react-context": "1.1.1",
|
|
38
|
-
"effect": "3.16.13",
|
|
39
46
|
"immer": "^10.1.1",
|
|
40
|
-
"@dxos/
|
|
41
|
-
"@dxos/async": "0.8.4-main.
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/keyboard": "0.8.4-main.
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/plugin-
|
|
54
|
-
"@dxos/plugin-
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/react-ui-
|
|
59
|
-
"@dxos/react-ui-stack": "0.8.4-main.
|
|
60
|
-
"@dxos/react-ui-
|
|
61
|
-
"@dxos/react-ui-
|
|
62
|
-
"@dxos/react-ui-text-tooltip": "0.8.4-main.
|
|
63
|
-
"@dxos/
|
|
47
|
+
"@dxos/ai": "0.8.4-main.937b3ca",
|
|
48
|
+
"@dxos/async": "0.8.4-main.937b3ca",
|
|
49
|
+
"@dxos/blueprints": "0.8.4-main.937b3ca",
|
|
50
|
+
"@dxos/app-framework": "0.8.4-main.937b3ca",
|
|
51
|
+
"@dxos/assistant": "0.8.4-main.937b3ca",
|
|
52
|
+
"@dxos/debug": "0.8.4-main.937b3ca",
|
|
53
|
+
"@dxos/echo": "0.8.4-main.937b3ca",
|
|
54
|
+
"@dxos/effect": "0.8.4-main.937b3ca",
|
|
55
|
+
"@dxos/keyboard": "0.8.4-main.937b3ca",
|
|
56
|
+
"@dxos/invariant": "0.8.4-main.937b3ca",
|
|
57
|
+
"@dxos/log": "0.8.4-main.937b3ca",
|
|
58
|
+
"@dxos/operation": "0.8.4-main.937b3ca",
|
|
59
|
+
"@dxos/plugin-attention": "0.8.4-main.937b3ca",
|
|
60
|
+
"@dxos/plugin-graph": "0.8.4-main.937b3ca",
|
|
61
|
+
"@dxos/plugin-observability": "0.8.4-main.937b3ca",
|
|
62
|
+
"@dxos/react-ui-attention": "0.8.4-main.937b3ca",
|
|
63
|
+
"@dxos/react-client": "0.8.4-main.937b3ca",
|
|
64
|
+
"@dxos/plugin-theme": "0.8.4-main.937b3ca",
|
|
65
|
+
"@dxos/react-ui-form": "0.8.4-main.937b3ca",
|
|
66
|
+
"@dxos/react-ui-stack": "0.8.4-main.937b3ca",
|
|
67
|
+
"@dxos/react-ui-tabs": "0.8.4-main.937b3ca",
|
|
68
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.937b3ca",
|
|
69
|
+
"@dxos/react-ui-text-tooltip": "0.8.4-main.937b3ca",
|
|
70
|
+
"@dxos/ui-types": "0.8.4-main.937b3ca",
|
|
71
|
+
"@dxos/util": "0.8.4-main.937b3ca"
|
|
64
72
|
},
|
|
65
73
|
"devDependencies": {
|
|
66
|
-
"@effect-
|
|
67
|
-
"@effect/platform": "0.
|
|
68
|
-
"@types/react": "~
|
|
69
|
-
"@types/react-dom": "~
|
|
70
|
-
"
|
|
71
|
-
"react
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"@dxos/storybook-utils": "0.8.4-main.
|
|
75
|
-
"@dxos/
|
|
74
|
+
"@effect-atom/atom-react": "^0.4.6",
|
|
75
|
+
"@effect/platform": "0.93.6",
|
|
76
|
+
"@types/react": "~19.2.7",
|
|
77
|
+
"@types/react-dom": "~19.2.3",
|
|
78
|
+
"effect": "3.19.11",
|
|
79
|
+
"react": "~19.2.3",
|
|
80
|
+
"react-dom": "~19.2.3",
|
|
81
|
+
"vite": "7.1.9",
|
|
82
|
+
"@dxos/storybook-utils": "0.8.4-main.937b3ca",
|
|
83
|
+
"@dxos/plugin-testing": "0.8.4-main.937b3ca",
|
|
84
|
+
"@dxos/react-ui": "0.8.4-main.937b3ca",
|
|
85
|
+
"@dxos/ui-theme": "0.8.4-main.937b3ca"
|
|
76
86
|
},
|
|
77
87
|
"peerDependencies": {
|
|
78
|
-
"@effect-
|
|
79
|
-
"@effect/platform": "
|
|
80
|
-
"effect": "
|
|
81
|
-
"react": "~
|
|
82
|
-
"react-dom": "~
|
|
83
|
-
"@dxos/
|
|
84
|
-
"@dxos/react-ui
|
|
88
|
+
"@effect-atom/atom-react": "^0.4.6",
|
|
89
|
+
"@effect/platform": "0.93.6",
|
|
90
|
+
"effect": "3.19.11",
|
|
91
|
+
"react": "~19.2.3",
|
|
92
|
+
"react-dom": "~19.2.3",
|
|
93
|
+
"@dxos/ui-theme": "0.8.4-main.937b3ca",
|
|
94
|
+
"@dxos/react-ui": "0.8.4-main.937b3ca"
|
|
85
95
|
},
|
|
86
96
|
"publishConfig": {
|
|
87
97
|
"access": "public"
|
package/src/DeckPlugin.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { setAutoFreeze } from 'immer';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { ActivationEvent, Common, Plugin } from '@dxos/app-framework';
|
|
8
8
|
import { translations as stackTranslations } from '@dxos/react-ui-stack';
|
|
9
9
|
|
|
10
10
|
import {
|
|
@@ -12,75 +12,59 @@ import {
|
|
|
12
12
|
CheckAppScheme,
|
|
13
13
|
DeckSettings,
|
|
14
14
|
DeckState,
|
|
15
|
-
|
|
15
|
+
LayoutOperationResolver,
|
|
16
16
|
ReactRoot,
|
|
17
17
|
ReactSurface,
|
|
18
|
-
|
|
18
|
+
Toolkit,
|
|
19
19
|
UrlHandler,
|
|
20
20
|
} from './capabilities';
|
|
21
|
-
import { DeckEvents } from './events';
|
|
22
21
|
import { meta } from './meta';
|
|
23
22
|
import { translations } from './translations';
|
|
23
|
+
import { DeckEvents } from './types';
|
|
24
24
|
|
|
25
25
|
// NOTE(Zan): When producing values with immer, we shouldn't auto-freeze them because
|
|
26
26
|
// our signal implementation needs to add some hidden properties to the produced values.
|
|
27
27
|
// TODO(Zan): Move this to a more global location if we use immer more broadly.
|
|
28
28
|
setAutoFreeze(false);
|
|
29
29
|
|
|
30
|
-
export const DeckPlugin = ()
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
defineModule({
|
|
72
|
-
id: `${meta.id}/module/app-graph-builder`,
|
|
73
|
-
activatesOn: Events.SetupAppGraph,
|
|
74
|
-
activate: AppGraphBuilder,
|
|
75
|
-
}),
|
|
76
|
-
defineModule({
|
|
77
|
-
id: `${meta.id}/module/tools`,
|
|
78
|
-
activatesOn: Events.SetupArtifactDefinition,
|
|
79
|
-
activate: Tools,
|
|
80
|
-
}),
|
|
81
|
-
defineModule({
|
|
82
|
-
id: `${meta.id}/module/url`,
|
|
83
|
-
activatesOn: allOf(Events.DispatcherReady, DeckEvents.StateReady),
|
|
84
|
-
activate: UrlHandler,
|
|
85
|
-
}),
|
|
86
|
-
]);
|
|
30
|
+
export const DeckPlugin = Plugin.define(meta).pipe(
|
|
31
|
+
Plugin.addModule({
|
|
32
|
+
activatesOn: Common.ActivationEvent.SetupSettings,
|
|
33
|
+
activatesAfter: [DeckEvents.SettingsReady],
|
|
34
|
+
activate: DeckSettings,
|
|
35
|
+
}),
|
|
36
|
+
Plugin.addModule({
|
|
37
|
+
activatesOn: DeckEvents.SettingsReady,
|
|
38
|
+
activate: CheckAppScheme,
|
|
39
|
+
}),
|
|
40
|
+
Plugin.addModule({
|
|
41
|
+
// TODO(wittjosiah): Does not integrate with settings store.
|
|
42
|
+
// Should this be a different event?
|
|
43
|
+
// Should settings store be renamed to be more generic?
|
|
44
|
+
activatesOn: ActivationEvent.oneOf(Common.ActivationEvent.SetupSettings, Common.ActivationEvent.SetupAppGraph),
|
|
45
|
+
activatesAfter: [Common.ActivationEvent.LayoutReady, DeckEvents.StateReady],
|
|
46
|
+
activate: DeckState,
|
|
47
|
+
}),
|
|
48
|
+
Common.Plugin.addTranslationsModule({ translations: [...translations, ...stackTranslations] }),
|
|
49
|
+
Plugin.addModule({
|
|
50
|
+
activatesOn: Common.ActivationEvent.Startup,
|
|
51
|
+
activate: ReactRoot,
|
|
52
|
+
}),
|
|
53
|
+
Common.Plugin.addSurfaceModule({ activate: ReactSurface }),
|
|
54
|
+
Common.Plugin.addOperationResolverModule({ activate: LayoutOperationResolver }),
|
|
55
|
+
Common.Plugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
56
|
+
// Plugin.addModule({
|
|
57
|
+
// activatesOn: Events.SetupArtifactDefinition,
|
|
58
|
+
// activate: Tools,
|
|
59
|
+
// }),
|
|
60
|
+
Plugin.addModule({
|
|
61
|
+
// TODO(wittjosiah): Shouldn't use the startup event.
|
|
62
|
+
activatesOn: Common.ActivationEvent.Startup,
|
|
63
|
+
activate: Toolkit,
|
|
64
|
+
}),
|
|
65
|
+
Plugin.addModule({
|
|
66
|
+
activatesOn: ActivationEvent.allOf(Common.ActivationEvent.OperationInvokerReady, DeckEvents.StateReady),
|
|
67
|
+
activate: UrlHandler,
|
|
68
|
+
}),
|
|
69
|
+
Plugin.make,
|
|
70
|
+
);
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Capability, Common } from '@dxos/app-framework';
|
|
8
|
+
import { Operation } from '@dxos/operation';
|
|
9
|
+
import { AttentionCapabilities } from '@dxos/plugin-attention';
|
|
10
|
+
import { GraphBuilder, NodeMatcher } from '@dxos/plugin-graph';
|
|
11
|
+
|
|
12
|
+
import { meta } from '../../meta';
|
|
13
|
+
import { DeckCapabilities } from '../../types';
|
|
14
|
+
|
|
15
|
+
export default Capability.makeModule(
|
|
16
|
+
Effect.fnUntraced(function* () {
|
|
17
|
+
const extensions = yield* GraphBuilder.createExtension({
|
|
18
|
+
id: meta.id,
|
|
19
|
+
match: NodeMatcher.whenRoot,
|
|
20
|
+
actions: (_node, get) =>
|
|
21
|
+
Effect.gen(function* () {
|
|
22
|
+
// NOTE(Zan): This is currently disabled.
|
|
23
|
+
// TODO(Zan): Fullscreen needs to know the active node and provide that to the layout part.
|
|
24
|
+
// const _fullscreen = {
|
|
25
|
+
// id: `${LayoutAction.UpdateLayout._tag}/fullscreen`,
|
|
26
|
+
// data: async () => {
|
|
27
|
+
// const { dispatchPromise: dispatch } = context.get(Capabilities.IntentDispatcher);
|
|
28
|
+
// await dispatch(
|
|
29
|
+
// createIntent(LayoutAction.SetLayoutMode, { part: 'mode', options: { mode: 'fullscreen' } }),
|
|
30
|
+
// );
|
|
31
|
+
// },
|
|
32
|
+
// properties: {
|
|
33
|
+
// label: ['toggle fullscreen label', { ns: meta.id }],
|
|
34
|
+
// icon: 'ph--arrows-out--regular',
|
|
35
|
+
// keyBinding: {
|
|
36
|
+
// macos: 'ctrl+meta+f',
|
|
37
|
+
// windows: 'shift+ctrl+f',
|
|
38
|
+
// },
|
|
39
|
+
// },
|
|
40
|
+
// };
|
|
41
|
+
|
|
42
|
+
const closeCurrent = {
|
|
43
|
+
id: `${Common.LayoutOperation.Close.meta.key}/current`,
|
|
44
|
+
data: Effect.fnUntraced(function* () {
|
|
45
|
+
const attention = yield* Capability.get(AttentionCapabilities.Attention);
|
|
46
|
+
const attended = attention.getCurrent().at(-1);
|
|
47
|
+
if (attended) {
|
|
48
|
+
yield* Operation.invoke(Common.LayoutOperation.Close, { subject: [attended] });
|
|
49
|
+
}
|
|
50
|
+
}),
|
|
51
|
+
properties: {
|
|
52
|
+
label: ['close current label', { ns: meta.id }],
|
|
53
|
+
icon: 'ph--x--regular',
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const closeOthers = {
|
|
58
|
+
id: `${Common.LayoutOperation.Close.meta.key}/others`,
|
|
59
|
+
data: Effect.fnUntraced(function* () {
|
|
60
|
+
const attention = yield* Capability.get(AttentionCapabilities.Attention);
|
|
61
|
+
const deck = yield* DeckCapabilities.getDeck();
|
|
62
|
+
const attended = attention.getCurrent().at(-1);
|
|
63
|
+
const ids = deck.active.filter((id: string) => id !== attended) ?? [];
|
|
64
|
+
yield* Operation.invoke(Common.LayoutOperation.Close, { subject: ids });
|
|
65
|
+
}),
|
|
66
|
+
properties: {
|
|
67
|
+
label: ['close others label', { ns: meta.id }],
|
|
68
|
+
icon: 'ph--x-square--regular',
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
const closeAll = {
|
|
73
|
+
id: `${Common.LayoutOperation.Close.meta.key}/all`,
|
|
74
|
+
data: Effect.fnUntraced(function* () {
|
|
75
|
+
const deck = yield* DeckCapabilities.getDeck();
|
|
76
|
+
yield* Operation.invoke(Common.LayoutOperation.Close, { subject: deck.active });
|
|
77
|
+
}),
|
|
78
|
+
properties: {
|
|
79
|
+
label: ['close all label', { ns: meta.id }],
|
|
80
|
+
icon: 'ph--x-circle--regular',
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
const state = get(yield* Capability.get(DeckCapabilities.State));
|
|
85
|
+
const deck = state.decks[state.activeDeck];
|
|
86
|
+
|
|
87
|
+
const toggleSidebar = {
|
|
88
|
+
id: `${Common.LayoutOperation.UpdateSidebar.meta.key}/nav`,
|
|
89
|
+
data: Effect.fnUntraced(function* () {
|
|
90
|
+
yield* Common.Capability.updateAtomValue(DeckCapabilities.State, (s) => ({
|
|
91
|
+
...s,
|
|
92
|
+
sidebarState: s.sidebarState === 'expanded' ? ('collapsed' as const) : ('expanded' as const),
|
|
93
|
+
}));
|
|
94
|
+
}),
|
|
95
|
+
properties: {
|
|
96
|
+
label: [
|
|
97
|
+
state.sidebarState === 'expanded'
|
|
98
|
+
? 'collapse navigation sidebar label'
|
|
99
|
+
: 'open navigation sidebar label',
|
|
100
|
+
{ ns: meta.id },
|
|
101
|
+
],
|
|
102
|
+
icon: 'ph--sidebar--regular',
|
|
103
|
+
keyBinding: {
|
|
104
|
+
macos: "meta+'",
|
|
105
|
+
},
|
|
106
|
+
disposition: 'pin-end',
|
|
107
|
+
position: 'hoist',
|
|
108
|
+
l0Breakpoint: 'lg',
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
return !deck?.solo ? [closeCurrent, closeOthers, closeAll, toggleSidebar] : [toggleSidebar];
|
|
113
|
+
}),
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
return Capability.contributes(Common.Capability.AppGraphBuilder, extensions);
|
|
117
|
+
}),
|
|
118
|
+
);
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
|
-
import {
|
|
8
|
-
|
|
7
|
+
import { Capability, Common } from '@dxos/app-framework';
|
|
8
|
+
|
|
9
|
+
import { DeckCapabilities } from '../../types';
|
|
9
10
|
|
|
10
11
|
const isSocket = !!(globalThis as any).__args;
|
|
11
12
|
|
|
@@ -30,11 +31,11 @@ const checkAppScheme = (url: string) => {
|
|
|
30
31
|
});
|
|
31
32
|
};
|
|
32
33
|
|
|
33
|
-
export default
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
export default Capability.makeModule(
|
|
35
|
+
Effect.fnUntraced(function* () {
|
|
36
|
+
const settings = yield* Common.Capability.getAtomValue(DeckCapabilities.Settings);
|
|
37
|
+
if (!isSocket && settings?.enableNativeRedirect) {
|
|
38
|
+
checkAppScheme(appScheme);
|
|
39
|
+
}
|
|
40
|
+
}),
|
|
41
|
+
);
|
|
@@ -2,17 +2,13 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export const LayoutIntentResolver = lazy(() => import('./intent-resolver'));
|
|
12
|
-
export const ReactRoot = lazy(() => import('./react-root'));
|
|
13
|
-
export const ReactSurface = lazy(() => import('./react-surface'));
|
|
14
|
-
export const Tools = lazy(() => import('./tools'));
|
|
15
|
-
export const UrlHandler = lazy(() => import('./url-handler'));
|
|
16
|
-
|
|
17
|
-
export * from './capabilities';
|
|
5
|
+
export * from './app-graph-builder';
|
|
6
|
+
export * from './check-app-scheme';
|
|
7
|
+
export * from './operation-resolver';
|
|
8
|
+
export * from './react-root';
|
|
9
|
+
export * from './react-surface';
|
|
10
|
+
export * from './settings';
|
|
18
11
|
export * from './state';
|
|
12
|
+
export * from './toolkit';
|
|
13
|
+
// export * from './tools';
|
|
14
|
+
export * from './url-handler';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { type Capability, Capability as Capability$ } from '@dxos/app-framework';
|
|
6
|
+
|
|
7
|
+
export const LayoutOperationResolver: Capability.LazyCapability = Capability$.lazy(
|
|
8
|
+
'LayoutOperationResolver',
|
|
9
|
+
() => import('./operation-resolver'),
|
|
10
|
+
);
|