@dxos/app-framework 0.7.5-main.9d2a38b → 0.7.5-main.b19bfc8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/app-graph-builder-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 +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-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 +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-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 +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 +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 +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 +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 +11 -3
- 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,6 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { Capabilities } from '../../common';
|
|
3
|
-
export declare const Toolbar: () =>
|
|
4
|
-
declare const _default: () => import("
|
|
2
|
+
export declare const Toolbar: () => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const _default: () => import("../..").Capability<Capabilities.ReactSurface>;
|
|
5
4
|
export default _default;
|
|
6
5
|
//# sourceMappingURL=Toolbar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../../src/playground/generator/Toolbar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../../src/playground/generator/Toolbar.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAK5C,eAAO,MAAM,OAAO,+CAwBnB,CAAC;;AAEF,wBAKK"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
1
|
+
import { type IntentSchema } from '../../plugin-intent';
|
|
2
|
+
export declare const Number: import("../..").InterfaceDef<number>;
|
|
3
|
+
export declare const CountEvent: import("../..").ActivationEvent;
|
|
3
4
|
export declare const createPluginId: (id: string) => string;
|
|
4
|
-
export declare const
|
|
5
|
+
export declare const createGeneratorIntent: (id: string) => IntentSchema<any, any>;
|
|
6
|
+
export declare const createNumberPlugin: (id: string) => import("../..").Plugin;
|
|
5
7
|
//# sourceMappingURL=generator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../../../src/playground/generator/generator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../../../src/playground/generator/generator.ts"],"names":[],"mappings":"AAQA,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExE,eAAO,MAAM,MAAM,sCAA6D,CAAC;AAEjF,eAAO,MAAM,UAAU,iCAA+C,CAAC;AAEvE,eAAO,MAAM,cAAc,OAAQ,MAAM,WAAoC,CAAC;AAE9E,eAAO,MAAM,qBAAqB,OAAQ,MAAM,KAMnB,YAAY,CAAC,GAAG,EAAE,GAAG,CACjD,CAAC;AAEF,eAAO,MAAM,kBAAkB,OAAQ,MAAM,2BAsB5C,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const GeneratorPlugin: () => import("
|
|
1
|
+
export declare const GeneratorPlugin: () => import("../..").Plugin;
|
|
2
2
|
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../src/playground/generator/plugin.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../src/playground/generator/plugin.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,eAAe,8BAYxB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const Layout: () =>
|
|
3
|
-
declare const _default: () => import("
|
|
2
|
+
export declare const Layout: () => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const _default: () => import("../..").Capability<Readonly<{
|
|
4
4
|
id: string;
|
|
5
5
|
root: React.FC<React.PropsWithChildren>;
|
|
6
6
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Layout.d.ts","sourceRoot":"","sources":["../../../../../src/playground/layout/Layout.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"Layout.d.ts","sourceRoot":"","sources":["../../../../../src/playground/layout/Layout.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,eAAO,MAAM,MAAM,+CAgBlB,CAAC;;;;;AAEF,wBAIK"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const LayoutPlugin: () => import("
|
|
1
|
+
export declare const LayoutPlugin: () => import("../..").Plugin;
|
|
2
2
|
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../src/playground/layout/plugin.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../src/playground/layout/plugin.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,YAAY,8BAOrB,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { Capabilities } from '../../common';
|
|
3
|
-
export declare const Logger: () =>
|
|
4
|
-
declare const _default: () => import("
|
|
2
|
+
export declare const Logger: () => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const _default: () => import("../..").Capability<Capabilities.ReactSurface>;
|
|
5
4
|
export default _default;
|
|
6
5
|
//# sourceMappingURL=Toolbar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../../src/playground/logger/Toolbar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../../src/playground/logger/Toolbar.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,YAAY,EAAiB,MAAM,cAAc,CAAC;AAK3D,eAAO,MAAM,MAAM,+CAIlB,CAAC;;AAEF,wBAQI"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const LoggerPlugin: () => import("
|
|
1
|
+
export declare const LoggerPlugin: () => import("../..").Plugin;
|
|
2
2
|
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../src/playground/logger/plugin.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../src/playground/logger/plugin.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,YAAY,8BAsBrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/playground/logger/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/playground/logger/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,IAAI,CAAC,EAAE,MAAM,gBAAgB,CAAC;;;;;;;;;AAE7C,qBAAa,GAAI,SAAQ,QAKvB;CAAG"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
export declare const Playground: {};
|
|
4
3
|
declare const _default: {
|
|
5
4
|
title: string;
|
|
6
|
-
render: () =>
|
|
7
|
-
decorators: import("@storybook/react
|
|
5
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
decorators: import("@storybook/react").Decorator[];
|
|
8
7
|
};
|
|
9
8
|
export default _default;
|
|
10
9
|
//# sourceMappingURL=playground.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playground.stories.d.ts","sourceRoot":"","sources":["../../../../src/playground/playground.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"playground.stories.d.ts","sourceRoot":"","sources":["../../../../src/playground/playground.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAuBrB,eAAO,MAAM,UAAU,IAAK,CAAC;;;;;;AAE7B,wBAIE"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const IntentPlugin: () => import("
|
|
1
|
+
export declare const IntentPlugin: () => import("..").Plugin;
|
|
2
2
|
//# sourceMappingURL=IntentPlugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntentPlugin.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/IntentPlugin.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IntentPlugin.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/IntentPlugin.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY,2BAWrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/actions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/actions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,IAAI,CAAC,EAAE,MAAM,gBAAgB,CAAC;AAI7C,eAAO,MAAM,aAAa,2BAA2B,CAAC;AACtD,eAAO,MAAM,aAAa,kCAA4B,CAAC;AAEvD,yBAAiB,YAAY,CAAC;;;;;;;;;;;;IAC5B;;OAEG;IACH,MAAM,OAAO,QAAS,SAAQ,aAK5B;KAAG;;CACN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { Effect } from 'effect';
|
|
2
2
|
import { type Simplify } from 'effect/Types';
|
|
3
|
-
import { type MaybePromise, type
|
|
3
|
+
import { type MaybePromise, type Position, type GuardedType } from '@dxos/util';
|
|
4
4
|
import { type AnyIntentChain, type Intent, type IntentChain, type IntentData, type IntentParams, type IntentResultData, type IntentSchema, type Label } from './intent';
|
|
5
|
+
import { type PluginsContext } from '../core';
|
|
5
6
|
/**
|
|
6
7
|
* The return value of an intent effect.
|
|
7
8
|
*/
|
|
8
|
-
export type IntentEffectResult<
|
|
9
|
+
export type IntentEffectResult<Input, Output> = {
|
|
9
10
|
/**
|
|
10
11
|
* The output of the action that was performed.
|
|
11
12
|
*
|
|
12
13
|
* If the intent is apart of a chain of intents, the data will be passed to the next intent.
|
|
13
14
|
*/
|
|
14
|
-
data?:
|
|
15
|
+
data?: Output;
|
|
15
16
|
/**
|
|
16
17
|
* If provided, the action will be undoable.
|
|
17
18
|
*/
|
|
@@ -23,7 +24,7 @@ export type IntentEffectResult<Fields extends IntentParams> = {
|
|
|
23
24
|
/**
|
|
24
25
|
* Will be merged with the original intent data when firing the undo intent.
|
|
25
26
|
*/
|
|
26
|
-
data?: Partial<
|
|
27
|
+
data?: Partial<Input>;
|
|
27
28
|
};
|
|
28
29
|
/**
|
|
29
30
|
* An error that occurred while performing the action.
|
|
@@ -38,25 +39,25 @@ export type IntentEffectResult<Fields extends IntentParams> = {
|
|
|
38
39
|
*/
|
|
39
40
|
intents?: AnyIntentChain[];
|
|
40
41
|
};
|
|
41
|
-
export type AnyIntentEffectResult = IntentEffectResult<any>;
|
|
42
|
+
export type AnyIntentEffectResult = IntentEffectResult<any, any>;
|
|
42
43
|
/**
|
|
43
44
|
* The result of an intent dispatcher.
|
|
44
45
|
*/
|
|
45
|
-
export type IntentDispatcherResult<
|
|
46
|
+
export type IntentDispatcherResult<Input, Output> = Pick<IntentEffectResult<Input, Output>, 'data' | 'error'>;
|
|
46
47
|
/**
|
|
47
48
|
* The implementation of an intent effect.
|
|
48
49
|
*/
|
|
49
|
-
export type IntentEffectDefinition<
|
|
50
|
+
export type IntentEffectDefinition<Input, Output> = (data: Input, undo: boolean) => MaybePromise<IntentEffectResult<Input, Output> | void> | Effect.Effect<IntentEffectResult<Input, Output> | void>;
|
|
50
51
|
/**
|
|
51
52
|
* Intent resolver to match intents to their effects.
|
|
52
53
|
*/
|
|
53
|
-
export type IntentResolver<Tag extends string, Fields extends IntentParams
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
filter?: (data: IntentData<Fields>) =>
|
|
57
|
-
|
|
54
|
+
export type IntentResolver<Tag extends string, Fields extends IntentParams, Data = IntentData<Fields>> = Readonly<{
|
|
55
|
+
intent: IntentSchema<Tag, Fields>;
|
|
56
|
+
position?: Position;
|
|
57
|
+
filter?: (data: IntentData<Fields>) => data is Data;
|
|
58
|
+
resolve: IntentEffectDefinition<GuardedType<IntentResolver<Tag, Fields, Data>['filter']>, IntentResultData<Fields>>;
|
|
58
59
|
}>;
|
|
59
|
-
export type AnyIntentResolver = IntentResolver<any, any>;
|
|
60
|
+
export type AnyIntentResolver = IntentResolver<any, any, any>;
|
|
60
61
|
/**
|
|
61
62
|
* Creates an intent resolver to match intents to their effects.
|
|
62
63
|
* @param schema Schema of the intent. Must be a tagged class with input and output schemas.
|
|
@@ -64,23 +65,28 @@ export type AnyIntentResolver = IntentResolver<any, any>;
|
|
|
64
65
|
* @param params.disposition Determines the priority of the resolver when multiple are resolved.
|
|
65
66
|
* @param params.filter Optional filter to determine if the resolver should be used.
|
|
66
67
|
*/
|
|
67
|
-
export declare const createResolver: <Tag extends string, Fields extends IntentParams
|
|
68
|
+
export declare const createResolver: <Tag extends string, Fields extends IntentParams, Data = IntentData<Fields>>(resolver: IntentResolver<Tag, Fields, Data>) => Readonly<{
|
|
69
|
+
intent: IntentSchema<Tag, Fields>;
|
|
70
|
+
position?: Position;
|
|
71
|
+
filter?: ((data: IntentData<Fields>) => data is Data) | undefined;
|
|
72
|
+
resolve: IntentEffectDefinition<Data, IntentResultData<Fields>>;
|
|
73
|
+
}>;
|
|
68
74
|
/**
|
|
69
75
|
* Invokes intents and returns the result.
|
|
70
76
|
*/
|
|
71
|
-
export type PromiseIntentDispatcher = <Fields extends IntentParams>(intent: IntentChain<any, any, any, Fields>) => Promise<Simplify<IntentDispatcherResult<Fields
|
|
77
|
+
export type PromiseIntentDispatcher = <Fields extends IntentParams>(intent: IntentChain<any, any, any, Fields>) => Promise<Simplify<IntentDispatcherResult<IntentData<Fields>, IntentResultData<Fields>>>>;
|
|
72
78
|
/**
|
|
73
79
|
* Creates an effect for intents.
|
|
74
80
|
*/
|
|
75
|
-
export type IntentDispatcher = <Fields extends IntentParams>(intent: IntentChain<any, any, any, Fields>, depth?: number) => Effect.Effect<Simplify<Required<IntentDispatcherResult<Fields
|
|
76
|
-
type IntentResult<Tag extends string, Fields extends IntentParams> = IntentEffectResult<Fields
|
|
81
|
+
export type IntentDispatcher = <Fields extends IntentParams>(intent: IntentChain<any, any, any, Fields>, depth?: number) => Effect.Effect<Simplify<Required<IntentDispatcherResult<IntentData<Fields>, IntentResultData<Fields>>>['data']>, Error>;
|
|
82
|
+
type IntentResult<Tag extends string, Fields extends IntentParams> = IntentEffectResult<IntentData<Fields>, IntentResultData<Fields>> & {
|
|
77
83
|
_intent: Intent<Tag, Fields>;
|
|
78
84
|
};
|
|
79
85
|
export type AnyIntentResult = IntentResult<any, any>;
|
|
80
86
|
/**
|
|
81
87
|
* Invokes the most recent undoable intent with undo flags.
|
|
82
88
|
*/
|
|
83
|
-
export type PromiseIntentUndo = () => Promise<IntentDispatcherResult<any>>;
|
|
89
|
+
export type PromiseIntentUndo = () => Promise<IntentDispatcherResult<any, any>>;
|
|
84
90
|
/**
|
|
85
91
|
* Creates an effect which undoes the last intent.
|
|
86
92
|
*/
|
|
@@ -94,7 +100,7 @@ export type IntentContext = {
|
|
|
94
100
|
/**
|
|
95
101
|
* Sets of an intent dispatcher.
|
|
96
102
|
*
|
|
97
|
-
* @param
|
|
103
|
+
* @param getResolvers A function that returns an array of available intent resolvers.
|
|
98
104
|
* @param params.historyLimit The maximum number of intent results to keep in history.
|
|
99
105
|
* @param params.executionLimit The maximum recursion depth of intent chains.
|
|
100
106
|
*/
|
|
@@ -102,5 +108,6 @@ export declare const createDispatcher: (getResolvers: (module?: string) => AnyIn
|
|
|
102
108
|
executionLimit?: number | undefined;
|
|
103
109
|
historyLimit?: number | undefined;
|
|
104
110
|
}) => IntentContext;
|
|
105
|
-
|
|
111
|
+
declare const _default: (context: PluginsContext) => import("..").Capability<import("@dxos/live-object").ReactiveObject<IntentContext>>;
|
|
112
|
+
export default _default;
|
|
106
113
|
//# sourceMappingURL=intent-dispatcher.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intent-dispatcher.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/intent-dispatcher.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAqB,MAAM,QAAQ,CAAC;AACnD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"intent-dispatcher.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/intent-dispatcher.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAqB,MAAM,QAAQ,CAAC;AACnD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAI7C,OAAO,EAAc,KAAK,YAAY,EAAE,KAAK,QAAQ,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAI5F,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,MAAM,EACX,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,KAAK,EACX,MAAM,UAAU,CAAC;AAElB,OAAO,EAAe,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAK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BAAgB,CAAC,MAAM,CAAC,CACzB,GAAG;IACF,OAAO,EAAE,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,CAAC,sBAAsB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;AAEhF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;AAQzD,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,eAAe,EAAE,uBAAuB,CAAC;IACzC,IAAI,EAAE,UAAU,CAAC;IACjB,WAAW,EAAE,iBAAiB,CAAC;CAChC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,iBACb,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,iBAAiB,EAAE;;;MAErD,aAoGF,CAAC;kCAKuB,cAAc;AAAvC,wBAgCE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S } from '@
|
|
1
|
+
import { Schema as S } from '@effect/schema';
|
|
2
2
|
export type IntentParams = {
|
|
3
3
|
readonly input: S.Schema.All;
|
|
4
4
|
readonly output: S.Schema.All;
|
|
@@ -17,9 +17,9 @@ export type IntentSchema<Tag extends string, Fields extends IntentParams> = S.Ta
|
|
|
17
17
|
export type Intent<Tag extends string, Fields extends IntentParams> = {
|
|
18
18
|
_schema: IntentSchema<Tag, Fields>;
|
|
19
19
|
/**
|
|
20
|
-
* The
|
|
20
|
+
* The id of the intent.
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
id: Tag;
|
|
23
23
|
/**
|
|
24
24
|
* Any data needed to perform the desired action.
|
|
25
25
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intent.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/intent.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"intent.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/intent.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,IAAI,CAAC,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,UAAU,CAAC,MAAM,SAAS,YAAY,IAChD,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS;IAAE,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAA;CAAE,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,GAAG,CAAC;AAEnH,MAAM,MAAM,gBAAgB,CAAC,MAAM,SAAS,YAAY,IACtD,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS;IAAE,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAA;CAAE,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC;AAErH,MAAM,MAAM,YAAY,CAAC,GAAG,SAAS,MAAM,EAAE,MAAM,SAAS,YAAY,IAAI,CAAC,CAAC,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;AAE5G;;;GAGG;AACH,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,EAChC,UAAU,SAAS,YAAY,EAC/B,UAAU,SAAS,YAAY,UAEvB,YAAY,CAAC,OAAO,EAAE,UAAU,CAAC,SACnC,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,MAAM,gBAAgB,CAAC,UAAU,CAAC,CAAC,WAC9D,IAAI,CAAC,SAAS,EAAE,QAAQ,GAAG,MAAM,CAAC,cAGlC,WAAW,CAAC,QAAQ,EAAE,GAAG,EAAE,WAAW,EAAE,UAAU,CAAC,KAC1D,WAAW,CAAC,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,CAexD,CAAC;AAQJ,eAAO,MAAM,KAAK;;;QAGjB,CAAC;AACF,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SettingsPlugin: () => import("
|
|
1
|
+
export declare const SettingsPlugin: () => import("..").Plugin;
|
|
2
2
|
//# sourceMappingURL=SettingsPlugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsPlugin.d.ts","sourceRoot":"","sources":["../../../../src/plugin-settings/SettingsPlugin.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"SettingsPlugin.d.ts","sourceRoot":"","sources":["../../../../src/plugin-settings/SettingsPlugin.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,cAAc,2BAwBvB,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { S } from '@
|
|
1
|
+
import { Schema as S } from '@effect/schema';
|
|
2
2
|
export declare const SETTINGS_PLUGIN = "dxos.org/plugin/settings";
|
|
3
3
|
export declare const SETTINGS_ACTION = "dxos.org/plugin/settings/action";
|
|
4
|
+
export declare const SETTINGS_ID = "!dxos:settings";
|
|
5
|
+
export declare const SETTINGS_KEY = "settings";
|
|
4
6
|
export declare namespace SettingsAction {
|
|
5
7
|
const Open_base: S.TaggedClass<Open, "dxos.org/plugin/settings/action/open", {
|
|
6
8
|
readonly _tag: S.tag<"dxos.org/plugin/settings/action/open">;
|
|
@@ -12,6 +14,14 @@ export declare namespace SettingsAction {
|
|
|
12
14
|
}>;
|
|
13
15
|
export class Open extends Open_base {
|
|
14
16
|
}
|
|
17
|
+
const OpenPluginRegistry_base: S.TaggedClass<OpenPluginRegistry, "dxos.org/plugin/settings/action/open-plugin-registry", {
|
|
18
|
+
readonly _tag: S.tag<"dxos.org/plugin/settings/action/open-plugin-registry">;
|
|
19
|
+
} & {
|
|
20
|
+
input: typeof S.Void;
|
|
21
|
+
output: typeof S.Void;
|
|
22
|
+
}>;
|
|
23
|
+
export class OpenPluginRegistry extends OpenPluginRegistry_base {
|
|
24
|
+
}
|
|
15
25
|
export {};
|
|
16
26
|
}
|
|
17
27
|
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/plugin-settings/actions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/plugin-settings/actions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,IAAI,CAAC,EAAE,MAAM,gBAAgB,CAAC;AAE7C,eAAO,MAAM,eAAe,6BAA6B,CAAC;AAC1D,eAAO,MAAM,eAAe,oCAA8B,CAAC;AAC3D,eAAO,MAAM,WAAW,mBAAmB,CAAC;AAC5C,eAAO,MAAM,YAAY,aAAa,CAAC;AAEvC,yBAAiB,cAAc,CAAC;;;;;;;;;IAC9B,MAAM,OAAO,IAAK,SAAQ,SAKxB;KAAG;;;;;;;IAEL,MAAM,OAAO,kBAAmB,SAAQ,uBAMvC;KAAG;;CACL"}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { type Node } from '@dxos/app-graph';
|
|
2
|
+
import { type PluginsContext } from '../core';
|
|
3
|
+
declare const _default: (context: PluginsContext) => import("..").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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: Node) => boolean;
|
|
163
|
+
}>[] | (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: 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: Node) => boolean;
|
|
179
|
+
}>[] | (Readonly<{
|
|
180
|
+
id: string;
|
|
181
|
+
position: import("@dxos/util").Position;
|
|
182
|
+
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
183
|
+
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
184
|
+
relation?: import("@dxos/app-graph").Relation;
|
|
185
|
+
type?: string;
|
|
186
|
+
filter?: (node: Node) => boolean;
|
|
187
|
+
}> | Readonly<{
|
|
188
|
+
id: string;
|
|
189
|
+
position: import("@dxos/util").Position;
|
|
190
|
+
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
191
|
+
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
192
|
+
relation?: import("@dxos/app-graph").Relation;
|
|
193
|
+
type?: string;
|
|
194
|
+
filter?: (node: Node) => boolean;
|
|
195
|
+
}>[] | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]>;
|
|
196
|
+
export default _default;
|
|
197
|
+
//# sourceMappingURL=app-graph-builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/plugin-settings/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,EAAmB,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAM7D,OAAO,EAAgC,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;kCAGnD,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAvC,wBA4GK"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intent-resolver.d.ts","sourceRoot":"","sources":["../../../../src/plugin-settings/intent-resolver.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAgB,MAAM,WAAW,CAAC;;AAIvD,wBAsBI"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../src/plugin-settings/store.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,OAAO,EAAe,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;kCAElC,cAAc;AAAvC,wBAkBE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
'en-US': {
|
|
3
|
+
"dxos.org/plugin/settings": {
|
|
4
|
+
'open settings label': string;
|
|
5
|
+
'app settings label': string;
|
|
6
|
+
'custom plugins label': string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
}[];
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=translations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../src/plugin-settings/translations.ts"],"names":[],"mappings":";;;;;;;;;AAMA,wBAUE"}
|