@dxos/app-framework 0.8.3 → 0.8.4-main.3a94e84
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/.swc/plugins/v7_linux_x86_64_13.0.0/f45bdff002284d9e8f9ef3f0be909de12da36c049cbcf261ac78fc00abb09a2d +0 -0
- package/.swc/plugins/v7_linux_x86_64_13.0.0/fce1bdb8e20a094e4af08bad09cc81497ed0e2e7c51223b07d371063cca18429 +0 -0
- package/README.md +0 -8
- package/dist/lib/browser/{app-graph-builder-BI4VVKSW.mjs → app-graph-builder-LYF7EKNN.mjs} +4 -4
- package/dist/lib/browser/{chunk-EHM4UI3V.mjs → chunk-FMN65HSW.mjs} +26 -25
- package/dist/lib/browser/{chunk-EHM4UI3V.mjs.map → chunk-FMN65HSW.mjs.map} +3 -3
- package/dist/lib/browser/{chunk-DIBVO47Z.mjs → chunk-FO2PH7M3.mjs} +27 -18
- package/dist/lib/browser/{chunk-DIBVO47Z.mjs.map → chunk-FO2PH7M3.mjs.map} +3 -3
- package/dist/lib/browser/{chunk-WWEJRWFX.mjs → chunk-ORWHM7CO.mjs} +2 -2
- package/dist/lib/browser/index.mjs +10 -10
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-dispatcher-XVBOMF2Y.mjs → intent-dispatcher-LSYQZSEB.mjs} +2 -2
- package/dist/lib/browser/{intent-resolver-3QMBXLIY.mjs → intent-resolver-ZTNOSO3A.mjs} +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{store-5H7XPJGA.mjs → store-KML2R4IE.mjs} +3 -3
- package/dist/lib/browser/testing/index.mjs +3 -3
- package/dist/lib/browser/worker.mjs +1 -1
- package/dist/lib/node-esm/{app-graph-builder-NROP6RPQ.mjs → app-graph-builder-SAOWGJDK.mjs} +4 -4
- package/dist/lib/node-esm/{chunk-FHNZZWP4.mjs → chunk-73HGSHKE.mjs} +27 -18
- package/dist/lib/node-esm/{chunk-FHNZZWP4.mjs.map → chunk-73HGSHKE.mjs.map} +3 -3
- package/dist/lib/node-esm/{chunk-I6BVZMAH.mjs → chunk-UMZQERLE.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-2J6FVECI.mjs → chunk-ZEZ4FVEU.mjs} +26 -25
- package/dist/lib/node-esm/{chunk-2J6FVECI.mjs.map → chunk-ZEZ4FVEU.mjs.map} +3 -3
- package/dist/lib/node-esm/index.mjs +10 -10
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{intent-dispatcher-7JPGLCQ5.mjs → intent-dispatcher-6CYNGPSW.mjs} +2 -2
- package/dist/lib/node-esm/{intent-resolver-VY4X5UHN.mjs → intent-resolver-W7Z7WFFM.mjs} +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{store-UKD2R2KA.mjs → store-QEXGXLWZ.mjs} +3 -3
- package/dist/lib/node-esm/testing/index.mjs +3 -3
- package/dist/lib/node-esm/worker.mjs +1 -1
- package/dist/types/src/common/capabilities.d.ts +4 -2
- package/dist/types/src/common/capabilities.d.ts.map +1 -1
- package/dist/types/src/common/index.d.ts +1 -1
- package/dist/types/src/common/index.d.ts.map +1 -1
- package/dist/types/src/plugin-settings/translations.d.ts +7 -8
- package/dist/types/src/plugin-settings/translations.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/moon.yml +14 -0
- package/package.json +28 -28
- package/src/App.tsx +3 -3
- package/src/common/capabilities.ts +9 -3
- package/src/common/index.ts +1 -1
- package/src/core/manager.test.ts +1 -2
- package/src/plugin-settings/SettingsPlugin.ts +1 -1
- package/src/plugin-settings/translations.ts +4 -2
- package/tsconfig.json +4 -1
- package/vitest.config.ts +5 -2
- package/.eslintrc.cjs +0 -9
- package/README.yml +0 -5
- package/dist/lib/node/app-graph-builder-H7QVE4MJ.cjs +0 -146
- package/dist/lib/node/app-graph-builder-H7QVE4MJ.cjs.map +0 -7
- package/dist/lib/node/chunk-G774ASXO.cjs +0 -58
- package/dist/lib/node/chunk-G774ASXO.cjs.map +0 -7
- package/dist/lib/node/chunk-VSOSVDQ3.cjs +0 -1551
- package/dist/lib/node/chunk-VSOSVDQ3.cjs.map +0 -7
- package/dist/lib/node/chunk-YGAY3H34.cjs +0 -429
- package/dist/lib/node/chunk-YGAY3H34.cjs.map +0 -7
- package/dist/lib/node/index.cjs +0 -193
- package/dist/lib/node/index.cjs.map +0 -7
- package/dist/lib/node/intent-dispatcher-C3SVKJ62.cjs +0 -32
- package/dist/lib/node/intent-dispatcher-C3SVKJ62.cjs.map +0 -7
- package/dist/lib/node/intent-resolver-IOJDYO34.cjs +0 -46
- package/dist/lib/node/intent-resolver-IOJDYO34.cjs.map +0 -7
- package/dist/lib/node/meta.json +0 -1
- package/dist/lib/node/store-ESF5VR57.cjs +0 -45
- package/dist/lib/node/store-ESF5VR57.cjs.map +0 -7
- package/dist/lib/node/testing/index.cjs +0 -119
- package/dist/lib/node/testing/index.cjs.map +0 -7
- package/dist/lib/node/worker.cjs +0 -101
- package/dist/lib/node/worker.cjs.map +0 -7
- package/project.json +0 -29
- 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 -1123
- package/typedoc/classes/LayoutAction.RevertWorkspace.html +0 -343
- package/typedoc/classes/LayoutAction.ScrollIntoView.html +0 -460
- package/typedoc/classes/LayoutAction.Set.html +0 -460
- package/typedoc/classes/LayoutAction.SetLayoutMode.html +0 -499
- package/typedoc/classes/LayoutAction.SwitchWorkspace.html +0 -265
- package/typedoc/classes/LayoutAction.UpdateComplementary.html +0 -616
- package/typedoc/classes/LayoutAction.UpdateDialog.html +0 -1123
- package/typedoc/classes/LayoutAction.UpdateLayout.html +0 -461
- package/typedoc/classes/LayoutAction.UpdatePopover.html +0 -1435
- package/typedoc/classes/LayoutAction.UpdateSidebar.html +0 -616
- package/typedoc/classes/Plugin.html +0 -6
- package/typedoc/classes/PluginContext.html +0 -38
- package/typedoc/classes/PluginManager.html +0 -43
- package/typedoc/classes/PluginModule.html +0 -18
- 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/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/useApp.html +0 -6
- 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 -10
- package/typedoc/types/FileInfo.html +0 -1
- package/typedoc/types/Intent.html +0 -10
- 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 -6
- 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.AnchorSort.html +0 -1
- 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.RxRegistry.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-BI4VVKSW.mjs.map → app-graph-builder-LYF7EKNN.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-WWEJRWFX.mjs.map → chunk-ORWHM7CO.mjs.map} +0 -0
- /package/dist/lib/browser/{intent-dispatcher-XVBOMF2Y.mjs.map → intent-dispatcher-LSYQZSEB.mjs.map} +0 -0
- /package/dist/lib/browser/{intent-resolver-3QMBXLIY.mjs.map → intent-resolver-ZTNOSO3A.mjs.map} +0 -0
- /package/dist/lib/browser/{store-5H7XPJGA.mjs.map → store-KML2R4IE.mjs.map} +0 -0
- /package/dist/lib/node-esm/{app-graph-builder-NROP6RPQ.mjs.map → app-graph-builder-SAOWGJDK.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-I6BVZMAH.mjs.map → chunk-UMZQERLE.mjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-dispatcher-7JPGLCQ5.mjs.map → intent-dispatcher-6CYNGPSW.mjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-resolver-VY4X5UHN.mjs.map → intent-resolver-W7Z7WFFM.mjs.map} +0 -0
- /package/dist/lib/node-esm/{store-UKD2R2KA.mjs.map → store-QEXGXLWZ.mjs.map} +0 -0
|
Binary file
|
|
Binary file
|
package/README.md
CHANGED
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
SETTINGS_KEY,
|
|
4
4
|
SETTINGS_PLUGIN,
|
|
5
5
|
SettingsAction
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ORWHM7CO.mjs";
|
|
7
7
|
import {
|
|
8
8
|
Capabilities,
|
|
9
9
|
contributes,
|
|
10
10
|
createIntent
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FMN65HSW.mjs";
|
|
12
12
|
|
|
13
|
-
//
|
|
13
|
+
// src/plugin-settings/app-graph-builder.ts
|
|
14
14
|
import { Rx } from "@effect-rx/rx-react";
|
|
15
15
|
import { Option, pipe } from "effect";
|
|
16
16
|
import { createExtension, ROOT_ID } from "@dxos/app-graph";
|
|
@@ -134,4 +134,4 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
134
134
|
export {
|
|
135
135
|
app_graph_builder_default as default
|
|
136
136
|
};
|
|
137
|
-
//# sourceMappingURL=app-graph-builder-
|
|
137
|
+
//# sourceMappingURL=app-graph-builder-LYF7EKNN.mjs.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
//
|
|
1
|
+
// src/plugin-intent/intent-dispatcher.ts
|
|
2
2
|
import { Effect as Effect3, Option, pipe as pipe2, Ref as Ref2 } from "effect";
|
|
3
3
|
import { live as live2 } from "@dxos/live-object";
|
|
4
4
|
import { log as log3 } from "@dxos/log";
|
|
5
5
|
import { byPosition } from "@dxos/util";
|
|
6
6
|
|
|
7
|
-
//
|
|
7
|
+
// src/plugin-intent/actions.ts
|
|
8
8
|
import { Schema as Schema2 } from "effect";
|
|
9
9
|
|
|
10
|
-
//
|
|
10
|
+
// src/plugin-intent/intent.ts
|
|
11
11
|
import { Schema } from "effect";
|
|
12
12
|
var createIntent = (schema, data = {}, params = {}) => {
|
|
13
13
|
const _ = Schema.validateSync(schema.fields.input)(data);
|
|
@@ -51,7 +51,7 @@ var Label = Schema.Union(Schema.String, Schema.mutable(Schema.Tuple(Schema.Strin
|
|
|
51
51
|
defaultValue: Schema.optional(Schema.String)
|
|
52
52
|
})))));
|
|
53
53
|
|
|
54
|
-
//
|
|
54
|
+
// src/plugin-intent/actions.ts
|
|
55
55
|
var INTENT_PLUGIN = "dxos.org/plugin/intent";
|
|
56
56
|
var INTENT_ACTION = `${INTENT_PLUGIN}/action`;
|
|
57
57
|
(function(IntentAction2) {
|
|
@@ -75,7 +75,7 @@ var INTENT_ACTION = `${INTENT_PLUGIN}/action`;
|
|
|
75
75
|
})(IntentAction || (IntentAction = {}));
|
|
76
76
|
var IntentAction;
|
|
77
77
|
|
|
78
|
-
//
|
|
78
|
+
// src/plugin-intent/errors.ts
|
|
79
79
|
var BaseError = class extends Error {
|
|
80
80
|
constructor(code, message, context) {
|
|
81
81
|
super(message ?? code, {
|
|
@@ -98,13 +98,13 @@ var CycleDetectedError = class extends BaseError {
|
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
//
|
|
101
|
+
// src/core/capabilities.ts
|
|
102
102
|
import { Rx } from "@effect-rx/rx-react";
|
|
103
103
|
import { Effect } from "effect";
|
|
104
104
|
import { Trigger } from "@dxos/async";
|
|
105
105
|
import { invariant } from "@dxos/invariant";
|
|
106
106
|
import { log } from "@dxos/log";
|
|
107
|
-
var __dxlog_file = "/
|
|
107
|
+
var __dxlog_file = "/__w/dxos/dxos/packages/sdk/app-framework/src/core/capabilities.ts";
|
|
108
108
|
var InterfaceDefTypeId = Symbol.for("InterfaceDefTypeId");
|
|
109
109
|
var defineCapability = (identifier) => {
|
|
110
110
|
return {
|
|
@@ -274,7 +274,7 @@ var PluginContext = class {
|
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
276
|
|
|
277
|
-
//
|
|
277
|
+
// src/core/events.ts
|
|
278
278
|
var defineEvent = (id, specifier) => {
|
|
279
279
|
return {
|
|
280
280
|
id,
|
|
@@ -296,14 +296,14 @@ var getEvents = (events) => "type" in events ? events.events : [
|
|
|
296
296
|
events
|
|
297
297
|
];
|
|
298
298
|
|
|
299
|
-
//
|
|
299
|
+
// src/core/manager.ts
|
|
300
300
|
import { Registry } from "@effect-rx/rx-react";
|
|
301
301
|
import { untracked } from "@preact/signals-core";
|
|
302
302
|
import { Array as A, Effect as Effect2, Either, Match, pipe } from "effect";
|
|
303
303
|
import { Event } from "@dxos/async";
|
|
304
304
|
import { live } from "@dxos/live-object";
|
|
305
305
|
import { log as log2 } from "@dxos/log";
|
|
306
|
-
var __dxlog_file2 = "/
|
|
306
|
+
var __dxlog_file2 = "/__w/dxos/dxos/packages/sdk/app-framework/src/core/manager.ts";
|
|
307
307
|
var isPromise = (value) => {
|
|
308
308
|
return value !== null && typeof value === "object" && "then" in value;
|
|
309
309
|
};
|
|
@@ -836,7 +836,7 @@ var PluginManager = class {
|
|
|
836
836
|
}
|
|
837
837
|
};
|
|
838
838
|
|
|
839
|
-
//
|
|
839
|
+
// src/core/plugin.ts
|
|
840
840
|
var PluginModule = class {
|
|
841
841
|
constructor(options) {
|
|
842
842
|
this.id = options.id;
|
|
@@ -857,10 +857,10 @@ var definePlugin = (meta, modules) => {
|
|
|
857
857
|
return new Plugin(meta, modules);
|
|
858
858
|
};
|
|
859
859
|
|
|
860
|
-
//
|
|
860
|
+
// src/common/capabilities.ts
|
|
861
861
|
(function(Capabilities2) {
|
|
862
|
-
Capabilities2.PluginManager = defineCapability("dxos.org/app-framework/capability/plugin-manager");
|
|
863
862
|
Capabilities2.Null = defineCapability("dxos.org/app-framework/capability/null");
|
|
863
|
+
Capabilities2.PluginManager = defineCapability("dxos.org/app-framework/capability/plugin-manager");
|
|
864
864
|
Capabilities2.RxRegistry = defineCapability("dxos.org/app-framework/capability/rx-registry");
|
|
865
865
|
Capabilities2.ReactContext = defineCapability("dxos.org/app-framework/capability/react-context");
|
|
866
866
|
Capabilities2.ReactRoot = defineCapability("dxos.org/app-framework/capability/react-root");
|
|
@@ -877,12 +877,13 @@ var definePlugin = (meta, modules) => {
|
|
|
877
877
|
Capabilities2.Metadata = defineCapability("dxos.org/app-framework/capability/metadata");
|
|
878
878
|
Capabilities2.Tools = defineCapability("dxos.org/app-framework/capability/tools");
|
|
879
879
|
Capabilities2.ArtifactDefinition = defineCapability("dxos.org/app-framework/capability/artifact-definition");
|
|
880
|
+
Capabilities2.Functions = defineCapability("dxos.org/app-framework/capability/functions");
|
|
880
881
|
Capabilities2.FileUploader = defineCapability("dxos.org/app-framework/capability/file-uploader");
|
|
881
882
|
Capabilities2.AnchorSort = defineCapability("dxos.org/app-framework/capability/anchor-sort");
|
|
882
883
|
})(Capabilities || (Capabilities = {}));
|
|
883
884
|
var Capabilities;
|
|
884
885
|
|
|
885
|
-
//
|
|
886
|
+
// src/common/collaboration.ts
|
|
886
887
|
import { Schema as Schema3 } from "effect";
|
|
887
888
|
import { Expando, Ref } from "@dxos/echo-schema";
|
|
888
889
|
(function(CollaborationActions2) {
|
|
@@ -902,7 +903,7 @@ import { Expando, Ref } from "@dxos/echo-schema";
|
|
|
902
903
|
})(CollaborationActions || (CollaborationActions = {}));
|
|
903
904
|
var CollaborationActions;
|
|
904
905
|
|
|
905
|
-
//
|
|
906
|
+
// src/common/events.ts
|
|
906
907
|
(function(Events2) {
|
|
907
908
|
Events2.Startup = defineEvent("dxos.org/app-framework/event/startup");
|
|
908
909
|
Events2.SetupReactSurface = defineEvent("dxos.org/app-framework/event/setup-react-surface");
|
|
@@ -920,7 +921,7 @@ var CollaborationActions;
|
|
|
920
921
|
})(Events || (Events = {}));
|
|
921
922
|
var Events;
|
|
922
923
|
|
|
923
|
-
//
|
|
924
|
+
// src/common/file.ts
|
|
924
925
|
import { Schema as Schema4 } from "effect";
|
|
925
926
|
var defaultFileTypes = {
|
|
926
927
|
images: [
|
|
@@ -948,10 +949,10 @@ var FileInfoSchema = Schema4.Struct({
|
|
|
948
949
|
cid: Schema4.optional(Schema4.String)
|
|
949
950
|
});
|
|
950
951
|
|
|
951
|
-
//
|
|
952
|
+
// src/common/layout.ts
|
|
952
953
|
import { Schema as Schema5 } from "effect";
|
|
953
954
|
|
|
954
|
-
//
|
|
955
|
+
// src/plugin-intent/IntentPlugin.ts
|
|
955
956
|
var IntentPlugin = () => definePlugin({
|
|
956
957
|
id: INTENT_PLUGIN,
|
|
957
958
|
name: "Intent"
|
|
@@ -965,11 +966,11 @@ var IntentPlugin = () => definePlugin({
|
|
|
965
966
|
activatesAfter: [
|
|
966
967
|
Events.DispatcherReady
|
|
967
968
|
],
|
|
968
|
-
activate: lazy(() => import("./intent-dispatcher-
|
|
969
|
+
activate: lazy(() => import("./intent-dispatcher-LSYQZSEB.mjs"))
|
|
969
970
|
})
|
|
970
971
|
]);
|
|
971
972
|
|
|
972
|
-
//
|
|
973
|
+
// src/common/layout.ts
|
|
973
974
|
var LAYOUT_PLUGIN = "dxos.org/plugin/layout";
|
|
974
975
|
var LAYOUT_ACTION = `${LAYOUT_PLUGIN}/action`;
|
|
975
976
|
(function(LayoutAction2) {
|
|
@@ -1306,10 +1307,10 @@ var LAYOUT_ACTION = `${LAYOUT_PLUGIN}/action`;
|
|
|
1306
1307
|
})(LayoutAction || (LayoutAction = {}));
|
|
1307
1308
|
var LayoutAction;
|
|
1308
1309
|
|
|
1309
|
-
//
|
|
1310
|
+
// src/common/surface.ts
|
|
1310
1311
|
var createSurface = (definition) => definition;
|
|
1311
1312
|
|
|
1312
|
-
//
|
|
1313
|
+
// src/common/translations.ts
|
|
1313
1314
|
import { Schema as Schema6 } from "effect";
|
|
1314
1315
|
var ResourceKey = Schema6.Union(Schema6.String, Schema6.Record({
|
|
1315
1316
|
key: Schema6.String,
|
|
@@ -1324,8 +1325,8 @@ var Resource = Schema6.Record({
|
|
|
1324
1325
|
value: ResourceLanguage
|
|
1325
1326
|
});
|
|
1326
1327
|
|
|
1327
|
-
//
|
|
1328
|
-
var __dxlog_file3 = "/
|
|
1328
|
+
// src/plugin-intent/intent-dispatcher.ts
|
|
1329
|
+
var __dxlog_file3 = "/__w/dxos/dxos/packages/sdk/app-framework/src/plugin-intent/intent-dispatcher.ts";
|
|
1329
1330
|
var EXECUTION_LIMIT = 100;
|
|
1330
1331
|
var HISTORY_LIMIT = 100;
|
|
1331
1332
|
var createResolver = (resolver) => resolver;
|
|
@@ -1515,4 +1516,4 @@ export {
|
|
|
1515
1516
|
ResourceLanguage,
|
|
1516
1517
|
Resource
|
|
1517
1518
|
};
|
|
1518
|
-
//# sourceMappingURL=chunk-
|
|
1519
|
+
//# sourceMappingURL=chunk-FMN65HSW.mjs.map
|