@dxos/app-framework 0.8.1 → 0.8.2-main.12df754

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 (251) hide show
  1. package/dist/lib/browser/{app-graph-builder-576BHZC7.mjs → app-graph-builder-RHU5WUGJ.mjs} +2 -2
  2. package/dist/lib/browser/{chunk-6AVTZPMT.mjs → chunk-5WHZ3ORL.mjs} +187 -159
  3. package/dist/lib/browser/chunk-5WHZ3ORL.mjs.map +7 -0
  4. package/dist/lib/browser/{chunk-PPIBZ5N4.mjs → chunk-GYFO2C4Q.mjs} +4 -4
  5. package/dist/lib/browser/chunk-GYFO2C4Q.mjs.map +7 -0
  6. package/dist/lib/browser/index.mjs +7 -5
  7. package/dist/lib/browser/index.mjs.map +1 -1
  8. package/dist/lib/browser/{intent-dispatcher-3Q67MHZZ.mjs → intent-dispatcher-T6YETUE7.mjs} +2 -2
  9. package/dist/lib/browser/{intent-resolver-O763LCLG.mjs → intent-resolver-UQFD7VBJ.mjs} +2 -2
  10. package/dist/lib/browser/meta.json +1 -1
  11. package/dist/lib/browser/{store-URSN7DZI.mjs → store-NP42FCZO.mjs} +2 -2
  12. package/dist/lib/browser/testing/index.mjs +2 -2
  13. package/dist/lib/browser/worker.mjs +3 -1
  14. package/dist/lib/node/{app-graph-builder-JZCSKYPY.cjs → app-graph-builder-QGHI2J2R.cjs} +12 -12
  15. package/dist/lib/node/{chunk-YIFTVCOR.cjs → chunk-EGY2ANJA.cjs} +177 -150
  16. package/dist/lib/node/chunk-EGY2ANJA.cjs.map +7 -0
  17. package/dist/lib/node/{chunk-YNTKVTVX.cjs → chunk-PIFNLI5K.cjs} +20 -20
  18. package/dist/lib/node/{chunk-YNTKVTVX.cjs.map → chunk-PIFNLI5K.cjs.map} +3 -3
  19. package/dist/lib/node/index.cjs +68 -66
  20. package/dist/lib/node/index.cjs.map +1 -1
  21. package/dist/lib/node/{intent-dispatcher-H334XLFD.cjs → intent-dispatcher-BEKV2HG3.cjs} +8 -8
  22. package/dist/lib/node/{intent-dispatcher-H334XLFD.cjs.map → intent-dispatcher-BEKV2HG3.cjs.map} +2 -2
  23. package/dist/lib/node/{intent-resolver-3F4POWAM.cjs → intent-resolver-NALI2KSH.cjs} +8 -8
  24. package/dist/lib/node/meta.json +1 -1
  25. package/dist/lib/node/{store-OFDHTDCB.cjs → store-I7KM7GGP.cjs} +7 -7
  26. package/dist/lib/node/testing/index.cjs +8 -8
  27. package/dist/lib/node/worker.cjs +39 -37
  28. package/dist/lib/node/worker.cjs.map +2 -2
  29. package/dist/lib/node-esm/{app-graph-builder-VYKLSMSZ.mjs → app-graph-builder-45FJO6JA.mjs} +2 -2
  30. package/dist/lib/node-esm/{chunk-R6A7Z4LU.mjs → chunk-KFDC5QSQ.mjs} +4 -4
  31. package/dist/lib/{browser/chunk-PPIBZ5N4.mjs.map → node-esm/chunk-KFDC5QSQ.mjs.map} +3 -3
  32. package/dist/lib/node-esm/{chunk-AHKIPS2L.mjs → chunk-YQMLJUYN.mjs} +187 -159
  33. package/dist/lib/node-esm/chunk-YQMLJUYN.mjs.map +7 -0
  34. package/dist/lib/node-esm/index.mjs +7 -5
  35. package/dist/lib/node-esm/index.mjs.map +1 -1
  36. package/dist/lib/node-esm/{intent-dispatcher-YDE2ONZA.mjs → intent-dispatcher-MYETZPUW.mjs} +2 -2
  37. package/dist/lib/node-esm/{intent-resolver-LAGJ7LXM.mjs → intent-resolver-BW5I7SOS.mjs} +2 -2
  38. package/dist/lib/node-esm/meta.json +1 -1
  39. package/dist/lib/node-esm/{store-EYSUVNCS.mjs → store-MKIES4HL.mjs} +2 -2
  40. package/dist/lib/node-esm/testing/index.mjs +2 -2
  41. package/dist/lib/node-esm/worker.mjs +3 -1
  42. package/dist/types/src/common/collaboration.d.ts +19 -0
  43. package/dist/types/src/common/collaboration.d.ts.map +1 -0
  44. package/dist/types/src/common/index.d.ts +1 -0
  45. package/dist/types/src/common/index.d.ts.map +1 -1
  46. package/dist/types/src/common/layout.d.ts +9 -4
  47. package/dist/types/src/common/layout.d.ts.map +1 -1
  48. package/dist/types/src/core/capabilities.d.ts +5 -2
  49. package/dist/types/src/core/capabilities.d.ts.map +1 -1
  50. package/dist/types/src/core/events.d.ts +4 -1
  51. package/dist/types/src/core/events.d.ts.map +1 -1
  52. package/dist/types/src/core/manager.d.ts +8 -8
  53. package/dist/types/src/core/manager.d.ts.map +1 -1
  54. package/dist/types/src/core/plugin.d.ts +2 -1
  55. package/dist/types/src/core/plugin.d.ts.map +1 -1
  56. package/dist/types/src/plugin-intent/intent-dispatcher.d.ts +27 -1
  57. package/dist/types/src/plugin-intent/intent-dispatcher.d.ts.map +1 -1
  58. package/package.json +22 -18
  59. package/project.json +2 -1
  60. package/src/App.tsx +2 -2
  61. package/src/common/collaboration.ts +21 -0
  62. package/src/common/index.ts +1 -0
  63. package/src/common/layout.ts +21 -3
  64. package/src/core/capabilities.ts +9 -5
  65. package/src/core/events.ts +4 -1
  66. package/src/core/manager.test.ts +3 -3
  67. package/src/core/manager.ts +10 -10
  68. package/src/core/plugin.ts +2 -1
  69. package/src/plugin-intent/intent-dispatcher.ts +18 -2
  70. package/typedoc/.nojekyll +1 -0
  71. package/typedoc/assets/hierarchy.js +1 -0
  72. package/typedoc/assets/highlight.css +106 -0
  73. package/typedoc/assets/icons.js +18 -0
  74. package/typedoc/assets/icons.svg +1 -0
  75. package/typedoc/assets/main.js +60 -0
  76. package/typedoc/assets/navigation.js +1 -0
  77. package/typedoc/assets/search.js +1 -0
  78. package/typedoc/assets/style.css +1640 -0
  79. package/typedoc/classes/CollaborationActions.InsertContent.html +421 -0
  80. package/typedoc/classes/ErrorBoundary.html +125 -0
  81. package/typedoc/classes/IntentAction.ShowUndo.html +227 -0
  82. package/typedoc/classes/IntentAction.Track.html +266 -0
  83. package/typedoc/classes/LayoutAction.AddToast.html +265 -0
  84. package/typedoc/classes/LayoutAction.Close.html +382 -0
  85. package/typedoc/classes/LayoutAction.Expose.html +265 -0
  86. package/typedoc/classes/LayoutAction.Open.html +928 -0
  87. package/typedoc/classes/LayoutAction.RevertWorkspace.html +343 -0
  88. package/typedoc/classes/LayoutAction.ScrollIntoView.html +460 -0
  89. package/typedoc/classes/LayoutAction.Set.html +382 -0
  90. package/typedoc/classes/LayoutAction.SetLayoutMode.html +421 -0
  91. package/typedoc/classes/LayoutAction.SwitchWorkspace.html +265 -0
  92. package/typedoc/classes/LayoutAction.UpdateComplementary.html +616 -0
  93. package/typedoc/classes/LayoutAction.UpdateDialog.html +733 -0
  94. package/typedoc/classes/LayoutAction.UpdateLayout.html +461 -0
  95. package/typedoc/classes/LayoutAction.UpdatePopover.html +1435 -0
  96. package/typedoc/classes/LayoutAction.UpdateSidebar.html +538 -0
  97. package/typedoc/classes/Plugin.html +6 -0
  98. package/typedoc/classes/PluginManager.html +42 -0
  99. package/typedoc/classes/PluginModule.html +18 -0
  100. package/typedoc/classes/PluginsContext.html +25 -0
  101. package/typedoc/classes/SettingsAction.Open.html +226 -0
  102. package/typedoc/classes/SettingsAction.OpenPluginRegistry.html +265 -0
  103. package/typedoc/functions/Events.createStateEvent.html +2 -0
  104. package/typedoc/functions/IntentPlugin.html +1 -0
  105. package/typedoc/functions/SettingsPlugin.html +1 -0
  106. package/typedoc/functions/allOf.html +2 -0
  107. package/typedoc/functions/chain.html +3 -0
  108. package/typedoc/functions/contributes.html +2 -0
  109. package/typedoc/functions/createApp.html +6 -0
  110. package/typedoc/functions/createDispatcher.html +3 -0
  111. package/typedoc/functions/createIntent.html +6 -0
  112. package/typedoc/functions/createResolver.html +2 -0
  113. package/typedoc/functions/createSurface.html +2 -0
  114. package/typedoc/functions/defineCapability.html +2 -0
  115. package/typedoc/functions/defineEvent.html +2 -0
  116. package/typedoc/functions/defineModule.html +2 -0
  117. package/typedoc/functions/definePlugin.html +2 -0
  118. package/typedoc/functions/eventKey.html +2 -0
  119. package/typedoc/functions/getEvents.html +2 -0
  120. package/typedoc/functions/isAllOf.html +2 -0
  121. package/typedoc/functions/isOneOf.html +2 -0
  122. package/typedoc/functions/isSurfaceAvailable.html +2 -0
  123. package/typedoc/functions/lazy.html +2 -0
  124. package/typedoc/functions/oneOf.html +2 -0
  125. package/typedoc/functions/useAppGraph.html +1 -0
  126. package/typedoc/functions/useCapabilities.html +3 -0
  127. package/typedoc/functions/useCapability.html +4 -0
  128. package/typedoc/functions/useIntentDispatcher.html +1 -0
  129. package/typedoc/functions/useIntentResolver.html +1 -0
  130. package/typedoc/functions/useLayout.html +1 -0
  131. package/typedoc/functions/usePluginManager.html +2 -0
  132. package/typedoc/hierarchy.html +1 -0
  133. package/typedoc/index.html +16 -0
  134. package/typedoc/interfaces/LayoutAction.Toast.html +10 -0
  135. package/typedoc/media/LICENSE +8 -0
  136. package/typedoc/modules/Capabilities.html +1 -0
  137. package/typedoc/modules/CollaborationActions.html +1 -0
  138. package/typedoc/modules/Events.html +1 -0
  139. package/typedoc/modules/IntentAction.html +1 -0
  140. package/typedoc/modules/LayoutAction.html +2 -0
  141. package/typedoc/modules/SettingsAction.html +1 -0
  142. package/typedoc/modules.html +1 -0
  143. package/typedoc/types/ActivationEvent.html +8 -0
  144. package/typedoc/types/ActivationEvents.html +2 -0
  145. package/typedoc/types/AnyCapability.html +1 -0
  146. package/typedoc/types/AnyIntent.html +1 -0
  147. package/typedoc/types/AnyIntentChain.html +1 -0
  148. package/typedoc/types/AnyIntentEffectResult.html +1 -0
  149. package/typedoc/types/AnyIntentResolver.html +1 -0
  150. package/typedoc/types/AnyIntentResult.html +1 -0
  151. package/typedoc/types/Capabilities.FileUploader.html +1 -0
  152. package/typedoc/types/Capabilities.IntentResolver.html +1 -0
  153. package/typedoc/types/Capabilities.Layout.html +1 -0
  154. package/typedoc/types/Capabilities.Metadata.html +1 -0
  155. package/typedoc/types/Capabilities.ReactContext.html +1 -0
  156. package/typedoc/types/Capabilities.ReactRoot.html +1 -0
  157. package/typedoc/types/Capabilities.ReactSurface.html +1 -0
  158. package/typedoc/types/Capabilities.Settings.html +4 -0
  159. package/typedoc/types/Capability.html +9 -0
  160. package/typedoc/types/CreateAppOptions.html +9 -0
  161. package/typedoc/types/FileInfo.html +1 -0
  162. package/typedoc/types/Intent.html +14 -0
  163. package/typedoc/types/IntentChain.html +6 -0
  164. package/typedoc/types/IntentContext.html +5 -0
  165. package/typedoc/types/IntentData.html +1 -0
  166. package/typedoc/types/IntentDispatcher.html +2 -0
  167. package/typedoc/types/IntentDispatcherResult.html +2 -0
  168. package/typedoc/types/IntentEffectDefinition.html +2 -0
  169. package/typedoc/types/IntentEffectResult.html +15 -0
  170. package/typedoc/types/IntentParams.html +3 -0
  171. package/typedoc/types/IntentResolver.html +2 -0
  172. package/typedoc/types/IntentResultData.html +1 -0
  173. package/typedoc/types/IntentSchema.html +1 -0
  174. package/typedoc/types/IntentUndo.html +2 -0
  175. package/typedoc/types/InterfaceDef.html +4 -0
  176. package/typedoc/types/Label.html +1 -0
  177. package/typedoc/types/NodeSerializer.html +8 -0
  178. package/typedoc/types/PluginManagerOptions.html +5 -0
  179. package/typedoc/types/PluginMeta.html +21 -0
  180. package/typedoc/types/PromiseIntentDispatcher.html +2 -0
  181. package/typedoc/types/PromiseIntentUndo.html +2 -0
  182. package/typedoc/types/Resource.html +1 -0
  183. package/typedoc/types/ResourceKey.html +1 -0
  184. package/typedoc/types/ResourceLanguage.html +1 -0
  185. package/typedoc/types/SerializedNode.html +4 -0
  186. package/typedoc/types/SurfaceComponent.html +2 -0
  187. package/typedoc/types/SurfaceDefinition.html +2 -0
  188. package/typedoc/types/SurfaceProps.html +4 -0
  189. package/typedoc/variables/Capabilities.AppGraph.html +1 -0
  190. package/typedoc/variables/Capabilities.AppGraphBuilder.html +1 -0
  191. package/typedoc/variables/Capabilities.AppGraphSerializer.html +1 -0
  192. package/typedoc/variables/Capabilities.ArtifactDefinition.html +1 -0
  193. package/typedoc/variables/Capabilities.FileUploader.html +1 -0
  194. package/typedoc/variables/Capabilities.IntentDispatcher.html +1 -0
  195. package/typedoc/variables/Capabilities.IntentResolver.html +1 -0
  196. package/typedoc/variables/Capabilities.Layout.html +1 -0
  197. package/typedoc/variables/Capabilities.Metadata.html +1 -0
  198. package/typedoc/variables/Capabilities.Null.html +1 -0
  199. package/typedoc/variables/Capabilities.PluginManager.html +1 -0
  200. package/typedoc/variables/Capabilities.ReactContext.html +1 -0
  201. package/typedoc/variables/Capabilities.ReactRoot.html +1 -0
  202. package/typedoc/variables/Capabilities.ReactSurface.html +1 -0
  203. package/typedoc/variables/Capabilities.Settings.html +1 -0
  204. package/typedoc/variables/Capabilities.SettingsStore.html +1 -0
  205. package/typedoc/variables/Capabilities.Tools.html +1 -0
  206. package/typedoc/variables/Capabilities.Translations.html +1 -0
  207. package/typedoc/variables/Events.AppGraphReady.html +2 -0
  208. package/typedoc/variables/Events.DispatcherReady.html +2 -0
  209. package/typedoc/variables/Events.LayoutReady.html +1 -0
  210. package/typedoc/variables/Events.SettingsReady.html +2 -0
  211. package/typedoc/variables/Events.SetupAppGraph.html +2 -0
  212. package/typedoc/variables/Events.SetupArtifactDefinition.html +2 -0
  213. package/typedoc/variables/Events.SetupIntentResolver.html +2 -0
  214. package/typedoc/variables/Events.SetupMetadata.html +2 -0
  215. package/typedoc/variables/Events.SetupReactSurface.html +2 -0
  216. package/typedoc/variables/Events.SetupSettings.html +2 -0
  217. package/typedoc/variables/Events.SetupTranslations.html +2 -0
  218. package/typedoc/variables/Events.Startup.html +2 -0
  219. package/typedoc/variables/FileInfoSchema.html +1 -0
  220. package/typedoc/variables/INTENT_ACTION.html +1 -0
  221. package/typedoc/variables/INTENT_PLUGIN.html +1 -0
  222. package/typedoc/variables/LAYOUT_ACTION.html +1 -0
  223. package/typedoc/variables/LAYOUT_PLUGIN.html +1 -0
  224. package/typedoc/variables/Label.html +1 -0
  225. package/typedoc/variables/LayoutAction.Toast.html +1 -0
  226. package/typedoc/variables/LayoutAction.UPDATE_LAYOUT.html +1 -0
  227. package/typedoc/variables/PluginManagerProvider.html +2 -0
  228. package/typedoc/variables/Resource.html +2 -0
  229. package/typedoc/variables/ResourceKey.html +1 -0
  230. package/typedoc/variables/ResourceLanguage.html +1 -0
  231. package/typedoc/variables/SETTINGS_ACTION.html +1 -0
  232. package/typedoc/variables/SETTINGS_ID.html +1 -0
  233. package/typedoc/variables/SETTINGS_KEY.html +1 -0
  234. package/typedoc/variables/SETTINGS_PLUGIN.html +1 -0
  235. package/typedoc/variables/Surface.html +2 -0
  236. package/typedoc/variables/defaultFileTypes.html +1 -0
  237. package/dist/lib/browser/chunk-6AVTZPMT.mjs.map +0 -7
  238. package/dist/lib/node/chunk-YIFTVCOR.cjs.map +0 -7
  239. package/dist/lib/node-esm/chunk-AHKIPS2L.mjs.map +0 -7
  240. package/dist/lib/node-esm/chunk-R6A7Z4LU.mjs.map +0 -7
  241. /package/dist/lib/browser/{app-graph-builder-576BHZC7.mjs.map → app-graph-builder-RHU5WUGJ.mjs.map} +0 -0
  242. /package/dist/lib/browser/{intent-dispatcher-3Q67MHZZ.mjs.map → intent-dispatcher-T6YETUE7.mjs.map} +0 -0
  243. /package/dist/lib/browser/{intent-resolver-O763LCLG.mjs.map → intent-resolver-UQFD7VBJ.mjs.map} +0 -0
  244. /package/dist/lib/browser/{store-URSN7DZI.mjs.map → store-NP42FCZO.mjs.map} +0 -0
  245. /package/dist/lib/node/{app-graph-builder-JZCSKYPY.cjs.map → app-graph-builder-QGHI2J2R.cjs.map} +0 -0
  246. /package/dist/lib/node/{intent-resolver-3F4POWAM.cjs.map → intent-resolver-NALI2KSH.cjs.map} +0 -0
  247. /package/dist/lib/node/{store-OFDHTDCB.cjs.map → store-I7KM7GGP.cjs.map} +0 -0
  248. /package/dist/lib/node-esm/{app-graph-builder-VYKLSMSZ.mjs.map → app-graph-builder-45FJO6JA.mjs.map} +0 -0
  249. /package/dist/lib/node-esm/{intent-dispatcher-YDE2ONZA.mjs.map → intent-dispatcher-MYETZPUW.mjs.map} +0 -0
  250. /package/dist/lib/node-esm/{intent-resolver-LAGJ7LXM.mjs.map → intent-resolver-BW5I7SOS.mjs.map} +0 -0
  251. /package/dist/lib/node-esm/{store-EYSUVNCS.mjs.map → store-MKIES4HL.mjs.map} +0 -0
