@dxos/plugin-deck 0.8.2-main.fbd8ed0 → 0.8.2-staging.7ac8446
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-R7COZ4A6.mjs → app-graph-builder-VYZ4IWI3.mjs} +15 -16
- package/dist/lib/browser/app-graph-builder-VYZ4IWI3.mjs.map +7 -0
- package/dist/lib/browser/{check-app-scheme-7AXGR6UT.mjs → check-app-scheme-SEYECDHI.mjs} +3 -2
- package/dist/lib/browser/check-app-scheme-SEYECDHI.mjs.map +7 -0
- package/dist/lib/browser/chunk-6ZSOFCPP.mjs +117 -0
- package/dist/lib/browser/chunk-6ZSOFCPP.mjs.map +7 -0
- package/dist/lib/browser/chunk-B4LOJUWW.mjs +24 -0
- package/dist/lib/browser/chunk-B4LOJUWW.mjs.map +7 -0
- package/dist/lib/browser/{chunk-KIGMELV2.mjs → chunk-FJBMNSUC.mjs} +336 -366
- package/dist/lib/browser/chunk-FJBMNSUC.mjs.map +7 -0
- package/dist/lib/browser/chunk-FLOVGNYB.mjs +81 -0
- package/dist/lib/browser/chunk-FLOVGNYB.mjs.map +7 -0
- package/dist/lib/browser/chunk-RJNCG4ND.mjs +154 -0
- package/dist/lib/browser/chunk-RJNCG4ND.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +5 -6
- package/dist/lib/browser/index.mjs.map +2 -2
- package/dist/lib/browser/{intent-resolver-MAKOS57L.mjs → intent-resolver-UDYKO2QW.mjs} +89 -130
- package/dist/lib/browser/intent-resolver-UDYKO2QW.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-root-DGQVIHXP.mjs → react-root-XLXN2VEW.mjs} +6 -6
- package/dist/lib/browser/{react-surface-PXBXIOPU.mjs → react-surface-WNGMZL7I.mjs} +6 -6
- package/dist/lib/browser/{settings-UBWJF7J7.mjs → settings-HMDGSBGO.mjs} +6 -6
- package/dist/lib/browser/settings-HMDGSBGO.mjs.map +7 -0
- package/dist/lib/browser/{chunk-OF5RIATN.mjs → state-7TN26M42.mjs} +7 -10
- package/dist/lib/browser/state-7TN26M42.mjs.map +7 -0
- package/dist/lib/browser/{tools-IVPIPTVA.mjs → tools-SC6QEN7R.mjs} +7 -7
- package/dist/lib/browser/tools-SC6QEN7R.mjs.map +7 -0
- package/dist/lib/browser/types.mjs +1 -1
- package/dist/lib/browser/{url-handler-JSYGSVSB.mjs → url-handler-ODG4B6NX.mjs} +4 -4
- package/dist/lib/browser/url-handler-ODG4B6NX.mjs.map +7 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts +179 -2
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/capabilities.d.ts +6 -8
- package/dist/types/src/capabilities/capabilities.d.ts.map +1 -1
- package/dist/types/src/capabilities/check-app-scheme.d.ts +2 -2
- package/dist/types/src/capabilities/check-app-scheme.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +182 -7
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +2 -2
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/state.d.ts +6 -7
- package/dist/types/src/capabilities/state.d.ts.map +1 -1
- package/dist/types/src/capabilities/tools.d.ts.map +1 -1
- package/dist/types/src/capabilities/url-handler.d.ts +2 -2
- package/dist/types/src/capabilities/url-handler.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.map +1 -1
- package/dist/types/src/components/DeckLayout/Fullscreen.d.ts +5 -0
- package/dist/types/src/components/DeckLayout/Fullscreen.d.ts.map +1 -0
- package/dist/types/src/components/DeckLayout/StatusBar.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/Toast.d.ts.map +1 -1
- package/dist/types/src/components/DeckSettings/DeckSettings.d.ts.map +1 -1
- package/dist/types/src/components/Plank/Plank.d.ts +5 -18
- package/dist/types/src/components/Plank/Plank.d.ts.map +1 -1
- package/dist/types/src/components/Plank/Plank.stories.d.ts +3 -3
- package/dist/types/src/components/Plank/Plank.stories.d.ts.map +1 -1
- package/dist/types/src/components/Plank/PlankControls.d.ts +2 -3
- package/dist/types/src/components/Plank/PlankControls.d.ts.map +1 -1
- package/dist/types/src/components/Plank/PlankError.d.ts.map +1 -1
- package/dist/types/src/components/Plank/PlankHeading.d.ts +2 -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 +1 -2
- package/dist/types/src/components/Sidebar/SidebarButton.d.ts.map +1 -1
- package/dist/types/src/hooks/index.d.ts +1 -5
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useNodeActionExpander.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/layout.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +0 -2
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +104 -106
- package/dist/types/src/types.d.ts.map +1 -1
- package/dist/types/src/util/index.d.ts +4 -1
- package/dist/types/src/util/index.d.ts.map +1 -1
- package/dist/types/src/util/layoutAppliesTopbar.d.ts +1 -2
- package/dist/types/src/util/layoutAppliesTopbar.d.ts.map +1 -1
- package/dist/types/src/util/overscroll.d.ts.map +1 -1
- package/dist/types/src/util/set-active.d.ts.map +1 -1
- package/dist/types/src/util/useBreakpoints.d.ts.map +1 -0
- package/dist/types/src/util/useCompanions.d.ts.map +1 -0
- package/dist/types/src/util/useHoistStatusbar.d.ts +2 -0
- package/dist/types/src/util/useHoistStatusbar.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +29 -36
- package/src/capabilities/app-graph-builder.ts +92 -120
- package/src/capabilities/check-app-scheme.ts +7 -3
- package/src/capabilities/index.ts +2 -3
- package/src/capabilities/intent-resolver.ts +133 -175
- package/src/capabilities/settings.ts +4 -4
- package/src/capabilities/state.ts +4 -7
- package/src/capabilities/tools.ts +3 -4
- package/src/capabilities/url-handler.ts +4 -4
- package/src/components/DeckLayout/ContentEmpty.tsx +4 -9
- package/src/components/DeckLayout/DeckLayout.tsx +188 -123
- package/src/components/DeckLayout/Fullscreen.tsx +31 -0
- package/src/components/Plank/Plank.stories.tsx +8 -20
- package/src/components/Plank/Plank.tsx +68 -104
- package/src/components/Plank/PlankControls.tsx +57 -53
- package/src/components/Plank/PlankError.tsx +6 -2
- package/src/components/Plank/PlankHeading.tsx +12 -29
- package/src/components/Sidebar/ComplementarySidebar.tsx +54 -33
- package/src/components/Sidebar/Sidebar.tsx +4 -7
- package/src/components/Sidebar/SidebarButton.tsx +7 -30
- package/src/components/fragments.ts +1 -1
- package/src/hooks/index.ts +1 -5
- package/src/hooks/useNodeActionExpander.ts +8 -3
- package/src/index.ts +1 -1
- package/src/translations.ts +0 -2
- package/src/types.ts +71 -75
- package/src/util/index.ts +4 -1
- package/src/util/layoutAppliesTopbar.ts +2 -8
- package/src/{hooks → util}/useCompanions.ts +3 -3
- package/src/{hooks → util}/useHoistStatusbar.ts +4 -9
- package/dist/lib/browser/app-graph-builder-R7COZ4A6.mjs.map +0 -7
- package/dist/lib/browser/check-app-scheme-7AXGR6UT.mjs.map +0 -7
- package/dist/lib/browser/chunk-3O2UZVBA.mjs +0 -121
- package/dist/lib/browser/chunk-3O2UZVBA.mjs.map +0 -7
- package/dist/lib/browser/chunk-JAYQ5BTF.mjs +0 -157
- package/dist/lib/browser/chunk-JAYQ5BTF.mjs.map +0 -7
- package/dist/lib/browser/chunk-KIGMELV2.mjs.map +0 -7
- package/dist/lib/browser/chunk-OF5RIATN.mjs.map +0 -7
- package/dist/lib/browser/chunk-TRFYUEBA.mjs +0 -145
- package/dist/lib/browser/chunk-TRFYUEBA.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-MAKOS57L.mjs.map +0 -7
- package/dist/lib/browser/settings-UBWJF7J7.mjs.map +0 -7
- package/dist/lib/browser/state-4WFB4SDO.mjs +0 -10
- package/dist/lib/browser/state-4WFB4SDO.mjs.map +0 -7
- package/dist/lib/browser/tools-IVPIPTVA.mjs.map +0 -7
- package/dist/lib/browser/url-handler-JSYGSVSB.mjs.map +0 -7
- package/dist/types/src/components/DeckLayout/Dialog.d.ts +0 -3
- package/dist/types/src/components/DeckLayout/Dialog.d.ts.map +0 -1
- package/dist/types/src/components/DeckLayout/Popover.d.ts +0 -5
- package/dist/types/src/components/DeckLayout/Popover.d.ts.map +0 -1
- package/dist/types/src/hooks/useBreakpoints.d.ts.map +0 -1
- package/dist/types/src/hooks/useCompanions.d.ts.map +0 -1
- package/dist/types/src/hooks/useDeckCompanions.d.ts +0 -13
- package/dist/types/src/hooks/useDeckCompanions.d.ts.map +0 -1
- package/dist/types/src/hooks/useHoistStatusbar.d.ts +0 -3
- package/dist/types/src/hooks/useHoistStatusbar.d.ts.map +0 -1
- package/src/components/DeckLayout/Dialog.tsx +0 -36
- package/src/components/DeckLayout/Popover.tsx +0 -104
- package/src/hooks/useDeckCompanions.ts +0 -33
- /package/dist/lib/browser/{react-root-DGQVIHXP.mjs.map → react-root-XLXN2VEW.mjs.map} +0 -0
- /package/dist/lib/browser/{react-surface-PXBXIOPU.mjs.map → react-surface-WNGMZL7I.mjs.map} +0 -0
- /package/dist/types/src/{hooks → util}/useBreakpoints.d.ts +0 -0
- /package/dist/types/src/{hooks → util}/useCompanions.d.ts +0 -0
- /package/src/{hooks → util}/useBreakpoints.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const _default: () => (import("@dxos/app-framework").Capability<import("@dxos/util").DeepReadonly<{
|
|
2
2
|
deck: {
|
|
3
3
|
solo?: string | undefined;
|
|
4
4
|
initialized: boolean;
|
|
@@ -19,14 +19,13 @@ declare const DeckStateFactory: () => (import("@dxos/app-framework").Capability<
|
|
|
19
19
|
complementarySidebarState: "closed" | "collapsed" | "expanded";
|
|
20
20
|
complementarySidebarPanel?: string | undefined;
|
|
21
21
|
dialogOpen: boolean;
|
|
22
|
+
dialogContent?: any;
|
|
22
23
|
dialogBlockAlign?: "start" | "end" | "center" | undefined;
|
|
23
24
|
dialogType?: "default" | "alert" | undefined;
|
|
24
|
-
dialogContent?: any;
|
|
25
25
|
popoverOpen: boolean;
|
|
26
26
|
popoverSide?: "top" | "right" | "bottom" | "left" | undefined;
|
|
27
|
-
popoverAnchor?: any;
|
|
28
|
-
popoverAnchorId?: string | undefined;
|
|
29
27
|
popoverContent?: any;
|
|
28
|
+
popoverAnchorId?: string | undefined;
|
|
30
29
|
toasts: {
|
|
31
30
|
readonly id: string;
|
|
32
31
|
readonly title?: string | [string, {
|
|
@@ -75,10 +74,10 @@ declare const DeckStateFactory: () => (import("@dxos/app-framework").Capability<
|
|
|
75
74
|
};
|
|
76
75
|
};
|
|
77
76
|
previousMode: {
|
|
78
|
-
[x: string]: "solo" | "deck" | "
|
|
77
|
+
[x: string]: "solo" | "deck" | "fullscreen";
|
|
79
78
|
};
|
|
80
79
|
scrollIntoView?: string | undefined;
|
|
81
|
-
}>> | import("@dxos/app-framework").Capability<import("@dxos/live-object").
|
|
80
|
+
}>> | import("@dxos/app-framework").Capability<import("@dxos/live-object").ReactiveObject<Readonly<{
|
|
82
81
|
mode: string;
|
|
83
82
|
dialogOpen: boolean;
|
|
84
83
|
sidebarOpen: boolean;
|
|
@@ -88,5 +87,5 @@ declare const DeckStateFactory: () => (import("@dxos/app-framework").Capability<
|
|
|
88
87
|
inactive: string[];
|
|
89
88
|
scrollIntoView: string | undefined;
|
|
90
89
|
}>>>)[];
|
|
91
|
-
export default
|
|
90
|
+
export default _default;
|
|
92
91
|
//# sourceMappingURL=state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/state.ts"],"names":[],"mappings":"AA+BA,
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/state.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,wBAqEE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/tools.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/tools.ts"],"names":[],"mappings":"AAIA,OAAO,EAKL,KAAK,uBAAuB,EAC7B,MAAM,qBAAqB,CAAC;AAS7B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,QAAQ,CAAC,EAAE,uBAAuB,CAAC;QACnC,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;KAC1B;CACF;;AAED,wBAkDK"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
declare const _default: (context:
|
|
1
|
+
import { type PluginsContext } from '@dxos/app-framework';
|
|
2
|
+
declare const _default: (context: PluginsContext) => Promise<import("@dxos/app-framework").Capability<null>>;
|
|
3
3
|
export default _default;
|
|
4
4
|
//# sourceMappingURL=url-handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url-handler.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/url-handler.ts"],"names":[],"mappings":"AAIA,OAAO,EAAyD,KAAK,
|
|
1
|
+
{"version":3,"file":"url-handler.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/url-handler.ts"],"names":[],"mappings":"AAIA,OAAO,EAAyD,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;kCAOlF,cAAc;AAA7C,wBA+CE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Banner.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAMtE,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Banner.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAMtE,eAAO,MAAM,MAAM,4BAA6B,eAAe,CAAC;IAAE,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAAE,CAAC,sBAyBlG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentEmpty.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/ContentEmpty.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ContentEmpty.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/ContentEmpty.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,eAAO,MAAM,YAAY,yBAaxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeckLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/DeckLayout.tsx"],"names":[],"mappings":"AAKA,OAAO,
|
|
1
|
+
{"version":3,"file":"DeckLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/DeckLayout.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAoF,MAAM,OAAO,CAAC;AAsCzG,MAAM,MAAM,eAAe,GAAG;IAC5B,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAC;AAKF,eAAO,MAAM,UAAU,uBAAwB,eAAe,sBA2T7D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Fullscreen.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Fullscreen.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,eAAO,MAAM,UAAU,WAAY;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,sBAiBjD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusBar.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/StatusBar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"StatusBar.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/StatusBar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,eAAO,MAAM,SAAS,kBAAmB;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,sBAY/D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Toast.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAIL,KAAK,cAAc,EAGpB,MAAM,gBAAgB,CAAC;AAKxB,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Toast.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAIL,KAAK,cAAc,EAGpB,MAAM,gBAAgB,CAAC;AAKxB,eAAO,MAAM,KAAK,4GAWf,YAAY,CAAC,KAAK,GAAG,IAAI,CAAC,cAAc,EAAE,cAAc,CAAC,sBA8B3D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeckSettings.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckSettings/DeckSettings.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EACL,KAAK,iBAAiB,EAKvB,MAAM,aAAa,CAAC;AAIrB,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"DeckSettings.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckSettings/DeckSettings.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EACL,KAAK,iBAAiB,EAKvB,MAAM,aAAa,CAAC;AAIrB,eAAO,MAAM,YAAY,iBAAkB;IAAE,QAAQ,EAAE,iBAAiB,CAAA;CAAE,sBAmEzE,CAAC"}
|
|
@@ -1,27 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type
|
|
3
|
-
|
|
4
|
-
export type PlankProps = Pick<PlankComponentProps, 'layoutMode' | 'part' | 'path' | 'order' | 'active' | 'settings'> & {
|
|
2
|
+
import { type LayoutMode, type Part, type DeckSettingsProps } from '../../types';
|
|
3
|
+
export type PlankProps = {
|
|
5
4
|
id?: string;
|
|
6
5
|
companionId?: string;
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* A Plank is the main container for surfaces within a Deck.
|
|
10
|
-
* It may be paired with a companion plank that enables the user to select one of multiple companion surfaces.
|
|
11
|
-
*/
|
|
12
|
-
export declare const Plank: React.MemoExoticComponent<({ id, companionId, ...props }: PlankProps) => React.JSX.Element>;
|
|
13
|
-
type PlankComponentProps = {
|
|
14
|
-
layoutMode: LayoutMode;
|
|
15
|
-
id: string;
|
|
16
|
-
part: ResolvedPart;
|
|
6
|
+
part: Part;
|
|
17
7
|
path?: string[];
|
|
18
8
|
order?: number;
|
|
19
9
|
active?: string[];
|
|
20
|
-
|
|
21
|
-
node?: Node;
|
|
22
|
-
primary?: Node;
|
|
23
|
-
companions?: Node[];
|
|
10
|
+
layoutMode: LayoutMode;
|
|
24
11
|
settings?: DeckSettingsProps;
|
|
25
12
|
};
|
|
26
|
-
export {};
|
|
13
|
+
export declare const Plank: ({ id, ...props }: PlankProps) => React.JSX.Element;
|
|
27
14
|
//# sourceMappingURL=Plank.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plank.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/Plank.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Plank.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/Plank.tsx"],"names":[],"mappings":"AAIA,OAAO,KASN,MAAM,OAAO,CAAC;AAsBf,OAAO,EAAc,KAAK,UAAU,EAAE,KAAK,IAAI,EAAqB,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAKhH,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAC9B,CAAC;AAqJF,eAAO,MAAM,KAAK,qBAAmC,UAAU,sBA+B9D,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
2
|
import { type StoryObj, type Meta } from '@storybook/react';
|
|
3
|
-
import {
|
|
4
|
-
declare const meta: Meta<
|
|
3
|
+
import { Plank } from './Plank';
|
|
4
|
+
declare const meta: Meta<typeof Plank>;
|
|
5
5
|
export default meta;
|
|
6
|
-
type Story = StoryObj<
|
|
6
|
+
type Story = StoryObj<typeof meta>;
|
|
7
7
|
export declare const Default: Story;
|
|
8
8
|
//# sourceMappingURL=Plank.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plank.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/Plank.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"Plank.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/Plank.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAO5D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAIhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CAc5B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ButtonGroupProps } from '@dxos/react-ui';
|
|
3
|
-
import { DeckAction
|
|
3
|
+
import { DeckAction } from '../../types';
|
|
4
4
|
export type PlankControlHandler = (event: DeckAction.PartAdjustment) => void;
|
|
5
5
|
export type PlankCapabilities = {
|
|
6
6
|
incrementStart?: boolean;
|
|
7
7
|
incrementEnd?: boolean;
|
|
8
8
|
deck?: boolean;
|
|
9
9
|
solo?: boolean;
|
|
10
|
-
fullscreen?: boolean;
|
|
11
10
|
companion?: boolean;
|
|
12
11
|
};
|
|
13
12
|
export type PlankControlsProps = Omit<ButtonGroupProps, 'onClick'> & {
|
|
@@ -15,7 +14,7 @@ export type PlankControlsProps = Omit<ButtonGroupProps, 'onClick'> & {
|
|
|
15
14
|
variant?: 'hide-disabled' | 'default';
|
|
16
15
|
close?: boolean | 'minify-start' | 'minify-end';
|
|
17
16
|
capabilities: PlankCapabilities;
|
|
18
|
-
|
|
17
|
+
isSolo?: boolean;
|
|
19
18
|
pin?: 'start' | 'end' | 'both';
|
|
20
19
|
};
|
|
21
20
|
type PlankComplimentControlsProps = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlankControls.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/PlankControls.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkC,MAAM,OAAO,CAAC;AAIvD,OAAO,
|
|
1
|
+
{"version":3,"file":"PlankControls.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/PlankControls.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkC,MAAM,OAAO,CAAC;AAIvD,OAAO,EAGL,KAAK,gBAAgB,EAKtB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,MAAM,mBAAmB,GAAG,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,KAAK,IAAI,CAAC;AAE7E,MAAM,MAAM,iBAAiB,GAAG;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,GAAG;IACnE,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,OAAO,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACtC,KAAK,CAAC,EAAE,OAAO,GAAG,cAAc,GAAG,YAAY,CAAC;IAChD,YAAY,EAAE,iBAAiB,CAAC;IAChC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;CAChC,CAAC;AAoBF,KAAK,4BAA4B,GAAG;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,sBAAsB,qGAqBlC,CAAC;AAKF,eAAO,MAAM,aAAa,wGAyFzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlankError.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/PlankError.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAI/C,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAItE,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"PlankError.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/PlankError.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAI/C,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAItE,eAAO,MAAM,iBAAiB,cAAe;IAAE,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,sBAiB7D,CAAC;AAEF,eAAO,MAAM,UAAU,+BAKpB;IACD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAChC,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,sBAWA,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type Node } from '@dxos/plugin-graph';
|
|
3
3
|
import { type StackItemSigilAction } from '@dxos/react-ui-stack';
|
|
4
|
-
import { type ResolvedPart
|
|
4
|
+
import { type ResolvedPart } from '../../types';
|
|
5
5
|
export type PlankHeadingProps = {
|
|
6
6
|
id: string;
|
|
7
7
|
part: ResolvedPart;
|
|
8
|
-
layoutMode?: LayoutMode;
|
|
9
8
|
node?: Node;
|
|
10
9
|
deckEnabled?: boolean;
|
|
11
10
|
canIncrementStart?: boolean;
|
|
@@ -17,5 +16,5 @@ export type PlankHeadingProps = {
|
|
|
17
16
|
companions?: Node[];
|
|
18
17
|
actions?: StackItemSigilAction[];
|
|
19
18
|
};
|
|
20
|
-
export declare const PlankHeading: React.MemoExoticComponent<({ id, part, node, deckEnabled, canIncrementStart, canIncrementEnd, popoverAnchorId, primaryId, pending, companioned, companions,
|
|
19
|
+
export declare const PlankHeading: React.MemoExoticComponent<({ id, part, node, deckEnabled, canIncrementStart, canIncrementEnd, popoverAnchorId, primaryId, pending, companioned, companions, actions, }: PlankHeadingProps) => React.JSX.Element>;
|
|
21
20
|
//# sourceMappingURL=PlankHeading.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlankHeading.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/PlankHeading.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA2E,MAAM,OAAO,CAAC;AAGhG,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAa,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"PlankHeading.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/PlankHeading.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA2E,MAAM,OAAO,CAAC;AAGhG,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAa,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAM5E,OAAO,EAAoC,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAIlF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IACtC,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC;IACpB,OAAO,CAAC,EAAE,oBAAoB,EAAE,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,YAAY,0KAcpB,iBAAiB,uBA8JrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComplementarySidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/ComplementarySidebar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAQN,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ComplementarySidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/ComplementarySidebar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAQN,MAAM,OAAO,CAAC;AA+Cf,MAAM,MAAM,yBAAyB,GAAG;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,oBAAoB,gBAAiB,yBAAyB,sBAsG1E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAWvC,eAAO,MAAM,OAAO,yBAuBnB,CAAC"}
|
|
@@ -2,8 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { type IconButtonProps, type ThemedClassName } from '@dxos/react-ui';
|
|
3
3
|
export declare const ToggleSidebarButton: ({ classNames, variant, }: ThemedClassName<Pick<IconButtonProps, "variant">>) => React.JSX.Element;
|
|
4
4
|
export declare const CloseSidebarButton: () => React.JSX.Element;
|
|
5
|
-
export declare const ToggleComplementarySidebarButton: ({ inR0, classNames
|
|
5
|
+
export declare const ToggleComplementarySidebarButton: ({ inR0, classNames }: ThemedClassName<{
|
|
6
6
|
inR0?: boolean;
|
|
7
|
-
current?: string;
|
|
8
7
|
}>) => React.JSX.Element;
|
|
9
8
|
//# sourceMappingURL=SidebarButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarButton.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"SidebarButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAc,KAAK,eAAe,EAAE,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAKxG,eAAO,MAAM,mBAAmB,6BAG7B,eAAe,CAAC,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC,sBAgBnD,CAAC;AAEF,eAAO,MAAM,kBAAkB,yBAc9B,CAAC;AAEF,eAAO,MAAM,gCAAgC,yBAA0B,eAAe,CAAC;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,sBAkBzG,CAAC"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
export * from './useBreakpoints';
|
|
2
|
-
export * from './useCompanions';
|
|
3
|
-
export * from './useDeckCompanions';
|
|
4
|
-
export * from './useHoistStatusbar';
|
|
5
|
-
export * from './useMainSize';
|
|
6
1
|
export * from './useNodeActionExpander';
|
|
2
|
+
export * from './useMainSize';
|
|
7
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNodeActionExpander.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useNodeActionExpander.ts"],"names":[],"mappings":"AAMA,OAAO,
|
|
1
|
+
{"version":3,"file":"useNodeActionExpander.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useNodeActionExpander.ts"],"names":[],"mappings":"AAMA,OAAO,EAA4C,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAQzF,eAAO,MAAM,qBAAqB,UAAW,IAAI,SAShD,CAAC"}
|
|
@@ -2,5 +2,5 @@ export { DeckCapabilities } from './capabilities';
|
|
|
2
2
|
export { DeckEvents } from './events';
|
|
3
3
|
export * from './DeckPlugin';
|
|
4
4
|
export * from './meta';
|
|
5
|
-
export { useCompanions } from './
|
|
5
|
+
export { useCompanions } from './util';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/layout.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEpE,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/layout.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEpE,eAAO,MAAM,aAAa,YAAa,MAAM,YAAY,MAAM,WACS,CAAC;AAEzE,eAAO,MAAM,YAAY,YAAa,MAAM;;;CAG3C,CAAC;AAEF,KAAK,sBAAsB,GAAG;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,SAAS,SAAU,MAAM,EAAE,YAAY,MAAM,YAAY,sBAAsB,KAAG,MAAM,EAwCpG,CAAC;AAEF,eAAO,MAAM,UAAU,SAAU,MAAM,EAAE,WAAW,MAAM,KAAG,MAAM,EAOlE,CAAC;AAEF,eAAO,MAAM,cAAc,SAAU,MAAM,EAAE,cAAc,UAAU,CAAC,UAAU,KAAG,MAAM,EAmBxF,CAAC"}
|
|
@@ -37,8 +37,6 @@ declare const _default: {
|
|
|
37
37
|
'increment end label': string;
|
|
38
38
|
'show deck plank label': string;
|
|
39
39
|
'show solo plank label': string;
|
|
40
|
-
'exit fullscreen label': string;
|
|
41
|
-
'show fullscreen plank label': string;
|
|
42
40
|
'close label': string;
|
|
43
41
|
'minify label': string;
|
|
44
42
|
'open companion label': string;
|
|
@@ -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,wBA0DE"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { type DeepReadonly } from '@dxos/util';
|
|
1
|
+
import { S } from '@dxos/echo-schema';
|
|
3
2
|
export { ATTENDABLE_PATH_SEPARATOR } from '@dxos/react-ui-attention';
|
|
4
3
|
export declare const PLANK_COMPANION_TYPE = "dxos.org/plugin/deck/plank-companion";
|
|
5
4
|
export declare const DECK_COMPANION_TYPE = "dxos.org/plugin/deck/deck-companion";
|
|
@@ -9,144 +8,143 @@ export declare const OverscrollOptions: readonly ["none", "centering"];
|
|
|
9
8
|
export type Overscroll = (typeof OverscrollOptions)[number];
|
|
10
9
|
export type Part = 'solo' | 'deck' | 'complementary';
|
|
11
10
|
export type ResolvedPart = Part | 'solo-primary' | 'solo-companion';
|
|
12
|
-
export declare const DeckSettingsSchema:
|
|
13
|
-
showHints:
|
|
14
|
-
enableDeck:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
newPlankPositioning:
|
|
18
|
-
overscroll:
|
|
11
|
+
export declare const DeckSettingsSchema: S.mutable<S.Struct<{
|
|
12
|
+
showHints: S.optional<typeof S.Boolean>;
|
|
13
|
+
enableDeck: S.optional<typeof S.Boolean>;
|
|
14
|
+
enableNativeRedirect: S.optional<typeof S.Boolean>;
|
|
15
|
+
enableStatusbar: S.optional<typeof S.Boolean>;
|
|
16
|
+
newPlankPositioning: S.optional<S.Literal<["start", "end"]>>;
|
|
17
|
+
overscroll: S.optional<S.Literal<["none", "centering"]>>;
|
|
19
18
|
}>>;
|
|
20
|
-
export type DeckSettingsProps =
|
|
21
|
-
export declare const PlankSizing:
|
|
22
|
-
export type PlankSizing =
|
|
23
|
-
export declare const DeckState:
|
|
19
|
+
export type DeckSettingsProps = S.Schema.Type<typeof DeckSettingsSchema>;
|
|
20
|
+
export declare const PlankSizing: S.Record$<typeof S.String, typeof S.Number>;
|
|
21
|
+
export type PlankSizing = S.Schema.Type<typeof PlankSizing>;
|
|
22
|
+
export declare const DeckState: S.Struct<{
|
|
24
23
|
/** If false, the deck has not yet left solo mode and new planks should be soloed. */
|
|
25
|
-
initialized: typeof
|
|
26
|
-
active:
|
|
27
|
-
activeCompanions:
|
|
28
|
-
inactive:
|
|
29
|
-
solo:
|
|
30
|
-
fullscreen: typeof
|
|
31
|
-
plankSizing:
|
|
32
|
-
companionFrameSizing:
|
|
24
|
+
initialized: typeof S.Boolean;
|
|
25
|
+
active: S.mutable<S.Array$<typeof S.String>>;
|
|
26
|
+
activeCompanions: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.String>>>;
|
|
27
|
+
inactive: S.mutable<S.Array$<typeof S.String>>;
|
|
28
|
+
solo: S.optional<typeof S.String>;
|
|
29
|
+
fullscreen: typeof S.Boolean;
|
|
30
|
+
plankSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
|
|
31
|
+
companionFrameSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
|
|
33
32
|
}>;
|
|
34
|
-
export type DeckState =
|
|
33
|
+
export type DeckState = S.Schema.Type<typeof DeckState>;
|
|
35
34
|
export declare const defaultDeck: DeckState;
|
|
36
|
-
declare const LayoutMode:
|
|
37
|
-
export type LayoutMode =
|
|
35
|
+
declare const LayoutMode: S.Literal<["deck", "solo", "fullscreen"]>;
|
|
36
|
+
export type LayoutMode = S.Schema.Type<typeof LayoutMode>;
|
|
38
37
|
export declare const isLayoutMode: (value: any) => value is LayoutMode;
|
|
39
|
-
export declare const getMode: (deck: DeckState
|
|
40
|
-
export declare const DeckPluginState:
|
|
41
|
-
sidebarState:
|
|
42
|
-
complementarySidebarState:
|
|
43
|
-
complementarySidebarPanel:
|
|
44
|
-
dialogOpen: typeof
|
|
45
|
-
dialogBlockAlign: Schema.optional<Schema.Literal<["start", "center", "end"]>>;
|
|
46
|
-
dialogType: Schema.optional<Schema.Literal<["default", "alert"]>>;
|
|
38
|
+
export declare const getMode: (deck: DeckState) => LayoutMode;
|
|
39
|
+
export declare const DeckPluginState: S.mutable<S.Struct<{
|
|
40
|
+
sidebarState: S.Literal<["closed", "collapsed", "expanded"]>;
|
|
41
|
+
complementarySidebarState: S.Literal<["closed", "collapsed", "expanded"]>;
|
|
42
|
+
complementarySidebarPanel: S.optional<typeof S.String>;
|
|
43
|
+
dialogOpen: typeof S.Boolean;
|
|
47
44
|
/** Data to be passed to the dialog Surface. */
|
|
48
|
-
dialogContent:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
45
|
+
dialogContent: S.optional<typeof S.Any>;
|
|
46
|
+
dialogBlockAlign: S.optional<S.Literal<["start", "center", "end"]>>;
|
|
47
|
+
dialogType: S.optional<S.Literal<["default", "alert"]>>;
|
|
48
|
+
popoverOpen: typeof S.Boolean;
|
|
49
|
+
popoverSide: S.optional<S.Literal<["top", "right", "bottom", "left"]>>;
|
|
53
50
|
/** Data to be passed to the popover Surface. */
|
|
54
|
-
popoverContent:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
51
|
+
popoverContent: S.optional<typeof S.Any>;
|
|
52
|
+
popoverAnchorId: S.optional<typeof S.String>;
|
|
53
|
+
toasts: S.mutable<S.Array$<S.Struct<{
|
|
54
|
+
id: S.SchemaClass<string, string, never>;
|
|
55
|
+
title: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
56
|
+
ns: typeof S.String;
|
|
57
|
+
count: S.optional<typeof S.Number>;
|
|
60
58
|
}>>>>]>>;
|
|
61
|
-
description:
|
|
62
|
-
ns: typeof
|
|
63
|
-
count:
|
|
59
|
+
description: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
60
|
+
ns: typeof S.String;
|
|
61
|
+
count: S.optional<typeof S.Number>;
|
|
64
62
|
}>>>>]>>;
|
|
65
|
-
icon:
|
|
66
|
-
duration:
|
|
67
|
-
closeLabel:
|
|
68
|
-
ns: typeof
|
|
69
|
-
count:
|
|
63
|
+
icon: S.optional<S.SchemaClass<string, string, never>>;
|
|
64
|
+
duration: S.optional<S.SchemaClass<number, number, never>>;
|
|
65
|
+
closeLabel: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
66
|
+
ns: typeof S.String;
|
|
67
|
+
count: S.optional<typeof S.Number>;
|
|
70
68
|
}>>>>]>>;
|
|
71
|
-
actionLabel:
|
|
72
|
-
ns: typeof
|
|
73
|
-
count:
|
|
69
|
+
actionLabel: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
70
|
+
ns: typeof S.String;
|
|
71
|
+
count: S.optional<typeof S.Number>;
|
|
74
72
|
}>>>>]>>;
|
|
75
|
-
actionAlt:
|
|
76
|
-
ns: typeof
|
|
77
|
-
count:
|
|
73
|
+
actionAlt: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
74
|
+
ns: typeof S.String;
|
|
75
|
+
count: S.optional<typeof S.Number>;
|
|
78
76
|
}>>>>]>>;
|
|
79
|
-
onAction:
|
|
77
|
+
onAction: S.optional<S.SchemaClass<any, any, never>>;
|
|
80
78
|
}>>>;
|
|
81
|
-
currentUndoId:
|
|
82
|
-
activeDeck: typeof
|
|
83
|
-
previousDeck: typeof
|
|
84
|
-
decks:
|
|
79
|
+
currentUndoId: S.optional<typeof S.String>;
|
|
80
|
+
activeDeck: typeof S.String;
|
|
81
|
+
previousDeck: typeof S.String;
|
|
82
|
+
decks: S.mutable<S.Record$<typeof S.String, S.mutable<S.Struct<{
|
|
85
83
|
/** If false, the deck has not yet left solo mode and new planks should be soloed. */
|
|
86
|
-
initialized: typeof
|
|
87
|
-
active:
|
|
88
|
-
activeCompanions:
|
|
89
|
-
inactive:
|
|
90
|
-
solo:
|
|
91
|
-
fullscreen: typeof
|
|
92
|
-
plankSizing:
|
|
93
|
-
companionFrameSizing:
|
|
84
|
+
initialized: typeof S.Boolean;
|
|
85
|
+
active: S.mutable<S.Array$<typeof S.String>>;
|
|
86
|
+
activeCompanions: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.String>>>;
|
|
87
|
+
inactive: S.mutable<S.Array$<typeof S.String>>;
|
|
88
|
+
solo: S.optional<typeof S.String>;
|
|
89
|
+
fullscreen: typeof S.Boolean;
|
|
90
|
+
plankSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
|
|
91
|
+
companionFrameSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
|
|
94
92
|
}>>>>;
|
|
95
|
-
previousMode:
|
|
96
|
-
deck:
|
|
93
|
+
previousMode: S.mutable<S.Record$<typeof S.String, S.Literal<["deck", "solo", "fullscreen"]>>>;
|
|
94
|
+
deck: S.mutable<S.Struct<{
|
|
97
95
|
/** If false, the deck has not yet left solo mode and new planks should be soloed. */
|
|
98
|
-
initialized: typeof
|
|
99
|
-
active:
|
|
100
|
-
activeCompanions:
|
|
101
|
-
inactive:
|
|
102
|
-
solo:
|
|
103
|
-
fullscreen: typeof
|
|
104
|
-
plankSizing:
|
|
105
|
-
companionFrameSizing:
|
|
96
|
+
initialized: typeof S.Boolean;
|
|
97
|
+
active: S.mutable<S.Array$<typeof S.String>>;
|
|
98
|
+
activeCompanions: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.String>>>;
|
|
99
|
+
inactive: S.mutable<S.Array$<typeof S.String>>;
|
|
100
|
+
solo: S.optional<typeof S.String>;
|
|
101
|
+
fullscreen: typeof S.Boolean;
|
|
102
|
+
plankSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
|
|
103
|
+
companionFrameSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
|
|
106
104
|
}>>;
|
|
107
105
|
/** The identifier of a component to scroll into view when it is mounted. */
|
|
108
|
-
scrollIntoView:
|
|
106
|
+
scrollIntoView: S.optional<typeof S.String>;
|
|
109
107
|
}>>;
|
|
110
|
-
export type DeckPluginState =
|
|
108
|
+
export type DeckPluginState = S.Schema.Type<typeof DeckPluginState>;
|
|
111
109
|
export declare const DECK_ACTION: string;
|
|
112
110
|
export declare namespace DeckAction {
|
|
113
|
-
const PartAdjustmentSchema:
|
|
114
|
-
export type PartAdjustment =
|
|
115
|
-
export const Adjustment:
|
|
116
|
-
id: typeof
|
|
117
|
-
type:
|
|
111
|
+
const PartAdjustmentSchema: S.Union<[S.Literal<["close"]>, S.Literal<["companion"]>, S.Literal<["solo"]>, S.Literal<["increment-start"]>, S.Literal<["increment-end"]>]>;
|
|
112
|
+
export type PartAdjustment = S.Schema.Type<typeof PartAdjustmentSchema>;
|
|
113
|
+
export const Adjustment: S.mutable<S.Struct<{
|
|
114
|
+
id: typeof S.String;
|
|
115
|
+
type: S.Union<[S.Literal<["close"]>, S.Literal<["companion"]>, S.Literal<["solo"]>, S.Literal<["increment-start"]>, S.Literal<["increment-end"]>]>;
|
|
118
116
|
}>>;
|
|
119
|
-
export type Adjustment =
|
|
120
|
-
const Adjust_base:
|
|
121
|
-
readonly _tag:
|
|
117
|
+
export type Adjustment = S.Schema.Type<typeof Adjustment>;
|
|
118
|
+
const Adjust_base: S.TaggedClass<Adjust, `${string}/adjust`, {
|
|
119
|
+
readonly _tag: S.tag<`${string}/adjust`>;
|
|
122
120
|
} & {
|
|
123
|
-
input:
|
|
124
|
-
id: typeof
|
|
125
|
-
type:
|
|
121
|
+
input: S.mutable<S.Struct<{
|
|
122
|
+
id: typeof S.String;
|
|
123
|
+
type: S.Union<[S.Literal<["close"]>, S.Literal<["companion"]>, S.Literal<["solo"]>, S.Literal<["increment-start"]>, S.Literal<["increment-end"]>]>;
|
|
126
124
|
}>>;
|
|
127
|
-
output: typeof
|
|
125
|
+
output: typeof S.Void;
|
|
128
126
|
}>;
|
|
129
127
|
export class Adjust extends Adjust_base {
|
|
130
128
|
}
|
|
131
|
-
const UpdatePlankSize_base:
|
|
132
|
-
readonly _tag:
|
|
129
|
+
const UpdatePlankSize_base: S.TaggedClass<UpdatePlankSize, `${string}/update-plank-size`, {
|
|
130
|
+
readonly _tag: S.tag<`${string}/update-plank-size`>;
|
|
133
131
|
} & {
|
|
134
|
-
input:
|
|
135
|
-
id: typeof
|
|
136
|
-
size: typeof
|
|
132
|
+
input: S.Struct<{
|
|
133
|
+
id: typeof S.String;
|
|
134
|
+
size: typeof S.Number;
|
|
137
135
|
}>;
|
|
138
|
-
output: typeof
|
|
136
|
+
output: typeof S.Void;
|
|
139
137
|
}>;
|
|
140
138
|
export class UpdatePlankSize extends UpdatePlankSize_base {
|
|
141
139
|
}
|
|
142
|
-
const ChangeCompanion_base:
|
|
143
|
-
readonly _tag:
|
|
140
|
+
const ChangeCompanion_base: S.TaggedClass<ChangeCompanion, `${string}/change-companion`, {
|
|
141
|
+
readonly _tag: S.tag<`${string}/change-companion`>;
|
|
144
142
|
} & {
|
|
145
|
-
input:
|
|
146
|
-
primary: typeof
|
|
147
|
-
companion:
|
|
143
|
+
input: S.Struct<{
|
|
144
|
+
primary: typeof S.String;
|
|
145
|
+
companion: S.Union<[typeof S.String, typeof S.Null]>;
|
|
148
146
|
}>;
|
|
149
|
-
output: typeof
|
|
147
|
+
output: typeof S.Void;
|
|
150
148
|
}>;
|
|
151
149
|
export class ChangeCompanion extends ChangeCompanion_base {
|
|
152
150
|
}
|