@dxos/plugin-deck 0.7.5-main.9d2a38b → 0.7.5-main.e94eead
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-67VRUD5K.mjs → app-graph-builder-IYHAGFA3.mjs} +61 -31
- package/dist/lib/browser/app-graph-builder-IYHAGFA3.mjs.map +7 -0
- package/dist/lib/browser/{check-app-scheme-GEX6W2R5.mjs → check-app-scheme-S3EYUPMF.mjs} +3 -3
- package/dist/lib/browser/{check-app-scheme-GEX6W2R5.mjs.map → check-app-scheme-S3EYUPMF.mjs.map} +2 -2
- package/dist/lib/browser/{chunk-5VFDMW5M.mjs → chunk-22AQ5IVX.mjs} +2 -2
- package/dist/lib/browser/chunk-22AQ5IVX.mjs.map +7 -0
- package/dist/lib/browser/chunk-FT33W5CI.mjs +128 -0
- package/dist/lib/browser/chunk-FT33W5CI.mjs.map +7 -0
- package/dist/lib/browser/chunk-G2X3ZDCE.mjs +24 -0
- package/dist/lib/browser/chunk-G2X3ZDCE.mjs.map +7 -0
- package/dist/lib/browser/chunk-KANJBSIX.mjs +97 -0
- package/dist/lib/browser/chunk-KANJBSIX.mjs.map +7 -0
- package/dist/lib/browser/{chunk-JQJ5UWVB.mjs → chunk-N7TEPFVR.mjs} +3 -2
- package/dist/lib/browser/{chunk-JQJ5UWVB.mjs.map → chunk-N7TEPFVR.mjs.map} +3 -3
- package/dist/lib/browser/chunk-O4RFYYQ6.mjs +1114 -0
- package/dist/lib/browser/chunk-O4RFYYQ6.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +45 -78
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/intent-resolver-ZD67BRUI.mjs +488 -0
- package/dist/lib/browser/intent-resolver-ZD67BRUI.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-root-UL7ZDRVZ.mjs → react-root-6ILKHD5J.mjs} +12 -17
- package/dist/lib/browser/react-root-6ILKHD5J.mjs.map +7 -0
- package/dist/lib/browser/react-surface-O75FKXAI.mjs +39 -0
- package/dist/lib/browser/react-surface-O75FKXAI.mjs.map +7 -0
- package/dist/lib/browser/{settings-FNWW6WIJ.mjs → settings-H35U6NHE.mjs} +6 -7
- package/dist/lib/browser/settings-H35U6NHE.mjs.map +7 -0
- package/dist/lib/browser/state-U4SHOPJW.mjs +129 -0
- package/dist/lib/browser/state-U4SHOPJW.mjs.map +7 -0
- package/dist/lib/browser/tools-64LXGLYR.mjs +59 -0
- package/dist/lib/browser/tools-64LXGLYR.mjs.map +7 -0
- package/dist/lib/browser/types.mjs +16 -4
- package/dist/lib/browser/url-handler-MVHTKUYA.mjs +72 -0
- package/dist/lib/browser/url-handler-MVHTKUYA.mjs.map +7 -0
- package/dist/types/src/DeckPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts +181 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/capabilities.d.ts +137 -8
- package/dist/types/src/capabilities/capabilities.d.ts.map +1 -1
- package/dist/types/src/capabilities/check-app-scheme.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +188 -3
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-root.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings.d.ts.map +1 -0
- package/dist/types/src/capabilities/state.d.ts +79 -0
- package/dist/types/src/capabilities/state.d.ts.map +1 -0
- package/dist/types/src/capabilities/tools.d.ts +10 -0
- package/dist/types/src/capabilities/tools.d.ts.map +1 -0
- package/dist/types/src/capabilities/url-handler.d.ts.map +1 -0
- package/dist/types/src/components/DeckLayout/ActiveNode.d.ts +1 -2
- package/dist/types/src/components/DeckLayout/ActiveNode.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/Banner.d.ts +1 -2
- package/dist/types/src/components/DeckLayout/Banner.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/ComplementarySidebar.d.ts +1 -4
- package/dist/types/src/components/DeckLayout/ComplementarySidebar.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/ContentEmpty.d.ts +1 -2
- package/dist/types/src/components/DeckLayout/ContentEmpty.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/DeckLayout.d.ts +2 -7
- package/dist/types/src/components/DeckLayout/DeckLayout.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/Fallback.d.ts +1 -2
- package/dist/types/src/components/DeckLayout/Fallback.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/Fullscreen.d.ts +1 -2
- package/dist/types/src/components/DeckLayout/Fullscreen.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/NodePlankHeading.d.ts +3 -3
- package/dist/types/src/components/DeckLayout/NodePlankHeading.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/Plank.d.ts +8 -6
- package/dist/types/src/components/DeckLayout/Plank.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/PlankControls.d.ts +2 -2
- package/dist/types/src/components/DeckLayout/PlankControls.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/PlankError.d.ts +6 -6
- package/dist/types/src/components/DeckLayout/PlankError.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/PlankLoading.d.ts +1 -2
- package/dist/types/src/components/DeckLayout/PlankLoading.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/Sidebar.d.ts +1 -2
- package/dist/types/src/components/DeckLayout/Sidebar.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/SidebarButton.d.ts +6 -5
- package/dist/types/src/components/DeckLayout/SidebarButton.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/StatusBar.d.ts +1 -2
- package/dist/types/src/components/DeckLayout/StatusBar.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/Toast.d.ts +2 -3
- package/dist/types/src/components/DeckLayout/Toast.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/Topbar.d.ts +1 -2
- package/dist/types/src/components/DeckLayout/Topbar.d.ts.map +1 -1
- package/dist/types/src/components/LayoutSettings.d.ts +1 -2
- package/dist/types/src/components/LayoutSettings.d.ts.map +1 -1
- package/dist/types/src/components/fragments.d.ts +2 -0
- package/dist/types/src/components/fragments.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +0 -2
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/events.d.ts +1 -0
- package/dist/types/src/events.d.ts.map +1 -1
- package/dist/types/src/hooks/useMainSize.d.ts +2 -2
- package/dist/types/src/hooks/useNode.d.ts.map +1 -1
- package/dist/types/src/layout.d.ts +5 -19
- package/dist/types/src/layout.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +1 -0
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +3 -3
- package/dist/types/src/types.d.ts +117 -2
- package/dist/types/src/types.d.ts.map +1 -1
- package/dist/types/src/util/index.d.ts +3 -1
- package/dist/types/src/util/index.d.ts.map +1 -1
- package/dist/types/src/util/layoutAppliesTopbar.d.ts +2 -0
- package/dist/types/src/util/layoutAppliesTopbar.d.ts.map +1 -0
- package/dist/types/src/util/set-active.d.ts +9 -0
- package/dist/types/src/util/set-active.d.ts.map +1 -0
- package/dist/types/src/util/useHoistStatusbar.d.ts.map +1 -1
- package/package.json +32 -31
- package/src/DeckPlugin.ts +23 -59
- package/src/capabilities/{layout/app-graph-builder.ts → app-graph-builder.ts} +40 -28
- package/src/capabilities/capabilities.ts +5 -7
- package/src/capabilities/{navigation/check-app-scheme.ts → check-app-scheme.ts} +2 -2
- package/src/capabilities/index.ts +12 -3
- package/src/capabilities/intent-resolver.ts +368 -0
- package/src/capabilities/{layout/react-root.tsx → react-root.tsx} +8 -14
- package/src/capabilities/react-surface.tsx +31 -0
- package/src/capabilities/{settings/settings.ts → settings.ts} +4 -5
- package/src/capabilities/state.ts +108 -0
- package/src/capabilities/tools.ts +66 -0
- package/src/capabilities/url-handler.ts +65 -0
- package/src/components/DeckLayout/ActiveNode.tsx +2 -3
- package/src/components/DeckLayout/ComplementarySidebar.tsx +185 -77
- package/src/components/DeckLayout/ContentEmpty.tsx +7 -10
- package/src/components/DeckLayout/DeckLayout.tsx +141 -84
- package/src/components/DeckLayout/Fullscreen.tsx +2 -3
- package/src/components/DeckLayout/NodePlankHeading.tsx +57 -65
- package/src/components/DeckLayout/Plank.tsx +33 -41
- package/src/components/DeckLayout/PlankControls.tsx +12 -11
- package/src/components/DeckLayout/PlankError.tsx +6 -5
- package/src/components/DeckLayout/Sidebar.tsx +17 -20
- package/src/components/DeckLayout/SidebarButton.tsx +25 -31
- package/src/components/DeckLayout/StatusBar.tsx +5 -11
- package/src/components/DeckLayout/Toast.tsx +2 -2
- package/src/components/LayoutSettings.tsx +8 -8
- package/src/components/fragments.ts +8 -0
- package/src/components/index.ts +0 -2
- package/src/events.ts +1 -0
- package/src/hooks/useMainSize.ts +3 -3
- package/src/hooks/useNode.ts +3 -1
- package/src/layout.ts +43 -212
- package/src/meta.ts +1 -0
- package/src/translations.ts +8 -8
- package/src/types.ts +103 -4
- package/src/util/index.ts +3 -1
- package/src/util/layoutAppliesTopbar.ts +7 -0
- package/src/util/set-active.ts +47 -0
- package/src/util/useHoistStatusbar.ts +13 -8
- package/dist/lib/browser/app-graph-builder-67VRUD5K.mjs.map +0 -7
- package/dist/lib/browser/chunk-2M4PXYNB.mjs +0 -1052
- package/dist/lib/browser/chunk-2M4PXYNB.mjs.map +0 -7
- package/dist/lib/browser/chunk-2PJNBVCY.mjs +0 -39
- package/dist/lib/browser/chunk-2PJNBVCY.mjs.map +0 -7
- package/dist/lib/browser/chunk-4C2AFTET.mjs +0 -186
- package/dist/lib/browser/chunk-4C2AFTET.mjs.map +0 -7
- package/dist/lib/browser/chunk-5VFDMW5M.mjs.map +0 -7
- package/dist/lib/browser/chunk-KY5WXIXY.mjs +0 -44
- package/dist/lib/browser/chunk-KY5WXIXY.mjs.map +0 -7
- package/dist/lib/browser/deck-PLCSKPGL.mjs +0 -26
- package/dist/lib/browser/deck-PLCSKPGL.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-FVOQSTBX.mjs +0 -152
- package/dist/lib/browser/intent-resolver-FVOQSTBX.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-K7GW4A2I.mjs +0 -249
- package/dist/lib/browser/intent-resolver-K7GW4A2I.mjs.map +0 -7
- package/dist/lib/browser/location-QHRBQBQN.mjs +0 -35
- package/dist/lib/browser/location-QHRBQBQN.mjs.map +0 -7
- package/dist/lib/browser/react-context-3BDW7W2N.mjs +0 -32
- package/dist/lib/browser/react-context-3BDW7W2N.mjs.map +0 -7
- package/dist/lib/browser/react-root-UL7ZDRVZ.mjs.map +0 -7
- package/dist/lib/browser/react-surface-VPNOGGNN.mjs +0 -28
- package/dist/lib/browser/react-surface-VPNOGGNN.mjs.map +0 -7
- package/dist/lib/browser/settings-FNWW6WIJ.mjs.map +0 -7
- package/dist/lib/browser/state-7I5BD7SE.mjs +0 -34
- package/dist/lib/browser/state-7I5BD7SE.mjs.map +0 -7
- package/dist/lib/browser/url-handler-Z5B7LD3N.mjs +0 -76
- package/dist/lib/browser/url-handler-Z5B7LD3N.mjs.map +0 -7
- package/dist/types/src/capabilities/layout/app-graph-builder.d.ts +0 -181
- package/dist/types/src/capabilities/layout/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/layout/deck.d.ts +0 -4
- package/dist/types/src/capabilities/layout/deck.d.ts.map +0 -1
- package/dist/types/src/capabilities/layout/index.d.ts +0 -229
- package/dist/types/src/capabilities/layout/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/layout/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/layout/react-context.d.ts +0 -8
- package/dist/types/src/capabilities/layout/react-context.d.ts.map +0 -1
- package/dist/types/src/capabilities/layout/react-root.d.ts.map +0 -1
- package/dist/types/src/capabilities/layout/state.d.ts +0 -42
- package/dist/types/src/capabilities/layout/state.d.ts.map +0 -1
- package/dist/types/src/capabilities/navigation/check-app-scheme.d.ts.map +0 -1
- package/dist/types/src/capabilities/navigation/index.d.ts +0 -5
- package/dist/types/src/capabilities/navigation/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/navigation/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/navigation/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/navigation/location.d.ts +0 -4
- package/dist/types/src/capabilities/navigation/location.d.ts.map +0 -1
- package/dist/types/src/capabilities/navigation/set-location.d.ts +0 -10
- package/dist/types/src/capabilities/navigation/set-location.d.ts.map +0 -1
- package/dist/types/src/capabilities/navigation/url-handler.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings/index.d.ts +0 -3
- package/dist/types/src/capabilities/settings/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings/settings.d.ts.map +0 -1
- package/dist/types/src/components/DeckContext.d.ts +0 -11
- package/dist/types/src/components/DeckContext.d.ts.map +0 -1
- package/dist/types/src/components/LayoutContext.d.ts +0 -5
- package/dist/types/src/components/LayoutContext.d.ts.map +0 -1
- package/dist/types/src/layout.test.d.ts +0 -2
- package/dist/types/src/layout.test.d.ts.map +0 -1
- package/dist/types/src/util/layout-parts.d.ts +0 -7
- package/dist/types/src/util/layout-parts.d.ts.map +0 -1
- package/src/capabilities/layout/deck.ts +0 -25
- package/src/capabilities/layout/index.ts +0 -12
- package/src/capabilities/layout/intent-resolver.ts +0 -128
- package/src/capabilities/layout/react-context.tsx +0 -26
- package/src/capabilities/layout/state.ts +0 -32
- package/src/capabilities/navigation/index.ts +0 -10
- package/src/capabilities/navigation/intent-resolver.ts +0 -216
- package/src/capabilities/navigation/location.ts +0 -28
- package/src/capabilities/navigation/set-location.ts +0 -38
- package/src/capabilities/navigation/url-handler.ts +0 -67
- package/src/capabilities/settings/index.ts +0 -8
- package/src/capabilities/settings/react-surface.tsx +0 -23
- package/src/components/DeckContext.ts +0 -19
- package/src/components/LayoutContext.ts +0 -12
- package/src/layout.test.ts +0 -380
- package/src/util/layout-parts.ts +0 -12
- /package/dist/types/src/capabilities/{navigation/check-app-scheme.d.ts → check-app-scheme.d.ts} +0 -0
- /package/dist/types/src/capabilities/{layout/intent-resolver.d.ts → intent-resolver.d.ts} +0 -0
- /package/dist/types/src/capabilities/{layout/react-root.d.ts → react-root.d.ts} +0 -0
- /package/dist/types/src/capabilities/{settings/react-surface.d.ts → react-surface.d.ts} +0 -0
- /package/dist/types/src/capabilities/{settings/settings.d.ts → settings.d.ts} +0 -0
- /package/dist/types/src/capabilities/{navigation/url-handler.d.ts → url-handler.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plank.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Plank.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkF,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Plank.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Plank.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkF,MAAM,OAAO,CAAC;AAevG,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAKlF,OAAO,EAAc,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAI1D,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,qBAAqB,CAAC,MAAM,CAAC,CAAC;IACpC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,KAAK,4EAAqE,UAAU,6CA+G/F,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type PartAdjustment } from '@dxos/app-framework';
|
|
3
2
|
import { type ButtonGroupProps } from '@dxos/react-ui';
|
|
4
|
-
|
|
3
|
+
import { type DeckAction } from '../../types';
|
|
4
|
+
export type PlankControlHandler = (event: DeckAction.PartAdjustment) => void;
|
|
5
5
|
export type PlankCapabilities = {
|
|
6
6
|
incrementStart?: boolean;
|
|
7
7
|
incrementEnd?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlankControls.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/PlankControls.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,
|
|
1
|
+
{"version":3,"file":"PlankControls.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/PlankControls.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAGL,KAAK,gBAAgB,EAKtB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,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;CAChB,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;AAqBF,eAAO,MAAM,aAAa,wGA4EzB,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type LayoutCoordinate } from '@dxos/app-framework';
|
|
3
1
|
import { type Node } from '@dxos/plugin-graph';
|
|
2
|
+
import { type NodePlankHeadingProps } from './NodePlankHeading';
|
|
4
3
|
export declare const PlankContentError: ({ error }: {
|
|
5
4
|
error?: Error;
|
|
6
|
-
}) =>
|
|
7
|
-
export declare const PlankError: ({
|
|
8
|
-
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const PlankError: ({ id, part, node, error, }: {
|
|
7
|
+
id: string;
|
|
8
|
+
part: NodePlankHeadingProps["part"];
|
|
9
9
|
node?: Node;
|
|
10
10
|
error?: Error;
|
|
11
|
-
}) =>
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
//# sourceMappingURL=PlankError.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlankError.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/PlankError.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PlankError.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/PlankError.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAI/C,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAIlF,eAAO,MAAM,iBAAiB,cAAe;IAAE,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,4CAiB7D,CAAC;AAEF,eAAO,MAAM,UAAU,+BAKpB;IACD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,qBAAqB,CAAC,MAAM,CAAC,CAAC;IACpC,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,4CAWA,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlankLoading.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/PlankLoading.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PlankLoading.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/PlankLoading.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,YAAY,+CAExB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Sidebar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Sidebar.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,OAAO,+CAsBnB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const ToggleSidebarButton: () =>
|
|
3
|
-
export declare const CloseSidebarButton: () =>
|
|
4
|
-
export declare const ToggleComplementarySidebarButton: (
|
|
5
|
-
|
|
1
|
+
import { type IconButtonProps, type ThemedClassName } from '@dxos/react-ui';
|
|
2
|
+
export declare const ToggleSidebarButton: ({ classNames, variant, }: ThemedClassName<Pick<IconButtonProps, "variant">>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const CloseSidebarButton: () => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const ToggleComplementarySidebarButton: ({ inR0, classNames }: ThemedClassName<{
|
|
5
|
+
inR0?: boolean;
|
|
6
|
+
}>) => import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
//# sourceMappingURL=SidebarButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/SidebarButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/SidebarButton.tsx"],"names":[],"mappings":"AAOA,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,4CAgBnD,CAAC;AAEF,eAAO,MAAM,kBAAkB,+CAc9B,CAAC;AAEF,eAAO,MAAM,gCAAgC,yBAA0B,eAAe,CAAC;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,4CAkBzG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusBar.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/StatusBar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StatusBar.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/StatusBar.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS,kBAAmB;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,4CAY/D,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { Toast as ToastProps } from '@dxos/app-framework';
|
|
1
|
+
import { type LayoutAction } from '@dxos/app-framework';
|
|
3
2
|
import { type ToastRootProps } from '@dxos/react-ui';
|
|
4
|
-
export declare const Toast: ({ id, title, description, icon, duration, actionLabel, actionAlt, closeLabel, onAction, onOpenChange, }:
|
|
3
|
+
export declare const Toast: ({ id, title, description, icon, duration, actionLabel, actionAlt, closeLabel, onAction, onOpenChange, }: LayoutAction.Toast & Pick<ToastRootProps, "onOpenChange">) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
//# sourceMappingURL=Toast.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Toast.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Toast.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAML,KAAK,cAAc,EACpB,MAAM,gBAAgB,CAAC;AAKxB,eAAO,MAAM,KAAK,4GAWf,YAAY,CAAC,KAAK,GAAG,IAAI,CAAC,cAAc,EAAE,cAAc,CAAC,4CA8B3D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Topbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Topbar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Topbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Topbar.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,MAAM,+CAElB,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { type DeckSettingsProps } from '../types';
|
|
3
2
|
export declare const LayoutSettings: ({ settings }: {
|
|
4
3
|
settings: DeckSettingsProps;
|
|
5
|
-
}) =>
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
//# sourceMappingURL=LayoutSettings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutSettings.d.ts","sourceRoot":"","sources":["../../../../src/components/LayoutSettings.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LayoutSettings.d.ts","sourceRoot":"","sources":["../../../../src/components/LayoutSettings.tsx"],"names":[],"mappings":"AAUA,OAAO,EAGL,KAAK,iBAAiB,EAGvB,MAAM,UAAU,CAAC;AAIlB,eAAO,MAAM,cAAc,iBAAkB;IAAE,QAAQ,EAAE,iBAAiB,CAAA;CAAE,4CA8D3E,CAAC"}
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export declare const soloInlinePadding = "pis-[calc(env(safe-area-inset-left)+.25rem)] pie-[calc(env(safe-area-inset-left)+.25rem)]";
|
|
2
|
+
export declare const fixedSidebarToggleStyles: string;
|
|
3
|
+
export declare const fixedComplementarySidebarToggleStyles: string;
|
|
2
4
|
//# sourceMappingURL=fragments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fragments.d.ts","sourceRoot":"","sources":["../../../../src/components/fragments.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fragments.d.ts","sourceRoot":"","sources":["../../../../src/components/fragments.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,iBAAiB,8FAC+D,CAAC;AAI9F,eAAO,MAAM,wBAAwB,QAA4C,CAAC;AAElF,eAAO,MAAM,qCAAqC,QAA0C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/events.ts"],"names":[],"mappings":"AAQA,yBAAiB,UAAU,CAAC;IACnB,MAAM,UAAU,+CAAwD,CAAC;CACjF"}
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/events.ts"],"names":[],"mappings":"AAQA,yBAAiB,UAAU,CAAC;IACnB,MAAM,wBAAwB,+CAAuE,CAAC;IACtG,MAAM,UAAU,+CAAwD,CAAC;CACjF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const useMainSize: () => {
|
|
2
|
-
'data-sidebar-inline-start-state':
|
|
3
|
-
'data-sidebar-inline-end-state':
|
|
2
|
+
'data-sidebar-inline-start-state': import("@dxos/react-ui").SidebarState;
|
|
3
|
+
'data-sidebar-inline-end-state': import("@dxos/react-ui").SidebarState;
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=useMainSize.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useNode.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE3D;;;;;;;GAOG;AAEH,eAAO,MAAM,OAAO,GAAI,CAAC,eAAe,KAAK,OAAO,MAAM,YAAY,MAAM,KAAG,IAAI,CAAC,CAAC,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"useNode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useNode.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE3D;;;;;;;GAOG;AAEH,eAAO,MAAM,OAAO,GAAI,CAAC,eAAe,KAAK,OAAO,MAAM,YAAY,MAAM,KAAG,IAAI,CAAC,CAAC,CAAC,GAAG,SA4BxF,CAAC"}
|
|
@@ -1,25 +1,11 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type NewPlankPositioning } from './types';
|
|
1
|
+
import { type DeckAction, type NewPlankPositioning } from './types';
|
|
3
2
|
type OpenLayoutEntryOptions = {
|
|
3
|
+
key?: string;
|
|
4
4
|
positioning?: NewPlankPositioning;
|
|
5
5
|
pivotId?: string;
|
|
6
6
|
};
|
|
7
|
-
export declare const openEntry: (
|
|
8
|
-
export declare const closeEntry: (
|
|
9
|
-
export declare const incrementPlank: (
|
|
10
|
-
export declare const removePart: (layout: LayoutParts, part: LayoutPart) => LayoutParts;
|
|
11
|
-
export declare const mergeLayoutParts: (...layoutParts: LayoutParts[]) => LayoutParts;
|
|
12
|
-
export declare const uriToSoloPart: (uri: string) => LayoutParts | undefined;
|
|
13
|
-
export declare const soloPartToUri: (layout: LayoutParts) => string;
|
|
14
|
-
/**
|
|
15
|
-
* Converts a URI string into a LayoutParts object.
|
|
16
|
-
* @deprecated Keeping these as a reference for now. We should remove these once we're sure we don't need them.
|
|
17
|
-
*/
|
|
18
|
-
export declare const uriToActiveParts: (uri: string) => LayoutParts;
|
|
19
|
-
/**
|
|
20
|
-
* Converts a LayoutParts object into a URI string.
|
|
21
|
-
* @deprecated Keeping these as a reference for now. We should remove these once we're sure we don't need them.
|
|
22
|
-
*/
|
|
23
|
-
export declare const activePartsToUri: (activeParts: LayoutParts) => string;
|
|
7
|
+
export declare const openEntry: (deck: string[], entryId: string, options?: OpenLayoutEntryOptions) => string[];
|
|
8
|
+
export declare const closeEntry: (deck: string[], entryId: string) => string[];
|
|
9
|
+
export declare const incrementPlank: (deck: string[], adjustment: DeckAction.Adjustment) => string[];
|
|
24
10
|
export {};
|
|
25
11
|
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/layout.ts"],"names":[],"mappings":"AAMA,OAAO,
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/layout.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEpE,KAAK,sBAAsB,GAAG;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpG,eAAO,MAAM,SAAS,SAAU,MAAM,EAAE,WAAW,MAAM,YAAY,sBAAsB,KAAG,MAAM,EAsCnG,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"}
|
package/dist/types/src/meta.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW,EAAG,sBAA+B,CAAC;AAE3D,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW,EAAG,sBAA+B,CAAC;AAE3D,eAAO,MAAM,IAAI;;;;CAIK,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
'en-US': {
|
|
3
3
|
"dxos.org/plugin/deck": {
|
|
4
|
+
'plugin name': string;
|
|
4
5
|
'main header label': string;
|
|
5
6
|
'open navigation sidebar label': string;
|
|
6
|
-
'
|
|
7
|
+
'collapse navigation sidebar label': string;
|
|
7
8
|
'open complementary sidebar label': string;
|
|
8
9
|
'close complementary sidebar label': string;
|
|
9
10
|
'plugin error message': string;
|
|
@@ -12,7 +13,6 @@ declare const _default: {
|
|
|
12
13
|
'toggle fullscreen label': string;
|
|
13
14
|
'settings show hints label': string;
|
|
14
15
|
'settings native redirect label': string;
|
|
15
|
-
'settings custom slots': string;
|
|
16
16
|
'settings new plank position start label': string;
|
|
17
17
|
'settings new plank position end label': string;
|
|
18
18
|
'select new plank positioning placeholder': string;
|
|
@@ -41,7 +41,7 @@ declare const _default: {
|
|
|
41
41
|
'select overscroll placeholder': string;
|
|
42
42
|
'settings overscroll centering label': string;
|
|
43
43
|
'settings overscroll none label': string;
|
|
44
|
-
'settings
|
|
44
|
+
'settings enable ide-style statusbar label': string;
|
|
45
45
|
'close current label': string;
|
|
46
46
|
'close others label': string;
|
|
47
47
|
'close all label': string;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { S } from '@dxos/echo-schema';
|
|
2
|
+
import { type Node } from '@dxos/plugin-graph';
|
|
2
3
|
import { type Label } from '@dxos/react-ui';
|
|
4
|
+
import { type Position } from '@dxos/util';
|
|
3
5
|
export declare const NewPlankPositions: readonly ["start", "end"];
|
|
4
6
|
export type NewPlankPositioning = (typeof NewPlankPositions)[number];
|
|
5
7
|
export declare const OverscrollOptions: readonly ["none", "centering"];
|
|
@@ -8,18 +10,130 @@ export type Panel = {
|
|
|
8
10
|
id: string;
|
|
9
11
|
label: Label;
|
|
10
12
|
icon: string;
|
|
13
|
+
position?: Position;
|
|
14
|
+
/**
|
|
15
|
+
* If true, the panel will now be wrapped in a scroll area.
|
|
16
|
+
*/
|
|
17
|
+
fixed?: boolean;
|
|
18
|
+
filter?: (node: Node) => boolean;
|
|
11
19
|
};
|
|
12
20
|
export declare const DeckSettingsSchema: S.mutable<S.Struct<{
|
|
13
21
|
showHints: typeof S.Boolean;
|
|
14
|
-
customSlots: typeof S.Boolean;
|
|
15
|
-
flatDeck: typeof S.Boolean;
|
|
16
22
|
enableNativeRedirect: typeof S.Boolean;
|
|
23
|
+
enableIdeStyleStatusbar: typeof S.Boolean;
|
|
17
24
|
newPlankPositioning: S.Literal<["start", "end"]>;
|
|
18
25
|
overscroll: S.Literal<["none", "centering"]>;
|
|
19
26
|
}>>;
|
|
20
27
|
export type DeckSettingsProps = S.Schema.Type<typeof DeckSettingsSchema>;
|
|
28
|
+
declare const LayoutMode: S.Union<[S.Literal<["deck"]>, S.Literal<["solo"]>, S.Literal<["fullscreen"]>]>;
|
|
29
|
+
export declare const isLayoutMode: (value: any) => value is LayoutMode;
|
|
30
|
+
export type LayoutMode = S.Schema.Type<typeof LayoutMode>;
|
|
31
|
+
export declare const PlankSizing: S.Record$<typeof S.String, typeof S.Number>;
|
|
32
|
+
export type PlankSizing = S.Schema.Type<typeof PlankSizing>;
|
|
33
|
+
export declare const Deck: S.Struct<{
|
|
34
|
+
initialized: S.SchemaClass<boolean, boolean, never>;
|
|
35
|
+
active: S.mutable<S.Array$<typeof S.String>>;
|
|
36
|
+
inactive: S.mutable<S.Array$<typeof S.String>>;
|
|
37
|
+
solo: S.optional<typeof S.String>;
|
|
38
|
+
fullscreen: typeof S.Boolean;
|
|
39
|
+
plankSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
|
|
40
|
+
}>;
|
|
41
|
+
export type Deck = S.Schema.Type<typeof Deck>;
|
|
42
|
+
export declare const DeckState: S.mutable<S.Struct<{
|
|
43
|
+
sidebarState: S.Literal<["closed", "collapsed", "expanded"]>;
|
|
44
|
+
complementarySidebarState: S.Literal<["closed", "collapsed", "expanded"]>;
|
|
45
|
+
complementarySidebarPanel: S.optional<typeof S.String>;
|
|
46
|
+
dialogOpen: typeof S.Boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Data to be passed to the dialog Surface.
|
|
49
|
+
*/
|
|
50
|
+
dialogContent: S.optional<typeof S.Any>;
|
|
51
|
+
dialogBlockAlign: S.optional<S.Literal<["start", "center", "end"]>>;
|
|
52
|
+
dialogType: S.optional<S.Literal<["default", "alert"]>>;
|
|
53
|
+
popoverOpen: typeof S.Boolean;
|
|
54
|
+
popoverSide: S.optional<S.Literal<["top", "right", "bottom", "left"]>>;
|
|
55
|
+
/**
|
|
56
|
+
* Data to be passed to the popover Surface.
|
|
57
|
+
*/
|
|
58
|
+
popoverContent: S.optional<typeof S.Any>;
|
|
59
|
+
popoverAnchorId: S.optional<typeof S.String>;
|
|
60
|
+
toasts: S.mutable<S.Array$<S.Struct<{
|
|
61
|
+
id: S.SchemaClass<string, string, never>;
|
|
62
|
+
title: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple<[typeof S.String, S.mutable<S.Struct<{
|
|
63
|
+
ns: typeof S.String;
|
|
64
|
+
count: S.optional<typeof S.Number>;
|
|
65
|
+
}>>]>>]>>;
|
|
66
|
+
description: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple<[typeof S.String, S.mutable<S.Struct<{
|
|
67
|
+
ns: typeof S.String;
|
|
68
|
+
count: S.optional<typeof S.Number>;
|
|
69
|
+
}>>]>>]>>;
|
|
70
|
+
icon: S.optional<S.SchemaClass<string, string, never>>;
|
|
71
|
+
duration: S.optional<S.SchemaClass<number, number, never>>;
|
|
72
|
+
closeLabel: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple<[typeof S.String, S.mutable<S.Struct<{
|
|
73
|
+
ns: typeof S.String;
|
|
74
|
+
count: S.optional<typeof S.Number>;
|
|
75
|
+
}>>]>>]>>;
|
|
76
|
+
actionLabel: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple<[typeof S.String, S.mutable<S.Struct<{
|
|
77
|
+
ns: typeof S.String;
|
|
78
|
+
count: S.optional<typeof S.Number>;
|
|
79
|
+
}>>]>>]>>;
|
|
80
|
+
actionAlt: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple<[typeof S.String, S.mutable<S.Struct<{
|
|
81
|
+
ns: typeof S.String;
|
|
82
|
+
count: S.optional<typeof S.Number>;
|
|
83
|
+
}>>]>>]>>;
|
|
84
|
+
onAction: S.optional<S.SchemaClass<any, any, never>>;
|
|
85
|
+
}>>>;
|
|
86
|
+
currentUndoId: S.optional<typeof S.String>;
|
|
87
|
+
activeDeck: typeof S.String;
|
|
88
|
+
previousDeck: typeof S.String;
|
|
89
|
+
decks: S.mutable<S.Record$<typeof S.String, S.mutable<S.Struct<{
|
|
90
|
+
initialized: S.SchemaClass<boolean, boolean, never>;
|
|
91
|
+
active: S.mutable<S.Array$<typeof S.String>>;
|
|
92
|
+
inactive: S.mutable<S.Array$<typeof S.String>>;
|
|
93
|
+
solo: S.optional<typeof S.String>;
|
|
94
|
+
fullscreen: typeof S.Boolean;
|
|
95
|
+
plankSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
|
|
96
|
+
}>>>>;
|
|
97
|
+
previousMode: S.mutable<S.Record$<typeof S.String, S.Union<[S.Literal<["deck"]>, S.Literal<["solo"]>, S.Literal<["fullscreen"]>]>>>;
|
|
98
|
+
deck: S.mutable<S.Struct<{
|
|
99
|
+
initialized: S.SchemaClass<boolean, boolean, never>;
|
|
100
|
+
active: S.mutable<S.Array$<typeof S.String>>;
|
|
101
|
+
inactive: S.mutable<S.Array$<typeof S.String>>;
|
|
102
|
+
solo: S.optional<typeof S.String>;
|
|
103
|
+
fullscreen: typeof S.Boolean;
|
|
104
|
+
plankSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
|
|
105
|
+
}>>;
|
|
106
|
+
/**
|
|
107
|
+
* The identifier of a component to scroll into view when it is mounted.
|
|
108
|
+
*/
|
|
109
|
+
scrollIntoView: S.optional<typeof S.String>;
|
|
110
|
+
}>>;
|
|
111
|
+
export type DeckState = S.Schema.Type<typeof DeckState>;
|
|
112
|
+
export declare const getMode: (deck: Deck) => LayoutMode;
|
|
113
|
+
export declare const SLUG_PATH_SEPARATOR = "~";
|
|
21
114
|
export declare const DECK_ACTION: string;
|
|
22
115
|
export declare namespace DeckAction {
|
|
116
|
+
const PartAdjustmentSchema: S.Union<[S.Literal<["close"]>, S.Literal<["solo"]>, S.Literal<["increment-start"]>, S.Literal<["increment-end"]>]>;
|
|
117
|
+
export type PartAdjustment = S.Schema.Type<typeof PartAdjustmentSchema>;
|
|
118
|
+
export const Adjustment: S.mutable<S.Struct<{
|
|
119
|
+
id: typeof S.String;
|
|
120
|
+
type: S.Union<[S.Literal<["close"]>, S.Literal<["solo"]>, S.Literal<["increment-start"]>, S.Literal<["increment-end"]>]>;
|
|
121
|
+
}>>;
|
|
122
|
+
export type Adjustment = S.Schema.Type<typeof Adjustment>;
|
|
123
|
+
const Adjust_base: S.TaggedClass<Adjust, `${string}/adjust`, {
|
|
124
|
+
readonly _tag: S.tag<`${string}/adjust`>;
|
|
125
|
+
} & {
|
|
126
|
+
input: S.mutable<S.Struct<{
|
|
127
|
+
id: typeof S.String;
|
|
128
|
+
type: S.Union<[S.Literal<["close"]>, S.Literal<["solo"]>, S.Literal<["increment-start"]>, S.Literal<["increment-end"]>]>;
|
|
129
|
+
}>>;
|
|
130
|
+
output: typeof S.Void;
|
|
131
|
+
}>;
|
|
132
|
+
/**
|
|
133
|
+
* An atomic transaction to apply to the deck, describing which element to move to which location.
|
|
134
|
+
*/
|
|
135
|
+
export class Adjust extends Adjust_base {
|
|
136
|
+
}
|
|
23
137
|
const UpdatePlankSize_base: S.TaggedClass<UpdatePlankSize, `${string}/update-plank-size`, {
|
|
24
138
|
readonly _tag: S.tag<`${string}/update-plank-size`>;
|
|
25
139
|
} & {
|
|
@@ -33,4 +147,5 @@ export declare namespace DeckAction {
|
|
|
33
147
|
}
|
|
34
148
|
export {};
|
|
35
149
|
}
|
|
150
|
+
export {};
|
|
36
151
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAK3C,eAAO,MAAM,iBAAiB,2BAA4B,CAAC;AAC3D,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAErE,eAAO,MAAM,iBAAiB,gCAAiC,CAAC;AAChE,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5D,MAAM,MAAM,KAAK,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;GAQ9B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEzE,QAAA,MAAM,UAAU,gFAAyE,CAAC;AAC1F,eAAO,MAAM,YAAY,UAAW,GAAG,KAAG,KAAK,IAAI,UAAqC,CAAC;AACzF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;AAE1D,eAAO,MAAM,WAAW,6CAA+C,CAAC;AACxE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;AAE5D,eAAO,MAAM,IAAI;;;;;;;EASf,CAAC;AACH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC;AAE9C,eAAO,MAAM,SAAS;;;;;IAOlB;;OAEG;;;;;;IAOH;;OAEG;;;;YAgDJ,EAAA,WACK;eAAuC,EAAG,QAAQ,CAAC,EAAE,KAAK,SAAQ,EAAG,MAC3E,EAAE,EAAE,OAAO,CAAC,EAAE,KAAK,SACf,EAAG,MAAM,EAAC,EACd,OAAI,CAEJ,EAAA,MAAI;uBAAyB,EAAG,MAAM;mBAAoB,EAAG,QAAQ,QAAO,EAAG,MAAM;;qBACpE,EACb,QAAE,CAAE,EAAC,KAAK,SACV,EAAC,MAAM,EAAC,EAAG,OACf,CAAE,EAAC,KACH,SAAQ,EAAG,MAAM,EACjB,EAAC,OAEH,CAAC,EAAE,MAAM;uBAAyB,EAAG,MAAM;mBAAoB,EAAG,QAAQ,QAAO,EAAG,MAAM;;cAAmC,EAAG,QAAQ,CAAC,EAAE,WAAW;kBAA2C,EAAG,QAAQ,CAAC,EAAE,WAAW;oBAA6C,EAAG,QAAQ,CAAC,EAAE,KAAK,SAAQ,EAAG,MAAM,EAAC,EAAG,OAAO,CAAC,EAAE,KAAK,SAAQ,EAAG,MAAM,EAAC,EAAG,OAAO,CAAC,EAAE,MAAM;uBAAyB,EAAG,MAAM;mBAAoB,EAAG,QAAQ,QAAO,EAAG,MAAM;;qBAA0C,EAAG,QAAQ,CAAC,EAAE,KAAK,SAAQ,EAAG,MAAM,EAAC,EAAG,OAAO,CAAC,EAAE,KAAK,SAAQ,EAAG,MAAM,EAAC,EAAG,OAAO,CAAC,EAAE,MAAM;uBAAyB,EAAG,MAAM;mBAAoB,EAAG,QAAQ,QAAO,EAAG,MAAM;;mBAAwC,EAAG,QAAQ,CAAC,EAAE,KAAK,SAAQ,EAAG,MAAM,EAAC,EAAG,OAAO,CAAC,EAAE,KAAK,SAAQ,EAAG,MAAM,EAAC,EAAG,OAAO,CAAC,EAAE,MAAM;uBAAyB,EAAG,MAAM;mBAAoB,EAAG,QAAQ,QAAO,EAAG,MAAM;;kBAAuC,EAAG,QAAQ,CAAC,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;IAjD55B;;OAEG;;GAGN,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC;AAExD,eAAO,MAAM,OAAO,SAAU,IAAI,KAAG,UAMpC,CAAC;AAGF,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAEvC,eAAO,MAAM,WAAW,QAA0B,CAAC;AAEnD,yBAAiB,UAAU,CAAC;IAC1B,MAAM,oBAAoB,oHAKzB,CAAC;IACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,oBAAoB,CAAC,CAAC;IACxE,MAAM,CAAC,MAAM,UAAU;;;OAAoE,CAAC;IAC5F,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;;;;;;;;;;IAE1D;;OAEG;IACH,MAAM,OAAO,MAAO,SAAQ,WAG1B;KAAG;;;;;;;;;;IAEL,MAAM,OAAO,eAAgB,SAAQ,oBAMnC;KAAG;;CACN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/util/index.ts"],"names":[],"mappings":"AAIA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/util/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layoutAppliesTopbar.d.ts","sourceRoot":"","sources":["../../../../src/util/layoutAppliesTopbar.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,eAAgB,MAAM,YAErD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type AttentionManager } from '@dxos/plugin-attention';
|
|
2
|
+
import { type DeckState } from '../types';
|
|
3
|
+
export type SetActiveOptions = {
|
|
4
|
+
next: string[];
|
|
5
|
+
state: DeckState;
|
|
6
|
+
attention?: AttentionManager;
|
|
7
|
+
};
|
|
8
|
+
export declare const setActive: ({ next, state, attention }: SetActiveOptions) => string | undefined;
|
|
9
|
+
//# sourceMappingURL=set-active.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-active.d.ts","sourceRoot":"","sources":["../../../../src/util/set-active.ts"],"names":[],"mappings":"AAMA,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,KAAK,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,SAAS,+BAAgC,gBAAgB,uBA8BrE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHoistStatusbar.d.ts","sourceRoot":"","sources":["../../../../src/util/useHoistStatusbar.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useHoistStatusbar.d.ts","sourceRoot":"","sources":["../../../../src/util/useHoistStatusbar.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,iBAAiB,eAAgB,MAAM,YAOnD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-deck",
|
|
3
|
-
"version": "0.7.5-main.
|
|
3
|
+
"version": "0.7.5-main.e94eead",
|
|
4
4
|
"description": "DXOS Surface plugin for the main application layout.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"author": "DXOS.org",
|
|
9
9
|
"sideEffects": true,
|
|
10
|
+
"type": "module",
|
|
10
11
|
"exports": {
|
|
11
12
|
".": {
|
|
12
13
|
"types": "./dist/types/src/index.d.ts",
|
|
@@ -30,33 +31,33 @@
|
|
|
30
31
|
"src"
|
|
31
32
|
],
|
|
32
33
|
"dependencies": {
|
|
33
|
-
"@fluentui/react-tabster": "
|
|
34
|
+
"@fluentui/react-tabster": "9.23.3",
|
|
34
35
|
"@preact/signals-core": "^1.6.0",
|
|
35
|
-
"effect": "^3.12.
|
|
36
|
+
"effect": "^3.12.3",
|
|
36
37
|
"immer": "^10.1.1",
|
|
37
|
-
"@dxos/
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/async": "0.7.5-main.
|
|
40
|
-
"@dxos/echo-schema": "0.7.5-main.
|
|
41
|
-
"@dxos/echo-signals": "0.7.5-main.
|
|
42
|
-
"@dxos/invariant": "0.7.5-main.
|
|
43
|
-
"@dxos/keyboard": "0.7.5-main.
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/plugin-attention": "0.7.5-main.
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/plugin-
|
|
50
|
-
"@dxos/plugin-
|
|
51
|
-
"@dxos/plugin-
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/react-
|
|
54
|
-
"@dxos/react-ui-
|
|
55
|
-
"@dxos/react-ui-
|
|
56
|
-
"@dxos/react-ui-tabs": "0.7.5-main.
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/react-ui-text-tooltip": "0.7.5-main.
|
|
59
|
-
"@dxos/
|
|
38
|
+
"@dxos/app-framework": "0.7.5-main.e94eead",
|
|
39
|
+
"@dxos/debug": "0.7.5-main.e94eead",
|
|
40
|
+
"@dxos/async": "0.7.5-main.e94eead",
|
|
41
|
+
"@dxos/echo-schema": "0.7.5-main.e94eead",
|
|
42
|
+
"@dxos/echo-signals": "0.7.5-main.e94eead",
|
|
43
|
+
"@dxos/invariant": "0.7.5-main.e94eead",
|
|
44
|
+
"@dxos/keyboard": "0.7.5-main.e94eead",
|
|
45
|
+
"@dxos/live-object": "0.7.5-main.e94eead",
|
|
46
|
+
"@dxos/artifact": "0.7.5-main.e94eead",
|
|
47
|
+
"@dxos/local-storage": "0.7.5-main.e94eead",
|
|
48
|
+
"@dxos/plugin-attention": "0.7.5-main.e94eead",
|
|
49
|
+
"@dxos/log": "0.7.5-main.e94eead",
|
|
50
|
+
"@dxos/plugin-client": "0.7.5-main.e94eead",
|
|
51
|
+
"@dxos/plugin-graph": "0.7.5-main.e94eead",
|
|
52
|
+
"@dxos/plugin-observability": "0.7.5-main.e94eead",
|
|
53
|
+
"@dxos/plugin-theme": "0.7.5-main.e94eead",
|
|
54
|
+
"@dxos/react-client": "0.7.5-main.e94eead",
|
|
55
|
+
"@dxos/react-ui-stack": "0.7.5-main.e94eead",
|
|
56
|
+
"@dxos/react-ui-attention": "0.7.5-main.e94eead",
|
|
57
|
+
"@dxos/react-ui-tabs": "0.7.5-main.e94eead",
|
|
58
|
+
"@dxos/react-ui-form": "0.7.5-main.e94eead",
|
|
59
|
+
"@dxos/react-ui-text-tooltip": "0.7.5-main.e94eead",
|
|
60
|
+
"@dxos/util": "0.7.5-main.e94eead"
|
|
60
61
|
},
|
|
61
62
|
"devDependencies": {
|
|
62
63
|
"@phosphor-icons/react": "^2.1.5",
|
|
@@ -65,16 +66,16 @@
|
|
|
65
66
|
"react": "~18.2.0",
|
|
66
67
|
"react-dom": "~18.2.0",
|
|
67
68
|
"vite": "5.4.7",
|
|
68
|
-
"@dxos/react-ui": "0.7.5-main.
|
|
69
|
-
"@dxos/react-ui-theme": "0.7.5-main.
|
|
70
|
-
"@dxos/storybook-utils": "0.7.5-main.
|
|
69
|
+
"@dxos/react-ui": "0.7.5-main.e94eead",
|
|
70
|
+
"@dxos/react-ui-theme": "0.7.5-main.e94eead",
|
|
71
|
+
"@dxos/storybook-utils": "0.7.5-main.e94eead"
|
|
71
72
|
},
|
|
72
73
|
"peerDependencies": {
|
|
73
74
|
"@phosphor-icons/react": "^2.0.5",
|
|
74
75
|
"react": "~18.2.0",
|
|
75
76
|
"react-dom": "~18.2.0",
|
|
76
|
-
"@dxos/react-ui
|
|
77
|
-
"@dxos/react-ui": "0.7.5-main.
|
|
77
|
+
"@dxos/react-ui": "0.7.5-main.e94eead",
|
|
78
|
+
"@dxos/react-ui-theme": "0.7.5-main.e94eead"
|
|
78
79
|
},
|
|
79
80
|
"publishConfig": {
|
|
80
81
|
"access": "public"
|