@dxos/app-framework 0.8.1-staging.5be625a → 0.8.1-staging.97aedb1

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 (83) hide show
  1. package/dist/lib/browser/{app-graph-builder-OD3G2J2U.mjs → app-graph-builder-576BHZC7.mjs} +3 -3
  2. package/dist/lib/browser/{chunk-CESGLKOM.mjs → chunk-6AVTZPMT.mjs} +63 -44
  3. package/dist/lib/browser/chunk-6AVTZPMT.mjs.map +7 -0
  4. package/dist/lib/browser/{chunk-KP6FVIAA.mjs → chunk-PPIBZ5N4.mjs} +50 -7
  5. package/dist/lib/browser/chunk-PPIBZ5N4.mjs.map +7 -0
  6. package/dist/lib/browser/{chunk-CB3W6T5E.mjs → chunk-SFPT4Z2C.mjs} +1 -1
  7. package/dist/lib/browser/{chunk-CB3W6T5E.mjs.map → chunk-SFPT4Z2C.mjs.map} +2 -2
  8. package/dist/lib/browser/index.mjs +6 -6
  9. package/dist/lib/browser/{intent-dispatcher-RTXTATZJ.mjs → intent-dispatcher-3Q67MHZZ.mjs} +2 -2
  10. package/dist/lib/browser/{intent-resolver-ZL6WBF2L.mjs → intent-resolver-O763LCLG.mjs} +3 -3
  11. package/dist/lib/browser/meta.json +1 -1
  12. package/dist/lib/browser/{store-JIKLP4JL.mjs → store-URSN7DZI.mjs} +2 -2
  13. package/dist/lib/browser/testing/index.mjs +2 -2
  14. package/dist/lib/browser/worker.mjs +1 -1
  15. package/dist/lib/node/{app-graph-builder-S3ER53EH.cjs → app-graph-builder-JZCSKYPY.cjs} +28 -28
  16. package/dist/lib/node/{chunk-SCHC4AZQ.cjs → chunk-JUSEAFDU.cjs} +4 -4
  17. package/dist/lib/node/{chunk-SCHC4AZQ.cjs.map → chunk-JUSEAFDU.cjs.map} +2 -2
  18. package/dist/lib/node/{chunk-KRK7EH6Z.cjs → chunk-YIFTVCOR.cjs} +189 -170
  19. package/dist/lib/node/chunk-YIFTVCOR.cjs.map +7 -0
  20. package/dist/lib/node/{chunk-4YBMWZR3.cjs → chunk-YNTKVTVX.cjs} +66 -23
  21. package/dist/lib/node/{chunk-4YBMWZR3.cjs.map → chunk-YNTKVTVX.cjs.map} +3 -3
  22. package/dist/lib/node/index.cjs +78 -78
  23. package/dist/lib/node/{intent-dispatcher-TBTSYYGJ.cjs → intent-dispatcher-H334XLFD.cjs} +8 -8
  24. package/dist/lib/node/{intent-dispatcher-TBTSYYGJ.cjs.map → intent-dispatcher-H334XLFD.cjs.map} +2 -2
  25. package/dist/lib/node/{intent-resolver-IYW254AY.cjs → intent-resolver-3F4POWAM.cjs} +12 -12
  26. package/dist/lib/node/meta.json +1 -1
  27. package/dist/lib/node/{store-KGQB37IW.cjs → store-OFDHTDCB.cjs} +7 -7
  28. package/dist/lib/node/testing/index.cjs +8 -8
  29. package/dist/lib/node/worker.cjs +37 -37
  30. package/dist/lib/node/worker.cjs.map +1 -1
  31. package/dist/lib/node-esm/{app-graph-builder-UP3LWWYO.mjs → app-graph-builder-VYKLSMSZ.mjs} +3 -3
  32. package/dist/lib/node-esm/{chunk-RQWO2T4E.mjs → chunk-AHKIPS2L.mjs} +63 -44
  33. package/dist/lib/node-esm/chunk-AHKIPS2L.mjs.map +7 -0
  34. package/dist/lib/node-esm/{chunk-BSYAFUZ7.mjs → chunk-PHOUQACM.mjs} +1 -1
  35. package/dist/lib/node-esm/{chunk-BSYAFUZ7.mjs.map → chunk-PHOUQACM.mjs.map} +2 -2
  36. package/dist/lib/node-esm/{chunk-MZCAK52M.mjs → chunk-R6A7Z4LU.mjs} +50 -7
  37. package/dist/lib/node-esm/chunk-R6A7Z4LU.mjs.map +7 -0
  38. package/dist/lib/node-esm/index.mjs +6 -6
  39. package/dist/lib/node-esm/{intent-dispatcher-7UNJKY3C.mjs → intent-dispatcher-YDE2ONZA.mjs} +2 -2
  40. package/dist/lib/node-esm/{intent-resolver-6MHZSVCT.mjs → intent-resolver-LAGJ7LXM.mjs} +3 -3
  41. package/dist/lib/node-esm/meta.json +1 -1
  42. package/dist/lib/node-esm/{store-YSFTF2GM.mjs → store-EYSUVNCS.mjs} +2 -2
  43. package/dist/lib/node-esm/testing/index.mjs +2 -2
  44. package/dist/lib/node-esm/worker.mjs +1 -1
  45. package/dist/types/src/App.d.ts +4 -2
  46. package/dist/types/src/App.d.ts.map +1 -1
  47. package/dist/types/src/common/layout.d.ts +1 -0
  48. package/dist/types/src/common/layout.d.ts.map +1 -1
  49. package/dist/types/src/core/capabilities.d.ts +5 -3
  50. package/dist/types/src/core/capabilities.d.ts.map +1 -1
  51. package/dist/types/src/playground/playground.stories.d.ts.map +1 -1
  52. package/dist/types/src/plugin-intent/actions.d.ts +14 -0
  53. package/dist/types/src/plugin-intent/actions.d.ts.map +1 -1
  54. package/dist/types/src/plugin-intent/intent-dispatcher.d.ts +1 -1
  55. package/dist/types/src/plugin-intent/intent-dispatcher.d.ts.map +1 -1
  56. package/dist/types/src/plugin-settings/actions.d.ts.map +1 -1
  57. package/package.json +20 -19
  58. package/src/App.tsx +65 -8
  59. package/src/common/layout.ts +1 -0
  60. package/src/core/capabilities.test.ts +3 -2
  61. package/src/core/capabilities.ts +11 -3
  62. package/src/core/manager.ts +2 -2
  63. package/src/playground/playground.stories.tsx +5 -1
  64. package/src/plugin-intent/actions.ts +11 -0
  65. package/src/plugin-intent/intent-dispatcher.ts +18 -5
  66. package/src/plugin-settings/actions.ts +2 -0
  67. package/src/testing/withPluginManager.stories.tsx +2 -2
  68. package/dist/lib/browser/chunk-CESGLKOM.mjs.map +0 -7
  69. package/dist/lib/browser/chunk-KP6FVIAA.mjs.map +0 -7
  70. package/dist/lib/node/chunk-KRK7EH6Z.cjs.map +0 -7
  71. package/dist/lib/node-esm/chunk-MZCAK52M.mjs.map +0 -7
  72. package/dist/lib/node-esm/chunk-RQWO2T4E.mjs.map +0 -7
  73. /package/dist/lib/browser/{app-graph-builder-OD3G2J2U.mjs.map → app-graph-builder-576BHZC7.mjs.map} +0 -0
  74. /package/dist/lib/browser/{intent-dispatcher-RTXTATZJ.mjs.map → intent-dispatcher-3Q67MHZZ.mjs.map} +0 -0
  75. /package/dist/lib/browser/{intent-resolver-ZL6WBF2L.mjs.map → intent-resolver-O763LCLG.mjs.map} +0 -0
  76. /package/dist/lib/browser/{store-JIKLP4JL.mjs.map → store-URSN7DZI.mjs.map} +0 -0
  77. /package/dist/lib/node/{app-graph-builder-S3ER53EH.cjs.map → app-graph-builder-JZCSKYPY.cjs.map} +0 -0
  78. /package/dist/lib/node/{intent-resolver-IYW254AY.cjs.map → intent-resolver-3F4POWAM.cjs.map} +0 -0
  79. /package/dist/lib/node/{store-KGQB37IW.cjs.map → store-OFDHTDCB.cjs.map} +0 -0
  80. /package/dist/lib/node-esm/{app-graph-builder-UP3LWWYO.mjs.map → app-graph-builder-VYKLSMSZ.mjs.map} +0 -0
  81. /package/dist/lib/node-esm/{intent-dispatcher-7UNJKY3C.mjs.map → intent-dispatcher-YDE2ONZA.mjs.map} +0 -0
  82. /package/dist/lib/node-esm/{intent-resolver-6MHZSVCT.mjs.map → intent-resolver-LAGJ7LXM.mjs.map} +0 -0
  83. /package/dist/lib/node-esm/{store-YSFTF2GM.mjs.map → store-EYSUVNCS.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_KRK7EH6Z_exports = {};
30
- __export(chunk_KRK7EH6Z_exports, {
29
+ var chunk_YIFTVCOR_exports = {};
30
+ __export(chunk_YIFTVCOR_exports, {
31
31
  Capabilities: () => Capabilities,
32
32
  Events: () => Events,
33
33
  FileInfoSchema: () => FileInfoSchema,
@@ -66,7 +66,7 @@ __export(chunk_KRK7EH6Z_exports, {
66
66
  lazy: () => lazy,
67
67
  oneOf: () => oneOf
68
68
  });
69
- module.exports = __toCommonJS(chunk_KRK7EH6Z_exports);
69
+ module.exports = __toCommonJS(chunk_YIFTVCOR_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");
@@ -74,18 +74,19 @@ var import_util = require("@dxos/util");
74
74
  var import_effect2 = require("effect");
75
75
  var import_effect3 = require("effect");
76
76
  var import_signals_core = require("@preact/signals-core");
77
+ var import_effect4 = require("effect");
77
78
  var import_async = require("@dxos/async");
78
79
  var import_invariant = require("@dxos/invariant");
79
80
  var import_live_object2 = require("@dxos/live-object");
80
81
  var import_log2 = require("@dxos/log");
81
82
  var import_signals_core2 = require("@preact/signals-core");
82
- var import_effect4 = require("effect");
83
+ var import_effect5 = require("effect");
83
84
  var import_async2 = require("@dxos/async");
84
85
  var import_live_object3 = require("@dxos/live-object");
85
86
  var import_log3 = require("@dxos/log");
86
- var import_effect5 = require("effect");
87
87
  var import_effect6 = require("effect");
88
88
  var import_effect7 = require("effect");
89
+ var import_effect8 = require("effect");
89
90
  var createIntent = (schema, data = {}, params = {}) => {
90
91
  const _ = import_effect3.Schema.validateSync(schema.fields.input)(data);
91
92
  const intent = {
@@ -130,6 +131,15 @@ var INTENT_PLUGIN = "dxos.org/plugin/intent";
130
131
  var INTENT_ACTION = `${INTENT_PLUGIN}/action`;
131
132
  var IntentAction;
132
133
  (function(IntentAction2) {
134
+ class Track extends import_effect2.Schema.TaggedClass()(`${INTENT_ACTION}/track`, {
135
+ input: import_effect2.Schema.Struct({
136
+ intents: import_effect2.Schema.Array(import_effect2.Schema.String),
137
+ error: import_effect2.Schema.optional(import_effect2.Schema.String)
138
+ }),
139
+ output: import_effect2.Schema.Void
140
+ }) {
141
+ }
142
+ IntentAction2.Track = Track;
133
143
  class ShowUndo extends import_effect2.Schema.TaggedClass()(`${INTENT_ACTION}/show-undo`, {
134
144
  input: import_effect2.Schema.Struct({
135
145
  message: Label
@@ -299,6 +309,12 @@ var PluginsContext = class {
299
309
  unsubscribe();
300
310
  return capability;
301
311
  }
312
+ async activatePromise(event) {
313
+ return this.activate(event).pipe(import_effect4.Effect.runPromise);
314
+ }
315
+ async resetPromise(event) {
316
+ return this.reset(event).pipe(import_effect4.Effect.runPromise);
317
+ }
302
318
  };
303
319
  var defineEvent = (id, specifier) => {
304
320
  return {
@@ -328,8 +344,8 @@ var PluginManager = class {
328
344
  constructor({ pluginLoader, plugins = [], core = plugins.map(({ meta }) => meta.id), enabled = [] }) {
329
345
  this.activation = new import_async2.Event();
330
346
  this.context = new PluginsContext({
331
- activate: (event) => this.activate(event),
332
- reset: (id) => this.reset(id)
347
+ activate: (event) => this._activate(event),
348
+ reset: (id) => this._reset(id)
333
349
  });
334
350
  this._capabilities = /* @__PURE__ */ new Map();
335
351
  this._pluginLoader = pluginLoader;
@@ -456,7 +472,7 @@ var PluginManager = class {
456
472
  S: this,
457
473
  C: (f, a) => f(...a)
458
474
  });
459
- await import_effect4.Effect.runPromise(import_effect4.Effect.all(this.pendingReset.map((event) => this._activate(event)), {
475
+ await import_effect5.Effect.runPromise(import_effect5.Effect.all(this.pendingReset.map((event) => this._activate(event)), {
460
476
  concurrency: "unbounded"
461
477
  }));
462
478
  return true;
@@ -508,7 +524,7 @@ var PluginManager = class {
508
524
  const enabledIndex = this._state.enabled.findIndex((enabled) => enabled === id);
509
525
  if (enabledIndex !== -1) {
510
526
  this._state.enabled.splice(enabledIndex, 1);
511
- await import_effect4.Effect.runPromise(this._deactivate(id));
527
+ await import_effect5.Effect.runPromise(this._deactivate(id));
512
528
  plugin.modules.forEach((module2) => {
513
529
  this._removeModule(module2.id);
514
530
  });
@@ -522,7 +538,7 @@ var PluginManager = class {
522
538
  * @returns Whether the activation was successful.
523
539
  */
524
540
  activate(event) {
525
- return (0, import_signals_core2.untracked)(() => import_effect4.Effect.runPromise(this._activate(event)));
541
+ return (0, import_signals_core2.untracked)(() => import_effect5.Effect.runPromise(this._activate(event)));
526
542
  }
527
543
  /**
528
544
  * Deactivates all of the modules for a plugin.
@@ -530,7 +546,7 @@ var PluginManager = class {
530
546
  * @returns Whether the deactivation was successful.
531
547
  */
532
548
  deactivate(id) {
533
- return (0, import_signals_core2.untracked)(() => import_effect4.Effect.runPromise(this._deactivate(id)));
549
+ return (0, import_signals_core2.untracked)(() => import_effect5.Effect.runPromise(this._deactivate(id)));
534
550
  }
535
551
  /**
536
552
  * Re-activates the modules that were activated by the event.
@@ -538,7 +554,7 @@ var PluginManager = class {
538
554
  * @returns Whether the reset was successful.
539
555
  */
540
556
  reset(event) {
541
- return (0, import_signals_core2.untracked)(() => import_effect4.Effect.runPromise(this._reset(event)));
557
+ return (0, import_signals_core2.untracked)(() => import_effect5.Effect.runPromise(this._reset(event)));
542
558
  }
543
559
  _addPlugin(plugin) {
544
560
  (0, import_signals_core2.untracked)(() => {
@@ -639,7 +655,7 @@ var PluginManager = class {
639
655
  */
640
656
  // TODO(wittjosiah): Improve error typing.
641
657
  _activate(event) {
642
- return import_effect4.Effect.gen(this, function* () {
658
+ return import_effect5.Effect.gen(this, function* () {
643
659
  const key = typeof event === "string" ? event : eventKey(event);
644
660
  (0, import_log3.log)("activating", {
645
661
  key
@@ -688,28 +704,28 @@ var PluginManager = class {
688
704
  event: key,
689
705
  state: "activating"
690
706
  });
691
- const getCapabilities = yield* import_effect4.Effect.all(modules.map(({ activate }) => import_effect4.Effect.tryPromise({
707
+ const getCapabilities = yield* import_effect5.Effect.all(modules.map(({ activate }) => import_effect5.Effect.tryPromise({
692
708
  try: async () => activate(this.context),
693
709
  catch: (error) => error
694
710
  })), {
695
711
  concurrency: "unbounded"
696
712
  });
697
- const result = yield* (0, import_effect4.pipe)(
713
+ const result = yield* (0, import_effect5.pipe)(
698
714
  modules,
699
- import_effect4.Array.zip(getCapabilities),
700
- import_effect4.Array.map(([module2, getCapabilities2]) => this._activateModule(module2, getCapabilities2)),
715
+ import_effect5.Array.zip(getCapabilities),
716
+ import_effect5.Array.map(([module2, getCapabilities2]) => this._activateModule(module2, getCapabilities2)),
701
717
  // TODO(wittjosiah): This currently can't be run in parallel.
702
718
  // Running this with concurrency causes races with `allOf` activation events.
703
- import_effect4.Effect.all,
704
- import_effect4.Effect.either
719
+ import_effect5.Effect.all,
720
+ import_effect5.Effect.either
705
721
  );
706
- if (import_effect4.Either.isLeft(result)) {
722
+ if (import_effect5.Either.isLeft(result)) {
707
723
  this.activation.emit({
708
724
  event: key,
709
725
  state: "error",
710
726
  error: result.left
711
727
  });
712
- yield* import_effect4.Effect.fail(result.left);
728
+ yield* import_effect5.Effect.fail(result.left);
713
729
  }
714
730
  if (!this._state.eventsFired.includes(key)) {
715
731
  this._state.eventsFired.push(key);
@@ -730,8 +746,8 @@ var PluginManager = class {
730
746
  });
731
747
  }
732
748
  _activateModule(module2, getCapabilities) {
733
- return import_effect4.Effect.gen(this, function* () {
734
- yield* import_effect4.Effect.all(module2.activatesBefore?.map((event) => this._activate(event)) ?? [], {
749
+ return import_effect5.Effect.gen(this, function* () {
750
+ yield* import_effect5.Effect.all(module2.activatesBefore?.map((event) => this._activate(event)) ?? [], {
735
751
  concurrency: "unbounded"
736
752
  });
737
753
  (0, import_log3.log)("activating module...", {
@@ -743,16 +759,16 @@ var PluginManager = class {
743
759
  C: (f, a) => f(...a)
744
760
  });
745
761
  const maybeCapabilities = typeof getCapabilities === "function" ? getCapabilities() : getCapabilities;
746
- const resolvedCapabilities = yield* import_effect4.Match.value(maybeCapabilities).pipe(
762
+ const resolvedCapabilities = yield* import_effect5.Match.value(maybeCapabilities).pipe(
747
763
  // TODO(wittjosiah): Activate with an effect?
748
764
  // Match.when(Effect.isEffect, (effect) => effect),
749
- import_effect4.Match.when(isPromise, (promise) => import_effect4.Effect.tryPromise({
765
+ import_effect5.Match.when(isPromise, (promise) => import_effect5.Effect.tryPromise({
750
766
  try: () => promise,
751
767
  catch: (error) => error
752
768
  })),
753
- import_effect4.Match.orElse((program) => import_effect4.Effect.succeed(program))
769
+ import_effect5.Match.orElse((program) => import_effect5.Effect.succeed(program))
754
770
  );
755
- const capabilities = import_effect4.Match.value(resolvedCapabilities).pipe(import_effect4.Match.when(Array.isArray, (array) => array), import_effect4.Match.orElse((value) => [
771
+ const capabilities = import_effect5.Match.value(resolvedCapabilities).pipe(import_effect5.Match.when(Array.isArray, (array) => array), import_effect5.Match.orElse((value) => [
756
772
  value
757
773
  ]));
758
774
  capabilities.forEach((capability) => {
@@ -771,26 +787,26 @@ var PluginManager = class {
771
787
  S: this,
772
788
  C: (f, a) => f(...a)
773
789
  });
774
- yield* import_effect4.Effect.all(module2.activatesAfter?.map((event) => this._activate(event)) ?? [], {
790
+ yield* import_effect5.Effect.all(module2.activatesAfter?.map((event) => this._activate(event)) ?? [], {
775
791
  concurrency: "unbounded"
776
792
  });
777
793
  });
778
794
  }
779
795
  _deactivate(id) {
780
- return import_effect4.Effect.gen(this, function* () {
796
+ return import_effect5.Effect.gen(this, function* () {
781
797
  const plugin = this._getPlugin(id);
782
798
  if (!plugin) {
783
799
  return false;
784
800
  }
785
801
  const modules = plugin.modules;
786
- const results = yield* import_effect4.Effect.all(modules.map((module2) => this._deactivateModule(module2)), {
802
+ const results = yield* import_effect5.Effect.all(modules.map((module2) => this._deactivateModule(module2)), {
787
803
  concurrency: "unbounded"
788
804
  });
789
805
  return results.every((result) => result);
790
806
  });
791
807
  }
792
808
  _deactivateModule(module2) {
793
- return import_effect4.Effect.gen(this, function* () {
809
+ return import_effect5.Effect.gen(this, function* () {
794
810
  const id = module2.id;
795
811
  (0, import_log3.log)("deactivating", {
796
812
  id
@@ -805,10 +821,10 @@ var PluginManager = class {
805
821
  for (const capability of capabilities) {
806
822
  this.context.removeCapability(capability.interface, capability.implementation);
807
823
  const program = capability.deactivate?.();
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({
824
+ yield* import_effect5.Match.value(program).pipe(import_effect5.Match.when(import_effect5.Effect.isEffect, (effect2) => effect2), import_effect5.Match.when(isPromise, (promise) => import_effect5.Effect.tryPromise({
809
825
  try: () => promise,
810
826
  catch: (error) => error
811
- })), import_effect4.Match.orElse((program2) => import_effect4.Effect.succeed(program2)));
827
+ })), import_effect5.Match.orElse((program2) => import_effect5.Effect.succeed(program2)));
812
828
  }
813
829
  this._capabilities.delete(id);
814
830
  }
@@ -828,7 +844,7 @@ var PluginManager = class {
828
844
  });
829
845
  }
830
846
  _reset(event) {
831
- return import_effect4.Effect.gen(this, function* () {
847
+ return import_effect5.Effect.gen(this, function* () {
832
848
  const key = typeof event === "string" ? event : eventKey(event);
833
849
  (0, import_log3.log)("reset", {
834
850
  key
@@ -839,7 +855,7 @@ var PluginManager = class {
839
855
  C: (f, a) => f(...a)
840
856
  });
841
857
  const modules = this._getActiveModulesByEvent(key);
842
- const results = yield* import_effect4.Effect.all(modules.map((module2) => this._deactivateModule(module2)), {
858
+ const results = yield* import_effect5.Effect.all(modules.map((module2) => this._deactivateModule(module2)), {
843
859
  concurrency: "unbounded"
844
860
  });
845
861
  if (results.every((result) => result)) {
@@ -925,11 +941,11 @@ var defaultFileTypes = {
925
941
  "md"
926
942
  ]
927
943
  };
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)
944
+ var FileInfoSchema = import_effect6.Schema.Struct({
945
+ name: import_effect6.Schema.String,
946
+ type: import_effect6.Schema.String,
947
+ url: import_effect6.Schema.optional(import_effect6.Schema.String),
948
+ cid: import_effect6.Schema.optional(import_effect6.Schema.String)
933
949
  });
934
950
  var IntentPlugin = () => definePlugin({
935
951
  id: INTENT_PLUGIN,
@@ -944,7 +960,7 @@ var IntentPlugin = () => definePlugin({
944
960
  activatesAfter: [
945
961
  Events.DispatcherReady
946
962
  ],
947
- activate: lazy(() => import("./intent-dispatcher-TBTSYYGJ.cjs"))
963
+ activate: lazy(() => import("./intent-dispatcher-H334XLFD.cjs"))
948
964
  })
949
965
  ]);
950
966
  var LAYOUT_PLUGIN = "dxos.org/plugin/layout";
@@ -952,325 +968,328 @@ var LAYOUT_ACTION = `${LAYOUT_PLUGIN}/action`;
952
968
  var LayoutAction;
953
969
  (function(LayoutAction2) {
954
970
  LayoutAction2.UPDATE_LAYOUT = `${LAYOUT_ACTION}/update-layout`;
955
- class UpdateLayout extends import_effect6.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
956
- input: import_effect6.Schema.Struct({
957
- part: import_effect6.Schema.String.annotations({
971
+ class UpdateLayout extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
972
+ input: import_effect7.Schema.Struct({
973
+ part: import_effect7.Schema.String.annotations({
958
974
  description: "The part of the layout to mutate."
959
975
  }),
960
- subject: import_effect6.Schema.optional(import_effect6.Schema.Any.annotations({
976
+ subject: import_effect7.Schema.optional(import_effect7.Schema.Any.annotations({
961
977
  description: "The subject of the layout update."
962
978
  })),
963
- options: import_effect6.Schema.optional(import_effect6.Schema.Record({
964
- key: import_effect6.Schema.String,
965
- value: import_effect6.Schema.Any
979
+ options: import_effect7.Schema.optional(import_effect7.Schema.Record({
980
+ key: import_effect7.Schema.String,
981
+ value: import_effect7.Schema.Any
966
982
  }).annotations({
967
983
  description: "Additional options for the layout action."
968
984
  }))
969
985
  }),
970
- output: import_effect6.Schema.Void
986
+ output: import_effect7.Schema.Void
971
987
  }) {
972
988
  }
973
989
  LayoutAction2.UpdateLayout = UpdateLayout;
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({
990
+ class SetLayoutMode extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
991
+ input: import_effect7.Schema.Struct({
992
+ part: import_effect7.Schema.Literal("mode").annotations({
977
993
  description: "Setting the layout mode."
978
994
  }),
979
- subject: import_effect6.Schema.optional(import_effect6.Schema.String.annotations({
995
+ subject: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
980
996
  description: "Item which is the subject of the new layout mode."
981
997
  })),
982
- options: import_effect6.Schema.Union(import_effect6.Schema.Struct({
983
- mode: import_effect6.Schema.String.annotations({
998
+ options: import_effect7.Schema.Union(import_effect7.Schema.Struct({
999
+ mode: import_effect7.Schema.String.annotations({
984
1000
  description: "The new layout mode."
985
1001
  })
986
- }), import_effect6.Schema.Struct({
987
- revert: import_effect6.Schema.Boolean.annotations({
1002
+ }), import_effect7.Schema.Struct({
1003
+ revert: import_effect7.Schema.Boolean.annotations({
988
1004
  description: "Revert to the previous layout mode."
989
1005
  })
990
1006
  }))
991
1007
  }),
992
- output: import_effect6.Schema.Void
1008
+ output: import_effect7.Schema.Void
993
1009
  }) {
994
1010
  }
995
1011
  LayoutAction2.SetLayoutMode = SetLayoutMode;
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({
1012
+ class UpdateSidebar extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1013
+ input: import_effect7.Schema.Struct({
1014
+ part: import_effect7.Schema.Literal("sidebar").annotations({
999
1015
  description: "Updating the sidebar."
1000
1016
  }),
1001
- subject: import_effect6.Schema.optional(import_effect6.Schema.String.annotations({
1017
+ subject: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1002
1018
  description: "URI of the component to display in the sidebar."
1003
1019
  })),
1004
- options: import_effect6.Schema.optional(import_effect6.Schema.Struct({
1005
- state: import_effect6.Schema.Literal("closed", "collapsed", "expanded").annotations({
1020
+ options: import_effect7.Schema.optional(import_effect7.Schema.Struct({
1021
+ state: import_effect7.Schema.Literal("closed", "collapsed", "expanded").annotations({
1006
1022
  description: "Whether the sidebar is closed, collapsed, or expanded."
1007
1023
  })
1008
1024
  }))
1009
1025
  }),
1010
- output: import_effect6.Schema.Void
1026
+ output: import_effect7.Schema.Void
1011
1027
  }) {
1012
1028
  }
1013
1029
  LayoutAction2.UpdateSidebar = UpdateSidebar;
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({
1030
+ class UpdateComplementary extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1031
+ input: import_effect7.Schema.Struct({
1032
+ part: import_effect7.Schema.Literal("complementary").annotations({
1017
1033
  description: "Updating the complementary sidebar."
1018
1034
  }),
1019
- subject: import_effect6.Schema.optional(import_effect6.Schema.String.annotations({
1035
+ subject: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1020
1036
  description: "URI of the component to display in the complementary area."
1021
1037
  })),
1022
- options: import_effect6.Schema.optional(import_effect6.Schema.Struct({
1023
- state: import_effect6.Schema.Literal("closed", "collapsed", "expanded").annotations({
1038
+ options: import_effect7.Schema.optional(import_effect7.Schema.Struct({
1039
+ state: import_effect7.Schema.Literal("closed", "collapsed", "expanded").annotations({
1024
1040
  description: "Whether the complementary sidebar is closed, collapsed, or expanded."
1025
1041
  })
1026
1042
  }))
1027
1043
  }),
1028
- output: import_effect6.Schema.Void
1044
+ output: import_effect7.Schema.Void
1029
1045
  }) {
1030
1046
  }
1031
1047
  LayoutAction2.UpdateComplementary = UpdateComplementary;
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({
1048
+ class UpdateDialog extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1049
+ input: import_effect7.Schema.Struct({
1050
+ part: import_effect7.Schema.Literal("dialog").annotations({
1035
1051
  description: "Updating the dialog."
1036
1052
  }),
1037
- subject: import_effect6.Schema.optional(import_effect6.Schema.String.annotations({
1053
+ subject: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1038
1054
  description: "URI of the component to display in the dialog."
1039
1055
  })),
1040
- options: import_effect6.Schema.Struct({
1041
- state: import_effect6.Schema.optional(import_effect6.Schema.Boolean.annotations({
1056
+ options: import_effect7.Schema.Struct({
1057
+ state: import_effect7.Schema.optional(import_effect7.Schema.Boolean.annotations({
1042
1058
  description: "Whether the dialog is open or closed."
1043
1059
  })),
1044
- blockAlign: import_effect6.Schema.optional(import_effect6.Schema.Literal("start", "center", "end").annotations({
1060
+ blockAlign: import_effect7.Schema.optional(import_effect7.Schema.Literal("start", "center", "end").annotations({
1045
1061
  description: "The alignment of the dialog."
1046
1062
  })),
1047
- type: import_effect6.Schema.optional(import_effect6.Schema.Literal("default", "alert").annotations({
1063
+ type: import_effect7.Schema.optional(import_effect7.Schema.Literal("default", "alert").annotations({
1048
1064
  description: "The type of dialog."
1049
1065
  })),
1050
- props: import_effect6.Schema.optional(import_effect6.Schema.Record({
1051
- key: import_effect6.Schema.String,
1052
- value: import_effect6.Schema.Any
1066
+ props: import_effect7.Schema.optional(import_effect7.Schema.Record({
1067
+ key: import_effect7.Schema.String,
1068
+ value: import_effect7.Schema.Any
1053
1069
  }).annotations({
1054
1070
  description: "Additional props for the dialog."
1055
1071
  }))
1056
1072
  })
1057
1073
  }),
1058
- output: import_effect6.Schema.Void
1074
+ output: import_effect7.Schema.Void
1059
1075
  }) {
1060
1076
  }
1061
1077
  LayoutAction2.UpdateDialog = UpdateDialog;
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({
1078
+ class UpdatePopover extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1079
+ input: import_effect7.Schema.Struct({
1080
+ part: import_effect7.Schema.Literal("popover").annotations({
1065
1081
  description: "Updating the popover."
1066
1082
  }),
1067
- subject: import_effect6.Schema.optional(import_effect6.Schema.String.annotations({
1083
+ subject: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1068
1084
  description: "URI of the component to display in the popover."
1069
1085
  })),
1070
- options: import_effect6.Schema.Struct({
1071
- anchorId: import_effect6.Schema.String.annotations({
1086
+ options: import_effect7.Schema.Struct({
1087
+ anchorId: import_effect7.Schema.String.annotations({
1072
1088
  description: "The id of the element to anchor the popover to."
1073
1089
  }),
1074
- side: import_effect6.Schema.optional(import_effect6.Schema.Literal("top", "right", "bottom", "left").annotations({
1090
+ side: import_effect7.Schema.optional(import_effect7.Schema.Literal("top", "right", "bottom", "left").annotations({
1075
1091
  description: "The side of the anchor."
1076
1092
  })),
1077
- state: import_effect6.Schema.optional(import_effect6.Schema.Boolean.annotations({
1093
+ state: import_effect7.Schema.optional(import_effect7.Schema.Boolean.annotations({
1078
1094
  description: "Whether the popover is open or closed."
1079
1095
  })),
1080
- props: import_effect6.Schema.optional(import_effect6.Schema.Record({
1081
- key: import_effect6.Schema.String,
1082
- value: import_effect6.Schema.Any
1096
+ props: import_effect7.Schema.optional(import_effect7.Schema.Record({
1097
+ key: import_effect7.Schema.String,
1098
+ value: import_effect7.Schema.Any
1083
1099
  }).annotations({
1084
1100
  description: "Additional props for the popover."
1085
1101
  }))
1086
1102
  })
1087
1103
  }),
1088
- output: import_effect6.Schema.Void
1104
+ output: import_effect7.Schema.Void
1089
1105
  }) {
1090
1106
  }
1091
1107
  LayoutAction2.UpdatePopover = UpdatePopover;
1092
- LayoutAction2.Toast = import_effect6.Schema.Struct({
1093
- id: import_effect6.Schema.String.annotations({
1108
+ LayoutAction2.Toast = import_effect7.Schema.Struct({
1109
+ id: import_effect7.Schema.String.annotations({
1094
1110
  description: "The id of the toast."
1095
1111
  }),
1096
- title: import_effect6.Schema.optional(Label.annotations({
1112
+ title: import_effect7.Schema.optional(Label.annotations({
1097
1113
  description: "The title of the toast."
1098
1114
  })),
1099
- description: import_effect6.Schema.optional(Label.annotations({
1115
+ description: import_effect7.Schema.optional(Label.annotations({
1100
1116
  description: "The description of the toast."
1101
1117
  })),
1102
- icon: import_effect6.Schema.optional(import_effect6.Schema.String.annotations({
1118
+ icon: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1103
1119
  description: "The icon of the toast."
1104
1120
  })),
1105
- duration: import_effect6.Schema.optional(import_effect6.Schema.Number.annotations({
1121
+ duration: import_effect7.Schema.optional(import_effect7.Schema.Number.annotations({
1106
1122
  description: "The duration of the toast."
1107
1123
  })),
1108
- closeLabel: import_effect6.Schema.optional(Label.annotations({
1124
+ closeLabel: import_effect7.Schema.optional(Label.annotations({
1109
1125
  description: "The label of the close button."
1110
1126
  })),
1111
- actionLabel: import_effect6.Schema.optional(Label.annotations({
1127
+ actionLabel: import_effect7.Schema.optional(Label.annotations({
1112
1128
  description: "The label of the action button."
1113
1129
  })),
1114
- actionAlt: import_effect6.Schema.optional(Label.annotations({
1130
+ actionAlt: import_effect7.Schema.optional(Label.annotations({
1115
1131
  description: "The alt text of the action button."
1116
1132
  })),
1117
- onAction: import_effect6.Schema.optional(import_effect6.Schema.Any.annotations({
1133
+ onAction: import_effect7.Schema.optional(import_effect7.Schema.Any.annotations({
1118
1134
  description: "The action to perform when the action button is clicked."
1119
1135
  }))
1120
1136
  });
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({
1137
+ class AddToast extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1138
+ input: import_effect7.Schema.Struct({
1139
+ part: import_effect7.Schema.Literal("toast").annotations({
1124
1140
  description: "Adding a toast."
1125
1141
  }),
1126
1142
  subject: LayoutAction2.Toast.annotations({
1127
1143
  description: "The toast to add."
1128
1144
  })
1129
1145
  }),
1130
- output: import_effect6.Schema.Void
1146
+ output: import_effect7.Schema.Void
1131
1147
  }) {
1132
1148
  }
1133
1149
  LayoutAction2.AddToast = AddToast;
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({
1150
+ class SwitchWorkspace extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1151
+ input: import_effect7.Schema.Struct({
1152
+ part: import_effect7.Schema.Literal("workspace").annotations({
1137
1153
  description: "Switching the workspace."
1138
1154
  }),
1139
- subject: import_effect6.Schema.String.annotations({
1155
+ subject: import_effect7.Schema.String.annotations({
1140
1156
  description: "The id of the workspace to switch to."
1141
1157
  })
1142
1158
  }),
1143
- output: import_effect6.Schema.Void
1159
+ output: import_effect7.Schema.Void
1144
1160
  }) {
1145
1161
  }
1146
1162
  LayoutAction2.SwitchWorkspace = SwitchWorkspace;
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({
1163
+ class RevertWorkspace extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1164
+ input: import_effect7.Schema.Struct({
1165
+ part: import_effect7.Schema.Literal("workspace").annotations({
1150
1166
  description: "Switching the workspace."
1151
1167
  }),
1152
- options: import_effect6.Schema.Struct({
1153
- revert: import_effect6.Schema.Literal(true).annotations({
1168
+ options: import_effect7.Schema.Struct({
1169
+ revert: import_effect7.Schema.Literal(true).annotations({
1154
1170
  description: "Revert to the previous workspace."
1155
1171
  })
1156
1172
  })
1157
1173
  }),
1158
- output: import_effect6.Schema.Void
1174
+ output: import_effect7.Schema.Void
1159
1175
  }) {
1160
1176
  }
1161
1177
  LayoutAction2.RevertWorkspace = RevertWorkspace;
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({
1178
+ class Open extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1179
+ input: import_effect7.Schema.Struct({
1180
+ part: import_effect7.Schema.Literal("main").annotations({
1165
1181
  description: "Opening an item in the main content area."
1166
1182
  }),
1167
- subject: import_effect6.Schema.Array(import_effect6.Schema.String.annotations({
1183
+ subject: import_effect7.Schema.Array(import_effect7.Schema.String.annotations({
1168
1184
  description: "Ids of the items to open."
1169
1185
  })),
1170
- options: import_effect6.Schema.optional(import_effect6.Schema.Struct({
1171
- state: import_effect6.Schema.optional(import_effect6.Schema.Literal(true).annotations({
1186
+ options: import_effect7.Schema.optional(import_effect7.Schema.Struct({
1187
+ state: import_effect7.Schema.optional(import_effect7.Schema.Literal(true).annotations({
1172
1188
  description: "The items are being added."
1173
1189
  })),
1174
- key: import_effect6.Schema.optional(import_effect6.Schema.String.annotations({
1190
+ variant: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1191
+ description: "The variant of the item to open."
1192
+ })),
1193
+ key: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1175
1194
  description: "If provided, will replace item with a matching key (id prefix)."
1176
1195
  })),
1177
- scrollIntoView: import_effect6.Schema.optional(import_effect6.Schema.Boolean.annotations({
1196
+ scrollIntoView: import_effect7.Schema.optional(import_effect7.Schema.Boolean.annotations({
1178
1197
  description: "Scroll the items into view."
1179
1198
  })),
1180
- pivotId: import_effect6.Schema.optional(import_effect6.Schema.String.annotations({
1199
+ pivotId: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1181
1200
  description: "The id of the item to place new items next to."
1182
1201
  })),
1183
- positioning: import_effect6.Schema.optional(import_effect6.Schema.Union(import_effect6.Schema.Literal("start").annotations({
1202
+ positioning: import_effect7.Schema.optional(import_effect7.Schema.Union(import_effect7.Schema.Literal("start").annotations({
1184
1203
  description: "The items are being added before the pivot item."
1185
- }), import_effect6.Schema.Literal("end").annotations({
1204
+ }), import_effect7.Schema.Literal("end").annotations({
1186
1205
  description: "The items are being added after the pivot item."
1187
1206
  })))
1188
1207
  }))
1189
1208
  }),
1190
- output: import_effect6.Schema.Void
1209
+ output: import_effect7.Schema.Void
1191
1210
  }) {
1192
1211
  }
1193
1212
  LayoutAction2.Open = Open;
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({
1213
+ class Set2 extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1214
+ input: import_effect7.Schema.Struct({
1215
+ part: import_effect7.Schema.Literal("main").annotations({
1197
1216
  description: "Setting items in the main content area."
1198
1217
  }),
1199
- subject: import_effect6.Schema.Array(import_effect6.Schema.String.annotations({
1218
+ subject: import_effect7.Schema.Array(import_effect7.Schema.String.annotations({
1200
1219
  description: "Ids of the items to set."
1201
1220
  })),
1202
- options: import_effect6.Schema.Struct({
1203
- override: import_effect6.Schema.Literal(true).annotations({
1221
+ options: import_effect7.Schema.Struct({
1222
+ override: import_effect7.Schema.Literal(true).annotations({
1204
1223
  description: "Override the current items in the main content area."
1205
1224
  })
1206
1225
  })
1207
1226
  }),
1208
- output: import_effect6.Schema.Void
1227
+ output: import_effect7.Schema.Void
1209
1228
  }) {
1210
1229
  }
1211
1230
  LayoutAction2.Set = Set2;
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({
1231
+ class Close extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1232
+ input: import_effect7.Schema.Struct({
1233
+ part: import_effect7.Schema.Literal("main").annotations({
1215
1234
  description: "Closing items in the main content area."
1216
1235
  }),
1217
- subject: import_effect6.Schema.Array(import_effect6.Schema.String.annotations({
1236
+ subject: import_effect7.Schema.Array(import_effect7.Schema.String.annotations({
1218
1237
  description: "Ids of the items to close."
1219
1238
  })),
1220
- options: import_effect6.Schema.Struct({
1221
- state: import_effect6.Schema.Literal(false).annotations({
1239
+ options: import_effect7.Schema.Struct({
1240
+ state: import_effect7.Schema.Literal(false).annotations({
1222
1241
  description: "The items are being removed."
1223
1242
  })
1224
1243
  })
1225
1244
  }),
1226
- output: import_effect6.Schema.Void
1245
+ output: import_effect7.Schema.Void
1227
1246
  }) {
1228
1247
  }
1229
1248
  LayoutAction2.Close = Close;
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({
1249
+ class ScrollIntoView extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1250
+ input: import_effect7.Schema.Struct({
1251
+ part: import_effect7.Schema.Literal("current").annotations({
1233
1252
  description: "Setting the current item"
1234
1253
  }),
1235
- subject: import_effect6.Schema.optional(import_effect6.Schema.String.annotations({
1254
+ subject: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1236
1255
  description: "The id of the item to set as current."
1237
1256
  })),
1238
- options: import_effect6.Schema.optional(import_effect6.Schema.Record({
1239
- key: import_effect6.Schema.String,
1240
- value: import_effect6.Schema.Any
1257
+ options: import_effect7.Schema.optional(import_effect7.Schema.Record({
1258
+ key: import_effect7.Schema.String,
1259
+ value: import_effect7.Schema.Any
1241
1260
  }).annotations({
1242
1261
  description: "Additional options for the scroll into view."
1243
1262
  }))
1244
1263
  }),
1245
- output: import_effect6.Schema.Void
1264
+ output: import_effect7.Schema.Void
1246
1265
  }) {
1247
1266
  }
1248
1267
  LayoutAction2.ScrollIntoView = ScrollIntoView;
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({
1268
+ class Expose extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1269
+ input: import_effect7.Schema.Struct({
1270
+ part: import_effect7.Schema.Literal("navigation").annotations({
1252
1271
  description: "Exposing an item in the navigation area."
1253
1272
  }),
1254
- subject: import_effect6.Schema.String.annotations({
1273
+ subject: import_effect7.Schema.String.annotations({
1255
1274
  description: "The id of the item to expose."
1256
1275
  })
1257
1276
  }),
1258
- output: import_effect6.Schema.Void
1277
+ output: import_effect7.Schema.Void
1259
1278
  }) {
1260
1279
  }
1261
1280
  LayoutAction2.Expose = Expose;
1262
1281
  })(LayoutAction || (LayoutAction = {}));
1263
1282
  var createSurface = (definition) => definition;
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
1283
+ var ResourceKey = import_effect8.Schema.Union(import_effect8.Schema.String, import_effect8.Schema.Record({
1284
+ key: import_effect8.Schema.String,
1285
+ value: import_effect8.Schema.Any
1267
1286
  }));
1268
- var ResourceLanguage = import_effect7.Schema.Record({
1269
- key: import_effect7.Schema.String,
1287
+ var ResourceLanguage = import_effect8.Schema.Record({
1288
+ key: import_effect8.Schema.String,
1270
1289
  value: ResourceKey
1271
1290
  });
1272
- var Resource = import_effect7.Schema.Record({
1273
- key: import_effect7.Schema.String,
1291
+ var Resource = import_effect8.Schema.Record({
1292
+ key: import_effect8.Schema.String,
1274
1293
  value: ResourceLanguage
1275
1294
  });
1276
1295
  var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/sdk/app-framework/src/plugin-intent/intent-dispatcher.ts";
@@ -1281,7 +1300,7 @@ var isUndoable = (historyEntry) => historyEntry.length > 0 && historyEntry.every
1281
1300
  var createDispatcher = (getResolvers, { executionLimit = EXECUTION_LIMIT, historyLimit = HISTORY_LIMIT } = {}) => {
1282
1301
  const historyRef = import_effect.Effect.runSync(import_effect.Ref.make([]));
1283
1302
  const handleIntent = (intent) => import_effect.Effect.gen(function* () {
1284
- const candidates = getResolvers(intent.module).filter((r) => r.intent._tag === intent.id).filter((r) => !r.filter || r.filter(intent.data)).toSorted(import_util.byPosition);
1303
+ const candidates = getResolvers(intent.module).filter((resolver) => resolver.intent._tag === intent.id).filter((resolver) => !resolver.filter || resolver.filter(intent.data)).toSorted(import_util.byPosition);
1285
1304
  if (candidates.length === 0) {
1286
1305
  yield* import_effect.Effect.fail(new NoResolversError(intent.id));
1287
1306
  }
@@ -1346,7 +1365,7 @@ var createDispatcher = (getResolvers, { executionLimit = EXECUTION_LIMIT, histor
1346
1365
  })).catch((error) => {
1347
1366
  import_log.log.catch(error, void 0, {
1348
1367
  F: __dxlog_file3,
1349
- L: 241,
1368
+ L: 254,
1350
1369
  S: void 0,
1351
1370
  C: (f, a) => f(...a)
1352
1371
  });
@@ -1464,4 +1483,4 @@ var intent_dispatcher_default = (context) => {
1464
1483
  lazy,
1465
1484
  oneOf
1466
1485
  });
1467
- //# sourceMappingURL=chunk-KRK7EH6Z.cjs.map
1486
+ //# sourceMappingURL=chunk-YIFTVCOR.cjs.map