@dxos/plugin-deck 0.8.3 → 0.8.4-main.1068cf700f
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-X7LCO5KE.mjs +121 -0
- package/dist/lib/browser/app-graph-builder-X7LCO5KE.mjs.map +7 -0
- package/dist/lib/browser/check-app-scheme-PGISDJX7.mjs +32 -0
- package/dist/lib/browser/check-app-scheme-PGISDJX7.mjs.map +7 -0
- package/dist/lib/browser/chunk-DONG2FYU.mjs +295 -0
- package/dist/lib/browser/chunk-DONG2FYU.mjs.map +7 -0
- package/dist/lib/browser/chunk-JGC4ZLG3.mjs +1469 -0
- package/dist/lib/browser/chunk-JGC4ZLG3.mjs.map +7 -0
- package/dist/lib/browser/chunk-NHABISX2.mjs +152 -0
- package/dist/lib/browser/chunk-NHABISX2.mjs.map +7 -0
- package/dist/lib/browser/chunk-YT3AJVUU.mjs +161 -0
- package/dist/lib/browser/chunk-YT3AJVUU.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +94 -80
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operation-resolver-XJFR3PNQ.mjs +597 -0
- package/dist/lib/browser/operation-resolver-XJFR3PNQ.mjs.map +7 -0
- package/dist/lib/browser/react-root-AJFHKHRL.mjs +47 -0
- package/dist/lib/browser/react-root-AJFHKHRL.mjs.map +7 -0
- package/dist/lib/browser/react-surface-KBRBGEXY.mjs +43 -0
- package/dist/lib/browser/react-surface-KBRBGEXY.mjs.map +7 -0
- package/dist/lib/browser/settings-ES42FGLG.mjs +38 -0
- package/dist/lib/browser/settings-ES42FGLG.mjs.map +7 -0
- package/dist/lib/browser/state-YMI6IDEL.mjs +104 -0
- package/dist/lib/browser/state-YMI6IDEL.mjs.map +7 -0
- package/dist/lib/browser/toolkit-VRD54KY3.mjs +54 -0
- package/dist/lib/browser/toolkit-VRD54KY3.mjs.map +7 -0
- package/dist/lib/browser/{types.mjs → types/index.mjs} +12 -7
- package/dist/lib/browser/url-handler-37UPOB3U.mjs +94 -0
- package/dist/lib/browser/url-handler-37UPOB3U.mjs.map +7 -0
- package/dist/lib/node-esm/app-graph-builder-US54I64T.mjs +122 -0
- package/dist/lib/node-esm/app-graph-builder-US54I64T.mjs.map +7 -0
- package/dist/lib/node-esm/check-app-scheme-CK6EVG5D.mjs +33 -0
- package/dist/lib/node-esm/check-app-scheme-CK6EVG5D.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-7NPS347C.mjs +1470 -0
- package/dist/lib/node-esm/chunk-7NPS347C.mjs.map +7 -0
- package/dist/lib/{browser/chunk-TRFYUEBA.mjs → node-esm/chunk-ADPMWKLL.mjs} +46 -37
- package/dist/lib/node-esm/chunk-ADPMWKLL.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-CVYHPJIN.mjs +297 -0
- package/dist/lib/node-esm/chunk-CVYHPJIN.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-ZMJPCZ3V.mjs +162 -0
- package/dist/lib/node-esm/chunk-ZMJPCZ3V.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +183 -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-ZQGNATPX.mjs +598 -0
- package/dist/lib/node-esm/operation-resolver-ZQGNATPX.mjs.map +7 -0
- package/dist/lib/node-esm/react-root-2S77ABBS.mjs +48 -0
- package/dist/lib/node-esm/react-root-2S77ABBS.mjs.map +7 -0
- package/dist/lib/node-esm/react-surface-FIHMAFXH.mjs +44 -0
- package/dist/lib/node-esm/react-surface-FIHMAFXH.mjs.map +7 -0
- package/dist/lib/node-esm/settings-E3TH3FAW.mjs +39 -0
- package/dist/lib/node-esm/settings-E3TH3FAW.mjs.map +7 -0
- package/dist/lib/node-esm/state-WQEFBQMD.mjs +105 -0
- package/dist/lib/node-esm/state-WQEFBQMD.mjs.map +7 -0
- package/dist/lib/node-esm/toolkit-ME546G5T.mjs +55 -0
- package/dist/lib/node-esm/toolkit-ME546G5T.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +40 -0
- package/dist/lib/node-esm/url-handler-2KYHXINK.mjs +95 -0
- package/dist/lib/node-esm/url-handler-2KYHXINK.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 +174 -0
- package/dist/types/src/capabilities/state/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/state/state.d.ts +177 -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/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 +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/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 +105 -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 +59 -56
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/{capabilities → types}/capabilities.d.ts +98 -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} +99 -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 +60 -51
- package/src/DeckPlugin.ts +47 -62
- 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 -13
- package/src/capabilities/operation-resolver/index.ts +10 -0
- package/src/capabilities/operation-resolver/operation-resolver.ts +570 -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 +92 -0
- package/src/capabilities/url-handler/index.ts +7 -0
- package/src/capabilities/url-handler/url-handler.ts +96 -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 +52 -0
- package/src/components/DeckLayout/DeckLayout.tsx +18 -285
- package/src/components/DeckLayout/DeckMain.tsx +286 -0
- package/src/components/DeckLayout/Dialog.tsx +21 -12
- package/src/components/DeckLayout/Fallback.tsx +4 -4
- package/src/components/DeckLayout/Popover.tsx +60 -32
- package/src/components/DeckLayout/StatusBar.tsx +3 -3
- package/src/components/DeckLayout/Toast.tsx +30 -5
- package/src/components/DeckSettings/DeckSettings.tsx +91 -66
- package/src/components/Plank/Plank.stories.tsx +25 -17
- package/src/components/Plank/Plank.tsx +91 -57
- package/src/components/Plank/PlankControls.tsx +9 -9
- package/src/components/Plank/PlankError.tsx +7 -9
- package/src/components/Plank/PlankHeading.tsx +42 -45
- package/src/components/Sidebar/ComplementarySidebar.tsx +69 -37
- package/src/components/Sidebar/Sidebar.tsx +7 -7
- 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 +10 -5
- package/src/types/capabilities.ts +33 -0
- package/src/types/events.ts +21 -0
- package/src/types/index.ts +7 -0
- package/src/{types.ts → types/schema.ts} +94 -20
- package/src/util/layoutAppliesTopbar.ts +1 -1
- package/src/util/set-active.ts +49 -29
- package/dist/lib/browser/app-graph-builder-YCO7Y54J.mjs +0 -152
- package/dist/lib/browser/app-graph-builder-YCO7Y54J.mjs.map +0 -7
- package/dist/lib/browser/check-app-scheme-7AXGR6UT.mjs +0 -32
- package/dist/lib/browser/check-app-scheme-7AXGR6UT.mjs.map +0 -7
- package/dist/lib/browser/chunk-FX44YX3G.mjs +0 -128
- package/dist/lib/browser/chunk-FX44YX3G.mjs.map +0 -7
- package/dist/lib/browser/chunk-KLN73CM3.mjs +0 -16
- package/dist/lib/browser/chunk-KLN73CM3.mjs.map +0 -7
- package/dist/lib/browser/chunk-NSATFAEE.mjs +0 -13
- package/dist/lib/browser/chunk-NSATFAEE.mjs.map +0 -7
- package/dist/lib/browser/chunk-RAZK4XT5.mjs +0 -127
- package/dist/lib/browser/chunk-RAZK4XT5.mjs.map +0 -7
- package/dist/lib/browser/chunk-RMCRP7HV.mjs +0 -1494
- package/dist/lib/browser/chunk-RMCRP7HV.mjs.map +0 -7
- package/dist/lib/browser/chunk-TRFYUEBA.mjs.map +0 -7
- package/dist/lib/browser/chunk-YN5OZEGS.mjs +0 -162
- package/dist/lib/browser/chunk-YN5OZEGS.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-EGLWTKJG.mjs +0 -521
- package/dist/lib/browser/intent-resolver-EGLWTKJG.mjs.map +0 -7
- package/dist/lib/browser/react-root-C4HIM5CI.mjs +0 -43
- package/dist/lib/browser/react-root-C4HIM5CI.mjs.map +0 -7
- package/dist/lib/browser/react-surface-RV2AZ6WZ.mjs +0 -40
- package/dist/lib/browser/react-surface-RV2AZ6WZ.mjs.map +0 -7
- package/dist/lib/browser/settings-7VUU3ZJ4.mjs +0 -29
- package/dist/lib/browser/settings-7VUU3ZJ4.mjs.map +0 -7
- package/dist/lib/browser/state-VJ6E3ADY.mjs +0 -10
- package/dist/lib/browser/tools-N57NQ2LH.mjs +0 -88
- package/dist/lib/browser/tools-N57NQ2LH.mjs.map +0 -7
- package/dist/lib/browser/url-handler-BUGI6XRE.mjs +0 -70
- package/dist/lib/browser/url-handler-BUGI6XRE.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/check-app-scheme.ts +0 -40
- 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-VJ6E3ADY.mjs.map → types/index.mjs.map} +0 -0
- /package/dist/lib/{browser/types.mjs.map → node-esm/types/index.mjs.map} +0 -0
|
@@ -1,59 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
'
|
|
6
|
-
'
|
|
7
|
-
'
|
|
8
|
-
'open
|
|
9
|
-
'
|
|
10
|
-
'sidebar
|
|
11
|
-
'complementary sidebar
|
|
12
|
-
'
|
|
13
|
-
'
|
|
14
|
-
'
|
|
15
|
-
'
|
|
16
|
-
'
|
|
17
|
-
'
|
|
18
|
-
'settings
|
|
19
|
-
'settings
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'
|
|
23
|
-
'
|
|
24
|
-
'undo
|
|
25
|
-
'undo
|
|
26
|
-
'
|
|
27
|
-
'
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
'
|
|
31
|
-
'
|
|
32
|
-
'
|
|
33
|
-
'
|
|
34
|
-
'
|
|
35
|
-
'
|
|
36
|
-
'
|
|
37
|
-
'
|
|
38
|
-
'
|
|
39
|
-
'
|
|
40
|
-
'show
|
|
41
|
-
'
|
|
42
|
-
'
|
|
43
|
-
'
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
'settings overscroll
|
|
48
|
-
'
|
|
49
|
-
'settings
|
|
50
|
-
'settings
|
|
51
|
-
'
|
|
52
|
-
'
|
|
53
|
-
'
|
|
54
|
-
'
|
|
1
|
+
import { meta } from './meta';
|
|
2
|
+
export declare const translations: [{
|
|
3
|
+
readonly 'en-US': {
|
|
4
|
+
readonly [meta.id]: {
|
|
5
|
+
readonly 'plugin name': "Deck";
|
|
6
|
+
readonly 'settings title': "Deck settings";
|
|
7
|
+
readonly 'main header label': "Main header";
|
|
8
|
+
readonly 'open navigation sidebar label': "Open sidebar";
|
|
9
|
+
readonly 'collapse navigation sidebar label': "Minimize sidebar";
|
|
10
|
+
readonly 'open complementary sidebar label': "Open context sidebar";
|
|
11
|
+
readonly 'close complementary sidebar label': "Minimize context sidebar";
|
|
12
|
+
readonly 'sidebar title': "Navigation sidebar";
|
|
13
|
+
readonly 'complementary sidebar title': "Context sidebar";
|
|
14
|
+
readonly 'plugin error message': "Content failed to render.";
|
|
15
|
+
readonly 'content fallback message': "Unsupported";
|
|
16
|
+
readonly 'content fallback description': "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.";
|
|
17
|
+
readonly 'toggle fullscreen label': "Toggle fullscreen";
|
|
18
|
+
readonly 'settings show hints label': "Show hints";
|
|
19
|
+
readonly 'settings native redirect label': "Enable native url redirect (experimental)";
|
|
20
|
+
readonly 'settings new plank position start label': "Start";
|
|
21
|
+
readonly 'settings new plank position end label': "End";
|
|
22
|
+
readonly 'select new plank positioning placeholder': "Select new plank positioning";
|
|
23
|
+
readonly 'select new plank positioning label': "New plank positioning";
|
|
24
|
+
readonly 'undo available label': "Click to undo previous action.";
|
|
25
|
+
readonly 'undo action label': "Undo";
|
|
26
|
+
readonly 'undo action alt': "Undo previous action";
|
|
27
|
+
readonly 'undo close label': "Dismiss";
|
|
28
|
+
readonly 'error fallback message': "Unable to open this object";
|
|
29
|
+
readonly 'plank heading fallback label': "Untitled";
|
|
30
|
+
readonly 'actions menu label': "Options";
|
|
31
|
+
readonly 'settings deck label': "Disable deck";
|
|
32
|
+
readonly 'pending heading': "Loading…";
|
|
33
|
+
readonly 'insert plank label': "Open";
|
|
34
|
+
readonly 'resize label': "Drag to resize";
|
|
35
|
+
readonly 'pin start label': "Pin to the left sidebar";
|
|
36
|
+
readonly 'pin end label': "Pin to the right sidebar";
|
|
37
|
+
readonly 'increment start label': "Move to the left";
|
|
38
|
+
readonly 'increment end label': "Move to the right";
|
|
39
|
+
readonly 'show deck plank label': "Return to deck";
|
|
40
|
+
readonly 'show solo plank label': "Maximize";
|
|
41
|
+
readonly 'exit fullscreen label': "Exit fullscreen";
|
|
42
|
+
readonly 'show fullscreen plank label': "Fullscreen";
|
|
43
|
+
readonly 'close label': "Close";
|
|
44
|
+
readonly 'minify label': "Minify";
|
|
45
|
+
readonly 'open companion label': "Open companion";
|
|
46
|
+
readonly 'close companion label': "Close companion";
|
|
47
|
+
readonly 'settings overscroll label': "Plank scrolling";
|
|
48
|
+
readonly 'select overscroll placeholder': "Select plank scrolling behavior";
|
|
49
|
+
readonly 'settings overscroll centering label': "Centering";
|
|
50
|
+
readonly 'settings overscroll none label': "None";
|
|
51
|
+
readonly 'settings enable statusbar label': "Show status bar";
|
|
52
|
+
readonly 'settings enable deck label': "Enable Deck";
|
|
53
|
+
readonly 'settings encapsulated planks label': "Encapsulated planks";
|
|
54
|
+
readonly 'close current label': "Close current plank";
|
|
55
|
+
readonly 'close others label': "Close other planks";
|
|
56
|
+
readonly 'close all label': "Close all planks";
|
|
57
|
+
readonly 'companion plank heading fallback label': "Related";
|
|
58
|
+
readonly 'open item label': "Open";
|
|
55
59
|
};
|
|
56
60
|
};
|
|
57
|
-
}
|
|
58
|
-
export default _default;
|
|
61
|
+
}];
|
|
59
62
|
//# sourceMappingURL=translations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,eAAO,MAAM,YAAY;;QAGnB,SAAA,CAAC,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAwDR;;EAGwB,CAAC"}
|
|
@@ -1,25 +1,83 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type Atom } from '@effect-atom/atom-react';
|
|
2
|
+
import * as Effect from 'effect/Effect';
|
|
3
|
+
import { Capability } from '@dxos/app-framework';
|
|
4
|
+
import { type DeckState } from '../types';
|
|
2
5
|
export declare namespace DeckCapabilities {
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
const Settings: Capability.InterfaceDef<Atom.Writable<{
|
|
7
|
+
showHints?: boolean | undefined;
|
|
8
|
+
enableDeck?: boolean | undefined;
|
|
9
|
+
enableStatusbar?: boolean | undefined;
|
|
10
|
+
enableNativeRedirect?: boolean | undefined;
|
|
11
|
+
newPlankPositioning?: "start" | "end" | undefined;
|
|
12
|
+
overscroll?: "none" | "centering" | undefined;
|
|
13
|
+
encapsulatedPlanks?: boolean | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
showHints?: boolean | undefined;
|
|
16
|
+
enableDeck?: boolean | undefined;
|
|
17
|
+
enableStatusbar?: boolean | undefined;
|
|
18
|
+
enableNativeRedirect?: boolean | undefined;
|
|
19
|
+
newPlankPositioning?: "start" | "end" | undefined;
|
|
20
|
+
overscroll?: "none" | "centering" | undefined;
|
|
21
|
+
encapsulatedPlanks?: boolean | undefined;
|
|
22
|
+
}>>;
|
|
23
|
+
/** Persisted state (stored in KVS/localStorage). */
|
|
24
|
+
const State: Capability.InterfaceDef<Atom.Writable<{
|
|
25
|
+
sidebarState: "closed" | "collapsed" | "expanded";
|
|
26
|
+
complementarySidebarState: "closed" | "collapsed" | "expanded";
|
|
27
|
+
complementarySidebarPanel?: string | undefined;
|
|
28
|
+
activeDeck: string;
|
|
29
|
+
previousDeck: string;
|
|
30
|
+
decks: {
|
|
31
|
+
[x: string]: {
|
|
32
|
+
initialized: boolean;
|
|
33
|
+
active: string[];
|
|
34
|
+
activeCompanions?: {
|
|
35
|
+
[x: string]: string;
|
|
36
|
+
} | undefined;
|
|
37
|
+
inactive: string[];
|
|
38
|
+
solo?: string | undefined;
|
|
39
|
+
fullscreen: boolean;
|
|
40
|
+
plankSizing: {
|
|
41
|
+
[x: string]: number;
|
|
42
|
+
};
|
|
43
|
+
companionFrameSizing: {
|
|
44
|
+
[x: string]: number;
|
|
45
|
+
};
|
|
18
46
|
};
|
|
19
47
|
};
|
|
48
|
+
previousMode: {
|
|
49
|
+
[x: string]: "solo" | "deck" | "solo--fullscreen";
|
|
50
|
+
};
|
|
51
|
+
}, {
|
|
20
52
|
sidebarState: "closed" | "collapsed" | "expanded";
|
|
21
53
|
complementarySidebarState: "closed" | "collapsed" | "expanded";
|
|
22
54
|
complementarySidebarPanel?: string | undefined;
|
|
55
|
+
activeDeck: string;
|
|
56
|
+
previousDeck: string;
|
|
57
|
+
decks: {
|
|
58
|
+
[x: string]: {
|
|
59
|
+
initialized: boolean;
|
|
60
|
+
active: string[];
|
|
61
|
+
activeCompanions?: {
|
|
62
|
+
[x: string]: string;
|
|
63
|
+
} | undefined;
|
|
64
|
+
inactive: string[];
|
|
65
|
+
solo?: string | undefined;
|
|
66
|
+
fullscreen: boolean;
|
|
67
|
+
plankSizing: {
|
|
68
|
+
[x: string]: number;
|
|
69
|
+
};
|
|
70
|
+
companionFrameSizing: {
|
|
71
|
+
[x: string]: number;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
previousMode: {
|
|
76
|
+
[x: string]: "solo" | "deck" | "solo--fullscreen";
|
|
77
|
+
};
|
|
78
|
+
}>>;
|
|
79
|
+
/** Transient/ephemeral state (not persisted). */
|
|
80
|
+
const EphemeralState: Capability.InterfaceDef<Atom.Writable<{
|
|
23
81
|
dialogOpen: boolean;
|
|
24
82
|
dialogType?: "default" | "alert" | undefined;
|
|
25
83
|
dialogBlockAlign?: "start" | "end" | "center" | undefined;
|
|
@@ -32,15 +90,22 @@ export declare namespace DeckCapabilities {
|
|
|
32
90
|
popoverSide?: "top" | "right" | "bottom" | "left" | undefined;
|
|
33
91
|
popoverAnchor?: any;
|
|
34
92
|
popoverAnchorId?: string | undefined;
|
|
93
|
+
popoverKind?: "base" | "card" | undefined;
|
|
94
|
+
popoverTitle?: string | [string, {
|
|
95
|
+
ns: string;
|
|
96
|
+
count?: number | undefined;
|
|
97
|
+
defaultValue?: string | undefined;
|
|
98
|
+
}] | undefined;
|
|
99
|
+
popoverContentRef?: string | undefined;
|
|
35
100
|
popoverContent?: any;
|
|
36
101
|
toasts: {
|
|
37
|
-
readonly
|
|
38
|
-
readonly title?: string | [string, {
|
|
102
|
+
readonly description?: string | [string, {
|
|
39
103
|
ns: string;
|
|
40
104
|
count?: number | undefined;
|
|
41
105
|
defaultValue?: string | undefined;
|
|
42
106
|
}] | undefined;
|
|
43
|
-
readonly
|
|
107
|
+
readonly id: string;
|
|
108
|
+
readonly title?: string | [string, {
|
|
44
109
|
ns: string;
|
|
45
110
|
count?: number | undefined;
|
|
46
111
|
defaultValue?: string | undefined;
|
|
@@ -65,51 +130,8 @@ export declare namespace DeckCapabilities {
|
|
|
65
130
|
readonly onAction?: any;
|
|
66
131
|
}[];
|
|
67
132
|
currentUndoId?: string | undefined;
|
|
68
|
-
activeDeck: string;
|
|
69
|
-
previousDeck: string;
|
|
70
|
-
decks: {
|
|
71
|
-
[x: string]: {
|
|
72
|
-
solo?: string | undefined;
|
|
73
|
-
initialized: boolean;
|
|
74
|
-
active: string[];
|
|
75
|
-
activeCompanions?: {
|
|
76
|
-
[x: string]: string;
|
|
77
|
-
} | undefined;
|
|
78
|
-
inactive: string[];
|
|
79
|
-
fullscreen: boolean;
|
|
80
|
-
plankSizing: {
|
|
81
|
-
[x: string]: number;
|
|
82
|
-
};
|
|
83
|
-
companionFrameSizing: {
|
|
84
|
-
[x: string]: number;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
previousMode: {
|
|
89
|
-
[x: string]: "solo" | "deck" | "solo--fullscreen";
|
|
90
|
-
};
|
|
91
133
|
scrollIntoView?: string | undefined;
|
|
92
|
-
}
|
|
93
|
-
const MutableDeckState: import("@dxos/app-framework").InterfaceDef<{
|
|
94
|
-
deck: {
|
|
95
|
-
solo?: string | undefined;
|
|
96
|
-
initialized: boolean;
|
|
97
|
-
active: string[];
|
|
98
|
-
activeCompanions?: {
|
|
99
|
-
[x: string]: string;
|
|
100
|
-
} | undefined;
|
|
101
|
-
inactive: string[];
|
|
102
|
-
fullscreen: boolean;
|
|
103
|
-
plankSizing: {
|
|
104
|
-
[x: string]: number;
|
|
105
|
-
};
|
|
106
|
-
companionFrameSizing: {
|
|
107
|
-
[x: string]: number;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
sidebarState: "closed" | "collapsed" | "expanded";
|
|
111
|
-
complementarySidebarState: "closed" | "collapsed" | "expanded";
|
|
112
|
-
complementarySidebarPanel?: string | undefined;
|
|
134
|
+
}, {
|
|
113
135
|
dialogOpen: boolean;
|
|
114
136
|
dialogType?: "default" | "alert" | undefined;
|
|
115
137
|
dialogBlockAlign?: "start" | "end" | "center" | undefined;
|
|
@@ -122,15 +144,22 @@ export declare namespace DeckCapabilities {
|
|
|
122
144
|
popoverSide?: "top" | "right" | "bottom" | "left" | undefined;
|
|
123
145
|
popoverAnchor?: any;
|
|
124
146
|
popoverAnchorId?: string | undefined;
|
|
147
|
+
popoverKind?: "base" | "card" | undefined;
|
|
148
|
+
popoverTitle?: string | [string, {
|
|
149
|
+
ns: string;
|
|
150
|
+
count?: number | undefined;
|
|
151
|
+
defaultValue?: string | undefined;
|
|
152
|
+
}] | undefined;
|
|
153
|
+
popoverContentRef?: string | undefined;
|
|
125
154
|
popoverContent?: any;
|
|
126
155
|
toasts: {
|
|
127
|
-
readonly
|
|
128
|
-
readonly title?: string | [string, {
|
|
156
|
+
readonly description?: string | [string, {
|
|
129
157
|
ns: string;
|
|
130
158
|
count?: number | undefined;
|
|
131
159
|
defaultValue?: string | undefined;
|
|
132
160
|
}] | undefined;
|
|
133
|
-
readonly
|
|
161
|
+
readonly id: string;
|
|
162
|
+
readonly title?: string | [string, {
|
|
134
163
|
ns: string;
|
|
135
164
|
count?: number | undefined;
|
|
136
165
|
defaultValue?: string | undefined;
|
|
@@ -155,30 +184,9 @@ export declare namespace DeckCapabilities {
|
|
|
155
184
|
readonly onAction?: any;
|
|
156
185
|
}[];
|
|
157
186
|
currentUndoId?: string | undefined;
|
|
158
|
-
activeDeck: string;
|
|
159
|
-
previousDeck: string;
|
|
160
|
-
decks: {
|
|
161
|
-
[x: string]: {
|
|
162
|
-
solo?: string | undefined;
|
|
163
|
-
initialized: boolean;
|
|
164
|
-
active: string[];
|
|
165
|
-
activeCompanions?: {
|
|
166
|
-
[x: string]: string;
|
|
167
|
-
} | undefined;
|
|
168
|
-
inactive: string[];
|
|
169
|
-
fullscreen: boolean;
|
|
170
|
-
plankSizing: {
|
|
171
|
-
[x: string]: number;
|
|
172
|
-
};
|
|
173
|
-
companionFrameSizing: {
|
|
174
|
-
[x: string]: number;
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
previousMode: {
|
|
179
|
-
[x: string]: "solo" | "deck" | "solo--fullscreen";
|
|
180
|
-
};
|
|
181
187
|
scrollIntoView?: string | undefined;
|
|
182
|
-
}
|
|
188
|
+
}>>;
|
|
189
|
+
/** Get the current active deck from state. */
|
|
190
|
+
const getDeck: () => Effect.Effect<DeckState, Error, Capability.Service>;
|
|
183
191
|
}
|
|
184
192
|
//# sourceMappingURL=capabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/types/capabilities.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAI/D,OAAO,EAAwD,KAAK,SAAS,EAAuB,MAAM,UAAU,CAAC;AAErH,yBAAiB,gBAAgB,CAAC;IACzB,MAAM,QAAQ;;;;;;;;;;;;;;;;OAAsF,CAAC;IAE5G,oDAAoD;IAC7C,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAgF,CAAC;IAEnG,iDAAiD;IAC1C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAE1B,CAAC;IAEF,8CAA8C;IACvC,MAAM,OAAO,QAAO,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,UAAU,CAAC,OAAO,CAMzE,CAAC;CACN"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ActivationEvent } from '@dxos/app-framework';
|
|
2
|
+
export declare namespace DeckEvents {
|
|
3
|
+
const StateReady: ActivationEvent.ActivationEvent;
|
|
4
|
+
/** Fired when DeckSettings capability is ready. */
|
|
5
|
+
const SettingsReady: ActivationEvent.ActivationEvent;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../src/types/events.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAO3D,yBAAiB,UAAU,CAAC;IACnB,MAAM,UAAU,EAAE,eAAe,CAAC,eAExC,CAAC;IAEF,mDAAmD;IAC5C,MAAM,aAAa,EAAE,eAAe,CAAC,eAE3C,CAAC;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
2
3
|
import { type DeepReadonly } from '@dxos/util';
|
|
3
4
|
export { ATTENDABLE_PATH_SEPARATOR } from '@dxos/react-ui-attention';
|
|
4
|
-
export declare const PLANK_COMPANION_TYPE
|
|
5
|
-
export declare const DECK_COMPANION_TYPE
|
|
5
|
+
export declare const PLANK_COMPANION_TYPE: string;
|
|
6
|
+
export declare const DECK_COMPANION_TYPE: string;
|
|
6
7
|
export declare const NewPlankPositions: readonly ["start", "end"];
|
|
7
8
|
export type NewPlankPositioning = (typeof NewPlankPositions)[number];
|
|
8
9
|
export declare const OverscrollOptions: readonly ["none", "centering"];
|
|
@@ -16,6 +17,7 @@ export declare const DeckSettingsSchema: Schema.mutable<Schema.Struct<{
|
|
|
16
17
|
enableNativeRedirect: Schema.optional<typeof Schema.Boolean>;
|
|
17
18
|
newPlankPositioning: Schema.optional<Schema.Literal<["start", "end"]>>;
|
|
18
19
|
overscroll: Schema.optional<Schema.Literal<["none", "centering"]>>;
|
|
20
|
+
encapsulatedPlanks: Schema.optional<typeof Schema.Boolean>;
|
|
19
21
|
}>>;
|
|
20
22
|
export type DeckSettingsProps = Schema.Schema.Type<typeof DeckSettingsSchema>;
|
|
21
23
|
export declare const PlankSizing: Schema.Record$<typeof Schema.String, typeof Schema.Number>;
|
|
@@ -37,10 +39,27 @@ declare const LayoutMode: Schema.Literal<["deck", "solo", "solo--fullscreen"]>;
|
|
|
37
39
|
export type LayoutMode = Schema.Schema.Type<typeof LayoutMode>;
|
|
38
40
|
export declare const isLayoutMode: (value: any) => value is LayoutMode;
|
|
39
41
|
export declare const getMode: (deck: DeckState | DeepReadonly<DeckState>) => LayoutMode;
|
|
40
|
-
export declare const
|
|
42
|
+
export declare const DeckStateSchema: Schema.mutable<Schema.Struct<{
|
|
41
43
|
sidebarState: Schema.Literal<["closed", "collapsed", "expanded"]>;
|
|
42
44
|
complementarySidebarState: Schema.Literal<["closed", "collapsed", "expanded"]>;
|
|
43
45
|
complementarySidebarPanel: Schema.optional<typeof Schema.String>;
|
|
46
|
+
activeDeck: typeof Schema.String;
|
|
47
|
+
previousDeck: typeof Schema.String;
|
|
48
|
+
decks: Schema.mutable<Schema.Record$<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
49
|
+
/** If false, the deck has not yet left solo mode and new planks should be soloed. */
|
|
50
|
+
initialized: typeof Schema.Boolean;
|
|
51
|
+
active: Schema.mutable<Schema.Array$<typeof Schema.String>>;
|
|
52
|
+
activeCompanions: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.String>>>;
|
|
53
|
+
inactive: Schema.mutable<Schema.Array$<typeof Schema.String>>;
|
|
54
|
+
solo: Schema.optional<typeof Schema.String>;
|
|
55
|
+
fullscreen: typeof Schema.Boolean;
|
|
56
|
+
plankSizing: Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Number>>;
|
|
57
|
+
companionFrameSizing: Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Number>>;
|
|
58
|
+
}>>>>;
|
|
59
|
+
previousMode: Schema.mutable<Schema.Record$<typeof Schema.String, Schema.Literal<["deck", "solo", "solo--fullscreen"]>>>;
|
|
60
|
+
}>>;
|
|
61
|
+
export type DeckStateProps = Schema.Schema.Type<typeof DeckStateSchema>;
|
|
62
|
+
export declare const DeckEphemeralStateSchema: Schema.mutable<Schema.Struct<{
|
|
44
63
|
dialogOpen: typeof Schema.Boolean;
|
|
45
64
|
dialogType: Schema.optional<Schema.Literal<["default", "alert"]>>;
|
|
46
65
|
dialogBlockAlign: Schema.optional<Schema.Literal<["start", "center", "end"]>>;
|
|
@@ -52,6 +71,14 @@ export declare const DeckPluginState: Schema.mutable<Schema.Struct<{
|
|
|
52
71
|
popoverSide: Schema.optional<Schema.Literal<["top", "right", "bottom", "left"]>>;
|
|
53
72
|
popoverAnchor: Schema.optional<typeof Schema.Any>;
|
|
54
73
|
popoverAnchorId: Schema.optional<typeof Schema.String>;
|
|
74
|
+
popoverKind: Schema.optional<Schema.Literal<["base", "card"]>>;
|
|
75
|
+
popoverTitle: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
76
|
+
ns: typeof Schema.String;
|
|
77
|
+
count: Schema.optional<typeof Schema.Number>;
|
|
78
|
+
defaultValue: Schema.optional<typeof Schema.String>;
|
|
79
|
+
}>>>>]>>;
|
|
80
|
+
/** Ref of the subject to be passed to the popover Surface. */
|
|
81
|
+
popoverContentRef: Schema.optional<typeof Schema.String>;
|
|
55
82
|
/** Data to be passed to the popover Surface. */
|
|
56
83
|
popoverContent: Schema.optional<typeof Schema.Any>;
|
|
57
84
|
toasts: Schema.mutable<Schema.Array$<Schema.Struct<{
|
|
@@ -86,36 +113,11 @@ export declare const DeckPluginState: Schema.mutable<Schema.Struct<{
|
|
|
86
113
|
onAction: Schema.optional<Schema.SchemaClass<any, any, never>>;
|
|
87
114
|
}>>>;
|
|
88
115
|
currentUndoId: Schema.optional<typeof Schema.String>;
|
|
89
|
-
activeDeck: typeof Schema.String;
|
|
90
|
-
previousDeck: typeof Schema.String;
|
|
91
|
-
decks: Schema.mutable<Schema.Record$<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
92
|
-
/** If false, the deck has not yet left solo mode and new planks should be soloed. */
|
|
93
|
-
initialized: typeof Schema.Boolean;
|
|
94
|
-
active: Schema.mutable<Schema.Array$<typeof Schema.String>>;
|
|
95
|
-
activeCompanions: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.String>>>;
|
|
96
|
-
inactive: Schema.mutable<Schema.Array$<typeof Schema.String>>;
|
|
97
|
-
solo: Schema.optional<typeof Schema.String>;
|
|
98
|
-
fullscreen: typeof Schema.Boolean;
|
|
99
|
-
plankSizing: Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Number>>;
|
|
100
|
-
companionFrameSizing: Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Number>>;
|
|
101
|
-
}>>>>;
|
|
102
|
-
previousMode: Schema.mutable<Schema.Record$<typeof Schema.String, Schema.Literal<["deck", "solo", "solo--fullscreen"]>>>;
|
|
103
|
-
deck: Schema.mutable<Schema.Struct<{
|
|
104
|
-
/** If false, the deck has not yet left solo mode and new planks should be soloed. */
|
|
105
|
-
initialized: typeof Schema.Boolean;
|
|
106
|
-
active: Schema.mutable<Schema.Array$<typeof Schema.String>>;
|
|
107
|
-
activeCompanions: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.String>>>;
|
|
108
|
-
inactive: Schema.mutable<Schema.Array$<typeof Schema.String>>;
|
|
109
|
-
solo: Schema.optional<typeof Schema.String>;
|
|
110
|
-
fullscreen: typeof Schema.Boolean;
|
|
111
|
-
plankSizing: Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Number>>;
|
|
112
|
-
companionFrameSizing: Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Number>>;
|
|
113
|
-
}>>;
|
|
114
116
|
/** The identifier of a component to scroll into view when it is mounted. */
|
|
115
117
|
scrollIntoView: Schema.optional<typeof Schema.String>;
|
|
116
118
|
}>>;
|
|
117
|
-
export type
|
|
118
|
-
export
|
|
119
|
+
export type DeckEphemeralStateProps = Schema.Schema.Type<typeof DeckEphemeralStateSchema>;
|
|
120
|
+
export type DeckPluginState = DeckStateProps & DeckEphemeralStateProps;
|
|
119
121
|
export declare namespace DeckAction {
|
|
120
122
|
const PartAdjustmentSchema: Schema.Union<[Schema.Literal<["close"]>, Schema.Literal<["companion"]>, Schema.Literal<["solo"]>, Schema.Literal<["solo--fullscreen"]>, Schema.Literal<["increment-start"]>, Schema.Literal<["increment-end"]>]>;
|
|
121
123
|
export type PartAdjustment = Schema.Schema.Type<typeof PartAdjustmentSchema>;
|
|
@@ -124,8 +126,8 @@ export declare namespace DeckAction {
|
|
|
124
126
|
type: Schema.Union<[Schema.Literal<["close"]>, Schema.Literal<["companion"]>, Schema.Literal<["solo"]>, Schema.Literal<["solo--fullscreen"]>, Schema.Literal<["increment-start"]>, Schema.Literal<["increment-end"]>]>;
|
|
125
127
|
}>>;
|
|
126
128
|
export type Adjustment = Schema.Schema.Type<typeof Adjustment>;
|
|
127
|
-
const Adjust_base: Schema.TaggedClass<Adjust, `${string}/adjust`, {
|
|
128
|
-
readonly _tag: Schema.tag<`${string}/adjust`>;
|
|
129
|
+
const Adjust_base: Schema.TaggedClass<Adjust, `${string}/action/adjust`, {
|
|
130
|
+
readonly _tag: Schema.tag<`${string}/action/adjust`>;
|
|
129
131
|
} & {
|
|
130
132
|
input: Schema.mutable<Schema.Struct<{
|
|
131
133
|
id: typeof Schema.String;
|
|
@@ -135,8 +137,8 @@ export declare namespace DeckAction {
|
|
|
135
137
|
}>;
|
|
136
138
|
export class Adjust extends Adjust_base {
|
|
137
139
|
}
|
|
138
|
-
const UpdatePlankSize_base: Schema.TaggedClass<UpdatePlankSize, `${string}/update-plank-size`, {
|
|
139
|
-
readonly _tag: Schema.tag<`${string}/update-plank-size`>;
|
|
140
|
+
const UpdatePlankSize_base: Schema.TaggedClass<UpdatePlankSize, `${string}/action/update-plank-size`, {
|
|
141
|
+
readonly _tag: Schema.tag<`${string}/action/update-plank-size`>;
|
|
140
142
|
} & {
|
|
141
143
|
input: Schema.Struct<{
|
|
142
144
|
id: typeof Schema.String;
|
|
@@ -146,8 +148,8 @@ export declare namespace DeckAction {
|
|
|
146
148
|
}>;
|
|
147
149
|
export class UpdatePlankSize extends UpdatePlankSize_base {
|
|
148
150
|
}
|
|
149
|
-
const ChangeCompanion_base: Schema.TaggedClass<ChangeCompanion, `${string}/change-companion`, {
|
|
150
|
-
readonly _tag: Schema.tag<`${string}/change-companion`>;
|
|
151
|
+
const ChangeCompanion_base: Schema.TaggedClass<ChangeCompanion, `${string}/action/change-companion`, {
|
|
152
|
+
readonly _tag: Schema.tag<`${string}/action/change-companion`>;
|
|
151
153
|
} & {
|
|
152
154
|
input: Schema.Struct<{
|
|
153
155
|
primary: typeof Schema.String;
|
|
@@ -159,4 +161,63 @@ export declare namespace DeckAction {
|
|
|
159
161
|
}
|
|
160
162
|
export {};
|
|
161
163
|
}
|
|
162
|
-
|
|
164
|
+
/**
|
|
165
|
+
* Operations for the Deck plugin.
|
|
166
|
+
*/
|
|
167
|
+
export declare namespace DeckOperation {
|
|
168
|
+
const PartAdjustmentSchema: Schema.Union<[Schema.Literal<["close"]>, Schema.Literal<["companion"]>, Schema.Literal<["solo"]>, Schema.Literal<["solo--fullscreen"]>, Schema.Literal<["increment-start"]>, Schema.Literal<["increment-end"]>]>;
|
|
169
|
+
export type PartAdjustment = Schema.Schema.Type<typeof PartAdjustmentSchema>;
|
|
170
|
+
export const Adjust: Omit<{
|
|
171
|
+
readonly meta: {
|
|
172
|
+
readonly key: `${string}/operation/adjust`;
|
|
173
|
+
readonly name: "Adjust";
|
|
174
|
+
readonly description: "Adjust the layout of a plank.";
|
|
175
|
+
};
|
|
176
|
+
readonly services: readonly [typeof Capability.Service];
|
|
177
|
+
readonly schema: {
|
|
178
|
+
readonly input: Schema.Struct<{
|
|
179
|
+
id: Schema.SchemaClass<string, string, never>;
|
|
180
|
+
type: Schema.Union<[Schema.Literal<["close"]>, Schema.Literal<["companion"]>, Schema.Literal<["solo"]>, Schema.Literal<["solo--fullscreen"]>, Schema.Literal<["increment-start"]>, Schema.Literal<["increment-end"]>]>;
|
|
181
|
+
}>;
|
|
182
|
+
readonly output: typeof Schema.Void;
|
|
183
|
+
};
|
|
184
|
+
}, "executionMode"> & import("effect/Pipeable").Pipeable & {
|
|
185
|
+
readonly executionMode: "sync" | "async";
|
|
186
|
+
};
|
|
187
|
+
export const UpdatePlankSize: Omit<{
|
|
188
|
+
readonly meta: {
|
|
189
|
+
readonly key: `${string}/operation/update-plank-size`;
|
|
190
|
+
readonly name: "Update Plank Size";
|
|
191
|
+
readonly description: "Update the size of a plank.";
|
|
192
|
+
};
|
|
193
|
+
readonly services: readonly [typeof Capability.Service];
|
|
194
|
+
readonly schema: {
|
|
195
|
+
readonly input: Schema.Struct<{
|
|
196
|
+
id: Schema.SchemaClass<string, string, never>;
|
|
197
|
+
size: Schema.SchemaClass<number, number, never>;
|
|
198
|
+
}>;
|
|
199
|
+
readonly output: typeof Schema.Void;
|
|
200
|
+
};
|
|
201
|
+
}, "executionMode"> & import("effect/Pipeable").Pipeable & {
|
|
202
|
+
readonly executionMode: "sync" | "async";
|
|
203
|
+
};
|
|
204
|
+
export const ChangeCompanion: Omit<{
|
|
205
|
+
readonly meta: {
|
|
206
|
+
readonly key: `${string}/operation/change-companion`;
|
|
207
|
+
readonly name: "Change Companion";
|
|
208
|
+
readonly description: "Change the companion plank for a primary plank.";
|
|
209
|
+
};
|
|
210
|
+
readonly services: readonly [typeof Capability.Service];
|
|
211
|
+
readonly schema: {
|
|
212
|
+
readonly input: Schema.Struct<{
|
|
213
|
+
primary: typeof Schema.String;
|
|
214
|
+
companion: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
|
|
215
|
+
}>;
|
|
216
|
+
readonly output: typeof Schema.Void;
|
|
217
|
+
};
|
|
218
|
+
}, "executionMode"> & import("effect/Pipeable").Pipeable & {
|
|
219
|
+
readonly executionMode: "sync" | "async";
|
|
220
|
+
};
|
|
221
|
+
export {};
|
|
222
|
+
}
|
|
223
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/types/schema.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { type AttentionManager } from '@dxos/plugin-attention';
|
|
2
|
-
import { type
|
|
2
|
+
import { type DeckState } from '../types';
|
|
3
3
|
export type SetActiveOptions = {
|
|
4
4
|
next: string[];
|
|
5
|
-
|
|
5
|
+
deck: DeckState;
|
|
6
6
|
attention?: AttentionManager;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type SetActiveResult = {
|
|
9
|
+
/** Updates to apply to the deck. */
|
|
10
|
+
deckUpdates: {
|
|
11
|
+
inactive: string[];
|
|
12
|
+
solo: string | undefined;
|
|
13
|
+
active: string[];
|
|
14
|
+
fullscreen: boolean;
|
|
15
|
+
};
|
|
16
|
+
/** ID of the item to attend (scroll into view) if attention changed. */
|
|
17
|
+
toAttend?: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Computes the new active state for the deck without mutating.
|
|
21
|
+
* Returns the updates to apply and optionally an item to attend.
|
|
22
|
+
*/
|
|
23
|
+
export declare const computeActiveUpdates: ({ next, deck, attention }: SetActiveOptions) => SetActiveResult;
|
|
9
24
|
//# sourceMappingURL=set-active.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-active.d.ts","sourceRoot":"","sources":["../../../../src/util/set-active.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"set-active.d.ts","sourceRoot":"","sources":["../../../../src/util/set-active.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,IAAI,EAAE,SAAS,CAAC;IAChB,SAAS,CAAC,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,oCAAoC;IACpC,WAAW,EAAE;QACX,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;QACzB,MAAM,EAAE,MAAM,EAAE,CAAC;QACjB,UAAU,EAAE,OAAO,CAAC;KACrB,CAAC;IACF,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAAI,2BAA2B,gBAAgB,KAAG,eAoClF,CAAC"}
|