@dxos/app-framework 0.7.5-main.9d2a38b → 0.7.5-main.e9bb01b
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 +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("../core").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;AAG7C,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;AAK3D;;GAEG;AACH,MAAM,MAAM,kBAAkB,CAAC,KAAK,EAAE,MAAM,IAAI;IAC9C;;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AE,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,aAiGF,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":[],"m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,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 +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,gCAwBvB,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,kBAAkB,CAAC;AAC3C,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("../core").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,wBAgBI"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RootSettingsStore } from '@dxos/local-storage';
|
|
2
|
+
import { type PluginsContext } from '../core';
|
|
3
|
+
declare const _default: (context: PluginsContext) => import("../core").Capability<RootSettingsStore>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../src/plugin-settings/store.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,OAAO,EAAe,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;kCAElC,cAAc;AAAvC,wBAUE"}
|
|
@@ -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"}
|
|
@@ -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 '../plugin-intent';
|
|
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/react/IntentContext.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAA6B,KAAK,QAAQ,EAAa,MAAM,OAAO,CAAC;AAO1F,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAE9E,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":"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;AAmB9C;;GAEG;AACH,eAAO,MAAM,kBAAkB,YAAa,cAAc,kBAAkB,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC,YAI9G,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,0HA6BnB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import '@dxos-theme';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { type PluginManager } from '../core';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
render: ({ manager }: {
|
|
7
|
+
manager: PluginManager;
|
|
8
|
+
}) => React.JSX.Element;
|
|
9
|
+
decorators: import("@storybook/react/*").Decorator[];
|
|
10
|
+
args: {
|
|
11
|
+
manager: PluginManager;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
15
|
+
export declare const Default: {};
|
|
16
|
+
//# sourceMappingURL=Surface.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Surface.stories.d.ts","sourceRoot":"","sources":["../../../../src/react/Surface.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAgC,MAAM,OAAO,CAAC;AASrD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,SAAS,CAAC;;;0BAkErB;QAAE,OAAO,EAAE,aAAa,CAAA;KAAE;;;;;;AAFlD,wBAcE;AAEF,eAAO,MAAM,OAAO,IAAK,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const useIntentDispatcher: () => import("..").IntentContext;
|
|
2
|
+
export declare const useAppGraph: () => Readonly<Pick<import("packages/sdk/app-graph/dist/types/src").GraphBuilder, "graph" | "explore">>;
|
|
3
|
+
export declare const useLayout: () => Readonly<{
|
|
4
|
+
mode: string;
|
|
5
|
+
dialogOpen: boolean;
|
|
6
|
+
sidebarOpen: boolean;
|
|
7
|
+
complementarySidebarOpen: boolean;
|
|
8
|
+
active: string[];
|
|
9
|
+
inactive: string[];
|
|
10
|
+
scrollIntoView: string | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/react/common.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,mBAAmB,kCAAqD,CAAC;AAEtF,eAAO,MAAM,WAAW,yGAA6C,CAAC;AAEtE,eAAO,MAAM,SAAS;;;;;;;;EAA2C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/react/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIntentResolver.d.ts","sourceRoot":"","sources":["../../../../src/react/useIntentResolver.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAG1D,eAAO,MAAM,iBAAiB,WAAY,MAAM,YAAY,iBAAiB,SAW5E,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: (
|
|
7
|
+
export declare const withPluginManager: (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;AA+BrG;;GAEG;AACH,eAAO,MAAM,iBAAiB,aAAa,gBAAgB,GAAG;IAAE,YAAY,CAAC,EAAE,aAAa,EAAE,CAAA;CAAE,KAAQ,SAqBvG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../../../src/worker.ts"],"names":[],"mappings":"AAOA,cAAc,QAAQ,CAAC;AAEvB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC"}
|