@dxos/app-framework 0.8.2-main.f11618f → 0.8.2-staging.7ac8446
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-OHM2Z6YQ.mjs → app-graph-builder-576BHZC7.mjs} +2 -2
- package/dist/lib/browser/{chunk-DVNSCQJ5.mjs → chunk-6AVTZPMT.mjs} +159 -190
- package/dist/lib/browser/chunk-6AVTZPMT.mjs.map +7 -0
- package/dist/lib/browser/{chunk-X2YC645Z.mjs → chunk-PPIBZ5N4.mjs} +4 -4
- package/dist/lib/{node-esm/chunk-QHXUTJHE.mjs.map → browser/chunk-PPIBZ5N4.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +5 -7
- package/dist/lib/browser/index.mjs.map +1 -1
- package/dist/lib/browser/{intent-dispatcher-J7QIFHLO.mjs → intent-dispatcher-3Q67MHZZ.mjs} +2 -2
- package/dist/lib/browser/{intent-resolver-QV5MDMDV.mjs → intent-resolver-O763LCLG.mjs} +2 -2
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{store-XMPVLJOQ.mjs → store-URSN7DZI.mjs} +2 -2
- package/dist/lib/browser/testing/index.mjs +2 -2
- package/dist/lib/browser/worker.mjs +1 -3
- package/dist/lib/node/{app-graph-builder-Z45FKS52.cjs → app-graph-builder-JZCSKYPY.cjs} +12 -12
- package/dist/lib/node/{chunk-I3CJYEBC.cjs → chunk-YIFTVCOR.cjs} +150 -180
- package/dist/lib/node/chunk-YIFTVCOR.cjs.map +7 -0
- package/dist/lib/node/{chunk-5UOVF3OR.cjs → chunk-YNTKVTVX.cjs} +20 -20
- package/dist/lib/node/{chunk-5UOVF3OR.cjs.map → chunk-YNTKVTVX.cjs.map} +3 -3
- package/dist/lib/node/index.cjs +66 -68
- package/dist/lib/node/index.cjs.map +1 -1
- package/dist/lib/node/{intent-dispatcher-FQPJNKIZ.cjs → intent-dispatcher-H334XLFD.cjs} +8 -8
- package/dist/lib/node/{intent-dispatcher-FQPJNKIZ.cjs.map → intent-dispatcher-H334XLFD.cjs.map} +2 -2
- package/dist/lib/node/{intent-resolver-PBAOGJS6.cjs → intent-resolver-3F4POWAM.cjs} +8 -8
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{store-N7JLYYDI.cjs → store-OFDHTDCB.cjs} +7 -7
- package/dist/lib/node/testing/index.cjs +8 -8
- package/dist/lib/node/worker.cjs +37 -39
- package/dist/lib/node/worker.cjs.map +2 -2
- package/dist/lib/node-esm/{app-graph-builder-OMH534A4.mjs → app-graph-builder-VYKLSMSZ.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-GSDBF2CK.mjs → chunk-AHKIPS2L.mjs} +159 -190
- package/dist/lib/node-esm/chunk-AHKIPS2L.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-QHXUTJHE.mjs → chunk-R6A7Z4LU.mjs} +4 -4
- package/dist/lib/node-esm/chunk-R6A7Z4LU.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +5 -7
- package/dist/lib/node-esm/index.mjs.map +1 -1
- package/dist/lib/node-esm/{intent-dispatcher-QDUGA7NT.mjs → intent-dispatcher-YDE2ONZA.mjs} +2 -2
- package/dist/lib/node-esm/{intent-resolver-P7TC5RBD.mjs → intent-resolver-LAGJ7LXM.mjs} +2 -2
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{store-M2BYJL6K.mjs → store-EYSUVNCS.mjs} +2 -2
- package/dist/lib/node-esm/testing/index.mjs +2 -2
- package/dist/lib/node-esm/worker.mjs +1 -3
- package/dist/types/src/common/index.d.ts +0 -1
- package/dist/types/src/common/index.d.ts.map +1 -1
- package/dist/types/src/common/layout.d.ts +4 -10
- package/dist/types/src/common/layout.d.ts.map +1 -1
- package/dist/types/src/core/capabilities.d.ts +2 -5
- package/dist/types/src/core/capabilities.d.ts.map +1 -1
- package/dist/types/src/core/events.d.ts +1 -4
- 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 +1 -2
- package/dist/types/src/core/plugin.d.ts.map +1 -1
- package/dist/types/src/plugin-intent/intent-dispatcher.d.ts +1 -27
- package/dist/types/src/plugin-intent/intent-dispatcher.d.ts.map +1 -1
- package/package.json +18 -22
- package/project.json +1 -2
- package/src/App.tsx +2 -2
- package/src/common/index.ts +0 -1
- package/src/common/layout.ts +3 -22
- package/src/core/capabilities.ts +5 -9
- package/src/core/events.ts +1 -4
- package/src/core/manager.test.ts +3 -3
- package/src/core/manager.ts +10 -10
- package/src/core/plugin.ts +1 -2
- package/src/plugin-intent/intent-dispatcher.ts +2 -18
- package/dist/lib/browser/chunk-DVNSCQJ5.mjs.map +0 -7
- package/dist/lib/browser/chunk-X2YC645Z.mjs.map +0 -7
- package/dist/lib/node/chunk-I3CJYEBC.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-GSDBF2CK.mjs.map +0 -7
- package/dist/types/src/common/collaboration.d.ts +0 -19
- package/dist/types/src/common/collaboration.d.ts.map +0 -1
- package/src/common/collaboration.ts +0 -21
- package/typedoc/.nojekyll +0 -1
- package/typedoc/assets/hierarchy.js +0 -1
- package/typedoc/assets/highlight.css +0 -106
- package/typedoc/assets/icons.js +0 -18
- package/typedoc/assets/icons.svg +0 -1
- package/typedoc/assets/main.js +0 -60
- package/typedoc/assets/navigation.js +0 -1
- package/typedoc/assets/search.js +0 -1
- package/typedoc/assets/style.css +0 -1640
- package/typedoc/classes/CollaborationActions.InsertContent.html +0 -421
- package/typedoc/classes/ErrorBoundary.html +0 -125
- package/typedoc/classes/IntentAction.ShowUndo.html +0 -227
- package/typedoc/classes/IntentAction.Track.html +0 -266
- package/typedoc/classes/LayoutAction.AddToast.html +0 -265
- package/typedoc/classes/LayoutAction.Close.html +0 -382
- package/typedoc/classes/LayoutAction.Expose.html +0 -265
- package/typedoc/classes/LayoutAction.Open.html +0 -967
- package/typedoc/classes/LayoutAction.RevertWorkspace.html +0 -343
- package/typedoc/classes/LayoutAction.ScrollIntoView.html +0 -460
- package/typedoc/classes/LayoutAction.Set.html +0 -382
- package/typedoc/classes/LayoutAction.SetLayoutMode.html +0 -421
- package/typedoc/classes/LayoutAction.SwitchWorkspace.html +0 -265
- package/typedoc/classes/LayoutAction.UpdateComplementary.html +0 -616
- package/typedoc/classes/LayoutAction.UpdateDialog.html +0 -733
- package/typedoc/classes/LayoutAction.UpdateLayout.html +0 -461
- package/typedoc/classes/LayoutAction.UpdatePopover.html +0 -1435
- package/typedoc/classes/LayoutAction.UpdateSidebar.html +0 -538
- package/typedoc/classes/Plugin.html +0 -6
- package/typedoc/classes/PluginManager.html +0 -42
- package/typedoc/classes/PluginModule.html +0 -18
- package/typedoc/classes/PluginsContext.html +0 -25
- package/typedoc/classes/SettingsAction.Open.html +0 -226
- package/typedoc/classes/SettingsAction.OpenPluginRegistry.html +0 -265
- package/typedoc/functions/Events.createStateEvent.html +0 -2
- package/typedoc/functions/IntentPlugin.html +0 -1
- package/typedoc/functions/SettingsPlugin.html +0 -1
- package/typedoc/functions/allOf.html +0 -2
- package/typedoc/functions/chain.html +0 -3
- package/typedoc/functions/contributes.html +0 -2
- package/typedoc/functions/createApp.html +0 -6
- package/typedoc/functions/createDispatcher.html +0 -3
- package/typedoc/functions/createIntent.html +0 -6
- package/typedoc/functions/createResolver.html +0 -2
- package/typedoc/functions/createSurface.html +0 -2
- package/typedoc/functions/defineCapability.html +0 -2
- package/typedoc/functions/defineEvent.html +0 -2
- package/typedoc/functions/defineModule.html +0 -2
- package/typedoc/functions/definePlugin.html +0 -2
- package/typedoc/functions/eventKey.html +0 -2
- package/typedoc/functions/getEvents.html +0 -2
- package/typedoc/functions/isAllOf.html +0 -2
- package/typedoc/functions/isOneOf.html +0 -2
- package/typedoc/functions/isSurfaceAvailable.html +0 -2
- package/typedoc/functions/lazy.html +0 -2
- package/typedoc/functions/oneOf.html +0 -2
- package/typedoc/functions/useAppGraph.html +0 -1
- package/typedoc/functions/useCapabilities.html +0 -3
- package/typedoc/functions/useCapability.html +0 -4
- package/typedoc/functions/useIntentDispatcher.html +0 -1
- package/typedoc/functions/useIntentResolver.html +0 -1
- package/typedoc/functions/useLayout.html +0 -1
- package/typedoc/functions/usePluginManager.html +0 -2
- package/typedoc/hierarchy.html +0 -1
- package/typedoc/index.html +0 -16
- package/typedoc/interfaces/LayoutAction.Toast.html +0 -10
- package/typedoc/media/LICENSE +0 -8
- package/typedoc/modules/Capabilities.html +0 -1
- package/typedoc/modules/CollaborationActions.html +0 -1
- package/typedoc/modules/Events.html +0 -1
- package/typedoc/modules/IntentAction.html +0 -1
- package/typedoc/modules/LayoutAction.html +0 -2
- package/typedoc/modules/SettingsAction.html +0 -1
- package/typedoc/modules.html +0 -1
- package/typedoc/types/ActivationEvent.html +0 -8
- package/typedoc/types/ActivationEvents.html +0 -2
- package/typedoc/types/AnyCapability.html +0 -1
- package/typedoc/types/AnyIntent.html +0 -1
- package/typedoc/types/AnyIntentChain.html +0 -1
- package/typedoc/types/AnyIntentEffectResult.html +0 -1
- package/typedoc/types/AnyIntentResolver.html +0 -1
- package/typedoc/types/AnyIntentResult.html +0 -1
- package/typedoc/types/Capabilities.FileUploader.html +0 -1
- package/typedoc/types/Capabilities.IntentResolver.html +0 -1
- package/typedoc/types/Capabilities.Layout.html +0 -1
- package/typedoc/types/Capabilities.Metadata.html +0 -1
- package/typedoc/types/Capabilities.ReactContext.html +0 -1
- package/typedoc/types/Capabilities.ReactRoot.html +0 -1
- package/typedoc/types/Capabilities.ReactSurface.html +0 -1
- package/typedoc/types/Capabilities.Settings.html +0 -4
- package/typedoc/types/Capability.html +0 -9
- package/typedoc/types/CreateAppOptions.html +0 -9
- package/typedoc/types/FileInfo.html +0 -1
- package/typedoc/types/Intent.html +0 -14
- package/typedoc/types/IntentChain.html +0 -6
- package/typedoc/types/IntentContext.html +0 -5
- package/typedoc/types/IntentData.html +0 -1
- package/typedoc/types/IntentDispatcher.html +0 -2
- package/typedoc/types/IntentDispatcherResult.html +0 -2
- package/typedoc/types/IntentEffectDefinition.html +0 -2
- package/typedoc/types/IntentEffectResult.html +0 -15
- package/typedoc/types/IntentParams.html +0 -3
- package/typedoc/types/IntentResolver.html +0 -2
- package/typedoc/types/IntentResultData.html +0 -1
- package/typedoc/types/IntentSchema.html +0 -1
- package/typedoc/types/IntentUndo.html +0 -2
- package/typedoc/types/InterfaceDef.html +0 -4
- package/typedoc/types/Label.html +0 -1
- package/typedoc/types/NodeSerializer.html +0 -8
- package/typedoc/types/PluginManagerOptions.html +0 -5
- package/typedoc/types/PluginMeta.html +0 -21
- package/typedoc/types/PromiseIntentDispatcher.html +0 -2
- package/typedoc/types/PromiseIntentUndo.html +0 -2
- package/typedoc/types/Resource.html +0 -1
- package/typedoc/types/ResourceKey.html +0 -1
- package/typedoc/types/ResourceLanguage.html +0 -1
- package/typedoc/types/SerializedNode.html +0 -4
- package/typedoc/types/SurfaceComponent.html +0 -2
- package/typedoc/types/SurfaceDefinition.html +0 -2
- package/typedoc/types/SurfaceProps.html +0 -4
- package/typedoc/variables/Capabilities.AppGraph.html +0 -1
- package/typedoc/variables/Capabilities.AppGraphBuilder.html +0 -1
- package/typedoc/variables/Capabilities.AppGraphSerializer.html +0 -1
- package/typedoc/variables/Capabilities.ArtifactDefinition.html +0 -1
- package/typedoc/variables/Capabilities.FileUploader.html +0 -1
- package/typedoc/variables/Capabilities.IntentDispatcher.html +0 -1
- package/typedoc/variables/Capabilities.IntentResolver.html +0 -1
- package/typedoc/variables/Capabilities.Layout.html +0 -1
- package/typedoc/variables/Capabilities.Metadata.html +0 -1
- package/typedoc/variables/Capabilities.Null.html +0 -1
- package/typedoc/variables/Capabilities.PluginManager.html +0 -1
- package/typedoc/variables/Capabilities.ReactContext.html +0 -1
- package/typedoc/variables/Capabilities.ReactRoot.html +0 -1
- package/typedoc/variables/Capabilities.ReactSurface.html +0 -1
- package/typedoc/variables/Capabilities.Settings.html +0 -1
- package/typedoc/variables/Capabilities.SettingsStore.html +0 -1
- package/typedoc/variables/Capabilities.Tools.html +0 -1
- package/typedoc/variables/Capabilities.Translations.html +0 -1
- package/typedoc/variables/Events.AppGraphReady.html +0 -2
- package/typedoc/variables/Events.DispatcherReady.html +0 -2
- package/typedoc/variables/Events.LayoutReady.html +0 -1
- package/typedoc/variables/Events.SettingsReady.html +0 -2
- package/typedoc/variables/Events.SetupAppGraph.html +0 -2
- package/typedoc/variables/Events.SetupArtifactDefinition.html +0 -2
- package/typedoc/variables/Events.SetupIntentResolver.html +0 -2
- package/typedoc/variables/Events.SetupMetadata.html +0 -2
- package/typedoc/variables/Events.SetupReactSurface.html +0 -2
- package/typedoc/variables/Events.SetupSettings.html +0 -2
- package/typedoc/variables/Events.SetupTranslations.html +0 -2
- package/typedoc/variables/Events.Startup.html +0 -2
- package/typedoc/variables/FileInfoSchema.html +0 -1
- package/typedoc/variables/INTENT_ACTION.html +0 -1
- package/typedoc/variables/INTENT_PLUGIN.html +0 -1
- package/typedoc/variables/LAYOUT_ACTION.html +0 -1
- package/typedoc/variables/LAYOUT_PLUGIN.html +0 -1
- package/typedoc/variables/Label.html +0 -1
- package/typedoc/variables/LayoutAction.Toast.html +0 -1
- package/typedoc/variables/LayoutAction.UPDATE_LAYOUT.html +0 -1
- package/typedoc/variables/PluginManagerProvider.html +0 -2
- package/typedoc/variables/Resource.html +0 -2
- package/typedoc/variables/ResourceKey.html +0 -1
- package/typedoc/variables/ResourceLanguage.html +0 -1
- package/typedoc/variables/SETTINGS_ACTION.html +0 -1
- package/typedoc/variables/SETTINGS_ID.html +0 -1
- package/typedoc/variables/SETTINGS_KEY.html +0 -1
- package/typedoc/variables/SETTINGS_PLUGIN.html +0 -1
- package/typedoc/variables/Surface.html +0 -2
- package/typedoc/variables/defaultFileTypes.html +0 -1
- /package/dist/lib/browser/{app-graph-builder-OHM2Z6YQ.mjs.map → app-graph-builder-576BHZC7.mjs.map} +0 -0
- /package/dist/lib/browser/{intent-dispatcher-J7QIFHLO.mjs.map → intent-dispatcher-3Q67MHZZ.mjs.map} +0 -0
- /package/dist/lib/browser/{intent-resolver-QV5MDMDV.mjs.map → intent-resolver-O763LCLG.mjs.map} +0 -0
- /package/dist/lib/browser/{store-XMPVLJOQ.mjs.map → store-URSN7DZI.mjs.map} +0 -0
- /package/dist/lib/node/{app-graph-builder-Z45FKS52.cjs.map → app-graph-builder-JZCSKYPY.cjs.map} +0 -0
- /package/dist/lib/node/{intent-resolver-PBAOGJS6.cjs.map → intent-resolver-3F4POWAM.cjs.map} +0 -0
- /package/dist/lib/node/{store-N7JLYYDI.cjs.map → store-OFDHTDCB.cjs.map} +0 -0
- /package/dist/lib/node-esm/{app-graph-builder-OMH534A4.mjs.map → app-graph-builder-VYKLSMSZ.mjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-dispatcher-QDUGA7NT.mjs.map → intent-dispatcher-YDE2ONZA.mjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-resolver-P7TC5RBD.mjs.map → intent-resolver-LAGJ7LXM.mjs.map} +0 -0
- /package/dist/lib/node-esm/{store-M2BYJL6K.mjs.map → store-EYSUVNCS.mjs.map} +0 -0
|
@@ -26,10 +26,9 @@ 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_YIFTVCOR_exports = {};
|
|
30
|
+
__export(chunk_YIFTVCOR_exports, {
|
|
31
31
|
Capabilities: () => Capabilities,
|
|
32
|
-
CollaborationActions: () => CollaborationActions,
|
|
33
32
|
Events: () => Events,
|
|
34
33
|
FileInfoSchema: () => FileInfoSchema,
|
|
35
34
|
INTENT_ACTION: () => INTENT_ACTION,
|
|
@@ -67,7 +66,7 @@ __export(chunk_I3CJYEBC_exports, {
|
|
|
67
66
|
lazy: () => lazy,
|
|
68
67
|
oneOf: () => oneOf
|
|
69
68
|
});
|
|
70
|
-
module.exports = __toCommonJS(
|
|
69
|
+
module.exports = __toCommonJS(chunk_YIFTVCOR_exports);
|
|
71
70
|
var import_effect = require("effect");
|
|
72
71
|
var import_live_object = require("@dxos/live-object");
|
|
73
72
|
var import_log = require("@dxos/log");
|
|
@@ -86,10 +85,8 @@ var import_async2 = require("@dxos/async");
|
|
|
86
85
|
var import_live_object3 = require("@dxos/live-object");
|
|
87
86
|
var import_log3 = require("@dxos/log");
|
|
88
87
|
var import_effect6 = require("effect");
|
|
89
|
-
var import_echo_schema = require("@dxos/echo-schema");
|
|
90
88
|
var import_effect7 = require("effect");
|
|
91
89
|
var import_effect8 = require("effect");
|
|
92
|
-
var import_effect9 = require("effect");
|
|
93
90
|
var createIntent = (schema, data = {}, params = {}) => {
|
|
94
91
|
const _ = import_effect3.Schema.validateSync(schema.fields.input)(data);
|
|
95
92
|
const intent = {
|
|
@@ -211,7 +208,7 @@ var PluginsContext = class {
|
|
|
211
208
|
contributeCapability({ module: moduleId, interface: interfaceDef, implementation }) {
|
|
212
209
|
let current = this._definedCapabilities.get(interfaceDef.identifier);
|
|
213
210
|
if (!current) {
|
|
214
|
-
const object = (0, import_live_object2.
|
|
211
|
+
const object = (0, import_live_object2.create)({
|
|
215
212
|
value: []
|
|
216
213
|
});
|
|
217
214
|
current = (0, import_signals_core.untracked)(() => object.value);
|
|
@@ -224,7 +221,7 @@ var PluginsContext = class {
|
|
|
224
221
|
count: (0, import_signals_core.untracked)(() => current.length)
|
|
225
222
|
}, {
|
|
226
223
|
F: __dxlog_file,
|
|
227
|
-
L:
|
|
224
|
+
L: 142,
|
|
228
225
|
S: this,
|
|
229
226
|
C: (f, a) => f(...a)
|
|
230
227
|
});
|
|
@@ -245,7 +242,7 @@ var PluginsContext = class {
|
|
|
245
242
|
count: (0, import_signals_core.untracked)(() => current.length)
|
|
246
243
|
}, {
|
|
247
244
|
F: __dxlog_file,
|
|
248
|
-
L:
|
|
245
|
+
L: 161,
|
|
249
246
|
S: this,
|
|
250
247
|
C: (f, a) => f(...a)
|
|
251
248
|
});
|
|
@@ -254,7 +251,7 @@ var PluginsContext = class {
|
|
|
254
251
|
id: interfaceDef.identifier
|
|
255
252
|
}, {
|
|
256
253
|
F: __dxlog_file,
|
|
257
|
-
L:
|
|
254
|
+
L: 163,
|
|
258
255
|
S: this,
|
|
259
256
|
C: (f, a) => f(...a)
|
|
260
257
|
});
|
|
@@ -268,7 +265,7 @@ var PluginsContext = class {
|
|
|
268
265
|
requestCapabilities(interfaceDef, filter) {
|
|
269
266
|
let current = this._definedCapabilities.get(interfaceDef.identifier);
|
|
270
267
|
if (!current) {
|
|
271
|
-
const object = (0, import_live_object2.
|
|
268
|
+
const object = (0, import_live_object2.create)({
|
|
272
269
|
value: []
|
|
273
270
|
});
|
|
274
271
|
current = (0, import_signals_core.untracked)(() => object.value);
|
|
@@ -287,7 +284,7 @@ var PluginsContext = class {
|
|
|
287
284
|
const capability = this.requestCapabilities(interfaceDef, filter)[0];
|
|
288
285
|
(0, import_invariant.invariant)(capability, `No capability found for ${interfaceDef.identifier}`, {
|
|
289
286
|
F: __dxlog_file,
|
|
290
|
-
L:
|
|
287
|
+
L: 199,
|
|
291
288
|
S: this,
|
|
292
289
|
A: [
|
|
293
290
|
"capability",
|
|
@@ -352,7 +349,7 @@ var PluginManager = class {
|
|
|
352
349
|
});
|
|
353
350
|
this._capabilities = /* @__PURE__ */ new Map();
|
|
354
351
|
this._pluginLoader = pluginLoader;
|
|
355
|
-
this._state = (0, import_live_object3.
|
|
352
|
+
this._state = (0, import_live_object3.create)({
|
|
356
353
|
plugins,
|
|
357
354
|
core,
|
|
358
355
|
enabled,
|
|
@@ -909,22 +906,6 @@ var Capabilities;
|
|
|
909
906
|
Capabilities2.ArtifactDefinition = defineCapability("dxos.org/app-framework/capability/artifact-definition");
|
|
910
907
|
Capabilities2.FileUploader = defineCapability("dxos.org/app-framework/capability/file-uploader");
|
|
911
908
|
})(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 = {}));
|
|
928
909
|
var Events;
|
|
929
910
|
(function(Events2) {
|
|
930
911
|
Events2.Startup = defineEvent("dxos.org/app-framework/event/startup");
|
|
@@ -960,11 +941,11 @@ var defaultFileTypes = {
|
|
|
960
941
|
"md"
|
|
961
942
|
]
|
|
962
943
|
};
|
|
963
|
-
var FileInfoSchema =
|
|
964
|
-
name:
|
|
965
|
-
type:
|
|
966
|
-
url:
|
|
967
|
-
cid:
|
|
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)
|
|
968
949
|
});
|
|
969
950
|
var IntentPlugin = () => definePlugin({
|
|
970
951
|
id: INTENT_PLUGIN,
|
|
@@ -979,7 +960,7 @@ var IntentPlugin = () => definePlugin({
|
|
|
979
960
|
activatesAfter: [
|
|
980
961
|
Events.DispatcherReady
|
|
981
962
|
],
|
|
982
|
-
activate: lazy(() => import("./intent-dispatcher-
|
|
963
|
+
activate: lazy(() => import("./intent-dispatcher-H334XLFD.cjs"))
|
|
983
964
|
})
|
|
984
965
|
]);
|
|
985
966
|
var LAYOUT_PLUGIN = "dxos.org/plugin/layout";
|
|
@@ -987,338 +968,328 @@ var LAYOUT_ACTION = `${LAYOUT_PLUGIN}/action`;
|
|
|
987
968
|
var LayoutAction;
|
|
988
969
|
(function(LayoutAction2) {
|
|
989
970
|
LayoutAction2.UPDATE_LAYOUT = `${LAYOUT_ACTION}/update-layout`;
|
|
990
|
-
class UpdateLayout extends
|
|
991
|
-
input:
|
|
992
|
-
part:
|
|
971
|
+
class UpdateLayout extends import_effect7.Schema.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
972
|
+
input: import_effect7.Schema.Struct({
|
|
973
|
+
part: import_effect7.Schema.String.annotations({
|
|
993
974
|
description: "The part of the layout to mutate."
|
|
994
975
|
}),
|
|
995
|
-
subject:
|
|
976
|
+
subject: import_effect7.Schema.optional(import_effect7.Schema.Any.annotations({
|
|
996
977
|
description: "The subject of the layout update."
|
|
997
978
|
})),
|
|
998
|
-
options:
|
|
999
|
-
key:
|
|
1000
|
-
value:
|
|
979
|
+
options: import_effect7.Schema.optional(import_effect7.Schema.Record({
|
|
980
|
+
key: import_effect7.Schema.String,
|
|
981
|
+
value: import_effect7.Schema.Any
|
|
1001
982
|
}).annotations({
|
|
1002
983
|
description: "Additional options for the layout action."
|
|
1003
984
|
}))
|
|
1004
985
|
}),
|
|
1005
|
-
output:
|
|
986
|
+
output: import_effect7.Schema.Void
|
|
1006
987
|
}) {
|
|
1007
988
|
}
|
|
1008
989
|
LayoutAction2.UpdateLayout = UpdateLayout;
|
|
1009
|
-
class SetLayoutMode extends
|
|
1010
|
-
input:
|
|
1011
|
-
part:
|
|
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({
|
|
1012
993
|
description: "Setting the layout mode."
|
|
1013
994
|
}),
|
|
1014
|
-
subject:
|
|
995
|
+
subject: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
|
|
1015
996
|
description: "Item which is the subject of the new layout mode."
|
|
1016
997
|
})),
|
|
1017
|
-
options:
|
|
1018
|
-
mode:
|
|
998
|
+
options: import_effect7.Schema.Union(import_effect7.Schema.Struct({
|
|
999
|
+
mode: import_effect7.Schema.String.annotations({
|
|
1019
1000
|
description: "The new layout mode."
|
|
1020
1001
|
})
|
|
1021
|
-
}),
|
|
1022
|
-
revert:
|
|
1002
|
+
}), import_effect7.Schema.Struct({
|
|
1003
|
+
revert: import_effect7.Schema.Boolean.annotations({
|
|
1023
1004
|
description: "Revert to the previous layout mode."
|
|
1024
1005
|
})
|
|
1025
1006
|
}))
|
|
1026
1007
|
}),
|
|
1027
|
-
output:
|
|
1008
|
+
output: import_effect7.Schema.Void
|
|
1028
1009
|
}) {
|
|
1029
1010
|
}
|
|
1030
1011
|
LayoutAction2.SetLayoutMode = SetLayoutMode;
|
|
1031
|
-
class UpdateSidebar extends
|
|
1032
|
-
input:
|
|
1033
|
-
part:
|
|
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({
|
|
1034
1015
|
description: "Updating the sidebar."
|
|
1035
1016
|
}),
|
|
1036
|
-
subject:
|
|
1017
|
+
subject: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
|
|
1037
1018
|
description: "URI of the component to display in the sidebar."
|
|
1038
1019
|
})),
|
|
1039
|
-
options:
|
|
1040
|
-
state:
|
|
1020
|
+
options: import_effect7.Schema.optional(import_effect7.Schema.Struct({
|
|
1021
|
+
state: import_effect7.Schema.Literal("closed", "collapsed", "expanded").annotations({
|
|
1041
1022
|
description: "Whether the sidebar is closed, collapsed, or expanded."
|
|
1042
1023
|
})
|
|
1043
1024
|
}))
|
|
1044
1025
|
}),
|
|
1045
|
-
output:
|
|
1026
|
+
output: import_effect7.Schema.Void
|
|
1046
1027
|
}) {
|
|
1047
1028
|
}
|
|
1048
1029
|
LayoutAction2.UpdateSidebar = UpdateSidebar;
|
|
1049
|
-
class UpdateComplementary extends
|
|
1050
|
-
input:
|
|
1051
|
-
part:
|
|
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({
|
|
1052
1033
|
description: "Updating the complementary sidebar."
|
|
1053
1034
|
}),
|
|
1054
|
-
subject:
|
|
1035
|
+
subject: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
|
|
1055
1036
|
description: "URI of the component to display in the complementary area."
|
|
1056
1037
|
})),
|
|
1057
|
-
options:
|
|
1058
|
-
state:
|
|
1038
|
+
options: import_effect7.Schema.optional(import_effect7.Schema.Struct({
|
|
1039
|
+
state: import_effect7.Schema.Literal("closed", "collapsed", "expanded").annotations({
|
|
1059
1040
|
description: "Whether the complementary sidebar is closed, collapsed, or expanded."
|
|
1060
1041
|
})
|
|
1061
1042
|
}))
|
|
1062
1043
|
}),
|
|
1063
|
-
output:
|
|
1044
|
+
output: import_effect7.Schema.Void
|
|
1064
1045
|
}) {
|
|
1065
1046
|
}
|
|
1066
1047
|
LayoutAction2.UpdateComplementary = UpdateComplementary;
|
|
1067
|
-
class UpdateDialog extends
|
|
1068
|
-
input:
|
|
1069
|
-
part:
|
|
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({
|
|
1070
1051
|
description: "Updating the dialog."
|
|
1071
1052
|
}),
|
|
1072
|
-
subject:
|
|
1053
|
+
subject: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
|
|
1073
1054
|
description: "URI of the component to display in the dialog."
|
|
1074
1055
|
})),
|
|
1075
|
-
options:
|
|
1076
|
-
state:
|
|
1056
|
+
options: import_effect7.Schema.Struct({
|
|
1057
|
+
state: import_effect7.Schema.optional(import_effect7.Schema.Boolean.annotations({
|
|
1077
1058
|
description: "Whether the dialog is open or closed."
|
|
1078
1059
|
})),
|
|
1079
|
-
blockAlign:
|
|
1060
|
+
blockAlign: import_effect7.Schema.optional(import_effect7.Schema.Literal("start", "center", "end").annotations({
|
|
1080
1061
|
description: "The alignment of the dialog."
|
|
1081
1062
|
})),
|
|
1082
|
-
type:
|
|
1063
|
+
type: import_effect7.Schema.optional(import_effect7.Schema.Literal("default", "alert").annotations({
|
|
1083
1064
|
description: "The type of dialog."
|
|
1084
1065
|
})),
|
|
1085
|
-
props:
|
|
1086
|
-
key:
|
|
1087
|
-
value:
|
|
1066
|
+
props: import_effect7.Schema.optional(import_effect7.Schema.Record({
|
|
1067
|
+
key: import_effect7.Schema.String,
|
|
1068
|
+
value: import_effect7.Schema.Any
|
|
1088
1069
|
}).annotations({
|
|
1089
1070
|
description: "Additional props for the dialog."
|
|
1090
1071
|
}))
|
|
1091
1072
|
})
|
|
1092
1073
|
}),
|
|
1093
|
-
output:
|
|
1074
|
+
output: import_effect7.Schema.Void
|
|
1094
1075
|
}) {
|
|
1095
1076
|
}
|
|
1096
1077
|
LayoutAction2.UpdateDialog = UpdateDialog;
|
|
1097
|
-
class UpdatePopover extends
|
|
1098
|
-
input:
|
|
1099
|
-
part:
|
|
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({
|
|
1100
1081
|
description: "Updating the popover."
|
|
1101
1082
|
}),
|
|
1102
|
-
subject:
|
|
1103
|
-
description: "URI of the component to display in the popover
|
|
1083
|
+
subject: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
|
|
1084
|
+
description: "URI of the component to display in the popover."
|
|
1104
1085
|
})),
|
|
1105
|
-
options:
|
|
1106
|
-
|
|
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({
|
|
1107
1091
|
description: "The side of the anchor."
|
|
1108
1092
|
})),
|
|
1109
|
-
state:
|
|
1093
|
+
state: import_effect7.Schema.optional(import_effect7.Schema.Boolean.annotations({
|
|
1110
1094
|
description: "Whether the popover is open or closed."
|
|
1111
1095
|
})),
|
|
1112
|
-
props:
|
|
1113
|
-
key:
|
|
1114
|
-
value:
|
|
1096
|
+
props: import_effect7.Schema.optional(import_effect7.Schema.Record({
|
|
1097
|
+
key: import_effect7.Schema.String,
|
|
1098
|
+
value: import_effect7.Schema.Any
|
|
1115
1099
|
}).annotations({
|
|
1116
1100
|
description: "Additional props for the popover."
|
|
1117
1101
|
}))
|
|
1118
|
-
})
|
|
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
|
-
}))))
|
|
1102
|
+
})
|
|
1129
1103
|
}),
|
|
1130
|
-
output:
|
|
1104
|
+
output: import_effect7.Schema.Void
|
|
1131
1105
|
}) {
|
|
1132
1106
|
}
|
|
1133
1107
|
LayoutAction2.UpdatePopover = UpdatePopover;
|
|
1134
|
-
LayoutAction2.Toast =
|
|
1135
|
-
id:
|
|
1108
|
+
LayoutAction2.Toast = import_effect7.Schema.Struct({
|
|
1109
|
+
id: import_effect7.Schema.String.annotations({
|
|
1136
1110
|
description: "The id of the toast."
|
|
1137
1111
|
}),
|
|
1138
|
-
title:
|
|
1112
|
+
title: import_effect7.Schema.optional(Label.annotations({
|
|
1139
1113
|
description: "The title of the toast."
|
|
1140
1114
|
})),
|
|
1141
|
-
description:
|
|
1115
|
+
description: import_effect7.Schema.optional(Label.annotations({
|
|
1142
1116
|
description: "The description of the toast."
|
|
1143
1117
|
})),
|
|
1144
|
-
icon:
|
|
1118
|
+
icon: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
|
|
1145
1119
|
description: "The icon of the toast."
|
|
1146
1120
|
})),
|
|
1147
|
-
duration:
|
|
1121
|
+
duration: import_effect7.Schema.optional(import_effect7.Schema.Number.annotations({
|
|
1148
1122
|
description: "The duration of the toast."
|
|
1149
1123
|
})),
|
|
1150
|
-
closeLabel:
|
|
1124
|
+
closeLabel: import_effect7.Schema.optional(Label.annotations({
|
|
1151
1125
|
description: "The label of the close button."
|
|
1152
1126
|
})),
|
|
1153
|
-
actionLabel:
|
|
1127
|
+
actionLabel: import_effect7.Schema.optional(Label.annotations({
|
|
1154
1128
|
description: "The label of the action button."
|
|
1155
1129
|
})),
|
|
1156
|
-
actionAlt:
|
|
1130
|
+
actionAlt: import_effect7.Schema.optional(Label.annotations({
|
|
1157
1131
|
description: "The alt text of the action button."
|
|
1158
1132
|
})),
|
|
1159
|
-
onAction:
|
|
1133
|
+
onAction: import_effect7.Schema.optional(import_effect7.Schema.Any.annotations({
|
|
1160
1134
|
description: "The action to perform when the action button is clicked."
|
|
1161
1135
|
}))
|
|
1162
1136
|
});
|
|
1163
|
-
class AddToast extends
|
|
1164
|
-
input:
|
|
1165
|
-
part:
|
|
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({
|
|
1166
1140
|
description: "Adding a toast."
|
|
1167
1141
|
}),
|
|
1168
1142
|
subject: LayoutAction2.Toast.annotations({
|
|
1169
1143
|
description: "The toast to add."
|
|
1170
1144
|
})
|
|
1171
1145
|
}),
|
|
1172
|
-
output:
|
|
1146
|
+
output: import_effect7.Schema.Void
|
|
1173
1147
|
}) {
|
|
1174
1148
|
}
|
|
1175
1149
|
LayoutAction2.AddToast = AddToast;
|
|
1176
|
-
class SwitchWorkspace extends
|
|
1177
|
-
input:
|
|
1178
|
-
part:
|
|
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({
|
|
1179
1153
|
description: "Switching the workspace."
|
|
1180
1154
|
}),
|
|
1181
|
-
subject:
|
|
1155
|
+
subject: import_effect7.Schema.String.annotations({
|
|
1182
1156
|
description: "The id of the workspace to switch to."
|
|
1183
1157
|
})
|
|
1184
1158
|
}),
|
|
1185
|
-
output:
|
|
1159
|
+
output: import_effect7.Schema.Void
|
|
1186
1160
|
}) {
|
|
1187
1161
|
}
|
|
1188
1162
|
LayoutAction2.SwitchWorkspace = SwitchWorkspace;
|
|
1189
|
-
class RevertWorkspace extends
|
|
1190
|
-
input:
|
|
1191
|
-
part:
|
|
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({
|
|
1192
1166
|
description: "Switching the workspace."
|
|
1193
1167
|
}),
|
|
1194
|
-
options:
|
|
1195
|
-
revert:
|
|
1168
|
+
options: import_effect7.Schema.Struct({
|
|
1169
|
+
revert: import_effect7.Schema.Literal(true).annotations({
|
|
1196
1170
|
description: "Revert to the previous workspace."
|
|
1197
1171
|
})
|
|
1198
1172
|
})
|
|
1199
1173
|
}),
|
|
1200
|
-
output:
|
|
1174
|
+
output: import_effect7.Schema.Void
|
|
1201
1175
|
}) {
|
|
1202
1176
|
}
|
|
1203
1177
|
LayoutAction2.RevertWorkspace = RevertWorkspace;
|
|
1204
|
-
class Open extends
|
|
1205
|
-
input:
|
|
1206
|
-
part:
|
|
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({
|
|
1207
1181
|
description: "Opening an item in the main content area."
|
|
1208
1182
|
}),
|
|
1209
|
-
subject:
|
|
1183
|
+
subject: import_effect7.Schema.Array(import_effect7.Schema.String.annotations({
|
|
1210
1184
|
description: "Ids of the items to open."
|
|
1211
1185
|
})),
|
|
1212
|
-
options:
|
|
1213
|
-
state:
|
|
1186
|
+
options: import_effect7.Schema.optional(import_effect7.Schema.Struct({
|
|
1187
|
+
state: import_effect7.Schema.optional(import_effect7.Schema.Literal(true).annotations({
|
|
1214
1188
|
description: "The items are being added."
|
|
1215
1189
|
})),
|
|
1216
|
-
variant:
|
|
1190
|
+
variant: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
|
|
1217
1191
|
description: "The variant of the item to open."
|
|
1218
1192
|
})),
|
|
1219
|
-
key:
|
|
1193
|
+
key: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
|
|
1220
1194
|
description: "If provided, will replace item with a matching key (id prefix)."
|
|
1221
1195
|
})),
|
|
1222
|
-
|
|
1223
|
-
description: "The workspace to open the items in."
|
|
1224
|
-
})),
|
|
1225
|
-
scrollIntoView: import_effect8.Schema.optional(import_effect8.Schema.Boolean.annotations({
|
|
1196
|
+
scrollIntoView: import_effect7.Schema.optional(import_effect7.Schema.Boolean.annotations({
|
|
1226
1197
|
description: "Scroll the items into view."
|
|
1227
1198
|
})),
|
|
1228
|
-
pivotId:
|
|
1199
|
+
pivotId: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
|
|
1229
1200
|
description: "The id of the item to place new items next to."
|
|
1230
1201
|
})),
|
|
1231
|
-
positioning:
|
|
1202
|
+
positioning: import_effect7.Schema.optional(import_effect7.Schema.Union(import_effect7.Schema.Literal("start").annotations({
|
|
1232
1203
|
description: "The items are being added before the pivot item."
|
|
1233
|
-
}),
|
|
1204
|
+
}), import_effect7.Schema.Literal("end").annotations({
|
|
1234
1205
|
description: "The items are being added after the pivot item."
|
|
1235
1206
|
})))
|
|
1236
1207
|
}))
|
|
1237
1208
|
}),
|
|
1238
|
-
output:
|
|
1209
|
+
output: import_effect7.Schema.Void
|
|
1239
1210
|
}) {
|
|
1240
1211
|
}
|
|
1241
1212
|
LayoutAction2.Open = Open;
|
|
1242
|
-
class Set2 extends
|
|
1243
|
-
input:
|
|
1244
|
-
part:
|
|
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({
|
|
1245
1216
|
description: "Setting items in the main content area."
|
|
1246
1217
|
}),
|
|
1247
|
-
subject:
|
|
1218
|
+
subject: import_effect7.Schema.Array(import_effect7.Schema.String.annotations({
|
|
1248
1219
|
description: "Ids of the items to set."
|
|
1249
1220
|
})),
|
|
1250
|
-
options:
|
|
1251
|
-
override:
|
|
1221
|
+
options: import_effect7.Schema.Struct({
|
|
1222
|
+
override: import_effect7.Schema.Literal(true).annotations({
|
|
1252
1223
|
description: "Override the current items in the main content area."
|
|
1253
1224
|
})
|
|
1254
1225
|
})
|
|
1255
1226
|
}),
|
|
1256
|
-
output:
|
|
1227
|
+
output: import_effect7.Schema.Void
|
|
1257
1228
|
}) {
|
|
1258
1229
|
}
|
|
1259
1230
|
LayoutAction2.Set = Set2;
|
|
1260
|
-
class Close extends
|
|
1261
|
-
input:
|
|
1262
|
-
part:
|
|
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({
|
|
1263
1234
|
description: "Closing items in the main content area."
|
|
1264
1235
|
}),
|
|
1265
|
-
subject:
|
|
1236
|
+
subject: import_effect7.Schema.Array(import_effect7.Schema.String.annotations({
|
|
1266
1237
|
description: "Ids of the items to close."
|
|
1267
1238
|
})),
|
|
1268
|
-
options:
|
|
1269
|
-
state:
|
|
1239
|
+
options: import_effect7.Schema.Struct({
|
|
1240
|
+
state: import_effect7.Schema.Literal(false).annotations({
|
|
1270
1241
|
description: "The items are being removed."
|
|
1271
1242
|
})
|
|
1272
1243
|
})
|
|
1273
1244
|
}),
|
|
1274
|
-
output:
|
|
1245
|
+
output: import_effect7.Schema.Void
|
|
1275
1246
|
}) {
|
|
1276
1247
|
}
|
|
1277
1248
|
LayoutAction2.Close = Close;
|
|
1278
|
-
class ScrollIntoView extends
|
|
1279
|
-
input:
|
|
1280
|
-
part:
|
|
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({
|
|
1281
1252
|
description: "Setting the current item"
|
|
1282
1253
|
}),
|
|
1283
|
-
subject:
|
|
1254
|
+
subject: import_effect7.Schema.optional(import_effect7.Schema.String.annotations({
|
|
1284
1255
|
description: "The id of the item to set as current."
|
|
1285
1256
|
})),
|
|
1286
|
-
options:
|
|
1287
|
-
key:
|
|
1288
|
-
value:
|
|
1257
|
+
options: import_effect7.Schema.optional(import_effect7.Schema.Record({
|
|
1258
|
+
key: import_effect7.Schema.String,
|
|
1259
|
+
value: import_effect7.Schema.Any
|
|
1289
1260
|
}).annotations({
|
|
1290
1261
|
description: "Additional options for the scroll into view."
|
|
1291
1262
|
}))
|
|
1292
1263
|
}),
|
|
1293
|
-
output:
|
|
1264
|
+
output: import_effect7.Schema.Void
|
|
1294
1265
|
}) {
|
|
1295
1266
|
}
|
|
1296
1267
|
LayoutAction2.ScrollIntoView = ScrollIntoView;
|
|
1297
|
-
class Expose extends
|
|
1298
|
-
input:
|
|
1299
|
-
part:
|
|
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({
|
|
1300
1271
|
description: "Exposing an item in the navigation area."
|
|
1301
1272
|
}),
|
|
1302
|
-
subject:
|
|
1273
|
+
subject: import_effect7.Schema.String.annotations({
|
|
1303
1274
|
description: "The id of the item to expose."
|
|
1304
1275
|
})
|
|
1305
1276
|
}),
|
|
1306
|
-
output:
|
|
1277
|
+
output: import_effect7.Schema.Void
|
|
1307
1278
|
}) {
|
|
1308
1279
|
}
|
|
1309
1280
|
LayoutAction2.Expose = Expose;
|
|
1310
1281
|
})(LayoutAction || (LayoutAction = {}));
|
|
1311
1282
|
var createSurface = (definition) => definition;
|
|
1312
|
-
var ResourceKey =
|
|
1313
|
-
key:
|
|
1314
|
-
value:
|
|
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
|
|
1315
1286
|
}));
|
|
1316
|
-
var ResourceLanguage =
|
|
1317
|
-
key:
|
|
1287
|
+
var ResourceLanguage = import_effect8.Schema.Record({
|
|
1288
|
+
key: import_effect8.Schema.String,
|
|
1318
1289
|
value: ResourceKey
|
|
1319
1290
|
});
|
|
1320
|
-
var Resource =
|
|
1321
|
-
key:
|
|
1291
|
+
var Resource = import_effect8.Schema.Record({
|
|
1292
|
+
key: import_effect8.Schema.String,
|
|
1322
1293
|
value: ResourceLanguage
|
|
1323
1294
|
});
|
|
1324
1295
|
var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/sdk/app-framework/src/plugin-intent/intent-dispatcher.ts";
|
|
@@ -1394,7 +1365,7 @@ var createDispatcher = (getResolvers, { executionLimit = EXECUTION_LIMIT, histor
|
|
|
1394
1365
|
})).catch((error) => {
|
|
1395
1366
|
import_log.log.catch(error, void 0, {
|
|
1396
1367
|
F: __dxlog_file3,
|
|
1397
|
-
L:
|
|
1368
|
+
L: 254,
|
|
1398
1369
|
S: void 0,
|
|
1399
1370
|
C: (f, a) => f(...a)
|
|
1400
1371
|
});
|
|
@@ -1448,7 +1419,7 @@ var createDispatcher = (getResolvers, { executionLimit = EXECUTION_LIMIT, histor
|
|
|
1448
1419
|
var defaultEffect = () => import_effect.Effect.fail(new Error("Intent runtime not ready"));
|
|
1449
1420
|
var defaultPromise = () => import_effect.Effect.runPromise(defaultEffect());
|
|
1450
1421
|
var intent_dispatcher_default = (context) => {
|
|
1451
|
-
const state = (0, import_live_object.
|
|
1422
|
+
const state = (0, import_live_object.create)({
|
|
1452
1423
|
dispatch: defaultEffect,
|
|
1453
1424
|
dispatchPromise: defaultPromise,
|
|
1454
1425
|
undo: defaultEffect,
|
|
@@ -1475,7 +1446,6 @@ var intent_dispatcher_default = (context) => {
|
|
|
1475
1446
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1476
1447
|
0 && (module.exports = {
|
|
1477
1448
|
Capabilities,
|
|
1478
|
-
CollaborationActions,
|
|
1479
1449
|
Events,
|
|
1480
1450
|
FileInfoSchema,
|
|
1481
1451
|
INTENT_ACTION,
|
|
@@ -1513,4 +1483,4 @@ var intent_dispatcher_default = (context) => {
|
|
|
1513
1483
|
lazy,
|
|
1514
1484
|
oneOf
|
|
1515
1485
|
});
|
|
1516
|
-
//# sourceMappingURL=chunk-
|
|
1486
|
+
//# sourceMappingURL=chunk-YIFTVCOR.cjs.map
|