@dxos/plugin-deck 0.7.5-main.9d26e3a → 0.7.5-main.b19bfc8
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-IYHAGFA3.mjs +151 -0
- package/dist/lib/browser/app-graph-builder-IYHAGFA3.mjs.map +7 -0
- package/dist/lib/browser/check-app-scheme-S3EYUPMF.mjs +33 -0
- package/dist/lib/browser/check-app-scheme-S3EYUPMF.mjs.map +7 -0
- package/dist/lib/browser/chunk-22AQ5IVX.mjs +17 -0
- package/dist/lib/browser/chunk-22AQ5IVX.mjs.map +7 -0
- package/dist/lib/browser/chunk-CYE6QZBQ.mjs +128 -0
- package/dist/lib/browser/chunk-CYE6QZBQ.mjs.map +7 -0
- package/dist/lib/browser/chunk-DIM5INBX.mjs +24 -0
- package/dist/lib/browser/chunk-DIM5INBX.mjs.map +7 -0
- package/dist/lib/browser/chunk-DIXE74SK.mjs +1097 -0
- package/dist/lib/browser/chunk-DIXE74SK.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-GVOGPULO.mjs → chunk-N7TEPFVR.mjs} +5 -4
- package/dist/lib/browser/chunk-N7TEPFVR.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +104 -1776
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/intent-resolver-MWUADUNI.mjs +488 -0
- package/dist/lib/browser/intent-resolver-MWUADUNI.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react-root-IELFERPV.mjs +45 -0
- package/dist/lib/browser/react-root-IELFERPV.mjs.map +7 -0
- package/dist/lib/browser/react-surface-WL45R43W.mjs +39 -0
- package/dist/lib/browser/react-surface-WL45R43W.mjs.map +7 -0
- package/dist/lib/browser/settings-YONG3QB7.mjs +28 -0
- package/dist/lib/browser/settings-YONG3QB7.mjs.map +7 -0
- package/dist/lib/browser/state-MZZL5S2D.mjs +124 -0
- package/dist/lib/browser/state-MZZL5S2D.mjs.map +7 -0
- package/dist/lib/browser/tools-5LDJNU56.mjs +51 -0
- package/dist/lib/browser/tools-5LDJNU56.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 +1 -5
- 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 +142 -0
- package/dist/types/src/capabilities/capabilities.d.ts.map +1 -0
- package/dist/types/src/capabilities/check-app-scheme.d.ts +4 -0
- package/dist/types/src/capabilities/check-app-scheme.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +190 -0
- package/dist/types/src/capabilities/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/intent-resolver.d.ts +4 -0
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-root.d.ts +7 -0
- package/dist/types/src/capabilities/react-root.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +4 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings.d.ts +4 -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 +4 -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 +5 -0
- package/dist/types/src/components/DeckLayout/Banner.d.ts.map +1 -0
- 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 -6
- package/dist/types/src/components/DeckLayout/Sidebar.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/SidebarButton.d.ts +7 -0
- package/dist/types/src/components/DeckLayout/SidebarButton.d.ts.map +1 -0
- 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 +2 -0
- package/dist/types/src/components/DeckLayout/Topbar.d.ts.map +1 -0
- 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 +4 -0
- package/dist/types/src/components/fragments.d.ts.map +1 -0
- 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 +5 -0
- package/dist/types/src/events.d.ts.map +1 -0
- 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/index.d.ts +3 -2
- package/dist/types/src/index.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 +4 -4
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +4 -2
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +121 -20
- package/dist/types/src/types.d.ts.map +1 -1
- package/dist/types/src/util/index.d.ts +4 -2
- 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/useBreakpoints.d.ts +2 -0
- package/dist/types/src/util/useBreakpoints.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 +32 -37
- package/src/DeckPlugin.ts +87 -0
- package/src/capabilities/app-graph-builder.ts +113 -0
- package/src/capabilities/capabilities.ts +15 -0
- package/src/capabilities/check-app-scheme.ts +44 -0
- package/src/capabilities/index.ts +17 -0
- package/src/capabilities/intent-resolver.ts +368 -0
- package/src/capabilities/react-root.tsx +46 -0
- package/src/capabilities/react-surface.tsx +31 -0
- package/src/capabilities/settings.ts +21 -0
- package/src/capabilities/state.ts +107 -0
- package/src/capabilities/tools.ts +61 -0
- package/src/capabilities/url-handler.ts +65 -0
- package/src/components/DeckLayout/ActiveNode.tsx +2 -3
- package/src/components/DeckLayout/Banner.tsx +37 -0
- package/src/components/DeckLayout/ComplementarySidebar.tsx +142 -59
- package/src/components/DeckLayout/ContentEmpty.tsx +9 -4
- package/src/components/DeckLayout/DeckLayout.tsx +151 -99
- package/src/components/DeckLayout/Fullscreen.tsx +2 -3
- package/src/components/DeckLayout/NodePlankHeading.tsx +64 -77
- package/src/components/DeckLayout/Plank.tsx +35 -43
- package/src/components/DeckLayout/PlankControls.tsx +12 -11
- package/src/components/DeckLayout/PlankError.tsx +6 -5
- package/src/components/DeckLayout/Sidebar.tsx +19 -9
- package/src/components/DeckLayout/SidebarButton.tsx +68 -0
- package/src/components/DeckLayout/StatusBar.tsx +6 -12
- package/src/components/DeckLayout/Toast.tsx +2 -2
- package/src/components/DeckLayout/Topbar.tsx +11 -0
- package/src/components/LayoutSettings.tsx +8 -8
- package/src/components/fragments.ts +14 -0
- package/src/components/index.ts +0 -2
- package/src/events.ts +12 -0
- package/src/hooks/useMainSize.ts +3 -3
- package/src/hooks/useNode.ts +3 -1
- package/src/index.ts +3 -4
- package/src/layout.ts +43 -212
- package/src/meta.ts +3 -2
- package/src/translations.ts +8 -6
- package/src/types.ts +104 -36
- package/src/util/index.ts +4 -2
- package/src/util/layoutAppliesTopbar.ts +7 -0
- package/src/util/set-active.ts +47 -0
- package/src/util/useBreakpoints.ts +11 -0
- package/src/util/useHoistStatusbar.ts +20 -0
- package/dist/lib/browser/chunk-GVOGPULO.mjs.map +0 -7
- package/dist/lib/browser/chunk-ZC3K6C2W.mjs +0 -37
- package/dist/lib/browser/chunk-ZC3K6C2W.mjs.map +0 -7
- package/dist/lib/browser/meta.mjs +0 -9
- package/dist/lib/browser/meta.mjs.map +0 -7
- package/dist/types/src/components/DeckContext.d.ts +0 -8
- 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/check-app-scheme.d.ts +0 -2
- package/dist/types/src/util/check-app-scheme.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/DeckPlugin.tsx +0 -623
- package/src/components/DeckContext.ts +0 -14
- package/src/components/LayoutContext.ts +0 -12
- package/src/layout.test.ts +0 -380
- package/src/util/check-app-scheme.ts +0 -21
- package/src/util/layout-parts.ts +0 -12
|
@@ -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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,4 @@
|
|
|
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;
|
|
4
|
+
//# sourceMappingURL=fragments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,
|
|
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"}
|
|
@@ -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,7 +1,7 @@
|
|
|
1
|
-
export declare const DECK_PLUGIN
|
|
2
|
-
declare const
|
|
3
|
-
id:
|
|
1
|
+
export declare const DECK_PLUGIN: "dxos.org/plugin/deck";
|
|
2
|
+
export declare const meta: {
|
|
3
|
+
id: "dxos.org/plugin/deck";
|
|
4
4
|
name: string;
|
|
5
|
+
icon: string;
|
|
5
6
|
};
|
|
6
|
-
export default _default;
|
|
7
7
|
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW,
|
|
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,16 +1,18 @@
|
|
|
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;
|
|
7
|
+
'collapse navigation sidebar label': string;
|
|
6
8
|
'open complementary sidebar label': string;
|
|
9
|
+
'close complementary sidebar label': string;
|
|
7
10
|
'plugin error message': string;
|
|
8
11
|
'content fallback message': string;
|
|
9
12
|
'content fallback description': string;
|
|
10
13
|
'toggle fullscreen label': string;
|
|
11
14
|
'settings show hints label': string;
|
|
12
15
|
'settings native redirect label': string;
|
|
13
|
-
'settings custom slots': string;
|
|
14
16
|
'settings new plank position start label': string;
|
|
15
17
|
'settings new plank position end label': string;
|
|
16
18
|
'select new plank positioning placeholder': string;
|
|
@@ -39,7 +41,7 @@ declare const _default: {
|
|
|
39
41
|
'select overscroll placeholder': string;
|
|
40
42
|
'settings overscroll centering label': string;
|
|
41
43
|
'settings overscroll none label': string;
|
|
42
|
-
'settings
|
|
44
|
+
'settings enable ide-style statusbar label': string;
|
|
43
45
|
'close current label': string;
|
|
44
46
|
'close others label': string;
|
|
45
47
|
'close all 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,wBAoDE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Plugin, GraphBuilderProvides, IntentResolverProvides, LayoutProvides, LocationProvides, SettingsProvides, SurfaceProvides, TranslationsProvides } from '@dxos/app-framework';
|
|
2
1
|
import { S } from '@dxos/echo-schema';
|
|
2
|
+
import { type Node } from '@dxos/plugin-graph';
|
|
3
3
|
import { type Label } from '@dxos/react-ui';
|
|
4
4
|
export declare const NewPlankPositions: readonly ["start", "end"];
|
|
5
5
|
export type NewPlankPositioning = (typeof NewPlankPositions)[number];
|
|
@@ -9,27 +9,127 @@ export type Panel = {
|
|
|
9
9
|
id: string;
|
|
10
10
|
label: Label;
|
|
11
11
|
icon: string;
|
|
12
|
+
filter?: (node: Node) => boolean;
|
|
12
13
|
};
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
14
|
+
export declare const DeckSettingsSchema: S.mutable<S.Struct<{
|
|
15
|
+
showHints: typeof S.Boolean;
|
|
16
|
+
enableNativeRedirect: typeof S.Boolean;
|
|
17
|
+
enableIdeStyleStatusbar: typeof S.Boolean;
|
|
18
|
+
newPlankPositioning: S.Literal<["start", "end"]>;
|
|
19
|
+
overscroll: S.Literal<["none", "centering"]>;
|
|
20
|
+
}>>;
|
|
21
|
+
export type DeckSettingsProps = S.Schema.Type<typeof DeckSettingsSchema>;
|
|
22
|
+
declare const LayoutMode: S.Union<[S.Literal<["deck"]>, S.Literal<["solo"]>, S.Literal<["fullscreen"]>]>;
|
|
23
|
+
export declare const isLayoutMode: (value: any) => value is LayoutMode;
|
|
24
|
+
export type LayoutMode = S.Schema.Type<typeof LayoutMode>;
|
|
25
|
+
export declare const PlankSizing: S.Record$<typeof S.String, typeof S.Number>;
|
|
26
|
+
export type PlankSizing = S.Schema.Type<typeof PlankSizing>;
|
|
27
|
+
export declare const Deck: S.Struct<{
|
|
28
|
+
initialized: S.SchemaClass<boolean, boolean, never>;
|
|
29
|
+
active: S.mutable<S.Array$<typeof S.String>>;
|
|
30
|
+
inactive: S.mutable<S.Array$<typeof S.String>>;
|
|
31
|
+
solo: S.optional<typeof S.String>;
|
|
32
|
+
fullscreen: typeof S.Boolean;
|
|
33
|
+
plankSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
|
|
34
|
+
}>;
|
|
35
|
+
export type Deck = S.Schema.Type<typeof Deck>;
|
|
36
|
+
export declare const DeckState: S.mutable<S.Struct<{
|
|
37
|
+
sidebarState: S.Literal<["closed", "collapsed", "expanded"]>;
|
|
38
|
+
complementarySidebarState: S.Literal<["closed", "collapsed", "expanded"]>;
|
|
39
|
+
complementarySidebarPanel: S.optional<typeof S.String>;
|
|
40
|
+
dialogOpen: typeof S.Boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Data to be passed to the dialog Surface.
|
|
43
|
+
*/
|
|
44
|
+
dialogContent: S.optional<typeof S.Any>;
|
|
45
|
+
dialogBlockAlign: S.optional<S.Literal<["start", "center", "end"]>>;
|
|
46
|
+
dialogType: S.optional<S.Literal<["default", "alert"]>>;
|
|
47
|
+
popoverOpen: typeof S.Boolean;
|
|
48
|
+
popoverSide: S.optional<S.Literal<["top", "right", "bottom", "left"]>>;
|
|
49
|
+
/**
|
|
50
|
+
* Data to be passed to the popover Surface.
|
|
51
|
+
*/
|
|
52
|
+
popoverContent: S.optional<typeof S.Any>;
|
|
53
|
+
popoverAnchorId: S.optional<typeof S.String>;
|
|
54
|
+
toasts: S.mutable<S.Array$<S.Struct<{
|
|
55
|
+
id: S.SchemaClass<string, string, never>;
|
|
56
|
+
title: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple<[typeof S.String, S.mutable<S.Struct<{
|
|
57
|
+
ns: typeof S.String;
|
|
58
|
+
count: S.optional<typeof S.Number>;
|
|
59
|
+
}>>]>>]>>;
|
|
60
|
+
description: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple<[typeof S.String, S.mutable<S.Struct<{
|
|
61
|
+
ns: typeof S.String;
|
|
62
|
+
count: S.optional<typeof S.Number>;
|
|
63
|
+
}>>]>>]>>;
|
|
64
|
+
icon: S.optional<S.SchemaClass<string, string, never>>;
|
|
65
|
+
duration: S.optional<S.SchemaClass<number, number, never>>;
|
|
66
|
+
closeLabel: 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
|
+
actionLabel: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple<[typeof S.String, S.mutable<S.Struct<{
|
|
71
|
+
ns: typeof S.String;
|
|
72
|
+
count: S.optional<typeof S.Number>;
|
|
73
|
+
}>>]>>]>>;
|
|
74
|
+
actionAlt: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple<[typeof S.String, S.mutable<S.Struct<{
|
|
75
|
+
ns: typeof S.String;
|
|
76
|
+
count: S.optional<typeof S.Number>;
|
|
77
|
+
}>>]>>]>>;
|
|
78
|
+
onAction: S.optional<S.SchemaClass<any, any, never>>;
|
|
79
|
+
}>>>;
|
|
80
|
+
currentUndoId: S.optional<typeof S.String>;
|
|
81
|
+
activeDeck: typeof S.String;
|
|
82
|
+
previousDeck: typeof S.String;
|
|
83
|
+
decks: S.mutable<S.Record$<typeof S.String, S.mutable<S.Struct<{
|
|
84
|
+
initialized: S.SchemaClass<boolean, boolean, never>;
|
|
85
|
+
active: S.mutable<S.Array$<typeof S.String>>;
|
|
86
|
+
inactive: S.mutable<S.Array$<typeof S.String>>;
|
|
87
|
+
solo: S.optional<typeof S.String>;
|
|
88
|
+
fullscreen: typeof S.Boolean;
|
|
89
|
+
plankSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
|
|
90
|
+
}>>>>;
|
|
91
|
+
previousMode: S.mutable<S.Record$<typeof S.String, S.Union<[S.Literal<["deck"]>, S.Literal<["solo"]>, S.Literal<["fullscreen"]>]>>>;
|
|
92
|
+
deck: S.mutable<S.Struct<{
|
|
93
|
+
initialized: S.SchemaClass<boolean, boolean, never>;
|
|
94
|
+
active: S.mutable<S.Array$<typeof S.String>>;
|
|
95
|
+
inactive: S.mutable<S.Array$<typeof S.String>>;
|
|
96
|
+
solo: S.optional<typeof S.String>;
|
|
97
|
+
fullscreen: typeof S.Boolean;
|
|
98
|
+
plankSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
|
|
99
|
+
}>>;
|
|
100
|
+
/**
|
|
101
|
+
* The identifier of a component to scroll into view when it is mounted.
|
|
102
|
+
*/
|
|
103
|
+
scrollIntoView: S.optional<typeof S.String>;
|
|
104
|
+
}>>;
|
|
105
|
+
export type DeckState = S.Schema.Type<typeof DeckState>;
|
|
106
|
+
export declare const getMode: (deck: Deck) => LayoutMode;
|
|
107
|
+
export declare const SLUG_PATH_SEPARATOR = "~";
|
|
108
|
+
export declare const DECK_ACTION: string;
|
|
30
109
|
export declare namespace DeckAction {
|
|
31
|
-
const
|
|
32
|
-
|
|
110
|
+
const PartAdjustmentSchema: S.Union<[S.Literal<["close"]>, S.Literal<["solo"]>, S.Literal<["increment-start"]>, S.Literal<["increment-end"]>]>;
|
|
111
|
+
export type PartAdjustment = S.Schema.Type<typeof PartAdjustmentSchema>;
|
|
112
|
+
export const Adjustment: S.mutable<S.Struct<{
|
|
113
|
+
id: typeof S.String;
|
|
114
|
+
type: S.Union<[S.Literal<["close"]>, S.Literal<["solo"]>, S.Literal<["increment-start"]>, S.Literal<["increment-end"]>]>;
|
|
115
|
+
}>>;
|
|
116
|
+
export type Adjustment = S.Schema.Type<typeof Adjustment>;
|
|
117
|
+
const Adjust_base: S.TaggedClass<Adjust, `${string}/adjust`, {
|
|
118
|
+
readonly _tag: S.tag<`${string}/adjust`>;
|
|
119
|
+
} & {
|
|
120
|
+
input: S.mutable<S.Struct<{
|
|
121
|
+
id: typeof S.String;
|
|
122
|
+
type: S.Union<[S.Literal<["close"]>, S.Literal<["solo"]>, S.Literal<["increment-start"]>, S.Literal<["increment-end"]>]>;
|
|
123
|
+
}>>;
|
|
124
|
+
output: typeof S.Void;
|
|
125
|
+
}>;
|
|
126
|
+
/**
|
|
127
|
+
* An atomic transaction to apply to the deck, describing which element to move to which location.
|
|
128
|
+
*/
|
|
129
|
+
export class Adjust extends Adjust_base {
|
|
130
|
+
}
|
|
131
|
+
const UpdatePlankSize_base: S.TaggedClass<UpdatePlankSize, `${string}/update-plank-size`, {
|
|
132
|
+
readonly _tag: S.tag<`${string}/update-plank-size`>;
|
|
33
133
|
} & {
|
|
34
134
|
input: S.Struct<{
|
|
35
135
|
id: typeof S.String;
|
|
@@ -41,4 +141,5 @@ export declare namespace DeckAction {
|
|
|
41
141
|
}
|
|
42
142
|
export {};
|
|
43
143
|
}
|
|
144
|
+
export {};
|
|
44
145
|
//# 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":"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"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export * from './check-app-scheme';
|
|
2
|
-
export * from './layout-parts';
|
|
3
1
|
export * from './overscroll';
|
|
2
|
+
export * from './set-active';
|
|
3
|
+
export * from './useBreakpoints';
|
|
4
|
+
export * from './layoutAppliesTopbar';
|
|
5
|
+
export * from './useHoistStatusbar';
|
|
4
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBreakpoints.d.ts","sourceRoot":"","sources":["../../../../src/util/useBreakpoints.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,uCAI1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useHoistStatusbar.d.ts","sourceRoot":"","sources":["../../../../src/util/useHoistStatusbar.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,iBAAiB,eAAgB,MAAM,YAOnD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"5.7.
|
|
1
|
+
{"version":"5.7.3"}
|
package/package.json
CHANGED
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-deck",
|
|
3
|
-
"version": "0.7.5-main.
|
|
3
|
+
"version": "0.7.5-main.b19bfc8",
|
|
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",
|
|
13
14
|
"browser": "./dist/lib/browser/index.mjs"
|
|
14
15
|
},
|
|
15
|
-
"./meta": {
|
|
16
|
-
"types": "./dist/types/src/meta.d.ts",
|
|
17
|
-
"browser": "./dist/lib/browser/meta.mjs"
|
|
18
|
-
},
|
|
19
16
|
"./types": {
|
|
20
17
|
"types": "./dist/types/src/types.d.ts",
|
|
21
18
|
"browser": "./dist/lib/browser/types.mjs"
|
|
@@ -24,9 +21,6 @@
|
|
|
24
21
|
"types": "dist/types/src/index.d.ts",
|
|
25
22
|
"typesVersions": {
|
|
26
23
|
"*": {
|
|
27
|
-
"meta": [
|
|
28
|
-
"dist/types/src/meta.d.ts"
|
|
29
|
-
],
|
|
30
24
|
"types": [
|
|
31
25
|
"dist/types/src/types.d.ts"
|
|
32
26
|
]
|
|
@@ -37,32 +31,33 @@
|
|
|
37
31
|
"src"
|
|
38
32
|
],
|
|
39
33
|
"dependencies": {
|
|
40
|
-
"@fluentui/react-tabster": "
|
|
34
|
+
"@fluentui/react-tabster": "9.23.3",
|
|
41
35
|
"@preact/signals-core": "^1.6.0",
|
|
42
|
-
"effect": "^3.12.
|
|
36
|
+
"effect": "^3.12.3",
|
|
43
37
|
"immer": "^10.1.1",
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/echo-schema": "0.7.5-main.
|
|
48
|
-
"@dxos/echo-signals": "0.7.5-main.
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/plugin-
|
|
56
|
-
"@dxos/plugin-
|
|
57
|
-
"@dxos/plugin-
|
|
58
|
-
"@dxos/
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/react-ui-
|
|
62
|
-
"@dxos/react-ui-
|
|
63
|
-
"@dxos/react-ui-
|
|
64
|
-
"@dxos/react-ui-
|
|
65
|
-
"@dxos/util": "0.7.5-main.
|
|
38
|
+
"@dxos/app-framework": "0.7.5-main.b19bfc8",
|
|
39
|
+
"@dxos/artifact": "0.7.5-main.b19bfc8",
|
|
40
|
+
"@dxos/async": "0.7.5-main.b19bfc8",
|
|
41
|
+
"@dxos/echo-schema": "0.7.5-main.b19bfc8",
|
|
42
|
+
"@dxos/echo-signals": "0.7.5-main.b19bfc8",
|
|
43
|
+
"@dxos/debug": "0.7.5-main.b19bfc8",
|
|
44
|
+
"@dxos/invariant": "0.7.5-main.b19bfc8",
|
|
45
|
+
"@dxos/live-object": "0.7.5-main.b19bfc8",
|
|
46
|
+
"@dxos/keyboard": "0.7.5-main.b19bfc8",
|
|
47
|
+
"@dxos/local-storage": "0.7.5-main.b19bfc8",
|
|
48
|
+
"@dxos/log": "0.7.5-main.b19bfc8",
|
|
49
|
+
"@dxos/plugin-attention": "0.7.5-main.b19bfc8",
|
|
50
|
+
"@dxos/plugin-client": "0.7.5-main.b19bfc8",
|
|
51
|
+
"@dxos/plugin-graph": "0.7.5-main.b19bfc8",
|
|
52
|
+
"@dxos/plugin-theme": "0.7.5-main.b19bfc8",
|
|
53
|
+
"@dxos/plugin-observability": "0.7.5-main.b19bfc8",
|
|
54
|
+
"@dxos/react-client": "0.7.5-main.b19bfc8",
|
|
55
|
+
"@dxos/react-ui-form": "0.7.5-main.b19bfc8",
|
|
56
|
+
"@dxos/react-ui-stack": "0.7.5-main.b19bfc8",
|
|
57
|
+
"@dxos/react-ui-attention": "0.7.5-main.b19bfc8",
|
|
58
|
+
"@dxos/react-ui-text-tooltip": "0.7.5-main.b19bfc8",
|
|
59
|
+
"@dxos/util": "0.7.5-main.b19bfc8",
|
|
60
|
+
"@dxos/react-ui-tabs": "0.7.5-main.b19bfc8"
|
|
66
61
|
},
|
|
67
62
|
"devDependencies": {
|
|
68
63
|
"@phosphor-icons/react": "^2.1.5",
|
|
@@ -71,16 +66,16 @@
|
|
|
71
66
|
"react": "~18.2.0",
|
|
72
67
|
"react-dom": "~18.2.0",
|
|
73
68
|
"vite": "5.4.7",
|
|
74
|
-
"@dxos/react-ui": "0.7.5-main.
|
|
75
|
-
"@dxos/
|
|
76
|
-
"@dxos/
|
|
69
|
+
"@dxos/react-ui": "0.7.5-main.b19bfc8",
|
|
70
|
+
"@dxos/react-ui-theme": "0.7.5-main.b19bfc8",
|
|
71
|
+
"@dxos/storybook-utils": "0.7.5-main.b19bfc8"
|
|
77
72
|
},
|
|
78
73
|
"peerDependencies": {
|
|
79
74
|
"@phosphor-icons/react": "^2.0.5",
|
|
80
75
|
"react": "~18.2.0",
|
|
81
76
|
"react-dom": "~18.2.0",
|
|
82
|
-
"@dxos/react-ui": "0.7.5-main.
|
|
83
|
-
"@dxos/react-ui
|
|
77
|
+
"@dxos/react-ui-theme": "0.7.5-main.b19bfc8",
|
|
78
|
+
"@dxos/react-ui": "0.7.5-main.b19bfc8"
|
|
84
79
|
},
|
|
85
80
|
"publishConfig": {
|
|
86
81
|
"access": "public"
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { setAutoFreeze } from 'immer';
|
|
6
|
+
|
|
7
|
+
import { allOf, Capabilities, contributes, defineModule, definePlugin, Events, oneOf } from '@dxos/app-framework';
|
|
8
|
+
import { translations as stackTranslations } from '@dxos/react-ui-stack';
|
|
9
|
+
|
|
10
|
+
import {
|
|
11
|
+
AppGraphBuilder,
|
|
12
|
+
CheckAppScheme,
|
|
13
|
+
DeckSettings,
|
|
14
|
+
DeckState,
|
|
15
|
+
LayoutIntentResolver,
|
|
16
|
+
ReactRoot,
|
|
17
|
+
ReactSurface,
|
|
18
|
+
Tools,
|
|
19
|
+
UrlHandler,
|
|
20
|
+
} from './capabilities';
|
|
21
|
+
import { DeckEvents } from './events';
|
|
22
|
+
import { meta } from './meta';
|
|
23
|
+
import translations from './translations';
|
|
24
|
+
|
|
25
|
+
// NOTE(Zan): When producing values with immer, we shouldn't auto-freeze them because
|
|
26
|
+
// our signal implementation needs to add some hidden properties to the produced values.
|
|
27
|
+
// TODO(Zan): Move this to a more global location if we use immer more broadly.
|
|
28
|
+
setAutoFreeze(false);
|
|
29
|
+
|
|
30
|
+
export const DeckPlugin = () =>
|
|
31
|
+
definePlugin(meta, [
|
|
32
|
+
defineModule({
|
|
33
|
+
id: `${meta.id}/module/check-app-scheme`,
|
|
34
|
+
activatesOn: Events.SettingsReady,
|
|
35
|
+
activate: CheckAppScheme,
|
|
36
|
+
}),
|
|
37
|
+
defineModule({
|
|
38
|
+
id: `${meta.id}/module/settings`,
|
|
39
|
+
activatesOn: Events.SetupSettings,
|
|
40
|
+
activate: DeckSettings,
|
|
41
|
+
}),
|
|
42
|
+
defineModule({
|
|
43
|
+
id: `${meta.id}/module/layout`,
|
|
44
|
+
// TODO(wittjosiah): Does not integrate with settings store.
|
|
45
|
+
// Should this be a different event?
|
|
46
|
+
// Should settings store be renamed to be more generic?
|
|
47
|
+
activatesOn: oneOf(Events.SetupSettings, Events.SetupAppGraph),
|
|
48
|
+
activatesAfter: [Events.LayoutReady, DeckEvents.StateReady],
|
|
49
|
+
activate: DeckState,
|
|
50
|
+
}),
|
|
51
|
+
defineModule({
|
|
52
|
+
id: `${meta.id}/module/translations`,
|
|
53
|
+
activatesOn: Events.SetupTranslations,
|
|
54
|
+
activate: () => contributes(Capabilities.Translations, [...translations, ...stackTranslations]),
|
|
55
|
+
}),
|
|
56
|
+
defineModule({
|
|
57
|
+
id: `${meta.id}/module/react-root`,
|
|
58
|
+
activatesOn: Events.Startup,
|
|
59
|
+
activatesBefore: [DeckEvents.SetupComplementaryPanels],
|
|
60
|
+
activate: ReactRoot,
|
|
61
|
+
}),
|
|
62
|
+
defineModule({
|
|
63
|
+
id: `${meta.id}/module/react-surface`,
|
|
64
|
+
activatesOn: Events.SetupReactSurface,
|
|
65
|
+
activate: ReactSurface,
|
|
66
|
+
}),
|
|
67
|
+
defineModule({
|
|
68
|
+
id: `${meta.id}/module/layout-intent-resolver`,
|
|
69
|
+
activatesOn: Events.SetupIntentResolver,
|
|
70
|
+
activate: LayoutIntentResolver,
|
|
71
|
+
}),
|
|
72
|
+
defineModule({
|
|
73
|
+
id: `${meta.id}/module/app-graph-builder`,
|
|
74
|
+
activatesOn: Events.SetupAppGraph,
|
|
75
|
+
activate: AppGraphBuilder,
|
|
76
|
+
}),
|
|
77
|
+
defineModule({
|
|
78
|
+
id: `${meta.id}/module/tools`,
|
|
79
|
+
activatesOn: Events.SetupArtifactDefinition,
|
|
80
|
+
activate: Tools,
|
|
81
|
+
}),
|
|
82
|
+
defineModule({
|
|
83
|
+
id: `${meta.id}/module/url`,
|
|
84
|
+
activatesOn: allOf(Events.DispatcherReady, DeckEvents.StateReady),
|
|
85
|
+
activate: UrlHandler,
|
|
86
|
+
}),
|
|
87
|
+
]);
|