@dxos/app-framework 0.7.5-main.9d2a38b → 0.7.5-main.ff8607b
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-F7VZ6LRN.mjs +137 -0
- package/dist/lib/browser/app-graph-builder-F7VZ6LRN.mjs.map +7 -0
- package/dist/lib/browser/{chunk-GNLU3GAU.mjs → chunk-ATRNTMSS.mjs} +623 -819
- package/dist/lib/browser/chunk-ATRNTMSS.mjs.map +7 -0
- package/dist/lib/browser/chunk-LDJ3T4V3.mjs +32 -0
- package/dist/lib/browser/chunk-LDJ3T4V3.mjs.map +7 -0
- package/dist/lib/browser/chunk-WS6SU6HI.mjs +285 -0
- package/dist/lib/browser/chunk-WS6SU6HI.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-E6J7E5Y5.mjs +11 -0
- package/dist/lib/browser/intent-dispatcher-E6J7E5Y5.mjs.map +7 -0
- package/dist/lib/browser/intent-resolver-XLE4L3LS.mjs +38 -0
- package/dist/lib/browser/intent-resolver-XLE4L3LS.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/store-QU2IKFAI.mjs +19 -0
- package/dist/lib/browser/store-QU2IKFAI.mjs.map +7 -0
- package/dist/lib/browser/testing/index.mjs +10 -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-JGBADFF7.cjs +146 -0
- package/dist/lib/node/app-graph-builder-JGBADFF7.cjs.map +7 -0
- package/dist/lib/node/chunk-QLVQ6PND.cjs +58 -0
- package/dist/lib/node/chunk-QLVQ6PND.cjs.map +7 -0
- package/dist/lib/node/chunk-WKC6YMEQ.cjs +1433 -0
- package/dist/lib/node/chunk-WKC6YMEQ.cjs.map +7 -0
- package/dist/lib/node/chunk-WRWRZKZU.cjs +308 -0
- package/dist/lib/node/chunk-WRWRZKZU.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-CFBKDZQR.cjs +32 -0
- package/dist/lib/node/intent-dispatcher-CFBKDZQR.cjs.map +7 -0
- package/dist/lib/node/intent-resolver-3TKCXP4S.cjs +45 -0
- package/dist/lib/node/intent-resolver-3TKCXP4S.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/store-4QMUUU2A.cjs +34 -0
- package/dist/lib/node/store-4QMUUU2A.cjs.map +7 -0
- package/dist/lib/node/testing/index.cjs +15 -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-2QEX57NX.mjs +138 -0
- package/dist/lib/node-esm/app-graph-builder-2QEX57NX.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-KPMTPXQI.mjs → chunk-44J2VZBB.mjs} +623 -819
- package/dist/lib/node-esm/chunk-44J2VZBB.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-CNJYZNSL.mjs +34 -0
- package/dist/lib/node-esm/chunk-CNJYZNSL.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HTLXL32I.mjs +286 -0
- package/dist/lib/node-esm/chunk-HTLXL32I.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-LDQGDZ62.mjs +12 -0
- package/dist/lib/node-esm/intent-dispatcher-LDQGDZ62.mjs.map +7 -0
- package/dist/lib/node-esm/intent-resolver-7VJWN67U.mjs +39 -0
- package/dist/lib/node-esm/intent-resolver-7VJWN67U.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/store-VWDAYUQY.mjs +20 -0
- package/dist/lib/node-esm/store-VWDAYUQY.mjs.map +7 -0
- package/dist/lib/node-esm/testing/index.mjs +10 -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.map +1 -1
- package/dist/types/src/common/capabilities.d.ts +63 -110
- package/dist/types/src/common/capabilities.d.ts.map +1 -1
- package/dist/types/src/common/events.d.ts +8 -1
- 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 +204 -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/generator/Toolbar.d.ts.map +1 -1
- package/dist/types/src/playground/generator/generator.d.ts +2 -0
- package/dist/types/src/playground/generator/generator.d.ts.map +1 -1
- package/dist/types/src/playground/generator/plugin.d.ts.map +1 -1
- package/dist/types/src/playground/logger/Toolbar.d.ts.map +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/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.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/{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 +16 -0
- package/dist/types/src/react/Surface.stories.d.ts.map +1 -0
- package/dist/types/src/react/common.d.ts +12 -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/useIntentResolver.d.ts +3 -0
- package/dist/types/src/react/useIntentResolver.d.ts.map +1 -0
- package/dist/types/src/testing/withPluginManager.d.ts +1 -1
- 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 +26 -20
- package/project.json +3 -3
- package/src/App.tsx +15 -14
- package/src/common/capabilities.ts +20 -11
- package/src/common/events.ts +10 -1
- 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 +194 -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 +6 -3
- 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/index.ts +0 -1
- package/src/plugin-intent/intent-dispatcher.test.ts +48 -29
- package/src/plugin-intent/intent-dispatcher.ts +76 -41
- 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 +28 -0
- package/src/plugin-settings/store.ts +20 -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/useIntentResolver.ts +22 -0
- package/src/testing/withPluginManager.tsx +11 -3
- package/src/worker.ts +11 -0
- package/tsconfig.json +3 -3
- 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
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
createApp
|
|
4
|
+
} from "../chunk-HTLXL32I.mjs";
|
|
2
5
|
import {
|
|
3
6
|
Capabilities,
|
|
4
7
|
Events,
|
|
5
8
|
PluginManager,
|
|
6
9
|
contributes,
|
|
7
|
-
createApp,
|
|
8
10
|
defineModule,
|
|
9
11
|
definePlugin
|
|
10
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-44J2VZBB.mjs";
|
|
11
13
|
|
|
12
14
|
// packages/sdk/app-framework/src/testing/withPluginManager.tsx
|
|
13
15
|
import React, { useEffect } from "react";
|
|
14
16
|
import { raise } from "@dxos/debug";
|
|
15
|
-
var
|
|
17
|
+
var setupPluginManager = ({ capabilities, plugins = [], core = plugins.map(({ meta }) => meta.id), ...options } = {}) => {
|
|
16
18
|
const pluginManager = new PluginManager({
|
|
17
19
|
pluginLoader: () => raise(new Error("Not implemented")),
|
|
18
20
|
plugins: [
|
|
@@ -34,6 +36,10 @@ var withPluginManager = ({ capabilities, plugins = [], core = plugins.map(({ met
|
|
|
34
36
|
});
|
|
35
37
|
});
|
|
36
38
|
}
|
|
39
|
+
return pluginManager;
|
|
40
|
+
};
|
|
41
|
+
var withPluginManager = (options = {}) => {
|
|
42
|
+
const pluginManager = setupPluginManager(options);
|
|
37
43
|
const App = createApp({
|
|
38
44
|
pluginManager
|
|
39
45
|
});
|
|
@@ -63,6 +69,7 @@ var StoryPlugin = () => definePlugin({
|
|
|
63
69
|
})
|
|
64
70
|
]);
|
|
65
71
|
export {
|
|
72
|
+
setupPluginManager,
|
|
66
73
|
withPluginManager
|
|
67
74
|
};
|
|
68
75
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/testing/withPluginManager.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Decorator } from '@storybook/react';\nimport React, { useEffect } from 'react';\n\nimport { raise } from '@dxos/debug';\n\nimport { createApp, type CreateAppOptions } from '../App';\nimport { Capabilities, Events } from '../common';\nimport { type AnyCapability, contributes, defineModule, definePlugin, PluginManager } from '../core';\n\n/**\n *
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["React", "useEffect", "raise", "
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Decorator } from '@storybook/react';\nimport React, { useEffect } from 'react';\n\nimport { raise } from '@dxos/debug';\n\nimport { createApp, type CreateAppOptions } from '../App';\nimport { Capabilities, Events } from '../common';\nimport { type AnyCapability, contributes, defineModule, definePlugin, PluginManager } from '../core';\n\n/**\n * @internal\n */\nexport const setupPluginManager = ({\n capabilities,\n plugins = [],\n core = plugins.map(({ meta }) => meta.id),\n ...options\n}: CreateAppOptions & { capabilities?: AnyCapability[] } = {}) => {\n const pluginManager = new PluginManager({\n pluginLoader: () => raise(new Error('Not implemented')),\n plugins: [StoryPlugin(), ...plugins],\n core: [STORY_PLUGIN, ...core],\n ...options,\n });\n\n if (capabilities) {\n capabilities.forEach((capability) => {\n pluginManager.context.contributeCapability({\n interface: capability.interface,\n implementation: capability.implementation,\n module: 'story',\n });\n });\n }\n\n return pluginManager;\n};\n\n/**\n * Wraps a story with a plugin manager.\n */\nexport const withPluginManager = (options: CreateAppOptions & { capabilities?: AnyCapability[] } = {}): Decorator => {\n const pluginManager = setupPluginManager(options);\n const App = createApp({ pluginManager });\n\n return (Story, context) => {\n useEffect(() => {\n const capability = contributes(Capabilities.ReactRoot, {\n id: context.id,\n root: () => <Story />,\n });\n\n pluginManager.context.contributeCapability({\n ...capability,\n module: 'dxos.org/app-framework/withPluginManager',\n });\n\n return () => pluginManager.context.removeCapability(capability.interface, capability.implementation);\n }, []);\n\n return <App />;\n };\n};\n\n// No-op plugin to ensure there exists at least one plugin for the startup event.\n// This is necessary because `createApp` expects the startup event to complete before the app is ready.\nconst STORY_PLUGIN = 'dxos.org/app-framework/story';\nconst StoryPlugin = () =>\n definePlugin({ id: STORY_PLUGIN }, [\n defineModule({ id: STORY_PLUGIN, activatesOn: Events.Startup, activate: () => [] }),\n ]);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;AAKA,OAAOA,SAASC,iBAAiB;AAEjC,SAASC,aAAa;AASf,IAAMC,qBAAqB,CAAC,EACjCC,cACAC,UAAU,CAAA,GACVC,OAAOD,QAAQE,IAAI,CAAC,EAAEC,KAAI,MAAOA,KAAKC,EAAE,GACxC,GAAGC,QAAAA,IACsD,CAAC,MAAC;AAC3D,QAAMC,gBAAgB,IAAIC,cAAc;IACtCC,cAAc,MAAMC,MAAM,IAAIC,MAAM,iBAAA,CAAA;IACpCV,SAAS;MAACW,YAAAA;SAAkBX;;IAC5BC,MAAM;MAACW;SAAiBX;;IACxB,GAAGI;EACL,CAAA;AAEA,MAAIN,cAAc;AAChBA,iBAAac,QAAQ,CAACC,eAAAA;AACpBR,oBAAcS,QAAQC,qBAAqB;QACzCC,WAAWH,WAAWG;QACtBC,gBAAgBJ,WAAWI;QAC3BC,QAAQ;MACV,CAAA;IACF,CAAA;EACF;AAEA,SAAOb;AACT;AAKO,IAAMc,oBAAoB,CAACf,UAAiE,CAAC,MAAC;AACnG,QAAMC,gBAAgBR,mBAAmBO,OAAAA;AACzC,QAAMgB,MAAMC,UAAU;IAAEhB;EAAc,CAAA;AAEtC,SAAO,CAACiB,OAAOR,YAAAA;AACbS,cAAU,MAAA;AACR,YAAMV,aAAaW,YAAYC,aAAaC,WAAW;QACrDvB,IAAIW,QAAQX;QACZwB,MAAM,MAAM,sBAAA,cAACL,OAAAA,IAAAA;MACf,CAAA;AAEAjB,oBAAcS,QAAQC,qBAAqB;QACzC,GAAGF;QACHK,QAAQ;MACV,CAAA;AAEA,aAAO,MAAMb,cAAcS,QAAQc,iBAAiBf,WAAWG,WAAWH,WAAWI,cAAc;IACrG,GAAG,CAAA,CAAE;AAEL,WAAO,sBAAA,cAACG,KAAAA,IAAAA;EACV;AACF;AAIA,IAAMT,eAAe;AACrB,IAAMD,cAAc,MAClBmB,aAAa;EAAE1B,IAAIQ;AAAa,GAAG;EACjCmB,aAAa;IAAE3B,IAAIQ;IAAcoB,aAAaC,OAAOC;IAASC,UAAU,MAAM,CAAA;EAAG,CAAA;CAClF;",
|
|
6
|
+
"names": ["React", "useEffect", "raise", "setupPluginManager", "capabilities", "plugins", "core", "map", "meta", "id", "options", "pluginManager", "PluginManager", "pluginLoader", "raise", "Error", "StoryPlugin", "STORY_PLUGIN", "forEach", "capability", "context", "contributeCapability", "interface", "implementation", "module", "withPluginManager", "App", "createApp", "Story", "useEffect", "contributes", "Capabilities", "ReactRoot", "root", "removeCapability", "definePlugin", "defineModule", "activatesOn", "Events", "Startup", "activate"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
Capabilities,
|
|
4
|
+
Events,
|
|
5
|
+
FileInfoSchema,
|
|
6
|
+
INTENT_ACTION,
|
|
7
|
+
INTENT_PLUGIN,
|
|
8
|
+
IntentAction,
|
|
9
|
+
IntentPlugin,
|
|
10
|
+
LAYOUT_ACTION,
|
|
11
|
+
LAYOUT_PLUGIN,
|
|
12
|
+
Label,
|
|
13
|
+
LayoutAction,
|
|
14
|
+
Plugin,
|
|
15
|
+
PluginManager,
|
|
16
|
+
PluginModule,
|
|
17
|
+
PluginsContext,
|
|
18
|
+
Resource,
|
|
19
|
+
ResourceKey,
|
|
20
|
+
ResourceLanguage,
|
|
21
|
+
allOf,
|
|
22
|
+
chain,
|
|
23
|
+
contributes,
|
|
24
|
+
createDispatcher,
|
|
25
|
+
createIntent,
|
|
26
|
+
createResolver,
|
|
27
|
+
createSurface,
|
|
28
|
+
defaultFileTypes,
|
|
29
|
+
defineCapability,
|
|
30
|
+
defineEvent,
|
|
31
|
+
defineModule,
|
|
32
|
+
definePlugin,
|
|
33
|
+
eventKey,
|
|
34
|
+
getEvents,
|
|
35
|
+
isAllOf,
|
|
36
|
+
isOneOf,
|
|
37
|
+
lazy,
|
|
38
|
+
oneOf
|
|
39
|
+
} from "./chunk-44J2VZBB.mjs";
|
|
40
|
+
export {
|
|
41
|
+
Capabilities,
|
|
42
|
+
Events,
|
|
43
|
+
FileInfoSchema,
|
|
44
|
+
INTENT_ACTION,
|
|
45
|
+
INTENT_PLUGIN,
|
|
46
|
+
IntentAction,
|
|
47
|
+
IntentPlugin,
|
|
48
|
+
LAYOUT_ACTION,
|
|
49
|
+
LAYOUT_PLUGIN,
|
|
50
|
+
Label,
|
|
51
|
+
LayoutAction,
|
|
52
|
+
Plugin,
|
|
53
|
+
PluginManager,
|
|
54
|
+
PluginModule,
|
|
55
|
+
PluginsContext,
|
|
56
|
+
Resource,
|
|
57
|
+
ResourceKey,
|
|
58
|
+
ResourceLanguage,
|
|
59
|
+
allOf,
|
|
60
|
+
chain,
|
|
61
|
+
contributes,
|
|
62
|
+
createDispatcher,
|
|
63
|
+
createIntent,
|
|
64
|
+
createResolver,
|
|
65
|
+
createSurface,
|
|
66
|
+
defaultFileTypes,
|
|
67
|
+
defineCapability,
|
|
68
|
+
defineEvent,
|
|
69
|
+
defineModule,
|
|
70
|
+
definePlugin,
|
|
71
|
+
eventKey,
|
|
72
|
+
getEvents,
|
|
73
|
+
isAllOf,
|
|
74
|
+
isOneOf,
|
|
75
|
+
lazy,
|
|
76
|
+
oneOf
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=worker.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/App.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAA0B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAMtE,OAAO,EAAE,aAAa,EAAE,KAAK,oBAAoB,EAAE,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE/E,OAAO,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/App.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAA0B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAMtE,OAAO,EAAE,aAAa,EAAE,KAAK,oBAAoB,EAAE,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE/E,OAAO,EAAE,aAAa,EAA0C,MAAM,SAAS,CAAC;AAIhF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,YAAY,CAAC,EAAE,oBAAoB,CAAC,cAAc,CAAC,CAAC;IACpD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,CAAC;IAC9C,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,SAAS,kHASnB,gBAAgB,4BAgDlB,CAAC"}
|
|
@@ -1,12 +1,10 @@
|
|
|
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';
|
|
3
4
|
import { type Space } from '@dxos/client-protocol';
|
|
4
|
-
import { type S } from '@dxos/echo-schema';
|
|
5
5
|
import { type RootSettingsStore } from '@dxos/local-storage';
|
|
6
|
-
import { type DeepReadonly } from '@dxos/util';
|
|
7
6
|
import { type FileInfo } from './file';
|
|
8
7
|
import { type NodeSerializer } from './graph';
|
|
9
|
-
import { type LayoutParts } from './navigation';
|
|
10
8
|
import { type SurfaceDefinition } from './surface';
|
|
11
9
|
import { type PluginManager } from '../core';
|
|
12
10
|
import { type AnyIntentResolver, type IntentContext } from '../plugin-intent';
|
|
@@ -36,98 +34,53 @@ export declare namespace Capabilities {
|
|
|
36
34
|
type IntentResolver = AnyIntentResolver | readonly AnyIntentResolver[];
|
|
37
35
|
const IntentResolver: import("../core").InterfaceDef<IntentResolver>;
|
|
38
36
|
const IntentDispatcher: import("../core").InterfaceDef<IntentContext>;
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
type Layout = Readonly<{
|
|
38
|
+
mode: string;
|
|
39
|
+
dialogOpen: boolean;
|
|
41
40
|
sidebarOpen: boolean;
|
|
42
41
|
complementarySidebarOpen: boolean;
|
|
43
|
-
|
|
42
|
+
/**
|
|
43
|
+
* Identifiers of items which are currently active in the application.
|
|
44
|
+
*/
|
|
45
|
+
active: string[];
|
|
46
|
+
/**
|
|
47
|
+
* Identifiers of items which were previously active in the application.
|
|
48
|
+
*/
|
|
49
|
+
inactive: string[];
|
|
50
|
+
/**
|
|
51
|
+
* Identifier of the item which should be scrolled into view.
|
|
52
|
+
*/
|
|
53
|
+
scrollIntoView: string | undefined;
|
|
54
|
+
}>;
|
|
55
|
+
const Layout: import("../core").InterfaceDef<Readonly<{
|
|
56
|
+
mode: string;
|
|
44
57
|
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
58
|
sidebarOpen: boolean;
|
|
82
59
|
complementarySidebarOpen: boolean;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
readonly closeLabel?: string | [string, {
|
|
104
|
-
ns: string;
|
|
105
|
-
count?: number | undefined;
|
|
106
|
-
}] | undefined;
|
|
107
|
-
readonly actionLabel?: string | [string, {
|
|
108
|
-
ns: string;
|
|
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>>>[]>;
|
|
60
|
+
/**
|
|
61
|
+
* Identifiers of items which are currently active in the application.
|
|
62
|
+
*/
|
|
63
|
+
active: string[];
|
|
64
|
+
/**
|
|
65
|
+
* Identifiers of items which were previously active in the application.
|
|
66
|
+
*/
|
|
67
|
+
inactive: string[];
|
|
68
|
+
/**
|
|
69
|
+
* Identifier of the item which should be scrolled into view.
|
|
70
|
+
*/
|
|
71
|
+
scrollIntoView: string | undefined;
|
|
72
|
+
}>>;
|
|
73
|
+
const Translations: import("../core").InterfaceDef<readonly {
|
|
74
|
+
readonly [x: string]: {
|
|
75
|
+
readonly [x: string]: string | {
|
|
76
|
+
readonly [x: string]: any;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
}[]>;
|
|
127
80
|
const AppGraph: import("../core").InterfaceDef<Readonly<Pick<GraphBuilder, "graph" | "explore">>>;
|
|
128
81
|
const AppGraphBuilder: import("../core").InterfaceDef<Readonly<{
|
|
129
82
|
id: string;
|
|
130
|
-
|
|
83
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
131
84
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
132
85
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
133
86
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -135,7 +88,7 @@ export declare namespace Capabilities {
|
|
|
135
88
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
136
89
|
}> | Readonly<{
|
|
137
90
|
id: string;
|
|
138
|
-
|
|
91
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
139
92
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
140
93
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
141
94
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -143,7 +96,7 @@ export declare namespace Capabilities {
|
|
|
143
96
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
144
97
|
}>[] | (Readonly<{
|
|
145
98
|
id: string;
|
|
146
|
-
|
|
99
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
147
100
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
148
101
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
149
102
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -151,7 +104,7 @@ export declare namespace Capabilities {
|
|
|
151
104
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
152
105
|
}> | Readonly<{
|
|
153
106
|
id: string;
|
|
154
|
-
|
|
107
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
155
108
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
156
109
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
157
110
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -159,7 +112,7 @@ export declare namespace Capabilities {
|
|
|
159
112
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
160
113
|
}>[] | (Readonly<{
|
|
161
114
|
id: string;
|
|
162
|
-
|
|
115
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
163
116
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
164
117
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
165
118
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -167,7 +120,7 @@ export declare namespace Capabilities {
|
|
|
167
120
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
168
121
|
}> | Readonly<{
|
|
169
122
|
id: string;
|
|
170
|
-
|
|
123
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
171
124
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
172
125
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
173
126
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -175,7 +128,7 @@ export declare namespace Capabilities {
|
|
|
175
128
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
176
129
|
}>[] | (Readonly<{
|
|
177
130
|
id: string;
|
|
178
|
-
|
|
131
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
179
132
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
180
133
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
181
134
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -183,7 +136,7 @@ export declare namespace Capabilities {
|
|
|
183
136
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
184
137
|
}> | Readonly<{
|
|
185
138
|
id: string;
|
|
186
|
-
|
|
139
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
187
140
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
188
141
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
189
142
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -191,7 +144,7 @@ export declare namespace Capabilities {
|
|
|
191
144
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
192
145
|
}>[] | (Readonly<{
|
|
193
146
|
id: string;
|
|
194
|
-
|
|
147
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
195
148
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
196
149
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
197
150
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -199,7 +152,7 @@ export declare namespace Capabilities {
|
|
|
199
152
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
200
153
|
}> | Readonly<{
|
|
201
154
|
id: string;
|
|
202
|
-
|
|
155
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
203
156
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
204
157
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
205
158
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -207,7 +160,7 @@ export declare namespace Capabilities {
|
|
|
207
160
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
208
161
|
}>[] | (Readonly<{
|
|
209
162
|
id: string;
|
|
210
|
-
|
|
163
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
211
164
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
212
165
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
213
166
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -215,7 +168,7 @@ export declare namespace Capabilities {
|
|
|
215
168
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
216
169
|
}> | Readonly<{
|
|
217
170
|
id: string;
|
|
218
|
-
|
|
171
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
219
172
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
220
173
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
221
174
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -223,7 +176,7 @@ export declare namespace Capabilities {
|
|
|
223
176
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
224
177
|
}>[] | (Readonly<{
|
|
225
178
|
id: string;
|
|
226
|
-
|
|
179
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
227
180
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
228
181
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
229
182
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -231,7 +184,7 @@ export declare namespace Capabilities {
|
|
|
231
184
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
232
185
|
}> | Readonly<{
|
|
233
186
|
id: string;
|
|
234
|
-
|
|
187
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
235
188
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
236
189
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
237
190
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -239,7 +192,7 @@ export declare namespace Capabilities {
|
|
|
239
192
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
240
193
|
}>[] | (Readonly<{
|
|
241
194
|
id: string;
|
|
242
|
-
|
|
195
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
243
196
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
244
197
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
245
198
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -247,7 +200,7 @@ export declare namespace Capabilities {
|
|
|
247
200
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
248
201
|
}> | Readonly<{
|
|
249
202
|
id: string;
|
|
250
|
-
|
|
203
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
251
204
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
252
205
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
253
206
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -255,7 +208,7 @@ export declare namespace Capabilities {
|
|
|
255
208
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
256
209
|
}>[] | (Readonly<{
|
|
257
210
|
id: string;
|
|
258
|
-
|
|
211
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
259
212
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
260
213
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
261
214
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -263,7 +216,7 @@ export declare namespace Capabilities {
|
|
|
263
216
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
264
217
|
}> | Readonly<{
|
|
265
218
|
id: string;
|
|
266
|
-
|
|
219
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
267
220
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
268
221
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
269
222
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -271,7 +224,7 @@ export declare namespace Capabilities {
|
|
|
271
224
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
272
225
|
}>[] | (Readonly<{
|
|
273
226
|
id: string;
|
|
274
|
-
|
|
227
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
275
228
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
276
229
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
277
230
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -279,7 +232,7 @@ export declare namespace Capabilities {
|
|
|
279
232
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
280
233
|
}> | Readonly<{
|
|
281
234
|
id: string;
|
|
282
|
-
|
|
235
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
283
236
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
284
237
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
285
238
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -287,7 +240,7 @@ export declare namespace Capabilities {
|
|
|
287
240
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
288
241
|
}>[] | (Readonly<{
|
|
289
242
|
id: string;
|
|
290
|
-
|
|
243
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
291
244
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
292
245
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
293
246
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -295,7 +248,7 @@ export declare namespace Capabilities {
|
|
|
295
248
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
296
249
|
}> | Readonly<{
|
|
297
250
|
id: string;
|
|
298
|
-
|
|
251
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
299
252
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
300
253
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
301
254
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -303,7 +256,7 @@ export declare namespace Capabilities {
|
|
|
303
256
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
304
257
|
}>[] | (Readonly<{
|
|
305
258
|
id: string;
|
|
306
|
-
|
|
259
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
307
260
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
308
261
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
309
262
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -311,7 +264,7 @@ export declare namespace Capabilities {
|
|
|
311
264
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
312
265
|
}> | Readonly<{
|
|
313
266
|
id: string;
|
|
314
|
-
|
|
267
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
315
268
|
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
316
269
|
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
317
270
|
relation?: import("@dxos/app-graph").Relation;
|
|
@@ -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":"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"}
|
|
@@ -3,6 +3,14 @@ export declare namespace Events {
|
|
|
3
3
|
* Fired when the app is started.
|
|
4
4
|
*/
|
|
5
5
|
const Startup: import("../core").ActivationEvent;
|
|
6
|
+
/**
|
|
7
|
+
* Fired to load any newly available surfaces.
|
|
8
|
+
*/
|
|
9
|
+
const SetupSurfaces: import("../core").ActivationEvent;
|
|
10
|
+
/**
|
|
11
|
+
* Fired to load any newly available metadata.
|
|
12
|
+
*/
|
|
13
|
+
const SetupMetadata: import("../core").ActivationEvent;
|
|
6
14
|
/**
|
|
7
15
|
* Fired before the intent dispatcher is activated.
|
|
8
16
|
*/
|
|
@@ -36,6 +44,5 @@ export declare namespace Events {
|
|
|
36
44
|
*/
|
|
37
45
|
const createStateEvent: (specifier: string) => import("../core").ActivationEvent;
|
|
38
46
|
const LayoutReady: import("../core").ActivationEvent;
|
|
39
|
-
const LocationReady: import("../core").ActivationEvent;
|
|
40
47
|
}
|
|
41
48
|
//# 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,mCAAsD,CAAC;IAM3E;;OAEG;IACI,MAAM,YAAY,mCAA4D,CAAC;IAEtF;;OAEG;IACI,MAAM,aAAa,mCAA6D,CAAC;IAExF;;OAEG;IACI,MAAM,aAAa,mCAA0D,CAAC;IAErF;;OAEG;IACI,MAAM,iBAAiB,mCAAiE,CAAC;IAMhG;;OAEG;IACI,MAAM,eAAe,mCAA+D,CAAC;IAE5F;;OAEG;IACI,MAAM,aAAa,mCAA6D,CAAC;IAExF;;OAEG;IACI,MAAM,aAAa,mCAA0D,CAAC;IAErF;;OAEG;IACI,MAAM,gBAAgB,cAAe,MAAM,sCAAiE,CAAC;IAC7G,MAAM,WAAW,mCAAmD,CAAC;
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../src/common/events.ts"],"names":[],"mappings":"AAOA,yBAAiB,MAAM,CAAC;IACtB;;OAEG;IACI,MAAM,OAAO,mCAAsD,CAAC;IAM3E;;OAEG;IACI,MAAM,aAAa,mCAA6D,CAAC;IAExF;;OAEG;IACI,MAAM,aAAa,mCAA6D,CAAC;IAExF;;OAEG;IACI,MAAM,YAAY,mCAA4D,CAAC;IAEtF;;OAEG;IACI,MAAM,aAAa,mCAA6D,CAAC;IAExF;;OAEG;IACI,MAAM,aAAa,mCAA0D,CAAC;IAErF;;OAEG;IACI,MAAM,iBAAiB,mCAAiE,CAAC;IAMhG;;OAEG;IACI,MAAM,eAAe,mCAA+D,CAAC;IAE5F;;OAEG;IACI,MAAM,aAAa,mCAA6D,CAAC;IAExF;;OAEG;IACI,MAAM,aAAa,mCAA0D,CAAC;IAErF;;OAEG;IACI,MAAM,gBAAgB,cAAe,MAAM,sCAAiE,CAAC;IAC7G,MAAM,WAAW,mCAAmD,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"}
|