@dxos/app-framework 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-S4MYSHQA.mjs +137 -0
- package/dist/lib/browser/app-graph-builder-S4MYSHQA.mjs.map +7 -0
- package/dist/lib/browser/{chunk-GNLU3GAU.mjs → chunk-BCMEJONP.mjs} +660 -823
- package/dist/lib/browser/chunk-BCMEJONP.mjs.map +7 -0
- package/dist/lib/browser/chunk-QS4J6O47.mjs +285 -0
- package/dist/lib/browser/chunk-QS4J6O47.mjs.map +7 -0
- package/dist/lib/browser/chunk-SRZH2PQ2.mjs +32 -0
- package/dist/lib/browser/chunk-SRZH2PQ2.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +57 -74
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/intent-dispatcher-GFBH7T2J.mjs +11 -0
- package/dist/lib/browser/intent-dispatcher-GFBH7T2J.mjs.map +7 -0
- package/dist/lib/browser/intent-resolver-KAFM7CQH.mjs +39 -0
- package/dist/lib/browser/intent-resolver-KAFM7CQH.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/store-L3VRR7II.mjs +29 -0
- package/dist/lib/browser/store-L3VRR7II.mjs.map +7 -0
- package/dist/lib/browser/testing/index.mjs +13 -3
- package/dist/lib/browser/testing/index.mjs.map +3 -3
- package/dist/lib/browser/worker.mjs +77 -0
- package/dist/lib/browser/worker.mjs.map +7 -0
- package/dist/lib/node/app-graph-builder-VMHWFCTP.cjs +146 -0
- package/dist/lib/node/app-graph-builder-VMHWFCTP.cjs.map +7 -0
- package/dist/lib/node/chunk-7Y6KJ3OK.cjs +1466 -0
- package/dist/lib/node/chunk-7Y6KJ3OK.cjs.map +7 -0
- package/dist/lib/node/chunk-B65NJEIJ.cjs +308 -0
- package/dist/lib/node/chunk-B65NJEIJ.cjs.map +7 -0
- package/dist/lib/node/chunk-VCIHQZSN.cjs +58 -0
- package/dist/lib/node/chunk-VCIHQZSN.cjs.map +7 -0
- package/dist/lib/node/index.cjs +106 -118
- package/dist/lib/node/index.cjs.map +4 -4
- package/dist/lib/node/intent-dispatcher-PRCC4KZT.cjs +32 -0
- package/dist/lib/node/intent-dispatcher-PRCC4KZT.cjs.map +7 -0
- package/dist/lib/node/intent-resolver-OZDKCHPW.cjs +46 -0
- package/dist/lib/node/intent-resolver-OZDKCHPW.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/store-BVUKNVKL.cjs +44 -0
- package/dist/lib/node/store-BVUKNVKL.cjs.map +7 -0
- package/dist/lib/node/testing/index.cjs +18 -8
- package/dist/lib/node/testing/index.cjs.map +3 -3
- package/dist/lib/node/worker.cjs +99 -0
- package/dist/lib/node/worker.cjs.map +7 -0
- package/dist/lib/node-esm/app-graph-builder-XHI5IIXQ.mjs +138 -0
- package/dist/lib/node-esm/app-graph-builder-XHI5IIXQ.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-CBT75GCX.mjs +34 -0
- package/dist/lib/node-esm/chunk-CBT75GCX.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-JDAHZRYQ.mjs +286 -0
- package/dist/lib/node-esm/chunk-JDAHZRYQ.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-KPMTPXQI.mjs → chunk-TVIR2PHY.mjs} +660 -823
- package/dist/lib/node-esm/chunk-TVIR2PHY.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +57 -74
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/intent-dispatcher-LGACN32C.mjs +12 -0
- package/dist/lib/node-esm/intent-dispatcher-LGACN32C.mjs.map +7 -0
- package/dist/lib/node-esm/intent-resolver-RBNG76ZX.mjs +40 -0
- package/dist/lib/node-esm/intent-resolver-RBNG76ZX.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/store-PHTOEREN.mjs +30 -0
- package/dist/lib/node-esm/store-PHTOEREN.mjs.map +7 -0
- package/dist/lib/node-esm/testing/index.mjs +13 -3
- package/dist/lib/node-esm/testing/index.mjs.map +3 -3
- package/dist/lib/node-esm/worker.mjs +78 -0
- package/dist/lib/node-esm/worker.mjs.map +7 -0
- package/dist/types/src/App.d.ts +2 -2
- package/dist/types/src/App.d.ts.map +1 -1
- package/dist/types/src/common/capabilities.d.ts +88 -124
- package/dist/types/src/common/capabilities.d.ts.map +1 -1
- package/dist/types/src/common/events.d.ts +22 -11
- package/dist/types/src/common/events.d.ts.map +1 -1
- package/dist/types/src/common/file.d.ts +1 -1
- package/dist/types/src/common/file.d.ts.map +1 -1
- package/dist/types/src/common/graph.d.ts +2 -2
- package/dist/types/src/common/graph.d.ts.map +1 -1
- package/dist/types/src/common/index.d.ts +0 -1
- package/dist/types/src/common/index.d.ts.map +1 -1
- package/dist/types/src/common/layout.d.ts +218 -121
- package/dist/types/src/common/layout.d.ts.map +1 -1
- package/dist/types/src/common/surface.d.ts +3 -3
- package/dist/types/src/common/surface.d.ts.map +1 -1
- package/dist/types/src/common/translations.d.ts +7 -7
- package/dist/types/src/common/translations.d.ts.map +1 -1
- package/dist/types/src/core/capabilities.d.ts +6 -2
- package/dist/types/src/core/capabilities.d.ts.map +1 -1
- package/dist/types/src/core/manager.d.ts +2 -9
- package/dist/types/src/core/manager.d.ts.map +1 -1
- package/dist/types/src/core/plugin.d.ts +5 -2
- package/dist/types/src/core/plugin.d.ts.map +1 -1
- package/dist/types/src/playground/debug/Debug.d.ts +2 -3
- package/dist/types/src/playground/debug/Debug.d.ts.map +1 -1
- package/dist/types/src/playground/debug/plugin.d.ts +1 -1
- package/dist/types/src/playground/debug/plugin.d.ts.map +1 -1
- package/dist/types/src/playground/generator/Main.d.ts +2 -3
- package/dist/types/src/playground/generator/Main.d.ts.map +1 -1
- package/dist/types/src/playground/generator/Toolbar.d.ts +2 -3
- package/dist/types/src/playground/generator/Toolbar.d.ts.map +1 -1
- package/dist/types/src/playground/generator/generator.d.ts +5 -3
- package/dist/types/src/playground/generator/generator.d.ts.map +1 -1
- package/dist/types/src/playground/generator/plugin.d.ts +1 -1
- package/dist/types/src/playground/generator/plugin.d.ts.map +1 -1
- package/dist/types/src/playground/layout/Layout.d.ts +2 -2
- package/dist/types/src/playground/layout/Layout.d.ts.map +1 -1
- package/dist/types/src/playground/layout/plugin.d.ts +1 -1
- package/dist/types/src/playground/layout/plugin.d.ts.map +1 -1
- package/dist/types/src/playground/logger/Toolbar.d.ts +2 -3
- package/dist/types/src/playground/logger/Toolbar.d.ts.map +1 -1
- package/dist/types/src/playground/logger/plugin.d.ts +1 -1
- package/dist/types/src/playground/logger/plugin.d.ts.map +1 -1
- package/dist/types/src/playground/logger/schema.d.ts +1 -1
- package/dist/types/src/playground/logger/schema.d.ts.map +1 -1
- package/dist/types/src/playground/playground.stories.d.ts +2 -3
- package/dist/types/src/playground/playground.stories.d.ts.map +1 -1
- package/dist/types/src/plugin-intent/IntentPlugin.d.ts +1 -1
- package/dist/types/src/plugin-intent/IntentPlugin.d.ts.map +1 -1
- package/dist/types/src/plugin-intent/actions.d.ts +1 -1
- package/dist/types/src/plugin-intent/actions.d.ts.map +1 -1
- package/dist/types/src/plugin-intent/index.d.ts +0 -1
- package/dist/types/src/plugin-intent/index.d.ts.map +1 -1
- package/dist/types/src/plugin-intent/intent-dispatcher.d.ts +27 -20
- package/dist/types/src/plugin-intent/intent-dispatcher.d.ts.map +1 -1
- package/dist/types/src/plugin-intent/intent.d.ts +3 -3
- package/dist/types/src/plugin-intent/intent.d.ts.map +1 -1
- package/dist/types/src/plugin-settings/SettingsPlugin.d.ts +1 -1
- package/dist/types/src/plugin-settings/SettingsPlugin.d.ts.map +1 -1
- package/dist/types/src/plugin-settings/actions.d.ts +11 -1
- package/dist/types/src/plugin-settings/actions.d.ts.map +1 -1
- package/dist/types/src/plugin-settings/app-graph-builder.d.ts +197 -0
- package/dist/types/src/plugin-settings/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/plugin-settings/intent-resolver.d.ts +4 -0
- package/dist/types/src/plugin-settings/intent-resolver.d.ts.map +1 -0
- package/dist/types/src/plugin-settings/store.d.ts +5 -0
- package/dist/types/src/plugin-settings/store.d.ts.map +1 -0
- package/dist/types/src/plugin-settings/translations.d.ts +11 -0
- package/dist/types/src/plugin-settings/translations.d.ts.map +1 -0
- package/dist/types/src/react/ErrorBoundary.d.ts +1 -1
- package/dist/types/src/{plugin-intent → react}/IntentContext.d.ts +1 -1
- package/dist/types/src/react/IntentContext.d.ts.map +1 -0
- package/dist/types/src/react/Surface.d.ts.map +1 -1
- package/dist/types/src/react/Surface.stories.d.ts +15 -0
- package/dist/types/src/react/Surface.stories.d.ts.map +1 -0
- package/dist/types/src/react/common.d.ts +13 -0
- package/dist/types/src/react/common.d.ts.map +1 -0
- package/dist/types/src/react/index.d.ts +2 -0
- package/dist/types/src/react/index.d.ts.map +1 -1
- package/dist/types/src/react/useCapabilities.d.ts.map +1 -1
- package/dist/types/src/react/useIntentResolver.d.ts +3 -0
- package/dist/types/src/react/useIntentResolver.d.ts.map +1 -0
- package/dist/types/src/testing/withPluginManager.d.ts +6 -4
- package/dist/types/src/testing/withPluginManager.d.ts.map +1 -1
- package/dist/types/src/worker.d.ts +4 -0
- package/dist/types/src/worker.d.ts.map +1 -0
- package/package.json +29 -21
- package/project.json +4 -3
- package/src/App.tsx +17 -15
- package/src/common/capabilities.ts +30 -11
- package/src/common/events.ts +16 -2
- package/src/common/file.ts +1 -1
- package/src/common/graph.ts +2 -2
- package/src/common/index.ts +0 -1
- package/src/common/layout.ts +207 -126
- package/src/common/surface.ts +2 -2
- package/src/common/translations.ts +7 -8
- package/src/core/capabilities.ts +16 -7
- package/src/core/manager.test.ts +22 -73
- package/src/core/manager.ts +105 -91
- package/src/core/plugin.ts +6 -3
- package/src/playground/debug/plugin.ts +1 -1
- package/src/playground/generator/Toolbar.tsx +11 -11
- package/src/playground/generator/generator.ts +25 -0
- package/src/playground/generator/plugin.ts +6 -1
- package/src/playground/layout/plugin.ts +1 -1
- package/src/playground/logger/Toolbar.tsx +2 -1
- package/src/playground/logger/plugin.ts +7 -4
- package/src/playground/logger/schema.ts +1 -1
- package/src/plugin-intent/IntentPlugin.tsx +3 -43
- package/src/plugin-intent/actions.ts +1 -1
- package/src/plugin-intent/errors.ts +1 -1
- package/src/plugin-intent/index.ts +0 -1
- package/src/plugin-intent/intent-dispatcher.test.ts +48 -29
- package/src/plugin-intent/intent-dispatcher.ts +81 -42
- package/src/plugin-intent/intent.ts +5 -5
- package/src/plugin-settings/SettingsPlugin.ts +19 -13
- package/src/plugin-settings/actions.ts +11 -1
- package/src/plugin-settings/app-graph-builder.ts +122 -0
- package/src/plugin-settings/intent-resolver.ts +34 -0
- package/src/plugin-settings/store.ts +30 -0
- package/src/plugin-settings/translations.ts +17 -0
- package/src/{plugin-intent → react}/IntentContext.tsx +2 -2
- package/src/react/Surface.stories.tsx +96 -0
- package/src/react/Surface.tsx +11 -8
- package/src/react/common.ts +12 -0
- package/src/react/index.ts +2 -0
- package/src/react/useCapabilities.ts +1 -0
- package/src/react/useIntentResolver.ts +22 -0
- package/src/testing/withPluginManager.tsx +28 -4
- package/src/worker.ts +11 -0
- package/tsconfig.json +7 -13
- package/dist/lib/browser/chunk-GNLU3GAU.mjs.map +0 -7
- package/dist/lib/node/chunk-FBA4BB3J.cjs +0 -1639
- package/dist/lib/node/chunk-FBA4BB3J.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-KPMTPXQI.mjs.map +0 -7
- package/dist/types/src/common/navigation.d.ts +0 -241
- package/dist/types/src/common/navigation.d.ts.map +0 -1
- package/dist/types/src/plugin-intent/IntentContext.d.ts.map +0 -1
- package/src/common/navigation.ts +0 -199
- /package/{.eslintrc.js → .eslintrc.cjs} +0 -0
|
@@ -1,24 +1,23 @@
|
|
|
1
|
+
import { type Schema as S } from '@effect/schema';
|
|
1
2
|
import { type FC, type PropsWithChildren } from 'react';
|
|
2
3
|
import { type GraphBuilder } from '@dxos/app-graph';
|
|
4
|
+
import { type ArtifactDefinition, type Tool } from '@dxos/artifact';
|
|
3
5
|
import { type Space } from '@dxos/client-protocol';
|
|
4
|
-
import { type S } from '@dxos/echo-schema';
|
|
5
6
|
import { type RootSettingsStore } from '@dxos/local-storage';
|
|
6
|
-
import { type DeepReadonly } from '@dxos/util';
|
|
7
7
|
import { type FileInfo } from './file';
|
|
8
8
|
import { type NodeSerializer } from './graph';
|
|
9
|
-
import { type LayoutParts } from './navigation';
|
|
10
9
|
import { type SurfaceDefinition } from './surface';
|
|
11
10
|
import { type PluginManager } from '../core';
|
|
12
11
|
import { type AnyIntentResolver, type IntentContext } from '../plugin-intent';
|
|
13
12
|
export declare namespace Capabilities {
|
|
14
|
-
const PluginManager: import("
|
|
15
|
-
const Null: import("
|
|
13
|
+
const PluginManager: import("..").InterfaceDef<PluginManager>;
|
|
14
|
+
const Null: import("..").InterfaceDef<null>;
|
|
16
15
|
type ReactContext = Readonly<{
|
|
17
16
|
id: string;
|
|
18
17
|
dependsOn?: string[];
|
|
19
18
|
context: FC<PropsWithChildren>;
|
|
20
19
|
}>;
|
|
21
|
-
const ReactContext: import("
|
|
20
|
+
const ReactContext: import("..").InterfaceDef<Readonly<{
|
|
22
21
|
id: string;
|
|
23
22
|
dependsOn?: string[];
|
|
24
23
|
context: FC<PropsWithChildren>;
|
|
@@ -27,107 +26,70 @@ export declare namespace Capabilities {
|
|
|
27
26
|
id: string;
|
|
28
27
|
root: FC<PropsWithChildren>;
|
|
29
28
|
}>;
|
|
30
|
-
const ReactRoot: import("
|
|
29
|
+
const ReactRoot: import("..").InterfaceDef<Readonly<{
|
|
31
30
|
id: string;
|
|
32
31
|
root: FC<PropsWithChildren>;
|
|
33
32
|
}>>;
|
|
34
33
|
type ReactSurface = SurfaceDefinition | readonly SurfaceDefinition[];
|
|
35
|
-
const ReactSurface: import("
|
|
34
|
+
const ReactSurface: import("..").InterfaceDef<ReactSurface>;
|
|
36
35
|
type IntentResolver = AnyIntentResolver | readonly AnyIntentResolver[];
|
|
37
|
-
const IntentResolver: import("
|
|
38
|
-
const IntentDispatcher: import("
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
const IntentResolver: import("..").InterfaceDef<IntentResolver>;
|
|
37
|
+
const IntentDispatcher: import("..").InterfaceDef<IntentContext>;
|
|
38
|
+
type Layout = Readonly<{
|
|
39
|
+
mode: string;
|
|
40
|
+
dialogOpen: boolean;
|
|
41
41
|
sidebarOpen: boolean;
|
|
42
42
|
complementarySidebarOpen: boolean;
|
|
43
|
-
|
|
43
|
+
/**
|
|
44
|
+
* The id of the active workspace, where a workspace is a set of active items.
|
|
45
|
+
*/
|
|
46
|
+
workspace: string;
|
|
47
|
+
/**
|
|
48
|
+
* Identifiers of items which are currently active in the application.
|
|
49
|
+
*/
|
|
50
|
+
active: string[];
|
|
51
|
+
/**
|
|
52
|
+
* Identifiers of items which were previously active in the application.
|
|
53
|
+
*/
|
|
54
|
+
inactive: string[];
|
|
55
|
+
/**
|
|
56
|
+
* Identifier of the item which should be scrolled into view.
|
|
57
|
+
*/
|
|
58
|
+
scrollIntoView: string | undefined;
|
|
59
|
+
}>;
|
|
60
|
+
const Layout: import("..").InterfaceDef<Readonly<{
|
|
61
|
+
mode: string;
|
|
44
62
|
dialogOpen: boolean;
|
|
45
|
-
dialogContent?: any;
|
|
46
|
-
dialogBlockAlign?: "center" | "start" | undefined;
|
|
47
|
-
dialogType?: "default" | "alert" | undefined;
|
|
48
|
-
popoverOpen: boolean;
|
|
49
|
-
popoverContent?: any;
|
|
50
|
-
popoverAnchorId?: string | undefined;
|
|
51
|
-
toasts: {
|
|
52
|
-
readonly title?: string | [string, {
|
|
53
|
-
ns: string;
|
|
54
|
-
count?: number | undefined;
|
|
55
|
-
}] | undefined;
|
|
56
|
-
readonly id: string;
|
|
57
|
-
readonly description?: string | [string, {
|
|
58
|
-
ns: string;
|
|
59
|
-
count?: number | undefined;
|
|
60
|
-
}] | undefined;
|
|
61
|
-
readonly icon?: string | undefined;
|
|
62
|
-
readonly duration?: number | undefined;
|
|
63
|
-
readonly closeLabel?: string | [string, {
|
|
64
|
-
ns: string;
|
|
65
|
-
count?: number | undefined;
|
|
66
|
-
}] | undefined;
|
|
67
|
-
readonly actionLabel?: string | [string, {
|
|
68
|
-
ns: string;
|
|
69
|
-
count?: number | undefined;
|
|
70
|
-
}] | undefined;
|
|
71
|
-
readonly actionAlt?: string | [string, {
|
|
72
|
-
ns: string;
|
|
73
|
-
count?: number | undefined;
|
|
74
|
-
}] | undefined;
|
|
75
|
-
readonly onAction?: any;
|
|
76
|
-
}[];
|
|
77
|
-
scrollIntoView?: string | undefined;
|
|
78
|
-
}>>;
|
|
79
|
-
const MutableLayout: import("../core").InterfaceDef<{
|
|
80
|
-
layoutMode: "deck" | "solo" | "fullscreen";
|
|
81
63
|
sidebarOpen: boolean;
|
|
82
64
|
complementarySidebarOpen: boolean;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
readonly
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
count?: number | undefined;
|
|
110
|
-
}] | undefined;
|
|
111
|
-
readonly actionAlt?: string | [string, {
|
|
112
|
-
ns: string;
|
|
113
|
-
count?: number | undefined;
|
|
114
|
-
}] | undefined;
|
|
115
|
-
readonly onAction?: any;
|
|
116
|
-
}[];
|
|
117
|
-
scrollIntoView?: string | undefined;
|
|
118
|
-
}>;
|
|
119
|
-
type MutableLocation = {
|
|
120
|
-
active: LayoutParts;
|
|
121
|
-
closed: string[];
|
|
122
|
-
};
|
|
123
|
-
type Location = DeepReadonly<MutableLocation>;
|
|
124
|
-
const Location: import("../core").InterfaceDef<DeepReadonly<MutableLocation>>;
|
|
125
|
-
const MutableLocation: import("../core").InterfaceDef<MutableLocation>;
|
|
126
|
-
const Translations: import("../core").InterfaceDef<readonly Record<string, Record<string, string | Record<string, any>>>[]>;
|
|
127
|
-
const AppGraph: import("../core").InterfaceDef<Readonly<Pick<GraphBuilder, "graph" | "explore">>>;
|
|
128
|
-
const AppGraphBuilder: import("../core").InterfaceDef<Readonly<{
|
|
65
|
+
/**
|
|
66
|
+
* The id of the active workspace, where a workspace is a set of active items.
|
|
67
|
+
*/
|
|
68
|
+
workspace: string;
|
|
69
|
+
/**
|
|
70
|
+
* Identifiers of items which are currently active in the application.
|
|
71
|
+
*/
|
|
72
|
+
active: string[];
|
|
73
|
+
/**
|
|
74
|
+
* Identifiers of items which were previously active in the application.
|
|
75
|
+
*/
|
|
76
|
+
inactive: string[];
|
|
77
|
+
/**
|
|
78
|
+
* Identifier of the item which should be scrolled into view.
|
|
79
|
+
*/
|
|
80
|
+
scrollIntoView: string | undefined;
|
|
81
|
+
}>>;
|
|
82
|
+
const Translations: import("..").InterfaceDef<readonly {
|
|
83
|
+
readonly [x: string]: {
|
|
84
|
+
readonly [x: string]: string | {
|
|
85
|
+
readonly [x: string]: any;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
}[]>;
|
|
89
|
+
const AppGraph: import("..").InterfaceDef<Readonly<Pick<GraphBuilder, "graph" | "explore">>>;
|
|
90
|
+
const AppGraphBuilder: import("..").InterfaceDef<Readonly<{
|
|
129
91
|
id: string;
|
|
130
|
-
|
|
92
|
+
position: import("@dxos/util").Position;
|
|
131
93
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
132
94
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
133
95
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -135,7 +97,7 @@ export declare namespace Capabilities {
|
|
|
135
97
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
136
98
|
}> | Readonly<{
|
|
137
99
|
id: string;
|
|
138
|
-
|
|
100
|
+
position: import("@dxos/util").Position;
|
|
139
101
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
140
102
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
141
103
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -143,7 +105,7 @@ export declare namespace Capabilities {
|
|
|
143
105
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
144
106
|
}>[] | (Readonly<{
|
|
145
107
|
id: string;
|
|
146
|
-
|
|
108
|
+
position: import("@dxos/util").Position;
|
|
147
109
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
148
110
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
149
111
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -151,7 +113,7 @@ export declare namespace Capabilities {
|
|
|
151
113
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
152
114
|
}> | Readonly<{
|
|
153
115
|
id: string;
|
|
154
|
-
|
|
116
|
+
position: import("@dxos/util").Position;
|
|
155
117
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
156
118
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
157
119
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -159,7 +121,7 @@ export declare namespace Capabilities {
|
|
|
159
121
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
160
122
|
}>[] | (Readonly<{
|
|
161
123
|
id: string;
|
|
162
|
-
|
|
124
|
+
position: import("@dxos/util").Position;
|
|
163
125
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
164
126
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
165
127
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -167,7 +129,7 @@ export declare namespace Capabilities {
|
|
|
167
129
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
168
130
|
}> | Readonly<{
|
|
169
131
|
id: string;
|
|
170
|
-
|
|
132
|
+
position: import("@dxos/util").Position;
|
|
171
133
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
172
134
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
173
135
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -175,7 +137,7 @@ export declare namespace Capabilities {
|
|
|
175
137
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
176
138
|
}>[] | (Readonly<{
|
|
177
139
|
id: string;
|
|
178
|
-
|
|
140
|
+
position: import("@dxos/util").Position;
|
|
179
141
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
180
142
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
181
143
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -183,7 +145,7 @@ export declare namespace Capabilities {
|
|
|
183
145
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
184
146
|
}> | Readonly<{
|
|
185
147
|
id: string;
|
|
186
|
-
|
|
148
|
+
position: import("@dxos/util").Position;
|
|
187
149
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
188
150
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
189
151
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -191,7 +153,7 @@ export declare namespace Capabilities {
|
|
|
191
153
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
192
154
|
}>[] | (Readonly<{
|
|
193
155
|
id: string;
|
|
194
|
-
|
|
156
|
+
position: import("@dxos/util").Position;
|
|
195
157
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
196
158
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
197
159
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -199,7 +161,7 @@ export declare namespace Capabilities {
|
|
|
199
161
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
200
162
|
}> | Readonly<{
|
|
201
163
|
id: string;
|
|
202
|
-
|
|
164
|
+
position: import("@dxos/util").Position;
|
|
203
165
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
204
166
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
205
167
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -207,7 +169,7 @@ export declare namespace Capabilities {
|
|
|
207
169
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
208
170
|
}>[] | (Readonly<{
|
|
209
171
|
id: string;
|
|
210
|
-
|
|
172
|
+
position: import("@dxos/util").Position;
|
|
211
173
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
212
174
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
213
175
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -215,7 +177,7 @@ export declare namespace Capabilities {
|
|
|
215
177
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
216
178
|
}> | Readonly<{
|
|
217
179
|
id: string;
|
|
218
|
-
|
|
180
|
+
position: import("@dxos/util").Position;
|
|
219
181
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
220
182
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
221
183
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -223,7 +185,7 @@ export declare namespace Capabilities {
|
|
|
223
185
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
224
186
|
}>[] | (Readonly<{
|
|
225
187
|
id: string;
|
|
226
|
-
|
|
188
|
+
position: import("@dxos/util").Position;
|
|
227
189
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
228
190
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
229
191
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -231,7 +193,7 @@ export declare namespace Capabilities {
|
|
|
231
193
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
232
194
|
}> | Readonly<{
|
|
233
195
|
id: string;
|
|
234
|
-
|
|
196
|
+
position: import("@dxos/util").Position;
|
|
235
197
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
236
198
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
237
199
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -239,7 +201,7 @@ export declare namespace Capabilities {
|
|
|
239
201
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
240
202
|
}>[] | (Readonly<{
|
|
241
203
|
id: string;
|
|
242
|
-
|
|
204
|
+
position: import("@dxos/util").Position;
|
|
243
205
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
244
206
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
245
207
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -247,7 +209,7 @@ export declare namespace Capabilities {
|
|
|
247
209
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
248
210
|
}> | Readonly<{
|
|
249
211
|
id: string;
|
|
250
|
-
|
|
212
|
+
position: import("@dxos/util").Position;
|
|
251
213
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
252
214
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
253
215
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -255,7 +217,7 @@ export declare namespace Capabilities {
|
|
|
255
217
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
256
218
|
}>[] | (Readonly<{
|
|
257
219
|
id: string;
|
|
258
|
-
|
|
220
|
+
position: import("@dxos/util").Position;
|
|
259
221
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
260
222
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
261
223
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -263,7 +225,7 @@ export declare namespace Capabilities {
|
|
|
263
225
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
264
226
|
}> | Readonly<{
|
|
265
227
|
id: string;
|
|
266
|
-
|
|
228
|
+
position: import("@dxos/util").Position;
|
|
267
229
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
268
230
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
269
231
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -271,7 +233,7 @@ export declare namespace Capabilities {
|
|
|
271
233
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
272
234
|
}>[] | (Readonly<{
|
|
273
235
|
id: string;
|
|
274
|
-
|
|
236
|
+
position: import("@dxos/util").Position;
|
|
275
237
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
276
238
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
277
239
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -279,7 +241,7 @@ export declare namespace Capabilities {
|
|
|
279
241
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
280
242
|
}> | Readonly<{
|
|
281
243
|
id: string;
|
|
282
|
-
|
|
244
|
+
position: import("@dxos/util").Position;
|
|
283
245
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
284
246
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
285
247
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -287,7 +249,7 @@ export declare namespace Capabilities {
|
|
|
287
249
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
288
250
|
}>[] | (Readonly<{
|
|
289
251
|
id: string;
|
|
290
|
-
|
|
252
|
+
position: import("@dxos/util").Position;
|
|
291
253
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
292
254
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
293
255
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -295,7 +257,7 @@ export declare namespace Capabilities {
|
|
|
295
257
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
296
258
|
}> | Readonly<{
|
|
297
259
|
id: string;
|
|
298
|
-
|
|
260
|
+
position: import("@dxos/util").Position;
|
|
299
261
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
300
262
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
301
263
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -303,7 +265,7 @@ export declare namespace Capabilities {
|
|
|
303
265
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
304
266
|
}>[] | (Readonly<{
|
|
305
267
|
id: string;
|
|
306
|
-
|
|
268
|
+
position: import("@dxos/util").Position;
|
|
307
269
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
308
270
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
309
271
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -311,30 +273,32 @@ export declare namespace Capabilities {
|
|
|
311
273
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
312
274
|
}> | Readonly<{
|
|
313
275
|
id: string;
|
|
314
|
-
|
|
276
|
+
position: import("@dxos/util").Position;
|
|
315
277
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
316
278
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
317
279
|
relation?: import("@dxos/app-graph").Relation;
|
|
318
280
|
type?: string;
|
|
319
281
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
320
282
|
}>[] | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]>;
|
|
321
|
-
const AppGraphSerializer: import("
|
|
322
|
-
const SettingsStore: import("
|
|
283
|
+
const AppGraphSerializer: import("..").InterfaceDef<NodeSerializer[]>;
|
|
284
|
+
const SettingsStore: import("..").InterfaceDef<RootSettingsStore>;
|
|
323
285
|
type Settings = {
|
|
324
286
|
schema: S.Schema.All;
|
|
325
287
|
prefix: string;
|
|
326
288
|
value?: Record<string, any>;
|
|
327
289
|
};
|
|
328
|
-
const Settings: import("
|
|
290
|
+
const Settings: import("..").InterfaceDef<Settings>;
|
|
329
291
|
type Metadata = Readonly<{
|
|
330
292
|
id: string;
|
|
331
293
|
metadata: Record<string, any>;
|
|
332
294
|
}>;
|
|
333
|
-
const Metadata: import("
|
|
295
|
+
const Metadata: import("..").InterfaceDef<Readonly<{
|
|
334
296
|
id: string;
|
|
335
297
|
metadata: Record<string, any>;
|
|
336
298
|
}>>;
|
|
299
|
+
const Tools: import("..").InterfaceDef<Tool[]>;
|
|
300
|
+
const ArtifactDefinition: import("..").InterfaceDef<ArtifactDefinition>;
|
|
337
301
|
type FileUploader = (file: File, space: Space) => Promise<FileInfo | undefined>;
|
|
338
|
-
const FileUploader: import("
|
|
302
|
+
const FileUploader: import("..").InterfaceDef<FileUploader>;
|
|
339
303
|
}
|
|
340
304
|
//# sourceMappingURL=capabilities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/common/capabilities.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/common/capabilities.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,IAAI,CAAC,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAExD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAEnD,OAAO,EAAoB,KAAK,aAAa,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAE9E,yBAAiB,YAAY,CAAC;IACrB,MAAM,aAAa,0CAAsF,CAAC;IAE1G,MAAM,IAAI,iCAAmE,CAAC;IAErF,KAAY,YAAY,GAAG,QAAQ,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,OAAO,EAAE,EAAE,CAAC,iBAAiB,CAAC,CAAA;KAAE,CAAC,CAAC;IACnG,MAAM,YAAY;YADiB,MAAM;oBAAc,MAAM,EAAE;iBAAW,EAAE,CAAC,iBAAiB,CAAC;OACO,CAAC;IAE9G,KAAY,SAAS,GAAG,QAAQ,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,EAAE,CAAC,iBAAiB,CAAC,CAAA;KAAE,CAAC,CAAC;IACvE,MAAM,SAAS;YADiB,MAAM;cAAQ,EAAE,CAAC,iBAAiB,CAAC;OAC0B,CAAC;IAErG,KAAY,YAAY,GAAG,iBAAiB,GAAG,SAAS,iBAAiB,EAAE,CAAC;IACrE,MAAM,YAAY,yCAAgF,CAAC;IAE1G,KAAY,cAAc,GAAG,iBAAiB,GAAG,SAAS,iBAAiB,EAAE,CAAC;IACvE,MAAM,cAAc,2CAAwF,CAAC;IAE7G,MAAM,gBAAgB,0CAE5B,CAAC;IAEF,KAAY,MAAM,GAAG,QAAQ,CAAC;QAC5B,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,OAAO,CAAC;QACpB,WAAW,EAAE,OAAO,CAAC;QACrB,wBAAwB,EAAE,OAAO,CAAC;QAClC;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAClB;;WAEG;QACH,MAAM,EAAE,MAAM,EAAE,CAAC;QACjB;;WAEG;QACH,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB;;WAEG;QACH,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;KACpC,CAAC,CAAC;IACI,MAAM,MAAM;cArBX,MAAM;oBACA,OAAO;qBACN,OAAO;kCACM,OAAO;QACjC;;WAEG;mBACQ,MAAM;QACjB;;WAEG;gBACK,MAAM,EAAE;QAChB;;WAEG;kBACO,MAAM,EAAE;QAClB;;WAEG;wBACa,MAAM,GAAG,SAAS;OAEsD,CAAC;IAEpF,MAAM,YAAY;;;;;;QAA2F,CAAC;IAE9G,MAAM,QAAQ,8EAEpB,CAAC;IAEK,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2DAE3B,CAAC;IAEK,MAAM,kBAAkB,6CAE9B,CAAC;IAEK,MAAM,aAAa,8CAA0F,CAAC;IAKrH,KAAY,QAAQ,GAAG;QACrB,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;QACrB,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAC7B,CAAC;IACK,MAAM,QAAQ,qCAA2E,CAAC;IAEjG,KAAY,QAAQ,GAAG,QAAQ,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;KAAE,CAAC,CAAC;IACxE,MAAM,QAAQ;YADiB,MAAM;kBAAY,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;OACqB,CAAC;IAE1F,MAAM,KAAK,mCAAsE,CAAC;IAClF,MAAM,kBAAkB,+CAE9B,CAAC;IAEF,KAAY,YAAY,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,KAAK,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CAAC;IAChF,MAAM,YAAY,yCAAoF,CAAC;CAC/G"}
|
|
@@ -2,40 +2,51 @@ export declare namespace Events {
|
|
|
2
2
|
/**
|
|
3
3
|
* Fired when the app is started.
|
|
4
4
|
*/
|
|
5
|
-
const Startup: import("
|
|
5
|
+
const Startup: import("..").ActivationEvent;
|
|
6
|
+
/**
|
|
7
|
+
* Fired to load any newly available surfaces.
|
|
8
|
+
*/
|
|
9
|
+
const SetupReactSurface: import("..").ActivationEvent;
|
|
10
|
+
/**
|
|
11
|
+
* Fired to load any newly available metadata.
|
|
12
|
+
*/
|
|
13
|
+
const SetupMetadata: import("..").ActivationEvent;
|
|
6
14
|
/**
|
|
7
15
|
* Fired before the intent dispatcher is activated.
|
|
8
16
|
*/
|
|
9
|
-
const
|
|
17
|
+
const SetupIntentResolver: import("..").ActivationEvent;
|
|
10
18
|
/**
|
|
11
19
|
* Fired before the settings store is activated.
|
|
12
20
|
*/
|
|
13
|
-
const SetupSettings: import("
|
|
21
|
+
const SetupSettings: import("..").ActivationEvent;
|
|
14
22
|
/**
|
|
15
23
|
* Fired before the graph is created.
|
|
16
24
|
*/
|
|
17
|
-
const SetupAppGraph: import("
|
|
25
|
+
const SetupAppGraph: import("..").ActivationEvent;
|
|
18
26
|
/**
|
|
19
27
|
* Fired before the translations provider is created.
|
|
20
28
|
*/
|
|
21
|
-
const SetupTranslations: import("
|
|
29
|
+
const SetupTranslations: import("..").ActivationEvent;
|
|
30
|
+
/**
|
|
31
|
+
* Fired to load any newly available artifacts definitions.
|
|
32
|
+
*/
|
|
33
|
+
const SetupArtifactDefinition: import("..").ActivationEvent;
|
|
22
34
|
/**
|
|
23
35
|
* Fired after the intent dispatcher is ready.
|
|
24
36
|
*/
|
|
25
|
-
const DispatcherReady: import("
|
|
37
|
+
const DispatcherReady: import("..").ActivationEvent;
|
|
26
38
|
/**
|
|
27
39
|
* Fired after the settings store is ready.
|
|
28
40
|
*/
|
|
29
|
-
const SettingsReady: import("
|
|
41
|
+
const SettingsReady: import("..").ActivationEvent;
|
|
30
42
|
/**
|
|
31
43
|
* Fired when the graph is ready.
|
|
32
44
|
*/
|
|
33
|
-
const AppGraphReady: import("
|
|
45
|
+
const AppGraphReady: import("..").ActivationEvent;
|
|
34
46
|
/**
|
|
35
47
|
* Fired when plugin state is ready.
|
|
36
48
|
*/
|
|
37
|
-
const createStateEvent: (specifier: string) => import("
|
|
38
|
-
const LayoutReady: import("
|
|
39
|
-
const LocationReady: import("../core").ActivationEvent;
|
|
49
|
+
const createStateEvent: (specifier: string) => import("..").ActivationEvent;
|
|
50
|
+
const LayoutReady: import("..").ActivationEvent;
|
|
40
51
|
}
|
|
41
52
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../src/common/events.ts"],"names":[],"mappings":"AAOA,yBAAiB,MAAM,CAAC;IACtB;;OAEG;IACI,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../src/common/events.ts"],"names":[],"mappings":"AAOA,yBAAiB,MAAM,CAAC;IACtB;;OAEG;IACI,MAAM,OAAO,8BAAsD,CAAC;IAM3E;;OAEG;IACI,MAAM,iBAAiB,8BAAkE,CAAC;IAEjG;;OAEG;IACI,MAAM,aAAa,8BAA6D,CAAC;IAExF;;OAEG;IACI,MAAM,mBAAmB,8BAAoE,CAAC;IAErG;;OAEG;IACI,MAAM,aAAa,8BAA6D,CAAC;IAExF;;OAEG;IACI,MAAM,aAAa,8BAA0D,CAAC;IAErF;;OAEG;IACI,MAAM,iBAAiB,8BAAiE,CAAC;IAEhG;;OAEG;IACI,MAAM,uBAAuB,8BAAwE,CAAC;IAM7G;;OAEG;IACI,MAAM,eAAe,8BAA+D,CAAC;IAE5F;;OAEG;IACI,MAAM,aAAa,8BAA6D,CAAC;IAExF;;OAEG;IACI,MAAM,aAAa,8BAA0D,CAAC;IAErF;;OAEG;IACI,MAAM,gBAAgB,cAAe,MAAM,iCAAiE,CAAC;IAC7G,MAAM,WAAW,8BAAmD,CAAC;CAC7E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../src/common/file.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../src/common/file.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,IAAI,CAAC,EAAE,MAAM,gBAAgB,CAAC;AAI7C,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;EAKzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Node } from '@dxos/app-graph';
|
|
2
|
-
import { type MaybePromise } from '@dxos/util';
|
|
2
|
+
import { type MaybePromise, type Position } from '@dxos/util';
|
|
3
3
|
export type SerializedNode = {
|
|
4
4
|
name: string;
|
|
5
5
|
data: string;
|
|
@@ -8,7 +8,7 @@ export type SerializedNode = {
|
|
|
8
8
|
export type NodeSerializer<T = any> = {
|
|
9
9
|
inputType: string;
|
|
10
10
|
outputType: string;
|
|
11
|
-
|
|
11
|
+
position?: Position;
|
|
12
12
|
/**
|
|
13
13
|
* Takes a node and serializes it into a format that can be stored.
|
|
14
14
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../../../src/common/graph.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../../../src/common/graph.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG9D,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAGF,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG,GAAG,IAAI;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;OAEG;IACH,SAAS,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,YAAY,CAAC,cAAc,CAAC,CAAC;IAE3D;;OAEG;IACH,WAAW,EAAE,CAAC,IAAI,EAAE,cAAc,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,YAAY,CAAC,CAAC,CAAC,CAAC;CAC9E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC"}
|