@dxos/app-framework 0.8.0 → 0.8.1-main.303c73a

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.
Files changed (102) hide show
  1. package/dist/lib/browser/{app-graph-builder-S4MYSHQA.mjs → app-graph-builder-IAEV7KKF.mjs} +3 -3
  2. package/dist/lib/browser/{chunk-SRZH2PQ2.mjs → chunk-CB3W6T5E.mjs} +2 -2
  3. package/dist/lib/browser/{chunk-SRZH2PQ2.mjs.map → chunk-CB3W6T5E.mjs.map} +1 -1
  4. package/dist/lib/browser/{chunk-QS4J6O47.mjs → chunk-CIP4C47B.mjs} +2 -2
  5. package/dist/lib/browser/{chunk-BCMEJONP.mjs → chunk-PWAAJE2Z.mjs} +7 -7
  6. package/dist/lib/browser/chunk-PWAAJE2Z.mjs.map +7 -0
  7. package/dist/lib/browser/index.mjs +6 -6
  8. package/dist/lib/browser/{intent-dispatcher-GFBH7T2J.mjs → intent-dispatcher-UR566RVO.mjs} +2 -2
  9. package/dist/lib/browser/{intent-resolver-KAFM7CQH.mjs → intent-resolver-LEJ3X6CP.mjs} +3 -3
  10. package/dist/lib/browser/meta.json +1 -1
  11. package/dist/lib/browser/{store-L3VRR7II.mjs → store-5TN4OLFQ.mjs} +2 -2
  12. package/dist/lib/browser/testing/index.mjs +2 -2
  13. package/dist/lib/browser/worker.mjs +1 -1
  14. package/dist/lib/node/{app-graph-builder-VMHWFCTP.cjs → app-graph-builder-3RWOZENP.cjs} +28 -28
  15. package/dist/lib/node/{chunk-B65NJEIJ.cjs → chunk-JLQABYHB.cjs} +19 -19
  16. package/dist/lib/node/{chunk-VCIHQZSN.cjs → chunk-SCHC4AZQ.cjs} +12 -12
  17. package/dist/lib/node/{chunk-VCIHQZSN.cjs.map → chunk-SCHC4AZQ.cjs.map} +1 -1
  18. package/dist/lib/node/{chunk-7Y6KJ3OK.cjs → chunk-XP4TI5DS.cjs} +177 -177
  19. package/dist/lib/node/chunk-XP4TI5DS.cjs.map +7 -0
  20. package/dist/lib/node/index.cjs +78 -78
  21. package/dist/lib/node/{intent-dispatcher-PRCC4KZT.cjs → intent-dispatcher-EDW7NFJ4.cjs} +8 -8
  22. package/dist/lib/node/{intent-dispatcher-PRCC4KZT.cjs.map → intent-dispatcher-EDW7NFJ4.cjs.map} +2 -2
  23. package/dist/lib/node/{intent-resolver-OZDKCHPW.cjs → intent-resolver-34J5IM27.cjs} +12 -12
  24. package/dist/lib/node/meta.json +1 -1
  25. package/dist/lib/node/{store-BVUKNVKL.cjs → store-3I3UFH5D.cjs} +7 -7
  26. package/dist/lib/node/testing/index.cjs +8 -8
  27. package/dist/lib/node/worker.cjs +37 -37
  28. package/dist/lib/node/worker.cjs.map +1 -1
  29. package/dist/lib/node-esm/{app-graph-builder-XHI5IIXQ.mjs → app-graph-builder-RG3DT2OD.mjs} +3 -3
  30. package/dist/lib/node-esm/{chunk-CBT75GCX.mjs → chunk-BSYAFUZ7.mjs} +2 -2
  31. package/dist/lib/node-esm/{chunk-CBT75GCX.mjs.map → chunk-BSYAFUZ7.mjs.map} +1 -1
  32. package/dist/lib/node-esm/{chunk-TVIR2PHY.mjs → chunk-NIVSBD3D.mjs} +7 -7
  33. package/dist/lib/node-esm/chunk-NIVSBD3D.mjs.map +7 -0
  34. package/dist/lib/node-esm/{chunk-JDAHZRYQ.mjs → chunk-T2URISUU.mjs} +2 -2
  35. package/dist/lib/node-esm/index.mjs +6 -6
  36. package/dist/lib/node-esm/{intent-dispatcher-LGACN32C.mjs → intent-dispatcher-7GCMKMSQ.mjs} +2 -2
  37. package/dist/lib/node-esm/{intent-resolver-RBNG76ZX.mjs → intent-resolver-7T6UOQOS.mjs} +3 -3
  38. package/dist/lib/node-esm/meta.json +1 -1
  39. package/dist/lib/node-esm/{store-PHTOEREN.mjs → store-PTKVELJP.mjs} +2 -2
  40. package/dist/lib/node-esm/testing/index.mjs +2 -2
  41. package/dist/lib/node-esm/worker.mjs +1 -1
  42. package/dist/types/src/App.d.ts +2 -2
  43. package/dist/types/src/App.d.ts.map +1 -1
  44. package/dist/types/src/common/capabilities.d.ts +1 -1
  45. package/dist/types/src/common/capabilities.d.ts.map +1 -1
  46. package/dist/types/src/common/file.d.ts +1 -1
  47. package/dist/types/src/common/file.d.ts.map +1 -1
  48. package/dist/types/src/common/layout.d.ts +1 -1
  49. package/dist/types/src/common/layout.d.ts.map +1 -1
  50. package/dist/types/src/common/translations.d.ts +1 -1
  51. package/dist/types/src/common/translations.d.ts.map +1 -1
  52. package/dist/types/src/playground/debug/Debug.d.ts +2 -1
  53. package/dist/types/src/playground/debug/Debug.d.ts.map +1 -1
  54. package/dist/types/src/playground/generator/Main.d.ts +2 -1
  55. package/dist/types/src/playground/generator/Main.d.ts.map +1 -1
  56. package/dist/types/src/playground/generator/Toolbar.d.ts +2 -1
  57. package/dist/types/src/playground/generator/Toolbar.d.ts.map +1 -1
  58. package/dist/types/src/playground/layout/Layout.d.ts +1 -1
  59. package/dist/types/src/playground/layout/Layout.d.ts.map +1 -1
  60. package/dist/types/src/playground/logger/Toolbar.d.ts +2 -1
  61. package/dist/types/src/playground/logger/Toolbar.d.ts.map +1 -1
  62. package/dist/types/src/playground/logger/schema.d.ts +1 -1
  63. package/dist/types/src/playground/logger/schema.d.ts.map +1 -1
  64. package/dist/types/src/playground/playground.stories.d.ts +2 -1
  65. package/dist/types/src/playground/playground.stories.d.ts.map +1 -1
  66. package/dist/types/src/plugin-intent/actions.d.ts +1 -1
  67. package/dist/types/src/plugin-intent/actions.d.ts.map +1 -1
  68. package/dist/types/src/plugin-intent/intent.d.ts +1 -1
  69. package/dist/types/src/plugin-intent/intent.d.ts.map +1 -1
  70. package/dist/types/src/plugin-settings/actions.d.ts +1 -1
  71. package/dist/types/src/plugin-settings/actions.d.ts.map +1 -1
  72. package/dist/types/src/react/ErrorBoundary.d.ts +1 -1
  73. package/dist/types/src/react/Surface.stories.d.ts +2 -1
  74. package/dist/types/src/react/Surface.stories.d.ts.map +1 -1
  75. package/package.json +19 -20
  76. package/src/common/capabilities.ts +1 -1
  77. package/src/common/file.ts +1 -1
  78. package/src/common/layout.ts +1 -1
  79. package/src/common/translations.ts +1 -1
  80. package/src/playground/generator/generator.ts +1 -1
  81. package/src/playground/logger/schema.ts +1 -1
  82. package/src/plugin-intent/actions.ts +1 -1
  83. package/src/plugin-intent/intent-dispatcher.test.ts +1 -2
  84. package/src/plugin-intent/intent.ts +1 -1
  85. package/src/plugin-settings/actions.ts +1 -1
  86. package/dist/lib/browser/chunk-BCMEJONP.mjs.map +0 -7
  87. package/dist/lib/node/chunk-7Y6KJ3OK.cjs.map +0 -7
  88. package/dist/lib/node-esm/chunk-TVIR2PHY.mjs.map +0 -7
  89. /package/dist/lib/browser/{app-graph-builder-S4MYSHQA.mjs.map → app-graph-builder-IAEV7KKF.mjs.map} +0 -0
  90. /package/dist/lib/browser/{chunk-QS4J6O47.mjs.map → chunk-CIP4C47B.mjs.map} +0 -0
  91. /package/dist/lib/browser/{intent-dispatcher-GFBH7T2J.mjs.map → intent-dispatcher-UR566RVO.mjs.map} +0 -0
  92. /package/dist/lib/browser/{intent-resolver-KAFM7CQH.mjs.map → intent-resolver-LEJ3X6CP.mjs.map} +0 -0
  93. /package/dist/lib/browser/{store-L3VRR7II.mjs.map → store-5TN4OLFQ.mjs.map} +0 -0
  94. /package/dist/lib/node/{app-graph-builder-VMHWFCTP.cjs.map → app-graph-builder-3RWOZENP.cjs.map} +0 -0
  95. /package/dist/lib/node/{chunk-B65NJEIJ.cjs.map → chunk-JLQABYHB.cjs.map} +0 -0
  96. /package/dist/lib/node/{intent-resolver-OZDKCHPW.cjs.map → intent-resolver-34J5IM27.cjs.map} +0 -0
  97. /package/dist/lib/node/{store-BVUKNVKL.cjs.map → store-3I3UFH5D.cjs.map} +0 -0
  98. /package/dist/lib/node-esm/{app-graph-builder-XHI5IIXQ.mjs.map → app-graph-builder-RG3DT2OD.mjs.map} +0 -0
  99. /package/dist/lib/node-esm/{chunk-JDAHZRYQ.mjs.map → chunk-T2URISUU.mjs.map} +0 -0
  100. /package/dist/lib/node-esm/{intent-dispatcher-LGACN32C.mjs.map → intent-dispatcher-7GCMKMSQ.mjs.map} +0 -0
  101. /package/dist/lib/node-esm/{intent-resolver-RBNG76ZX.mjs.map → intent-resolver-7T6UOQOS.mjs.map} +0 -0
  102. /package/dist/lib/node-esm/{store-PHTOEREN.mjs.map → store-PTKVELJP.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 chunk_7Y6KJ3OK_exports = {};
30
- __export(chunk_7Y6KJ3OK_exports, {
29
+ var chunk_XP4TI5DS_exports = {};
30
+ __export(chunk_XP4TI5DS_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(chunk_7Y6KJ3OK_exports);
69
+ module.exports = __toCommonJS(chunk_XP4TI5DS_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 import_schema = require("@effect/schema");
75
- var import_schema2 = require("@effect/schema");
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 import_effect2 = require("effect");
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 import_schema3 = require("@effect/schema");
87
- var import_schema4 = require("@effect/schema");
88
- var import_schema5 = require("@effect/schema");
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 _ = import_schema2.Schema.validateSync(schema.fields.input)(data);
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 = import_schema2.Schema.Union(import_schema2.Schema.String, import_schema2.Schema.mutable(import_schema2.Schema.Tuple(import_schema2.Schema.String, import_schema2.Schema.mutable(import_schema2.Schema.Struct({
126
- ns: import_schema2.Schema.String,
127
- count: import_schema2.Schema.optional(import_schema2.Schema.Number)
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 import_schema.Schema.TaggedClass()(`${INTENT_ACTION}/show-undo`, {
134
- input: import_schema.Schema.Struct({
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: import_schema.Schema.Void
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 import_effect2.Effect.runPromise(import_effect2.Effect.all(this.pendingReset.map((event) => this._activate(event)), {
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 import_effect2.Effect.runPromise(this._deactivate(id));
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)(() => import_effect2.Effect.runPromise(this._activate(event)));
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)(() => import_effect2.Effect.runPromise(this._deactivate(id)));
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)(() => import_effect2.Effect.runPromise(this._reset(event)));
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 import_effect2.Effect.gen(this, function* () {
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* import_effect2.Effect.all(modules.map(({ activate }) => import_effect2.Effect.tryPromise({
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, import_effect2.pipe)(
697
+ const result = yield* (0, import_effect4.pipe)(
698
698
  modules,
699
- import_effect2.Array.zip(getCapabilities),
700
- import_effect2.Array.map(([module2, getCapabilities2]) => this._activateModule(module2, getCapabilities2)),
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
- import_effect2.Effect.all,
704
- import_effect2.Effect.either
703
+ import_effect4.Effect.all,
704
+ import_effect4.Effect.either
705
705
  );
706
- if (import_effect2.Either.isLeft(result)) {
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* import_effect2.Effect.fail(result.left);
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 import_effect2.Effect.gen(this, function* () {
734
- yield* import_effect2.Effect.all(module2.activatesBefore?.map((event) => this._activate(event)) ?? [], {
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* import_effect2.Match.value(maybeCapabilities).pipe(
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
- import_effect2.Match.when(isPromise, (promise) => import_effect2.Effect.tryPromise({
749
+ import_effect4.Match.when(isPromise, (promise) => import_effect4.Effect.tryPromise({
750
750
  try: () => promise,
751
751
  catch: (error) => error
752
752
  })),
753
- import_effect2.Match.orElse((program) => import_effect2.Effect.succeed(program))
753
+ import_effect4.Match.orElse((program) => import_effect4.Effect.succeed(program))
754
754
  );
755
- const capabilities = import_effect2.Match.value(resolvedCapabilities).pipe(import_effect2.Match.when(Array.isArray, (array) => array), import_effect2.Match.orElse((value) => [
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* import_effect2.Effect.all(module2.activatesAfter?.map((event) => this._activate(event)) ?? [], {
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 import_effect2.Effect.gen(this, function* () {
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* import_effect2.Effect.all(modules.map((module2) => this._deactivateModule(module2)), {
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 import_effect2.Effect.gen(this, function* () {
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* import_effect2.Match.value(program).pipe(import_effect2.Match.when(import_effect2.Effect.isEffect, (effect2) => effect2), import_effect2.Match.when(isPromise, (promise) => import_effect2.Effect.tryPromise({
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
- })), import_effect2.Match.orElse((program2) => import_effect2.Effect.succeed(program2)));
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 import_effect2.Effect.gen(this, function* () {
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* import_effect2.Effect.all(modules.map((module2) => this._deactivateModule(module2)), {
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,11 +925,11 @@ var defaultFileTypes = {
925
925
  "md"
926
926
  ]
927
927
  };
928
- var FileInfoSchema = import_schema3.Schema.Struct({
929
- name: import_schema3.Schema.String,
930
- type: import_schema3.Schema.String,
931
- url: import_schema3.Schema.optional(import_schema3.Schema.String),
932
- cid: import_schema3.Schema.optional(import_schema3.Schema.String)
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
935
  id: INTENT_PLUGIN
@@ -943,7 +943,7 @@ var IntentPlugin = () => definePlugin({
943
943
  activatesAfter: [
944
944
  Events.DispatcherReady
945
945
  ],
946
- activate: lazy(() => import("./intent-dispatcher-PRCC4KZT.cjs"))
946
+ activate: lazy(() => import("./intent-dispatcher-EDW7NFJ4.cjs"))
947
947
  })
948
948
  ]);
949
949
  var LAYOUT_PLUGIN = "dxos.org/plugin/layout";
@@ -951,325 +951,325 @@ var LAYOUT_ACTION = `${LAYOUT_PLUGIN}/action`;
951
951
  var LayoutAction;
952
952
  (function(LayoutAction2) {
953
953
  LayoutAction2.UPDATE_LAYOUT = `${LAYOUT_ACTION}/update-layout`;
954
- class UpdateLayout extends import_schema4.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
955
- input: import_schema4.Schema.Struct({
956
- part: import_schema4.Schema.String.annotations({
954
+ class UpdateLayout extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
955
+ input: import_effect6.Schema.Struct({
956
+ part: import_effect6.Schema.String.annotations({
957
957
  description: "The part of the layout to mutate."
958
958
  }),
959
- subject: import_schema4.Schema.optional(import_schema4.Schema.Any.annotations({
959
+ subject: import_effect6.Schema.optional(import_effect6.Schema.Any.annotations({
960
960
  description: "The subject of the layout update."
961
961
  })),
962
- options: import_schema4.Schema.optional(import_schema4.Schema.Record({
963
- key: import_schema4.Schema.String,
964
- value: import_schema4.Schema.Any
962
+ options: import_effect6.Schema.optional(import_effect6.Schema.Record({
963
+ key: import_effect6.Schema.String,
964
+ value: import_effect6.Schema.Any
965
965
  }).annotations({
966
966
  description: "Additional options for the layout action."
967
967
  }))
968
968
  }),
969
- output: import_schema4.Schema.Void
969
+ output: import_effect6.Schema.Void
970
970
  }) {
971
971
  }
972
972
  LayoutAction2.UpdateLayout = UpdateLayout;
973
- class SetLayoutMode extends import_schema4.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
974
- input: import_schema4.Schema.Struct({
975
- part: import_schema4.Schema.Literal("mode").annotations({
973
+ class SetLayoutMode extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
974
+ input: import_effect6.Schema.Struct({
975
+ part: import_effect6.Schema.Literal("mode").annotations({
976
976
  description: "Setting the layout mode."
977
977
  }),
978
- subject: import_schema4.Schema.optional(import_schema4.Schema.String.annotations({
978
+ subject: import_effect6.Schema.optional(import_effect6.Schema.String.annotations({
979
979
  description: "Item which is the subject of the new layout mode."
980
980
  })),
981
- options: import_schema4.Schema.Union(import_schema4.Schema.Struct({
982
- mode: import_schema4.Schema.String.annotations({
981
+ options: import_effect6.Schema.Union(import_effect6.Schema.Struct({
982
+ mode: import_effect6.Schema.String.annotations({
983
983
  description: "The new layout mode."
984
984
  })
985
- }), import_schema4.Schema.Struct({
986
- revert: import_schema4.Schema.Boolean.annotations({
985
+ }), import_effect6.Schema.Struct({
986
+ revert: import_effect6.Schema.Boolean.annotations({
987
987
  description: "Revert to the previous layout mode."
988
988
  })
989
989
  }))
990
990
  }),
991
- output: import_schema4.Schema.Void
991
+ output: import_effect6.Schema.Void
992
992
  }) {
993
993
  }
994
994
  LayoutAction2.SetLayoutMode = SetLayoutMode;
995
- class UpdateSidebar extends import_schema4.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
996
- input: import_schema4.Schema.Struct({
997
- part: import_schema4.Schema.Literal("sidebar").annotations({
995
+ class UpdateSidebar extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
996
+ input: import_effect6.Schema.Struct({
997
+ part: import_effect6.Schema.Literal("sidebar").annotations({
998
998
  description: "Updating the sidebar."
999
999
  }),
1000
- subject: import_schema4.Schema.optional(import_schema4.Schema.String.annotations({
1000
+ subject: import_effect6.Schema.optional(import_effect6.Schema.String.annotations({
1001
1001
  description: "URI of the component to display in the sidebar."
1002
1002
  })),
1003
- options: import_schema4.Schema.optional(import_schema4.Schema.Struct({
1004
- state: import_schema4.Schema.Literal("closed", "collapsed", "expanded").annotations({
1003
+ options: import_effect6.Schema.optional(import_effect6.Schema.Struct({
1004
+ state: import_effect6.Schema.Literal("closed", "collapsed", "expanded").annotations({
1005
1005
  description: "Whether the sidebar is closed, collapsed, or expanded."
1006
1006
  })
1007
1007
  }))
1008
1008
  }),
1009
- output: import_schema4.Schema.Void
1009
+ output: import_effect6.Schema.Void
1010
1010
  }) {
1011
1011
  }
1012
1012
  LayoutAction2.UpdateSidebar = UpdateSidebar;
1013
- class UpdateComplementary extends import_schema4.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1014
- input: import_schema4.Schema.Struct({
1015
- part: import_schema4.Schema.Literal("complementary").annotations({
1013
+ class UpdateComplementary extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1014
+ input: import_effect6.Schema.Struct({
1015
+ part: import_effect6.Schema.Literal("complementary").annotations({
1016
1016
  description: "Updating the complementary sidebar."
1017
1017
  }),
1018
- subject: import_schema4.Schema.optional(import_schema4.Schema.String.annotations({
1018
+ subject: import_effect6.Schema.optional(import_effect6.Schema.String.annotations({
1019
1019
  description: "URI of the component to display in the complementary area."
1020
1020
  })),
1021
- options: import_schema4.Schema.optional(import_schema4.Schema.Struct({
1022
- state: import_schema4.Schema.Literal("closed", "collapsed", "expanded").annotations({
1021
+ options: import_effect6.Schema.optional(import_effect6.Schema.Struct({
1022
+ state: import_effect6.Schema.Literal("closed", "collapsed", "expanded").annotations({
1023
1023
  description: "Whether the complementary sidebar is closed, collapsed, or expanded."
1024
1024
  })
1025
1025
  }))
1026
1026
  }),
1027
- output: import_schema4.Schema.Void
1027
+ output: import_effect6.Schema.Void
1028
1028
  }) {
1029
1029
  }
1030
1030
  LayoutAction2.UpdateComplementary = UpdateComplementary;
1031
- class UpdateDialog extends import_schema4.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1032
- input: import_schema4.Schema.Struct({
1033
- part: import_schema4.Schema.Literal("dialog").annotations({
1031
+ class UpdateDialog extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1032
+ input: import_effect6.Schema.Struct({
1033
+ part: import_effect6.Schema.Literal("dialog").annotations({
1034
1034
  description: "Updating the dialog."
1035
1035
  }),
1036
- subject: import_schema4.Schema.optional(import_schema4.Schema.String.annotations({
1036
+ subject: import_effect6.Schema.optional(import_effect6.Schema.String.annotations({
1037
1037
  description: "URI of the component to display in the dialog."
1038
1038
  })),
1039
- options: import_schema4.Schema.Struct({
1040
- state: import_schema4.Schema.optional(import_schema4.Schema.Boolean.annotations({
1039
+ options: import_effect6.Schema.Struct({
1040
+ state: import_effect6.Schema.optional(import_effect6.Schema.Boolean.annotations({
1041
1041
  description: "Whether the dialog is open or closed."
1042
1042
  })),
1043
- blockAlign: import_schema4.Schema.optional(import_schema4.Schema.Literal("start", "center", "end").annotations({
1043
+ blockAlign: import_effect6.Schema.optional(import_effect6.Schema.Literal("start", "center", "end").annotations({
1044
1044
  description: "The alignment of the dialog."
1045
1045
  })),
1046
- type: import_schema4.Schema.optional(import_schema4.Schema.Literal("default", "alert").annotations({
1046
+ type: import_effect6.Schema.optional(import_effect6.Schema.Literal("default", "alert").annotations({
1047
1047
  description: "The type of dialog."
1048
1048
  })),
1049
- props: import_schema4.Schema.optional(import_schema4.Schema.Record({
1050
- key: import_schema4.Schema.String,
1051
- value: import_schema4.Schema.Any
1049
+ props: import_effect6.Schema.optional(import_effect6.Schema.Record({
1050
+ key: import_effect6.Schema.String,
1051
+ value: import_effect6.Schema.Any
1052
1052
  }).annotations({
1053
1053
  description: "Additional props for the dialog."
1054
1054
  }))
1055
1055
  })
1056
1056
  }),
1057
- output: import_schema4.Schema.Void
1057
+ output: import_effect6.Schema.Void
1058
1058
  }) {
1059
1059
  }
1060
1060
  LayoutAction2.UpdateDialog = UpdateDialog;
1061
- class UpdatePopover extends import_schema4.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1062
- input: import_schema4.Schema.Struct({
1063
- part: import_schema4.Schema.Literal("popover").annotations({
1061
+ class UpdatePopover extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1062
+ input: import_effect6.Schema.Struct({
1063
+ part: import_effect6.Schema.Literal("popover").annotations({
1064
1064
  description: "Updating the popover."
1065
1065
  }),
1066
- subject: import_schema4.Schema.optional(import_schema4.Schema.String.annotations({
1066
+ subject: import_effect6.Schema.optional(import_effect6.Schema.String.annotations({
1067
1067
  description: "URI of the component to display in the popover."
1068
1068
  })),
1069
- options: import_schema4.Schema.Struct({
1070
- anchorId: import_schema4.Schema.String.annotations({
1069
+ options: import_effect6.Schema.Struct({
1070
+ anchorId: import_effect6.Schema.String.annotations({
1071
1071
  description: "The id of the element to anchor the popover to."
1072
1072
  }),
1073
- side: import_schema4.Schema.optional(import_schema4.Schema.Literal("top", "right", "bottom", "left").annotations({
1073
+ side: import_effect6.Schema.optional(import_effect6.Schema.Literal("top", "right", "bottom", "left").annotations({
1074
1074
  description: "The side of the anchor."
1075
1075
  })),
1076
- state: import_schema4.Schema.optional(import_schema4.Schema.Boolean.annotations({
1076
+ state: import_effect6.Schema.optional(import_effect6.Schema.Boolean.annotations({
1077
1077
  description: "Whether the popover is open or closed."
1078
1078
  })),
1079
- props: import_schema4.Schema.optional(import_schema4.Schema.Record({
1080
- key: import_schema4.Schema.String,
1081
- value: import_schema4.Schema.Any
1079
+ props: import_effect6.Schema.optional(import_effect6.Schema.Record({
1080
+ key: import_effect6.Schema.String,
1081
+ value: import_effect6.Schema.Any
1082
1082
  }).annotations({
1083
1083
  description: "Additional props for the popover."
1084
1084
  }))
1085
1085
  })
1086
1086
  }),
1087
- output: import_schema4.Schema.Void
1087
+ output: import_effect6.Schema.Void
1088
1088
  }) {
1089
1089
  }
1090
1090
  LayoutAction2.UpdatePopover = UpdatePopover;
1091
- LayoutAction2.Toast = import_schema4.Schema.Struct({
1092
- id: import_schema4.Schema.String.annotations({
1091
+ LayoutAction2.Toast = import_effect6.Schema.Struct({
1092
+ id: import_effect6.Schema.String.annotations({
1093
1093
  description: "The id of the toast."
1094
1094
  }),
1095
- title: import_schema4.Schema.optional(Label.annotations({
1095
+ title: import_effect6.Schema.optional(Label.annotations({
1096
1096
  description: "The title of the toast."
1097
1097
  })),
1098
- description: import_schema4.Schema.optional(Label.annotations({
1098
+ description: import_effect6.Schema.optional(Label.annotations({
1099
1099
  description: "The description of the toast."
1100
1100
  })),
1101
- icon: import_schema4.Schema.optional(import_schema4.Schema.String.annotations({
1101
+ icon: import_effect6.Schema.optional(import_effect6.Schema.String.annotations({
1102
1102
  description: "The icon of the toast."
1103
1103
  })),
1104
- duration: import_schema4.Schema.optional(import_schema4.Schema.Number.annotations({
1104
+ duration: import_effect6.Schema.optional(import_effect6.Schema.Number.annotations({
1105
1105
  description: "The duration of the toast."
1106
1106
  })),
1107
- closeLabel: import_schema4.Schema.optional(Label.annotations({
1107
+ closeLabel: import_effect6.Schema.optional(Label.annotations({
1108
1108
  description: "The label of the close button."
1109
1109
  })),
1110
- actionLabel: import_schema4.Schema.optional(Label.annotations({
1110
+ actionLabel: import_effect6.Schema.optional(Label.annotations({
1111
1111
  description: "The label of the action button."
1112
1112
  })),
1113
- actionAlt: import_schema4.Schema.optional(Label.annotations({
1113
+ actionAlt: import_effect6.Schema.optional(Label.annotations({
1114
1114
  description: "The alt text of the action button."
1115
1115
  })),
1116
- onAction: import_schema4.Schema.optional(import_schema4.Schema.Any.annotations({
1116
+ onAction: import_effect6.Schema.optional(import_effect6.Schema.Any.annotations({
1117
1117
  description: "The action to perform when the action button is clicked."
1118
1118
  }))
1119
1119
  });
1120
- class AddToast extends import_schema4.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1121
- input: import_schema4.Schema.Struct({
1122
- part: import_schema4.Schema.Literal("toast").annotations({
1120
+ class AddToast extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1121
+ input: import_effect6.Schema.Struct({
1122
+ part: import_effect6.Schema.Literal("toast").annotations({
1123
1123
  description: "Adding a toast."
1124
1124
  }),
1125
1125
  subject: LayoutAction2.Toast.annotations({
1126
1126
  description: "The toast to add."
1127
1127
  })
1128
1128
  }),
1129
- output: import_schema4.Schema.Void
1129
+ output: import_effect6.Schema.Void
1130
1130
  }) {
1131
1131
  }
1132
1132
  LayoutAction2.AddToast = AddToast;
1133
- class SwitchWorkspace extends import_schema4.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1134
- input: import_schema4.Schema.Struct({
1135
- part: import_schema4.Schema.Literal("workspace").annotations({
1133
+ class SwitchWorkspace extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1134
+ input: import_effect6.Schema.Struct({
1135
+ part: import_effect6.Schema.Literal("workspace").annotations({
1136
1136
  description: "Switching the workspace."
1137
1137
  }),
1138
- subject: import_schema4.Schema.String.annotations({
1138
+ subject: import_effect6.Schema.String.annotations({
1139
1139
  description: "The id of the workspace to switch to."
1140
1140
  })
1141
1141
  }),
1142
- output: import_schema4.Schema.Void
1142
+ output: import_effect6.Schema.Void
1143
1143
  }) {
1144
1144
  }
1145
1145
  LayoutAction2.SwitchWorkspace = SwitchWorkspace;
1146
- class RevertWorkspace extends import_schema4.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1147
- input: import_schema4.Schema.Struct({
1148
- part: import_schema4.Schema.Literal("workspace").annotations({
1146
+ class RevertWorkspace extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1147
+ input: import_effect6.Schema.Struct({
1148
+ part: import_effect6.Schema.Literal("workspace").annotations({
1149
1149
  description: "Switching the workspace."
1150
1150
  }),
1151
- options: import_schema4.Schema.Struct({
1152
- revert: import_schema4.Schema.Literal(true).annotations({
1151
+ options: import_effect6.Schema.Struct({
1152
+ revert: import_effect6.Schema.Literal(true).annotations({
1153
1153
  description: "Revert to the previous workspace."
1154
1154
  })
1155
1155
  })
1156
1156
  }),
1157
- output: import_schema4.Schema.Void
1157
+ output: import_effect6.Schema.Void
1158
1158
  }) {
1159
1159
  }
1160
1160
  LayoutAction2.RevertWorkspace = RevertWorkspace;
1161
- class Open extends import_schema4.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1162
- input: import_schema4.Schema.Struct({
1163
- part: import_schema4.Schema.Literal("main").annotations({
1161
+ class Open extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1162
+ input: import_effect6.Schema.Struct({
1163
+ part: import_effect6.Schema.Literal("main").annotations({
1164
1164
  description: "Opening an item in the main content area."
1165
1165
  }),
1166
- subject: import_schema4.Schema.Array(import_schema4.Schema.String.annotations({
1166
+ subject: import_effect6.Schema.Array(import_effect6.Schema.String.annotations({
1167
1167
  description: "Ids of the items to open."
1168
1168
  })),
1169
- options: import_schema4.Schema.optional(import_schema4.Schema.Struct({
1170
- state: import_schema4.Schema.optional(import_schema4.Schema.Literal(true).annotations({
1169
+ options: import_effect6.Schema.optional(import_effect6.Schema.Struct({
1170
+ state: import_effect6.Schema.optional(import_effect6.Schema.Literal(true).annotations({
1171
1171
  description: "The items are being added."
1172
1172
  })),
1173
- key: import_schema4.Schema.optional(import_schema4.Schema.String.annotations({
1173
+ key: import_effect6.Schema.optional(import_effect6.Schema.String.annotations({
1174
1174
  description: "If provided, will replace item with a matching key (id prefix)."
1175
1175
  })),
1176
- scrollIntoView: import_schema4.Schema.optional(import_schema4.Schema.Boolean.annotations({
1176
+ scrollIntoView: import_effect6.Schema.optional(import_effect6.Schema.Boolean.annotations({
1177
1177
  description: "Scroll the items into view."
1178
1178
  })),
1179
- pivotId: import_schema4.Schema.optional(import_schema4.Schema.String.annotations({
1179
+ pivotId: import_effect6.Schema.optional(import_effect6.Schema.String.annotations({
1180
1180
  description: "The id of the item to place new items next to."
1181
1181
  })),
1182
- positioning: import_schema4.Schema.optional(import_schema4.Schema.Union(import_schema4.Schema.Literal("start").annotations({
1182
+ positioning: import_effect6.Schema.optional(import_effect6.Schema.Union(import_effect6.Schema.Literal("start").annotations({
1183
1183
  description: "The items are being added before the pivot item."
1184
- }), import_schema4.Schema.Literal("end").annotations({
1184
+ }), import_effect6.Schema.Literal("end").annotations({
1185
1185
  description: "The items are being added after the pivot item."
1186
1186
  })))
1187
1187
  }))
1188
1188
  }),
1189
- output: import_schema4.Schema.Void
1189
+ output: import_effect6.Schema.Void
1190
1190
  }) {
1191
1191
  }
1192
1192
  LayoutAction2.Open = Open;
1193
- class Set2 extends import_schema4.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1194
- input: import_schema4.Schema.Struct({
1195
- part: import_schema4.Schema.Literal("main").annotations({
1193
+ class Set2 extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1194
+ input: import_effect6.Schema.Struct({
1195
+ part: import_effect6.Schema.Literal("main").annotations({
1196
1196
  description: "Setting items in the main content area."
1197
1197
  }),
1198
- subject: import_schema4.Schema.Array(import_schema4.Schema.String.annotations({
1198
+ subject: import_effect6.Schema.Array(import_effect6.Schema.String.annotations({
1199
1199
  description: "Ids of the items to set."
1200
1200
  })),
1201
- options: import_schema4.Schema.Struct({
1202
- override: import_schema4.Schema.Literal(true).annotations({
1201
+ options: import_effect6.Schema.Struct({
1202
+ override: import_effect6.Schema.Literal(true).annotations({
1203
1203
  description: "Override the current items in the main content area."
1204
1204
  })
1205
1205
  })
1206
1206
  }),
1207
- output: import_schema4.Schema.Void
1207
+ output: import_effect6.Schema.Void
1208
1208
  }) {
1209
1209
  }
1210
1210
  LayoutAction2.Set = Set2;
1211
- class Close extends import_schema4.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1212
- input: import_schema4.Schema.Struct({
1213
- part: import_schema4.Schema.Literal("main").annotations({
1211
+ class Close extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1212
+ input: import_effect6.Schema.Struct({
1213
+ part: import_effect6.Schema.Literal("main").annotations({
1214
1214
  description: "Closing items in the main content area."
1215
1215
  }),
1216
- subject: import_schema4.Schema.Array(import_schema4.Schema.String.annotations({
1216
+ subject: import_effect6.Schema.Array(import_effect6.Schema.String.annotations({
1217
1217
  description: "Ids of the items to close."
1218
1218
  })),
1219
- options: import_schema4.Schema.Struct({
1220
- state: import_schema4.Schema.Literal(false).annotations({
1219
+ options: import_effect6.Schema.Struct({
1220
+ state: import_effect6.Schema.Literal(false).annotations({
1221
1221
  description: "The items are being removed."
1222
1222
  })
1223
1223
  })
1224
1224
  }),
1225
- output: import_schema4.Schema.Void
1225
+ output: import_effect6.Schema.Void
1226
1226
  }) {
1227
1227
  }
1228
1228
  LayoutAction2.Close = Close;
1229
- class ScrollIntoView extends import_schema4.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1230
- input: import_schema4.Schema.Struct({
1231
- part: import_schema4.Schema.Literal("current").annotations({
1229
+ class ScrollIntoView extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1230
+ input: import_effect6.Schema.Struct({
1231
+ part: import_effect6.Schema.Literal("current").annotations({
1232
1232
  description: "Setting the current item"
1233
1233
  }),
1234
- subject: import_schema4.Schema.optional(import_schema4.Schema.String.annotations({
1234
+ subject: import_effect6.Schema.optional(import_effect6.Schema.String.annotations({
1235
1235
  description: "The id of the item to set as current."
1236
1236
  })),
1237
- options: import_schema4.Schema.optional(import_schema4.Schema.Record({
1238
- key: import_schema4.Schema.String,
1239
- value: import_schema4.Schema.Any
1237
+ options: import_effect6.Schema.optional(import_effect6.Schema.Record({
1238
+ key: import_effect6.Schema.String,
1239
+ value: import_effect6.Schema.Any
1240
1240
  }).annotations({
1241
1241
  description: "Additional options for the scroll into view."
1242
1242
  }))
1243
1243
  }),
1244
- output: import_schema4.Schema.Void
1244
+ output: import_effect6.Schema.Void
1245
1245
  }) {
1246
1246
  }
1247
1247
  LayoutAction2.ScrollIntoView = ScrollIntoView;
1248
- class Expose extends import_schema4.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1249
- input: import_schema4.Schema.Struct({
1250
- part: import_schema4.Schema.Literal("navigation").annotations({
1248
+ class Expose extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1249
+ input: import_effect6.Schema.Struct({
1250
+ part: import_effect6.Schema.Literal("navigation").annotations({
1251
1251
  description: "Exposing an item in the navigation area."
1252
1252
  }),
1253
- subject: import_schema4.Schema.String.annotations({
1253
+ subject: import_effect6.Schema.String.annotations({
1254
1254
  description: "The id of the item to expose."
1255
1255
  })
1256
1256
  }),
1257
- output: import_schema4.Schema.Void
1257
+ output: import_effect6.Schema.Void
1258
1258
  }) {
1259
1259
  }
1260
1260
  LayoutAction2.Expose = Expose;
1261
1261
  })(LayoutAction || (LayoutAction = {}));
1262
1262
  var createSurface = (definition) => definition;
1263
- var ResourceKey = import_schema5.Schema.Union(import_schema5.Schema.String, import_schema5.Schema.Record({
1264
- key: import_schema5.Schema.String,
1265
- value: import_schema5.Schema.Any
1263
+ var ResourceKey = import_effect7.Schema.Union(import_effect7.Schema.String, import_effect7.Schema.Record({
1264
+ key: import_effect7.Schema.String,
1265
+ value: import_effect7.Schema.Any
1266
1266
  }));
1267
- var ResourceLanguage = import_schema5.Schema.Record({
1268
- key: import_schema5.Schema.String,
1267
+ var ResourceLanguage = import_effect7.Schema.Record({
1268
+ key: import_effect7.Schema.String,
1269
1269
  value: ResourceKey
1270
1270
  });
1271
- var Resource = import_schema5.Schema.Record({
1272
- key: import_schema5.Schema.String,
1271
+ var Resource = import_effect7.Schema.Record({
1272
+ key: import_effect7.Schema.String,
1273
1273
  value: ResourceLanguage
1274
1274
  });
1275
1275
  var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/sdk/app-framework/src/plugin-intent/intent-dispatcher.ts";
@@ -1463,4 +1463,4 @@ var intent_dispatcher_default = (context) => {
1463
1463
  lazy,
1464
1464
  oneOf
1465
1465
  });
1466
- //# sourceMappingURL=chunk-7Y6KJ3OK.cjs.map
1466
+ //# sourceMappingURL=chunk-XP4TI5DS.cjs.map