@@ -26,9 +26,10 @@ 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_YIFTVCOR_exports = {};
30
- __export(chunk_YIFTVCOR_exports, {
29
+ var chunk_EGY2ANJA_exports = {};
30
+ __export(chunk_EGY2ANJA_exports, {
31
31
  Capabilities: () => Capabilities,
32
+ CollaborationActions: () => CollaborationActions,
32
33
  Events: () => Events,
33
34
  FileInfoSchema: () => FileInfoSchema,
34
35
  INTENT_ACTION: () => INTENT_ACTION,
@@ -66,7 +67,7 @@ __export(chunk_YIFTVCOR_exports, {
66
67
  lazy: () => lazy,
67
68
  oneOf: () => oneOf
68
69
  });
69
- module.exports = __toCommonJS(chunk_YIFTVCOR_exports);
70
+ module.exports = __toCommonJS(chunk_EGY2ANJA_exports);
70
71
  var import_effect = require("effect");
71
72
  var import_live_object = require("@dxos/live-object");
72
73
  var import_log = require("@dxos/log");
@@ -85,8 +86,10 @@ var import_async2 = require("@dxos/async");
85
86
  var import_live_object3 = require("@dxos/live-object");
86
87
  var import_log3 = require("@dxos/log");
87
88
  var import_effect6 = require("effect");
89
+ var import_echo_schema = require("@dxos/echo-schema");
88
90
  var import_effect7 = require("effect");
89
91
  var import_effect8 = require("effect");
92
+ var import_effect9 = require("effect");
90
93
  var createIntent = (schema, data = {}, params = {}) => {
91
94
  const _ = import_effect3.Schema.validateSync(schema.fields.input)(data);
92
95
  const intent = {
@@ -208,7 +211,7 @@ var PluginsContext = class {
208
211
  contributeCapability({ module: moduleId, interface: interfaceDef, implementation }) {
209
212
  let current = this._definedCapabilities.get(interfaceDef.identifier);
210
213
  if (!current) {
211
- const object = (0, import_live_object2.create)({
214
+ const object = (0, import_live_object2.live)({
212
215
  value: []
213
216
  });
214
217
  current = (0, import_signals_core.untracked)(() => object.value);
@@ -221,7 +224,7 @@ var PluginsContext = class {
221
224
  count: (0, import_signals_core.untracked)(() => current.length)
222
225
  }, {
223
226
  F: __dxlog_file,
224
- L: 142,
227
+ L: 146,
225
228
  S: this,
226
229
  C: (f, a) => f(...a)
227
230
  });
@@ -242,7 +245,7 @@ var PluginsContext = class {
242
245
  count: (0, import_signals_core.untracked)(() => current.length)
243
246
  }, {
244
247
  F: __dxlog_file,
245
- L: 161,
248
+ L: 165,
246
249
  S: this,
247
250
  C: (f, a) => f(...a)
248
251
  });
@@ -251,7 +254,7 @@ var PluginsContext = class {
251
254
  id: interfaceDef.identifier
252
255
  }, {
253
256
  F: __dxlog_file,
254
- L: 163,
257
+ L: 167,
255
258
  S: this,
256
259
  C: (f, a) => f(...a)
257
260
  });
@@ -265,7 +268,7 @@ var PluginsContext = class {
265
268
  requestCapabilities(interfaceDef, filter) {
266
269
  let current = this._definedCapabilities.get(interfaceDef.identifier);
267
270
  if (!current) {
268
- const object = (0, import_live_object2.create)({
271
+ const object = (0, import_live_object2.live)({
269
272
  value: []
270
273
  });
271
274
  current = (0, import_signals_core.untracked)(() => object.value);
@@ -284,7 +287,7 @@ var PluginsContext = class {
284
287
  const capability = this.requestCapabilities(interfaceDef, filter)[0];
285
288
  (0, import_invariant.invariant)(capability, `No capability found for ${interfaceDef.identifier}`, {
286
289
  F: __dxlog_file,
287
- L: 199,
290
+ L: 203,
288
291
  S: this,
289
292
  A: [
290
293
  "capability",
@@ -349,7 +352,7 @@ var PluginManager = class {
349
352
  });
350
353
  this._capabilities = /* @__PURE__ */ new Map();
351
354
  this._pluginLoader = pluginLoader;
352
- this._state = (0, import_live_object3.create)({
355
+ this._state = (0, import_live_object3.live)({
353
356
  plugins,
354
357
  core,
355
358
  enabled,
@@ -906,6 +909,22 @@ var Capabilities;
906
909
  Capabilities2.ArtifactDefinition = defineCapability("dxos.org/app-framework/capability/artifact-definition");
907
910
  Capabilities2.FileUploader = defineCapability("dxos.org/app-framework/capability/file-uploader");
908
911
  })(Capabilities || (Capabilities = {}));
912
+ var CollaborationActions;
913
+ (function(CollaborationActions2) {
914
+ class InsertContent extends import_effect6.Schema.TaggedClass()("assistant/intent-content", {
915
+ input: import_effect6.Schema.Struct({
916
+ spaceId: import_echo_schema.SpaceIdSchema,
917
+ target: (0, import_echo_schema.Ref)(import_echo_schema.Expando),
918
+ object: (0, import_echo_schema.Ref)(import_echo_schema.Expando),
919
+ label: import_effect6.Schema.String.pipe(import_effect6.Schema.optional)
920
+ }).annotations({
921
+ [import_effect6.SchemaAST.DescriptionAnnotationId]: "Enables plugins to inject content blocks or references into a related entity."
922
+ }),
923
+ output: import_effect6.Schema.Void
924
+ }) {
925
+ }
926
+ CollaborationActions2.InsertContent = InsertContent;
927
+ })(CollaborationActions || (CollaborationActions = {}));
909
928
  var Events;
910
929
  (function(Events2) {
911
930
  Events2.Startup = defineEvent("dxos.org/app-framework/event/startup");
@@ -941,11 +960,11 @@ var defaultFileTypes = {
941
960
  "md"
942
961
  ]
943
962
  };
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)
963
+ var FileInfoSchema = import_effect7.Schema.Struct({
964
+ name: import_effect7.Schema.String,
965
+ type: import_effect7.Schema.String,
966
+ url: import_effect7.Schema.optional(import_effect7.Schema.String),
967
+ cid: import_effect7.Schema.optional(import_effect7.Schema.String)
949
968
  });
950
969
  var IntentPlugin = () => definePlugin({
951
970
  id: INTENT_PLUGIN,
@@ -960,7 +979,7 @@ var IntentPlugin = () => definePlugin({
960
979
  activatesAfter: [
961
980
  Events.DispatcherReady
962
981
  ],
963
- activate: lazy(() => import("./intent-dispatcher-H334XLFD.cjs"))
982
+ activate: lazy(() => import("./intent-dispatcher-BEKV2HG3.cjs"))
964
983
  })
965
984
  ]);
966
985
  var LAYOUT_PLUGIN = "dxos.org/plugin/layout";
@@ -968,328 +987,335 @@ var LAYOUT_ACTION = `${LAYOUT_PLUGIN}/action`;
968
987
  var LayoutAction;
969
988
  (function(LayoutAction2) {
970
989
  LayoutAction2.UPDATE_LAYOUT = `${LAYOUT_ACTION}/update-layout`;
971
- class UpdateLayout extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
972
- input: import_effect7.Schema.Struct({
973
- part: import_effect7.Schema.String.annotations({
990
+ class UpdateLayout extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
991
+ input: import_effect8.Schema.Struct({
992
+ part: import_effect8.Schema.String.annotations({
974
993
  description: "The part of the layout to mutate."
975
994
  }),
976
- subject: import_effect7.Schema.optional(import_effect7.Schema.Any.annotations({
995
+ subject: import_effect8.Schema.optional(import_effect8.Schema.Any.annotations({
977
996
  description: "The subject of the layout update."
978
997
  })),
979
- options: import_effect7.Schema.optional(import_effect7.Schema.Record({
980
- key: import_effect7.Schema.String,
981
- value: import_effect7.Schema.Any
998
+ options: import_effect8.Schema.optional(import_effect8.Schema.Record({
999
+ key: import_effect8.Schema.String,
1000
+ value: import_effect8.Schema.Any
982
1001
  }).annotations({
983
1002
  description: "Additional options for the layout action."
984
1003
  }))
985
1004
  }),
986
- output: import_effect7.Schema.Void
1005
+ output: import_effect8.Schema.Void
987
1006
  }) {
988
1007
  }
989
1008
  LayoutAction2.UpdateLayout = UpdateLayout;
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({
1009
+ class SetLayoutMode extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1010
+ input: import_effect8.Schema.Struct({
1011
+ part: import_effect8.Schema.Literal("mode").annotations({
993
1012
  description: "Setting the layout mode."
994
1013
  }),
995
- subject: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1014
+ subject: import_effect8.Schema.optional(import_effect8.Schema.String.annotations({
996
1015
  description: "Item which is the subject of the new layout mode."
997
1016
  })),
998
- options: import_effect7.Schema.Union(import_effect7.Schema.Struct({
999
- mode: import_effect7.Schema.String.annotations({
1017
+ options: import_effect8.Schema.Union(import_effect8.Schema.Struct({
1018
+ mode: import_effect8.Schema.String.annotations({
1000
1019
  description: "The new layout mode."
1001
1020
  })
1002
- }), import_effect7.Schema.Struct({
1003
- revert: import_effect7.Schema.Boolean.annotations({
1021
+ }), import_effect8.Schema.Struct({
1022
+ revert: import_effect8.Schema.Boolean.annotations({
1004
1023
  description: "Revert to the previous layout mode."
1005
1024
  })
1006
1025
  }))
1007
1026
  }),
1008
- output: import_effect7.Schema.Void
1027
+ output: import_effect8.Schema.Void
1009
1028
  }) {
1010
1029
  }
1011
1030
  LayoutAction2.SetLayoutMode = SetLayoutMode;
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({
1031
+ class UpdateSidebar extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1032
+ input: import_effect8.Schema.Struct({
1033
+ part: import_effect8.Schema.Literal("sidebar").annotations({
1015
1034
  description: "Updating the sidebar."
1016
1035
  }),
1017
- subject: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1036
+ subject: import_effect8.Schema.optional(import_effect8.Schema.String.annotations({
1018
1037
  description: "URI of the component to display in the sidebar."
1019
1038
  })),
1020
- options: import_effect7.Schema.optional(import_effect7.Schema.Struct({
1021
- state: import_effect7.Schema.Literal("closed", "collapsed", "expanded").annotations({
1039
+ options: import_effect8.Schema.optional(import_effect8.Schema.Struct({
1040
+ state: import_effect8.Schema.Literal("closed", "collapsed", "expanded").annotations({
1022
1041
  description: "Whether the sidebar is closed, collapsed, or expanded."
1023
1042
  })
1024
1043
  }))
1025
1044
  }),
1026
- output: import_effect7.Schema.Void
1045
+ output: import_effect8.Schema.Void
1027
1046
  }) {
1028
1047
  }
1029
1048
  LayoutAction2.UpdateSidebar = UpdateSidebar;
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({
1049
+ class UpdateComplementary extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1050
+ input: import_effect8.Schema.Struct({
1051
+ part: import_effect8.Schema.Literal("complementary").annotations({
1033
1052
  description: "Updating the complementary sidebar."
1034
1053
  }),
1035
- subject: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1054
+ subject: import_effect8.Schema.optional(import_effect8.Schema.String.annotations({
1036
1055
  description: "URI of the component to display in the complementary area."
1037
1056
  })),
1038
- options: import_effect7.Schema.optional(import_effect7.Schema.Struct({
1039
- state: import_effect7.Schema.Literal("closed", "collapsed", "expanded").annotations({
1057
+ options: import_effect8.Schema.optional(import_effect8.Schema.Struct({
1058
+ state: import_effect8.Schema.Literal("closed", "collapsed", "expanded").annotations({
1040
1059
  description: "Whether the complementary sidebar is closed, collapsed, or expanded."
1041
1060
  })
1042
1061
  }))
1043
1062
  }),
1044
- output: import_effect7.Schema.Void
1063
+ output: import_effect8.Schema.Void
1045
1064
  }) {
1046
1065
  }
1047
1066
  LayoutAction2.UpdateComplementary = UpdateComplementary;
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({
1067
+ class UpdateDialog extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1068
+ input: import_effect8.Schema.Struct({
1069
+ part: import_effect8.Schema.Literal("dialog").annotations({
1051
1070
  description: "Updating the dialog."
1052
1071
  }),
1053
- subject: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1072
+ subject: import_effect8.Schema.optional(import_effect8.Schema.String.annotations({
1054
1073
  description: "URI of the component to display in the dialog."
1055
1074
  })),
1056
- options: import_effect7.Schema.Struct({
1057
- state: import_effect7.Schema.optional(import_effect7.Schema.Boolean.annotations({
1075
+ options: import_effect8.Schema.Struct({
1076
+ state: import_effect8.Schema.optional(import_effect8.Schema.Boolean.annotations({
1058
1077
  description: "Whether the dialog is open or closed."
1059
1078
  })),
1060
- blockAlign: import_effect7.Schema.optional(import_effect7.Schema.Literal("start", "center", "end").annotations({
1079
+ blockAlign: import_effect8.Schema.optional(import_effect8.Schema.Literal("start", "center", "end").annotations({
1061
1080
  description: "The alignment of the dialog."
1062
1081
  })),
1063
- type: import_effect7.Schema.optional(import_effect7.Schema.Literal("default", "alert").annotations({
1082
+ type: import_effect8.Schema.optional(import_effect8.Schema.Literal("default", "alert").annotations({
1064
1083
  description: "The type of dialog."
1065
1084
  })),
1066
- props: import_effect7.Schema.optional(import_effect7.Schema.Record({
1067
- key: import_effect7.Schema.String,
1068
- value: import_effect7.Schema.Any
1085
+ props: import_effect8.Schema.optional(import_effect8.Schema.Record({
1086
+ key: import_effect8.Schema.String,
1087
+ value: import_effect8.Schema.Any
1069
1088
  }).annotations({
1070
1089
  description: "Additional props for the dialog."
1071
1090
  }))
1072
1091
  })
1073
1092
  }),
1074
- output: import_effect7.Schema.Void
1093
+ output: import_effect8.Schema.Void
1075
1094
  }) {
1076
1095
  }
1077
1096
  LayoutAction2.UpdateDialog = UpdateDialog;
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({
1097
+ class UpdatePopover extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1098
+ input: import_effect8.Schema.Struct({
1099
+ part: import_effect8.Schema.Literal("popover").annotations({
1081
1100
  description: "Updating the popover."
1082
1101
  }),
1083
- subject: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1084
- description: "URI of the component to display in the popover."
1102
+ subject: import_effect8.Schema.optional(import_effect8.Schema.Any.annotations({
1103
+ description: "URI of the component to display in the popover or data to pass to the popover."
1085
1104
  })),
1086
- options: import_effect7.Schema.Struct({
1087
- anchorId: import_effect7.Schema.String.annotations({
1088
- description: "The id of the element to anchor the popover to."
1089
- }),
1090
- side: import_effect7.Schema.optional(import_effect7.Schema.Literal("top", "right", "bottom", "left").annotations({
1105
+ options: import_effect8.Schema.Struct({
1106
+ side: import_effect8.Schema.optional(import_effect8.Schema.Literal("top", "right", "bottom", "left").annotations({
1091
1107
  description: "The side of the anchor."
1092
1108
  })),
1093
- state: import_effect7.Schema.optional(import_effect7.Schema.Boolean.annotations({
1109
+ state: import_effect8.Schema.optional(import_effect8.Schema.Boolean.annotations({
1094
1110
  description: "Whether the popover is open or closed."
1095
1111
  })),
1096
- props: import_effect7.Schema.optional(import_effect7.Schema.Record({
1097
- key: import_effect7.Schema.String,
1098
- value: import_effect7.Schema.Any
1112
+ props: import_effect8.Schema.optional(import_effect8.Schema.Record({
1113
+ key: import_effect8.Schema.String,
1114
+ value: import_effect8.Schema.Any
1099
1115
  }).annotations({
1100
1116
  description: "Additional props for the popover."
1101
1117
  }))
1102
- })
1118
+ }).pipe(import_effect8.Schema.extend(import_effect8.Schema.Union(import_effect8.Schema.Struct({
1119
+ variant: import_effect8.Schema.Literal("virtual"),
1120
+ anchor: import_effect8.Schema.Any.annotations({
1121
+ description: "The DOM element to anchor the popover to."
1122
+ })
1123
+ }), import_effect8.Schema.Struct({
1124
+ variant: import_effect8.Schema.optional(import_effect8.Schema.Literal("react")),
1125
+ anchorId: import_effect8.Schema.String.annotations({
1126
+ description: "An id that can be used to determine whether to render the anchor subcomponent."
1127
+ })
1128
+ }))))
1103
1129
  }),
1104
- output: import_effect7.Schema.Void
1130
+ output: import_effect8.Schema.Void
1105
1131
  }) {
1106
1132
  }
1107
1133
  LayoutAction2.UpdatePopover = UpdatePopover;
1108
- LayoutAction2.Toast = import_effect7.Schema.Struct({
1109
- id: import_effect7.Schema.String.annotations({
1134
+ LayoutAction2.Toast = import_effect8.Schema.Struct({
1135
+ id: import_effect8.Schema.String.annotations({
1110
1136
  description: "The id of the toast."
1111
1137
  }),
1112
- title: import_effect7.Schema.optional(Label.annotations({
1138
+ title: import_effect8.Schema.optional(Label.annotations({
1113
1139
  description: "The title of the toast."
1114
1140
  })),
1115
- description: import_effect7.Schema.optional(Label.annotations({
1141
+ description: import_effect8.Schema.optional(Label.annotations({
1116
1142
  description: "The description of the toast."
1117
1143
  })),
1118
- icon: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1144
+ icon: import_effect8.Schema.optional(import_effect8.Schema.String.annotations({
1119
1145
  description: "The icon of the toast."
1120
1146
  })),
1121
- duration: import_effect7.Schema.optional(import_effect7.Schema.Number.annotations({
1147
+ duration: import_effect8.Schema.optional(import_effect8.Schema.Number.annotations({
1122
1148
  description: "The duration of the toast."
1123
1149
  })),
1124
- closeLabel: import_effect7.Schema.optional(Label.annotations({
1150
+ closeLabel: import_effect8.Schema.optional(Label.annotations({
1125
1151
  description: "The label of the close button."
1126
1152
  })),
1127
- actionLabel: import_effect7.Schema.optional(Label.annotations({
1153
+ actionLabel: import_effect8.Schema.optional(Label.annotations({
1128
1154
  description: "The label of the action button."
1129
1155
  })),
1130
- actionAlt: import_effect7.Schema.optional(Label.annotations({
1156
+ actionAlt: import_effect8.Schema.optional(Label.annotations({
1131
1157
  description: "The alt text of the action button."
1132
1158
  })),
1133
- onAction: import_effect7.Schema.optional(import_effect7.Schema.Any.annotations({
1159
+ onAction: import_effect8.Schema.optional(import_effect8.Schema.Any.annotations({
1134
1160
  description: "The action to perform when the action button is clicked."
1135
1161
  }))
1136
1162
  });
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({
1163
+ class AddToast extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1164
+ input: import_effect8.Schema.Struct({
1165
+ part: import_effect8.Schema.Literal("toast").annotations({
1140
1166
  description: "Adding a toast."
1141
1167
  }),
1142
1168
  subject: LayoutAction2.Toast.annotations({
1143
1169
  description: "The toast to add."
1144
1170
  })
1145
1171
  }),
1146
- output: import_effect7.Schema.Void
1172
+ output: import_effect8.Schema.Void
1147
1173
  }) {
1148
1174
  }
1149
1175
  LayoutAction2.AddToast = AddToast;
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({
1176
+ class SwitchWorkspace extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1177
+ input: import_effect8.Schema.Struct({
1178
+ part: import_effect8.Schema.Literal("workspace").annotations({
1153
1179
  description: "Switching the workspace."
1154
1180
  }),
1155
- subject: import_effect7.Schema.String.annotations({
1181
+ subject: import_effect8.Schema.String.annotations({
1156
1182
  description: "The id of the workspace to switch to."
1157
1183
  })
1158
1184
  }),
1159
- output: import_effect7.Schema.Void
1185
+ output: import_effect8.Schema.Void
1160
1186
  }) {
1161
1187
  }
1162
1188
  LayoutAction2.SwitchWorkspace = SwitchWorkspace;
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({
1189
+ class RevertWorkspace extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1190
+ input: import_effect8.Schema.Struct({
1191
+ part: import_effect8.Schema.Literal("workspace").annotations({
1166
1192
  description: "Switching the workspace."
1167
1193
  }),
1168
- options: import_effect7.Schema.Struct({
1169
- revert: import_effect7.Schema.Literal(true).annotations({
1194
+ options: import_effect8.Schema.Struct({
1195
+ revert: import_effect8.Schema.Literal(true).annotations({
1170
1196
  description: "Revert to the previous workspace."
1171
1197
  })
1172
1198
  })
1173
1199
  }),
1174
- output: import_effect7.Schema.Void
1200
+ output: import_effect8.Schema.Void
1175
1201
  }) {
1176
1202
  }
1177
1203
  LayoutAction2.RevertWorkspace = RevertWorkspace;
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({
1204
+ class Open extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1205
+ input: import_effect8.Schema.Struct({
1206
+ part: import_effect8.Schema.Literal("main").annotations({
1181
1207
  description: "Opening an item in the main content area."
1182
1208
  }),
1183
- subject: import_effect7.Schema.Array(import_effect7.Schema.String.annotations({
1209
+ subject: import_effect8.Schema.Array(import_effect8.Schema.String.annotations({
1184
1210
  description: "Ids of the items to open."
1185
1211
  })),
1186
- options: import_effect7.Schema.optional(import_effect7.Schema.Struct({
1187
- state: import_effect7.Schema.optional(import_effect7.Schema.Literal(true).annotations({
1212
+ options: import_effect8.Schema.optional(import_effect8.Schema.Struct({
1213
+ state: import_effect8.Schema.optional(import_effect8.Schema.Literal(true).annotations({
1188
1214
  description: "The items are being added."
1189
1215
  })),
1190
- variant: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1216
+ variant: import_effect8.Schema.optional(import_effect8.Schema.String.annotations({
1191
1217
  description: "The variant of the item to open."
1192
1218
  })),
1193
- key: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1219
+ key: import_effect8.Schema.optional(import_effect8.Schema.String.annotations({
1194
1220
  description: "If provided, will replace item with a matching key (id prefix)."
1195
1221
  })),
1196
- scrollIntoView: import_effect7.Schema.optional(import_effect7.Schema.Boolean.annotations({
1222
+ scrollIntoView: import_effect8.Schema.optional(import_effect8.Schema.Boolean.annotations({
1197
1223
  description: "Scroll the items into view."
1198
1224
  })),
1199
- pivotId: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1225
+ pivotId: import_effect8.Schema.optional(import_effect8.Schema.String.annotations({
1200
1226
  description: "The id of the item to place new items next to."
1201
1227
  })),
1202
- positioning: import_effect7.Schema.optional(import_effect7.Schema.Union(import_effect7.Schema.Literal("start").annotations({
1228
+ positioning: import_effect8.Schema.optional(import_effect8.Schema.Union(import_effect8.Schema.Literal("start").annotations({
1203
1229
  description: "The items are being added before the pivot item."
1204
- }), import_effect7.Schema.Literal("end").annotations({
1230
+ }), import_effect8.Schema.Literal("end").annotations({
1205
1231
  description: "The items are being added after the pivot item."
1206
1232
  })))
1207
1233
  }))
1208
1234
  }),
1209
- output: import_effect7.Schema.Void
1235
+ output: import_effect8.Schema.Void
1210
1236
  }) {
1211
1237
  }
1212
1238
  LayoutAction2.Open = Open;
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({
1239
+ class Set2 extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1240
+ input: import_effect8.Schema.Struct({
1241
+ part: import_effect8.Schema.Literal("main").annotations({
1216
1242
  description: "Setting items in the main content area."
1217
1243
  }),
1218
- subject: import_effect7.Schema.Array(import_effect7.Schema.String.annotations({
1244
+ subject: import_effect8.Schema.Array(import_effect8.Schema.String.annotations({
1219
1245
  description: "Ids of the items to set."
1220
1246
  })),
1221
- options: import_effect7.Schema.Struct({
1222
- override: import_effect7.Schema.Literal(true).annotations({
1247
+ options: import_effect8.Schema.Struct({
1248
+ override: import_effect8.Schema.Literal(true).annotations({
1223
1249
  description: "Override the current items in the main content area."
1224
1250
  })
1225
1251
  })
1226
1252
  }),
1227
- output: import_effect7.Schema.Void
1253
+ output: import_effect8.Schema.Void
1228
1254
  }) {
1229
1255
  }
1230
1256
  LayoutAction2.Set = Set2;
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({
1257
+ class Close extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1258
+ input: import_effect8.Schema.Struct({
1259
+ part: import_effect8.Schema.Literal("main").annotations({
1234
1260
  description: "Closing items in the main content area."
1235
1261
  }),
1236
- subject: import_effect7.Schema.Array(import_effect7.Schema.String.annotations({
1262
+ subject: import_effect8.Schema.Array(import_effect8.Schema.String.annotations({
1237
1263
  description: "Ids of the items to close."
1238
1264
  })),
1239
- options: import_effect7.Schema.Struct({
1240
- state: import_effect7.Schema.Literal(false).annotations({
1265
+ options: import_effect8.Schema.Struct({
1266
+ state: import_effect8.Schema.Literal(false).annotations({
1241
1267
  description: "The items are being removed."
1242
1268
  })
1243
1269
  })
1244
1270
  }),
1245
- output: import_effect7.Schema.Void
1271
+ output: import_effect8.Schema.Void
1246
1272
  }) {
1247
1273
  }
1248
1274
  LayoutAction2.Close = Close;
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({
1275
+ class ScrollIntoView extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1276
+ input: import_effect8.Schema.Struct({
1277
+ part: import_effect8.Schema.Literal("current").annotations({
1252
1278
  description: "Setting the current item"
1253
1279
  }),
1254
- subject: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
1280
+ subject: import_effect8.Schema.optional(import_effect8.Schema.String.annotations({
1255
1281
  description: "The id of the item to set as current."
1256
1282
  })),
1257
- options: import_effect7.Schema.optional(import_effect7.Schema.Record({
1258
- key: import_effect7.Schema.String,
1259
- value: import_effect7.Schema.Any
1283
+ options: import_effect8.Schema.optional(import_effect8.Schema.Record({
1284
+ key: import_effect8.Schema.String,
1285
+ value: import_effect8.Schema.Any
1260
1286
  }).annotations({
1261
1287
  description: "Additional options for the scroll into view."
1262
1288
  }))
1263
1289
  }),
1264
- output: import_effect7.Schema.Void
1290
+ output: import_effect8.Schema.Void
1265
1291
  }) {
1266
1292
  }
1267
1293
  LayoutAction2.ScrollIntoView = ScrollIntoView;
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({
1294
+ class Expose extends import_effect8.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
1295
+ input: import_effect8.Schema.Struct({
1296
+ part: import_effect8.Schema.Literal("navigation").annotations({
1271
1297
  description: "Exposing an item in the navigation area."
1272
1298
  }),
1273
- subject: import_effect7.Schema.String.annotations({
1299
+ subject: import_effect8.Schema.String.annotations({
1274
1300
  description: "The id of the item to expose."
1275
1301
  })
1276
1302
  }),
1277
- output: import_effect7.Schema.Void
1303
+ output: import_effect8.Schema.Void
1278
1304
  }) {
1279
1305
  }
1280
1306
  LayoutAction2.Expose = Expose;
1281
1307
  })(LayoutAction || (LayoutAction = {}));
1282
1308
  var createSurface = (definition) => definition;
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
1309
+ var ResourceKey = import_effect9.Schema.Union(import_effect9.Schema.String, import_effect9.Schema.Record({
1310
+ key: import_effect9.Schema.String,
1311
+ value: import_effect9.Schema.Any
1286
1312
  }));
1287
- var ResourceLanguage = import_effect8.Schema.Record({
1288
- key: import_effect8.Schema.String,
1313
+ var ResourceLanguage = import_effect9.Schema.Record({
1314
+ key: import_effect9.Schema.String,
1289
1315
  value: ResourceKey
1290
1316
  });
1291
- var Resource = import_effect8.Schema.Record({
1292
- key: import_effect8.Schema.String,
1317
+ var Resource = import_effect9.Schema.Record({
1318
+ key: import_effect9.Schema.String,
1293
1319
  value: ResourceLanguage
1294
1320
  });
1295
1321
  var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/sdk/app-framework/src/plugin-intent/intent-dispatcher.ts";
@@ -1365,7 +1391,7 @@ var createDispatcher = (getResolvers, { executionLimit = EXECUTION_LIMIT, histor
1365
1391
  })).catch((error) => {
1366
1392
  import_log.log.catch(error, void 0, {
1367
1393
  F: __dxlog_file3,
1368
- L: 254,
1394
+ L: 270,
1369
1395
  S: void 0,
1370
1396
  C: (f, a) => f(...a)
1371
1397
  });
@@ -1419,7 +1445,7 @@ var createDispatcher = (getResolvers, { executionLimit = EXECUTION_LIMIT, histor
1419
1445
  var defaultEffect = () => import_effect.Effect.fail(new Error("Intent runtime not ready"));
1420
1446
  var defaultPromise = () => import_effect.Effect.runPromise(defaultEffect());
1421
1447
  var intent_dispatcher_default = (context) => {
1422
- const state = (0, import_live_object.create)({
1448
+ const state = (0, import_live_object.live)({
1423
1449
  dispatch: defaultEffect,
1424
1450
  dispatchPromise: defaultPromise,
1425
1451
  undo: defaultEffect,
@@ -1446,6 +1472,7 @@ var intent_dispatcher_default = (context) => {
1446
1472
  // Annotate the CommonJS export names for ESM import in node:
1447
1473
  0 && (module.exports = {
1448
1474
  Capabilities,
1475
+ CollaborationActions,
1449
1476
  Events,
1450
1477
  FileInfoSchema,
1451
1478
  INTENT_ACTION,
@@ -1483,4 +1510,4 @@ var intent_dispatcher_default = (context) => {
1483
1510
  lazy,
1484
1511
  oneOf
1485
1512
  });
1486
- //# sourceMappingURL=chunk-YIFTVCOR.cjs.map
1513
+ //# sourceMappingURL=chunk-EGY2ANJA.cjs.map