@dxos/app-framework 0.8.2-main.2f9c567 → 0.8.2-main.36232bc
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-FB4NWT25.mjs → app-graph-builder-OHM2Z6YQ.mjs} +3 -3
- package/dist/lib/browser/{chunk-M6UBP7YP.mjs → chunk-DVNSCQJ5.mjs} +163 -163
- package/dist/lib/browser/chunk-DVNSCQJ5.mjs.map +7 -0
- package/dist/lib/browser/{chunk-KPRHX73H.mjs → chunk-SFPT4Z2C.mjs} +9 -9
- package/dist/lib/browser/chunk-SFPT4Z2C.mjs.map +7 -0
- package/dist/lib/browser/{chunk-A7XUUTJN.mjs → chunk-X2YC645Z.mjs} +2 -2
- package/dist/lib/browser/index.mjs +6 -6
- package/dist/lib/browser/{intent-dispatcher-SICNXT2G.mjs → intent-dispatcher-J7QIFHLO.mjs} +2 -2
- package/dist/lib/browser/{intent-resolver-2K6LNSUE.mjs → intent-resolver-QV5MDMDV.mjs} +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{store-P4XZF26P.mjs → store-XMPVLJOQ.mjs} +2 -2
- package/dist/lib/browser/testing/index.mjs +2 -2
- package/dist/lib/browser/worker.mjs +1 -1
- package/dist/lib/node/{app-graph-builder-5QJ6YDE7.cjs → app-graph-builder-Z45FKS52.cjs} +28 -28
- package/dist/lib/node/{chunk-MTROSTO7.cjs → chunk-5UOVF3OR.cjs} +19 -19
- package/dist/lib/node/{chunk-LPUJODXZ.cjs → chunk-I3CJYEBC.cjs} +5 -5
- package/dist/lib/node/chunk-I3CJYEBC.cjs.map +7 -0
- package/dist/lib/node/{chunk-JQMNABMK.cjs → chunk-JUSEAFDU.cjs} +4 -4
- package/dist/lib/node/chunk-JUSEAFDU.cjs.map +7 -0
- package/dist/lib/node/index.cjs +79 -79
- package/dist/lib/node/{intent-dispatcher-XXFKXEHF.cjs → intent-dispatcher-FQPJNKIZ.cjs} +8 -8
- package/dist/lib/node/{intent-dispatcher-XXFKXEHF.cjs.map → intent-dispatcher-FQPJNKIZ.cjs.map} +2 -2
- package/dist/lib/node/{intent-resolver-ZP6S7QKG.cjs → intent-resolver-PBAOGJS6.cjs} +12 -12
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{store-MALHSPHZ.cjs → store-N7JLYYDI.cjs} +7 -7
- package/dist/lib/node/testing/index.cjs +8 -8
- package/dist/lib/node/worker.cjs +38 -38
- package/dist/lib/node/worker.cjs.map +1 -1
- package/dist/lib/node-esm/{app-graph-builder-2KB5VMTB.mjs → app-graph-builder-OMH534A4.mjs} +3 -3
- package/dist/lib/node-esm/{chunk-OZD32CQN.mjs → chunk-GSDBF2CK.mjs} +163 -163
- package/dist/lib/node-esm/chunk-GSDBF2CK.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-JUJF5L4G.mjs → chunk-PHOUQACM.mjs} +9 -9
- package/dist/lib/node-esm/chunk-PHOUQACM.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-MX6ITPIG.mjs → chunk-QHXUTJHE.mjs} +2 -2
- package/dist/lib/node-esm/index.mjs +6 -6
- package/dist/lib/node-esm/{intent-dispatcher-FF5HNHPQ.mjs → intent-dispatcher-QDUGA7NT.mjs} +2 -2
- package/dist/lib/node-esm/{intent-resolver-QWIKXIGI.mjs → intent-resolver-P7TC5RBD.mjs} +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{store-3NM6AWB4.mjs → store-M2BYJL6K.mjs} +2 -2
- package/dist/lib/node-esm/testing/index.mjs +2 -2
- package/dist/lib/node-esm/worker.mjs +1 -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 +7 -7
- package/dist/types/src/common/collaboration.d.ts.map +1 -1
- 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/layout.d.ts +163 -163
- 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/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.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 +19 -19
- package/src/common/capabilities.ts +2 -2
- package/src/common/collaboration.ts +6 -7
- package/src/common/file.ts +7 -7
- package/src/common/layout.ts +136 -148
- package/src/common/translations.ts +7 -7
- 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.ts +11 -20
- package/src/plugin-settings/actions.ts +8 -8
- package/typedoc/classes/CollaborationActions.InsertContent.html +202 -241
- package/typedoc/classes/ErrorBoundary.html +6 -6
- package/typedoc/classes/IntentAction.ShowUndo.html +125 -125
- package/typedoc/classes/IntentAction.Track.html +239 -239
- package/typedoc/classes/LayoutAction.AddToast.html +163 -163
- package/typedoc/classes/LayoutAction.Close.html +352 -352
- package/typedoc/classes/LayoutAction.Expose.html +238 -238
- package/typedoc/classes/LayoutAction.Open.html +748 -904
- package/typedoc/classes/LayoutAction.RevertWorkspace.html +241 -241
- package/typedoc/classes/LayoutAction.ScrollIntoView.html +280 -280
- package/typedoc/classes/LayoutAction.Set.html +358 -436
- package/typedoc/classes/LayoutAction.SetLayoutMode.html +391 -469
- package/typedoc/classes/LayoutAction.SwitchWorkspace.html +238 -238
- package/typedoc/classes/LayoutAction.UpdateComplementary.html +358 -358
- package/typedoc/classes/LayoutAction.UpdateDialog.html +475 -553
- package/typedoc/classes/LayoutAction.UpdateLayout.html +281 -281
- package/typedoc/classes/LayoutAction.UpdatePopover.html +826 -826
- package/typedoc/classes/LayoutAction.UpdateSidebar.html +319 -397
- package/typedoc/classes/Plugin.html +3 -3
- package/typedoc/classes/PluginManager.html +16 -16
- package/typedoc/classes/PluginModule.html +8 -8
- package/typedoc/classes/PluginsContext.html +8 -8
- package/typedoc/classes/SettingsAction.Open.html +199 -199
- package/typedoc/classes/SettingsAction.OpenPluginRegistry.html +124 -124
- package/typedoc/functions/Events.createStateEvent.html +2 -2
- package/typedoc/functions/IntentPlugin.html +1 -1
- package/typedoc/functions/SettingsPlugin.html +1 -1
- package/typedoc/functions/allOf.html +2 -2
- package/typedoc/functions/chain.html +2 -2
- package/typedoc/functions/contributes.html +2 -2
- package/typedoc/functions/createApp.html +2 -2
- package/typedoc/functions/createDispatcher.html +2 -2
- package/typedoc/functions/createIntent.html +2 -2
- package/typedoc/functions/createResolver.html +2 -2
- package/typedoc/functions/createSurface.html +2 -2
- package/typedoc/functions/defineCapability.html +2 -2
- package/typedoc/functions/defineEvent.html +2 -2
- package/typedoc/functions/defineModule.html +2 -2
- package/typedoc/functions/definePlugin.html +2 -2
- package/typedoc/functions/eventKey.html +2 -2
- package/typedoc/functions/getEvents.html +2 -2
- package/typedoc/functions/isAllOf.html +2 -2
- package/typedoc/functions/isOneOf.html +2 -2
- package/typedoc/functions/isSurfaceAvailable.html +2 -2
- package/typedoc/functions/lazy.html +2 -2
- package/typedoc/functions/oneOf.html +2 -2
- package/typedoc/functions/useAppGraph.html +1 -1
- package/typedoc/functions/useCapabilities.html +2 -2
- package/typedoc/functions/useCapability.html +2 -2
- package/typedoc/functions/useIntentDispatcher.html +1 -1
- package/typedoc/functions/useIntentResolver.html +1 -1
- package/typedoc/functions/useLayout.html +1 -1
- package/typedoc/functions/usePluginManager.html +2 -2
- package/typedoc/hierarchy.html +1 -1
- package/typedoc/index.html +2 -2
- package/typedoc/interfaces/LayoutAction.Toast.html +2 -2
- package/typedoc/modules/Capabilities.html +1 -1
- package/typedoc/modules/CollaborationActions.html +1 -1
- package/typedoc/modules/Events.html +1 -1
- package/typedoc/modules/IntentAction.html +1 -1
- package/typedoc/modules/LayoutAction.html +2 -2
- package/typedoc/modules/SettingsAction.html +1 -1
- package/typedoc/modules.html +1 -1
- package/typedoc/types/ActivationEvent.html +3 -3
- package/typedoc/types/ActivationEvents.html +2 -2
- package/typedoc/types/AnyCapability.html +1 -1
- package/typedoc/types/AnyIntent.html +1 -1
- package/typedoc/types/AnyIntentChain.html +1 -1
- package/typedoc/types/AnyIntentEffectResult.html +1 -1
- package/typedoc/types/AnyIntentResolver.html +1 -1
- package/typedoc/types/AnyIntentResult.html +1 -1
- package/typedoc/types/Capabilities.FileUploader.html +1 -1
- package/typedoc/types/Capabilities.IntentResolver.html +1 -1
- package/typedoc/types/Capabilities.Layout.html +1 -1
- package/typedoc/types/Capabilities.Metadata.html +1 -1
- package/typedoc/types/Capabilities.ReactContext.html +1 -1
- package/typedoc/types/Capabilities.ReactRoot.html +1 -1
- package/typedoc/types/Capabilities.ReactSurface.html +1 -1
- package/typedoc/types/Capabilities.Settings.html +2 -2
- package/typedoc/types/Capability.html +5 -5
- package/typedoc/types/CreateAppOptions.html +2 -2
- package/typedoc/types/FileInfo.html +1 -1
- package/typedoc/types/Intent.html +7 -7
- package/typedoc/types/IntentChain.html +3 -3
- package/typedoc/types/IntentContext.html +2 -2
- package/typedoc/types/IntentData.html +1 -1
- package/typedoc/types/IntentDispatcher.html +2 -2
- package/typedoc/types/IntentDispatcherResult.html +2 -2
- package/typedoc/types/IntentEffectDefinition.html +2 -2
- package/typedoc/types/IntentEffectResult.html +6 -6
- package/typedoc/types/IntentParams.html +2 -2
- package/typedoc/types/IntentResolver.html +2 -2
- package/typedoc/types/IntentResultData.html +1 -1
- package/typedoc/types/IntentSchema.html +1 -1
- package/typedoc/types/IntentUndo.html +2 -2
- package/typedoc/types/InterfaceDef.html +3 -3
- package/typedoc/types/Label.html +1 -1
- package/typedoc/types/NodeSerializer.html +3 -3
- package/typedoc/types/PluginManagerOptions.html +2 -2
- package/typedoc/types/PluginMeta.html +9 -9
- package/typedoc/types/PromiseIntentDispatcher.html +2 -2
- package/typedoc/types/PromiseIntentUndo.html +2 -2
- package/typedoc/types/Resource.html +1 -1
- package/typedoc/types/ResourceKey.html +1 -1
- package/typedoc/types/ResourceLanguage.html +1 -1
- package/typedoc/types/SerializedNode.html +2 -2
- package/typedoc/types/SurfaceComponent.html +2 -2
- package/typedoc/types/SurfaceDefinition.html +2 -2
- package/typedoc/types/SurfaceProps.html +2 -2
- package/typedoc/variables/Capabilities.AppGraph.html +1 -1
- package/typedoc/variables/Capabilities.AppGraphBuilder.html +1 -1
- package/typedoc/variables/Capabilities.AppGraphSerializer.html +1 -1
- package/typedoc/variables/Capabilities.ArtifactDefinition.html +1 -1
- package/typedoc/variables/Capabilities.FileUploader.html +1 -1
- package/typedoc/variables/Capabilities.IntentDispatcher.html +1 -1
- package/typedoc/variables/Capabilities.IntentResolver.html +1 -1
- package/typedoc/variables/Capabilities.Layout.html +1 -1
- package/typedoc/variables/Capabilities.Metadata.html +1 -1
- package/typedoc/variables/Capabilities.Null.html +1 -1
- package/typedoc/variables/Capabilities.PluginManager.html +1 -1
- package/typedoc/variables/Capabilities.ReactContext.html +1 -1
- package/typedoc/variables/Capabilities.ReactRoot.html +1 -1
- package/typedoc/variables/Capabilities.ReactSurface.html +1 -1
- package/typedoc/variables/Capabilities.Settings.html +1 -1
- package/typedoc/variables/Capabilities.SettingsStore.html +1 -1
- package/typedoc/variables/Capabilities.Tools.html +1 -1
- package/typedoc/variables/Capabilities.Translations.html +1 -1
- package/typedoc/variables/Events.AppGraphReady.html +2 -2
- package/typedoc/variables/Events.DispatcherReady.html +2 -2
- package/typedoc/variables/Events.LayoutReady.html +1 -1
- package/typedoc/variables/Events.SettingsReady.html +2 -2
- package/typedoc/variables/Events.SetupAppGraph.html +2 -2
- package/typedoc/variables/Events.SetupArtifactDefinition.html +2 -2
- package/typedoc/variables/Events.SetupIntentResolver.html +2 -2
- package/typedoc/variables/Events.SetupMetadata.html +2 -2
- package/typedoc/variables/Events.SetupReactSurface.html +2 -2
- package/typedoc/variables/Events.SetupSettings.html +2 -2
- package/typedoc/variables/Events.SetupTranslations.html +2 -2
- package/typedoc/variables/Events.Startup.html +2 -2
- package/typedoc/variables/FileInfoSchema.html +1 -1
- package/typedoc/variables/INTENT_ACTION.html +1 -1
- package/typedoc/variables/INTENT_PLUGIN.html +1 -1
- package/typedoc/variables/LAYOUT_ACTION.html +1 -1
- package/typedoc/variables/LAYOUT_PLUGIN.html +1 -1
- package/typedoc/variables/Label.html +1 -1
- package/typedoc/variables/LayoutAction.Toast.html +1 -1
- package/typedoc/variables/LayoutAction.UPDATE_LAYOUT.html +1 -1
- package/typedoc/variables/PluginManagerProvider.html +2 -2
- package/typedoc/variables/Resource.html +2 -2
- package/typedoc/variables/ResourceKey.html +1 -1
- package/typedoc/variables/ResourceLanguage.html +1 -1
- package/typedoc/variables/SETTINGS_ACTION.html +1 -1
- package/typedoc/variables/SETTINGS_ID.html +1 -1
- package/typedoc/variables/SETTINGS_KEY.html +1 -1
- package/typedoc/variables/SETTINGS_PLUGIN.html +1 -1
- package/typedoc/variables/Surface.html +2 -2
- package/typedoc/variables/defaultFileTypes.html +1 -1
- package/dist/lib/browser/chunk-KPRHX73H.mjs.map +0 -7
- package/dist/lib/browser/chunk-M6UBP7YP.mjs.map +0 -7
- package/dist/lib/node/chunk-JQMNABMK.cjs.map +0 -7
- package/dist/lib/node/chunk-LPUJODXZ.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-JUJF5L4G.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-OZD32CQN.mjs.map +0 -7
- /package/dist/lib/browser/{app-graph-builder-FB4NWT25.mjs.map → app-graph-builder-OHM2Z6YQ.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-A7XUUTJN.mjs.map → chunk-X2YC645Z.mjs.map} +0 -0
- /package/dist/lib/browser/{intent-dispatcher-SICNXT2G.mjs.map → intent-dispatcher-J7QIFHLO.mjs.map} +0 -0
- /package/dist/lib/browser/{intent-resolver-2K6LNSUE.mjs.map → intent-resolver-QV5MDMDV.mjs.map} +0 -0
- /package/dist/lib/browser/{store-P4XZF26P.mjs.map → store-XMPVLJOQ.mjs.map} +0 -0
- /package/dist/lib/node/{app-graph-builder-5QJ6YDE7.cjs.map → app-graph-builder-Z45FKS52.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-MTROSTO7.cjs.map → chunk-5UOVF3OR.cjs.map} +0 -0
- /package/dist/lib/node/{intent-resolver-ZP6S7QKG.cjs.map → intent-resolver-PBAOGJS6.cjs.map} +0 -0
- /package/dist/lib/node/{store-MALHSPHZ.cjs.map → store-N7JLYYDI.cjs.map} +0 -0
- /package/dist/lib/node-esm/{app-graph-builder-2KB5VMTB.mjs.map → app-graph-builder-OMH534A4.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-MX6ITPIG.mjs.map → chunk-QHXUTJHE.mjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-dispatcher-FF5HNHPQ.mjs.map → intent-dispatcher-QDUGA7NT.mjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-resolver-QWIKXIGI.mjs.map → intent-resolver-P7TC5RBD.mjs.map} +0 -0
- /package/dist/lib/node-esm/{store-3NM6AWB4.mjs.map → store-M2BYJL6K.mjs.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Schema } from 'effect';
|
|
1
|
+
import { Schema as S } 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,261 +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: S.TaggedClass<UpdateLayout, "dxos.org/plugin/layout/action/update-layout", {
|
|
10
|
+
readonly _tag: S.tag<"dxos.org/plugin/layout/action/update-layout">;
|
|
11
11
|
} & {
|
|
12
|
-
input:
|
|
13
|
-
part:
|
|
14
|
-
subject:
|
|
15
|
-
options:
|
|
12
|
+
input: S.Struct<{
|
|
13
|
+
part: S.SchemaClass<string, string, never>;
|
|
14
|
+
subject: S.optional<S.SchemaClass<any, any, never>>;
|
|
15
|
+
options: S.optional<S.Record$<typeof S.String, typeof S.Any>>;
|
|
16
16
|
}>;
|
|
17
|
-
output: typeof
|
|
17
|
+
output: typeof S.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: S.TaggedClass<SetLayoutMode, "dxos.org/plugin/layout/action/update-layout", {
|
|
25
|
+
readonly _tag: S.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: S.Struct<{
|
|
28
|
+
part: S.Literal<["mode"]>;
|
|
29
|
+
subject: S.optional<S.SchemaClass<string, string, never>>;
|
|
30
|
+
options: S.Union<[S.Struct<{
|
|
31
|
+
mode: S.SchemaClass<string, string, never>;
|
|
32
|
+
}>, S.Struct<{
|
|
33
|
+
revert: S.SchemaClass<boolean, boolean, never>;
|
|
34
34
|
}>]>;
|
|
35
35
|
}>;
|
|
36
|
-
output: typeof
|
|
36
|
+
output: typeof S.Void;
|
|
37
37
|
}>;
|
|
38
38
|
export class SetLayoutMode extends SetLayoutMode_base {
|
|
39
39
|
}
|
|
40
|
-
const UpdateSidebar_base:
|
|
41
|
-
readonly _tag:
|
|
40
|
+
const UpdateSidebar_base: S.TaggedClass<UpdateSidebar, "dxos.org/plugin/layout/action/update-layout", {
|
|
41
|
+
readonly _tag: S.tag<"dxos.org/plugin/layout/action/update-layout">;
|
|
42
42
|
} & {
|
|
43
|
-
input:
|
|
44
|
-
part:
|
|
45
|
-
subject:
|
|
46
|
-
options:
|
|
47
|
-
state:
|
|
43
|
+
input: S.Struct<{
|
|
44
|
+
part: S.Literal<["sidebar"]>;
|
|
45
|
+
subject: S.optional<S.SchemaClass<string, string, never>>;
|
|
46
|
+
options: S.optional<S.Struct<{
|
|
47
|
+
state: S.Literal<["closed", "collapsed", "expanded"]>;
|
|
48
48
|
}>>;
|
|
49
49
|
}>;
|
|
50
|
-
output: typeof
|
|
50
|
+
output: typeof S.Void;
|
|
51
51
|
}>;
|
|
52
52
|
export class UpdateSidebar extends UpdateSidebar_base {
|
|
53
53
|
}
|
|
54
|
-
const UpdateComplementary_base:
|
|
55
|
-
readonly _tag:
|
|
54
|
+
const UpdateComplementary_base: S.TaggedClass<UpdateComplementary, "dxos.org/plugin/layout/action/update-layout", {
|
|
55
|
+
readonly _tag: S.tag<"dxos.org/plugin/layout/action/update-layout">;
|
|
56
56
|
} & {
|
|
57
|
-
input:
|
|
58
|
-
part:
|
|
59
|
-
subject:
|
|
60
|
-
options:
|
|
61
|
-
state:
|
|
57
|
+
input: S.Struct<{
|
|
58
|
+
part: S.Literal<["complementary"]>;
|
|
59
|
+
subject: S.optional<S.SchemaClass<string, string, never>>;
|
|
60
|
+
options: S.optional<S.Struct<{
|
|
61
|
+
state: S.Literal<["closed", "collapsed", "expanded"]>;
|
|
62
62
|
}>>;
|
|
63
63
|
}>;
|
|
64
|
-
output: typeof
|
|
64
|
+
output: typeof S.Void;
|
|
65
65
|
}>;
|
|
66
66
|
export class UpdateComplementary extends UpdateComplementary_base {
|
|
67
67
|
}
|
|
68
|
-
const UpdateDialog_base:
|
|
69
|
-
readonly _tag:
|
|
68
|
+
const UpdateDialog_base: S.TaggedClass<UpdateDialog, "dxos.org/plugin/layout/action/update-layout", {
|
|
69
|
+
readonly _tag: S.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: S.Struct<{
|
|
72
|
+
part: S.Literal<["dialog"]>;
|
|
73
|
+
subject: S.optional<S.SchemaClass<string, string, never>>;
|
|
74
|
+
options: S.Struct<{
|
|
75
|
+
state: S.optional<S.SchemaClass<boolean, boolean, never>>;
|
|
76
|
+
blockAlign: S.optional<S.Literal<["start", "center", "end"]>>;
|
|
77
|
+
type: S.optional<S.Literal<["default", "alert"]>>;
|
|
78
|
+
props: S.optional<S.Record$<typeof S.String, typeof S.Any>>;
|
|
79
79
|
}>;
|
|
80
80
|
}>;
|
|
81
|
-
output: typeof
|
|
81
|
+
output: typeof S.Void;
|
|
82
82
|
}>;
|
|
83
83
|
export class UpdateDialog extends UpdateDialog_base {
|
|
84
84
|
}
|
|
85
|
-
const UpdatePopover_base:
|
|
86
|
-
readonly _tag:
|
|
85
|
+
const UpdatePopover_base: S.TaggedClass<UpdatePopover, "dxos.org/plugin/layout/action/update-layout", {
|
|
86
|
+
readonly _tag: S.tag<"dxos.org/plugin/layout/action/update-layout">;
|
|
87
87
|
} & {
|
|
88
|
-
input:
|
|
89
|
-
part:
|
|
90
|
-
subject:
|
|
91
|
-
options:
|
|
92
|
-
side:
|
|
93
|
-
state:
|
|
94
|
-
props:
|
|
95
|
-
}>,
|
|
96
|
-
variant:
|
|
97
|
-
anchor:
|
|
98
|
-
}>,
|
|
99
|
-
variant:
|
|
100
|
-
anchorId:
|
|
88
|
+
input: S.Struct<{
|
|
89
|
+
part: S.Literal<["popover"]>;
|
|
90
|
+
subject: S.optional<S.SchemaClass<any, any, never>>;
|
|
91
|
+
options: S.extend<S.Struct<{
|
|
92
|
+
side: S.optional<S.Literal<["top", "right", "bottom", "left"]>>;
|
|
93
|
+
state: S.optional<S.SchemaClass<boolean, boolean, never>>;
|
|
94
|
+
props: S.optional<S.Record$<typeof S.String, typeof S.Any>>;
|
|
95
|
+
}>, S.Union<[S.Struct<{
|
|
96
|
+
variant: S.Literal<["virtual"]>;
|
|
97
|
+
anchor: S.SchemaClass<any, any, never>;
|
|
98
|
+
}>, S.Struct<{
|
|
99
|
+
variant: S.optional<S.Literal<["react"]>>;
|
|
100
|
+
anchorId: S.SchemaClass<string, string, never>;
|
|
101
101
|
}>]>>;
|
|
102
102
|
}>;
|
|
103
|
-
output: typeof
|
|
103
|
+
output: typeof S.Void;
|
|
104
104
|
}>;
|
|
105
105
|
export class UpdatePopover extends UpdatePopover_base {
|
|
106
106
|
}
|
|
107
|
-
export const Toast:
|
|
108
|
-
id:
|
|
109
|
-
title:
|
|
110
|
-
ns: typeof
|
|
111
|
-
count:
|
|
107
|
+
export const Toast: S.Struct<{
|
|
108
|
+
id: S.SchemaClass<string, string, never>;
|
|
109
|
+
title: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
110
|
+
ns: typeof S.String;
|
|
111
|
+
count: S.optional<typeof S.Number>;
|
|
112
112
|
}>>>>]>>;
|
|
113
|
-
description:
|
|
114
|
-
ns: typeof
|
|
115
|
-
count:
|
|
113
|
+
description: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
114
|
+
ns: typeof S.String;
|
|
115
|
+
count: S.optional<typeof S.Number>;
|
|
116
116
|
}>>>>]>>;
|
|
117
|
-
icon:
|
|
118
|
-
duration:
|
|
119
|
-
closeLabel:
|
|
120
|
-
ns: typeof
|
|
121
|
-
count:
|
|
117
|
+
icon: S.optional<S.SchemaClass<string, string, never>>;
|
|
118
|
+
duration: S.optional<S.SchemaClass<number, number, never>>;
|
|
119
|
+
closeLabel: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
120
|
+
ns: typeof S.String;
|
|
121
|
+
count: S.optional<typeof S.Number>;
|
|
122
122
|
}>>>>]>>;
|
|
123
|
-
actionLabel:
|
|
124
|
-
ns: typeof
|
|
125
|
-
count:
|
|
123
|
+
actionLabel: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
124
|
+
ns: typeof S.String;
|
|
125
|
+
count: S.optional<typeof S.Number>;
|
|
126
126
|
}>>>>]>>;
|
|
127
|
-
actionAlt:
|
|
128
|
-
ns: typeof
|
|
129
|
-
count:
|
|
127
|
+
actionAlt: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
128
|
+
ns: typeof S.String;
|
|
129
|
+
count: S.optional<typeof S.Number>;
|
|
130
130
|
}>>>>]>>;
|
|
131
|
-
onAction:
|
|
131
|
+
onAction: S.optional<S.SchemaClass<any, any, never>>;
|
|
132
132
|
}>;
|
|
133
|
-
export interface Toast extends Omit<
|
|
133
|
+
export interface Toast extends Omit<S.Schema.Type<typeof Toast>, 'onAction'> {
|
|
134
134
|
onAction?: () => void;
|
|
135
135
|
}
|
|
136
|
-
const AddToast_base:
|
|
137
|
-
readonly _tag:
|
|
136
|
+
const AddToast_base: S.TaggedClass<AddToast, "dxos.org/plugin/layout/action/update-layout", {
|
|
137
|
+
readonly _tag: S.tag<"dxos.org/plugin/layout/action/update-layout">;
|
|
138
138
|
} & {
|
|
139
|
-
input:
|
|
140
|
-
part:
|
|
141
|
-
subject:
|
|
142
|
-
id:
|
|
143
|
-
title:
|
|
144
|
-
ns: typeof
|
|
145
|
-
count:
|
|
139
|
+
input: S.Struct<{
|
|
140
|
+
part: S.Literal<["toast"]>;
|
|
141
|
+
subject: S.Struct<{
|
|
142
|
+
id: S.SchemaClass<string, string, never>;
|
|
143
|
+
title: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
144
|
+
ns: typeof S.String;
|
|
145
|
+
count: S.optional<typeof S.Number>;
|
|
146
146
|
}>>>>]>>;
|
|
147
|
-
description:
|
|
148
|
-
ns: typeof
|
|
149
|
-
count:
|
|
147
|
+
description: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
148
|
+
ns: typeof S.String;
|
|
149
|
+
count: S.optional<typeof S.Number>;
|
|
150
150
|
}>>>>]>>;
|
|
151
|
-
icon:
|
|
152
|
-
duration:
|
|
153
|
-
closeLabel:
|
|
154
|
-
ns: typeof
|
|
155
|
-
count:
|
|
151
|
+
icon: S.optional<S.SchemaClass<string, string, never>>;
|
|
152
|
+
duration: S.optional<S.SchemaClass<number, number, never>>;
|
|
153
|
+
closeLabel: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
154
|
+
ns: typeof S.String;
|
|
155
|
+
count: S.optional<typeof S.Number>;
|
|
156
156
|
}>>>>]>>;
|
|
157
|
-
actionLabel:
|
|
158
|
-
ns: typeof
|
|
159
|
-
count:
|
|
157
|
+
actionLabel: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
158
|
+
ns: typeof S.String;
|
|
159
|
+
count: S.optional<typeof S.Number>;
|
|
160
160
|
}>>>>]>>;
|
|
161
|
-
actionAlt:
|
|
162
|
-
ns: typeof
|
|
163
|
-
count:
|
|
161
|
+
actionAlt: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
162
|
+
ns: typeof S.String;
|
|
163
|
+
count: S.optional<typeof S.Number>;
|
|
164
164
|
}>>>>]>>;
|
|
165
|
-
onAction:
|
|
165
|
+
onAction: S.optional<S.SchemaClass<any, any, never>>;
|
|
166
166
|
}>;
|
|
167
167
|
}>;
|
|
168
|
-
output: typeof
|
|
168
|
+
output: typeof S.Void;
|
|
169
169
|
}>;
|
|
170
170
|
export class AddToast extends AddToast_base {
|
|
171
171
|
}
|
|
172
|
-
const SwitchWorkspace_base:
|
|
173
|
-
readonly _tag:
|
|
172
|
+
const SwitchWorkspace_base: S.TaggedClass<SwitchWorkspace, "dxos.org/plugin/layout/action/update-layout", {
|
|
173
|
+
readonly _tag: S.tag<"dxos.org/plugin/layout/action/update-layout">;
|
|
174
174
|
} & {
|
|
175
|
-
input:
|
|
176
|
-
part:
|
|
177
|
-
subject:
|
|
175
|
+
input: S.Struct<{
|
|
176
|
+
part: S.Literal<["workspace"]>;
|
|
177
|
+
subject: S.SchemaClass<string, string, never>;
|
|
178
178
|
}>;
|
|
179
|
-
output: typeof
|
|
179
|
+
output: typeof S.Void;
|
|
180
180
|
}>;
|
|
181
181
|
export class SwitchWorkspace extends SwitchWorkspace_base {
|
|
182
182
|
}
|
|
183
|
-
const RevertWorkspace_base:
|
|
184
|
-
readonly _tag:
|
|
183
|
+
const RevertWorkspace_base: S.TaggedClass<RevertWorkspace, "dxos.org/plugin/layout/action/update-layout", {
|
|
184
|
+
readonly _tag: S.tag<"dxos.org/plugin/layout/action/update-layout">;
|
|
185
185
|
} & {
|
|
186
|
-
input:
|
|
187
|
-
part:
|
|
188
|
-
options:
|
|
189
|
-
revert:
|
|
186
|
+
input: S.Struct<{
|
|
187
|
+
part: S.Literal<["workspace"]>;
|
|
188
|
+
options: S.Struct<{
|
|
189
|
+
revert: S.Literal<[true]>;
|
|
190
190
|
}>;
|
|
191
191
|
}>;
|
|
192
|
-
output: typeof
|
|
192
|
+
output: typeof S.Void;
|
|
193
193
|
}>;
|
|
194
194
|
export class RevertWorkspace extends RevertWorkspace_base {
|
|
195
195
|
}
|
|
196
|
-
const Open_base:
|
|
197
|
-
readonly _tag:
|
|
196
|
+
const Open_base: S.TaggedClass<Open, "dxos.org/plugin/layout/action/update-layout", {
|
|
197
|
+
readonly _tag: S.tag<"dxos.org/plugin/layout/action/update-layout">;
|
|
198
198
|
} & {
|
|
199
|
-
input:
|
|
200
|
-
part:
|
|
201
|
-
subject:
|
|
202
|
-
options:
|
|
203
|
-
state:
|
|
204
|
-
variant:
|
|
205
|
-
key:
|
|
206
|
-
workspace:
|
|
207
|
-
scrollIntoView:
|
|
208
|
-
pivotId:
|
|
209
|
-
positioning:
|
|
199
|
+
input: S.Struct<{
|
|
200
|
+
part: S.Literal<["main"]>;
|
|
201
|
+
subject: S.Array$<S.SchemaClass<string, string, never>>;
|
|
202
|
+
options: S.optional<S.Struct<{
|
|
203
|
+
state: S.optional<S.Literal<[true]>>;
|
|
204
|
+
variant: S.optional<S.SchemaClass<string, string, never>>;
|
|
205
|
+
key: S.optional<S.SchemaClass<string, string, never>>;
|
|
206
|
+
workspace: S.optional<S.SchemaClass<string, string, never>>;
|
|
207
|
+
scrollIntoView: S.optional<S.SchemaClass<boolean, boolean, never>>;
|
|
208
|
+
pivotId: S.optional<S.SchemaClass<string, string, never>>;
|
|
209
|
+
positioning: S.optional<S.Union<[S.Literal<["start"]>, S.Literal<["end"]>]>>;
|
|
210
210
|
}>>;
|
|
211
211
|
}>;
|
|
212
|
-
output: typeof
|
|
212
|
+
output: typeof S.Void;
|
|
213
213
|
}>;
|
|
214
214
|
export class Open extends Open_base {
|
|
215
215
|
}
|
|
216
|
-
const Set_base:
|
|
217
|
-
readonly _tag:
|
|
216
|
+
const Set_base: S.TaggedClass<Set, "dxos.org/plugin/layout/action/update-layout", {
|
|
217
|
+
readonly _tag: S.tag<"dxos.org/plugin/layout/action/update-layout">;
|
|
218
218
|
} & {
|
|
219
|
-
input:
|
|
220
|
-
part:
|
|
221
|
-
subject:
|
|
222
|
-
options:
|
|
223
|
-
override:
|
|
219
|
+
input: S.Struct<{
|
|
220
|
+
part: S.Literal<["main"]>;
|
|
221
|
+
subject: S.Array$<S.SchemaClass<string, string, never>>;
|
|
222
|
+
options: S.Struct<{
|
|
223
|
+
override: S.Literal<[true]>;
|
|
224
224
|
}>;
|
|
225
225
|
}>;
|
|
226
|
-
output: typeof
|
|
226
|
+
output: typeof S.Void;
|
|
227
227
|
}>;
|
|
228
228
|
export class Set extends Set_base {
|
|
229
229
|
}
|
|
230
|
-
const Close_base:
|
|
231
|
-
readonly _tag:
|
|
230
|
+
const Close_base: S.TaggedClass<Close, "dxos.org/plugin/layout/action/update-layout", {
|
|
231
|
+
readonly _tag: S.tag<"dxos.org/plugin/layout/action/update-layout">;
|
|
232
232
|
} & {
|
|
233
|
-
input:
|
|
234
|
-
part:
|
|
235
|
-
subject:
|
|
236
|
-
options:
|
|
237
|
-
state:
|
|
233
|
+
input: S.Struct<{
|
|
234
|
+
part: S.Literal<["main"]>;
|
|
235
|
+
subject: S.Array$<S.SchemaClass<string, string, never>>;
|
|
236
|
+
options: S.Struct<{
|
|
237
|
+
state: S.Literal<[false]>;
|
|
238
238
|
}>;
|
|
239
239
|
}>;
|
|
240
|
-
output: typeof
|
|
240
|
+
output: typeof S.Void;
|
|
241
241
|
}>;
|
|
242
242
|
export class Close extends Close_base {
|
|
243
243
|
}
|
|
244
|
-
const ScrollIntoView_base:
|
|
245
|
-
readonly _tag:
|
|
244
|
+
const ScrollIntoView_base: S.TaggedClass<ScrollIntoView, "dxos.org/plugin/layout/action/update-layout", {
|
|
245
|
+
readonly _tag: S.tag<"dxos.org/plugin/layout/action/update-layout">;
|
|
246
246
|
} & {
|
|
247
|
-
input:
|
|
248
|
-
part:
|
|
249
|
-
subject:
|
|
250
|
-
options:
|
|
247
|
+
input: S.Struct<{
|
|
248
|
+
part: S.Literal<["current"]>;
|
|
249
|
+
subject: S.optional<S.SchemaClass<string, string, never>>;
|
|
250
|
+
options: S.optional<S.Record$<typeof S.String, typeof S.Any>>;
|
|
251
251
|
}>;
|
|
252
|
-
output: typeof
|
|
252
|
+
output: typeof S.Void;
|
|
253
253
|
}>;
|
|
254
254
|
export class ScrollIntoView extends ScrollIntoView_base {
|
|
255
255
|
}
|
|
256
|
-
const Expose_base:
|
|
257
|
-
readonly _tag:
|
|
256
|
+
const Expose_base: S.TaggedClass<Expose, "dxos.org/plugin/layout/action/update-layout", {
|
|
257
|
+
readonly _tag: S.tag<"dxos.org/plugin/layout/action/update-layout">;
|
|
258
258
|
} & {
|
|
259
|
-
input:
|
|
260
|
-
part:
|
|
261
|
-
subject:
|
|
259
|
+
input: S.Struct<{
|
|
260
|
+
part: S.Literal<["navigation"]>;
|
|
261
|
+
subject: S.SchemaClass<string, string, never>;
|
|
262
262
|
}>;
|
|
263
|
-
output: typeof
|
|
263
|
+
output: typeof S.Void;
|
|
264
264
|
}>;
|
|
265
265
|
export class Expose extends Expose_base {
|
|
266
266
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/common/layout.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/common/layout.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,IAAI,CAAC,EAAE,MAAM,QAAQ,CAAC;AAIrC,eAAO,MAAM,aAAa,2BAA2B,CAAC;AACtD,eAAO,MAAM,aAAa,kCAA4B,CAAC;AAEvD;;GAEG;AACH,yBAAiB,YAAY,CAAC;IAC5B,MAAM,CAAC,MAAM,aAAa,gDAAmC,CAAC;;;;;;;;;;;IAE9D;;OAEG;IACH,MAAM,OAAO,YAAa,SAAQ,iBAWhC;KAAG;;;;;;;;;;;;;;;IAYL,MAAM,OAAO,aAAc,SAAQ,kBAUjC;KAAG;;;;;;;;;;;;;IAEL,MAAM,OAAO,aAAc,SAAQ,kBAajC;KAAG;;;;;;;;;;;;;IAEL,MAAM,OAAO,mBAAoB,SAAQ,wBAevC;KAAG;;;;;;;;;;;;;;;;IAEL,MAAM,OAAO,YAAa,SAAQ,iBAkBhC;KAAG;;;;;;;;;;;;;;;;;;;;;IAEL,MAAM,OAAO,aAAc,SAAQ,kBAoCjC;KAAG;IAEL,MAAM,CAAC,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;MAYhB,CAAC;IAEH,MAAM,WAAW,KAAM,SAAQ,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,EAAE,UAAU,CAAC;QAC1E,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;KACvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAED,MAAM,OAAO,QAAS,SAAQ,aAM5B;KAAG;;;;;;;;;;IAEL,MAAM,OAAO,eAAgB,SAAQ,oBAMnC;KAAG;;;;;;;;;;;;IAEL,MAAM,OAAO,eAAgB,SAAQ,oBAQnC;KAAG;;;;;;;;;;;;;;;;;;;IAEL,MAAM,OAAO,IAAK,SAAQ,SAwBxB;KAAG;;;;;;;;;;;;;IAEL,MAAM,OAAO,GAAI,SAAQ,QASvB;KAAG;;;;;;;;;;;;;IAEL,MAAM,OAAO,KAAM,SAAQ,UASzB;KAAG;;;;;;;;;;;IAEL,MAAM,OAAO,cAAe,SAAQ,mBAWlC;KAAG;;;;;;;;;;IAEL,MAAM,OAAO,MAAO,SAAQ,WAM1B;KAAG;;CACN"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Schema } from 'effect';
|
|
2
|
-
export declare const ResourceKey:
|
|
3
|
-
export type ResourceKey =
|
|
4
|
-
export declare const ResourceLanguage:
|
|
5
|
-
export type ResourceLanguage =
|
|
1
|
+
import { Schema as S } from 'effect';
|
|
2
|
+
export declare const ResourceKey: S.Union<[typeof S.String, S.Record$<typeof S.String, typeof S.Any>]>;
|
|
3
|
+
export type ResourceKey = S.Schema.Type<typeof ResourceKey>;
|
|
4
|
+
export declare const ResourceLanguage: S.Record$<typeof S.String, S.Union<[typeof S.String, S.Record$<typeof S.String, typeof S.Any>]>>;
|
|
5
|
+
export type ResourceLanguage = S.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: S.Record$<typeof S.String, S.Record$<typeof S.String, S.Union<[typeof S.String, S.Record$<typeof S.String, typeof S.Any>]>>>;
|
|
10
|
+
export type Resource = S.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,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../src/common/translations.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,IAAI,CAAC,EAAE,MAAM,QAAQ,CAAC;AAErC,eAAO,MAAM,WAAW,sEAA+D,CAAC;AACxF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;AAE5D,eAAO,MAAM,gBAAgB,kGAAkD,CAAC;AAChF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEtE;;GAEG;AACH,eAAO,MAAM,QAAQ,8HAAuD,CAAC;AAC7E,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Schema } from 'effect';
|
|
2
|
-
declare const Log_base:
|
|
3
|
-
readonly _tag:
|
|
1
|
+
import { Schema as S } from 'effect';
|
|
2
|
+
declare const Log_base: S.TaggedClass<Log, "dxos.org/test/logger/log", {
|
|
3
|
+
readonly _tag: S.tag<"dxos.org/test/logger/log">;
|
|
4
4
|
} & {
|
|
5
|
-
input:
|
|
6
|
-
message: typeof
|
|
5
|
+
input: S.Struct<{
|
|
6
|
+
message: typeof S.String;
|
|
7
7
|
}>;
|
|
8
|
-
output: typeof
|
|
8
|
+
output: typeof S.Void;
|
|
9
9
|
}>;
|
|
10
10
|
export declare class Log extends Log_base {
|
|
11
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/playground/logger/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/playground/logger/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,IAAI,CAAC,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;AAErC,qBAAa,GAAI,SAAQ,QAKvB;CAAG"}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { Schema } from 'effect';
|
|
1
|
+
import { Schema as S } from 'effect';
|
|
2
2
|
export declare const INTENT_PLUGIN = "dxos.org/plugin/intent";
|
|
3
3
|
export declare const INTENT_ACTION = "dxos.org/plugin/intent/action";
|
|
4
4
|
export declare namespace IntentAction {
|
|
5
|
-
const Track_base:
|
|
6
|
-
readonly _tag:
|
|
5
|
+
const Track_base: S.TaggedClass<Track, "dxos.org/plugin/intent/action/track", {
|
|
6
|
+
readonly _tag: S.tag<"dxos.org/plugin/intent/action/track">;
|
|
7
7
|
} & {
|
|
8
|
-
input:
|
|
9
|
-
intents:
|
|
10
|
-
error:
|
|
8
|
+
input: S.Struct<{
|
|
9
|
+
intents: S.Array$<typeof S.String>;
|
|
10
|
+
error: S.optional<typeof S.String>;
|
|
11
11
|
}>;
|
|
12
|
-
output: typeof
|
|
12
|
+
output: typeof S.Void;
|
|
13
13
|
}>;
|
|
14
14
|
/**
|
|
15
15
|
* Log an intent.
|
|
16
16
|
*/
|
|
17
17
|
export class Track extends Track_base {
|
|
18
18
|
}
|
|
19
|
-
const ShowUndo_base:
|
|
20
|
-
readonly _tag:
|
|
19
|
+
const ShowUndo_base: S.TaggedClass<ShowUndo, "dxos.org/plugin/intent/action/show-undo", {
|
|
20
|
+
readonly _tag: S.tag<"dxos.org/plugin/intent/action/show-undo">;
|
|
21
21
|
} & {
|
|
22
|
-
input:
|
|
23
|
-
message:
|
|
24
|
-
ns: typeof
|
|
25
|
-
count:
|
|
22
|
+
input: S.Struct<{
|
|
23
|
+
message: S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
24
|
+
ns: typeof S.String;
|
|
25
|
+
count: S.optional<typeof S.Number>;
|
|
26
26
|
}>>>>]>;
|
|
27
27
|
}>;
|
|
28
|
-
output: typeof
|
|
28
|
+
output: typeof S.Void;
|
|
29
29
|
}>;
|
|
30
30
|
/**
|
|
31
31
|
* Fired after an intent is dispatched if the intent is undoable.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/actions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/actions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,IAAI,CAAC,EAAE,MAAM,QAAQ,CAAC;AAIrC,eAAO,MAAM,aAAa,2BAA2B,CAAC;AACtD,eAAO,MAAM,aAAa,kCAA4B,CAAC;AAEvD,yBAAiB,YAAY,CAAC;;;;;;;;;;IAC5B;;OAEG;IACH,MAAM,OAAO,KAAM,SAAQ,UAMzB;KAAG;;;;;;;;;;;;IAEL;;OAEG;IACH,MAAM,OAAO,QAAS,SAAQ,aAK5B;KAAG;;CACN"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Schema } from 'effect';
|
|
1
|
+
import { Schema as S } from 'effect';
|
|
2
2
|
export type IntentParams = {
|
|
3
|
-
readonly input:
|
|
4
|
-
readonly output:
|
|
3
|
+
readonly input: S.Schema.All;
|
|
4
|
+
readonly output: S.Schema.All;
|
|
5
5
|
};
|
|
6
|
-
export type IntentData<Fields extends IntentParams> =
|
|
6
|
+
export type IntentData<Fields extends IntentParams> = S.Schema.Type<S.Struct<Fields>> extends {
|
|
7
7
|
readonly input: any;
|
|
8
|
-
} ?
|
|
9
|
-
export type IntentResultData<Fields extends IntentParams> =
|
|
8
|
+
} ? S.Schema.Type<S.Struct<Fields>>['input'] : any;
|
|
9
|
+
export type IntentResultData<Fields extends IntentParams> = S.Schema.Type<S.Struct<Fields>> extends {
|
|
10
10
|
readonly output: any;
|
|
11
|
-
} ?
|
|
12
|
-
export type IntentSchema<Tag extends string, Fields extends IntentParams> =
|
|
11
|
+
} ? S.Schema.Type<S.Struct<Fields>>['output'] : any;
|
|
12
|
+
export type IntentSchema<Tag extends string, Fields extends IntentParams> = S.TaggedClass<any, Tag, Fields>;
|
|
13
13
|
/**
|
|
14
14
|
* An intent is an abstract description of an operation to be performed.
|
|
15
15
|
* Intents allow actions to be performed across plugins.
|
|
@@ -60,9 +60,9 @@ export declare const createIntent: <Tag extends string, Fields extends IntentPar
|
|
|
60
60
|
* NOTE: Chaining of intents depends on the data inputs and outputs being structs.
|
|
61
61
|
*/
|
|
62
62
|
export declare const chain: <FirstTag extends string, NextTag extends string, FirstFields extends IntentParams, LastFields extends IntentParams, NextFields extends IntentParams>(schema: IntentSchema<NextTag, NextFields>, data?: Omit<IntentData<NextFields>, keyof IntentResultData<LastFields>>, params?: Pick<AnyIntent, "module" | "undo">) => (intent: IntentChain<FirstTag, any, FirstFields, LastFields>) => IntentChain<FirstTag, NextTag, FirstFields, NextFields>;
|
|
63
|
-
export declare const Label:
|
|
64
|
-
ns: typeof
|
|
65
|
-
count:
|
|
63
|
+
export declare const Label: S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
64
|
+
ns: typeof S.String;
|
|
65
|
+
count: S.optional<typeof S.Number>;
|
|
66
66
|
}>>>>]>;
|
|
67
|
-
export type Label =
|
|
67
|
+
export type Label = S.Schema.Type<typeof Label>;
|
|
68
68
|
//# sourceMappingURL=intent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intent.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/intent.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"intent.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/intent.ts"],"names":[],"mappings":"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"}
|