@dxos/app-framework 0.8.1 → 0.8.2-main.2f9c567
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-576BHZC7.mjs → app-graph-builder-FB4NWT25.mjs} +3 -3
- package/dist/lib/browser/{chunk-PPIBZ5N4.mjs → chunk-A7XUUTJN.mjs} +4 -4
- package/dist/lib/browser/chunk-A7XUUTJN.mjs.map +7 -0
- package/dist/lib/browser/{chunk-SFPT4Z2C.mjs → chunk-KPRHX73H.mjs} +9 -9
- package/dist/lib/browser/chunk-KPRHX73H.mjs.map +7 -0
- package/dist/lib/browser/{chunk-6AVTZPMT.mjs → chunk-M6UBP7YP.mjs} +204 -173
- package/dist/lib/browser/chunk-M6UBP7YP.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +8 -6
- package/dist/lib/browser/index.mjs.map +1 -1
- package/dist/lib/browser/{intent-dispatcher-3Q67MHZZ.mjs → intent-dispatcher-SICNXT2G.mjs} +2 -2
- package/dist/lib/browser/{intent-resolver-O763LCLG.mjs → intent-resolver-2K6LNSUE.mjs} +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{store-URSN7DZI.mjs → store-P4XZF26P.mjs} +2 -2
- package/dist/lib/browser/testing/index.mjs +2 -2
- package/dist/lib/browser/worker.mjs +3 -1
- package/dist/lib/node/{app-graph-builder-JZCSKYPY.cjs → app-graph-builder-5QJ6YDE7.cjs} +28 -28
- package/dist/lib/node/{chunk-JUSEAFDU.cjs → chunk-JQMNABMK.cjs} +4 -4
- package/dist/lib/node/chunk-JQMNABMK.cjs.map +7 -0
- package/dist/lib/node/{chunk-YIFTVCOR.cjs → chunk-LPUJODXZ.cjs} +180 -150
- package/dist/lib/node/chunk-LPUJODXZ.cjs.map +7 -0
- package/dist/lib/node/{chunk-YNTKVTVX.cjs → chunk-MTROSTO7.cjs} +20 -20
- package/dist/lib/node/{chunk-YNTKVTVX.cjs.map → chunk-MTROSTO7.cjs.map} +3 -3
- package/dist/lib/node/index.cjs +80 -78
- package/dist/lib/node/index.cjs.map +1 -1
- package/dist/lib/node/{intent-dispatcher-H334XLFD.cjs → intent-dispatcher-XXFKXEHF.cjs} +8 -8
- package/dist/lib/node/{intent-dispatcher-H334XLFD.cjs.map → intent-dispatcher-XXFKXEHF.cjs.map} +2 -2
- package/dist/lib/node/{intent-resolver-3F4POWAM.cjs → intent-resolver-ZP6S7QKG.cjs} +12 -12
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{store-OFDHTDCB.cjs → store-MALHSPHZ.cjs} +7 -7
- package/dist/lib/node/testing/index.cjs +8 -8
- package/dist/lib/node/worker.cjs +39 -37
- package/dist/lib/node/worker.cjs.map +2 -2
- package/dist/lib/node-esm/{app-graph-builder-VYKLSMSZ.mjs → app-graph-builder-2KB5VMTB.mjs} +3 -3
- package/dist/lib/node-esm/{chunk-PHOUQACM.mjs → chunk-JUJF5L4G.mjs} +9 -9
- package/dist/lib/node-esm/chunk-JUJF5L4G.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-R6A7Z4LU.mjs → chunk-MX6ITPIG.mjs} +4 -4
- package/dist/lib/{browser/chunk-PPIBZ5N4.mjs.map → node-esm/chunk-MX6ITPIG.mjs.map} +3 -3
- package/dist/lib/node-esm/{chunk-AHKIPS2L.mjs → chunk-OZD32CQN.mjs} +204 -173
- package/dist/lib/node-esm/chunk-OZD32CQN.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +8 -6
- package/dist/lib/node-esm/index.mjs.map +1 -1
- package/dist/lib/node-esm/{intent-dispatcher-YDE2ONZA.mjs → intent-dispatcher-FF5HNHPQ.mjs} +2 -2
- package/dist/lib/node-esm/{intent-resolver-LAGJ7LXM.mjs → intent-resolver-QWIKXIGI.mjs} +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{store-EYSUVNCS.mjs → store-3NM6AWB4.mjs} +2 -2
- package/dist/lib/node-esm/testing/index.mjs +2 -2
- package/dist/lib/node-esm/worker.mjs +3 -1
- package/dist/types/src/common/capabilities.d.ts +2 -2
- package/dist/types/src/common/capabilities.d.ts.map +1 -1
- package/dist/types/src/common/collaboration.d.ts +19 -0
- package/dist/types/src/common/collaboration.d.ts.map +1 -0
- package/dist/types/src/common/file.d.ts +7 -7
- package/dist/types/src/common/file.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 +164 -158
- package/dist/types/src/common/layout.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 +5 -2
- package/dist/types/src/core/capabilities.d.ts.map +1 -1
- package/dist/types/src/core/events.d.ts +4 -1
- package/dist/types/src/core/events.d.ts.map +1 -1
- package/dist/types/src/core/manager.d.ts +8 -8
- package/dist/types/src/core/manager.d.ts.map +1 -1
- package/dist/types/src/core/plugin.d.ts +2 -1
- package/dist/types/src/core/plugin.d.ts.map +1 -1
- package/dist/types/src/playground/logger/schema.d.ts +6 -6
- package/dist/types/src/playground/logger/schema.d.ts.map +1 -1
- package/dist/types/src/plugin-intent/actions.d.ts +14 -14
- package/dist/types/src/plugin-intent/actions.d.ts.map +1 -1
- package/dist/types/src/plugin-intent/intent-dispatcher.d.ts +27 -1
- package/dist/types/src/plugin-intent/intent-dispatcher.d.ts.map +1 -1
- package/dist/types/src/plugin-intent/intent.d.ts +12 -12
- package/dist/types/src/plugin-intent/intent.d.ts.map +1 -1
- package/dist/types/src/plugin-settings/actions.d.ts +10 -10
- package/dist/types/src/plugin-settings/actions.d.ts.map +1 -1
- package/package.json +23 -19
- package/project.json +2 -1
- package/src/App.tsx +2 -2
- package/src/common/capabilities.ts +2 -2
- package/src/common/collaboration.ts +22 -0
- package/src/common/file.ts +7 -7
- package/src/common/index.ts +1 -0
- package/src/common/layout.ts +159 -128
- package/src/common/translations.ts +7 -7
- package/src/core/capabilities.ts +9 -5
- package/src/core/events.ts +4 -1
- package/src/core/manager.test.ts +3 -3
- package/src/core/manager.ts +10 -10
- package/src/core/plugin.ts +2 -1
- package/src/playground/generator/generator.ts +4 -4
- package/src/playground/logger/schema.ts +5 -5
- package/src/plugin-intent/actions.ts +9 -9
- package/src/plugin-intent/intent-dispatcher.test.ts +23 -23
- package/src/plugin-intent/intent-dispatcher.ts +18 -2
- package/src/plugin-intent/intent.ts +20 -11
- package/src/plugin-settings/actions.ts +8 -8
- package/typedoc/.nojekyll +1 -0
- package/typedoc/assets/hierarchy.js +1 -0
- package/typedoc/assets/highlight.css +106 -0
- package/typedoc/assets/icons.js +18 -0
- package/typedoc/assets/icons.svg +1 -0
- package/typedoc/assets/main.js +60 -0
- package/typedoc/assets/navigation.js +1 -0
- package/typedoc/assets/search.js +1 -0
- package/typedoc/assets/style.css +1640 -0
- package/typedoc/classes/CollaborationActions.InsertContent.html +460 -0
- package/typedoc/classes/ErrorBoundary.html +125 -0
- package/typedoc/classes/IntentAction.ShowUndo.html +227 -0
- package/typedoc/classes/IntentAction.Track.html +266 -0
- package/typedoc/classes/LayoutAction.AddToast.html +265 -0
- package/typedoc/classes/LayoutAction.Close.html +382 -0
- package/typedoc/classes/LayoutAction.Expose.html +265 -0
- package/typedoc/classes/LayoutAction.Open.html +1123 -0
- package/typedoc/classes/LayoutAction.RevertWorkspace.html +343 -0
- package/typedoc/classes/LayoutAction.ScrollIntoView.html +460 -0
- package/typedoc/classes/LayoutAction.Set.html +460 -0
- package/typedoc/classes/LayoutAction.SetLayoutMode.html +499 -0
- package/typedoc/classes/LayoutAction.SwitchWorkspace.html +265 -0
- package/typedoc/classes/LayoutAction.UpdateComplementary.html +616 -0
- package/typedoc/classes/LayoutAction.UpdateDialog.html +811 -0
- package/typedoc/classes/LayoutAction.UpdateLayout.html +461 -0
- package/typedoc/classes/LayoutAction.UpdatePopover.html +1435 -0
- package/typedoc/classes/LayoutAction.UpdateSidebar.html +616 -0
- package/typedoc/classes/Plugin.html +6 -0
- package/typedoc/classes/PluginManager.html +42 -0
- package/typedoc/classes/PluginModule.html +18 -0
- package/typedoc/classes/PluginsContext.html +25 -0
- package/typedoc/classes/SettingsAction.Open.html +226 -0
- package/typedoc/classes/SettingsAction.OpenPluginRegistry.html +265 -0
- package/typedoc/functions/Events.createStateEvent.html +2 -0
- package/typedoc/functions/IntentPlugin.html +1 -0
- package/typedoc/functions/SettingsPlugin.html +1 -0
- package/typedoc/functions/allOf.html +2 -0
- package/typedoc/functions/chain.html +3 -0
- package/typedoc/functions/contributes.html +2 -0
- package/typedoc/functions/createApp.html +6 -0
- package/typedoc/functions/createDispatcher.html +3 -0
- package/typedoc/functions/createIntent.html +6 -0
- package/typedoc/functions/createResolver.html +2 -0
- package/typedoc/functions/createSurface.html +2 -0
- package/typedoc/functions/defineCapability.html +2 -0
- package/typedoc/functions/defineEvent.html +2 -0
- package/typedoc/functions/defineModule.html +2 -0
- package/typedoc/functions/definePlugin.html +2 -0
- package/typedoc/functions/eventKey.html +2 -0
- package/typedoc/functions/getEvents.html +2 -0
- package/typedoc/functions/isAllOf.html +2 -0
- package/typedoc/functions/isOneOf.html +2 -0
- package/typedoc/functions/isSurfaceAvailable.html +2 -0
- package/typedoc/functions/lazy.html +2 -0
- package/typedoc/functions/oneOf.html +2 -0
- package/typedoc/functions/useAppGraph.html +1 -0
- package/typedoc/functions/useCapabilities.html +3 -0
- package/typedoc/functions/useCapability.html +4 -0
- package/typedoc/functions/useIntentDispatcher.html +1 -0
- package/typedoc/functions/useIntentResolver.html +1 -0
- package/typedoc/functions/useLayout.html +1 -0
- package/typedoc/functions/usePluginManager.html +2 -0
- package/typedoc/hierarchy.html +1 -0
- package/typedoc/index.html +16 -0
- package/typedoc/interfaces/LayoutAction.Toast.html +10 -0
- package/typedoc/media/LICENSE +8 -0
- package/typedoc/modules/Capabilities.html +1 -0
- package/typedoc/modules/CollaborationActions.html +1 -0
- package/typedoc/modules/Events.html +1 -0
- package/typedoc/modules/IntentAction.html +1 -0
- package/typedoc/modules/LayoutAction.html +2 -0
- package/typedoc/modules/SettingsAction.html +1 -0
- package/typedoc/modules.html +1 -0
- package/typedoc/types/ActivationEvent.html +8 -0
- package/typedoc/types/ActivationEvents.html +2 -0
- package/typedoc/types/AnyCapability.html +1 -0
- package/typedoc/types/AnyIntent.html +1 -0
- package/typedoc/types/AnyIntentChain.html +1 -0
- package/typedoc/types/AnyIntentEffectResult.html +1 -0
- package/typedoc/types/AnyIntentResolver.html +1 -0
- package/typedoc/types/AnyIntentResult.html +1 -0
- package/typedoc/types/Capabilities.FileUploader.html +1 -0
- package/typedoc/types/Capabilities.IntentResolver.html +1 -0
- package/typedoc/types/Capabilities.Layout.html +1 -0
- package/typedoc/types/Capabilities.Metadata.html +1 -0
- package/typedoc/types/Capabilities.ReactContext.html +1 -0
- package/typedoc/types/Capabilities.ReactRoot.html +1 -0
- package/typedoc/types/Capabilities.ReactSurface.html +1 -0
- package/typedoc/types/Capabilities.Settings.html +4 -0
- package/typedoc/types/Capability.html +9 -0
- package/typedoc/types/CreateAppOptions.html +9 -0
- package/typedoc/types/FileInfo.html +1 -0
- package/typedoc/types/Intent.html +14 -0
- package/typedoc/types/IntentChain.html +6 -0
- package/typedoc/types/IntentContext.html +5 -0
- package/typedoc/types/IntentData.html +1 -0
- package/typedoc/types/IntentDispatcher.html +2 -0
- package/typedoc/types/IntentDispatcherResult.html +2 -0
- package/typedoc/types/IntentEffectDefinition.html +2 -0
- package/typedoc/types/IntentEffectResult.html +15 -0
- package/typedoc/types/IntentParams.html +3 -0
- package/typedoc/types/IntentResolver.html +2 -0
- package/typedoc/types/IntentResultData.html +1 -0
- package/typedoc/types/IntentSchema.html +1 -0
- package/typedoc/types/IntentUndo.html +2 -0
- package/typedoc/types/InterfaceDef.html +4 -0
- package/typedoc/types/Label.html +1 -0
- package/typedoc/types/NodeSerializer.html +8 -0
- package/typedoc/types/PluginManagerOptions.html +5 -0
- package/typedoc/types/PluginMeta.html +21 -0
- package/typedoc/types/PromiseIntentDispatcher.html +2 -0
- package/typedoc/types/PromiseIntentUndo.html +2 -0
- package/typedoc/types/Resource.html +1 -0
- package/typedoc/types/ResourceKey.html +1 -0
- package/typedoc/types/ResourceLanguage.html +1 -0
- package/typedoc/types/SerializedNode.html +4 -0
- package/typedoc/types/SurfaceComponent.html +2 -0
- package/typedoc/types/SurfaceDefinition.html +2 -0
- package/typedoc/types/SurfaceProps.html +4 -0
- package/typedoc/variables/Capabilities.AppGraph.html +1 -0
- package/typedoc/variables/Capabilities.AppGraphBuilder.html +1 -0
- package/typedoc/variables/Capabilities.AppGraphSerializer.html +1 -0
- package/typedoc/variables/Capabilities.ArtifactDefinition.html +1 -0
- package/typedoc/variables/Capabilities.FileUploader.html +1 -0
- package/typedoc/variables/Capabilities.IntentDispatcher.html +1 -0
- package/typedoc/variables/Capabilities.IntentResolver.html +1 -0
- package/typedoc/variables/Capabilities.Layout.html +1 -0
- package/typedoc/variables/Capabilities.Metadata.html +1 -0
- package/typedoc/variables/Capabilities.Null.html +1 -0
- package/typedoc/variables/Capabilities.PluginManager.html +1 -0
- package/typedoc/variables/Capabilities.ReactContext.html +1 -0
- package/typedoc/variables/Capabilities.ReactRoot.html +1 -0
- package/typedoc/variables/Capabilities.ReactSurface.html +1 -0
- package/typedoc/variables/Capabilities.Settings.html +1 -0
- package/typedoc/variables/Capabilities.SettingsStore.html +1 -0
- package/typedoc/variables/Capabilities.Tools.html +1 -0
- package/typedoc/variables/Capabilities.Translations.html +1 -0
- package/typedoc/variables/Events.AppGraphReady.html +2 -0
- package/typedoc/variables/Events.DispatcherReady.html +2 -0
- package/typedoc/variables/Events.LayoutReady.html +1 -0
- package/typedoc/variables/Events.SettingsReady.html +2 -0
- package/typedoc/variables/Events.SetupAppGraph.html +2 -0
- package/typedoc/variables/Events.SetupArtifactDefinition.html +2 -0
- package/typedoc/variables/Events.SetupIntentResolver.html +2 -0
- package/typedoc/variables/Events.SetupMetadata.html +2 -0
- package/typedoc/variables/Events.SetupReactSurface.html +2 -0
- package/typedoc/variables/Events.SetupSettings.html +2 -0
- package/typedoc/variables/Events.SetupTranslations.html +2 -0
- package/typedoc/variables/Events.Startup.html +2 -0
- package/typedoc/variables/FileInfoSchema.html +1 -0
- package/typedoc/variables/INTENT_ACTION.html +1 -0
- package/typedoc/variables/INTENT_PLUGIN.html +1 -0
- package/typedoc/variables/LAYOUT_ACTION.html +1 -0
- package/typedoc/variables/LAYOUT_PLUGIN.html +1 -0
- package/typedoc/variables/Label.html +1 -0
- package/typedoc/variables/LayoutAction.Toast.html +1 -0
- package/typedoc/variables/LayoutAction.UPDATE_LAYOUT.html +1 -0
- package/typedoc/variables/PluginManagerProvider.html +2 -0
- package/typedoc/variables/Resource.html +2 -0
- package/typedoc/variables/ResourceKey.html +1 -0
- package/typedoc/variables/ResourceLanguage.html +1 -0
- package/typedoc/variables/SETTINGS_ACTION.html +1 -0
- package/typedoc/variables/SETTINGS_ID.html +1 -0
- package/typedoc/variables/SETTINGS_KEY.html +1 -0
- package/typedoc/variables/SETTINGS_PLUGIN.html +1 -0
- package/typedoc/variables/Surface.html +2 -0
- package/typedoc/variables/defaultFileTypes.html +1 -0
- package/dist/lib/browser/chunk-6AVTZPMT.mjs.map +0 -7
- package/dist/lib/browser/chunk-SFPT4Z2C.mjs.map +0 -7
- package/dist/lib/node/chunk-JUSEAFDU.cjs.map +0 -7
- package/dist/lib/node/chunk-YIFTVCOR.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-AHKIPS2L.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-PHOUQACM.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-R6A7Z4LU.mjs.map +0 -7
- /package/dist/lib/browser/{app-graph-builder-576BHZC7.mjs.map → app-graph-builder-FB4NWT25.mjs.map} +0 -0
- /package/dist/lib/browser/{intent-dispatcher-3Q67MHZZ.mjs.map → intent-dispatcher-SICNXT2G.mjs.map} +0 -0
- /package/dist/lib/browser/{intent-resolver-O763LCLG.mjs.map → intent-resolver-2K6LNSUE.mjs.map} +0 -0
- /package/dist/lib/browser/{store-URSN7DZI.mjs.map → store-P4XZF26P.mjs.map} +0 -0
- /package/dist/lib/node/{app-graph-builder-JZCSKYPY.cjs.map → app-graph-builder-5QJ6YDE7.cjs.map} +0 -0
- /package/dist/lib/node/{intent-resolver-3F4POWAM.cjs.map → intent-resolver-ZP6S7QKG.cjs.map} +0 -0
- /package/dist/lib/node/{store-OFDHTDCB.cjs.map → store-MALHSPHZ.cjs.map} +0 -0
- /package/dist/lib/node-esm/{app-graph-builder-VYKLSMSZ.mjs.map → app-graph-builder-2KB5VMTB.mjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-dispatcher-YDE2ONZA.mjs.map → intent-dispatcher-FF5HNHPQ.mjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-resolver-LAGJ7LXM.mjs.map → intent-resolver-QWIKXIGI.mjs.map} +0 -0
- /package/dist/lib/node-esm/{store-EYSUVNCS.mjs.map → store-3NM6AWB4.mjs.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Schema
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
2
|
export declare const LAYOUT_PLUGIN = "dxos.org/plugin/layout";
|
|
3
3
|
export declare const LAYOUT_ACTION = "dxos.org/plugin/layout/action";
|
|
4
4
|
/**
|
|
@@ -6,255 +6,261 @@ export declare const LAYOUT_ACTION = "dxos.org/plugin/layout/action";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare namespace LayoutAction {
|
|
8
8
|
export const UPDATE_LAYOUT = "dxos.org/plugin/layout/action/update-layout";
|
|
9
|
-
const UpdateLayout_base:
|
|
10
|
-
readonly _tag:
|
|
9
|
+
const UpdateLayout_base: Schema.TaggedClass<UpdateLayout, "dxos.org/plugin/layout/action/update-layout", {
|
|
10
|
+
readonly _tag: Schema.tag<"dxos.org/plugin/layout/action/update-layout">;
|
|
11
11
|
} & {
|
|
12
|
-
input:
|
|
13
|
-
part:
|
|
14
|
-
subject:
|
|
15
|
-
options:
|
|
12
|
+
input: Schema.Struct<{
|
|
13
|
+
part: Schema.SchemaClass<string, string, never>;
|
|
14
|
+
subject: Schema.optional<Schema.SchemaClass<any, any, never>>;
|
|
15
|
+
options: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
16
16
|
}>;
|
|
17
|
-
output: typeof
|
|
17
|
+
output: typeof Schema.Void;
|
|
18
18
|
}>;
|
|
19
19
|
/**
|
|
20
20
|
* Generic layout action.
|
|
21
21
|
*/
|
|
22
22
|
export class UpdateLayout extends UpdateLayout_base {
|
|
23
23
|
}
|
|
24
|
-
const SetLayoutMode_base:
|
|
25
|
-
readonly _tag:
|
|
24
|
+
const SetLayoutMode_base: Schema.TaggedClass<SetLayoutMode, "dxos.org/plugin/layout/action/update-layout", {
|
|
25
|
+
readonly _tag: Schema.tag<"dxos.org/plugin/layout/action/update-layout">;
|
|
26
26
|
} & {
|
|
27
|
-
input:
|
|
28
|
-
part:
|
|
29
|
-
subject:
|
|
30
|
-
options:
|
|
31
|
-
mode:
|
|
32
|
-
}>,
|
|
33
|
-
revert:
|
|
27
|
+
input: Schema.Struct<{
|
|
28
|
+
part: Schema.Literal<["mode"]>;
|
|
29
|
+
subject: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
30
|
+
options: Schema.Union<[Schema.Struct<{
|
|
31
|
+
mode: Schema.SchemaClass<string, string, never>;
|
|
32
|
+
}>, Schema.Struct<{
|
|
33
|
+
revert: Schema.SchemaClass<boolean, boolean, never>;
|
|
34
34
|
}>]>;
|
|
35
35
|
}>;
|
|
36
|
-
output: typeof
|
|
36
|
+
output: typeof Schema.Void;
|
|
37
37
|
}>;
|
|
38
38
|
export class SetLayoutMode extends SetLayoutMode_base {
|
|
39
39
|
}
|
|
40
|
-
const UpdateSidebar_base:
|
|
41
|
-
readonly _tag:
|
|
40
|
+
const UpdateSidebar_base: Schema.TaggedClass<UpdateSidebar, "dxos.org/plugin/layout/action/update-layout", {
|
|
41
|
+
readonly _tag: Schema.tag<"dxos.org/plugin/layout/action/update-layout">;
|
|
42
42
|
} & {
|
|
43
|
-
input:
|
|
44
|
-
part:
|
|
45
|
-
subject:
|
|
46
|
-
options:
|
|
47
|
-
state:
|
|
43
|
+
input: Schema.Struct<{
|
|
44
|
+
part: Schema.Literal<["sidebar"]>;
|
|
45
|
+
subject: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
46
|
+
options: Schema.optional<Schema.Struct<{
|
|
47
|
+
state: Schema.Literal<["closed", "collapsed", "expanded"]>;
|
|
48
48
|
}>>;
|
|
49
49
|
}>;
|
|
50
|
-
output: typeof
|
|
50
|
+
output: typeof Schema.Void;
|
|
51
51
|
}>;
|
|
52
52
|
export class UpdateSidebar extends UpdateSidebar_base {
|
|
53
53
|
}
|
|
54
|
-
const UpdateComplementary_base:
|
|
55
|
-
readonly _tag:
|
|
54
|
+
const UpdateComplementary_base: Schema.TaggedClass<UpdateComplementary, "dxos.org/plugin/layout/action/update-layout", {
|
|
55
|
+
readonly _tag: Schema.tag<"dxos.org/plugin/layout/action/update-layout">;
|
|
56
56
|
} & {
|
|
57
|
-
input:
|
|
58
|
-
part:
|
|
59
|
-
subject:
|
|
60
|
-
options:
|
|
61
|
-
state:
|
|
57
|
+
input: Schema.Struct<{
|
|
58
|
+
part: Schema.Literal<["complementary"]>;
|
|
59
|
+
subject: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
60
|
+
options: Schema.optional<Schema.Struct<{
|
|
61
|
+
state: Schema.Literal<["closed", "collapsed", "expanded"]>;
|
|
62
62
|
}>>;
|
|
63
63
|
}>;
|
|
64
|
-
output: typeof
|
|
64
|
+
output: typeof Schema.Void;
|
|
65
65
|
}>;
|
|
66
66
|
export class UpdateComplementary extends UpdateComplementary_base {
|
|
67
67
|
}
|
|
68
|
-
const UpdateDialog_base:
|
|
69
|
-
readonly _tag:
|
|
68
|
+
const UpdateDialog_base: Schema.TaggedClass<UpdateDialog, "dxos.org/plugin/layout/action/update-layout", {
|
|
69
|
+
readonly _tag: Schema.tag<"dxos.org/plugin/layout/action/update-layout">;
|
|
70
70
|
} & {
|
|
71
|
-
input:
|
|
72
|
-
part:
|
|
73
|
-
subject:
|
|
74
|
-
options:
|
|
75
|
-
state:
|
|
76
|
-
blockAlign:
|
|
77
|
-
type:
|
|
78
|
-
props:
|
|
71
|
+
input: Schema.Struct<{
|
|
72
|
+
part: Schema.Literal<["dialog"]>;
|
|
73
|
+
subject: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
74
|
+
options: Schema.Struct<{
|
|
75
|
+
state: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
76
|
+
blockAlign: Schema.optional<Schema.Literal<["start", "center", "end"]>>;
|
|
77
|
+
type: Schema.optional<Schema.Literal<["default", "alert"]>>;
|
|
78
|
+
props: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
79
79
|
}>;
|
|
80
80
|
}>;
|
|
81
|
-
output: typeof
|
|
81
|
+
output: typeof Schema.Void;
|
|
82
82
|
}>;
|
|
83
83
|
export class UpdateDialog extends UpdateDialog_base {
|
|
84
84
|
}
|
|
85
|
-
const UpdatePopover_base:
|
|
86
|
-
readonly _tag:
|
|
85
|
+
const UpdatePopover_base: Schema.TaggedClass<UpdatePopover, "dxos.org/plugin/layout/action/update-layout", {
|
|
86
|
+
readonly _tag: Schema.tag<"dxos.org/plugin/layout/action/update-layout">;
|
|
87
87
|
} & {
|
|
88
|
-
input:
|
|
89
|
-
part:
|
|
90
|
-
subject:
|
|
91
|
-
options:
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
88
|
+
input: Schema.Struct<{
|
|
89
|
+
part: Schema.Literal<["popover"]>;
|
|
90
|
+
subject: Schema.optional<Schema.SchemaClass<any, any, never>>;
|
|
91
|
+
options: Schema.extend<Schema.Struct<{
|
|
92
|
+
side: Schema.optional<Schema.Literal<["top", "right", "bottom", "left"]>>;
|
|
93
|
+
state: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
94
|
+
props: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
95
|
+
}>, Schema.Union<[Schema.Struct<{
|
|
96
|
+
variant: Schema.Literal<["virtual"]>;
|
|
97
|
+
anchor: Schema.SchemaClass<any, any, never>;
|
|
98
|
+
}>, Schema.Struct<{
|
|
99
|
+
variant: Schema.optional<Schema.Literal<["react"]>>;
|
|
100
|
+
anchorId: Schema.SchemaClass<string, string, never>;
|
|
101
|
+
}>]>>;
|
|
97
102
|
}>;
|
|
98
|
-
output: typeof
|
|
103
|
+
output: typeof Schema.Void;
|
|
99
104
|
}>;
|
|
100
105
|
export class UpdatePopover extends UpdatePopover_base {
|
|
101
106
|
}
|
|
102
|
-
export const Toast:
|
|
103
|
-
id:
|
|
104
|
-
title:
|
|
105
|
-
ns: typeof
|
|
106
|
-
count:
|
|
107
|
+
export const Toast: Schema.Struct<{
|
|
108
|
+
id: Schema.SchemaClass<string, string, never>;
|
|
109
|
+
title: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
110
|
+
ns: typeof Schema.String;
|
|
111
|
+
count: Schema.optional<typeof Schema.Number>;
|
|
107
112
|
}>>>>]>>;
|
|
108
|
-
description:
|
|
109
|
-
ns: typeof
|
|
110
|
-
count:
|
|
113
|
+
description: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
114
|
+
ns: typeof Schema.String;
|
|
115
|
+
count: Schema.optional<typeof Schema.Number>;
|
|
111
116
|
}>>>>]>>;
|
|
112
|
-
icon:
|
|
113
|
-
duration:
|
|
114
|
-
closeLabel:
|
|
115
|
-
ns: typeof
|
|
116
|
-
count:
|
|
117
|
+
icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
118
|
+
duration: Schema.optional<Schema.SchemaClass<number, number, never>>;
|
|
119
|
+
closeLabel: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
120
|
+
ns: typeof Schema.String;
|
|
121
|
+
count: Schema.optional<typeof Schema.Number>;
|
|
117
122
|
}>>>>]>>;
|
|
118
|
-
actionLabel:
|
|
119
|
-
ns: typeof
|
|
120
|
-
count:
|
|
123
|
+
actionLabel: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
124
|
+
ns: typeof Schema.String;
|
|
125
|
+
count: Schema.optional<typeof Schema.Number>;
|
|
121
126
|
}>>>>]>>;
|
|
122
|
-
actionAlt:
|
|
123
|
-
ns: typeof
|
|
124
|
-
count:
|
|
127
|
+
actionAlt: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
128
|
+
ns: typeof Schema.String;
|
|
129
|
+
count: Schema.optional<typeof Schema.Number>;
|
|
125
130
|
}>>>>]>>;
|
|
126
|
-
onAction:
|
|
131
|
+
onAction: Schema.optional<Schema.SchemaClass<any, any, never>>;
|
|
127
132
|
}>;
|
|
128
|
-
export interface Toast extends Omit<
|
|
133
|
+
export interface Toast extends Omit<Schema.Schema.Type<typeof Toast>, 'onAction'> {
|
|
129
134
|
onAction?: () => void;
|
|
130
135
|
}
|
|
131
|
-
const AddToast_base:
|
|
132
|
-
readonly _tag:
|
|
136
|
+
const AddToast_base: Schema.TaggedClass<AddToast, "dxos.org/plugin/layout/action/update-layout", {
|
|
137
|
+
readonly _tag: Schema.tag<"dxos.org/plugin/layout/action/update-layout">;
|
|
133
138
|
} & {
|
|
134
|
-
input:
|
|
135
|
-
part:
|
|
136
|
-
subject:
|
|
137
|
-
id:
|
|
138
|
-
title:
|
|
139
|
-
ns: typeof
|
|
140
|
-
count:
|
|
139
|
+
input: Schema.Struct<{
|
|
140
|
+
part: Schema.Literal<["toast"]>;
|
|
141
|
+
subject: Schema.Struct<{
|
|
142
|
+
id: Schema.SchemaClass<string, string, never>;
|
|
143
|
+
title: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
144
|
+
ns: typeof Schema.String;
|
|
145
|
+
count: Schema.optional<typeof Schema.Number>;
|
|
141
146
|
}>>>>]>>;
|
|
142
|
-
description:
|
|
143
|
-
ns: typeof
|
|
144
|
-
count:
|
|
147
|
+
description: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
148
|
+
ns: typeof Schema.String;
|
|
149
|
+
count: Schema.optional<typeof Schema.Number>;
|
|
145
150
|
}>>>>]>>;
|
|
146
|
-
icon:
|
|
147
|
-
duration:
|
|
148
|
-
closeLabel:
|
|
149
|
-
ns: typeof
|
|
150
|
-
count:
|
|
151
|
+
icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
152
|
+
duration: Schema.optional<Schema.SchemaClass<number, number, never>>;
|
|
153
|
+
closeLabel: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
154
|
+
ns: typeof Schema.String;
|
|
155
|
+
count: Schema.optional<typeof Schema.Number>;
|
|
151
156
|
}>>>>]>>;
|
|
152
|
-
actionLabel:
|
|
153
|
-
ns: typeof
|
|
154
|
-
count:
|
|
157
|
+
actionLabel: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
158
|
+
ns: typeof Schema.String;
|
|
159
|
+
count: Schema.optional<typeof Schema.Number>;
|
|
155
160
|
}>>>>]>>;
|
|
156
|
-
actionAlt:
|
|
157
|
-
ns: typeof
|
|
158
|
-
count:
|
|
161
|
+
actionAlt: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
162
|
+
ns: typeof Schema.String;
|
|
163
|
+
count: Schema.optional<typeof Schema.Number>;
|
|
159
164
|
}>>>>]>>;
|
|
160
|
-
onAction:
|
|
165
|
+
onAction: Schema.optional<Schema.SchemaClass<any, any, never>>;
|
|
161
166
|
}>;
|
|
162
167
|
}>;
|
|
163
|
-
output: typeof
|
|
168
|
+
output: typeof Schema.Void;
|
|
164
169
|
}>;
|
|
165
170
|
export class AddToast extends AddToast_base {
|
|
166
171
|
}
|
|
167
|
-
const SwitchWorkspace_base:
|
|
168
|
-
readonly _tag:
|
|
172
|
+
const SwitchWorkspace_base: Schema.TaggedClass<SwitchWorkspace, "dxos.org/plugin/layout/action/update-layout", {
|
|
173
|
+
readonly _tag: Schema.tag<"dxos.org/plugin/layout/action/update-layout">;
|
|
169
174
|
} & {
|
|
170
|
-
input:
|
|
171
|
-
part:
|
|
172
|
-
subject:
|
|
175
|
+
input: Schema.Struct<{
|
|
176
|
+
part: Schema.Literal<["workspace"]>;
|
|
177
|
+
subject: Schema.SchemaClass<string, string, never>;
|
|
173
178
|
}>;
|
|
174
|
-
output: typeof
|
|
179
|
+
output: typeof Schema.Void;
|
|
175
180
|
}>;
|
|
176
181
|
export class SwitchWorkspace extends SwitchWorkspace_base {
|
|
177
182
|
}
|
|
178
|
-
const RevertWorkspace_base:
|
|
179
|
-
readonly _tag:
|
|
183
|
+
const RevertWorkspace_base: Schema.TaggedClass<RevertWorkspace, "dxos.org/plugin/layout/action/update-layout", {
|
|
184
|
+
readonly _tag: Schema.tag<"dxos.org/plugin/layout/action/update-layout">;
|
|
180
185
|
} & {
|
|
181
|
-
input:
|
|
182
|
-
part:
|
|
183
|
-
options:
|
|
184
|
-
revert:
|
|
186
|
+
input: Schema.Struct<{
|
|
187
|
+
part: Schema.Literal<["workspace"]>;
|
|
188
|
+
options: Schema.Struct<{
|
|
189
|
+
revert: Schema.Literal<[true]>;
|
|
185
190
|
}>;
|
|
186
191
|
}>;
|
|
187
|
-
output: typeof
|
|
192
|
+
output: typeof Schema.Void;
|
|
188
193
|
}>;
|
|
189
194
|
export class RevertWorkspace extends RevertWorkspace_base {
|
|
190
195
|
}
|
|
191
|
-
const Open_base:
|
|
192
|
-
readonly _tag:
|
|
196
|
+
const Open_base: Schema.TaggedClass<Open, "dxos.org/plugin/layout/action/update-layout", {
|
|
197
|
+
readonly _tag: Schema.tag<"dxos.org/plugin/layout/action/update-layout">;
|
|
193
198
|
} & {
|
|
194
|
-
input:
|
|
195
|
-
part:
|
|
196
|
-
subject:
|
|
197
|
-
options:
|
|
198
|
-
state:
|
|
199
|
-
variant:
|
|
200
|
-
key:
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
199
|
+
input: Schema.Struct<{
|
|
200
|
+
part: Schema.Literal<["main"]>;
|
|
201
|
+
subject: Schema.Array$<Schema.SchemaClass<string, string, never>>;
|
|
202
|
+
options: Schema.optional<Schema.Struct<{
|
|
203
|
+
state: Schema.optional<Schema.Literal<[true]>>;
|
|
204
|
+
variant: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
205
|
+
key: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
206
|
+
workspace: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
207
|
+
scrollIntoView: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
208
|
+
pivotId: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
209
|
+
positioning: Schema.optional<Schema.Union<[Schema.Literal<["start"]>, Schema.Literal<["end"]>]>>;
|
|
204
210
|
}>>;
|
|
205
211
|
}>;
|
|
206
|
-
output: typeof
|
|
212
|
+
output: typeof Schema.Void;
|
|
207
213
|
}>;
|
|
208
214
|
export class Open extends Open_base {
|
|
209
215
|
}
|
|
210
|
-
const Set_base:
|
|
211
|
-
readonly _tag:
|
|
216
|
+
const Set_base: Schema.TaggedClass<Set, "dxos.org/plugin/layout/action/update-layout", {
|
|
217
|
+
readonly _tag: Schema.tag<"dxos.org/plugin/layout/action/update-layout">;
|
|
212
218
|
} & {
|
|
213
|
-
input:
|
|
214
|
-
part:
|
|
215
|
-
subject:
|
|
216
|
-
options:
|
|
217
|
-
override:
|
|
219
|
+
input: Schema.Struct<{
|
|
220
|
+
part: Schema.Literal<["main"]>;
|
|
221
|
+
subject: Schema.Array$<Schema.SchemaClass<string, string, never>>;
|
|
222
|
+
options: Schema.Struct<{
|
|
223
|
+
override: Schema.Literal<[true]>;
|
|
218
224
|
}>;
|
|
219
225
|
}>;
|
|
220
|
-
output: typeof
|
|
226
|
+
output: typeof Schema.Void;
|
|
221
227
|
}>;
|
|
222
228
|
export class Set extends Set_base {
|
|
223
229
|
}
|
|
224
|
-
const Close_base:
|
|
225
|
-
readonly _tag:
|
|
230
|
+
const Close_base: Schema.TaggedClass<Close, "dxos.org/plugin/layout/action/update-layout", {
|
|
231
|
+
readonly _tag: Schema.tag<"dxos.org/plugin/layout/action/update-layout">;
|
|
226
232
|
} & {
|
|
227
|
-
input:
|
|
228
|
-
part:
|
|
229
|
-
subject:
|
|
230
|
-
options:
|
|
231
|
-
state:
|
|
233
|
+
input: Schema.Struct<{
|
|
234
|
+
part: Schema.Literal<["main"]>;
|
|
235
|
+
subject: Schema.Array$<Schema.SchemaClass<string, string, never>>;
|
|
236
|
+
options: Schema.Struct<{
|
|
237
|
+
state: Schema.Literal<[false]>;
|
|
232
238
|
}>;
|
|
233
239
|
}>;
|
|
234
|
-
output: typeof
|
|
240
|
+
output: typeof Schema.Void;
|
|
235
241
|
}>;
|
|
236
242
|
export class Close extends Close_base {
|
|
237
243
|
}
|
|
238
|
-
const ScrollIntoView_base:
|
|
239
|
-
readonly _tag:
|
|
244
|
+
const ScrollIntoView_base: Schema.TaggedClass<ScrollIntoView, "dxos.org/plugin/layout/action/update-layout", {
|
|
245
|
+
readonly _tag: Schema.tag<"dxos.org/plugin/layout/action/update-layout">;
|
|
240
246
|
} & {
|
|
241
|
-
input:
|
|
242
|
-
part:
|
|
243
|
-
subject:
|
|
244
|
-
options:
|
|
247
|
+
input: Schema.Struct<{
|
|
248
|
+
part: Schema.Literal<["current"]>;
|
|
249
|
+
subject: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
250
|
+
options: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
245
251
|
}>;
|
|
246
|
-
output: typeof
|
|
252
|
+
output: typeof Schema.Void;
|
|
247
253
|
}>;
|
|
248
254
|
export class ScrollIntoView extends ScrollIntoView_base {
|
|
249
255
|
}
|
|
250
|
-
const Expose_base:
|
|
251
|
-
readonly _tag:
|
|
256
|
+
const Expose_base: Schema.TaggedClass<Expose, "dxos.org/plugin/layout/action/update-layout", {
|
|
257
|
+
readonly _tag: Schema.tag<"dxos.org/plugin/layout/action/update-layout">;
|
|
252
258
|
} & {
|
|
253
|
-
input:
|
|
254
|
-
part:
|
|
255
|
-
subject:
|
|
259
|
+
input: Schema.Struct<{
|
|
260
|
+
part: Schema.Literal<["navigation"]>;
|
|
261
|
+
subject: Schema.SchemaClass<string, string, never>;
|
|
256
262
|
}>;
|
|
257
|
-
output: typeof
|
|
263
|
+
output: typeof Schema.Void;
|
|
258
264
|
}>;
|
|
259
265
|
export class Expose extends Expose_base {
|
|
260
266
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/common/layout.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/common/layout.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,eAAO,MAAM,aAAa,2BAA2B,CAAC;AACtD,eAAO,MAAM,aAAa,kCAA4B,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@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Schema
|
|
2
|
-
export declare const ResourceKey:
|
|
3
|
-
export type ResourceKey =
|
|
4
|
-
export declare const ResourceLanguage:
|
|
5
|
-
export type ResourceLanguage =
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
|
+
export declare const ResourceKey: Schema.Union<[typeof Schema.String, Schema.Record$<typeof Schema.String, typeof Schema.Any>]>;
|
|
3
|
+
export type ResourceKey = Schema.Schema.Type<typeof ResourceKey>;
|
|
4
|
+
export declare const ResourceLanguage: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.Record$<typeof Schema.String, typeof Schema.Any>]>>;
|
|
5
|
+
export type ResourceLanguage = Schema.Schema.Type<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: Schema.Record$<typeof Schema.String, Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.Record$<typeof Schema.String, typeof Schema.Any>]>>>;
|
|
10
|
+
export type Resource = Schema.Schema.Type<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,MAAM,
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../src/common/translations.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,eAAO,MAAM,WAAW,+FAAwF,CAAC;AACjH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;AAEjE,eAAO,MAAM,gBAAgB,qIAA4D,CAAC;AAC1F,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,QAAQ,2KAAiE,CAAC;AACvF,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -17,7 +17,8 @@ export type InterfaceDef<T> = {
|
|
|
17
17
|
*/
|
|
18
18
|
export declare const defineCapability: <T>(identifier: string) => InterfaceDef<T>;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* A unique string identifier with a Typescript type associated with it.
|
|
21
|
+
* When a capability is contributed to the application an implementation of the interface is provided.
|
|
21
22
|
*/
|
|
22
23
|
export type Capability<T> = {
|
|
23
24
|
/**
|
|
@@ -54,7 +55,9 @@ type LazyCapability<T, U> = (props?: T) => Promise<() => Promise<Capability<U> |
|
|
|
54
55
|
*/
|
|
55
56
|
export declare const lazy: <T, U>(c: LoadCapability<T, U> | LoadCapabilities<T>) => LazyCapability<T, U>;
|
|
56
57
|
/**
|
|
57
|
-
*
|
|
58
|
+
* Facilitates the dependency injection between [plugin modules](#pluginmodule) by allowing them contribute and request capabilities from each other.
|
|
59
|
+
* It tracks the capabilities that are contributed in an in-memory live object.
|
|
60
|
+
* This allows the application to subscribe to this state and incorporate plugins which are added dynamically.
|
|
58
61
|
*/
|
|
59
62
|
export declare class PluginsContext {
|
|
60
63
|
private readonly _definedCapabilities;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/core/capabilities.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAMhC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,QAAA,MAAM,kBAAkB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;IACH,QAAQ,CAAC,QAAQ,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC;IAErD;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,qBAAqB,CAAC,OAAO,CAAC,CAAC;gBAEnC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,qBAAqB;IAkDtD;;;;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;IAaP,eAAe,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC;IAIzD,YAAY,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC;CAG7D"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* A unique string identifier representing an event.
|
|
3
|
+
* This is expected to be a URI, where initial parts are often the id of the plugin whose package defines the event.
|
|
4
|
+
*
|
|
5
|
+
* @example dxos.org/plugin/example/event/ready
|
|
3
6
|
*/
|
|
4
7
|
export type ActivationEvent = {
|
|
5
8
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../src/core/events.ts"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../src/core/events.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GACxB,eAAe,GACf;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,eAAe,EAAE,CAAA;CAAE,GAC7C;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,eAAe,EAAE,CAAA;CAAE,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,WAAW,OAAQ,MAAM,cAAc,MAAM,KAC5B,eAC7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,UAAW,eAAe,WAAoE,CAAC;AAEpH;;GAEG;AACH,eAAO,MAAM,KAAK,cAAe,eAAe,EAAE;;;CAA0C,CAAC;AAE7F;;GAEG;AACH,eAAO,MAAM,KAAK,cAAe,eAAe,EAAE;;;CAA0C,CAAC;AAE7F;;GAEG;AACH,eAAO,MAAM,OAAO,WAAY,gBAAgB,KAAG,MAAM,IAAI;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,eAAe,EAAE,CAAA;CAC1D,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,OAAO,WAAY,gBAAgB,KAAG,MAAM,IAAI;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,eAAe,EAAE,CAAA;CAC1D,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,SAAS,WAAY,gBAAgB,sBAAkD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Event } from '@dxos/async';
|
|
2
|
-
import { type
|
|
2
|
+
import { type Live } from '@dxos/live-object';
|
|
3
3
|
import { type MaybePromise } from '@dxos/util';
|
|
4
4
|
import { PluginsContext } from './capabilities';
|
|
5
5
|
import { type ActivationEvent } from './events';
|
|
@@ -26,43 +26,43 @@ export declare class PluginManager {
|
|
|
26
26
|
*
|
|
27
27
|
* @reactive
|
|
28
28
|
*/
|
|
29
|
-
get plugins():
|
|
29
|
+
get plugins(): Live<readonly Plugin[]>;
|
|
30
30
|
/**
|
|
31
31
|
* Ids of plugins that are core and cannot be removed.
|
|
32
32
|
*
|
|
33
33
|
* @reactive
|
|
34
34
|
*/
|
|
35
|
-
get core():
|
|
35
|
+
get core(): Live<readonly string[]>;
|
|
36
36
|
/**
|
|
37
37
|
* Ids of plugins that are currently enabled.
|
|
38
38
|
*
|
|
39
39
|
* @reactive
|
|
40
40
|
*/
|
|
41
|
-
get enabled():
|
|
41
|
+
get enabled(): Live<readonly string[]>;
|
|
42
42
|
/**
|
|
43
43
|
* Modules of plugins which are currently enabled.
|
|
44
44
|
*
|
|
45
45
|
* @reactive
|
|
46
46
|
*/
|
|
47
|
-
get modules():
|
|
47
|
+
get modules(): Live<readonly PluginModule[]>;
|
|
48
48
|
/**
|
|
49
49
|
* Ids of modules which are currently active.
|
|
50
50
|
*
|
|
51
51
|
* @reactive
|
|
52
52
|
*/
|
|
53
|
-
get active():
|
|
53
|
+
get active(): Live<readonly string[]>;
|
|
54
54
|
/**
|
|
55
55
|
* Ids of events which have been fired.
|
|
56
56
|
*
|
|
57
57
|
* @reactive
|
|
58
58
|
*/
|
|
59
|
-
get eventsFired():
|
|
59
|
+
get eventsFired(): Live<readonly string[]>;
|
|
60
60
|
/**
|
|
61
61
|
* Ids of modules which are pending reset.
|
|
62
62
|
*
|
|
63
63
|
* @reactive
|
|
64
64
|
*/
|
|
65
|
-
get pendingReset():
|
|
65
|
+
get pendingReset(): Live<readonly string[]>;
|
|
66
66
|
/**
|
|
67
67
|
* Adds a plugin to the manager via the plugin loader.
|
|
68
68
|
* @param id The id of the plugin.
|
|
@@ -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,
|
|
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,EAAQ,KAAK,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEpD,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;AAiBF,qBAAa,aAAa;IACxB,QAAQ,CAAC,UAAU;eAAsB,MAAM;eAAS,YAAY,GAAG,WAAW,GAAG,OAAO;gBAAU,GAAG;OAAM;IAE/G,QAAQ,CAAC,OAAO,iBAGb;IAEH,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAClD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAuC;IACrE,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAsC;gBAExD,EACV,YA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