@dxos/app-framework 0.8.2-main.12df754 → 0.8.2-main.30e4dbb
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-RHU5WUGJ.mjs → app-graph-builder-OWHVEAHP.mjs} +7 -5
- package/dist/lib/browser/app-graph-builder-OWHVEAHP.mjs.map +7 -0
- package/dist/lib/browser/{chunk-GYFO2C4Q.mjs → chunk-A7XUUTJN.mjs} +2 -2
- package/dist/lib/browser/{chunk-SFPT4Z2C.mjs → chunk-KPRHX73H.mjs} +9 -9
- package/dist/lib/browser/chunk-KPRHX73H.mjs.map +7 -0
- package/dist/lib/browser/{chunk-5WHZ3ORL.mjs → chunk-M6UBP7YP.mjs} +165 -162
- package/dist/lib/browser/chunk-M6UBP7YP.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +6 -6
- package/dist/lib/browser/{intent-dispatcher-T6YETUE7.mjs → intent-dispatcher-SICNXT2G.mjs} +2 -2
- package/dist/lib/browser/{intent-resolver-UQFD7VBJ.mjs → intent-resolver-2K6LNSUE.mjs} +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{store-NP42FCZO.mjs → store-P4XZF26P.mjs} +2 -2
- package/dist/lib/browser/testing/index.mjs +7 -3
- package/dist/lib/browser/testing/index.mjs.map +3 -3
- package/dist/lib/browser/worker.mjs +1 -1
- package/dist/lib/node/{app-graph-builder-QGHI2J2R.cjs → app-graph-builder-43JOK25K.cjs} +32 -30
- package/dist/lib/node/app-graph-builder-43JOK25K.cjs.map +7 -0
- package/dist/lib/node/{chunk-JUSEAFDU.cjs → chunk-JQMNABMK.cjs} +4 -4
- package/dist/lib/node/chunk-JQMNABMK.cjs.map +7 -0
- package/dist/lib/node/{chunk-EGY2ANJA.cjs → chunk-LPUJODXZ.cjs} +8 -5
- package/dist/lib/node/chunk-LPUJODXZ.cjs.map +7 -0
- package/dist/lib/node/{chunk-PIFNLI5K.cjs → chunk-MTROSTO7.cjs} +19 -19
- package/dist/lib/node/index.cjs +79 -79
- package/dist/lib/node/{intent-dispatcher-BEKV2HG3.cjs → intent-dispatcher-XXFKXEHF.cjs} +8 -8
- package/dist/lib/node/{intent-dispatcher-BEKV2HG3.cjs.map → intent-dispatcher-XXFKXEHF.cjs.map} +2 -2
- package/dist/lib/node/{intent-resolver-NALI2KSH.cjs → intent-resolver-ZP6S7QKG.cjs} +12 -12
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{store-I7KM7GGP.cjs → store-MALHSPHZ.cjs} +7 -7
- package/dist/lib/node/testing/index.cjs +14 -9
- package/dist/lib/node/testing/index.cjs.map +3 -3
- package/dist/lib/node/worker.cjs +38 -38
- package/dist/lib/node/worker.cjs.map +1 -1
- package/dist/lib/node-esm/{app-graph-builder-45FJO6JA.mjs → app-graph-builder-WE4IBY3S.mjs} +7 -5
- package/dist/lib/node-esm/app-graph-builder-WE4IBY3S.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-PHOUQACM.mjs → chunk-JUJF5L4G.mjs} +9 -9
- package/dist/lib/node-esm/chunk-JUJF5L4G.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-KFDC5QSQ.mjs → chunk-MX6ITPIG.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-YQMLJUYN.mjs → chunk-OZD32CQN.mjs} +165 -162
- package/dist/lib/node-esm/chunk-OZD32CQN.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +6 -6
- package/dist/lib/node-esm/{intent-dispatcher-MYETZPUW.mjs → intent-dispatcher-FF5HNHPQ.mjs} +2 -2
- package/dist/lib/node-esm/{intent-resolver-BW5I7SOS.mjs → intent-resolver-QWIKXIGI.mjs} +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{store-MKIES4HL.mjs → store-3NM6AWB4.mjs} +2 -2
- package/dist/lib/node-esm/testing/index.mjs +7 -3
- package/dist/lib/node-esm/testing/index.mjs.map +3 -3
- package/dist/lib/node-esm/worker.mjs +1 -1
- package/dist/types/src/App.d.ts.map +1 -1
- package/dist/types/src/common/capabilities.d.ts +2 -2
- package/dist/types/src/common/capabilities.d.ts.map +1 -1
- package/dist/types/src/common/collaboration.d.ts +7 -7
- package/dist/types/src/common/collaboration.d.ts.map +1 -1
- package/dist/types/src/common/events.d.ts.map +1 -1
- package/dist/types/src/common/file.d.ts +7 -7
- package/dist/types/src/common/file.d.ts.map +1 -1
- package/dist/types/src/common/layout.d.ts +163 -162
- package/dist/types/src/common/layout.d.ts.map +1 -1
- package/dist/types/src/common/surface.d.ts.map +1 -1
- package/dist/types/src/common/translations.d.ts +7 -7
- package/dist/types/src/common/translations.d.ts.map +1 -1
- package/dist/types/src/core/capabilities.d.ts.map +1 -1
- package/dist/types/src/core/events.d.ts.map +1 -1
- package/dist/types/src/core/plugin.d.ts.map +1 -1
- package/dist/types/src/helpers.d.ts.map +1 -1
- package/dist/types/src/playground/generator/generator.d.ts.map +1 -1
- package/dist/types/src/playground/logger/schema.d.ts +6 -6
- package/dist/types/src/playground/logger/schema.d.ts.map +1 -1
- package/dist/types/src/plugin-intent/actions.d.ts +14 -14
- package/dist/types/src/plugin-intent/actions.d.ts.map +1 -1
- package/dist/types/src/plugin-intent/intent-dispatcher.d.ts.map +1 -1
- package/dist/types/src/plugin-intent/intent.d.ts +12 -12
- package/dist/types/src/plugin-intent/intent.d.ts.map +1 -1
- package/dist/types/src/plugin-settings/actions.d.ts +10 -10
- package/dist/types/src/plugin-settings/actions.d.ts.map +1 -1
- package/dist/types/src/plugin-settings/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/plugin-settings/store.d.ts.map +1 -1
- package/dist/types/src/react/IntentContext.d.ts.map +1 -1
- package/dist/types/src/react/Surface.d.ts.map +1 -1
- package/dist/types/src/react/useCapabilities.d.ts.map +1 -1
- package/dist/types/src/react/useIntentResolver.d.ts.map +1 -1
- package/dist/types/src/testing/withPluginManager.d.ts +5 -2
- package/dist/types/src/testing/withPluginManager.d.ts.map +1 -1
- package/dist/types/src/testing/withPluginManager.stories.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +19 -19
- package/src/common/capabilities.ts +2 -2
- package/src/common/collaboration.ts +7 -6
- package/src/common/file.ts +7 -7
- package/src/common/layout.ts +148 -135
- package/src/common/translations.ts +7 -7
- package/src/playground/generator/generator.ts +4 -4
- package/src/playground/logger/schema.ts +5 -5
- package/src/playground/playground.stories.tsx +1 -1
- package/src/plugin-intent/actions.ts +9 -9
- package/src/plugin-intent/intent-dispatcher.test.ts +23 -23
- package/src/plugin-intent/intent.ts +20 -11
- package/src/plugin-settings/actions.ts +8 -8
- package/src/plugin-settings/app-graph-builder.ts +3 -1
- package/src/react/Surface.stories.tsx +1 -1
- package/src/testing/withPluginManager.stories.tsx +0 -1
- package/src/testing/withPluginManager.tsx +11 -3
- package/typedoc/classes/CollaborationActions.InsertContent.html +241 -202
- package/typedoc/classes/ErrorBoundary.html +6 -6
- package/typedoc/classes/IntentAction.ShowUndo.html +125 -125
- package/typedoc/classes/IntentAction.Track.html +239 -239
- package/typedoc/classes/LayoutAction.AddToast.html +163 -163
- package/typedoc/classes/LayoutAction.Close.html +352 -352
- package/typedoc/classes/LayoutAction.Expose.html +238 -238
- package/typedoc/classes/LayoutAction.Open.html +904 -709
- package/typedoc/classes/LayoutAction.RevertWorkspace.html +241 -241
- package/typedoc/classes/LayoutAction.ScrollIntoView.html +280 -280
- package/typedoc/classes/LayoutAction.Set.html +436 -358
- package/typedoc/classes/LayoutAction.SetLayoutMode.html +469 -391
- package/typedoc/classes/LayoutAction.SwitchWorkspace.html +238 -238
- package/typedoc/classes/LayoutAction.UpdateComplementary.html +358 -358
- package/typedoc/classes/LayoutAction.UpdateDialog.html +553 -475
- package/typedoc/classes/LayoutAction.UpdateLayout.html +281 -281
- package/typedoc/classes/LayoutAction.UpdatePopover.html +826 -826
- package/typedoc/classes/LayoutAction.UpdateSidebar.html +397 -319
- package/typedoc/classes/Plugin.html +3 -3
- package/typedoc/classes/PluginManager.html +16 -16
- package/typedoc/classes/PluginModule.html +8 -8
- package/typedoc/classes/PluginsContext.html +8 -8
- package/typedoc/classes/SettingsAction.Open.html +199 -199
- package/typedoc/classes/SettingsAction.OpenPluginRegistry.html +124 -124
- package/typedoc/functions/Events.createStateEvent.html +2 -2
- package/typedoc/functions/IntentPlugin.html +1 -1
- package/typedoc/functions/SettingsPlugin.html +1 -1
- package/typedoc/functions/allOf.html +2 -2
- package/typedoc/functions/chain.html +2 -2
- package/typedoc/functions/contributes.html +2 -2
- package/typedoc/functions/createApp.html +2 -2
- package/typedoc/functions/createDispatcher.html +2 -2
- package/typedoc/functions/createIntent.html +2 -2
- package/typedoc/functions/createResolver.html +2 -2
- package/typedoc/functions/createSurface.html +2 -2
- package/typedoc/functions/defineCapability.html +2 -2
- package/typedoc/functions/defineEvent.html +2 -2
- package/typedoc/functions/defineModule.html +2 -2
- package/typedoc/functions/definePlugin.html +2 -2
- package/typedoc/functions/eventKey.html +2 -2
- package/typedoc/functions/getEvents.html +2 -2
- package/typedoc/functions/isAllOf.html +2 -2
- package/typedoc/functions/isOneOf.html +2 -2
- package/typedoc/functions/isSurfaceAvailable.html +2 -2
- package/typedoc/functions/lazy.html +2 -2
- package/typedoc/functions/oneOf.html +2 -2
- package/typedoc/functions/useAppGraph.html +1 -1
- package/typedoc/functions/useCapabilities.html +2 -2
- package/typedoc/functions/useCapability.html +2 -2
- package/typedoc/functions/useIntentDispatcher.html +1 -1
- package/typedoc/functions/useIntentResolver.html +1 -1
- package/typedoc/functions/useLayout.html +1 -1
- package/typedoc/functions/usePluginManager.html +2 -2
- package/typedoc/hierarchy.html +1 -1
- package/typedoc/index.html +2 -2
- package/typedoc/interfaces/LayoutAction.Toast.html +2 -2
- package/typedoc/modules/Capabilities.html +1 -1
- package/typedoc/modules/CollaborationActions.html +1 -1
- package/typedoc/modules/Events.html +1 -1
- package/typedoc/modules/IntentAction.html +1 -1
- package/typedoc/modules/LayoutAction.html +2 -2
- package/typedoc/modules/SettingsAction.html +1 -1
- package/typedoc/modules.html +1 -1
- package/typedoc/types/ActivationEvent.html +3 -3
- package/typedoc/types/ActivationEvents.html +2 -2
- package/typedoc/types/AnyCapability.html +1 -1
- package/typedoc/types/AnyIntent.html +1 -1
- package/typedoc/types/AnyIntentChain.html +1 -1
- package/typedoc/types/AnyIntentEffectResult.html +1 -1
- package/typedoc/types/AnyIntentResolver.html +1 -1
- package/typedoc/types/AnyIntentResult.html +1 -1
- package/typedoc/types/Capabilities.FileUploader.html +1 -1
- package/typedoc/types/Capabilities.IntentResolver.html +1 -1
- package/typedoc/types/Capabilities.Layout.html +1 -1
- package/typedoc/types/Capabilities.Metadata.html +1 -1
- package/typedoc/types/Capabilities.ReactContext.html +1 -1
- package/typedoc/types/Capabilities.ReactRoot.html +1 -1
- package/typedoc/types/Capabilities.ReactSurface.html +1 -1
- package/typedoc/types/Capabilities.Settings.html +2 -2
- package/typedoc/types/Capability.html +5 -5
- package/typedoc/types/CreateAppOptions.html +2 -2
- package/typedoc/types/FileInfo.html +1 -1
- package/typedoc/types/Intent.html +7 -7
- package/typedoc/types/IntentChain.html +3 -3
- package/typedoc/types/IntentContext.html +2 -2
- package/typedoc/types/IntentData.html +1 -1
- package/typedoc/types/IntentDispatcher.html +2 -2
- package/typedoc/types/IntentDispatcherResult.html +2 -2
- package/typedoc/types/IntentEffectDefinition.html +2 -2
- package/typedoc/types/IntentEffectResult.html +6 -6
- package/typedoc/types/IntentParams.html +2 -2
- package/typedoc/types/IntentResolver.html +2 -2
- package/typedoc/types/IntentResultData.html +1 -1
- package/typedoc/types/IntentSchema.html +1 -1
- package/typedoc/types/IntentUndo.html +2 -2
- package/typedoc/types/InterfaceDef.html +3 -3
- package/typedoc/types/Label.html +1 -1
- package/typedoc/types/NodeSerializer.html +3 -3
- package/typedoc/types/PluginManagerOptions.html +2 -2
- package/typedoc/types/PluginMeta.html +9 -9
- package/typedoc/types/PromiseIntentDispatcher.html +2 -2
- package/typedoc/types/PromiseIntentUndo.html +2 -2
- package/typedoc/types/Resource.html +1 -1
- package/typedoc/types/ResourceKey.html +1 -1
- package/typedoc/types/ResourceLanguage.html +1 -1
- package/typedoc/types/SerializedNode.html +2 -2
- package/typedoc/types/SurfaceComponent.html +2 -2
- package/typedoc/types/SurfaceDefinition.html +2 -2
- package/typedoc/types/SurfaceProps.html +2 -2
- package/typedoc/variables/Capabilities.AppGraph.html +1 -1
- package/typedoc/variables/Capabilities.AppGraphBuilder.html +1 -1
- package/typedoc/variables/Capabilities.AppGraphSerializer.html +1 -1
- package/typedoc/variables/Capabilities.ArtifactDefinition.html +1 -1
- package/typedoc/variables/Capabilities.FileUploader.html +1 -1
- package/typedoc/variables/Capabilities.IntentDispatcher.html +1 -1
- package/typedoc/variables/Capabilities.IntentResolver.html +1 -1
- package/typedoc/variables/Capabilities.Layout.html +1 -1
- package/typedoc/variables/Capabilities.Metadata.html +1 -1
- package/typedoc/variables/Capabilities.Null.html +1 -1
- package/typedoc/variables/Capabilities.PluginManager.html +1 -1
- package/typedoc/variables/Capabilities.ReactContext.html +1 -1
- package/typedoc/variables/Capabilities.ReactRoot.html +1 -1
- package/typedoc/variables/Capabilities.ReactSurface.html +1 -1
- package/typedoc/variables/Capabilities.Settings.html +1 -1
- package/typedoc/variables/Capabilities.SettingsStore.html +1 -1
- package/typedoc/variables/Capabilities.Tools.html +1 -1
- package/typedoc/variables/Capabilities.Translations.html +1 -1
- package/typedoc/variables/Events.AppGraphReady.html +2 -2
- package/typedoc/variables/Events.DispatcherReady.html +2 -2
- package/typedoc/variables/Events.LayoutReady.html +1 -1
- package/typedoc/variables/Events.SettingsReady.html +2 -2
- package/typedoc/variables/Events.SetupAppGraph.html +2 -2
- package/typedoc/variables/Events.SetupArtifactDefinition.html +2 -2
- package/typedoc/variables/Events.SetupIntentResolver.html +2 -2
- package/typedoc/variables/Events.SetupMetadata.html +2 -2
- package/typedoc/variables/Events.SetupReactSurface.html +2 -2
- package/typedoc/variables/Events.SetupSettings.html +2 -2
- package/typedoc/variables/Events.SetupTranslations.html +2 -2
- package/typedoc/variables/Events.Startup.html +2 -2
- package/typedoc/variables/FileInfoSchema.html +1 -1
- package/typedoc/variables/INTENT_ACTION.html +1 -1
- package/typedoc/variables/INTENT_PLUGIN.html +1 -1
- package/typedoc/variables/LAYOUT_ACTION.html +1 -1
- package/typedoc/variables/LAYOUT_PLUGIN.html +1 -1
- package/typedoc/variables/Label.html +1 -1
- package/typedoc/variables/LayoutAction.Toast.html +1 -1
- package/typedoc/variables/LayoutAction.UPDATE_LAYOUT.html +1 -1
- package/typedoc/variables/PluginManagerProvider.html +2 -2
- package/typedoc/variables/Resource.html +2 -2
- package/typedoc/variables/ResourceKey.html +1 -1
- package/typedoc/variables/ResourceLanguage.html +1 -1
- package/typedoc/variables/SETTINGS_ACTION.html +1 -1
- package/typedoc/variables/SETTINGS_ID.html +1 -1
- package/typedoc/variables/SETTINGS_KEY.html +1 -1
- package/typedoc/variables/SETTINGS_PLUGIN.html +1 -1
- package/typedoc/variables/Surface.html +2 -2
- package/typedoc/variables/defaultFileTypes.html +1 -1
- package/dist/lib/browser/app-graph-builder-RHU5WUGJ.mjs.map +0 -7
- package/dist/lib/browser/chunk-5WHZ3ORL.mjs.map +0 -7
- package/dist/lib/browser/chunk-SFPT4Z2C.mjs.map +0 -7
- package/dist/lib/node/app-graph-builder-QGHI2J2R.cjs.map +0 -7
- package/dist/lib/node/chunk-EGY2ANJA.cjs.map +0 -7
- package/dist/lib/node/chunk-JUSEAFDU.cjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-45FJO6JA.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-PHOUQACM.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-YQMLJUYN.mjs.map +0 -7
- /package/dist/lib/browser/{chunk-GYFO2C4Q.mjs.map → chunk-A7XUUTJN.mjs.map} +0 -0
- /package/dist/lib/browser/{intent-dispatcher-T6YETUE7.mjs.map → intent-dispatcher-SICNXT2G.mjs.map} +0 -0
- /package/dist/lib/browser/{intent-resolver-UQFD7VBJ.mjs.map → intent-resolver-2K6LNSUE.mjs.map} +0 -0
- /package/dist/lib/browser/{store-NP42FCZO.mjs.map → store-P4XZF26P.mjs.map} +0 -0
- /package/dist/lib/node/{chunk-PIFNLI5K.cjs.map → chunk-MTROSTO7.cjs.map} +0 -0
- /package/dist/lib/node/{intent-resolver-NALI2KSH.cjs.map → intent-resolver-ZP6S7QKG.cjs.map} +0 -0
- /package/dist/lib/node/{store-I7KM7GGP.cjs.map → store-MALHSPHZ.cjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-KFDC5QSQ.mjs.map → chunk-MX6ITPIG.mjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-dispatcher-MYETZPUW.mjs.map → intent-dispatcher-FF5HNHPQ.mjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-resolver-BW5I7SOS.mjs.map → intent-resolver-QWIKXIGI.mjs.map} +0 -0
- /package/dist/lib/node-esm/{store-MKIES4HL.mjs.map → store-3NM6AWB4.mjs.map} +0 -0
|
@@ -5,12 +5,12 @@ import { log as log3 } from "@dxos/log";
|
|
|
5
5
|
import { byPosition } from "@dxos/util";
|
|
6
6
|
|
|
7
7
|
// packages/sdk/app-framework/src/plugin-intent/actions.ts
|
|
8
|
-
import { Schema as
|
|
8
|
+
import { Schema as Schema2 } from "effect";
|
|
9
9
|
|
|
10
10
|
// packages/sdk/app-framework/src/plugin-intent/intent.ts
|
|
11
|
-
import { Schema
|
|
11
|
+
import { Schema } from "effect";
|
|
12
12
|
var createIntent = (schema, data = {}, params = {}) => {
|
|
13
|
-
const _ =
|
|
13
|
+
const _ = Schema.validateSync(schema.fields.input)(data);
|
|
14
14
|
const intent = {
|
|
15
15
|
...params,
|
|
16
16
|
_schema: schema,
|
|
@@ -45,9 +45,9 @@ var chain = (schema, data = {}, params = {}) => (intent) => {
|
|
|
45
45
|
]
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
|
-
var Label =
|
|
49
|
-
ns:
|
|
50
|
-
count:
|
|
48
|
+
var Label = Schema.Union(Schema.String, Schema.mutable(Schema.Tuple(Schema.String, Schema.mutable(Schema.Struct({
|
|
49
|
+
ns: Schema.String,
|
|
50
|
+
count: Schema.optional(Schema.Number)
|
|
51
51
|
})))));
|
|
52
52
|
|
|
53
53
|
// packages/sdk/app-framework/src/plugin-intent/actions.ts
|
|
@@ -55,20 +55,20 @@ var INTENT_PLUGIN = "dxos.org/plugin/intent";
|
|
|
55
55
|
var INTENT_ACTION = `${INTENT_PLUGIN}/action`;
|
|
56
56
|
var IntentAction;
|
|
57
57
|
(function(IntentAction2) {
|
|
58
|
-
class Track extends
|
|
59
|
-
input:
|
|
60
|
-
intents:
|
|
61
|
-
error:
|
|
58
|
+
class Track extends Schema2.TaggedClass()(`${INTENT_ACTION}/track`, {
|
|
59
|
+
input: Schema2.Struct({
|
|
60
|
+
intents: Schema2.Array(Schema2.String),
|
|
61
|
+
error: Schema2.optional(Schema2.String)
|
|
62
62
|
}),
|
|
63
|
-
output:
|
|
63
|
+
output: Schema2.Void
|
|
64
64
|
}) {
|
|
65
65
|
}
|
|
66
66
|
IntentAction2.Track = Track;
|
|
67
|
-
class ShowUndo extends
|
|
68
|
-
input:
|
|
67
|
+
class ShowUndo extends Schema2.TaggedClass()(`${INTENT_ACTION}/show-undo`, {
|
|
68
|
+
input: Schema2.Struct({
|
|
69
69
|
message: Label
|
|
70
70
|
}),
|
|
71
|
-
output:
|
|
71
|
+
output: Schema2.Void
|
|
72
72
|
}) {
|
|
73
73
|
}
|
|
74
74
|
IntentAction2.ShowUndo = ShowUndo;
|
|
@@ -855,20 +855,20 @@ var Capabilities;
|
|
|
855
855
|
})(Capabilities || (Capabilities = {}));
|
|
856
856
|
|
|
857
857
|
// packages/sdk/app-framework/src/common/collaboration.ts
|
|
858
|
-
import { SchemaAST
|
|
858
|
+
import { SchemaAST, Schema as Schema3 } from "effect";
|
|
859
859
|
import { Expando, Ref, SpaceIdSchema } from "@dxos/echo-schema";
|
|
860
860
|
var CollaborationActions;
|
|
861
861
|
(function(CollaborationActions2) {
|
|
862
|
-
class InsertContent extends
|
|
863
|
-
input:
|
|
862
|
+
class InsertContent extends Schema3.TaggedClass()("assistant/intent-content", {
|
|
863
|
+
input: Schema3.Struct({
|
|
864
864
|
spaceId: SpaceIdSchema,
|
|
865
865
|
target: Ref(Expando),
|
|
866
866
|
object: Ref(Expando),
|
|
867
|
-
label:
|
|
867
|
+
label: Schema3.String.pipe(Schema3.optional)
|
|
868
868
|
}).annotations({
|
|
869
|
-
[
|
|
869
|
+
[SchemaAST.DescriptionAnnotationId]: "Enables plugins to inject content blocks or references into a related entity."
|
|
870
870
|
}),
|
|
871
|
-
output:
|
|
871
|
+
output: Schema3.Void
|
|
872
872
|
}) {
|
|
873
873
|
}
|
|
874
874
|
CollaborationActions2.InsertContent = InsertContent;
|
|
@@ -893,7 +893,7 @@ var Events;
|
|
|
893
893
|
})(Events || (Events = {}));
|
|
894
894
|
|
|
895
895
|
// packages/sdk/app-framework/src/common/file.ts
|
|
896
|
-
import { Schema as
|
|
896
|
+
import { Schema as Schema4 } from "effect";
|
|
897
897
|
var defaultFileTypes = {
|
|
898
898
|
images: [
|
|
899
899
|
"png",
|
|
@@ -913,15 +913,15 @@ var defaultFileTypes = {
|
|
|
913
913
|
"md"
|
|
914
914
|
]
|
|
915
915
|
};
|
|
916
|
-
var FileInfoSchema =
|
|
917
|
-
name:
|
|
918
|
-
type:
|
|
919
|
-
url:
|
|
920
|
-
cid:
|
|
916
|
+
var FileInfoSchema = Schema4.Struct({
|
|
917
|
+
name: Schema4.String,
|
|
918
|
+
type: Schema4.String,
|
|
919
|
+
url: Schema4.optional(Schema4.String),
|
|
920
|
+
cid: Schema4.optional(Schema4.String)
|
|
921
921
|
});
|
|
922
922
|
|
|
923
923
|
// packages/sdk/app-framework/src/common/layout.ts
|
|
924
|
-
import { Schema as
|
|
924
|
+
import { Schema as Schema5 } from "effect";
|
|
925
925
|
|
|
926
926
|
// packages/sdk/app-framework/src/plugin-intent/IntentPlugin.tsx
|
|
927
927
|
var IntentPlugin = () => definePlugin({
|
|
@@ -937,7 +937,7 @@ var IntentPlugin = () => definePlugin({
|
|
|
937
937
|
activatesAfter: [
|
|
938
938
|
Events.DispatcherReady
|
|
939
939
|
],
|
|
940
|
-
activate: lazy(() => import("./intent-dispatcher-
|
|
940
|
+
activate: lazy(() => import("./intent-dispatcher-SICNXT2G.mjs"))
|
|
941
941
|
})
|
|
942
942
|
]);
|
|
943
943
|
|
|
@@ -947,320 +947,323 @@ var LAYOUT_ACTION = `${LAYOUT_PLUGIN}/action`;
|
|
|
947
947
|
var LayoutAction;
|
|
948
948
|
(function(LayoutAction2) {
|
|
949
949
|
LayoutAction2.UPDATE_LAYOUT = `${LAYOUT_ACTION}/update-layout`;
|
|
950
|
-
class UpdateLayout extends
|
|
951
|
-
input:
|
|
952
|
-
part:
|
|
950
|
+
class UpdateLayout extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
951
|
+
input: Schema5.Struct({
|
|
952
|
+
part: Schema5.String.annotations({
|
|
953
953
|
description: "The part of the layout to mutate."
|
|
954
954
|
}),
|
|
955
|
-
subject:
|
|
955
|
+
subject: Schema5.optional(Schema5.Any.annotations({
|
|
956
956
|
description: "The subject of the layout update."
|
|
957
957
|
})),
|
|
958
|
-
options:
|
|
959
|
-
key:
|
|
960
|
-
value:
|
|
958
|
+
options: Schema5.optional(Schema5.Record({
|
|
959
|
+
key: Schema5.String,
|
|
960
|
+
value: Schema5.Any
|
|
961
961
|
}).annotations({
|
|
962
962
|
description: "Additional options for the layout action."
|
|
963
963
|
}))
|
|
964
964
|
}),
|
|
965
|
-
output:
|
|
965
|
+
output: Schema5.Void
|
|
966
966
|
}) {
|
|
967
967
|
}
|
|
968
968
|
LayoutAction2.UpdateLayout = UpdateLayout;
|
|
969
|
-
class SetLayoutMode extends
|
|
970
|
-
input:
|
|
971
|
-
part:
|
|
969
|
+
class SetLayoutMode extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
970
|
+
input: Schema5.Struct({
|
|
971
|
+
part: Schema5.Literal("mode").annotations({
|
|
972
972
|
description: "Setting the layout mode."
|
|
973
973
|
}),
|
|
974
|
-
subject:
|
|
974
|
+
subject: Schema5.optional(Schema5.String.annotations({
|
|
975
975
|
description: "Item which is the subject of the new layout mode."
|
|
976
976
|
})),
|
|
977
|
-
options:
|
|
978
|
-
mode:
|
|
977
|
+
options: Schema5.Union(Schema5.Struct({
|
|
978
|
+
mode: Schema5.String.annotations({
|
|
979
979
|
description: "The new layout mode."
|
|
980
980
|
})
|
|
981
|
-
}),
|
|
982
|
-
revert:
|
|
981
|
+
}), Schema5.Struct({
|
|
982
|
+
revert: Schema5.Boolean.annotations({
|
|
983
983
|
description: "Revert to the previous layout mode."
|
|
984
984
|
})
|
|
985
985
|
}))
|
|
986
986
|
}),
|
|
987
|
-
output:
|
|
987
|
+
output: Schema5.Void
|
|
988
988
|
}) {
|
|
989
989
|
}
|
|
990
990
|
LayoutAction2.SetLayoutMode = SetLayoutMode;
|
|
991
|
-
class UpdateSidebar extends
|
|
992
|
-
input:
|
|
993
|
-
part:
|
|
991
|
+
class UpdateSidebar extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
992
|
+
input: Schema5.Struct({
|
|
993
|
+
part: Schema5.Literal("sidebar").annotations({
|
|
994
994
|
description: "Updating the sidebar."
|
|
995
995
|
}),
|
|
996
|
-
subject:
|
|
996
|
+
subject: Schema5.optional(Schema5.String.annotations({
|
|
997
997
|
description: "URI of the component to display in the sidebar."
|
|
998
998
|
})),
|
|
999
|
-
options:
|
|
1000
|
-
state:
|
|
999
|
+
options: Schema5.optional(Schema5.Struct({
|
|
1000
|
+
state: Schema5.Literal("closed", "collapsed", "expanded").annotations({
|
|
1001
1001
|
description: "Whether the sidebar is closed, collapsed, or expanded."
|
|
1002
1002
|
})
|
|
1003
1003
|
}))
|
|
1004
1004
|
}),
|
|
1005
|
-
output:
|
|
1005
|
+
output: Schema5.Void
|
|
1006
1006
|
}) {
|
|
1007
1007
|
}
|
|
1008
1008
|
LayoutAction2.UpdateSidebar = UpdateSidebar;
|
|
1009
|
-
class UpdateComplementary extends
|
|
1010
|
-
input:
|
|
1011
|
-
part:
|
|
1009
|
+
class UpdateComplementary extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1010
|
+
input: Schema5.Struct({
|
|
1011
|
+
part: Schema5.Literal("complementary").annotations({
|
|
1012
1012
|
description: "Updating the complementary sidebar."
|
|
1013
1013
|
}),
|
|
1014
|
-
subject:
|
|
1014
|
+
subject: Schema5.optional(Schema5.String.annotations({
|
|
1015
1015
|
description: "URI of the component to display in the complementary area."
|
|
1016
1016
|
})),
|
|
1017
|
-
options:
|
|
1018
|
-
state:
|
|
1017
|
+
options: Schema5.optional(Schema5.Struct({
|
|
1018
|
+
state: Schema5.Literal("closed", "collapsed", "expanded").annotations({
|
|
1019
1019
|
description: "Whether the complementary sidebar is closed, collapsed, or expanded."
|
|
1020
1020
|
})
|
|
1021
1021
|
}))
|
|
1022
1022
|
}),
|
|
1023
|
-
output:
|
|
1023
|
+
output: Schema5.Void
|
|
1024
1024
|
}) {
|
|
1025
1025
|
}
|
|
1026
1026
|
LayoutAction2.UpdateComplementary = UpdateComplementary;
|
|
1027
|
-
class UpdateDialog extends
|
|
1028
|
-
input:
|
|
1029
|
-
part:
|
|
1027
|
+
class UpdateDialog extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1028
|
+
input: Schema5.Struct({
|
|
1029
|
+
part: Schema5.Literal("dialog").annotations({
|
|
1030
1030
|
description: "Updating the dialog."
|
|
1031
1031
|
}),
|
|
1032
|
-
subject:
|
|
1032
|
+
subject: Schema5.optional(Schema5.String.annotations({
|
|
1033
1033
|
description: "URI of the component to display in the dialog."
|
|
1034
1034
|
})),
|
|
1035
|
-
options:
|
|
1036
|
-
state:
|
|
1035
|
+
options: Schema5.Struct({
|
|
1036
|
+
state: Schema5.optional(Schema5.Boolean.annotations({
|
|
1037
1037
|
description: "Whether the dialog is open or closed."
|
|
1038
1038
|
})),
|
|
1039
|
-
blockAlign:
|
|
1039
|
+
blockAlign: Schema5.optional(Schema5.Literal("start", "center", "end").annotations({
|
|
1040
1040
|
description: "The alignment of the dialog."
|
|
1041
1041
|
})),
|
|
1042
|
-
type:
|
|
1042
|
+
type: Schema5.optional(Schema5.Literal("default", "alert").annotations({
|
|
1043
1043
|
description: "The type of dialog."
|
|
1044
1044
|
})),
|
|
1045
|
-
props:
|
|
1046
|
-
key:
|
|
1047
|
-
value:
|
|
1045
|
+
props: Schema5.optional(Schema5.Record({
|
|
1046
|
+
key: Schema5.String,
|
|
1047
|
+
value: Schema5.Any
|
|
1048
1048
|
}).annotations({
|
|
1049
1049
|
description: "Additional props for the dialog."
|
|
1050
1050
|
}))
|
|
1051
1051
|
})
|
|
1052
1052
|
}),
|
|
1053
|
-
output:
|
|
1053
|
+
output: Schema5.Void
|
|
1054
1054
|
}) {
|
|
1055
1055
|
}
|
|
1056
1056
|
LayoutAction2.UpdateDialog = UpdateDialog;
|
|
1057
|
-
class UpdatePopover extends
|
|
1058
|
-
input:
|
|
1059
|
-
part:
|
|
1057
|
+
class UpdatePopover extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1058
|
+
input: Schema5.Struct({
|
|
1059
|
+
part: Schema5.Literal("popover").annotations({
|
|
1060
1060
|
description: "Updating the popover."
|
|
1061
1061
|
}),
|
|
1062
|
-
subject:
|
|
1062
|
+
subject: Schema5.optional(Schema5.Any.annotations({
|
|
1063
1063
|
description: "URI of the component to display in the popover or data to pass to the popover."
|
|
1064
1064
|
})),
|
|
1065
|
-
options:
|
|
1066
|
-
side:
|
|
1065
|
+
options: Schema5.Struct({
|
|
1066
|
+
side: Schema5.optional(Schema5.Literal("top", "right", "bottom", "left").annotations({
|
|
1067
1067
|
description: "The side of the anchor."
|
|
1068
1068
|
})),
|
|
1069
|
-
state:
|
|
1069
|
+
state: Schema5.optional(Schema5.Boolean.annotations({
|
|
1070
1070
|
description: "Whether the popover is open or closed."
|
|
1071
1071
|
})),
|
|
1072
|
-
props:
|
|
1073
|
-
key:
|
|
1074
|
-
value:
|
|
1072
|
+
props: Schema5.optional(Schema5.Record({
|
|
1073
|
+
key: Schema5.String,
|
|
1074
|
+
value: Schema5.Any
|
|
1075
1075
|
}).annotations({
|
|
1076
1076
|
description: "Additional props for the popover."
|
|
1077
1077
|
}))
|
|
1078
|
-
}).pipe(
|
|
1079
|
-
variant:
|
|
1080
|
-
anchor:
|
|
1078
|
+
}).pipe(Schema5.extend(Schema5.Union(Schema5.Struct({
|
|
1079
|
+
variant: Schema5.Literal("virtual"),
|
|
1080
|
+
anchor: Schema5.Any.annotations({
|
|
1081
1081
|
description: "The DOM element to anchor the popover to."
|
|
1082
1082
|
})
|
|
1083
|
-
}),
|
|
1084
|
-
variant:
|
|
1085
|
-
anchorId:
|
|
1083
|
+
}), Schema5.Struct({
|
|
1084
|
+
variant: Schema5.optional(Schema5.Literal("react")),
|
|
1085
|
+
anchorId: Schema5.String.annotations({
|
|
1086
1086
|
description: "An id that can be used to determine whether to render the anchor subcomponent."
|
|
1087
1087
|
})
|
|
1088
1088
|
}))))
|
|
1089
1089
|
}),
|
|
1090
|
-
output:
|
|
1090
|
+
output: Schema5.Void
|
|
1091
1091
|
}) {
|
|
1092
1092
|
}
|
|
1093
1093
|
LayoutAction2.UpdatePopover = UpdatePopover;
|
|
1094
|
-
LayoutAction2.Toast =
|
|
1095
|
-
id:
|
|
1094
|
+
LayoutAction2.Toast = Schema5.Struct({
|
|
1095
|
+
id: Schema5.String.annotations({
|
|
1096
1096
|
description: "The id of the toast."
|
|
1097
1097
|
}),
|
|
1098
|
-
title:
|
|
1098
|
+
title: Schema5.optional(Label.annotations({
|
|
1099
1099
|
description: "The title of the toast."
|
|
1100
1100
|
})),
|
|
1101
|
-
description:
|
|
1101
|
+
description: Schema5.optional(Label.annotations({
|
|
1102
1102
|
description: "The description of the toast."
|
|
1103
1103
|
})),
|
|
1104
|
-
icon:
|
|
1104
|
+
icon: Schema5.optional(Schema5.String.annotations({
|
|
1105
1105
|
description: "The icon of the toast."
|
|
1106
1106
|
})),
|
|
1107
|
-
duration:
|
|
1107
|
+
duration: Schema5.optional(Schema5.Number.annotations({
|
|
1108
1108
|
description: "The duration of the toast."
|
|
1109
1109
|
})),
|
|
1110
|
-
closeLabel:
|
|
1110
|
+
closeLabel: Schema5.optional(Label.annotations({
|
|
1111
1111
|
description: "The label of the close button."
|
|
1112
1112
|
})),
|
|
1113
|
-
actionLabel:
|
|
1113
|
+
actionLabel: Schema5.optional(Label.annotations({
|
|
1114
1114
|
description: "The label of the action button."
|
|
1115
1115
|
})),
|
|
1116
|
-
actionAlt:
|
|
1116
|
+
actionAlt: Schema5.optional(Label.annotations({
|
|
1117
1117
|
description: "The alt text of the action button."
|
|
1118
1118
|
})),
|
|
1119
|
-
onAction:
|
|
1119
|
+
onAction: Schema5.optional(Schema5.Any.annotations({
|
|
1120
1120
|
description: "The action to perform when the action button is clicked."
|
|
1121
1121
|
}))
|
|
1122
1122
|
});
|
|
1123
|
-
class AddToast extends
|
|
1124
|
-
input:
|
|
1125
|
-
part:
|
|
1123
|
+
class AddToast extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1124
|
+
input: Schema5.Struct({
|
|
1125
|
+
part: Schema5.Literal("toast").annotations({
|
|
1126
1126
|
description: "Adding a toast."
|
|
1127
1127
|
}),
|
|
1128
1128
|
subject: LayoutAction2.Toast.annotations({
|
|
1129
1129
|
description: "The toast to add."
|
|
1130
1130
|
})
|
|
1131
1131
|
}),
|
|
1132
|
-
output:
|
|
1132
|
+
output: Schema5.Void
|
|
1133
1133
|
}) {
|
|
1134
1134
|
}
|
|
1135
1135
|
LayoutAction2.AddToast = AddToast;
|
|
1136
|
-
class SwitchWorkspace extends
|
|
1137
|
-
input:
|
|
1138
|
-
part:
|
|
1136
|
+
class SwitchWorkspace extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1137
|
+
input: Schema5.Struct({
|
|
1138
|
+
part: Schema5.Literal("workspace").annotations({
|
|
1139
1139
|
description: "Switching the workspace."
|
|
1140
1140
|
}),
|
|
1141
|
-
subject:
|
|
1141
|
+
subject: Schema5.String.annotations({
|
|
1142
1142
|
description: "The id of the workspace to switch to."
|
|
1143
1143
|
})
|
|
1144
1144
|
}),
|
|
1145
|
-
output:
|
|
1145
|
+
output: Schema5.Void
|
|
1146
1146
|
}) {
|
|
1147
1147
|
}
|
|
1148
1148
|
LayoutAction2.SwitchWorkspace = SwitchWorkspace;
|
|
1149
|
-
class RevertWorkspace extends
|
|
1150
|
-
input:
|
|
1151
|
-
part:
|
|
1149
|
+
class RevertWorkspace extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1150
|
+
input: Schema5.Struct({
|
|
1151
|
+
part: Schema5.Literal("workspace").annotations({
|
|
1152
1152
|
description: "Switching the workspace."
|
|
1153
1153
|
}),
|
|
1154
|
-
options:
|
|
1155
|
-
revert:
|
|
1154
|
+
options: Schema5.Struct({
|
|
1155
|
+
revert: Schema5.Literal(true).annotations({
|
|
1156
1156
|
description: "Revert to the previous workspace."
|
|
1157
1157
|
})
|
|
1158
1158
|
})
|
|
1159
1159
|
}),
|
|
1160
|
-
output:
|
|
1160
|
+
output: Schema5.Void
|
|
1161
1161
|
}) {
|
|
1162
1162
|
}
|
|
1163
1163
|
LayoutAction2.RevertWorkspace = RevertWorkspace;
|
|
1164
|
-
class Open extends
|
|
1165
|
-
input:
|
|
1166
|
-
part:
|
|
1164
|
+
class Open extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1165
|
+
input: Schema5.Struct({
|
|
1166
|
+
part: Schema5.Literal("main").annotations({
|
|
1167
1167
|
description: "Opening an item in the main content area."
|
|
1168
1168
|
}),
|
|
1169
|
-
subject:
|
|
1169
|
+
subject: Schema5.Array(Schema5.String.annotations({
|
|
1170
1170
|
description: "Ids of the items to open."
|
|
1171
1171
|
})),
|
|
1172
|
-
options:
|
|
1173
|
-
state:
|
|
1172
|
+
options: Schema5.optional(Schema5.Struct({
|
|
1173
|
+
state: Schema5.optional(Schema5.Literal(true).annotations({
|
|
1174
1174
|
description: "The items are being added."
|
|
1175
1175
|
})),
|
|
1176
|
-
variant:
|
|
1176
|
+
variant: Schema5.optional(Schema5.String.annotations({
|
|
1177
1177
|
description: "The variant of the item to open."
|
|
1178
1178
|
})),
|
|
1179
|
-
key:
|
|
1179
|
+
key: Schema5.optional(Schema5.String.annotations({
|
|
1180
1180
|
description: "If provided, will replace item with a matching key (id prefix)."
|
|
1181
1181
|
})),
|
|
1182
|
-
|
|
1182
|
+
workspace: Schema5.optional(Schema5.String.annotations({
|
|
1183
|
+
description: "The workspace to open the items in."
|
|
1184
|
+
})),
|
|
1185
|
+
scrollIntoView: Schema5.optional(Schema5.Boolean.annotations({
|
|
1183
1186
|
description: "Scroll the items into view."
|
|
1184
1187
|
})),
|
|
1185
|
-
pivotId:
|
|
1188
|
+
pivotId: Schema5.optional(Schema5.String.annotations({
|
|
1186
1189
|
description: "The id of the item to place new items next to."
|
|
1187
1190
|
})),
|
|
1188
|
-
positioning:
|
|
1191
|
+
positioning: Schema5.optional(Schema5.Union(Schema5.Literal("start").annotations({
|
|
1189
1192
|
description: "The items are being added before the pivot item."
|
|
1190
|
-
}),
|
|
1193
|
+
}), Schema5.Literal("end").annotations({
|
|
1191
1194
|
description: "The items are being added after the pivot item."
|
|
1192
1195
|
})))
|
|
1193
1196
|
}))
|
|
1194
1197
|
}),
|
|
1195
|
-
output:
|
|
1198
|
+
output: Schema5.Void
|
|
1196
1199
|
}) {
|
|
1197
1200
|
}
|
|
1198
1201
|
LayoutAction2.Open = Open;
|
|
1199
|
-
class Set2 extends
|
|
1200
|
-
input:
|
|
1201
|
-
part:
|
|
1202
|
+
class Set2 extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1203
|
+
input: Schema5.Struct({
|
|
1204
|
+
part: Schema5.Literal("main").annotations({
|
|
1202
1205
|
description: "Setting items in the main content area."
|
|
1203
1206
|
}),
|
|
1204
|
-
subject:
|
|
1207
|
+
subject: Schema5.Array(Schema5.String.annotations({
|
|
1205
1208
|
description: "Ids of the items to set."
|
|
1206
1209
|
})),
|
|
1207
|
-
options:
|
|
1208
|
-
override:
|
|
1210
|
+
options: Schema5.Struct({
|
|
1211
|
+
override: Schema5.Literal(true).annotations({
|
|
1209
1212
|
description: "Override the current items in the main content area."
|
|
1210
1213
|
})
|
|
1211
1214
|
})
|
|
1212
1215
|
}),
|
|
1213
|
-
output:
|
|
1216
|
+
output: Schema5.Void
|
|
1214
1217
|
}) {
|
|
1215
1218
|
}
|
|
1216
1219
|
LayoutAction2.Set = Set2;
|
|
1217
|
-
class Close extends
|
|
1218
|
-
input:
|
|
1219
|
-
part:
|
|
1220
|
+
class Close extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1221
|
+
input: Schema5.Struct({
|
|
1222
|
+
part: Schema5.Literal("main").annotations({
|
|
1220
1223
|
description: "Closing items in the main content area."
|
|
1221
1224
|
}),
|
|
1222
|
-
subject:
|
|
1225
|
+
subject: Schema5.Array(Schema5.String.annotations({
|
|
1223
1226
|
description: "Ids of the items to close."
|
|
1224
1227
|
})),
|
|
1225
|
-
options:
|
|
1226
|
-
state:
|
|
1228
|
+
options: Schema5.Struct({
|
|
1229
|
+
state: Schema5.Literal(false).annotations({
|
|
1227
1230
|
description: "The items are being removed."
|
|
1228
1231
|
})
|
|
1229
1232
|
})
|
|
1230
1233
|
}),
|
|
1231
|
-
output:
|
|
1234
|
+
output: Schema5.Void
|
|
1232
1235
|
}) {
|
|
1233
1236
|
}
|
|
1234
1237
|
LayoutAction2.Close = Close;
|
|
1235
|
-
class ScrollIntoView extends
|
|
1236
|
-
input:
|
|
1237
|
-
part:
|
|
1238
|
+
class ScrollIntoView extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1239
|
+
input: Schema5.Struct({
|
|
1240
|
+
part: Schema5.Literal("current").annotations({
|
|
1238
1241
|
description: "Setting the current item"
|
|
1239
1242
|
}),
|
|
1240
|
-
subject:
|
|
1243
|
+
subject: Schema5.optional(Schema5.String.annotations({
|
|
1241
1244
|
description: "The id of the item to set as current."
|
|
1242
1245
|
})),
|
|
1243
|
-
options:
|
|
1244
|
-
key:
|
|
1245
|
-
value:
|
|
1246
|
+
options: Schema5.optional(Schema5.Record({
|
|
1247
|
+
key: Schema5.String,
|
|
1248
|
+
value: Schema5.Any
|
|
1246
1249
|
}).annotations({
|
|
1247
1250
|
description: "Additional options for the scroll into view."
|
|
1248
1251
|
}))
|
|
1249
1252
|
}),
|
|
1250
|
-
output:
|
|
1253
|
+
output: Schema5.Void
|
|
1251
1254
|
}) {
|
|
1252
1255
|
}
|
|
1253
1256
|
LayoutAction2.ScrollIntoView = ScrollIntoView;
|
|
1254
|
-
class Expose extends
|
|
1255
|
-
input:
|
|
1256
|
-
part:
|
|
1257
|
+
class Expose extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1258
|
+
input: Schema5.Struct({
|
|
1259
|
+
part: Schema5.Literal("navigation").annotations({
|
|
1257
1260
|
description: "Exposing an item in the navigation area."
|
|
1258
1261
|
}),
|
|
1259
|
-
subject:
|
|
1262
|
+
subject: Schema5.String.annotations({
|
|
1260
1263
|
description: "The id of the item to expose."
|
|
1261
1264
|
})
|
|
1262
1265
|
}),
|
|
1263
|
-
output:
|
|
1266
|
+
output: Schema5.Void
|
|
1264
1267
|
}) {
|
|
1265
1268
|
}
|
|
1266
1269
|
LayoutAction2.Expose = Expose;
|
|
@@ -1270,17 +1273,17 @@ var LayoutAction;
|
|
|
1270
1273
|
var createSurface = (definition) => definition;
|
|
1271
1274
|
|
|
1272
1275
|
// packages/sdk/app-framework/src/common/translations.ts
|
|
1273
|
-
import { Schema as
|
|
1274
|
-
var ResourceKey =
|
|
1275
|
-
key:
|
|
1276
|
-
value:
|
|
1276
|
+
import { Schema as Schema6 } from "effect";
|
|
1277
|
+
var ResourceKey = Schema6.Union(Schema6.String, Schema6.Record({
|
|
1278
|
+
key: Schema6.String,
|
|
1279
|
+
value: Schema6.Any
|
|
1277
1280
|
}));
|
|
1278
|
-
var ResourceLanguage =
|
|
1279
|
-
key:
|
|
1281
|
+
var ResourceLanguage = Schema6.Record({
|
|
1282
|
+
key: Schema6.String,
|
|
1280
1283
|
value: ResourceKey
|
|
1281
1284
|
});
|
|
1282
|
-
var Resource =
|
|
1283
|
-
key:
|
|
1285
|
+
var Resource = Schema6.Record({
|
|
1286
|
+
key: Schema6.String,
|
|
1284
1287
|
value: ResourceLanguage
|
|
1285
1288
|
});
|
|
1286
1289
|
|
|
@@ -1477,4 +1480,4 @@ export {
|
|
|
1477
1480
|
ResourceLanguage,
|
|
1478
1481
|
Resource
|
|
1479
1482
|
};
|
|
1480
|
-
//# sourceMappingURL=chunk-
|
|
1483
|
+
//# sourceMappingURL=chunk-M6UBP7YP.mjs.map
|