@dxos/app-framework 0.8.0 → 0.8.1-main.013e445
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/{app-graph-builder-S4MYSHQA.mjs → app-graph-builder-C2X7EJHZ.mjs} +3 -3
- package/dist/lib/browser/{chunk-BCMEJONP.mjs → chunk-AT6WJZHF.mjs} +9 -8
- package/dist/lib/browser/chunk-AT6WJZHF.mjs.map +7 -0
- package/dist/lib/browser/{chunk-SRZH2PQ2.mjs → chunk-CB3W6T5E.mjs} +2 -2
- package/dist/lib/browser/{chunk-SRZH2PQ2.mjs.map → chunk-CB3W6T5E.mjs.map} +1 -1
- package/dist/lib/browser/{chunk-QS4J6O47.mjs → chunk-YZLQKV7K.mjs} +7 -6
- package/dist/lib/browser/chunk-YZLQKV7K.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +8 -7
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-dispatcher-GFBH7T2J.mjs → intent-dispatcher-UKENQ4DV.mjs} +2 -2
- package/dist/lib/browser/{intent-resolver-KAFM7CQH.mjs → intent-resolver-SAJDCXS5.mjs} +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{store-L3VRR7II.mjs → store-A6VBQ2TT.mjs} +2 -2
- package/dist/lib/browser/testing/index.mjs +4 -3
- package/dist/lib/browser/testing/index.mjs.map +3 -3
- package/dist/lib/browser/worker.mjs +1 -1
- package/dist/lib/node/{app-graph-builder-VMHWFCTP.cjs → app-graph-builder-NJS4VPDQ.cjs} +28 -28
- package/dist/lib/node/{chunk-B65NJEIJ.cjs → chunk-F3K3VVL5.cjs} +23 -22
- package/dist/lib/node/chunk-F3K3VVL5.cjs.map +7 -0
- package/dist/lib/node/{chunk-7Y6KJ3OK.cjs → chunk-OPG5WEML.cjs} +179 -178
- package/dist/lib/node/chunk-OPG5WEML.cjs.map +7 -0
- package/dist/lib/node/{chunk-VCIHQZSN.cjs → chunk-SCHC4AZQ.cjs} +12 -12
- package/dist/lib/node/{chunk-VCIHQZSN.cjs.map → chunk-SCHC4AZQ.cjs.map} +1 -1
- package/dist/lib/node/index.cjs +79 -78
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/{intent-dispatcher-PRCC4KZT.cjs → intent-dispatcher-44UTYP4W.cjs} +8 -8
- package/dist/lib/node/{intent-dispatcher-PRCC4KZT.cjs.map → intent-dispatcher-44UTYP4W.cjs.map} +2 -2
- package/dist/lib/node/{intent-resolver-OZDKCHPW.cjs → intent-resolver-LY7JS2KE.cjs} +12 -12
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{store-BVUKNVKL.cjs → store-5CP2IT3I.cjs} +7 -7
- package/dist/lib/node/testing/index.cjs +10 -9
- package/dist/lib/node/testing/index.cjs.map +3 -3
- package/dist/lib/node/worker.cjs +37 -37
- package/dist/lib/node/worker.cjs.map +1 -1
- package/dist/lib/node-esm/{app-graph-builder-XHI5IIXQ.mjs → app-graph-builder-FBWME2KI.mjs} +3 -3
- package/dist/lib/node-esm/{chunk-CBT75GCX.mjs → chunk-BSYAFUZ7.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-CBT75GCX.mjs.map → chunk-BSYAFUZ7.mjs.map} +1 -1
- package/dist/lib/node-esm/{chunk-TVIR2PHY.mjs → chunk-E3IDMSLK.mjs} +9 -8
- package/dist/lib/node-esm/chunk-E3IDMSLK.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-JDAHZRYQ.mjs → chunk-JNXPPC5S.mjs} +7 -6
- package/dist/lib/node-esm/chunk-JNXPPC5S.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +8 -7
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{intent-dispatcher-LGACN32C.mjs → intent-dispatcher-7REIRNNR.mjs} +2 -2
- package/dist/lib/node-esm/{intent-resolver-RBNG76ZX.mjs → intent-resolver-BSPY7AOP.mjs} +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{store-PHTOEREN.mjs → store-JZDRMR3B.mjs} +2 -2
- package/dist/lib/node-esm/testing/index.mjs +4 -3
- package/dist/lib/node-esm/testing/index.mjs.map +3 -3
- package/dist/lib/node-esm/worker.mjs +1 -1
- package/dist/types/src/App.d.ts +2 -2
- package/dist/types/src/App.d.ts.map +1 -1
- package/dist/types/src/common/capabilities.d.ts +1 -1
- package/dist/types/src/common/capabilities.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/layout.d.ts +21 -21
- package/dist/types/src/common/layout.d.ts.map +1 -1
- package/dist/types/src/common/translations.d.ts +1 -1
- package/dist/types/src/common/translations.d.ts.map +1 -1
- package/dist/types/src/core/plugin.d.ts +1 -1
- package/dist/types/src/core/plugin.d.ts.map +1 -1
- package/dist/types/src/playground/debug/Debug.d.ts +2 -1
- package/dist/types/src/playground/debug/Debug.d.ts.map +1 -1
- package/dist/types/src/playground/generator/Main.d.ts +2 -1
- package/dist/types/src/playground/generator/Main.d.ts.map +1 -1
- package/dist/types/src/playground/generator/Toolbar.d.ts +2 -1
- package/dist/types/src/playground/generator/Toolbar.d.ts.map +1 -1
- package/dist/types/src/playground/layout/Layout.d.ts +1 -1
- package/dist/types/src/playground/layout/Layout.d.ts.map +1 -1
- package/dist/types/src/playground/logger/Toolbar.d.ts +2 -1
- package/dist/types/src/playground/logger/Toolbar.d.ts.map +1 -1
- package/dist/types/src/playground/logger/schema.d.ts +1 -1
- package/dist/types/src/playground/logger/schema.d.ts.map +1 -1
- package/dist/types/src/playground/playground.stories.d.ts +2 -1
- package/dist/types/src/playground/playground.stories.d.ts.map +1 -1
- package/dist/types/src/plugin-intent/actions.d.ts +3 -3
- package/dist/types/src/plugin-intent/actions.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/actions.d.ts +1 -1
- package/dist/types/src/plugin-settings/actions.d.ts.map +1 -1
- package/dist/types/src/react/ErrorBoundary.d.ts +1 -1
- package/dist/types/src/react/Surface.d.ts.map +1 -1
- package/dist/types/src/react/Surface.stories.d.ts +2 -1
- package/dist/types/src/react/Surface.stories.d.ts.map +1 -1
- package/package.json +19 -20
- package/src/common/capabilities.ts +1 -1
- package/src/common/file.ts +1 -1
- package/src/common/layout.ts +1 -1
- package/src/common/translations.ts +1 -1
- package/src/core/manager.test.ts +30 -30
- package/src/core/plugin.ts +1 -1
- package/src/playground/debug/plugin.ts +1 -1
- package/src/playground/generator/generator.ts +2 -2
- package/src/playground/generator/plugin.ts +1 -1
- package/src/playground/layout/plugin.ts +1 -1
- package/src/playground/logger/plugin.ts +1 -1
- package/src/playground/logger/schema.ts +1 -1
- package/src/plugin-intent/IntentPlugin.tsx +1 -1
- package/src/plugin-intent/actions.ts +1 -1
- package/src/plugin-intent/intent-dispatcher.test.ts +1 -2
- package/src/plugin-intent/intent.ts +1 -1
- package/src/plugin-settings/SettingsPlugin.ts +1 -1
- package/src/plugin-settings/actions.ts +1 -1
- package/src/react/Surface.tsx +5 -3
- package/src/testing/withPluginManager.tsx +1 -1
- package/dist/lib/browser/chunk-BCMEJONP.mjs.map +0 -7
- package/dist/lib/browser/chunk-QS4J6O47.mjs.map +0 -7
- package/dist/lib/node/chunk-7Y6KJ3OK.cjs.map +0 -7
- package/dist/lib/node/chunk-B65NJEIJ.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-JDAHZRYQ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-TVIR2PHY.mjs.map +0 -7
- /package/dist/lib/browser/{app-graph-builder-S4MYSHQA.mjs.map → app-graph-builder-C2X7EJHZ.mjs.map} +0 -0
- /package/dist/lib/browser/{intent-dispatcher-GFBH7T2J.mjs.map → intent-dispatcher-UKENQ4DV.mjs.map} +0 -0
- /package/dist/lib/browser/{intent-resolver-KAFM7CQH.mjs.map → intent-resolver-SAJDCXS5.mjs.map} +0 -0
- /package/dist/lib/browser/{store-L3VRR7II.mjs.map → store-A6VBQ2TT.mjs.map} +0 -0
- /package/dist/lib/node/{app-graph-builder-VMHWFCTP.cjs.map → app-graph-builder-NJS4VPDQ.cjs.map} +0 -0
- /package/dist/lib/node/{intent-resolver-OZDKCHPW.cjs.map → intent-resolver-LY7JS2KE.cjs.map} +0 -0
- /package/dist/lib/node/{store-BVUKNVKL.cjs.map → store-5CP2IT3I.cjs.map} +0 -0
- /package/dist/lib/node-esm/{app-graph-builder-XHI5IIXQ.mjs.map → app-graph-builder-FBWME2KI.mjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-dispatcher-LGACN32C.mjs.map → intent-dispatcher-7REIRNNR.mjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-resolver-RBNG76ZX.mjs.map → intent-resolver-BSPY7AOP.mjs.map} +0 -0
- /package/dist/lib/node-esm/{store-PHTOEREN.mjs.map → store-JZDRMR3B.mjs.map} +0 -0
|
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_OPG5WEML_exports = {};
|
|
30
|
+
__export(chunk_OPG5WEML_exports, {
|
|
31
31
|
Capabilities: () => Capabilities,
|
|
32
32
|
Events: () => Events,
|
|
33
33
|
FileInfoSchema: () => FileInfoSchema,
|
|
@@ -66,28 +66,28 @@ __export(chunk_7Y6KJ3OK_exports, {
|
|
|
66
66
|
lazy: () => lazy,
|
|
67
67
|
oneOf: () => oneOf
|
|
68
68
|
});
|
|
69
|
-
module.exports = __toCommonJS(
|
|
69
|
+
module.exports = __toCommonJS(chunk_OPG5WEML_exports);
|
|
70
70
|
var import_effect = require("effect");
|
|
71
71
|
var import_live_object = require("@dxos/live-object");
|
|
72
72
|
var import_log = require("@dxos/log");
|
|
73
73
|
var import_util = require("@dxos/util");
|
|
74
|
-
var
|
|
75
|
-
var
|
|
74
|
+
var import_effect2 = require("effect");
|
|
75
|
+
var import_effect3 = require("effect");
|
|
76
76
|
var import_signals_core = require("@preact/signals-core");
|
|
77
77
|
var import_async = require("@dxos/async");
|
|
78
78
|
var import_invariant = require("@dxos/invariant");
|
|
79
79
|
var import_live_object2 = require("@dxos/live-object");
|
|
80
80
|
var import_log2 = require("@dxos/log");
|
|
81
81
|
var import_signals_core2 = require("@preact/signals-core");
|
|
82
|
-
var
|
|
82
|
+
var import_effect4 = require("effect");
|
|
83
83
|
var import_async2 = require("@dxos/async");
|
|
84
84
|
var import_live_object3 = require("@dxos/live-object");
|
|
85
85
|
var import_log3 = require("@dxos/log");
|
|
86
|
-
var
|
|
87
|
-
var
|
|
88
|
-
var
|
|
86
|
+
var import_effect5 = require("effect");
|
|
87
|
+
var import_effect6 = require("effect");
|
|
88
|
+
var import_effect7 = require("effect");
|
|
89
89
|
var createIntent = (schema, data = {}, params = {}) => {
|
|
90
|
-
const _ =
|
|
90
|
+
const _ = import_effect3.Schema.validateSync(schema.fields.input)(data);
|
|
91
91
|
const intent = {
|
|
92
92
|
...params,
|
|
93
93
|
_schema: schema,
|
|
@@ -122,19 +122,19 @@ var chain = (schema, data = {}, params = {}) => (intent) => {
|
|
|
122
122
|
]
|
|
123
123
|
};
|
|
124
124
|
};
|
|
125
|
-
var Label =
|
|
126
|
-
ns:
|
|
127
|
-
count:
|
|
125
|
+
var Label = import_effect3.Schema.Union(import_effect3.Schema.String, import_effect3.Schema.mutable(import_effect3.Schema.Tuple(import_effect3.Schema.String, import_effect3.Schema.mutable(import_effect3.Schema.Struct({
|
|
126
|
+
ns: import_effect3.Schema.String,
|
|
127
|
+
count: import_effect3.Schema.optional(import_effect3.Schema.Number)
|
|
128
128
|
})))));
|
|
129
129
|
var INTENT_PLUGIN = "dxos.org/plugin/intent";
|
|
130
130
|
var INTENT_ACTION = `${INTENT_PLUGIN}/action`;
|
|
131
131
|
var IntentAction;
|
|
132
132
|
(function(IntentAction2) {
|
|
133
|
-
class ShowUndo extends
|
|
134
|
-
input:
|
|
133
|
+
class ShowUndo extends import_effect2.Schema.TaggedClass()(`${INTENT_ACTION}/show-undo`, {
|
|
134
|
+
input: import_effect2.Schema.Struct({
|
|
135
135
|
message: Label
|
|
136
136
|
}),
|
|
137
|
-
output:
|
|
137
|
+
output: import_effect2.Schema.Void
|
|
138
138
|
}) {
|
|
139
139
|
}
|
|
140
140
|
IntentAction2.ShowUndo = ShowUndo;
|
|
@@ -456,7 +456,7 @@ var PluginManager = class {
|
|
|
456
456
|
S: this,
|
|
457
457
|
C: (f, a) => f(...a)
|
|
458
458
|
});
|
|
459
|
-
await
|
|
459
|
+
await import_effect4.Effect.runPromise(import_effect4.Effect.all(this.pendingReset.map((event) => this._activate(event)), {
|
|
460
460
|
concurrency: "unbounded"
|
|
461
461
|
}));
|
|
462
462
|
return true;
|
|
@@ -508,7 +508,7 @@ var PluginManager = class {
|
|
|
508
508
|
const enabledIndex = this._state.enabled.findIndex((enabled) => enabled === id);
|
|
509
509
|
if (enabledIndex !== -1) {
|
|
510
510
|
this._state.enabled.splice(enabledIndex, 1);
|
|
511
|
-
await
|
|
511
|
+
await import_effect4.Effect.runPromise(this._deactivate(id));
|
|
512
512
|
plugin.modules.forEach((module2) => {
|
|
513
513
|
this._removeModule(module2.id);
|
|
514
514
|
});
|
|
@@ -522,7 +522,7 @@ var PluginManager = class {
|
|
|
522
522
|
* @returns Whether the activation was successful.
|
|
523
523
|
*/
|
|
524
524
|
activate(event) {
|
|
525
|
-
return (0, import_signals_core2.untracked)(() =>
|
|
525
|
+
return (0, import_signals_core2.untracked)(() => import_effect4.Effect.runPromise(this._activate(event)));
|
|
526
526
|
}
|
|
527
527
|
/**
|
|
528
528
|
* Deactivates all of the modules for a plugin.
|
|
@@ -530,7 +530,7 @@ var PluginManager = class {
|
|
|
530
530
|
* @returns Whether the deactivation was successful.
|
|
531
531
|
*/
|
|
532
532
|
deactivate(id) {
|
|
533
|
-
return (0, import_signals_core2.untracked)(() =>
|
|
533
|
+
return (0, import_signals_core2.untracked)(() => import_effect4.Effect.runPromise(this._deactivate(id)));
|
|
534
534
|
}
|
|
535
535
|
/**
|
|
536
536
|
* Re-activates the modules that were activated by the event.
|
|
@@ -538,7 +538,7 @@ var PluginManager = class {
|
|
|
538
538
|
* @returns Whether the reset was successful.
|
|
539
539
|
*/
|
|
540
540
|
reset(event) {
|
|
541
|
-
return (0, import_signals_core2.untracked)(() =>
|
|
541
|
+
return (0, import_signals_core2.untracked)(() => import_effect4.Effect.runPromise(this._reset(event)));
|
|
542
542
|
}
|
|
543
543
|
_addPlugin(plugin) {
|
|
544
544
|
(0, import_signals_core2.untracked)(() => {
|
|
@@ -639,7 +639,7 @@ var PluginManager = class {
|
|
|
639
639
|
*/
|
|
640
640
|
// TODO(wittjosiah): Improve error typing.
|
|
641
641
|
_activate(event) {
|
|
642
|
-
return
|
|
642
|
+
return import_effect4.Effect.gen(this, function* () {
|
|
643
643
|
const key = typeof event === "string" ? event : eventKey(event);
|
|
644
644
|
(0, import_log3.log)("activating", {
|
|
645
645
|
key
|
|
@@ -688,28 +688,28 @@ var PluginManager = class {
|
|
|
688
688
|
event: key,
|
|
689
689
|
state: "activating"
|
|
690
690
|
});
|
|
691
|
-
const getCapabilities = yield*
|
|
691
|
+
const getCapabilities = yield* import_effect4.Effect.all(modules.map(({ activate }) => import_effect4.Effect.tryPromise({
|
|
692
692
|
try: async () => activate(this.context),
|
|
693
693
|
catch: (error) => error
|
|
694
694
|
})), {
|
|
695
695
|
concurrency: "unbounded"
|
|
696
696
|
});
|
|
697
|
-
const result = yield* (0,
|
|
697
|
+
const result = yield* (0, import_effect4.pipe)(
|
|
698
698
|
modules,
|
|
699
|
-
|
|
700
|
-
|
|
699
|
+
import_effect4.Array.zip(getCapabilities),
|
|
700
|
+
import_effect4.Array.map(([module2, getCapabilities2]) => this._activateModule(module2, getCapabilities2)),
|
|
701
701
|
// TODO(wittjosiah): This currently can't be run in parallel.
|
|
702
702
|
// Running this with concurrency causes races with `allOf` activation events.
|
|
703
|
-
|
|
704
|
-
|
|
703
|
+
import_effect4.Effect.all,
|
|
704
|
+
import_effect4.Effect.either
|
|
705
705
|
);
|
|
706
|
-
if (
|
|
706
|
+
if (import_effect4.Either.isLeft(result)) {
|
|
707
707
|
this.activation.emit({
|
|
708
708
|
event: key,
|
|
709
709
|
state: "error",
|
|
710
710
|
error: result.left
|
|
711
711
|
});
|
|
712
|
-
yield*
|
|
712
|
+
yield* import_effect4.Effect.fail(result.left);
|
|
713
713
|
}
|
|
714
714
|
if (!this._state.eventsFired.includes(key)) {
|
|
715
715
|
this._state.eventsFired.push(key);
|
|
@@ -730,8 +730,8 @@ var PluginManager = class {
|
|
|
730
730
|
});
|
|
731
731
|
}
|
|
732
732
|
_activateModule(module2, getCapabilities) {
|
|
733
|
-
return
|
|
734
|
-
yield*
|
|
733
|
+
return import_effect4.Effect.gen(this, function* () {
|
|
734
|
+
yield* import_effect4.Effect.all(module2.activatesBefore?.map((event) => this._activate(event)) ?? [], {
|
|
735
735
|
concurrency: "unbounded"
|
|
736
736
|
});
|
|
737
737
|
(0, import_log3.log)("activating module...", {
|
|
@@ -743,16 +743,16 @@ var PluginManager = class {
|
|
|
743
743
|
C: (f, a) => f(...a)
|
|
744
744
|
});
|
|
745
745
|
const maybeCapabilities = typeof getCapabilities === "function" ? getCapabilities() : getCapabilities;
|
|
746
|
-
const resolvedCapabilities = yield*
|
|
746
|
+
const resolvedCapabilities = yield* import_effect4.Match.value(maybeCapabilities).pipe(
|
|
747
747
|
// TODO(wittjosiah): Activate with an effect?
|
|
748
748
|
// Match.when(Effect.isEffect, (effect) => effect),
|
|
749
|
-
|
|
749
|
+
import_effect4.Match.when(isPromise, (promise) => import_effect4.Effect.tryPromise({
|
|
750
750
|
try: () => promise,
|
|
751
751
|
catch: (error) => error
|
|
752
752
|
})),
|
|
753
|
-
|
|
753
|
+
import_effect4.Match.orElse((program) => import_effect4.Effect.succeed(program))
|
|
754
754
|
);
|
|
755
|
-
const capabilities =
|
|
755
|
+
const capabilities = import_effect4.Match.value(resolvedCapabilities).pipe(import_effect4.Match.when(Array.isArray, (array) => array), import_effect4.Match.orElse((value) => [
|
|
756
756
|
value
|
|
757
757
|
]));
|
|
758
758
|
capabilities.forEach((capability) => {
|
|
@@ -771,26 +771,26 @@ var PluginManager = class {
|
|
|
771
771
|
S: this,
|
|
772
772
|
C: (f, a) => f(...a)
|
|
773
773
|
});
|
|
774
|
-
yield*
|
|
774
|
+
yield* import_effect4.Effect.all(module2.activatesAfter?.map((event) => this._activate(event)) ?? [], {
|
|
775
775
|
concurrency: "unbounded"
|
|
776
776
|
});
|
|
777
777
|
});
|
|
778
778
|
}
|
|
779
779
|
_deactivate(id) {
|
|
780
|
-
return
|
|
780
|
+
return import_effect4.Effect.gen(this, function* () {
|
|
781
781
|
const plugin = this._getPlugin(id);
|
|
782
782
|
if (!plugin) {
|
|
783
783
|
return false;
|
|
784
784
|
}
|
|
785
785
|
const modules = plugin.modules;
|
|
786
|
-
const results = yield*
|
|
786
|
+
const results = yield* import_effect4.Effect.all(modules.map((module2) => this._deactivateModule(module2)), {
|
|
787
787
|
concurrency: "unbounded"
|
|
788
788
|
});
|
|
789
789
|
return results.every((result) => result);
|
|
790
790
|
});
|
|
791
791
|
}
|
|
792
792
|
_deactivateModule(module2) {
|
|
793
|
-
return
|
|
793
|
+
return import_effect4.Effect.gen(this, function* () {
|
|
794
794
|
const id = module2.id;
|
|
795
795
|
(0, import_log3.log)("deactivating", {
|
|
796
796
|
id
|
|
@@ -805,10 +805,10 @@ var PluginManager = class {
|
|
|
805
805
|
for (const capability of capabilities) {
|
|
806
806
|
this.context.removeCapability(capability.interface, capability.implementation);
|
|
807
807
|
const program = capability.deactivate?.();
|
|
808
|
-
yield*
|
|
808
|
+
yield* import_effect4.Match.value(program).pipe(import_effect4.Match.when(import_effect4.Effect.isEffect, (effect2) => effect2), import_effect4.Match.when(isPromise, (promise) => import_effect4.Effect.tryPromise({
|
|
809
809
|
try: () => promise,
|
|
810
810
|
catch: (error) => error
|
|
811
|
-
})),
|
|
811
|
+
})), import_effect4.Match.orElse((program2) => import_effect4.Effect.succeed(program2)));
|
|
812
812
|
}
|
|
813
813
|
this._capabilities.delete(id);
|
|
814
814
|
}
|
|
@@ -828,7 +828,7 @@ var PluginManager = class {
|
|
|
828
828
|
});
|
|
829
829
|
}
|
|
830
830
|
_reset(event) {
|
|
831
|
-
return
|
|
831
|
+
return import_effect4.Effect.gen(this, function* () {
|
|
832
832
|
const key = typeof event === "string" ? event : eventKey(event);
|
|
833
833
|
(0, import_log3.log)("reset", {
|
|
834
834
|
key
|
|
@@ -839,7 +839,7 @@ var PluginManager = class {
|
|
|
839
839
|
C: (f, a) => f(...a)
|
|
840
840
|
});
|
|
841
841
|
const modules = this._getActiveModulesByEvent(key);
|
|
842
|
-
const results = yield*
|
|
842
|
+
const results = yield* import_effect4.Effect.all(modules.map((module2) => this._deactivateModule(module2)), {
|
|
843
843
|
concurrency: "unbounded"
|
|
844
844
|
});
|
|
845
845
|
if (results.every((result) => result)) {
|
|
@@ -925,14 +925,15 @@ var defaultFileTypes = {
|
|
|
925
925
|
"md"
|
|
926
926
|
]
|
|
927
927
|
};
|
|
928
|
-
var FileInfoSchema =
|
|
929
|
-
name:
|
|
930
|
-
type:
|
|
931
|
-
url:
|
|
932
|
-
cid:
|
|
928
|
+
var FileInfoSchema = import_effect5.Schema.Struct({
|
|
929
|
+
name: import_effect5.Schema.String,
|
|
930
|
+
type: import_effect5.Schema.String,
|
|
931
|
+
url: import_effect5.Schema.optional(import_effect5.Schema.String),
|
|
932
|
+
cid: import_effect5.Schema.optional(import_effect5.Schema.String)
|
|
933
933
|
});
|
|
934
934
|
var IntentPlugin = () => definePlugin({
|
|
935
|
-
id: INTENT_PLUGIN
|
|
935
|
+
id: INTENT_PLUGIN,
|
|
936
|
+
name: "Intent"
|
|
936
937
|
}, [
|
|
937
938
|
defineModule({
|
|
938
939
|
id: `${INTENT_PLUGIN}/module/dispatcher`,
|
|
@@ -943,7 +944,7 @@ var IntentPlugin = () => definePlugin({
|
|
|
943
944
|
activatesAfter: [
|
|
944
945
|
Events.DispatcherReady
|
|
945
946
|
],
|
|
946
|
-
activate: lazy(() => import("./intent-dispatcher-
|
|
947
|
+
activate: lazy(() => import("./intent-dispatcher-44UTYP4W.cjs"))
|
|
947
948
|
})
|
|
948
949
|
]);
|
|
949
950
|
var LAYOUT_PLUGIN = "dxos.org/plugin/layout";
|
|
@@ -951,325 +952,325 @@ var LAYOUT_ACTION = `${LAYOUT_PLUGIN}/action`;
|
|
|
951
952
|
var LayoutAction;
|
|
952
953
|
(function(LayoutAction2) {
|
|
953
954
|
LayoutAction2.UPDATE_LAYOUT = `${LAYOUT_ACTION}/update-layout`;
|
|
954
|
-
class UpdateLayout extends
|
|
955
|
-
input:
|
|
956
|
-
part:
|
|
955
|
+
class UpdateLayout extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
956
|
+
input: import_effect6.Schema.Struct({
|
|
957
|
+
part: import_effect6.Schema.String.annotations({
|
|
957
958
|
description: "The part of the layout to mutate."
|
|
958
959
|
}),
|
|
959
|
-
subject:
|
|
960
|
+
subject: import_effect6.Schema.optional(import_effect6.Schema.Any.annotations({
|
|
960
961
|
description: "The subject of the layout update."
|
|
961
962
|
})),
|
|
962
|
-
options:
|
|
963
|
-
key:
|
|
964
|
-
value:
|
|
963
|
+
options: import_effect6.Schema.optional(import_effect6.Schema.Record({
|
|
964
|
+
key: import_effect6.Schema.String,
|
|
965
|
+
value: import_effect6.Schema.Any
|
|
965
966
|
}).annotations({
|
|
966
967
|
description: "Additional options for the layout action."
|
|
967
968
|
}))
|
|
968
969
|
}),
|
|
969
|
-
output:
|
|
970
|
+
output: import_effect6.Schema.Void
|
|
970
971
|
}) {
|
|
971
972
|
}
|
|
972
973
|
LayoutAction2.UpdateLayout = UpdateLayout;
|
|
973
|
-
class SetLayoutMode extends
|
|
974
|
-
input:
|
|
975
|
-
part:
|
|
974
|
+
class SetLayoutMode extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
975
|
+
input: import_effect6.Schema.Struct({
|
|
976
|
+
part: import_effect6.Schema.Literal("mode").annotations({
|
|
976
977
|
description: "Setting the layout mode."
|
|
977
978
|
}),
|
|
978
|
-
subject:
|
|
979
|
+
subject: import_effect6.Schema.optional(import_effect6.Schema.String.annotations({
|
|
979
980
|
description: "Item which is the subject of the new layout mode."
|
|
980
981
|
})),
|
|
981
|
-
options:
|
|
982
|
-
mode:
|
|
982
|
+
options: import_effect6.Schema.Union(import_effect6.Schema.Struct({
|
|
983
|
+
mode: import_effect6.Schema.String.annotations({
|
|
983
984
|
description: "The new layout mode."
|
|
984
985
|
})
|
|
985
|
-
}),
|
|
986
|
-
revert:
|
|
986
|
+
}), import_effect6.Schema.Struct({
|
|
987
|
+
revert: import_effect6.Schema.Boolean.annotations({
|
|
987
988
|
description: "Revert to the previous layout mode."
|
|
988
989
|
})
|
|
989
990
|
}))
|
|
990
991
|
}),
|
|
991
|
-
output:
|
|
992
|
+
output: import_effect6.Schema.Void
|
|
992
993
|
}) {
|
|
993
994
|
}
|
|
994
995
|
LayoutAction2.SetLayoutMode = SetLayoutMode;
|
|
995
|
-
class UpdateSidebar extends
|
|
996
|
-
input:
|
|
997
|
-
part:
|
|
996
|
+
class UpdateSidebar extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
997
|
+
input: import_effect6.Schema.Struct({
|
|
998
|
+
part: import_effect6.Schema.Literal("sidebar").annotations({
|
|
998
999
|
description: "Updating the sidebar."
|
|
999
1000
|
}),
|
|
1000
|
-
subject:
|
|
1001
|
+
subject: import_effect6.Schema.optional(import_effect6.Schema.String.annotations({
|
|
1001
1002
|
description: "URI of the component to display in the sidebar."
|
|
1002
1003
|
})),
|
|
1003
|
-
options:
|
|
1004
|
-
state:
|
|
1004
|
+
options: import_effect6.Schema.optional(import_effect6.Schema.Struct({
|
|
1005
|
+
state: import_effect6.Schema.Literal("closed", "collapsed", "expanded").annotations({
|
|
1005
1006
|
description: "Whether the sidebar is closed, collapsed, or expanded."
|
|
1006
1007
|
})
|
|
1007
1008
|
}))
|
|
1008
1009
|
}),
|
|
1009
|
-
output:
|
|
1010
|
+
output: import_effect6.Schema.Void
|
|
1010
1011
|
}) {
|
|
1011
1012
|
}
|
|
1012
1013
|
LayoutAction2.UpdateSidebar = UpdateSidebar;
|
|
1013
|
-
class UpdateComplementary extends
|
|
1014
|
-
input:
|
|
1015
|
-
part:
|
|
1014
|
+
class UpdateComplementary extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1015
|
+
input: import_effect6.Schema.Struct({
|
|
1016
|
+
part: import_effect6.Schema.Literal("complementary").annotations({
|
|
1016
1017
|
description: "Updating the complementary sidebar."
|
|
1017
1018
|
}),
|
|
1018
|
-
subject:
|
|
1019
|
+
subject: import_effect6.Schema.optional(import_effect6.Schema.String.annotations({
|
|
1019
1020
|
description: "URI of the component to display in the complementary area."
|
|
1020
1021
|
})),
|
|
1021
|
-
options:
|
|
1022
|
-
state:
|
|
1022
|
+
options: import_effect6.Schema.optional(import_effect6.Schema.Struct({
|
|
1023
|
+
state: import_effect6.Schema.Literal("closed", "collapsed", "expanded").annotations({
|
|
1023
1024
|
description: "Whether the complementary sidebar is closed, collapsed, or expanded."
|
|
1024
1025
|
})
|
|
1025
1026
|
}))
|
|
1026
1027
|
}),
|
|
1027
|
-
output:
|
|
1028
|
+
output: import_effect6.Schema.Void
|
|
1028
1029
|
}) {
|
|
1029
1030
|
}
|
|
1030
1031
|
LayoutAction2.UpdateComplementary = UpdateComplementary;
|
|
1031
|
-
class UpdateDialog extends
|
|
1032
|
-
input:
|
|
1033
|
-
part:
|
|
1032
|
+
class UpdateDialog extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1033
|
+
input: import_effect6.Schema.Struct({
|
|
1034
|
+
part: import_effect6.Schema.Literal("dialog").annotations({
|
|
1034
1035
|
description: "Updating the dialog."
|
|
1035
1036
|
}),
|
|
1036
|
-
subject:
|
|
1037
|
+
subject: import_effect6.Schema.optional(import_effect6.Schema.String.annotations({
|
|
1037
1038
|
description: "URI of the component to display in the dialog."
|
|
1038
1039
|
})),
|
|
1039
|
-
options:
|
|
1040
|
-
state:
|
|
1040
|
+
options: import_effect6.Schema.Struct({
|
|
1041
|
+
state: import_effect6.Schema.optional(import_effect6.Schema.Boolean.annotations({
|
|
1041
1042
|
description: "Whether the dialog is open or closed."
|
|
1042
1043
|
})),
|
|
1043
|
-
blockAlign:
|
|
1044
|
+
blockAlign: import_effect6.Schema.optional(import_effect6.Schema.Literal("start", "center", "end").annotations({
|
|
1044
1045
|
description: "The alignment of the dialog."
|
|
1045
1046
|
})),
|
|
1046
|
-
type:
|
|
1047
|
+
type: import_effect6.Schema.optional(import_effect6.Schema.Literal("default", "alert").annotations({
|
|
1047
1048
|
description: "The type of dialog."
|
|
1048
1049
|
})),
|
|
1049
|
-
props:
|
|
1050
|
-
key:
|
|
1051
|
-
value:
|
|
1050
|
+
props: import_effect6.Schema.optional(import_effect6.Schema.Record({
|
|
1051
|
+
key: import_effect6.Schema.String,
|
|
1052
|
+
value: import_effect6.Schema.Any
|
|
1052
1053
|
}).annotations({
|
|
1053
1054
|
description: "Additional props for the dialog."
|
|
1054
1055
|
}))
|
|
1055
1056
|
})
|
|
1056
1057
|
}),
|
|
1057
|
-
output:
|
|
1058
|
+
output: import_effect6.Schema.Void
|
|
1058
1059
|
}) {
|
|
1059
1060
|
}
|
|
1060
1061
|
LayoutAction2.UpdateDialog = UpdateDialog;
|
|
1061
|
-
class UpdatePopover extends
|
|
1062
|
-
input:
|
|
1063
|
-
part:
|
|
1062
|
+
class UpdatePopover extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1063
|
+
input: import_effect6.Schema.Struct({
|
|
1064
|
+
part: import_effect6.Schema.Literal("popover").annotations({
|
|
1064
1065
|
description: "Updating the popover."
|
|
1065
1066
|
}),
|
|
1066
|
-
subject:
|
|
1067
|
+
subject: import_effect6.Schema.optional(import_effect6.Schema.String.annotations({
|
|
1067
1068
|
description: "URI of the component to display in the popover."
|
|
1068
1069
|
})),
|
|
1069
|
-
options:
|
|
1070
|
-
anchorId:
|
|
1070
|
+
options: import_effect6.Schema.Struct({
|
|
1071
|
+
anchorId: import_effect6.Schema.String.annotations({
|
|
1071
1072
|
description: "The id of the element to anchor the popover to."
|
|
1072
1073
|
}),
|
|
1073
|
-
side:
|
|
1074
|
+
side: import_effect6.Schema.optional(import_effect6.Schema.Literal("top", "right", "bottom", "left").annotations({
|
|
1074
1075
|
description: "The side of the anchor."
|
|
1075
1076
|
})),
|
|
1076
|
-
state:
|
|
1077
|
+
state: import_effect6.Schema.optional(import_effect6.Schema.Boolean.annotations({
|
|
1077
1078
|
description: "Whether the popover is open or closed."
|
|
1078
1079
|
})),
|
|
1079
|
-
props:
|
|
1080
|
-
key:
|
|
1081
|
-
value:
|
|
1080
|
+
props: import_effect6.Schema.optional(import_effect6.Schema.Record({
|
|
1081
|
+
key: import_effect6.Schema.String,
|
|
1082
|
+
value: import_effect6.Schema.Any
|
|
1082
1083
|
}).annotations({
|
|
1083
1084
|
description: "Additional props for the popover."
|
|
1084
1085
|
}))
|
|
1085
1086
|
})
|
|
1086
1087
|
}),
|
|
1087
|
-
output:
|
|
1088
|
+
output: import_effect6.Schema.Void
|
|
1088
1089
|
}) {
|
|
1089
1090
|
}
|
|
1090
1091
|
LayoutAction2.UpdatePopover = UpdatePopover;
|
|
1091
|
-
LayoutAction2.Toast =
|
|
1092
|
-
id:
|
|
1092
|
+
LayoutAction2.Toast = import_effect6.Schema.Struct({
|
|
1093
|
+
id: import_effect6.Schema.String.annotations({
|
|
1093
1094
|
description: "The id of the toast."
|
|
1094
1095
|
}),
|
|
1095
|
-
title:
|
|
1096
|
+
title: import_effect6.Schema.optional(Label.annotations({
|
|
1096
1097
|
description: "The title of the toast."
|
|
1097
1098
|
})),
|
|
1098
|
-
description:
|
|
1099
|
+
description: import_effect6.Schema.optional(Label.annotations({
|
|
1099
1100
|
description: "The description of the toast."
|
|
1100
1101
|
})),
|
|
1101
|
-
icon:
|
|
1102
|
+
icon: import_effect6.Schema.optional(import_effect6.Schema.String.annotations({
|
|
1102
1103
|
description: "The icon of the toast."
|
|
1103
1104
|
})),
|
|
1104
|
-
duration:
|
|
1105
|
+
duration: import_effect6.Schema.optional(import_effect6.Schema.Number.annotations({
|
|
1105
1106
|
description: "The duration of the toast."
|
|
1106
1107
|
})),
|
|
1107
|
-
closeLabel:
|
|
1108
|
+
closeLabel: import_effect6.Schema.optional(Label.annotations({
|
|
1108
1109
|
description: "The label of the close button."
|
|
1109
1110
|
})),
|
|
1110
|
-
actionLabel:
|
|
1111
|
+
actionLabel: import_effect6.Schema.optional(Label.annotations({
|
|
1111
1112
|
description: "The label of the action button."
|
|
1112
1113
|
})),
|
|
1113
|
-
actionAlt:
|
|
1114
|
+
actionAlt: import_effect6.Schema.optional(Label.annotations({
|
|
1114
1115
|
description: "The alt text of the action button."
|
|
1115
1116
|
})),
|
|
1116
|
-
onAction:
|
|
1117
|
+
onAction: import_effect6.Schema.optional(import_effect6.Schema.Any.annotations({
|
|
1117
1118
|
description: "The action to perform when the action button is clicked."
|
|
1118
1119
|
}))
|
|
1119
1120
|
});
|
|
1120
|
-
class AddToast extends
|
|
1121
|
-
input:
|
|
1122
|
-
part:
|
|
1121
|
+
class AddToast extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1122
|
+
input: import_effect6.Schema.Struct({
|
|
1123
|
+
part: import_effect6.Schema.Literal("toast").annotations({
|
|
1123
1124
|
description: "Adding a toast."
|
|
1124
1125
|
}),
|
|
1125
1126
|
subject: LayoutAction2.Toast.annotations({
|
|
1126
1127
|
description: "The toast to add."
|
|
1127
1128
|
})
|
|
1128
1129
|
}),
|
|
1129
|
-
output:
|
|
1130
|
+
output: import_effect6.Schema.Void
|
|
1130
1131
|
}) {
|
|
1131
1132
|
}
|
|
1132
1133
|
LayoutAction2.AddToast = AddToast;
|
|
1133
|
-
class SwitchWorkspace extends
|
|
1134
|
-
input:
|
|
1135
|
-
part:
|
|
1134
|
+
class SwitchWorkspace extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1135
|
+
input: import_effect6.Schema.Struct({
|
|
1136
|
+
part: import_effect6.Schema.Literal("workspace").annotations({
|
|
1136
1137
|
description: "Switching the workspace."
|
|
1137
1138
|
}),
|
|
1138
|
-
subject:
|
|
1139
|
+
subject: import_effect6.Schema.String.annotations({
|
|
1139
1140
|
description: "The id of the workspace to switch to."
|
|
1140
1141
|
})
|
|
1141
1142
|
}),
|
|
1142
|
-
output:
|
|
1143
|
+
output: import_effect6.Schema.Void
|
|
1143
1144
|
}) {
|
|
1144
1145
|
}
|
|
1145
1146
|
LayoutAction2.SwitchWorkspace = SwitchWorkspace;
|
|
1146
|
-
class RevertWorkspace extends
|
|
1147
|
-
input:
|
|
1148
|
-
part:
|
|
1147
|
+
class RevertWorkspace extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1148
|
+
input: import_effect6.Schema.Struct({
|
|
1149
|
+
part: import_effect6.Schema.Literal("workspace").annotations({
|
|
1149
1150
|
description: "Switching the workspace."
|
|
1150
1151
|
}),
|
|
1151
|
-
options:
|
|
1152
|
-
revert:
|
|
1152
|
+
options: import_effect6.Schema.Struct({
|
|
1153
|
+
revert: import_effect6.Schema.Literal(true).annotations({
|
|
1153
1154
|
description: "Revert to the previous workspace."
|
|
1154
1155
|
})
|
|
1155
1156
|
})
|
|
1156
1157
|
}),
|
|
1157
|
-
output:
|
|
1158
|
+
output: import_effect6.Schema.Void
|
|
1158
1159
|
}) {
|
|
1159
1160
|
}
|
|
1160
1161
|
LayoutAction2.RevertWorkspace = RevertWorkspace;
|
|
1161
|
-
class Open extends
|
|
1162
|
-
input:
|
|
1163
|
-
part:
|
|
1162
|
+
class Open extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1163
|
+
input: import_effect6.Schema.Struct({
|
|
1164
|
+
part: import_effect6.Schema.Literal("main").annotations({
|
|
1164
1165
|
description: "Opening an item in the main content area."
|
|
1165
1166
|
}),
|
|
1166
|
-
subject:
|
|
1167
|
+
subject: import_effect6.Schema.Array(import_effect6.Schema.String.annotations({
|
|
1167
1168
|
description: "Ids of the items to open."
|
|
1168
1169
|
})),
|
|
1169
|
-
options:
|
|
1170
|
-
state:
|
|
1170
|
+
options: import_effect6.Schema.optional(import_effect6.Schema.Struct({
|
|
1171
|
+
state: import_effect6.Schema.optional(import_effect6.Schema.Literal(true).annotations({
|
|
1171
1172
|
description: "The items are being added."
|
|
1172
1173
|
})),
|
|
1173
|
-
key:
|
|
1174
|
+
key: import_effect6.Schema.optional(import_effect6.Schema.String.annotations({
|
|
1174
1175
|
description: "If provided, will replace item with a matching key (id prefix)."
|
|
1175
1176
|
})),
|
|
1176
|
-
scrollIntoView:
|
|
1177
|
+
scrollIntoView: import_effect6.Schema.optional(import_effect6.Schema.Boolean.annotations({
|
|
1177
1178
|
description: "Scroll the items into view."
|
|
1178
1179
|
})),
|
|
1179
|
-
pivotId:
|
|
1180
|
+
pivotId: import_effect6.Schema.optional(import_effect6.Schema.String.annotations({
|
|
1180
1181
|
description: "The id of the item to place new items next to."
|
|
1181
1182
|
})),
|
|
1182
|
-
positioning:
|
|
1183
|
+
positioning: import_effect6.Schema.optional(import_effect6.Schema.Union(import_effect6.Schema.Literal("start").annotations({
|
|
1183
1184
|
description: "The items are being added before the pivot item."
|
|
1184
|
-
}),
|
|
1185
|
+
}), import_effect6.Schema.Literal("end").annotations({
|
|
1185
1186
|
description: "The items are being added after the pivot item."
|
|
1186
1187
|
})))
|
|
1187
1188
|
}))
|
|
1188
1189
|
}),
|
|
1189
|
-
output:
|
|
1190
|
+
output: import_effect6.Schema.Void
|
|
1190
1191
|
}) {
|
|
1191
1192
|
}
|
|
1192
1193
|
LayoutAction2.Open = Open;
|
|
1193
|
-
class Set2 extends
|
|
1194
|
-
input:
|
|
1195
|
-
part:
|
|
1194
|
+
class Set2 extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1195
|
+
input: import_effect6.Schema.Struct({
|
|
1196
|
+
part: import_effect6.Schema.Literal("main").annotations({
|
|
1196
1197
|
description: "Setting items in the main content area."
|
|
1197
1198
|
}),
|
|
1198
|
-
subject:
|
|
1199
|
+
subject: import_effect6.Schema.Array(import_effect6.Schema.String.annotations({
|
|
1199
1200
|
description: "Ids of the items to set."
|
|
1200
1201
|
})),
|
|
1201
|
-
options:
|
|
1202
|
-
override:
|
|
1202
|
+
options: import_effect6.Schema.Struct({
|
|
1203
|
+
override: import_effect6.Schema.Literal(true).annotations({
|
|
1203
1204
|
description: "Override the current items in the main content area."
|
|
1204
1205
|
})
|
|
1205
1206
|
})
|
|
1206
1207
|
}),
|
|
1207
|
-
output:
|
|
1208
|
+
output: import_effect6.Schema.Void
|
|
1208
1209
|
}) {
|
|
1209
1210
|
}
|
|
1210
1211
|
LayoutAction2.Set = Set2;
|
|
1211
|
-
class Close extends
|
|
1212
|
-
input:
|
|
1213
|
-
part:
|
|
1212
|
+
class Close extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1213
|
+
input: import_effect6.Schema.Struct({
|
|
1214
|
+
part: import_effect6.Schema.Literal("main").annotations({
|
|
1214
1215
|
description: "Closing items in the main content area."
|
|
1215
1216
|
}),
|
|
1216
|
-
subject:
|
|
1217
|
+
subject: import_effect6.Schema.Array(import_effect6.Schema.String.annotations({
|
|
1217
1218
|
description: "Ids of the items to close."
|
|
1218
1219
|
})),
|
|
1219
|
-
options:
|
|
1220
|
-
state:
|
|
1220
|
+
options: import_effect6.Schema.Struct({
|
|
1221
|
+
state: import_effect6.Schema.Literal(false).annotations({
|
|
1221
1222
|
description: "The items are being removed."
|
|
1222
1223
|
})
|
|
1223
1224
|
})
|
|
1224
1225
|
}),
|
|
1225
|
-
output:
|
|
1226
|
+
output: import_effect6.Schema.Void
|
|
1226
1227
|
}) {
|
|
1227
1228
|
}
|
|
1228
1229
|
LayoutAction2.Close = Close;
|
|
1229
|
-
class ScrollIntoView extends
|
|
1230
|
-
input:
|
|
1231
|
-
part:
|
|
1230
|
+
class ScrollIntoView extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1231
|
+
input: import_effect6.Schema.Struct({
|
|
1232
|
+
part: import_effect6.Schema.Literal("current").annotations({
|
|
1232
1233
|
description: "Setting the current item"
|
|
1233
1234
|
}),
|
|
1234
|
-
subject:
|
|
1235
|
+
subject: import_effect6.Schema.optional(import_effect6.Schema.String.annotations({
|
|
1235
1236
|
description: "The id of the item to set as current."
|
|
1236
1237
|
})),
|
|
1237
|
-
options:
|
|
1238
|
-
key:
|
|
1239
|
-
value:
|
|
1238
|
+
options: import_effect6.Schema.optional(import_effect6.Schema.Record({
|
|
1239
|
+
key: import_effect6.Schema.String,
|
|
1240
|
+
value: import_effect6.Schema.Any
|
|
1240
1241
|
}).annotations({
|
|
1241
1242
|
description: "Additional options for the scroll into view."
|
|
1242
1243
|
}))
|
|
1243
1244
|
}),
|
|
1244
|
-
output:
|
|
1245
|
+
output: import_effect6.Schema.Void
|
|
1245
1246
|
}) {
|
|
1246
1247
|
}
|
|
1247
1248
|
LayoutAction2.ScrollIntoView = ScrollIntoView;
|
|
1248
|
-
class Expose extends
|
|
1249
|
-
input:
|
|
1250
|
-
part:
|
|
1249
|
+
class Expose extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1250
|
+
input: import_effect6.Schema.Struct({
|
|
1251
|
+
part: import_effect6.Schema.Literal("navigation").annotations({
|
|
1251
1252
|
description: "Exposing an item in the navigation area."
|
|
1252
1253
|
}),
|
|
1253
|
-
subject:
|
|
1254
|
+
subject: import_effect6.Schema.String.annotations({
|
|
1254
1255
|
description: "The id of the item to expose."
|
|
1255
1256
|
})
|
|
1256
1257
|
}),
|
|
1257
|
-
output:
|
|
1258
|
+
output: import_effect6.Schema.Void
|
|
1258
1259
|
}) {
|
|
1259
1260
|
}
|
|
1260
1261
|
LayoutAction2.Expose = Expose;
|
|
1261
1262
|
})(LayoutAction || (LayoutAction = {}));
|
|
1262
1263
|
var createSurface = (definition) => definition;
|
|
1263
|
-
var ResourceKey =
|
|
1264
|
-
key:
|
|
1265
|
-
value:
|
|
1264
|
+
var ResourceKey = import_effect7.Schema.Union(import_effect7.Schema.String, import_effect7.Schema.Record({
|
|
1265
|
+
key: import_effect7.Schema.String,
|
|
1266
|
+
value: import_effect7.Schema.Any
|
|
1266
1267
|
}));
|
|
1267
|
-
var ResourceLanguage =
|
|
1268
|
-
key:
|
|
1268
|
+
var ResourceLanguage = import_effect7.Schema.Record({
|
|
1269
|
+
key: import_effect7.Schema.String,
|
|
1269
1270
|
value: ResourceKey
|
|
1270
1271
|
});
|
|
1271
|
-
var Resource =
|
|
1272
|
-
key:
|
|
1272
|
+
var Resource = import_effect7.Schema.Record({
|
|
1273
|
+
key: import_effect7.Schema.String,
|
|
1273
1274
|
value: ResourceLanguage
|
|
1274
1275
|
});
|
|
1275
1276
|
var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/sdk/app-framework/src/plugin-intent/intent-dispatcher.ts";
|
|
@@ -1463,4 +1464,4 @@ var intent_dispatcher_default = (context) => {
|
|
|
1463
1464
|
lazy,
|
|
1464
1465
|
oneOf
|
|
1465
1466
|
});
|
|
1466
|
-
//# sourceMappingURL=chunk-
|
|
1467
|
+
//# sourceMappingURL=chunk-OPG5WEML.cjs.map
|