@dxos/app-framework 0.7.5-labs.e27f9b9 → 0.7.5-main.2567c87
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/{chunk-G3HBVVT5.mjs → chunk-GNLU3GAU.mjs} +819 -627
- package/dist/lib/browser/chunk-GNLU3GAU.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +74 -57
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +3 -10
- package/dist/lib/browser/testing/index.mjs.map +3 -3
- package/dist/lib/node/chunk-FBA4BB3J.cjs +1639 -0
- package/dist/lib/node/chunk-FBA4BB3J.cjs.map +7 -0
- package/dist/lib/node/index.cjs +118 -106
- package/dist/lib/node/index.cjs.map +4 -4
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/testing/index.cjs +8 -15
- package/dist/lib/node/testing/index.cjs.map +3 -3
- package/dist/lib/node-esm/{chunk-ZTB4TA6Q.mjs → chunk-KPMTPXQI.mjs} +819 -627
- package/dist/lib/node-esm/chunk-KPMTPXQI.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +74 -57
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/testing/index.mjs +3 -10
- package/dist/lib/node-esm/testing/index.mjs.map +3 -3
- package/dist/types/src/App.d.ts.map +1 -1
- package/dist/types/src/common/capabilities.d.ts +110 -66
- package/dist/types/src/common/capabilities.d.ts.map +1 -1
- package/dist/types/src/common/events.d.ts +1 -8
- 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 +1 -0
- package/dist/types/src/common/index.d.ts.map +1 -1
- package/dist/types/src/common/layout.d.ts +121 -204
- package/dist/types/src/common/layout.d.ts.map +1 -1
- package/dist/types/src/common/navigation.d.ts +241 -0
- package/dist/types/src/common/navigation.d.ts.map +1 -0
- 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 +2 -6
- package/dist/types/src/core/capabilities.d.ts.map +1 -1
- package/dist/types/src/core/manager.d.ts +9 -2
- package/dist/types/src/core/manager.d.ts.map +1 -1
- package/dist/types/src/core/plugin.d.ts +2 -5
- 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 +0 -2
- 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/{react → plugin-intent}/IntentContext.d.ts +1 -1
- package/dist/types/src/plugin-intent/IntentContext.d.ts.map +1 -0
- 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 +1 -0
- package/dist/types/src/plugin-intent/index.d.ts.map +1 -1
- package/dist/types/src/plugin-intent/intent-dispatcher.d.ts +20 -27
- 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 +1 -11
- package/dist/types/src/plugin-settings/actions.d.ts.map +1 -1
- package/dist/types/src/react/Surface.d.ts.map +1 -1
- package/dist/types/src/react/index.d.ts +0 -2
- 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/testing/withPluginManager.d.ts +1 -1
- package/dist/types/src/testing/withPluginManager.d.ts.map +1 -1
- package/package.json +21 -28
- package/project.json +3 -3
- package/src/App.tsx +14 -15
- package/src/common/capabilities.ts +11 -26
- package/src/common/events.ts +1 -10
- package/src/common/file.ts +1 -1
- package/src/common/graph.ts +2 -2
- package/src/common/index.ts +1 -0
- package/src/common/layout.ts +126 -194
- package/src/common/navigation.ts +199 -0
- package/src/common/surface.ts +2 -2
- package/src/common/translations.ts +8 -7
- package/src/core/capabilities.ts +7 -16
- package/src/core/manager.test.ts +73 -22
- package/src/core/manager.ts +91 -105
- package/src/core/plugin.ts +3 -6
- package/src/playground/debug/plugin.ts +1 -1
- package/src/playground/generator/Toolbar.tsx +11 -11
- package/src/playground/generator/generator.ts +0 -25
- package/src/playground/generator/plugin.ts +1 -6
- package/src/playground/layout/plugin.ts +1 -1
- package/src/playground/logger/Toolbar.tsx +1 -2
- package/src/playground/logger/plugin.ts +3 -6
- package/src/playground/logger/schema.ts +1 -1
- package/src/{react → plugin-intent}/IntentContext.tsx +2 -2
- package/src/plugin-intent/IntentPlugin.tsx +43 -3
- package/src/plugin-intent/actions.ts +1 -1
- package/src/plugin-intent/errors.ts +1 -1
- package/src/plugin-intent/index.ts +1 -0
- package/src/plugin-intent/intent-dispatcher.test.ts +29 -48
- package/src/plugin-intent/intent-dispatcher.ts +41 -76
- package/src/plugin-intent/intent.ts +5 -5
- package/src/plugin-settings/SettingsPlugin.ts +13 -19
- package/src/plugin-settings/actions.ts +1 -11
- package/src/react/Surface.tsx +8 -11
- package/src/react/index.ts +0 -2
- package/src/react/useCapabilities.ts +0 -1
- package/src/testing/withPluginManager.tsx +3 -11
- package/tsconfig.json +3 -6
- package/dist/lib/browser/app-graph-builder-MOLT4EHG.mjs +0 -137
- package/dist/lib/browser/app-graph-builder-MOLT4EHG.mjs.map +0 -7
- package/dist/lib/browser/chunk-G3HBVVT5.mjs.map +0 -7
- package/dist/lib/browser/chunk-LDJ3T4V3.mjs +0 -32
- package/dist/lib/browser/chunk-LDJ3T4V3.mjs.map +0 -7
- package/dist/lib/browser/chunk-TGOF2WQZ.mjs +0 -285
- package/dist/lib/browser/chunk-TGOF2WQZ.mjs.map +0 -7
- package/dist/lib/browser/intent-dispatcher-LJKNIGAM.mjs +0 -11
- package/dist/lib/browser/intent-dispatcher-LJKNIGAM.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-Z724VAMC.mjs +0 -38
- package/dist/lib/browser/intent-resolver-Z724VAMC.mjs.map +0 -7
- package/dist/lib/browser/store-NWCY7LAP.mjs +0 -19
- package/dist/lib/browser/store-NWCY7LAP.mjs.map +0 -7
- package/dist/lib/browser/worker.mjs +0 -77
- package/dist/lib/browser/worker.mjs.map +0 -7
- package/dist/lib/node/app-graph-builder-G7SRXDFD.cjs +0 -146
- package/dist/lib/node/app-graph-builder-G7SRXDFD.cjs.map +0 -7
- package/dist/lib/node/chunk-55KIQ6YK.cjs +0 -1437
- package/dist/lib/node/chunk-55KIQ6YK.cjs.map +0 -7
- package/dist/lib/node/chunk-5GABBW2Q.cjs +0 -308
- package/dist/lib/node/chunk-5GABBW2Q.cjs.map +0 -7
- package/dist/lib/node/chunk-QLVQ6PND.cjs +0 -58
- package/dist/lib/node/chunk-QLVQ6PND.cjs.map +0 -7
- package/dist/lib/node/intent-dispatcher-CGUK3BCJ.cjs +0 -32
- package/dist/lib/node/intent-dispatcher-CGUK3BCJ.cjs.map +0 -7
- package/dist/lib/node/intent-resolver-7GNKPRWT.cjs +0 -45
- package/dist/lib/node/intent-resolver-7GNKPRWT.cjs.map +0 -7
- package/dist/lib/node/store-WMJSEQPC.cjs +0 -34
- package/dist/lib/node/store-WMJSEQPC.cjs.map +0 -7
- package/dist/lib/node/worker.cjs +0 -99
- package/dist/lib/node/worker.cjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-MKLYH3NE.mjs +0 -138
- package/dist/lib/node-esm/app-graph-builder-MKLYH3NE.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-47FG42II.mjs +0 -286
- package/dist/lib/node-esm/chunk-47FG42II.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-CNJYZNSL.mjs +0 -34
- package/dist/lib/node-esm/chunk-CNJYZNSL.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ZTB4TA6Q.mjs.map +0 -7
- package/dist/lib/node-esm/intent-dispatcher-RZAWA4XD.mjs +0 -12
- package/dist/lib/node-esm/intent-dispatcher-RZAWA4XD.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-UIU37CKJ.mjs +0 -39
- package/dist/lib/node-esm/intent-resolver-UIU37CKJ.mjs.map +0 -7
- package/dist/lib/node-esm/store-YUWINFBN.mjs +0 -20
- package/dist/lib/node-esm/store-YUWINFBN.mjs.map +0 -7
- package/dist/lib/node-esm/worker.mjs +0 -78
- package/dist/lib/node-esm/worker.mjs.map +0 -7
- package/dist/types/src/plugin-settings/app-graph-builder.d.ts +0 -197
- package/dist/types/src/plugin-settings/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/plugin-settings/intent-resolver.d.ts +0 -4
- package/dist/types/src/plugin-settings/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/plugin-settings/store.d.ts +0 -5
- package/dist/types/src/plugin-settings/store.d.ts.map +0 -1
- package/dist/types/src/plugin-settings/translations.d.ts +0 -11
- package/dist/types/src/plugin-settings/translations.d.ts.map +0 -1
- package/dist/types/src/react/IntentContext.d.ts.map +0 -1
- package/dist/types/src/react/Surface.stories.d.ts +0 -16
- package/dist/types/src/react/Surface.stories.d.ts.map +0 -1
- package/dist/types/src/react/common.d.ts +0 -12
- package/dist/types/src/react/common.d.ts.map +0 -1
- package/dist/types/src/react/useIntentResolver.d.ts +0 -3
- package/dist/types/src/react/useIntentResolver.d.ts.map +0 -1
- package/dist/types/src/worker.d.ts +0 -4
- package/dist/types/src/worker.d.ts.map +0 -1
- package/src/plugin-settings/app-graph-builder.ts +0 -122
- package/src/plugin-settings/intent-resolver.ts +0 -28
- package/src/plugin-settings/store.ts +0 -20
- package/src/plugin-settings/translations.ts +0 -17
- package/src/react/Surface.stories.tsx +0 -96
- package/src/react/common.ts +0 -12
- package/src/react/useIntentResolver.ts +0 -22
- package/src/worker.ts +0 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surface.d.ts","sourceRoot":"","sources":["../../../../src/common/surface.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,YAAY,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5F,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"surface.d.ts","sourceRoot":"","sources":["../../../../src/common/surface.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,YAAY,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5F,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAEnF,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,iBAAiB,CAAC;IACpG;;;OAGG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,CAAC;IAE9C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AE,CAAC;IACxB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC;IACtD,SAAS,EAAE,gBAAgB,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;CAC1E,CAAC,CAAC;AAEH,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,oBAAoB,iBAAiB,CAAC,CAAC,CAAC;QAP7F,MAAM;UACJ,MAAM,GAAG,MAAM,EAAE;kBACT,WAAW;qBACT,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,KAAK;;EAI2D,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const ResourceKey:
|
|
3
|
-
export type ResourceKey =
|
|
4
|
-
export declare const ResourceLanguage:
|
|
5
|
-
export type ResourceLanguage =
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ResourceKey: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>;
|
|
3
|
+
export type ResourceKey = z.infer<typeof ResourceKey>;
|
|
4
|
+
export declare const ResourceLanguage: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
|
|
5
|
+
export type ResourceLanguage = z.infer<typeof ResourceLanguage>;
|
|
6
6
|
/**
|
|
7
7
|
* A resource is a collection of translations for a language.
|
|
8
8
|
*/
|
|
9
|
-
export declare const Resource:
|
|
10
|
-
export type Resource =
|
|
9
|
+
export declare const Resource: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>>;
|
|
10
|
+
export type Resource = z.infer<typeof Resource>;
|
|
11
11
|
//# sourceMappingURL=translations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../src/common/translations.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../src/common/translations.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,WAAW,+DAA2C,CAAC;AACpE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,eAAO,MAAM,gBAAgB,yFAAwB,CAAC;AACtD,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,QAAQ,mHAA6B,CAAC;AACnD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -42,17 +42,13 @@ type PluginsContextOptions = {
|
|
|
42
42
|
* Helper to define the implementation of a capability.
|
|
43
43
|
*/
|
|
44
44
|
export declare const contributes: <T>(interfaceDef: Capability<T>["interface"], implementation: Capability<T>["implementation"], deactivate?: Capability<T>["deactivate"]) => Capability<T>;
|
|
45
|
-
type
|
|
45
|
+
type LazyCapability<T, U> = () => Promise<{
|
|
46
46
|
default: (props: T) => MaybePromise<Capability<U>>;
|
|
47
47
|
}>;
|
|
48
|
-
type LoadCapabilities<T> = () => Promise<{
|
|
49
|
-
default: (props: T) => MaybePromise<AnyCapability[]>;
|
|
50
|
-
}>;
|
|
51
|
-
type LazyCapability<T, U> = (props?: T) => Promise<() => Promise<Capability<U> | AnyCapability[]>>;
|
|
52
48
|
/**
|
|
53
49
|
* Helper to define a lazily loaded implementation of a capability.
|
|
54
50
|
*/
|
|
55
|
-
export declare const lazy: <T, U>(c:
|
|
51
|
+
export declare const lazy: <T, U>(c: LazyCapability<T, U>) => (props?: T) => Promise<Capability<U>>;
|
|
56
52
|
/**
|
|
57
53
|
* Context which is passed to plugins, allowing them to interact with each other.
|
|
58
54
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/core/capabilities.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AAMrC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,QAAA,MAAM,kBAAkB,EAAE,OAAO,MAAyC,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI;IAC5B,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,CAAC,cAAc,MAAM,KAC3B,YAAY,CAAC,CAAC,CACxC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI;IAC1B;;OAEG;IACH,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IAE3B;;OAEG;IACH,cAAc,EAAE,CAAC,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,YAAY,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;CACpE,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC;AAE5C,KAAK,qBAAqB,GAAG;IAC3B,QAAQ,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,YAAY,CAAC,OAAO,CAAC,CAAC;IAC5D,KAAK,EAAE,CAAC,KAAK,EA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A4CtD;;;;OAIG;IACH,mBAAmB,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,EACpC,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,EAC7B,MAAM,CAAC,EAAE,CAAC,UAAU,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,KAAK,UAAU,IAAI,CAAC,GAC5D,CAAC,EAAE;IAaN;;;;;OAKG;IACH,iBAAiB,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,EAClC,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,EAC7B,MAAM,CAAC,EAAE,CAAC,UAAU,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,KAAK,UAAU,IAAI,CAAC,GAC5D,CAAC;IAMJ;;;OAGG;IACG,iBAAiB,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,EACxC,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,EAC7B,MAAM,CAAC,EAAE,CAAC,UAAU,EAAE,CAAC,KAAK,UAAU,IAAI,CAAC,GAC1C,OAAO,CAAC,CAAC,CAAC;CAYd"}
|
|
@@ -51,6 +51,12 @@ export declare class PluginManager {
|
|
|
51
51
|
* @reactive
|
|
52
52
|
*/
|
|
53
53
|
get active(): ReactiveObject<readonly string[]>;
|
|
54
|
+
/**
|
|
55
|
+
* Ids of modules which are pending removal.
|
|
56
|
+
*
|
|
57
|
+
* @reactive
|
|
58
|
+
*/
|
|
59
|
+
get pendingRemoval(): ReactiveObject<readonly string[]>;
|
|
54
60
|
/**
|
|
55
61
|
* Ids of events which have been fired.
|
|
56
62
|
*
|
|
@@ -72,7 +78,7 @@ export declare class PluginManager {
|
|
|
72
78
|
* Enables a plugin.
|
|
73
79
|
* @param id The id of the plugin.
|
|
74
80
|
*/
|
|
75
|
-
enable(id: string):
|
|
81
|
+
enable(id: string): boolean;
|
|
76
82
|
/**
|
|
77
83
|
* Removes a plugin from the manager.
|
|
78
84
|
* @param id The id of the plugin.
|
|
@@ -82,7 +88,7 @@ export declare class PluginManager {
|
|
|
82
88
|
* Disables a plugin.
|
|
83
89
|
* @param id The id of the plugin.
|
|
84
90
|
*/
|
|
85
|
-
disable(id: string):
|
|
91
|
+
disable(id: string): boolean;
|
|
86
92
|
/**
|
|
87
93
|
* Activates plugins based on the activation event.
|
|
88
94
|
* @param event The activation event.
|
|
@@ -111,6 +117,7 @@ export declare class PluginManager {
|
|
|
111
117
|
private _getActiveModulesByEvent;
|
|
112
118
|
private _getInactiveModulesByEvent;
|
|
113
119
|
private _setPendingResetByModule;
|
|
120
|
+
private _activate;
|
|
114
121
|
private _activateModule;
|
|
115
122
|
private _deactivate;
|
|
116
123
|
private _deactivateModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../../../src/core/manager.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAU,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEhE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EAAsB,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAE,KAAK,eAAe,EAAgC,MAAM,UAAU,CAAC;AAC9E,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAO1D,MAAM,MAAM,oBAAoB,GAAG;IACjC,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,YAAY,CAAC,MAAM,CAAC,CAAC;IACnD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;
|
|
1
|
+
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../../../src/core/manager.ts"],"names":[],"mappings":"AAOA,OA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AW;IAcnB,OAAO,CAAC,iBAAiB;IAmCzB,OAAO,CAAC,MAAM;CAsBf"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type Effect } from 'effect';
|
|
1
2
|
import { type MaybePromise } from '@dxos/util';
|
|
2
3
|
import { type AnyCapability, type PluginsContext } from './capabilities';
|
|
3
4
|
import { type ActivationEvent, type ActivationEvents } from './events';
|
|
@@ -25,7 +26,7 @@ interface PluginModuleInterface {
|
|
|
25
26
|
* @param context The plugin context.
|
|
26
27
|
* @returns The capabilities of the module.
|
|
27
28
|
*/
|
|
28
|
-
activate: (context: PluginsContext) => MaybePromise<AnyCapability | AnyCapability[]> |
|
|
29
|
+
activate: (context: PluginsContext) => MaybePromise<AnyCapability | AnyCapability[]> | Effect.Effect<AnyCapability | AnyCapability[], Error>;
|
|
29
30
|
}
|
|
30
31
|
/**
|
|
31
32
|
* A unit of containment of modular functionality that can be provided to an application.
|
|
@@ -68,10 +69,6 @@ export type PluginMeta = {
|
|
|
68
69
|
* URL of source code.
|
|
69
70
|
*/
|
|
70
71
|
source?: string;
|
|
71
|
-
/**
|
|
72
|
-
* URL of screenshot.
|
|
73
|
-
*/
|
|
74
|
-
screenshots?: string[];
|
|
75
72
|
/**
|
|
76
73
|
* Tags to help categorize the plugin.
|
|
77
74
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/core/plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEvE,UAAU,qBAAqB;IAC7B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,WAAW,EAAE,gBAAgB,CAAC;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ACpE,QAAQ,CAAC,cAAc,CAAC,EAAE,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;IAClE,QAAQ,CAAC,QAAQ,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC;gBAEzC,OAAO,EAAE,qBAAqB;CAO3C;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,YAAa,qBAAqB,iBAA8B,CAAC;AAE1F,MAAM,MAAM,UAAU,GAAG;IACvB;;;;;;OAMG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAEhB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;GAEG;AAEH,qBAAa,MAAM;IAEf,QAAQ,CAAC,IAAI,EAAE,UAAU;IACzB,QAAQ,CAAC,OAAO,EAAE,YAAY,EAAE;gBADvB,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,YAAY,EAAE;CAEnC;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,SAAU,UAAU,WAAW,YAAY,EAAE,WAErE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../../src/playground/generator/Toolbar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAK3C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../../src/playground/generator/Toolbar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAK3C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAI5C,eAAO,MAAM,OAAO,yBAyBnB,CAAC;;AAEF,wBAKK"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { type IntentSchema } from '../../plugin-intent';
|
|
2
1
|
export declare const Number: import("../../core").InterfaceDef<number>;
|
|
3
2
|
export declare const CountEvent: import("../../core").ActivationEvent;
|
|
4
3
|
export declare const createPluginId: (id: string) => string;
|
|
5
|
-
export declare const createGeneratorIntent: (id: string) => IntentSchema<any, any>;
|
|
6
4
|
export declare const createNumberPlugin: (id: string) => import("../../core").Plugin;
|
|
7
5
|
//# 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":"AAMA,eAAO,MAAM,MAAM,2CAA6D,CAAC;AAEjF,eAAO,MAAM,UAAU,sCAA+C,CAAC;AAEvE,eAAO,MAAM,cAAc,OAAQ,MAAM,WAAoC,CAAC;AAE9E,eAAO,MAAM,kBAAkB,OAAQ,MAAM,gCAU5C,CAAC"}
|
|
@@ -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,mCAOxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../../src/playground/logger/Toolbar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAK3C,OAAO,EAAE,YAAY,EAAiB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../../src/playground/logger/Toolbar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAK3C,OAAO,EAAE,YAAY,EAAiB,MAAM,cAAc,CAAC;AAI3D,eAAO,MAAM,MAAM,yBAIlB,CAAC;;AAEF,wBAQI"}
|
|
@@ -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,mCAmBrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/playground/logger/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/playground/logger/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;;;;;;;;;AAEtC,qBAAa,GAAI,SAAQ,QAKvB;CAAG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Context, type Provider } from 'react';
|
|
2
|
-
import { type AnyIntentResolver, type IntentContext } from '
|
|
2
|
+
import { type AnyIntentResolver, type IntentContext } from './intent-dispatcher';
|
|
3
3
|
declare const IntentContext: Context<IntentContext | undefined>;
|
|
4
4
|
export declare const useIntentDispatcher: () => Pick<IntentContext, "dispatch" | "dispatchPromise">;
|
|
5
5
|
export declare const useIntentResolver: (module: string, resolver: AnyIntentResolver) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IntentContext.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/IntentContext.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAA6B,KAAK,QAAQ,EAAa,MAAM,OAAO,CAAC;AAK1F,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIjF,QAAA,MAAM,aAAa,EAAE,OAAO,CAAC,aAAa,GAAG,SAAS,CAAuD,CAAC;AAE9G,eAAO,MAAM,mBAAmB,QAAO,IAAI,CAAC,aAAa,EAAE,UAAU,GAAG,iBAAiB,CAGxF,CAAC;AAEF,eAAO,MAAM,iBAAiB,WAAY,MAAM,YAAY,iBAAiB,SAW5E,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,aAAa,GAAG,SAAS,CAA0B,CAAC"}
|
|
@@ -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":"AAkBA,eAAO,MAAM,YAAY,gCAyCrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/actions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/actions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAItC,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,gBAAgB,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,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { Effect } from 'effect';
|
|
2
2
|
import { type Simplify } from 'effect/Types';
|
|
3
|
-
import { type MaybePromise, type
|
|
3
|
+
import { type MaybePromise, type Disposition } 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';
|
|
6
5
|
/**
|
|
7
6
|
* The return value of an intent effect.
|
|
8
7
|
*/
|
|
9
|
-
export type IntentEffectResult<
|
|
8
|
+
export type IntentEffectResult<Fields extends IntentParams> = {
|
|
10
9
|
/**
|
|
11
10
|
* The output of the action that was performed.
|
|
12
11
|
*
|
|
13
12
|
* If the intent is apart of a chain of intents, the data will be passed to the next intent.
|
|
14
13
|
*/
|
|
15
|
-
data?:
|
|
14
|
+
data?: IntentResultData<Fields>;
|
|
16
15
|
/**
|
|
17
16
|
* If provided, the action will be undoable.
|
|
18
17
|
*/
|
|
@@ -24,7 +23,7 @@ export type IntentEffectResult<Input, Output> = {
|
|
|
24
23
|
/**
|
|
25
24
|
* Will be merged with the original intent data when firing the undo intent.
|
|
26
25
|
*/
|
|
27
|
-
data?: Partial<
|
|
26
|
+
data?: Partial<IntentData<Fields>>;
|
|
28
27
|
};
|
|
29
28
|
/**
|
|
30
29
|
* An error that occurred while performing the action.
|
|
@@ -39,25 +38,25 @@ export type IntentEffectResult<Input, Output> = {
|
|
|
39
38
|
*/
|
|
40
39
|
intents?: AnyIntentChain[];
|
|
41
40
|
};
|
|
42
|
-
export type AnyIntentEffectResult = IntentEffectResult<any
|
|
41
|
+
export type AnyIntentEffectResult = IntentEffectResult<any>;
|
|
43
42
|
/**
|
|
44
43
|
* The result of an intent dispatcher.
|
|
45
44
|
*/
|
|
46
|
-
export type IntentDispatcherResult<
|
|
45
|
+
export type IntentDispatcherResult<Fields extends IntentParams> = Pick<IntentEffectResult<Fields>, 'data' | 'error'>;
|
|
47
46
|
/**
|
|
48
47
|
* The implementation of an intent effect.
|
|
49
48
|
*/
|
|
50
|
-
export type IntentEffectDefinition<
|
|
49
|
+
export type IntentEffectDefinition<Fields extends IntentParams> = (data: IntentData<Fields>, undo: boolean) => MaybePromise<IntentEffectResult<Fields> | void> | Effect.Effect<IntentEffectResult<Fields> | void>;
|
|
51
50
|
/**
|
|
52
51
|
* Intent resolver to match intents to their effects.
|
|
53
52
|
*/
|
|
54
|
-
export type IntentResolver<Tag extends string, Fields extends IntentParams
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
filter?: (data: IntentData<Fields>) =>
|
|
58
|
-
|
|
53
|
+
export type IntentResolver<Tag extends string, Fields extends IntentParams> = Readonly<{
|
|
54
|
+
action: Tag;
|
|
55
|
+
disposition?: Disposition;
|
|
56
|
+
filter?: (data: IntentData<Fields>) => boolean;
|
|
57
|
+
effect: IntentEffectDefinition<Fields>;
|
|
59
58
|
}>;
|
|
60
|
-
export type AnyIntentResolver = IntentResolver<any, any
|
|
59
|
+
export type AnyIntentResolver = IntentResolver<any, any>;
|
|
61
60
|
/**
|
|
62
61
|
* Creates an intent resolver to match intents to their effects.
|
|
63
62
|
* @param schema Schema of the intent. Must be a tagged class with input and output schemas.
|
|
@@ -65,28 +64,23 @@ export type AnyIntentResolver = IntentResolver<any, any, any>;
|
|
|
65
64
|
* @param params.disposition Determines the priority of the resolver when multiple are resolved.
|
|
66
65
|
* @param params.filter Optional filter to determine if the resolver should be used.
|
|
67
66
|
*/
|
|
68
|
-
export declare const createResolver: <Tag extends string, Fields extends IntentParams,
|
|
69
|
-
intent: IntentSchema<Tag, Fields>;
|
|
70
|
-
position?: Position;
|
|
71
|
-
filter?: ((data: IntentData<Fields>) => data is Data) | undefined;
|
|
72
|
-
resolve: IntentEffectDefinition<Data, IntentResultData<Fields>>;
|
|
73
|
-
}>;
|
|
67
|
+
export declare const createResolver: <Tag extends string, Fields extends IntentParams>(schema: IntentSchema<Tag, Fields>, effect: IntentEffectDefinition<Fields>, params?: Pick<IntentResolver<Tag, Fields>, "disposition" | "filter">) => IntentResolver<Tag, Fields>;
|
|
74
68
|
/**
|
|
75
69
|
* Invokes intents and returns the result.
|
|
76
70
|
*/
|
|
77
|
-
export type PromiseIntentDispatcher = <Fields extends IntentParams>(intent: IntentChain<any, any, any, Fields>) => Promise<Simplify<IntentDispatcherResult<
|
|
71
|
+
export type PromiseIntentDispatcher = <Fields extends IntentParams>(intent: IntentChain<any, any, any, Fields>) => Promise<Simplify<IntentDispatcherResult<Fields>>>;
|
|
78
72
|
/**
|
|
79
73
|
* Creates an effect for intents.
|
|
80
74
|
*/
|
|
81
|
-
export type IntentDispatcher = <Fields extends IntentParams>(intent: IntentChain<any, any, any, Fields>, depth?: number) => Effect.Effect<Simplify<Required<IntentDispatcherResult<
|
|
82
|
-
type IntentResult<Tag extends string, Fields extends IntentParams> = IntentEffectResult<
|
|
75
|
+
export type IntentDispatcher = <Fields extends IntentParams>(intent: IntentChain<any, any, any, Fields>, depth?: number) => Effect.Effect<Simplify<Required<IntentDispatcherResult<Fields>>['data']>, Error>;
|
|
76
|
+
type IntentResult<Tag extends string, Fields extends IntentParams> = IntentEffectResult<Fields> & {
|
|
83
77
|
_intent: Intent<Tag, Fields>;
|
|
84
78
|
};
|
|
85
79
|
export type AnyIntentResult = IntentResult<any, any>;
|
|
86
80
|
/**
|
|
87
81
|
* Invokes the most recent undoable intent with undo flags.
|
|
88
82
|
*/
|
|
89
|
-
export type PromiseIntentUndo = () => Promise<IntentDispatcherResult<any
|
|
83
|
+
export type PromiseIntentUndo = () => Promise<IntentDispatcherResult<any>>;
|
|
90
84
|
/**
|
|
91
85
|
* Creates an effect which undoes the last intent.
|
|
92
86
|
*/
|
|
@@ -100,7 +94,7 @@ export type IntentContext = {
|
|
|
100
94
|
/**
|
|
101
95
|
* Sets of an intent dispatcher.
|
|
102
96
|
*
|
|
103
|
-
* @param
|
|
97
|
+
* @param resolvers An array of available intent resolvers.
|
|
104
98
|
* @param params.historyLimit The maximum number of intent results to keep in history.
|
|
105
99
|
* @param params.executionLimit The maximum recursion depth of intent chains.
|
|
106
100
|
*/
|
|
@@ -108,6 +102,5 @@ export declare const createDispatcher: (getResolvers: (module?: string) => AnyIn
|
|
|
108
102
|
executionLimit?: number | undefined;
|
|
109
103
|
historyLimit?: number | undefined;
|
|
110
104
|
}) => IntentContext;
|
|
111
|
-
|
|
112
|
-
export default _default;
|
|
105
|
+
export {};
|
|
113
106
|
//# 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;AAE7C,OAAO,EAAE,KAAK,YAAY,EAAiB,KAA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AAM,CAAC,GAAG;IAChG,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,CAAC,CAAC,CAAC;AAE3E;;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,aAqGF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S } from '@dxos/echo-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 action to perform.
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
action: 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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nC,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 +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,gCAkBvB,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S } from '@dxos/echo-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";
|
|
6
4
|
export declare namespace SettingsAction {
|
|
7
5
|
const Open_base: S.TaggedClass<Open, "dxos.org/plugin/settings/action/open", {
|
|
8
6
|
readonly _tag: S.tag<"dxos.org/plugin/settings/action/open">;
|
|
@@ -14,14 +12,6 @@ export declare namespace SettingsAction {
|
|
|
14
12
|
}>;
|
|
15
13
|
export class Open extends Open_base {
|
|
16
14
|
}
|
|
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
|
-
}
|
|
25
15
|
export {};
|
|
26
16
|
}
|
|
27
17
|
//# 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,
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/plugin-settings/actions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAEtC,eAAO,MAAM,eAAe,6BAA6B,CAAC;AAC1D,eAAO,MAAM,eAAe,oCAA8B,CAAC;AAE3D,yBAAiB,cAAc,CAAC;;;;;;;;;IAC9B,MAAM,OAAO,IAAK,SAAQ,SAKxB;KAAG;;CACN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Surface.d.ts","sourceRoot":"","sources":["../../../../src/react/Surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8C,MAAM,OAAO,CAAC;AAOnE,OAAO,EAAwC,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AACpF,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"Surface.d.ts","sourceRoot":"","sources":["../../../../src/react/Surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8C,MAAM,OAAO,CAAC;AAOnE,OAAO,EAAwC,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AACpF,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAgB9C;;GAEG;AACH,eAAO,MAAM,kBAAkB,YAAa,cAAc,kBAAkB,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC,YAI9G,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,0HA+BnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/react/index.ts"],"names":[],"mappings":"AAIA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/react/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCapabilities.d.ts","sourceRoot":"","sources":["../../../../src/react/useCapabilities.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,CAAC,EAAE,CAAC,SAAS,CAAC,oBAC9B,YAAY,CAAC,CAAC,CAAC,WACpB,CAAC,UAAU,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,KAAK,UAAU,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"useCapabilities.d.ts","sourceRoot":"","sources":["../../../../src/react/useCapabilities.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,CAAC,EAAE,CAAC,SAAS,CAAC,oBAC9B,YAAY,CAAC,CAAC,CAAC,WACpB,CAAC,UAAU,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,KAAK,UAAU,IAAI,CAAC,QAQ9D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,CAAC,EAAE,CAAC,SAAS,CAAC,oBAC5B,YAAY,CAAC,CAAC,CAAC,WACpB,CAAC,UAAU,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,KAAK,UAAU,IAAI,CAAC,MAK9D,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { type AnyCapability } from '../core';
|
|
|
4
4
|
/**
|
|
5
5
|
* Wraps a story with a plugin manager.
|
|
6
6
|
*/
|
|
7
|
-
export declare const withPluginManager: (options?: CreateAppOptions & {
|
|
7
|
+
export declare const withPluginManager: ({ capabilities, plugins, core, ...options }?: CreateAppOptions & {
|
|
8
8
|
capabilities?: AnyCapability[];
|
|
9
9
|
}) => Decorator;
|
|
10
10
|
//# sourceMappingURL=withPluginManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withPluginManager.d.ts","sourceRoot":"","sources":["../../../../src/testing/withPluginManager.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAKlD,OAAO,EAAa,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE1D,OAAO,EAAE,KAAK,aAAa,EAA0D,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"withPluginManager.d.ts","sourceRoot":"","sources":["../../../../src/testing/withPluginManager.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAKlD,OAAO,EAAa,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE1D,OAAO,EAAE,KAAK,aAAa,EAA0D,MAAM,SAAS,CAAC;AAErG;;GAEG;AACH,eAAO,MAAM,iBAAiB,iDAK3B,gBAAgB,GAAG;IAAE,YAAY,CAAC,EAAE,aAAa,EAAE,CAAA;CAAE,KAAQ,SAqC/D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/app-framework",
|
|
3
|
-
"version": "0.7.5-
|
|
3
|
+
"version": "0.7.5-main.2567c87",
|
|
4
4
|
"description": "A framework for building applications from composible plugins.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -17,11 +17,6 @@
|
|
|
17
17
|
"types": "./dist/types/src/testing/index.d.ts",
|
|
18
18
|
"browser": "./dist/lib/browser/testing/index.mjs",
|
|
19
19
|
"node": "./dist/lib/node-esm/testing/index.mjs"
|
|
20
|
-
},
|
|
21
|
-
"./worker": {
|
|
22
|
-
"types": "./dist/types/src/worker.d.ts",
|
|
23
|
-
"browser": "./dist/lib/browser/worker.mjs",
|
|
24
|
-
"node": "./dist/lib/node-esm/worker.mjs"
|
|
25
20
|
}
|
|
26
21
|
},
|
|
27
22
|
"types": "dist/types/src/index.d.ts",
|
|
@@ -29,40 +24,38 @@
|
|
|
29
24
|
"*": {
|
|
30
25
|
"./testing": [
|
|
31
26
|
"dist/types/src/testing/index.d.ts"
|
|
32
|
-
],
|
|
33
|
-
"./worker": [
|
|
34
|
-
"dist/types/src/worker.d.ts"
|
|
35
27
|
]
|
|
36
28
|
}
|
|
37
29
|
},
|
|
38
30
|
"dependencies": {
|
|
39
31
|
"@effect/schema": "^0.75.5",
|
|
32
|
+
"@phosphor-icons/react": "^2.1.5",
|
|
40
33
|
"@preact/signals-core": "^1.6.0",
|
|
41
|
-
"effect": "^3.12.
|
|
42
|
-
"
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/debug": "0.7.5-
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
34
|
+
"effect": "^3.12.1",
|
|
35
|
+
"zod": "^3.22.4",
|
|
36
|
+
"@dxos/app-graph": "0.7.5-main.2567c87",
|
|
37
|
+
"@dxos/client-protocol": "0.7.5-main.2567c87",
|
|
38
|
+
"@dxos/context": "0.7.5-main.2567c87",
|
|
39
|
+
"@dxos/debug": "0.7.5-main.2567c87",
|
|
40
|
+
"@dxos/echo-schema": "0.7.5-main.2567c87",
|
|
41
|
+
"@dxos/async": "0.7.5-main.2567c87",
|
|
42
|
+
"@dxos/invariant": "0.7.5-main.2567c87",
|
|
43
|
+
"@dxos/live-object": "0.7.5-main.2567c87",
|
|
44
|
+
"@dxos/local-storage": "0.7.5-main.2567c87",
|
|
45
|
+
"@dxos/log": "0.7.5-main.2567c87",
|
|
46
|
+
"@dxos/react-hooks": "0.7.5-main.2567c87",
|
|
47
|
+
"@dxos/util": "0.7.5-main.2567c87",
|
|
48
|
+
"@dxos/storybook-utils": "0.7.5-main.2567c87"
|
|
53
49
|
},
|
|
54
50
|
"devDependencies": {
|
|
55
|
-
"@phosphor-icons/react": "^2.1.5",
|
|
56
51
|
"@types/react": "~18.2.0",
|
|
57
52
|
"react": "~18.2.0",
|
|
58
|
-
"@dxos/echo-
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/react-ui": "0.7.5-labs.e27f9b9",
|
|
62
|
-
"@dxos/storybook-utils": "0.7.5-labs.e27f9b9",
|
|
63
|
-
"@dxos/react-ui-syntax-highlighter": "0.7.5-labs.e27f9b9"
|
|
53
|
+
"@dxos/echo-signals": "0.7.5-main.2567c87",
|
|
54
|
+
"@dxos/react-ui-syntax-highlighter": "0.7.5-main.2567c87",
|
|
55
|
+
"@dxos/react-ui": "0.7.5-main.2567c87"
|
|
64
56
|
},
|
|
65
57
|
"peerDependencies": {
|
|
58
|
+
"@phosphor-icons/react": "^2.1.5",
|
|
66
59
|
"react": "~18.2.0"
|
|
67
60
|
},
|
|
68
61
|
"publishConfig": {
|