@dxos/plugin-deck 0.8.2-staging.7ac8446 → 0.8.3-main.672df60
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-VYZ4IWI3.mjs → app-graph-builder-M5BT34YG.mjs} +17 -16
- package/dist/lib/browser/app-graph-builder-M5BT34YG.mjs.map +7 -0
- package/dist/lib/browser/{check-app-scheme-SEYECDHI.mjs → check-app-scheme-7AXGR6UT.mjs} +2 -3
- package/dist/lib/browser/check-app-scheme-7AXGR6UT.mjs.map +7 -0
- package/dist/lib/browser/{state-7TN26M42.mjs → chunk-FX44YX3G.mjs} +11 -8
- package/dist/lib/browser/chunk-FX44YX3G.mjs.map +7 -0
- package/dist/lib/browser/{chunk-XMCG42ID.mjs → chunk-KLN73CM3.mjs} +2 -2
- package/dist/lib/browser/{chunk-XMCG42ID.mjs.map → chunk-KLN73CM3.mjs.map} +1 -1
- package/dist/lib/browser/chunk-KRDA6PUM.mjs +127 -0
- package/dist/lib/browser/chunk-KRDA6PUM.mjs.map +7 -0
- package/dist/lib/browser/chunk-LWXMANOA.mjs +1487 -0
- package/dist/lib/browser/chunk-LWXMANOA.mjs.map +7 -0
- package/dist/lib/browser/chunk-TRFYUEBA.mjs +145 -0
- package/dist/lib/browser/chunk-TRFYUEBA.mjs.map +7 -0
- package/dist/lib/browser/chunk-YN5OZEGS.mjs +162 -0
- package/dist/lib/browser/chunk-YN5OZEGS.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +8 -8
- package/dist/lib/browser/index.mjs.map +2 -2
- package/dist/lib/browser/{intent-resolver-UDYKO2QW.mjs → intent-resolver-3GAC57UA.mjs} +135 -92
- package/dist/lib/browser/intent-resolver-3GAC57UA.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-root-XLXN2VEW.mjs → react-root-DF3IUPSE.mjs} +7 -7
- package/dist/lib/browser/{react-surface-WNGMZL7I.mjs → react-surface-T6YWQ6CS.mjs} +7 -7
- package/dist/lib/browser/{settings-HMDGSBGO.mjs → settings-X7GDEXU3.mjs} +6 -6
- package/dist/lib/browser/settings-X7GDEXU3.mjs.map +7 -0
- package/dist/lib/browser/state-VJ6E3ADY.mjs +10 -0
- package/dist/lib/browser/state-VJ6E3ADY.mjs.map +7 -0
- package/dist/lib/browser/{tools-SC6QEN7R.mjs → tools-N57NQ2LH.mjs} +28 -18
- package/dist/lib/browser/tools-N57NQ2LH.mjs.map +7 -0
- package/dist/lib/browser/types.mjs +1 -1
- package/dist/lib/browser/{url-handler-ODG4B6NX.mjs → url-handler-BUGI6XRE.mjs} +5 -5
- package/dist/lib/browser/url-handler-BUGI6XRE.mjs.map +7 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts +2 -179
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/capabilities.d.ts +18 -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 +8 -183
- 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 +12 -7
- package/dist/types/src/capabilities/state.d.ts.map +1 -1
- package/dist/types/src/capabilities/tools.d.ts +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/Dialog.d.ts +3 -0
- package/dist/types/src/components/DeckLayout/Dialog.d.ts.map +1 -0
- package/dist/types/src/components/DeckLayout/Popover.d.ts +5 -0
- package/dist/types/src/components/DeckLayout/Popover.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 +18 -5
- 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 +3 -2
- 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 +3 -2
- package/dist/types/src/components/Plank/PlankHeading.d.ts.map +1 -1
- package/dist/types/src/components/Sidebar/ComplementarySidebar.d.ts.map +1 -1
- package/dist/types/src/components/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/types/src/components/Sidebar/SidebarButton.d.ts +2 -1
- package/dist/types/src/components/Sidebar/SidebarButton.d.ts.map +1 -1
- package/dist/types/src/hooks/index.d.ts +5 -1
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useBreakpoints.d.ts.map +1 -0
- package/dist/types/src/hooks/useCompanions.d.ts.map +1 -0
- package/dist/types/src/hooks/useDeckCompanions.d.ts +13 -0
- package/dist/types/src/hooks/useDeckCompanions.d.ts.map +1 -0
- package/dist/types/src/hooks/useHoistStatusbar.d.ts +3 -0
- package/dist/types/src/hooks/useHoistStatusbar.d.ts.map +1 -0
- 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 +2 -1
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +108 -104
- package/dist/types/src/types.d.ts.map +1 -1
- package/dist/types/src/util/index.d.ts +1 -4
- package/dist/types/src/util/index.d.ts.map +1 -1
- package/dist/types/src/util/layoutAppliesTopbar.d.ts +2 -1
- 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/tsconfig.tsbuildinfo +1 -1
- package/package.json +39 -30
- package/src/capabilities/app-graph-builder.ts +120 -92
- package/src/capabilities/check-app-scheme.ts +3 -7
- package/src/capabilities/index.ts +3 -2
- package/src/capabilities/intent-resolver.ts +181 -135
- package/src/capabilities/settings.ts +4 -4
- package/src/capabilities/state.ts +7 -4
- package/src/capabilities/tools.ts +15 -12
- package/src/capabilities/url-handler.ts +4 -4
- package/src/components/DeckLayout/ContentEmpty.tsx +9 -4
- package/src/components/DeckLayout/DeckLayout.tsx +123 -188
- package/src/components/DeckLayout/Dialog.tsx +36 -0
- package/src/components/DeckLayout/Popover.tsx +104 -0
- package/src/components/Plank/Plank.stories.tsx +20 -8
- package/src/components/Plank/Plank.tsx +108 -72
- package/src/components/Plank/PlankControls.tsx +53 -57
- package/src/components/Plank/PlankError.tsx +2 -6
- package/src/components/Plank/PlankHeading.tsx +31 -12
- package/src/components/Sidebar/ComplementarySidebar.tsx +36 -57
- package/src/components/Sidebar/Sidebar.tsx +7 -4
- package/src/components/Sidebar/SidebarButton.tsx +26 -7
- package/src/components/fragments.ts +1 -1
- package/src/hooks/index.ts +5 -1
- package/src/{util → hooks}/useCompanions.ts +3 -3
- package/src/hooks/useDeckCompanions.ts +33 -0
- package/src/{util → hooks}/useHoistStatusbar.ts +9 -4
- package/src/hooks/useNodeActionExpander.ts +3 -8
- package/src/index.ts +1 -1
- package/src/translations.ts +2 -1
- package/src/types.ts +77 -71
- package/src/util/index.ts +1 -4
- package/src/util/layoutAppliesTopbar.ts +8 -2
- package/dist/lib/browser/app-graph-builder-VYZ4IWI3.mjs.map +0 -7
- package/dist/lib/browser/check-app-scheme-SEYECDHI.mjs.map +0 -7
- package/dist/lib/browser/chunk-6ZSOFCPP.mjs +0 -117
- package/dist/lib/browser/chunk-6ZSOFCPP.mjs.map +0 -7
- package/dist/lib/browser/chunk-B4LOJUWW.mjs +0 -24
- package/dist/lib/browser/chunk-B4LOJUWW.mjs.map +0 -7
- package/dist/lib/browser/chunk-FJBMNSUC.mjs +0 -1289
- package/dist/lib/browser/chunk-FJBMNSUC.mjs.map +0 -7
- package/dist/lib/browser/chunk-FLOVGNYB.mjs +0 -81
- package/dist/lib/browser/chunk-FLOVGNYB.mjs.map +0 -7
- package/dist/lib/browser/chunk-RJNCG4ND.mjs +0 -154
- package/dist/lib/browser/chunk-RJNCG4ND.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-UDYKO2QW.mjs.map +0 -7
- package/dist/lib/browser/settings-HMDGSBGO.mjs.map +0 -7
- package/dist/lib/browser/state-7TN26M42.mjs.map +0 -7
- package/dist/lib/browser/tools-SC6QEN7R.mjs.map +0 -7
- package/dist/lib/browser/url-handler-ODG4B6NX.mjs.map +0 -7
- package/dist/types/src/components/DeckLayout/Fullscreen.d.ts +0 -5
- package/dist/types/src/components/DeckLayout/Fullscreen.d.ts.map +0 -1
- package/dist/types/src/util/useBreakpoints.d.ts.map +0 -1
- package/dist/types/src/util/useCompanions.d.ts.map +0 -1
- package/dist/types/src/util/useHoistStatusbar.d.ts +0 -2
- package/dist/types/src/util/useHoistStatusbar.d.ts.map +0 -1
- package/src/components/DeckLayout/Fullscreen.tsx +0 -31
- /package/dist/lib/browser/{react-root-XLXN2VEW.mjs.map → react-root-DF3IUPSE.mjs.map} +0 -0
- /package/dist/lib/browser/{react-surface-WNGMZL7I.mjs.map → react-surface-T6YWQ6CS.mjs.map} +0 -0
- /package/dist/types/src/{util → hooks}/useBreakpoints.d.ts +0 -0
- /package/dist/types/src/{util → hooks}/useCompanions.d.ts +0 -0
- /package/src/{util → hooks}/useBreakpoints.ts +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeckAction
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YN5OZEGS.mjs";
|
|
4
4
|
import {
|
|
5
5
|
meta
|
|
6
6
|
} from "./chunk-NSATFAEE.mjs";
|
|
7
7
|
|
|
8
8
|
// packages/plugins/plugin-deck/src/capabilities/tools.ts
|
|
9
|
+
import { Schema } from "effect";
|
|
10
|
+
import { createTool, ToolResult } from "@dxos/ai";
|
|
9
11
|
import { contributes, createIntent, Capabilities, LayoutAction } from "@dxos/app-framework";
|
|
10
|
-
import { defineTool, ToolResult } from "@dxos/artifact";
|
|
11
|
-
import { S } from "@dxos/echo-schema";
|
|
12
12
|
import { invariant } from "@dxos/invariant";
|
|
13
13
|
var __dxlog_file = "/home/runner/work/dxos/dxos/packages/plugins/plugin-deck/src/capabilities/tools.ts";
|
|
14
14
|
var tools_default = () => contributes(Capabilities.Tools, [
|
|
15
|
-
|
|
15
|
+
createTool(meta.id, {
|
|
16
16
|
name: "show",
|
|
17
17
|
description: `
|
|
18
18
|
Show an item as a companion to an existing plank. This will make the item appear alongside the primary content.
|
|
@@ -20,33 +20,43 @@ var tools_default = () => contributes(Capabilities.Tools, [
|
|
|
20
20
|
`,
|
|
21
21
|
caption: "Showing item...",
|
|
22
22
|
// TODO(wittjosiah): Refactor Layout/Navigation/Deck actions so that they can be used directly.
|
|
23
|
-
schema:
|
|
24
|
-
id:
|
|
23
|
+
schema: Schema.Struct({
|
|
24
|
+
id: Schema.String.annotations({
|
|
25
25
|
description: "The ID of the item to show."
|
|
26
26
|
})
|
|
27
27
|
}),
|
|
28
28
|
execute: async ({ id }, { extensions }) => {
|
|
29
|
-
invariant(extensions
|
|
29
|
+
invariant(extensions, void 0, {
|
|
30
30
|
F: __dxlog_file,
|
|
31
|
-
L:
|
|
31
|
+
L: 45,
|
|
32
32
|
S: void 0,
|
|
33
33
|
A: [
|
|
34
|
-
"extensions
|
|
34
|
+
"extensions",
|
|
35
|
+
""
|
|
36
|
+
]
|
|
37
|
+
});
|
|
38
|
+
const { pivotId, dispatch, part } = extensions;
|
|
39
|
+
invariant(pivotId, "No pivot ID", {
|
|
40
|
+
F: __dxlog_file,
|
|
41
|
+
L: 47,
|
|
42
|
+
S: void 0,
|
|
43
|
+
A: [
|
|
44
|
+
"pivotId",
|
|
35
45
|
"'No pivot ID'"
|
|
36
46
|
]
|
|
37
47
|
});
|
|
38
|
-
invariant(
|
|
48
|
+
invariant(dispatch, "No intent dispatcher", {
|
|
39
49
|
F: __dxlog_file,
|
|
40
|
-
L:
|
|
50
|
+
L: 48,
|
|
41
51
|
S: void 0,
|
|
42
52
|
A: [
|
|
43
|
-
"
|
|
53
|
+
"dispatch",
|
|
44
54
|
"'No intent dispatcher'"
|
|
45
55
|
]
|
|
46
56
|
});
|
|
47
|
-
if (
|
|
48
|
-
const { data, error } = await
|
|
49
|
-
primary:
|
|
57
|
+
if (part === "deck") {
|
|
58
|
+
const { data, error } = await dispatch(createIntent(DeckAction.ChangeCompanion, {
|
|
59
|
+
primary: pivotId,
|
|
50
60
|
companion: id
|
|
51
61
|
}));
|
|
52
62
|
if (error) {
|
|
@@ -54,13 +64,13 @@ var tools_default = () => contributes(Capabilities.Tools, [
|
|
|
54
64
|
}
|
|
55
65
|
return ToolResult.Success(data);
|
|
56
66
|
} else {
|
|
57
|
-
const { data, error } = await
|
|
67
|
+
const { data, error } = await dispatch(createIntent(LayoutAction.Open, {
|
|
58
68
|
subject: [
|
|
59
69
|
id
|
|
60
70
|
],
|
|
61
71
|
part: "main",
|
|
62
72
|
options: {
|
|
63
|
-
pivotId
|
|
73
|
+
pivotId,
|
|
64
74
|
positioning: "end"
|
|
65
75
|
}
|
|
66
76
|
}));
|
|
@@ -75,4 +85,4 @@ var tools_default = () => contributes(Capabilities.Tools, [
|
|
|
75
85
|
export {
|
|
76
86
|
tools_default as default
|
|
77
87
|
};
|
|
78
|
-
//# sourceMappingURL=tools-
|
|
88
|
+
//# sourceMappingURL=tools-N57NQ2LH.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/tools.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Schema } from 'effect';\n\nimport { createTool, ToolResult } from '@dxos/ai';\nimport {\n contributes,\n createIntent,\n Capabilities,\n LayoutAction,\n type PromiseIntentDispatcher,\n} from '@dxos/app-framework';\nimport { invariant } from '@dxos/invariant';\n\nimport { meta } from '../meta';\nimport { DeckAction } from '../types';\n\n// TODO(burdon): Factor out.\ndeclare global {\n interface ToolContextExtensions {\n dispatch?: PromiseIntentDispatcher;\n pivotId?: string;\n part?: 'deck' | 'dialog';\n }\n}\n\nexport default () =>\n contributes(Capabilities.Tools, [\n createTool(meta.id, {\n name: 'show',\n description: `\n Show an item as a companion to an existing plank. This will make the item appear alongside the primary content.\n When supplying IDs, they must be fully qualified like space:object.\n `,\n caption: 'Showing item...',\n // TODO(wittjosiah): Refactor Layout/Navigation/Deck actions so that they can be used directly.\n schema: Schema.Struct({\n id: Schema.String.annotations({\n description: 'The ID of the item to show.',\n }),\n }),\n execute: async ({ id }, { extensions }) => {\n invariant(extensions);\n const { pivotId, dispatch, part } = extensions;\n invariant(pivotId, 'No pivot ID');\n invariant(dispatch, 'No intent dispatcher');\n\n if (part === 'deck') {\n const { data, error } = await dispatch(\n createIntent(DeckAction.ChangeCompanion, {\n primary: pivotId,\n companion: id,\n }),\n );\n if (error) {\n return ToolResult.Error(error.message);\n }\n\n return ToolResult.Success(data);\n } else {\n const { data, error } = await dispatch(\n createIntent(LayoutAction.Open, {\n subject: [id],\n part: 'main',\n options: {\n pivotId,\n positioning: 'end',\n },\n }),\n );\n if (error) {\n return ToolResult.Error(error.message);\n }\n\n return ToolResult.Success(data);\n }\n },\n }),\n ]);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAIA,SAASA,cAAc;AAEvB,SAASC,YAAYC,kBAAkB;AACvC,SACEC,aACAC,cACAC,cACAC,oBAEK;AACP,SAASC,iBAAiB;;AAc1B,IAAA,gBAAe,MACbC,YAAYC,aAAaC,OAAO;EAC9BC,WAAWC,KAAKC,IAAI;IAClBC,MAAM;IACNC,aAAa;;;;IAIbC,SAAS;;IAETC,QAAQC,OAAOC,OAAO;MACpBN,IAAIK,OAAOE,OAAOC,YAAY;QAC5BN,aAAa;MACf,CAAA;IACF,CAAA;IACAO,SAAS,OAAO,EAAET,GAAE,GAAI,EAAEU,WAAU,MAAE;AACpCC,gBAAUD,YAAAA,QAAAA;;;;;;;;;AACV,YAAM,EAAEE,SAASC,UAAUC,KAAI,IAAKJ;AACpCC,gBAAUC,SAAS,eAAA;;;;;;;;;AACnBD,gBAAUE,UAAU,wBAAA;;;;;;;;;AAEpB,UAAIC,SAAS,QAAQ;AACnB,cAAM,EAAEC,MAAMC,MAAK,IAAK,MAAMH,SAC5BI,aAAaC,WAAWC,iBAAiB;UACvCC,SAASR;UACTS,WAAWrB;QACb,CAAA,CAAA;AAEF,YAAIgB,OAAO;AACT,iBAAOM,WAAWC,MAAMP,MAAMQ,OAAO;QACvC;AAEA,eAAOF,WAAWG,QAAQV,IAAAA;MAC5B,OAAO;AACL,cAAM,EAAEA,MAAMC,MAAK,IAAK,MAAMH,SAC5BI,aAAaS,aAAaC,MAAM;UAC9BC,SAAS;YAAC5B;;UACVc,MAAM;UACNe,SAAS;YACPjB;YACAkB,aAAa;UACf;QACF,CAAA,CAAA;AAEF,YAAId,OAAO;AACT,iBAAOM,WAAWC,MAAMP,MAAMQ,OAAO;QACvC;AAEA,eAAOF,WAAWG,QAAQV,IAAAA;MAC5B;IACF;EACF,CAAA;CACD;",
|
|
6
|
+
"names": ["Schema", "createTool", "ToolResult", "contributes", "createIntent", "Capabilities", "LayoutAction", "invariant", "contributes", "Capabilities", "Tools", "createTool", "meta", "id", "name", "description", "caption", "schema", "Schema", "Struct", "String", "annotations", "execute", "extensions", "invariant", "pivotId", "dispatch", "part", "data", "error", "createIntent", "DeckAction", "ChangeCompanion", "primary", "companion", "ToolResult", "Error", "message", "Success", "LayoutAction", "Open", "subject", "options", "positioning"]
|
|
7
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeckCapabilities
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KLN73CM3.mjs";
|
|
4
4
|
import {
|
|
5
5
|
defaultDeck
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YN5OZEGS.mjs";
|
|
7
7
|
import "./chunk-NSATFAEE.mjs";
|
|
8
8
|
|
|
9
9
|
// packages/plugins/plugin-deck/src/capabilities/url-handler.ts
|
|
10
10
|
import { Capabilities, contributes, createIntent, LayoutAction } from "@dxos/app-framework";
|
|
11
11
|
import { scheduledEffect } from "@dxos/echo-signals/core";
|
|
12
12
|
var url_handler_default = async (context) => {
|
|
13
|
-
const { dispatchPromise: dispatch } = context.
|
|
14
|
-
const state = context.
|
|
13
|
+
const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);
|
|
14
|
+
const state = context.getCapability(DeckCapabilities.MutableDeckState);
|
|
15
15
|
const handleNavigation = async () => {
|
|
16
16
|
const pathname = window.location.pathname;
|
|
17
17
|
if (pathname === "/reset") {
|
|
@@ -67,4 +67,4 @@ var url_handler_default = async (context) => {
|
|
|
67
67
|
export {
|
|
68
68
|
url_handler_default as default
|
|
69
69
|
};
|
|
70
|
-
//# sourceMappingURL=url-handler-
|
|
70
|
+
//# sourceMappingURL=url-handler-BUGI6XRE.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/url-handler.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capabilities, contributes, createIntent, LayoutAction, type PluginContext } from '@dxos/app-framework';\nimport { scheduledEffect } from '@dxos/echo-signals/core';\n\nimport { DeckCapabilities } from './capabilities';\nimport { defaultDeck } from '../types';\n\n// TODO(wittjosiah): Cleanup the url handling. May justify introducing routing capabilities.\nexport default async (context: PluginContext) => {\n const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);\n const state = context.getCapability(DeckCapabilities.MutableDeckState);\n\n const handleNavigation = async () => {\n const pathname = window.location.pathname;\n if (pathname === '/reset') {\n state.activeDeck = 'default';\n state.decks = {\n default: { ...defaultDeck },\n };\n window.location.pathname = '/';\n return;\n }\n\n const [_, nextDeck, nextSolo] = pathname.split('/');\n if (nextDeck && nextDeck !== state.activeDeck) {\n await dispatch(createIntent(LayoutAction.SwitchWorkspace, { part: 'workspace', subject: nextDeck }));\n }\n\n if (nextSolo && nextSolo !== state.deck.solo) {\n await dispatch(\n createIntent(LayoutAction.SetLayoutMode, { part: 'mode', subject: nextSolo, options: { mode: 'solo' } }),\n );\n } else if (!nextSolo && state.deck.solo) {\n await dispatch(createIntent(LayoutAction.SetLayoutMode, { part: 'mode', options: { mode: 'deck' } }));\n }\n };\n\n await handleNavigation();\n window.addEventListener('popstate', handleNavigation);\n\n const unsubscribe = scheduledEffect(\n () => ({ solo: state.deck.solo, activeDeck: state.activeDeck }),\n ({ solo, activeDeck }) => {\n const path = solo ? `/${activeDeck}/${solo}` : `/${activeDeck}`;\n if (window.location.pathname !== path) {\n // TODO(thure): In some browsers, this only preserves the most recent state change, even though this is not `history.replace`…\n history.pushState(null, '', `${path}${window.location.search}`);\n }\n },\n );\n\n return contributes(Capabilities.Null, null, () => {\n window.removeEventListener('popstate', handleNavigation);\n unsubscribe();\n });\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAIA,SAASA,cAAcC,aAAaC,cAAcC,oBAAwC;AAC1F,SAASC,uBAAuB;AAMhC,IAAA,sBAAe,OAAOC,YAAAA;AACpB,QAAM,EAAEC,iBAAiBC,SAAQ,IAAKF,QAAQG,cAAcC,aAAaC,gBAAgB;AACzF,QAAMC,QAAQN,QAAQG,cAAcI,iBAAiBC,gBAAgB;AAErE,QAAMC,mBAAmB,YAAA;AACvB,UAAMC,WAAWC,OAAOC,SAASF;AACjC,QAAIA,aAAa,UAAU;AACzBJ,YAAMO,aAAa;AACnBP,YAAMQ,QAAQ;QACZC,SAAS;UAAE,GAAGC;QAAY;MAC5B;AACAL,aAAOC,SAASF,WAAW;AAC3B;IACF;AAEA,UAAM,CAACO,GAAGC,UAAUC,QAAAA,IAAYT,SAASU,MAAM,GAAA;AAC/C,QAAIF,YAAYA,aAAaZ,MAAMO,YAAY;AAC7C,YAAMX,SAASmB,aAAaC,aAAaC,iBAAiB;QAAEC,MAAM;QAAaC,SAASP;MAAS,CAAA,CAAA;IACnG;AAEA,QAAIC,YAAYA,aAAab,MAAMoB,KAAKC,MAAM;AAC5C,YAAMzB,SACJmB,aAAaC,aAAaM,eAAe;QAAEJ,MAAM;QAAQC,SAASN;QAAUU,SAAS;UAAEC,MAAM;QAAO;MAAE,CAAA,CAAA;IAE1G,WAAW,CAACX,YAAYb,MAAMoB,KAAKC,MAAM;AACvC,YAAMzB,SAASmB,aAAaC,aAAaM,eAAe;QAAEJ,MAAM;QAAQK,SAAS;UAAEC,MAAM;QAAO;MAAE,CAAA,CAAA;IACpG;EACF;AAEA,QAAMrB,iBAAAA;AACNE,SAAOoB,iBAAiB,YAAYtB,gBAAAA;AAEpC,QAAMuB,cAAcC,gBAClB,OAAO;IAAEN,MAAMrB,MAAMoB,KAAKC;IAAMd,YAAYP,MAAMO;EAAW,IAC7D,CAAC,EAAEc,MAAMd,WAAU,MAAE;AACnB,UAAMqB,OAAOP,OAAO,IAAId,UAAAA,IAAcc,IAAAA,KAAS,IAAId,UAAAA;AACnD,QAAIF,OAAOC,SAASF,aAAawB,MAAM;AAErCC,cAAQC,UAAU,MAAM,IAAI,GAAGF,IAAAA,GAAOvB,OAAOC,SAASyB,MAAM,EAAE;IAChE;EACF,CAAA;AAGF,SAAOC,YAAYlC,aAAamC,MAAM,MAAM,MAAA;AAC1C5B,WAAO6B,oBAAoB,YAAY/B,gBAAAA;AACvCuB,gBAAAA;EACF,CAAA;AACF;",
|
|
6
|
+
"names": ["Capabilities", "contributes", "createIntent", "LayoutAction", "scheduledEffect", "context", "dispatchPromise", "dispatch", "getCapability", "Capabilities", "IntentDispatcher", "state", "DeckCapabilities", "MutableDeckState", "handleNavigation", "pathname", "window", "location", "activeDeck", "decks", "default", "defaultDeck", "_", "nextDeck", "nextSolo", "split", "createIntent", "LayoutAction", "SwitchWorkspace", "part", "subject", "deck", "solo", "SetLayoutMode", "options", "mode", "addEventListener", "unsubscribe", "scheduledEffect", "path", "history", "pushState", "search", "contributes", "Null", "removeEventListener"]
|
|
7
|
+
}
|
|
@@ -1,181 +1,4 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
|
|
3
|
-
declare const _default: (context: PluginsContext) => import("@dxos/app-framework").Capability<Readonly<{
|
|
4
|
-
id: string;
|
|
5
|
-
position: import("@dxos/util").Position;
|
|
6
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
7
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
8
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
9
|
-
type?: string;
|
|
10
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
11
|
-
}> | Readonly<{
|
|
12
|
-
id: string;
|
|
13
|
-
position: import("@dxos/util").Position;
|
|
14
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
15
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
16
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
17
|
-
type?: string;
|
|
18
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
19
|
-
}>[] | (Readonly<{
|
|
20
|
-
id: string;
|
|
21
|
-
position: import("@dxos/util").Position;
|
|
22
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
23
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
24
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
25
|
-
type?: string;
|
|
26
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
27
|
-
}> | Readonly<{
|
|
28
|
-
id: string;
|
|
29
|
-
position: import("@dxos/util").Position;
|
|
30
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
31
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
32
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
33
|
-
type?: string;
|
|
34
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
35
|
-
}>[] | (Readonly<{
|
|
36
|
-
id: string;
|
|
37
|
-
position: import("@dxos/util").Position;
|
|
38
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
39
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
40
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
41
|
-
type?: string;
|
|
42
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
43
|
-
}> | Readonly<{
|
|
44
|
-
id: string;
|
|
45
|
-
position: import("@dxos/util").Position;
|
|
46
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
47
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
48
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
49
|
-
type?: string;
|
|
50
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
51
|
-
}>[] | (Readonly<{
|
|
52
|
-
id: string;
|
|
53
|
-
position: import("@dxos/util").Position;
|
|
54
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
55
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
56
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
57
|
-
type?: string;
|
|
58
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
59
|
-
}> | Readonly<{
|
|
60
|
-
id: string;
|
|
61
|
-
position: import("@dxos/util").Position;
|
|
62
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
63
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
64
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
65
|
-
type?: string;
|
|
66
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
67
|
-
}>[] | (Readonly<{
|
|
68
|
-
id: string;
|
|
69
|
-
position: import("@dxos/util").Position;
|
|
70
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
71
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
72
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
73
|
-
type?: string;
|
|
74
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
75
|
-
}> | Readonly<{
|
|
76
|
-
id: string;
|
|
77
|
-
position: import("@dxos/util").Position;
|
|
78
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
79
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
80
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
81
|
-
type?: string;
|
|
82
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
83
|
-
}>[] | (Readonly<{
|
|
84
|
-
id: string;
|
|
85
|
-
position: import("@dxos/util").Position;
|
|
86
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
87
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
88
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
89
|
-
type?: string;
|
|
90
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
91
|
-
}> | Readonly<{
|
|
92
|
-
id: string;
|
|
93
|
-
position: import("@dxos/util").Position;
|
|
94
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
95
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
96
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
97
|
-
type?: string;
|
|
98
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
99
|
-
}>[] | (Readonly<{
|
|
100
|
-
id: string;
|
|
101
|
-
position: import("@dxos/util").Position;
|
|
102
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
103
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
104
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
105
|
-
type?: string;
|
|
106
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
107
|
-
}> | Readonly<{
|
|
108
|
-
id: string;
|
|
109
|
-
position: import("@dxos/util").Position;
|
|
110
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
111
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
112
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
113
|
-
type?: string;
|
|
114
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
115
|
-
}>[] | (Readonly<{
|
|
116
|
-
id: string;
|
|
117
|
-
position: import("@dxos/util").Position;
|
|
118
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
119
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
120
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
121
|
-
type?: string;
|
|
122
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
123
|
-
}> | Readonly<{
|
|
124
|
-
id: string;
|
|
125
|
-
position: import("@dxos/util").Position;
|
|
126
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
127
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
128
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
129
|
-
type?: string;
|
|
130
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
131
|
-
}>[] | (Readonly<{
|
|
132
|
-
id: string;
|
|
133
|
-
position: import("@dxos/util").Position;
|
|
134
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
135
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
136
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
137
|
-
type?: string;
|
|
138
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
139
|
-
}> | Readonly<{
|
|
140
|
-
id: string;
|
|
141
|
-
position: import("@dxos/util").Position;
|
|
142
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
143
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
144
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
145
|
-
type?: string;
|
|
146
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
147
|
-
}>[] | (Readonly<{
|
|
148
|
-
id: string;
|
|
149
|
-
position: import("@dxos/util").Position;
|
|
150
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
151
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
152
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
153
|
-
type?: string;
|
|
154
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
155
|
-
}> | Readonly<{
|
|
156
|
-
id: string;
|
|
157
|
-
position: import("@dxos/util").Position;
|
|
158
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
159
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
160
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
161
|
-
type?: string;
|
|
162
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
163
|
-
}>[] | (any[] | Readonly<{
|
|
164
|
-
id: string;
|
|
165
|
-
position: import("@dxos/util").Position;
|
|
166
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
167
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
168
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
169
|
-
type?: string;
|
|
170
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
171
|
-
}> | Readonly<{
|
|
172
|
-
id: string;
|
|
173
|
-
position: import("@dxos/util").Position;
|
|
174
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
175
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
176
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
177
|
-
type?: string;
|
|
178
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
179
|
-
}>[])[])[])[])[])[])[])[])[])[])[]>;
|
|
1
|
+
import { type PluginContext } from '@dxos/app-framework';
|
|
2
|
+
declare const _default: (context: PluginContext) => import("@dxos/app-framework").Capability<import("@dxos/app-graph").BuilderExtensions>;
|
|
180
3
|
export default _default;
|
|
181
4
|
//# sourceMappingURL=app-graph-builder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAOA,OAAO,EAAyD,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;yBAOhG,SAAS,aAAa;AAAtC,wBA8HI"}
|
|
@@ -21,13 +21,18 @@ export declare namespace DeckCapabilities {
|
|
|
21
21
|
complementarySidebarState: "closed" | "collapsed" | "expanded";
|
|
22
22
|
complementarySidebarPanel?: string | undefined;
|
|
23
23
|
dialogOpen: boolean;
|
|
24
|
-
dialogContent?: any;
|
|
25
|
-
dialogBlockAlign?: "start" | "end" | "center" | undefined;
|
|
26
24
|
dialogType?: "default" | "alert" | undefined;
|
|
25
|
+
dialogBlockAlign?: "start" | "end" | "center" | undefined;
|
|
26
|
+
dialogOverlayClasses?: string | undefined;
|
|
27
|
+
dialogOverlayStyle?: {
|
|
28
|
+
readonly [x: string]: any;
|
|
29
|
+
} | undefined;
|
|
30
|
+
dialogContent?: any;
|
|
27
31
|
popoverOpen: boolean;
|
|
28
32
|
popoverSide?: "top" | "right" | "bottom" | "left" | undefined;
|
|
29
|
-
|
|
33
|
+
popoverAnchor?: any;
|
|
30
34
|
popoverAnchorId?: string | undefined;
|
|
35
|
+
popoverContent?: any;
|
|
31
36
|
toasts: {
|
|
32
37
|
readonly id: string;
|
|
33
38
|
readonly title?: string | [string, {
|
|
@@ -76,7 +81,7 @@ export declare namespace DeckCapabilities {
|
|
|
76
81
|
};
|
|
77
82
|
};
|
|
78
83
|
previousMode: {
|
|
79
|
-
[x: string]: "solo" | "deck" | "fullscreen";
|
|
84
|
+
[x: string]: "solo" | "deck" | "solo--fullscreen";
|
|
80
85
|
};
|
|
81
86
|
scrollIntoView?: string | undefined;
|
|
82
87
|
}>>;
|
|
@@ -101,13 +106,18 @@ export declare namespace DeckCapabilities {
|
|
|
101
106
|
complementarySidebarState: "closed" | "collapsed" | "expanded";
|
|
102
107
|
complementarySidebarPanel?: string | undefined;
|
|
103
108
|
dialogOpen: boolean;
|
|
104
|
-
dialogContent?: any;
|
|
105
|
-
dialogBlockAlign?: "start" | "end" | "center" | undefined;
|
|
106
109
|
dialogType?: "default" | "alert" | undefined;
|
|
110
|
+
dialogBlockAlign?: "start" | "end" | "center" | undefined;
|
|
111
|
+
dialogOverlayClasses?: string | undefined;
|
|
112
|
+
dialogOverlayStyle?: {
|
|
113
|
+
readonly [x: string]: any;
|
|
114
|
+
} | undefined;
|
|
115
|
+
dialogContent?: any;
|
|
107
116
|
popoverOpen: boolean;
|
|
108
117
|
popoverSide?: "top" | "right" | "bottom" | "left" | undefined;
|
|
109
|
-
|
|
118
|
+
popoverAnchor?: any;
|
|
110
119
|
popoverAnchorId?: string | undefined;
|
|
120
|
+
popoverContent?: any;
|
|
111
121
|
toasts: {
|
|
112
122
|
readonly id: string;
|
|
113
123
|
readonly title?: string | [string, {
|
|
@@ -156,7 +166,7 @@ export declare namespace DeckCapabilities {
|
|
|
156
166
|
};
|
|
157
167
|
};
|
|
158
168
|
previousMode: {
|
|
159
|
-
[x: string]: "solo" | "deck" | "fullscreen";
|
|
169
|
+
[x: string]: "solo" | "deck" | "solo--fullscreen";
|
|
160
170
|
};
|
|
161
171
|
scrollIntoView?: string | undefined;
|
|
162
172
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/capabilities.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAK/C,yBAAiB,gBAAgB,CAAC;IACzB,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/capabilities.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAK/C,yBAAiB,gBAAgB,CAAC;IACzB,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAqF,CAAC;IACrG,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAuE,CAAC;CACtG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
declare const _default: (context:
|
|
1
|
+
import { type PluginContext } from '@dxos/app-framework';
|
|
2
|
+
declare const _default: (context: PluginContext) => Promise<import("@dxos/app-framework").Capability<null>>;
|
|
3
3
|
export default _default;
|
|
4
4
|
//# sourceMappingURL=check-app-scheme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-app-scheme.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/check-app-scheme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"check-app-scheme.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/check-app-scheme.ts"],"names":[],"mappings":"AAIA,OAAO,EAA6B,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;yBA4B9D,SAAS,aAAa;AAA5C,wBAOE"}
|
|
@@ -1,190 +1,15 @@
|
|
|
1
|
-
export declare const AppGraphBuilder: (props?: import("@dxos/app-framework").
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
7
|
-
type?: string;
|
|
8
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
9
|
-
}> | Readonly<{
|
|
10
|
-
id: string;
|
|
11
|
-
position: import("@dxos/util").Position;
|
|
12
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
13
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
14
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
15
|
-
type?: string;
|
|
16
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
17
|
-
}>[] | (Readonly<{
|
|
18
|
-
id: string;
|
|
19
|
-
position: import("@dxos/util").Position;
|
|
20
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
21
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
22
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
23
|
-
type?: string;
|
|
24
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
25
|
-
}> | Readonly<{
|
|
26
|
-
id: string;
|
|
27
|
-
position: import("@dxos/util").Position;
|
|
28
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
29
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
30
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
31
|
-
type?: string;
|
|
32
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
33
|
-
}>[] | (Readonly<{
|
|
34
|
-
id: string;
|
|
35
|
-
position: import("@dxos/util").Position;
|
|
36
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
37
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
38
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
39
|
-
type?: string;
|
|
40
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
41
|
-
}> | Readonly<{
|
|
42
|
-
id: string;
|
|
43
|
-
position: import("@dxos/util").Position;
|
|
44
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
45
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
46
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
47
|
-
type?: string;
|
|
48
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
49
|
-
}>[] | (Readonly<{
|
|
50
|
-
id: string;
|
|
51
|
-
position: import("@dxos/util").Position;
|
|
52
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
53
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
54
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
55
|
-
type?: string;
|
|
56
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
57
|
-
}> | Readonly<{
|
|
58
|
-
id: string;
|
|
59
|
-
position: import("@dxos/util").Position;
|
|
60
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
61
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
62
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
63
|
-
type?: string;
|
|
64
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
65
|
-
}>[] | (Readonly<{
|
|
66
|
-
id: string;
|
|
67
|
-
position: import("@dxos/util").Position;
|
|
68
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
69
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
70
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
71
|
-
type?: string;
|
|
72
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
73
|
-
}> | Readonly<{
|
|
74
|
-
id: string;
|
|
75
|
-
position: import("@dxos/util").Position;
|
|
76
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
77
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
78
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
79
|
-
type?: string;
|
|
80
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
81
|
-
}>[] | (Readonly<{
|
|
82
|
-
id: string;
|
|
83
|
-
position: import("@dxos/util").Position;
|
|
84
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
85
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
86
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
87
|
-
type?: string;
|
|
88
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
89
|
-
}> | Readonly<{
|
|
90
|
-
id: string;
|
|
91
|
-
position: import("@dxos/util").Position;
|
|
92
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
93
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
94
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
95
|
-
type?: string;
|
|
96
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
97
|
-
}>[] | (Readonly<{
|
|
98
|
-
id: string;
|
|
99
|
-
position: import("@dxos/util").Position;
|
|
100
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
101
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
102
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
103
|
-
type?: string;
|
|
104
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
105
|
-
}> | Readonly<{
|
|
106
|
-
id: string;
|
|
107
|
-
position: import("@dxos/util").Position;
|
|
108
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
109
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
110
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
111
|
-
type?: string;
|
|
112
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
113
|
-
}>[] | (Readonly<{
|
|
114
|
-
id: string;
|
|
115
|
-
position: import("@dxos/util").Position;
|
|
116
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
117
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
118
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
119
|
-
type?: string;
|
|
120
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
121
|
-
}> | Readonly<{
|
|
122
|
-
id: string;
|
|
123
|
-
position: import("@dxos/util").Position;
|
|
124
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
125
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
126
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
127
|
-
type?: string;
|
|
128
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
129
|
-
}>[] | (Readonly<{
|
|
130
|
-
id: string;
|
|
131
|
-
position: import("@dxos/util").Position;
|
|
132
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
133
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
134
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
135
|
-
type?: string;
|
|
136
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
137
|
-
}> | Readonly<{
|
|
138
|
-
id: string;
|
|
139
|
-
position: import("@dxos/util").Position;
|
|
140
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
141
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
142
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
143
|
-
type?: string;
|
|
144
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
145
|
-
}>[] | (Readonly<{
|
|
146
|
-
id: string;
|
|
147
|
-
position: import("@dxos/util").Position;
|
|
148
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
149
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
150
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
151
|
-
type?: string;
|
|
152
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
153
|
-
}> | Readonly<{
|
|
154
|
-
id: string;
|
|
155
|
-
position: import("@dxos/util").Position;
|
|
156
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
157
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
158
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
159
|
-
type?: string;
|
|
160
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
161
|
-
}>[] | (any[] | Readonly<{
|
|
162
|
-
id: string;
|
|
163
|
-
position: import("@dxos/util").Position;
|
|
164
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
165
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
166
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
167
|
-
type?: string;
|
|
168
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
169
|
-
}> | Readonly<{
|
|
170
|
-
id: string;
|
|
171
|
-
position: import("@dxos/util").Position;
|
|
172
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
173
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
174
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
175
|
-
type?: string;
|
|
176
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
177
|
-
}>[])[])[])[])[])[])[])[])[])[])[]> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
178
|
-
export declare const CheckAppScheme: (props?: import("@dxos/app-framework").PluginsContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<null> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
179
|
-
export declare const LayoutIntentResolver: (props?: import("@dxos/app-framework").PluginsContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.IntentResolver> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
1
|
+
export declare const AppGraphBuilder: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-graph").BuilderExtensions> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
2
|
+
export declare const CheckAppScheme: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<null> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
3
|
+
export declare const DeckSettings: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.Settings> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
4
|
+
export declare const DeckState: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").AnyCapability[] | import("@dxos/app-framework").Capability<unknown>>>;
|
|
5
|
+
export declare const LayoutIntentResolver: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.IntentResolver> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
180
6
|
export declare const ReactRoot: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<Readonly<{
|
|
181
7
|
id: string;
|
|
182
8
|
root: import("react").FC<import("react").PropsWithChildren>;
|
|
183
9
|
}>> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
184
10
|
export declare const ReactSurface: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.ReactSurface> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
185
|
-
export declare const
|
|
186
|
-
export declare const
|
|
187
|
-
export declare const Tools: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/artifact").Tool[]> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
188
|
-
export declare const UrlHandler: (props?: import("@dxos/app-framework").PluginsContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<null> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
11
|
+
export declare const Tools: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/ai").ExecutableTool[]> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
12
|
+
export declare const UrlHandler: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<null> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
189
13
|
export * from './capabilities';
|
|
14
|
+
export * from './state';
|
|
190
15
|
//# sourceMappingURL=index.d.ts.map
|