@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.
- package/dist/lib/browser/{app-graph-builder-576BHZC7.mjs → app-graph-builder-RHU5WUGJ.mjs} +2 -2
- package/dist/lib/browser/{chunk-6AVTZPMT.mjs → chunk-5WHZ3ORL.mjs} +187 -159
- package/dist/lib/browser/chunk-5WHZ3ORL.mjs.map +7 -0
- package/dist/lib/browser/{chunk-PPIBZ5N4.mjs → chunk-GYFO2C4Q.mjs} +4 -4
- package/dist/lib/browser/chunk-GYFO2C4Q.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +7 -5
- package/dist/lib/browser/index.mjs.map +1 -1
- package/dist/lib/browser/{intent-dispatcher-3Q67MHZZ.mjs → intent-dispatcher-T6YETUE7.mjs} +2 -2
- package/dist/lib/browser/{intent-resolver-O763LCLG.mjs → intent-resolver-UQFD7VBJ.mjs} +2 -2
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{store-URSN7DZI.mjs → store-NP42FCZO.mjs} +2 -2
- package/dist/lib/browser/testing/index.mjs +2 -2
- package/dist/lib/browser/worker.mjs +3 -1
- package/dist/lib/node/{app-graph-builder-JZCSKYPY.cjs → app-graph-builder-QGHI2J2R.cjs} +12 -12
- package/dist/lib/node/{chunk-YIFTVCOR.cjs → chunk-EGY2ANJA.cjs} +177 -150
- package/dist/lib/node/chunk-EGY2ANJA.cjs.map +7 -0
- package/dist/lib/node/{chunk-YNTKVTVX.cjs → chunk-PIFNLI5K.cjs} +20 -20
- package/dist/lib/node/{chunk-YNTKVTVX.cjs.map → chunk-PIFNLI5K.cjs.map} +3 -3
- package/dist/lib/node/index.cjs +68 -66
- package/dist/lib/node/index.cjs.map +1 -1
- package/dist/lib/node/{intent-dispatcher-H334XLFD.cjs → intent-dispatcher-BEKV2HG3.cjs} +8 -8
- package/dist/lib/node/{intent-dispatcher-H334XLFD.cjs.map → intent-dispatcher-BEKV2HG3.cjs.map} +2 -2
- package/dist/lib/node/{intent-resolver-3F4POWAM.cjs → intent-resolver-NALI2KSH.cjs} +8 -8
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{store-OFDHTDCB.cjs → store-I7KM7GGP.cjs} +7 -7
- package/dist/lib/node/testing/index.cjs +8 -8
- package/dist/lib/node/worker.cjs +39 -37
- package/dist/lib/node/worker.cjs.map +2 -2
- package/dist/lib/node-esm/{app-graph-builder-VYKLSMSZ.mjs → app-graph-builder-45FJO6JA.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-R6A7Z4LU.mjs → chunk-KFDC5QSQ.mjs} +4 -4
- package/dist/lib/{browser/chunk-PPIBZ5N4.mjs.map → node-esm/chunk-KFDC5QSQ.mjs.map} +3 -3
- package/dist/lib/node-esm/{chunk-AHKIPS2L.mjs → chunk-YQMLJUYN.mjs} +187 -159
- package/dist/lib/node-esm/chunk-YQMLJUYN.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +7 -5
- package/dist/lib/node-esm/index.mjs.map +1 -1
- package/dist/lib/node-esm/{intent-dispatcher-YDE2ONZA.mjs → intent-dispatcher-MYETZPUW.mjs} +2 -2
- package/dist/lib/node-esm/{intent-resolver-LAGJ7LXM.mjs → intent-resolver-BW5I7SOS.mjs} +2 -2
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{store-EYSUVNCS.mjs → store-MKIES4HL.mjs} +2 -2
- package/dist/lib/node-esm/testing/index.mjs +2 -2
- package/dist/lib/node-esm/worker.mjs +3 -1
- package/dist/types/src/common/collaboration.d.ts +19 -0
- package/dist/types/src/common/collaboration.d.ts.map +1 -0
- package/dist/types/src/common/index.d.ts +1 -0
- package/dist/types/src/common/index.d.ts.map +1 -1
- package/dist/types/src/common/layout.d.ts +9 -4
- package/dist/types/src/common/layout.d.ts.map +1 -1
- package/dist/types/src/core/capabilities.d.ts +5 -2
- package/dist/types/src/core/capabilities.d.ts.map +1 -1
- package/dist/types/src/core/events.d.ts +4 -1
- package/dist/types/src/core/events.d.ts.map +1 -1
- package/dist/types/src/core/manager.d.ts +8 -8
- package/dist/types/src/core/manager.d.ts.map +1 -1
- package/dist/types/src/core/plugin.d.ts +2 -1
- package/dist/types/src/core/plugin.d.ts.map +1 -1
- package/dist/types/src/plugin-intent/intent-dispatcher.d.ts +27 -1
- package/dist/types/src/plugin-intent/intent-dispatcher.d.ts.map +1 -1
- package/package.json +22 -18
- package/project.json +2 -1
- package/src/App.tsx +2 -2
- package/src/common/collaboration.ts +21 -0
- package/src/common/index.ts +1 -0
- package/src/common/layout.ts +21 -3
- package/src/core/capabilities.ts +9 -5
- package/src/core/events.ts +4 -1
- package/src/core/manager.test.ts +3 -3
- package/src/core/manager.ts +10 -10
- package/src/core/plugin.ts +2 -1
- package/src/plugin-intent/intent-dispatcher.ts +18 -2
- package/typedoc/.nojekyll +1 -0
- package/typedoc/assets/hierarchy.js +1 -0
- package/typedoc/assets/highlight.css +106 -0
- package/typedoc/assets/icons.js +18 -0
- package/typedoc/assets/icons.svg +1 -0
- package/typedoc/assets/main.js +60 -0
- package/typedoc/assets/navigation.js +1 -0
- package/typedoc/assets/search.js +1 -0
- package/typedoc/assets/style.css +1640 -0
- package/typedoc/classes/CollaborationActions.InsertContent.html +421 -0
- package/typedoc/classes/ErrorBoundary.html +125 -0
- package/typedoc/classes/IntentAction.ShowUndo.html +227 -0
- package/typedoc/classes/IntentAction.Track.html +266 -0
- package/typedoc/classes/LayoutAction.AddToast.html +265 -0
- package/typedoc/classes/LayoutAction.Close.html +382 -0
- package/typedoc/classes/LayoutAction.Expose.html +265 -0
- package/typedoc/classes/LayoutAction.Open.html +928 -0
- package/typedoc/classes/LayoutAction.RevertWorkspace.html +343 -0
- package/typedoc/classes/LayoutAction.ScrollIntoView.html +460 -0
- package/typedoc/classes/LayoutAction.Set.html +382 -0
- package/typedoc/classes/LayoutAction.SetLayoutMode.html +421 -0
- package/typedoc/classes/LayoutAction.SwitchWorkspace.html +265 -0
- package/typedoc/classes/LayoutAction.UpdateComplementary.html +616 -0
- package/typedoc/classes/LayoutAction.UpdateDialog.html +733 -0
- package/typedoc/classes/LayoutAction.UpdateLayout.html +461 -0
- package/typedoc/classes/LayoutAction.UpdatePopover.html +1435 -0
- package/typedoc/classes/LayoutAction.UpdateSidebar.html +538 -0
- package/typedoc/classes/Plugin.html +6 -0
- package/typedoc/classes/PluginManager.html +42 -0
- package/typedoc/classes/PluginModule.html +18 -0
- package/typedoc/classes/PluginsContext.html +25 -0
- package/typedoc/classes/SettingsAction.Open.html +226 -0
- package/typedoc/classes/SettingsAction.OpenPluginRegistry.html +265 -0
- package/typedoc/functions/Events.createStateEvent.html +2 -0
- package/typedoc/functions/IntentPlugin.html +1 -0
- package/typedoc/functions/SettingsPlugin.html +1 -0
- package/typedoc/functions/allOf.html +2 -0
- package/typedoc/functions/chain.html +3 -0
- package/typedoc/functions/contributes.html +2 -0
- package/typedoc/functions/createApp.html +6 -0
- package/typedoc/functions/createDispatcher.html +3 -0
- package/typedoc/functions/createIntent.html +6 -0
- package/typedoc/functions/createResolver.html +2 -0
- package/typedoc/functions/createSurface.html +2 -0
- package/typedoc/functions/defineCapability.html +2 -0
- package/typedoc/functions/defineEvent.html +2 -0
- package/typedoc/functions/defineModule.html +2 -0
- package/typedoc/functions/definePlugin.html +2 -0
- package/typedoc/functions/eventKey.html +2 -0
- package/typedoc/functions/getEvents.html +2 -0
- package/typedoc/functions/isAllOf.html +2 -0
- package/typedoc/functions/isOneOf.html +2 -0
- package/typedoc/functions/isSurfaceAvailable.html +2 -0
- package/typedoc/functions/lazy.html +2 -0
- package/typedoc/functions/oneOf.html +2 -0
- package/typedoc/functions/useAppGraph.html +1 -0
- package/typedoc/functions/useCapabilities.html +3 -0
- package/typedoc/functions/useCapability.html +4 -0
- package/typedoc/functions/useIntentDispatcher.html +1 -0
- package/typedoc/functions/useIntentResolver.html +1 -0
- package/typedoc/functions/useLayout.html +1 -0
- package/typedoc/functions/usePluginManager.html +2 -0
- package/typedoc/hierarchy.html +1 -0
- package/typedoc/index.html +16 -0
- package/typedoc/interfaces/LayoutAction.Toast.html +10 -0
- package/typedoc/media/LICENSE +8 -0
- package/typedoc/modules/Capabilities.html +1 -0
- package/typedoc/modules/CollaborationActions.html +1 -0
- package/typedoc/modules/Events.html +1 -0
- package/typedoc/modules/IntentAction.html +1 -0
- package/typedoc/modules/LayoutAction.html +2 -0
- package/typedoc/modules/SettingsAction.html +1 -0
- package/typedoc/modules.html +1 -0
- package/typedoc/types/ActivationEvent.html +8 -0
- package/typedoc/types/ActivationEvents.html +2 -0
- package/typedoc/types/AnyCapability.html +1 -0
- package/typedoc/types/AnyIntent.html +1 -0
- package/typedoc/types/AnyIntentChain.html +1 -0
- package/typedoc/types/AnyIntentEffectResult.html +1 -0
- package/typedoc/types/AnyIntentResolver.html +1 -0
- package/typedoc/types/AnyIntentResult.html +1 -0
- package/typedoc/types/Capabilities.FileUploader.html +1 -0
- package/typedoc/types/Capabilities.IntentResolver.html +1 -0
- package/typedoc/types/Capabilities.Layout.html +1 -0
- package/typedoc/types/Capabilities.Metadata.html +1 -0
- package/typedoc/types/Capabilities.ReactContext.html +1 -0
- package/typedoc/types/Capabilities.ReactRoot.html +1 -0
- package/typedoc/types/Capabilities.ReactSurface.html +1 -0
- package/typedoc/types/Capabilities.Settings.html +4 -0
- package/typedoc/types/Capability.html +9 -0
- package/typedoc/types/CreateAppOptions.html +9 -0
- package/typedoc/types/FileInfo.html +1 -0
- package/typedoc/types/Intent.html +14 -0
- package/typedoc/types/IntentChain.html +6 -0
- package/typedoc/types/IntentContext.html +5 -0
- package/typedoc/types/IntentData.html +1 -0
- package/typedoc/types/IntentDispatcher.html +2 -0
- package/typedoc/types/IntentDispatcherResult.html +2 -0
- package/typedoc/types/IntentEffectDefinition.html +2 -0
- package/typedoc/types/IntentEffectResult.html +15 -0
- package/typedoc/types/IntentParams.html +3 -0
- package/typedoc/types/IntentResolver.html +2 -0
- package/typedoc/types/IntentResultData.html +1 -0
- package/typedoc/types/IntentSchema.html +1 -0
- package/typedoc/types/IntentUndo.html +2 -0
- package/typedoc/types/InterfaceDef.html +4 -0
- package/typedoc/types/Label.html +1 -0
- package/typedoc/types/NodeSerializer.html +8 -0
- package/typedoc/types/PluginManagerOptions.html +5 -0
- package/typedoc/types/PluginMeta.html +21 -0
- package/typedoc/types/PromiseIntentDispatcher.html +2 -0
- package/typedoc/types/PromiseIntentUndo.html +2 -0
- package/typedoc/types/Resource.html +1 -0
- package/typedoc/types/ResourceKey.html +1 -0
- package/typedoc/types/ResourceLanguage.html +1 -0
- package/typedoc/types/SerializedNode.html +4 -0
- package/typedoc/types/SurfaceComponent.html +2 -0
- package/typedoc/types/SurfaceDefinition.html +2 -0
- package/typedoc/types/SurfaceProps.html +4 -0
- package/typedoc/variables/Capabilities.AppGraph.html +1 -0
- package/typedoc/variables/Capabilities.AppGraphBuilder.html +1 -0
- package/typedoc/variables/Capabilities.AppGraphSerializer.html +1 -0
- package/typedoc/variables/Capabilities.ArtifactDefinition.html +1 -0
- package/typedoc/variables/Capabilities.FileUploader.html +1 -0
- package/typedoc/variables/Capabilities.IntentDispatcher.html +1 -0
- package/typedoc/variables/Capabilities.IntentResolver.html +1 -0
- package/typedoc/variables/Capabilities.Layout.html +1 -0
- package/typedoc/variables/Capabilities.Metadata.html +1 -0
- package/typedoc/variables/Capabilities.Null.html +1 -0
- package/typedoc/variables/Capabilities.PluginManager.html +1 -0
- package/typedoc/variables/Capabilities.ReactContext.html +1 -0
- package/typedoc/variables/Capabilities.ReactRoot.html +1 -0
- package/typedoc/variables/Capabilities.ReactSurface.html +1 -0
- package/typedoc/variables/Capabilities.Settings.html +1 -0
- package/typedoc/variables/Capabilities.SettingsStore.html +1 -0
- package/typedoc/variables/Capabilities.Tools.html +1 -0
- package/typedoc/variables/Capabilities.Translations.html +1 -0
- package/typedoc/variables/Events.AppGraphReady.html +2 -0
- package/typedoc/variables/Events.DispatcherReady.html +2 -0
- package/typedoc/variables/Events.LayoutReady.html +1 -0
- package/typedoc/variables/Events.SettingsReady.html +2 -0
- package/typedoc/variables/Events.SetupAppGraph.html +2 -0
- package/typedoc/variables/Events.SetupArtifactDefinition.html +2 -0
- package/typedoc/variables/Events.SetupIntentResolver.html +2 -0
- package/typedoc/variables/Events.SetupMetadata.html +2 -0
- package/typedoc/variables/Events.SetupReactSurface.html +2 -0
- package/typedoc/variables/Events.SetupSettings.html +2 -0
- package/typedoc/variables/Events.SetupTranslations.html +2 -0
- package/typedoc/variables/Events.Startup.html +2 -0
- package/typedoc/variables/FileInfoSchema.html +1 -0
- package/typedoc/variables/INTENT_ACTION.html +1 -0
- package/typedoc/variables/INTENT_PLUGIN.html +1 -0
- package/typedoc/variables/LAYOUT_ACTION.html +1 -0
- package/typedoc/variables/LAYOUT_PLUGIN.html +1 -0
- package/typedoc/variables/Label.html +1 -0
- package/typedoc/variables/LayoutAction.Toast.html +1 -0
- package/typedoc/variables/LayoutAction.UPDATE_LAYOUT.html +1 -0
- package/typedoc/variables/PluginManagerProvider.html +2 -0
- package/typedoc/variables/Resource.html +2 -0
- package/typedoc/variables/ResourceKey.html +1 -0
- package/typedoc/variables/ResourceLanguage.html +1 -0
- package/typedoc/variables/SETTINGS_ACTION.html +1 -0
- package/typedoc/variables/SETTINGS_ID.html +1 -0
- package/typedoc/variables/SETTINGS_KEY.html +1 -0
- package/typedoc/variables/SETTINGS_PLUGIN.html +1 -0
- package/typedoc/variables/Surface.html +2 -0
- package/typedoc/variables/defaultFileTypes.html +1 -0
- package/dist/lib/browser/chunk-6AVTZPMT.mjs.map +0 -7
- package/dist/lib/node/chunk-YIFTVCOR.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-AHKIPS2L.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-R6A7Z4LU.mjs.map +0 -7
- /package/dist/lib/browser/{app-graph-builder-576BHZC7.mjs.map → app-graph-builder-RHU5WUGJ.mjs.map} +0 -0
- /package/dist/lib/browser/{intent-dispatcher-3Q67MHZZ.mjs.map → intent-dispatcher-T6YETUE7.mjs.map} +0 -0
- /package/dist/lib/browser/{intent-resolver-O763LCLG.mjs.map → intent-resolver-UQFD7VBJ.mjs.map} +0 -0
- /package/dist/lib/browser/{store-URSN7DZI.mjs.map → store-NP42FCZO.mjs.map} +0 -0
- /package/dist/lib/node/{app-graph-builder-JZCSKYPY.cjs.map → app-graph-builder-QGHI2J2R.cjs.map} +0 -0
- /package/dist/lib/node/{intent-resolver-3F4POWAM.cjs.map → intent-resolver-NALI2KSH.cjs.map} +0 -0
- /package/dist/lib/node/{store-OFDHTDCB.cjs.map → store-I7KM7GGP.cjs.map} +0 -0
- /package/dist/lib/node-esm/{app-graph-builder-VYKLSMSZ.mjs.map → app-graph-builder-45FJO6JA.mjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-dispatcher-YDE2ONZA.mjs.map → intent-dispatcher-MYETZPUW.mjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-resolver-LAGJ7LXM.mjs.map → intent-resolver-BW5I7SOS.mjs.map} +0 -0
- /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
|
|
30
|
-
__export(
|
|
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(
|
|
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.
|
|
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:
|
|
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:
|
|
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:
|
|
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.
|
|
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:
|
|
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.
|
|
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 =
|
|
945
|
-
name:
|
|
946
|
-
type:
|
|
947
|
-
url:
|
|
948
|
-
cid:
|
|
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-
|
|
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
|
|
972
|
-
input:
|
|
973
|
-
part:
|
|
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:
|
|
995
|
+
subject: import_effect8.Schema.optional(import_effect8.Schema.Any.annotations({
|
|
977
996
|
description: "The subject of the layout update."
|
|
978
997
|
})),
|
|
979
|
-
options:
|
|
980
|
-
key:
|
|
981
|
-
value:
|
|
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:
|
|
1005
|
+
output: import_effect8.Schema.Void
|
|
987
1006
|
}) {
|
|
988
1007
|
}
|
|
989
1008
|
LayoutAction2.UpdateLayout = UpdateLayout;
|
|
990
|
-
class SetLayoutMode extends
|
|
991
|
-
input:
|
|
992
|
-
part:
|
|
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:
|
|
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:
|
|
999
|
-
mode:
|
|
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
|
-
}),
|
|
1003
|
-
revert:
|
|
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:
|
|
1027
|
+
output: import_effect8.Schema.Void
|
|
1009
1028
|
}) {
|
|
1010
1029
|
}
|
|
1011
1030
|
LayoutAction2.SetLayoutMode = SetLayoutMode;
|
|
1012
|
-
class UpdateSidebar extends
|
|
1013
|
-
input:
|
|
1014
|
-
part:
|
|
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:
|
|
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:
|
|
1021
|
-
state:
|
|
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:
|
|
1045
|
+
output: import_effect8.Schema.Void
|
|
1027
1046
|
}) {
|
|
1028
1047
|
}
|
|
1029
1048
|
LayoutAction2.UpdateSidebar = UpdateSidebar;
|
|
1030
|
-
class UpdateComplementary extends
|
|
1031
|
-
input:
|
|
1032
|
-
part:
|
|
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:
|
|
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:
|
|
1039
|
-
state:
|
|
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:
|
|
1063
|
+
output: import_effect8.Schema.Void
|
|
1045
1064
|
}) {
|
|
1046
1065
|
}
|
|
1047
1066
|
LayoutAction2.UpdateComplementary = UpdateComplementary;
|
|
1048
|
-
class UpdateDialog extends
|
|
1049
|
-
input:
|
|
1050
|
-
part:
|
|
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:
|
|
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:
|
|
1057
|
-
state:
|
|
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:
|
|
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:
|
|
1082
|
+
type: import_effect8.Schema.optional(import_effect8.Schema.Literal("default", "alert").annotations({
|
|
1064
1083
|
description: "The type of dialog."
|
|
1065
1084
|
})),
|
|
1066
|
-
props:
|
|
1067
|
-
key:
|
|
1068
|
-
value:
|
|
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:
|
|
1093
|
+
output: import_effect8.Schema.Void
|
|
1075
1094
|
}) {
|
|
1076
1095
|
}
|
|
1077
1096
|
LayoutAction2.UpdateDialog = UpdateDialog;
|
|
1078
|
-
class UpdatePopover extends
|
|
1079
|
-
input:
|
|
1080
|
-
part:
|
|
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:
|
|
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:
|
|
1087
|
-
|
|
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:
|
|
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:
|
|
1097
|
-
key:
|
|
1098
|
-
value:
|
|
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:
|
|
1130
|
+
output: import_effect8.Schema.Void
|
|
1105
1131
|
}) {
|
|
1106
1132
|
}
|
|
1107
1133
|
LayoutAction2.UpdatePopover = UpdatePopover;
|
|
1108
|
-
LayoutAction2.Toast =
|
|
1109
|
-
id:
|
|
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:
|
|
1138
|
+
title: import_effect8.Schema.optional(Label.annotations({
|
|
1113
1139
|
description: "The title of the toast."
|
|
1114
1140
|
})),
|
|
1115
|
-
description:
|
|
1141
|
+
description: import_effect8.Schema.optional(Label.annotations({
|
|
1116
1142
|
description: "The description of the toast."
|
|
1117
1143
|
})),
|
|
1118
|
-
icon:
|
|
1144
|
+
icon: import_effect8.Schema.optional(import_effect8.Schema.String.annotations({
|
|
1119
1145
|
description: "The icon of the toast."
|
|
1120
1146
|
})),
|
|
1121
|
-
duration:
|
|
1147
|
+
duration: import_effect8.Schema.optional(import_effect8.Schema.Number.annotations({
|
|
1122
1148
|
description: "The duration of the toast."
|
|
1123
1149
|
})),
|
|
1124
|
-
closeLabel:
|
|
1150
|
+
closeLabel: import_effect8.Schema.optional(Label.annotations({
|
|
1125
1151
|
description: "The label of the close button."
|
|
1126
1152
|
})),
|
|
1127
|
-
actionLabel:
|
|
1153
|
+
actionLabel: import_effect8.Schema.optional(Label.annotations({
|
|
1128
1154
|
description: "The label of the action button."
|
|
1129
1155
|
})),
|
|
1130
|
-
actionAlt:
|
|
1156
|
+
actionAlt: import_effect8.Schema.optional(Label.annotations({
|
|
1131
1157
|
description: "The alt text of the action button."
|
|
1132
1158
|
})),
|
|
1133
|
-
onAction:
|
|
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
|
|
1138
|
-
input:
|
|
1139
|
-
part:
|
|
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:
|
|
1172
|
+
output: import_effect8.Schema.Void
|
|
1147
1173
|
}) {
|
|
1148
1174
|
}
|
|
1149
1175
|
LayoutAction2.AddToast = AddToast;
|
|
1150
|
-
class SwitchWorkspace extends
|
|
1151
|
-
input:
|
|
1152
|
-
part:
|
|
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:
|
|
1181
|
+
subject: import_effect8.Schema.String.annotations({
|
|
1156
1182
|
description: "The id of the workspace to switch to."
|
|
1157
1183
|
})
|
|
1158
1184
|
}),
|
|
1159
|
-
output:
|
|
1185
|
+
output: import_effect8.Schema.Void
|
|
1160
1186
|
}) {
|
|
1161
1187
|
}
|
|
1162
1188
|
LayoutAction2.SwitchWorkspace = SwitchWorkspace;
|
|
1163
|
-
class RevertWorkspace extends
|
|
1164
|
-
input:
|
|
1165
|
-
part:
|
|
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:
|
|
1169
|
-
revert:
|
|
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:
|
|
1200
|
+
output: import_effect8.Schema.Void
|
|
1175
1201
|
}) {
|
|
1176
1202
|
}
|
|
1177
1203
|
LayoutAction2.RevertWorkspace = RevertWorkspace;
|
|
1178
|
-
class Open extends
|
|
1179
|
-
input:
|
|
1180
|
-
part:
|
|
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:
|
|
1209
|
+
subject: import_effect8.Schema.Array(import_effect8.Schema.String.annotations({
|
|
1184
1210
|
description: "Ids of the items to open."
|
|
1185
1211
|
})),
|
|
1186
|
-
options:
|
|
1187
|
-
state:
|
|
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:
|
|
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:
|
|
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:
|
|
1222
|
+
scrollIntoView: import_effect8.Schema.optional(import_effect8.Schema.Boolean.annotations({
|
|
1197
1223
|
description: "Scroll the items into view."
|
|
1198
1224
|
})),
|
|
1199
|
-
pivotId:
|
|
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:
|
|
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
|
-
}),
|
|
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:
|
|
1235
|
+
output: import_effect8.Schema.Void
|
|
1210
1236
|
}) {
|
|
1211
1237
|
}
|
|
1212
1238
|
LayoutAction2.Open = Open;
|
|
1213
|
-
class Set2 extends
|
|
1214
|
-
input:
|
|
1215
|
-
part:
|
|
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:
|
|
1244
|
+
subject: import_effect8.Schema.Array(import_effect8.Schema.String.annotations({
|
|
1219
1245
|
description: "Ids of the items to set."
|
|
1220
1246
|
})),
|
|
1221
|
-
options:
|
|
1222
|
-
override:
|
|
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:
|
|
1253
|
+
output: import_effect8.Schema.Void
|
|
1228
1254
|
}) {
|
|
1229
1255
|
}
|
|
1230
1256
|
LayoutAction2.Set = Set2;
|
|
1231
|
-
class Close extends
|
|
1232
|
-
input:
|
|
1233
|
-
part:
|
|
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:
|
|
1262
|
+
subject: import_effect8.Schema.Array(import_effect8.Schema.String.annotations({
|
|
1237
1263
|
description: "Ids of the items to close."
|
|
1238
1264
|
})),
|
|
1239
|
-
options:
|
|
1240
|
-
state:
|
|
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:
|
|
1271
|
+
output: import_effect8.Schema.Void
|
|
1246
1272
|
}) {
|
|
1247
1273
|
}
|
|
1248
1274
|
LayoutAction2.Close = Close;
|
|
1249
|
-
class ScrollIntoView extends
|
|
1250
|
-
input:
|
|
1251
|
-
part:
|
|
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:
|
|
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:
|
|
1258
|
-
key:
|
|
1259
|
-
value:
|
|
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:
|
|
1290
|
+
output: import_effect8.Schema.Void
|
|
1265
1291
|
}) {
|
|
1266
1292
|
}
|
|
1267
1293
|
LayoutAction2.ScrollIntoView = ScrollIntoView;
|
|
1268
|
-
class Expose extends
|
|
1269
|
-
input:
|
|
1270
|
-
part:
|
|
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:
|
|
1299
|
+
subject: import_effect8.Schema.String.annotations({
|
|
1274
1300
|
description: "The id of the item to expose."
|
|
1275
1301
|
})
|
|
1276
1302
|
}),
|
|
1277
|
-
output:
|
|
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 =
|
|
1284
|
-
key:
|
|
1285
|
-
value:
|
|
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 =
|
|
1288
|
-
key:
|
|
1313
|
+
var ResourceLanguage = import_effect9.Schema.Record({
|
|
1314
|
+
key: import_effect9.Schema.String,
|
|
1289
1315
|
value: ResourceKey
|
|
1290
1316
|
});
|
|
1291
|
-
var Resource =
|
|
1292
|
-
key:
|
|
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:
|
|
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.
|
|
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-
|
|
1513
|
+
//# sourceMappingURL=chunk-EGY2ANJA.cjs.map
|