@dxos/plugin-deck 0.8.4-main.c4373fc → 0.8.4-main.d05673bc65
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/Banner-HXRXEUOZ.mjs +14 -0
- package/dist/lib/browser/Banner-HXRXEUOZ.mjs.map +7 -0
- package/dist/lib/browser/DeckSettings-HSSQKFNE.mjs +96 -0
- package/dist/lib/browser/DeckSettings-HSSQKFNE.mjs.map +7 -0
- package/dist/lib/browser/app-graph-builder-MP6INIM2.mjs +123 -0
- package/dist/lib/browser/app-graph-builder-MP6INIM2.mjs.map +7 -0
- package/dist/lib/browser/check-app-scheme-AUNCD2Y6.mjs +33 -0
- package/dist/lib/browser/check-app-scheme-AUNCD2Y6.mjs.map +7 -0
- package/dist/lib/browser/chunk-3P2FJVXC.mjs +278 -0
- package/dist/lib/browser/chunk-3P2FJVXC.mjs.map +7 -0
- package/dist/lib/browser/chunk-BJDEG7YZ.mjs +74 -0
- package/dist/lib/browser/chunk-BJDEG7YZ.mjs.map +7 -0
- package/dist/lib/browser/chunk-ITNJS5QX.mjs +1386 -0
- package/dist/lib/browser/chunk-ITNJS5QX.mjs.map +7 -0
- package/dist/lib/browser/chunk-L3RYMAV7.mjs +16 -0
- package/dist/lib/browser/chunk-L3RYMAV7.mjs.map +7 -0
- package/dist/lib/browser/chunk-TAHLKBDO.mjs +187 -0
- package/dist/lib/browser/chunk-TAHLKBDO.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +84 -73
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operation-resolver-2TEGT4PG.mjs +639 -0
- package/dist/lib/browser/operation-resolver-2TEGT4PG.mjs.map +7 -0
- package/dist/lib/browser/react-root-AS4IOYDG.mjs +48 -0
- package/dist/lib/browser/react-root-AS4IOYDG.mjs.map +7 -0
- package/dist/lib/browser/react-surface-FH7TC6WW.mjs +44 -0
- package/dist/lib/browser/react-surface-FH7TC6WW.mjs.map +7 -0
- package/dist/lib/browser/settings-PTMGCSJH.mjs +40 -0
- package/dist/lib/browser/settings-PTMGCSJH.mjs.map +7 -0
- package/dist/lib/browser/state-MA4SQ7BE.mjs +106 -0
- package/dist/lib/browser/state-MA4SQ7BE.mjs.map +7 -0
- package/dist/lib/browser/toolkit-6B34QFU3.mjs +55 -0
- package/dist/lib/browser/toolkit-6B34QFU3.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +14 -8
- package/dist/lib/browser/url-handler-FEUFPQIP.mjs +98 -0
- package/dist/lib/browser/url-handler-FEUFPQIP.mjs.map +7 -0
- package/dist/lib/node-esm/Banner-RN7XXOXY.mjs +15 -0
- package/dist/lib/node-esm/Banner-RN7XXOXY.mjs.map +7 -0
- package/dist/lib/node-esm/DeckSettings-DJRFLKQS.mjs +97 -0
- package/dist/lib/node-esm/DeckSettings-DJRFLKQS.mjs.map +7 -0
- package/dist/lib/node-esm/app-graph-builder-ACHG5HY7.mjs +124 -0
- package/dist/lib/node-esm/app-graph-builder-ACHG5HY7.mjs.map +7 -0
- package/dist/lib/node-esm/check-app-scheme-WN76GWVC.mjs +34 -0
- package/dist/lib/node-esm/check-app-scheme-WN76GWVC.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-DGTRKKWZ.mjs +76 -0
- package/dist/lib/node-esm/chunk-DGTRKKWZ.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-EMU4VIPH.mjs +188 -0
- package/dist/lib/node-esm/chunk-EMU4VIPH.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-GZJAQ5IP.mjs +279 -0
- package/dist/lib/node-esm/chunk-GZJAQ5IP.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-MBCCNIWY.mjs +1387 -0
- package/dist/lib/node-esm/chunk-MBCCNIWY.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-XCNF4COU.mjs +18 -0
- package/dist/lib/node-esm/chunk-XCNF4COU.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +185 -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/operation-resolver-GCMCCI7A.mjs +640 -0
- package/dist/lib/node-esm/operation-resolver-GCMCCI7A.mjs.map +7 -0
- package/dist/lib/node-esm/react-root-7DTDLAF4.mjs +49 -0
- package/dist/lib/node-esm/react-root-7DTDLAF4.mjs.map +7 -0
- package/dist/lib/node-esm/react-surface-U6Z2K324.mjs +45 -0
- package/dist/lib/node-esm/react-surface-U6Z2K324.mjs.map +7 -0
- package/dist/lib/node-esm/settings-LPPFLXNJ.mjs +41 -0
- package/dist/lib/node-esm/settings-LPPFLXNJ.mjs.map +7 -0
- package/dist/lib/node-esm/state-KNRU3GDC.mjs +107 -0
- package/dist/lib/node-esm/state-KNRU3GDC.mjs.map +7 -0
- package/dist/lib/node-esm/toolkit-SOWYKJY3.mjs +56 -0
- package/dist/lib/node-esm/toolkit-SOWYKJY3.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +39 -0
- package/dist/lib/node-esm/url-handler-4LEB7UWF.mjs +99 -0
- package/dist/lib/node-esm/url-handler-4LEB7UWF.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 +22 -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 +27 -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/ActiveNode.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 +75 -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/Fallback.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/Plank/Plank.d.ts +5 -5
- package/dist/types/src/components/Plank/Plank.d.ts.map +1 -1
- package/dist/types/src/components/Plank/Plank.stories.d.ts +27 -7
- 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 +6 -4
- package/dist/types/src/components/Plank/PlankError.d.ts.map +1 -1
- package/dist/types/src/components/Plank/PlankHeading.d.ts +2 -2
- 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/components/fragments.d.ts +4 -1
- package/dist/types/src/components/fragments.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +0 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/Banner/Banner.d.ts +2 -0
- package/dist/types/src/containers/Banner/Banner.d.ts.map +1 -0
- package/dist/types/src/containers/Banner/index.d.ts +3 -0
- package/dist/types/src/containers/Banner/index.d.ts.map +1 -0
- package/dist/types/src/containers/DeckSettings/DeckSettings.d.ts +8 -0
- package/dist/types/src/containers/DeckSettings/DeckSettings.d.ts.map +1 -0
- package/dist/types/src/containers/DeckSettings/index.d.ts +3 -0
- package/dist/types/src/containers/DeckSettings/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +4 -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 +1 -7
- package/dist/types/src/layout.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -2
- 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 +2 -0
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +100 -38
- package/dist/types/src/types/schema.d.ts.map +1 -1
- 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 +56 -48
- package/src/DeckPlugin.ts +28 -48
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +119 -0
- package/src/capabilities/app-graph-builder/index.ts +7 -0
- package/src/capabilities/check-app-scheme/check-app-scheme.ts +45 -0
- package/src/capabilities/check-app-scheme/index.ts +7 -0
- package/src/capabilities/index.ts +9 -14
- package/src/capabilities/operation-resolver/index.ts +10 -0
- package/src/capabilities/operation-resolver/operation-resolver.ts +558 -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 +38 -0
- package/src/capabilities/settings/index.ts +7 -0
- package/src/capabilities/settings/settings.ts +39 -0
- package/src/capabilities/state/index.ts +7 -0
- package/src/capabilities/state/state.ts +105 -0
- package/src/capabilities/toolkit/index.ts +7 -0
- package/src/capabilities/toolkit/toolkit.ts +64 -0
- package/src/capabilities/tools/index.ts +7 -0
- package/src/capabilities/tools/tools.ts +91 -0
- package/src/capabilities/url-handler/index.ts +7 -0
- package/src/capabilities/url-handler/url-handler.ts +98 -0
- package/src/components/DeckLayout/ActiveNode.tsx +3 -2
- package/src/components/DeckLayout/Banner.tsx +9 -9
- package/src/components/DeckLayout/ContentEmpty.tsx +5 -6
- package/src/components/DeckLayout/DeckLayout.stories.tsx +53 -0
- package/src/components/DeckLayout/DeckLayout.tsx +17 -285
- package/src/components/DeckLayout/DeckMain.tsx +287 -0
- package/src/components/DeckLayout/Dialog.tsx +22 -13
- package/src/components/DeckLayout/Fallback.tsx +2 -6
- package/src/components/DeckLayout/Popover.tsx +70 -32
- package/src/components/DeckLayout/StatusBar.tsx +4 -4
- package/src/components/DeckLayout/Toast.tsx +28 -3
- package/src/components/Plank/Plank.stories.tsx +19 -9
- package/src/components/Plank/Plank.tsx +105 -63
- package/src/components/Plank/PlankControls.tsx +9 -11
- package/src/components/Plank/PlankError.tsx +31 -17
- package/src/components/Plank/PlankHeading.tsx +37 -45
- package/src/components/Plank/PlankLoading.tsx +1 -1
- package/src/components/Sidebar/ComplementarySidebar.tsx +72 -48
- package/src/components/Sidebar/Sidebar.tsx +7 -7
- package/src/components/Sidebar/SidebarButton.tsx +36 -29
- package/src/components/fragments.ts +10 -5
- package/src/components/index.ts +0 -1
- package/src/containers/Banner/Banner.tsx +5 -0
- package/src/containers/Banner/index.ts +7 -0
- package/src/containers/DeckSettings/DeckSettings.tsx +113 -0
- package/src/containers/DeckSettings/index.ts +7 -0
- package/src/containers/index.ts +8 -0
- package/src/hooks/index.ts +2 -0
- package/src/hooks/useCompanions.ts +2 -2
- package/src/hooks/useDeckCompanions.ts +7 -10
- package/src/hooks/useDeckState.ts +82 -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.ts +1 -14
- package/src/meta.ts +8 -3
- package/src/translations.ts +3 -1
- package/src/types/capabilities.ts +33 -0
- package/src/types/events.ts +21 -0
- package/src/types/index.ts +2 -0
- package/src/types/schema.ts +98 -25
- package/src/util/layoutAppliesTopbar.ts +1 -1
- package/src/util/overscroll.ts +3 -3
- package/src/util/set-active.ts +49 -29
- package/dist/lib/browser/app-graph-builder-YYP67JHW.mjs +0 -153
- package/dist/lib/browser/app-graph-builder-YYP67JHW.mjs.map +0 -7
- package/dist/lib/browser/check-app-scheme-GCOL6YDT.mjs +0 -32
- package/dist/lib/browser/check-app-scheme-GCOL6YDT.mjs.map +0 -7
- package/dist/lib/browser/chunk-3SV2V3AN.mjs +0 -1495
- package/dist/lib/browser/chunk-3SV2V3AN.mjs.map +0 -7
- package/dist/lib/browser/chunk-A4SRCSJX.mjs +0 -160
- package/dist/lib/browser/chunk-A4SRCSJX.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-HUWUYTOI.mjs +0 -16
- package/dist/lib/browser/chunk-HUWUYTOI.mjs.map +0 -7
- package/dist/lib/browser/chunk-JH4ZCG5I.mjs +0 -129
- package/dist/lib/browser/chunk-JH4ZCG5I.mjs.map +0 -7
- package/dist/lib/browser/chunk-MHP4GPX5.mjs +0 -11
- package/dist/lib/browser/chunk-MHP4GPX5.mjs.map +0 -7
- package/dist/lib/browser/chunk-YRDCQS7E.mjs +0 -127
- package/dist/lib/browser/chunk-YRDCQS7E.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-2NFDKRFG.mjs +0 -524
- package/dist/lib/browser/intent-resolver-2NFDKRFG.mjs.map +0 -7
- package/dist/lib/browser/react-root-JTWYCDJT.mjs +0 -43
- package/dist/lib/browser/react-root-JTWYCDJT.mjs.map +0 -7
- package/dist/lib/browser/react-surface-PZKJ73JS.mjs +0 -40
- package/dist/lib/browser/react-surface-PZKJ73JS.mjs.map +0 -7
- package/dist/lib/browser/settings-JK7UIZSB.mjs +0 -29
- package/dist/lib/browser/settings-JK7UIZSB.mjs.map +0 -7
- package/dist/lib/browser/state-IFKFOBBX.mjs +0 -12
- package/dist/lib/browser/toolkit-L7C3UAEU.mjs +0 -63
- package/dist/lib/browser/toolkit-L7C3UAEU.mjs.map +0 -7
- package/dist/lib/browser/url-handler-MRYBE3HF.mjs +0 -70
- package/dist/lib/browser/url-handler-MRYBE3HF.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/toolkit.d.ts +0 -6
- package/dist/types/src/capabilities/toolkit.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/components/DeckSettings/DeckSettings.d.ts +0 -6
- package/dist/types/src/components/DeckSettings/DeckSettings.d.ts.map +0 -1
- package/dist/types/src/components/DeckSettings/index.d.ts +0 -2
- package/dist/types/src/components/DeckSettings/index.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/src/capabilities/app-graph-builder.ts +0 -143
- package/src/capabilities/capabilities.ts +0 -14
- package/src/capabilities/check-app-scheme.ts +0 -40
- package/src/capabilities/intent-resolver.ts +0 -472
- package/src/capabilities/react-root.tsx +0 -39
- package/src/capabilities/react-surface.tsx +0 -30
- package/src/capabilities/settings.ts +0 -26
- package/src/capabilities/state.ts +0 -105
- package/src/capabilities/toolkit.ts +0 -57
- package/src/capabilities/tools.ts +0 -84
- package/src/capabilities/url-handler.ts +0 -60
- package/src/components/DeckSettings/DeckSettings.tsx +0 -97
- package/src/components/DeckSettings/index.ts +0 -5
- package/src/events.ts +0 -11
- /package/dist/lib/{browser/state-IFKFOBBX.mjs.map → node-esm/types/index.mjs.map} +0 -0
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React, { useCallback } from 'react';
|
|
6
|
-
|
|
7
|
-
import { Capabilities, contributes, useCapability } from '@dxos/app-framework';
|
|
8
|
-
|
|
9
|
-
import { DeckLayout } from '../components';
|
|
10
|
-
import { meta } from '../meta';
|
|
11
|
-
|
|
12
|
-
import { DeckCapabilities } from './capabilities';
|
|
13
|
-
|
|
14
|
-
export default () =>
|
|
15
|
-
contributes(Capabilities.ReactRoot, {
|
|
16
|
-
id: meta.id,
|
|
17
|
-
root: () => {
|
|
18
|
-
const layout = useCapability(DeckCapabilities.MutableDeckState);
|
|
19
|
-
|
|
20
|
-
const handleDismissToast = useCallback(
|
|
21
|
-
(id: string) => {
|
|
22
|
-
const index = layout.toasts.findIndex((toast) => toast.id === id);
|
|
23
|
-
if (index !== -1) {
|
|
24
|
-
// Allow time for the toast to animate out.
|
|
25
|
-
// TODO(burdon): Factor out and unregister timeout.
|
|
26
|
-
setTimeout(() => {
|
|
27
|
-
if (layout.toasts[index].id === layout.currentUndoId) {
|
|
28
|
-
layout.currentUndoId = undefined;
|
|
29
|
-
}
|
|
30
|
-
layout.toasts.splice(index, 1);
|
|
31
|
-
}, 1_000);
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
[layout.toasts],
|
|
35
|
-
);
|
|
36
|
-
|
|
37
|
-
return <DeckLayout onDismissToast={handleDismissToast} />;
|
|
38
|
-
},
|
|
39
|
-
});
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
import { Capabilities, contributes, createSurface } from '@dxos/app-framework';
|
|
8
|
-
import { SettingsStore } from '@dxos/local-storage';
|
|
9
|
-
|
|
10
|
-
import { Banner, DeckSettings } from '../components';
|
|
11
|
-
import { meta } from '../meta';
|
|
12
|
-
import { type DeckSettingsProps } from '../types';
|
|
13
|
-
|
|
14
|
-
export default () =>
|
|
15
|
-
contributes(Capabilities.ReactSurface, [
|
|
16
|
-
createSurface({
|
|
17
|
-
id: `${meta.id}/plugin-settings`,
|
|
18
|
-
role: 'article',
|
|
19
|
-
filter: (data): data is { subject: SettingsStore<DeckSettingsProps> } =>
|
|
20
|
-
data.subject instanceof SettingsStore && data.subject.prefix === meta.id,
|
|
21
|
-
component: ({ data: { subject } }) => <DeckSettings settings={subject.value} />,
|
|
22
|
-
}),
|
|
23
|
-
createSurface({
|
|
24
|
-
id: `${meta.id}/banner`,
|
|
25
|
-
role: 'banner',
|
|
26
|
-
component: ({ data }) => {
|
|
27
|
-
return <Banner variant={data.variant} />;
|
|
28
|
-
},
|
|
29
|
-
}),
|
|
30
|
-
]);
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { Capabilities, contributes } from '@dxos/app-framework';
|
|
6
|
-
import { live } from '@dxos/live-object';
|
|
7
|
-
|
|
8
|
-
import { meta } from '../meta';
|
|
9
|
-
import { type DeckSettingsProps, DeckSettingsSchema } from '../types';
|
|
10
|
-
|
|
11
|
-
export default () => {
|
|
12
|
-
const settings = live<DeckSettingsProps>({
|
|
13
|
-
showHints: false,
|
|
14
|
-
enableDeck: false,
|
|
15
|
-
enableStatusbar: false,
|
|
16
|
-
enableNativeRedirect: false,
|
|
17
|
-
newPlankPositioning: 'start',
|
|
18
|
-
overscroll: 'none',
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
return contributes(Capabilities.Settings, {
|
|
22
|
-
prefix: meta.id,
|
|
23
|
-
schema: DeckSettingsSchema,
|
|
24
|
-
value: settings,
|
|
25
|
-
});
|
|
26
|
-
};
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { Capabilities, contributes } from '@dxos/app-framework';
|
|
6
|
-
import { invariant } from '@dxos/invariant';
|
|
7
|
-
import { live } from '@dxos/live-object';
|
|
8
|
-
import { LocalStorageStore } from '@dxos/local-storage';
|
|
9
|
-
import { type SidebarState } from '@dxos/react-ui';
|
|
10
|
-
|
|
11
|
-
import { meta } from '../meta';
|
|
12
|
-
import { type DeckPluginState, type DeckState, defaultDeck, getMode } from '../types';
|
|
13
|
-
|
|
14
|
-
import { DeckCapabilities } from './capabilities';
|
|
15
|
-
|
|
16
|
-
const boolean = /true|false/;
|
|
17
|
-
|
|
18
|
-
// TODO(thure, 18 Feb 2025): Remove after the next release.
|
|
19
|
-
|
|
20
|
-
const migrateSidebarStateDefaults = {
|
|
21
|
-
[`${meta.id}/complementary-sidebar-state`]: 'expanded',
|
|
22
|
-
[`${meta.id}/sidebar-state`]: 'collapsed',
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
const migrateSidebarState = () => {
|
|
26
|
-
Object.entries(migrateSidebarStateDefaults).forEach(([key, defaultValue]) => {
|
|
27
|
-
if (boolean.test(localStorage.getItem(key) ?? 'never')) {
|
|
28
|
-
localStorage.setItem(key, defaultValue);
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export const DeckStateFactory = () => {
|
|
34
|
-
migrateSidebarState();
|
|
35
|
-
|
|
36
|
-
const state = new LocalStorageStore<DeckPluginState>(meta.id, {
|
|
37
|
-
sidebarState: 'expanded',
|
|
38
|
-
complementarySidebarState: 'collapsed',
|
|
39
|
-
complementarySidebarPanel: undefined,
|
|
40
|
-
dialogContent: null,
|
|
41
|
-
dialogOpen: false,
|
|
42
|
-
dialogBlockAlign: undefined,
|
|
43
|
-
dialogType: undefined,
|
|
44
|
-
popoverContent: null,
|
|
45
|
-
popoverAnchor: undefined,
|
|
46
|
-
popoverAnchorId: undefined,
|
|
47
|
-
popoverOpen: false,
|
|
48
|
-
toasts: [],
|
|
49
|
-
currentUndoId: undefined,
|
|
50
|
-
activeDeck: 'default',
|
|
51
|
-
previousDeck: 'default',
|
|
52
|
-
decks: {
|
|
53
|
-
default: { ...defaultDeck },
|
|
54
|
-
},
|
|
55
|
-
get deck() {
|
|
56
|
-
const deck = this.decks[this.activeDeck];
|
|
57
|
-
invariant(deck, `Deck not found: ${this.activeDeck}`);
|
|
58
|
-
return deck;
|
|
59
|
-
},
|
|
60
|
-
previousMode: {},
|
|
61
|
-
scrollIntoView: undefined,
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
state
|
|
65
|
-
.prop({ key: 'sidebarState', type: LocalStorageStore.enum<SidebarState>() })
|
|
66
|
-
.prop({ key: 'complementarySidebarState', type: LocalStorageStore.enum<SidebarState>() })
|
|
67
|
-
.prop({ key: 'complementarySidebarPanel', type: LocalStorageStore.string({ allowUndefined: true }) })
|
|
68
|
-
.prop({ key: 'decks', type: LocalStorageStore.json<Record<string, DeckState>>() })
|
|
69
|
-
.prop({ key: 'activeDeck', type: LocalStorageStore.string() })
|
|
70
|
-
.prop({ key: 'previousDeck', type: LocalStorageStore.string() });
|
|
71
|
-
|
|
72
|
-
const layout = live<Capabilities.Layout>({
|
|
73
|
-
get mode() {
|
|
74
|
-
return getMode(state.values.deck);
|
|
75
|
-
},
|
|
76
|
-
get dialogOpen() {
|
|
77
|
-
return state.values.dialogOpen;
|
|
78
|
-
},
|
|
79
|
-
get sidebarOpen() {
|
|
80
|
-
return state.values.sidebarState === 'expanded';
|
|
81
|
-
},
|
|
82
|
-
get complementarySidebarOpen() {
|
|
83
|
-
return state.values.complementarySidebarState === 'expanded';
|
|
84
|
-
},
|
|
85
|
-
get workspace() {
|
|
86
|
-
return state.values.activeDeck;
|
|
87
|
-
},
|
|
88
|
-
get active() {
|
|
89
|
-
return state.values.deck.solo ? [state.values.deck.solo] : state.values.deck.active;
|
|
90
|
-
},
|
|
91
|
-
get inactive() {
|
|
92
|
-
return state.values.deck.inactive;
|
|
93
|
-
},
|
|
94
|
-
get scrollIntoView() {
|
|
95
|
-
return state.values.scrollIntoView;
|
|
96
|
-
},
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
return [
|
|
100
|
-
contributes(DeckCapabilities.DeckState, state.values, () => state.close()),
|
|
101
|
-
contributes(Capabilities.Layout, layout),
|
|
102
|
-
];
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
export default DeckStateFactory;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import * as Tool from '@effect/ai/Tool';
|
|
6
|
-
import * as Toolkit from '@effect/ai/Toolkit';
|
|
7
|
-
import * as Effect from 'effect/Effect';
|
|
8
|
-
import * as Schema from 'effect/Schema';
|
|
9
|
-
|
|
10
|
-
import { Capabilities, LayoutAction, type PluginContext, contributes, createIntent } from '@dxos/app-framework';
|
|
11
|
-
import { ArtifactId } from '@dxos/assistant';
|
|
12
|
-
import { type SpaceId } from '@dxos/keys';
|
|
13
|
-
import { trim } from '@dxos/util';
|
|
14
|
-
|
|
15
|
-
import { DeckCapabilities } from './capabilities';
|
|
16
|
-
|
|
17
|
-
class DeckToolkit extends Toolkit.make(
|
|
18
|
-
Tool.make('open-item', {
|
|
19
|
-
description: trim`
|
|
20
|
-
Opens an item in the application.
|
|
21
|
-
`,
|
|
22
|
-
parameters: {
|
|
23
|
-
id: ArtifactId,
|
|
24
|
-
},
|
|
25
|
-
success: Schema.Any,
|
|
26
|
-
failure: Schema.Never,
|
|
27
|
-
}),
|
|
28
|
-
) {
|
|
29
|
-
static layer = (context: PluginContext) =>
|
|
30
|
-
DeckToolkit.toLayer({
|
|
31
|
-
'open-item': ({ id }) =>
|
|
32
|
-
Effect.gen(function* () {
|
|
33
|
-
const state = context.getCapability(DeckCapabilities.DeckState);
|
|
34
|
-
const dxn = ArtifactId.toDXN(id, state.activeDeck as SpaceId);
|
|
35
|
-
|
|
36
|
-
// TODO(wittjosiah): Support other variants.
|
|
37
|
-
const echoDxn = dxn.asEchoDXN();
|
|
38
|
-
if (!echoDxn) {
|
|
39
|
-
throw new Error(`Invalid object ID: ${id}`);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// TODO(wittjosiah): Get capabilities via layers.
|
|
43
|
-
const { dispatch } = context.getCapability(Capabilities.IntentDispatcher);
|
|
44
|
-
yield* dispatch(
|
|
45
|
-
createIntent(LayoutAction.Open, {
|
|
46
|
-
subject: [`${echoDxn.spaceId!}:${echoDxn.echoId}`],
|
|
47
|
-
part: 'main',
|
|
48
|
-
}),
|
|
49
|
-
);
|
|
50
|
-
}).pipe(Effect.orDie),
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export default (context: PluginContext) => [
|
|
55
|
-
contributes(Capabilities.Toolkit, DeckToolkit),
|
|
56
|
-
contributes(Capabilities.ToolkitHandler, DeckToolkit.layer(context)),
|
|
57
|
-
];
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
// ISSUE(burdon): tools
|
|
6
|
-
// @ts-nocheck
|
|
7
|
-
|
|
8
|
-
import * as Schema from 'effect/Schema';
|
|
9
|
-
|
|
10
|
-
import {
|
|
11
|
-
Capabilities,
|
|
12
|
-
LayoutAction,
|
|
13
|
-
type PromiseIntentDispatcher,
|
|
14
|
-
contributes,
|
|
15
|
-
createIntent,
|
|
16
|
-
} from '@dxos/app-framework';
|
|
17
|
-
import { invariant } from '@dxos/invariant';
|
|
18
|
-
import { trim } from '@dxos/util';
|
|
19
|
-
|
|
20
|
-
import { meta } from '../meta';
|
|
21
|
-
import { DeckAction } from '../types';
|
|
22
|
-
|
|
23
|
-
// TODO(burdon): Factor out.
|
|
24
|
-
declare global {
|
|
25
|
-
interface ToolContextExtensions {
|
|
26
|
-
dispatch?: PromiseIntentDispatcher;
|
|
27
|
-
pivotId?: string;
|
|
28
|
-
part?: 'deck' | 'dialog';
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export default () =>
|
|
33
|
-
contributes(Capabilities.Tools, [
|
|
34
|
-
createTool(meta.id, {
|
|
35
|
-
name: 'show',
|
|
36
|
-
description: trim`
|
|
37
|
-
Show an item as a companion to an existing plank.
|
|
38
|
-
When supplying IDs, they must be fully qualified like this: space-key:object-id
|
|
39
|
-
`,
|
|
40
|
-
caption: 'Showing item...',
|
|
41
|
-
// TODO(wittjosiah): Refactor Layout/Navigation/Deck actions so that they can be used directly.
|
|
42
|
-
schema: Schema.Struct({
|
|
43
|
-
id: Schema.String.annotations({
|
|
44
|
-
description: 'The ID of the item to show.',
|
|
45
|
-
}),
|
|
46
|
-
}),
|
|
47
|
-
execute: async ({ id }, { extensions }) => {
|
|
48
|
-
invariant(extensions);
|
|
49
|
-
const { pivotId, dispatch, part } = extensions;
|
|
50
|
-
invariant(pivotId, 'No pivot ID');
|
|
51
|
-
invariant(dispatch, 'No intent dispatcher');
|
|
52
|
-
|
|
53
|
-
if (part === 'deck') {
|
|
54
|
-
const { data, error } = await dispatch(
|
|
55
|
-
createIntent(DeckAction.ChangeCompanion, {
|
|
56
|
-
primary: pivotId,
|
|
57
|
-
companion: id,
|
|
58
|
-
}),
|
|
59
|
-
);
|
|
60
|
-
if (error) {
|
|
61
|
-
return ToolResult.Error(error.message);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
return ToolResult.Success(data);
|
|
65
|
-
} else {
|
|
66
|
-
const { data, error } = await dispatch(
|
|
67
|
-
createIntent(LayoutAction.Open, {
|
|
68
|
-
subject: [id],
|
|
69
|
-
part: 'main',
|
|
70
|
-
options: {
|
|
71
|
-
pivotId,
|
|
72
|
-
positioning: 'end',
|
|
73
|
-
},
|
|
74
|
-
}),
|
|
75
|
-
);
|
|
76
|
-
if (error) {
|
|
77
|
-
return ToolResult.Error(error.message);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
return ToolResult.Success(data);
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
}),
|
|
84
|
-
]);
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { Capabilities, LayoutAction, type PluginContext, contributes, createIntent } from '@dxos/app-framework';
|
|
6
|
-
import { scheduledEffect } from '@dxos/echo-signals/core';
|
|
7
|
-
|
|
8
|
-
import { defaultDeck } from '../types';
|
|
9
|
-
|
|
10
|
-
import { DeckCapabilities } from './capabilities';
|
|
11
|
-
|
|
12
|
-
// TODO(wittjosiah): Cleanup the url handling. May justify introducing routing capabilities.
|
|
13
|
-
export default async (context: PluginContext) => {
|
|
14
|
-
const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);
|
|
15
|
-
const state = context.getCapability(DeckCapabilities.MutableDeckState);
|
|
16
|
-
|
|
17
|
-
const handleNavigation = async () => {
|
|
18
|
-
const pathname = window.location.pathname;
|
|
19
|
-
if (pathname === '/reset') {
|
|
20
|
-
state.activeDeck = 'default';
|
|
21
|
-
state.decks = {
|
|
22
|
-
default: { ...defaultDeck },
|
|
23
|
-
};
|
|
24
|
-
window.location.pathname = '/';
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const [_, nextDeck, nextSolo] = pathname.split('/');
|
|
29
|
-
if (nextDeck && nextDeck !== state.activeDeck) {
|
|
30
|
-
await dispatch(createIntent(LayoutAction.SwitchWorkspace, { part: 'workspace', subject: nextDeck }));
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
if (nextSolo && nextSolo !== state.deck.solo) {
|
|
34
|
-
await dispatch(
|
|
35
|
-
createIntent(LayoutAction.SetLayoutMode, { part: 'mode', subject: nextSolo, options: { mode: 'solo' } }),
|
|
36
|
-
);
|
|
37
|
-
} else if (!nextSolo && state.deck.solo) {
|
|
38
|
-
await dispatch(createIntent(LayoutAction.SetLayoutMode, { part: 'mode', options: { mode: 'deck' } }));
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
await handleNavigation();
|
|
43
|
-
window.addEventListener('popstate', handleNavigation);
|
|
44
|
-
|
|
45
|
-
const unsubscribe = scheduledEffect(
|
|
46
|
-
() => ({ solo: state.deck.solo, activeDeck: state.activeDeck }),
|
|
47
|
-
({ solo, activeDeck }) => {
|
|
48
|
-
const path = solo ? `/${activeDeck}/${solo}` : `/${activeDeck}`;
|
|
49
|
-
if (window.location.pathname !== path) {
|
|
50
|
-
// TODO(thure): In some browsers, this only preserves the most recent state change, even though this is not `history.replace`…
|
|
51
|
-
history.pushState(null, '', `${path}${window.location.search}`);
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
);
|
|
55
|
-
|
|
56
|
-
return contributes(Capabilities.Null, null, () => {
|
|
57
|
-
window.removeEventListener('popstate', handleNavigation);
|
|
58
|
-
unsubscribe();
|
|
59
|
-
});
|
|
60
|
-
};
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2024 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
import { Input, Select, useTranslation } from '@dxos/react-ui';
|
|
8
|
-
import { ControlGroup, ControlItemInput, ControlPage, ControlSection } from '@dxos/react-ui-form';
|
|
9
|
-
|
|
10
|
-
import { meta } from '../../meta';
|
|
11
|
-
import {
|
|
12
|
-
type DeckSettingsProps,
|
|
13
|
-
type NewPlankPositioning,
|
|
14
|
-
NewPlankPositions,
|
|
15
|
-
type Overscroll,
|
|
16
|
-
OverscrollOptions,
|
|
17
|
-
} from '../../types';
|
|
18
|
-
|
|
19
|
-
const isSocket = !!(globalThis as any).__args;
|
|
20
|
-
|
|
21
|
-
export const DeckSettings = ({ settings }: { settings: DeckSettingsProps }) => {
|
|
22
|
-
const { t } = useTranslation(meta.id);
|
|
23
|
-
|
|
24
|
-
return (
|
|
25
|
-
<ControlPage>
|
|
26
|
-
<ControlSection title={t('settings title', { ns: meta.id })}>
|
|
27
|
-
<ControlGroup>
|
|
28
|
-
<ControlItemInput title={t('settings enable deck label')}>
|
|
29
|
-
<Input.Switch
|
|
30
|
-
checked={settings.enableDeck}
|
|
31
|
-
onCheckedChange={(checked) => (settings.enableDeck = checked)}
|
|
32
|
-
/>
|
|
33
|
-
</ControlItemInput>
|
|
34
|
-
<ControlItemInput title={t('select new plank positioning label')}>
|
|
35
|
-
<Select.Root
|
|
36
|
-
disabled={!settings.enableDeck}
|
|
37
|
-
value={settings.newPlankPositioning ?? 'start'}
|
|
38
|
-
onValueChange={(value) => (settings.newPlankPositioning = value as NewPlankPositioning)}
|
|
39
|
-
>
|
|
40
|
-
<Select.TriggerButton placeholder={t('select new plank positioning placeholder')} />
|
|
41
|
-
<Select.Portal>
|
|
42
|
-
<Select.Content>
|
|
43
|
-
<Select.Viewport>
|
|
44
|
-
{NewPlankPositions.map((position) => (
|
|
45
|
-
<Select.Option key={position} value={position}>
|
|
46
|
-
{t(`settings new plank position ${position} label`)}
|
|
47
|
-
</Select.Option>
|
|
48
|
-
))}
|
|
49
|
-
</Select.Viewport>
|
|
50
|
-
<Select.Arrow />
|
|
51
|
-
</Select.Content>
|
|
52
|
-
</Select.Portal>
|
|
53
|
-
</Select.Root>
|
|
54
|
-
</ControlItemInput>
|
|
55
|
-
<ControlItemInput title={t('settings overscroll label')}>
|
|
56
|
-
<Select.Root
|
|
57
|
-
disabled={!settings.enableDeck}
|
|
58
|
-
value={settings.overscroll ?? 'none'}
|
|
59
|
-
onValueChange={(value) => (settings.overscroll = value as Overscroll)}
|
|
60
|
-
>
|
|
61
|
-
<Select.TriggerButton placeholder={t('select overscroll placeholder')} />
|
|
62
|
-
<Select.Portal>
|
|
63
|
-
<Select.Content>
|
|
64
|
-
<Select.Viewport>
|
|
65
|
-
{OverscrollOptions.map((option) => (
|
|
66
|
-
<Select.Option key={option} value={option}>
|
|
67
|
-
{t(`settings overscroll ${option} label`)}
|
|
68
|
-
</Select.Option>
|
|
69
|
-
))}
|
|
70
|
-
</Select.Viewport>
|
|
71
|
-
<Select.Arrow />
|
|
72
|
-
</Select.Content>
|
|
73
|
-
</Select.Portal>
|
|
74
|
-
</Select.Root>
|
|
75
|
-
</ControlItemInput>
|
|
76
|
-
<ControlItemInput title={t('settings enable statusbar label')}>
|
|
77
|
-
<Input.Switch
|
|
78
|
-
checked={settings.enableStatusbar}
|
|
79
|
-
onCheckedChange={(checked) => (settings.enableStatusbar = checked)}
|
|
80
|
-
/>
|
|
81
|
-
</ControlItemInput>
|
|
82
|
-
<ControlItemInput title={t('settings show hints label')}>
|
|
83
|
-
<Input.Switch checked={settings.showHints} onCheckedChange={(checked) => (settings.showHints = checked)} />
|
|
84
|
-
</ControlItemInput>
|
|
85
|
-
{!isSocket && (
|
|
86
|
-
<ControlItemInput title={t('settings native redirect label')}>
|
|
87
|
-
<Input.Switch
|
|
88
|
-
checked={settings.enableNativeRedirect}
|
|
89
|
-
onCheckedChange={(checked) => (settings.enableNativeRedirect = checked)}
|
|
90
|
-
/>
|
|
91
|
-
</ControlItemInput>
|
|
92
|
-
)}
|
|
93
|
-
</ControlGroup>
|
|
94
|
-
</ControlSection>
|
|
95
|
-
</ControlPage>
|
|
96
|
-
);
|
|
97
|
-
};
|
package/src/events.ts
DELETED
|
File without changes
|