@dxos/app-framework 0.8.2-main.12df754 → 0.8.2-main.2f9c567
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-FB4NWT25.mjs} +3 -3
- 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 +2 -2
- package/dist/lib/browser/worker.mjs +1 -1
- package/dist/lib/node/{app-graph-builder-QGHI2J2R.cjs → app-graph-builder-5QJ6YDE7.cjs} +28 -28
- 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 +8 -8
- 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-2KB5VMTB.mjs} +3 -3
- 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 +2 -2
- package/dist/lib/node-esm/worker.mjs +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/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/translations.d.ts +7 -7
- package/dist/types/src/common/translations.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.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/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/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/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/chunk-5WHZ3ORL.mjs.map +0 -7
- package/dist/lib/browser/chunk-SFPT4Z2C.mjs.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/chunk-PHOUQACM.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-YQMLJUYN.mjs.map +0 -7
- /package/dist/lib/browser/{app-graph-builder-RHU5WUGJ.mjs.map → app-graph-builder-FB4NWT25.mjs.map} +0 -0
- /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/{app-graph-builder-QGHI2J2R.cjs.map → app-graph-builder-5QJ6YDE7.cjs.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/{app-graph-builder-45FJO6JA.mjs.map → app-graph-builder-2KB5VMTB.mjs.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
|
@@ -7,12 +7,12 @@ import { log as log3 } from "@dxos/log";
|
|
|
7
7
|
import { byPosition } from "@dxos/util";
|
|
8
8
|
|
|
9
9
|
// packages/sdk/app-framework/src/plugin-intent/actions.ts
|
|
10
|
-
import { Schema as
|
|
10
|
+
import { Schema as Schema2 } from "effect";
|
|
11
11
|
|
|
12
12
|
// packages/sdk/app-framework/src/plugin-intent/intent.ts
|
|
13
|
-
import { Schema
|
|
13
|
+
import { Schema } from "effect";
|
|
14
14
|
var createIntent = (schema, data = {}, params = {}) => {
|
|
15
|
-
const _ =
|
|
15
|
+
const _ = Schema.validateSync(schema.fields.input)(data);
|
|
16
16
|
const intent = {
|
|
17
17
|
...params,
|
|
18
18
|
_schema: schema,
|
|
@@ -47,9 +47,9 @@ var chain = (schema, data = {}, params = {}) => (intent) => {
|
|
|
47
47
|
]
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
|
-
var Label =
|
|
51
|
-
ns:
|
|
52
|
-
count:
|
|
50
|
+
var Label = Schema.Union(Schema.String, Schema.mutable(Schema.Tuple(Schema.String, Schema.mutable(Schema.Struct({
|
|
51
|
+
ns: Schema.String,
|
|
52
|
+
count: Schema.optional(Schema.Number)
|
|
53
53
|
})))));
|
|
54
54
|
|
|
55
55
|
// packages/sdk/app-framework/src/plugin-intent/actions.ts
|
|
@@ -57,20 +57,20 @@ var INTENT_PLUGIN = "dxos.org/plugin/intent";
|
|
|
57
57
|
var INTENT_ACTION = `${INTENT_PLUGIN}/action`;
|
|
58
58
|
var IntentAction;
|
|
59
59
|
(function(IntentAction2) {
|
|
60
|
-
class Track extends
|
|
61
|
-
input:
|
|
62
|
-
intents:
|
|
63
|
-
error:
|
|
60
|
+
class Track extends Schema2.TaggedClass()(`${INTENT_ACTION}/track`, {
|
|
61
|
+
input: Schema2.Struct({
|
|
62
|
+
intents: Schema2.Array(Schema2.String),
|
|
63
|
+
error: Schema2.optional(Schema2.String)
|
|
64
64
|
}),
|
|
65
|
-
output:
|
|
65
|
+
output: Schema2.Void
|
|
66
66
|
}) {
|
|
67
67
|
}
|
|
68
68
|
IntentAction2.Track = Track;
|
|
69
|
-
class ShowUndo extends
|
|
70
|
-
input:
|
|
69
|
+
class ShowUndo extends Schema2.TaggedClass()(`${INTENT_ACTION}/show-undo`, {
|
|
70
|
+
input: Schema2.Struct({
|
|
71
71
|
message: Label
|
|
72
72
|
}),
|
|
73
|
-
output:
|
|
73
|
+
output: Schema2.Void
|
|
74
74
|
}) {
|
|
75
75
|
}
|
|
76
76
|
IntentAction2.ShowUndo = ShowUndo;
|
|
@@ -857,20 +857,20 @@ var Capabilities;
|
|
|
857
857
|
})(Capabilities || (Capabilities = {}));
|
|
858
858
|
|
|
859
859
|
// packages/sdk/app-framework/src/common/collaboration.ts
|
|
860
|
-
import { SchemaAST
|
|
860
|
+
import { SchemaAST, Schema as Schema3 } from "effect";
|
|
861
861
|
import { Expando, Ref, SpaceIdSchema } from "@dxos/echo-schema";
|
|
862
862
|
var CollaborationActions;
|
|
863
863
|
(function(CollaborationActions2) {
|
|
864
|
-
class InsertContent extends
|
|
865
|
-
input:
|
|
864
|
+
class InsertContent extends Schema3.TaggedClass()("assistant/intent-content", {
|
|
865
|
+
input: Schema3.Struct({
|
|
866
866
|
spaceId: SpaceIdSchema,
|
|
867
867
|
target: Ref(Expando),
|
|
868
868
|
object: Ref(Expando),
|
|
869
|
-
label:
|
|
869
|
+
label: Schema3.String.pipe(Schema3.optional)
|
|
870
870
|
}).annotations({
|
|
871
|
-
[
|
|
871
|
+
[SchemaAST.DescriptionAnnotationId]: "Enables plugins to inject content blocks or references into a related entity."
|
|
872
872
|
}),
|
|
873
|
-
output:
|
|
873
|
+
output: Schema3.Void
|
|
874
874
|
}) {
|
|
875
875
|
}
|
|
876
876
|
CollaborationActions2.InsertContent = InsertContent;
|
|
@@ -895,7 +895,7 @@ var Events;
|
|
|
895
895
|
})(Events || (Events = {}));
|
|
896
896
|
|
|
897
897
|
// packages/sdk/app-framework/src/common/file.ts
|
|
898
|
-
import { Schema as
|
|
898
|
+
import { Schema as Schema4 } from "effect";
|
|
899
899
|
var defaultFileTypes = {
|
|
900
900
|
images: [
|
|
901
901
|
"png",
|
|
@@ -915,15 +915,15 @@ var defaultFileTypes = {
|
|
|
915
915
|
"md"
|
|
916
916
|
]
|
|
917
917
|
};
|
|
918
|
-
var FileInfoSchema =
|
|
919
|
-
name:
|
|
920
|
-
type:
|
|
921
|
-
url:
|
|
922
|
-
cid:
|
|
918
|
+
var FileInfoSchema = Schema4.Struct({
|
|
919
|
+
name: Schema4.String,
|
|
920
|
+
type: Schema4.String,
|
|
921
|
+
url: Schema4.optional(Schema4.String),
|
|
922
|
+
cid: Schema4.optional(Schema4.String)
|
|
923
923
|
});
|
|
924
924
|
|
|
925
925
|
// packages/sdk/app-framework/src/common/layout.ts
|
|
926
|
-
import { Schema as
|
|
926
|
+
import { Schema as Schema5 } from "effect";
|
|
927
927
|
|
|
928
928
|
// packages/sdk/app-framework/src/plugin-intent/IntentPlugin.tsx
|
|
929
929
|
var IntentPlugin = () => definePlugin({
|
|
@@ -939,7 +939,7 @@ var IntentPlugin = () => definePlugin({
|
|
|
939
939
|
activatesAfter: [
|
|
940
940
|
Events.DispatcherReady
|
|
941
941
|
],
|
|
942
|
-
activate: lazy(() => import("./intent-dispatcher-
|
|
942
|
+
activate: lazy(() => import("./intent-dispatcher-FF5HNHPQ.mjs"))
|
|
943
943
|
})
|
|
944
944
|
]);
|
|
945
945
|
|
|
@@ -949,320 +949,323 @@ var LAYOUT_ACTION = `${LAYOUT_PLUGIN}/action`;
|
|
|
949
949
|
var LayoutAction;
|
|
950
950
|
(function(LayoutAction2) {
|
|
951
951
|
LayoutAction2.UPDATE_LAYOUT = `${LAYOUT_ACTION}/update-layout`;
|
|
952
|
-
class UpdateLayout extends
|
|
953
|
-
input:
|
|
954
|
-
part:
|
|
952
|
+
class UpdateLayout extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
953
|
+
input: Schema5.Struct({
|
|
954
|
+
part: Schema5.String.annotations({
|
|
955
955
|
description: "The part of the layout to mutate."
|
|
956
956
|
}),
|
|
957
|
-
subject:
|
|
957
|
+
subject: Schema5.optional(Schema5.Any.annotations({
|
|
958
958
|
description: "The subject of the layout update."
|
|
959
959
|
})),
|
|
960
|
-
options:
|
|
961
|
-
key:
|
|
962
|
-
value:
|
|
960
|
+
options: Schema5.optional(Schema5.Record({
|
|
961
|
+
key: Schema5.String,
|
|
962
|
+
value: Schema5.Any
|
|
963
963
|
}).annotations({
|
|
964
964
|
description: "Additional options for the layout action."
|
|
965
965
|
}))
|
|
966
966
|
}),
|
|
967
|
-
output:
|
|
967
|
+
output: Schema5.Void
|
|
968
968
|
}) {
|
|
969
969
|
}
|
|
970
970
|
LayoutAction2.UpdateLayout = UpdateLayout;
|
|
971
|
-
class SetLayoutMode extends
|
|
972
|
-
input:
|
|
973
|
-
part:
|
|
971
|
+
class SetLayoutMode extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
972
|
+
input: Schema5.Struct({
|
|
973
|
+
part: Schema5.Literal("mode").annotations({
|
|
974
974
|
description: "Setting the layout mode."
|
|
975
975
|
}),
|
|
976
|
-
subject:
|
|
976
|
+
subject: Schema5.optional(Schema5.String.annotations({
|
|
977
977
|
description: "Item which is the subject of the new layout mode."
|
|
978
978
|
})),
|
|
979
|
-
options:
|
|
980
|
-
mode:
|
|
979
|
+
options: Schema5.Union(Schema5.Struct({
|
|
980
|
+
mode: Schema5.String.annotations({
|
|
981
981
|
description: "The new layout mode."
|
|
982
982
|
})
|
|
983
|
-
}),
|
|
984
|
-
revert:
|
|
983
|
+
}), Schema5.Struct({
|
|
984
|
+
revert: Schema5.Boolean.annotations({
|
|
985
985
|
description: "Revert to the previous layout mode."
|
|
986
986
|
})
|
|
987
987
|
}))
|
|
988
988
|
}),
|
|
989
|
-
output:
|
|
989
|
+
output: Schema5.Void
|
|
990
990
|
}) {
|
|
991
991
|
}
|
|
992
992
|
LayoutAction2.SetLayoutMode = SetLayoutMode;
|
|
993
|
-
class UpdateSidebar extends
|
|
994
|
-
input:
|
|
995
|
-
part:
|
|
993
|
+
class UpdateSidebar extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
994
|
+
input: Schema5.Struct({
|
|
995
|
+
part: Schema5.Literal("sidebar").annotations({
|
|
996
996
|
description: "Updating the sidebar."
|
|
997
997
|
}),
|
|
998
|
-
subject:
|
|
998
|
+
subject: Schema5.optional(Schema5.String.annotations({
|
|
999
999
|
description: "URI of the component to display in the sidebar."
|
|
1000
1000
|
})),
|
|
1001
|
-
options:
|
|
1002
|
-
state:
|
|
1001
|
+
options: Schema5.optional(Schema5.Struct({
|
|
1002
|
+
state: Schema5.Literal("closed", "collapsed", "expanded").annotations({
|
|
1003
1003
|
description: "Whether the sidebar is closed, collapsed, or expanded."
|
|
1004
1004
|
})
|
|
1005
1005
|
}))
|
|
1006
1006
|
}),
|
|
1007
|
-
output:
|
|
1007
|
+
output: Schema5.Void
|
|
1008
1008
|
}) {
|
|
1009
1009
|
}
|
|
1010
1010
|
LayoutAction2.UpdateSidebar = UpdateSidebar;
|
|
1011
|
-
class UpdateComplementary extends
|
|
1012
|
-
input:
|
|
1013
|
-
part:
|
|
1011
|
+
class UpdateComplementary extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1012
|
+
input: Schema5.Struct({
|
|
1013
|
+
part: Schema5.Literal("complementary").annotations({
|
|
1014
1014
|
description: "Updating the complementary sidebar."
|
|
1015
1015
|
}),
|
|
1016
|
-
subject:
|
|
1016
|
+
subject: Schema5.optional(Schema5.String.annotations({
|
|
1017
1017
|
description: "URI of the component to display in the complementary area."
|
|
1018
1018
|
})),
|
|
1019
|
-
options:
|
|
1020
|
-
state:
|
|
1019
|
+
options: Schema5.optional(Schema5.Struct({
|
|
1020
|
+
state: Schema5.Literal("closed", "collapsed", "expanded").annotations({
|
|
1021
1021
|
description: "Whether the complementary sidebar is closed, collapsed, or expanded."
|
|
1022
1022
|
})
|
|
1023
1023
|
}))
|
|
1024
1024
|
}),
|
|
1025
|
-
output:
|
|
1025
|
+
output: Schema5.Void
|
|
1026
1026
|
}) {
|
|
1027
1027
|
}
|
|
1028
1028
|
LayoutAction2.UpdateComplementary = UpdateComplementary;
|
|
1029
|
-
class UpdateDialog extends
|
|
1030
|
-
input:
|
|
1031
|
-
part:
|
|
1029
|
+
class UpdateDialog extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1030
|
+
input: Schema5.Struct({
|
|
1031
|
+
part: Schema5.Literal("dialog").annotations({
|
|
1032
1032
|
description: "Updating the dialog."
|
|
1033
1033
|
}),
|
|
1034
|
-
subject:
|
|
1034
|
+
subject: Schema5.optional(Schema5.String.annotations({
|
|
1035
1035
|
description: "URI of the component to display in the dialog."
|
|
1036
1036
|
})),
|
|
1037
|
-
options:
|
|
1038
|
-
state:
|
|
1037
|
+
options: Schema5.Struct({
|
|
1038
|
+
state: Schema5.optional(Schema5.Boolean.annotations({
|
|
1039
1039
|
description: "Whether the dialog is open or closed."
|
|
1040
1040
|
})),
|
|
1041
|
-
blockAlign:
|
|
1041
|
+
blockAlign: Schema5.optional(Schema5.Literal("start", "center", "end").annotations({
|
|
1042
1042
|
description: "The alignment of the dialog."
|
|
1043
1043
|
})),
|
|
1044
|
-
type:
|
|
1044
|
+
type: Schema5.optional(Schema5.Literal("default", "alert").annotations({
|
|
1045
1045
|
description: "The type of dialog."
|
|
1046
1046
|
})),
|
|
1047
|
-
props:
|
|
1048
|
-
key:
|
|
1049
|
-
value:
|
|
1047
|
+
props: Schema5.optional(Schema5.Record({
|
|
1048
|
+
key: Schema5.String,
|
|
1049
|
+
value: Schema5.Any
|
|
1050
1050
|
}).annotations({
|
|
1051
1051
|
description: "Additional props for the dialog."
|
|
1052
1052
|
}))
|
|
1053
1053
|
})
|
|
1054
1054
|
}),
|
|
1055
|
-
output:
|
|
1055
|
+
output: Schema5.Void
|
|
1056
1056
|
}) {
|
|
1057
1057
|
}
|
|
1058
1058
|
LayoutAction2.UpdateDialog = UpdateDialog;
|
|
1059
|
-
class UpdatePopover extends
|
|
1060
|
-
input:
|
|
1061
|
-
part:
|
|
1059
|
+
class UpdatePopover extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1060
|
+
input: Schema5.Struct({
|
|
1061
|
+
part: Schema5.Literal("popover").annotations({
|
|
1062
1062
|
description: "Updating the popover."
|
|
1063
1063
|
}),
|
|
1064
|
-
subject:
|
|
1064
|
+
subject: Schema5.optional(Schema5.Any.annotations({
|
|
1065
1065
|
description: "URI of the component to display in the popover or data to pass to the popover."
|
|
1066
1066
|
})),
|
|
1067
|
-
options:
|
|
1068
|
-
side:
|
|
1067
|
+
options: Schema5.Struct({
|
|
1068
|
+
side: Schema5.optional(Schema5.Literal("top", "right", "bottom", "left").annotations({
|
|
1069
1069
|
description: "The side of the anchor."
|
|
1070
1070
|
})),
|
|
1071
|
-
state:
|
|
1071
|
+
state: Schema5.optional(Schema5.Boolean.annotations({
|
|
1072
1072
|
description: "Whether the popover is open or closed."
|
|
1073
1073
|
})),
|
|
1074
|
-
props:
|
|
1075
|
-
key:
|
|
1076
|
-
value:
|
|
1074
|
+
props: Schema5.optional(Schema5.Record({
|
|
1075
|
+
key: Schema5.String,
|
|
1076
|
+
value: Schema5.Any
|
|
1077
1077
|
}).annotations({
|
|
1078
1078
|
description: "Additional props for the popover."
|
|
1079
1079
|
}))
|
|
1080
|
-
}).pipe(
|
|
1081
|
-
variant:
|
|
1082
|
-
anchor:
|
|
1080
|
+
}).pipe(Schema5.extend(Schema5.Union(Schema5.Struct({
|
|
1081
|
+
variant: Schema5.Literal("virtual"),
|
|
1082
|
+
anchor: Schema5.Any.annotations({
|
|
1083
1083
|
description: "The DOM element to anchor the popover to."
|
|
1084
1084
|
})
|
|
1085
|
-
}),
|
|
1086
|
-
variant:
|
|
1087
|
-
anchorId:
|
|
1085
|
+
}), Schema5.Struct({
|
|
1086
|
+
variant: Schema5.optional(Schema5.Literal("react")),
|
|
1087
|
+
anchorId: Schema5.String.annotations({
|
|
1088
1088
|
description: "An id that can be used to determine whether to render the anchor subcomponent."
|
|
1089
1089
|
})
|
|
1090
1090
|
}))))
|
|
1091
1091
|
}),
|
|
1092
|
-
output:
|
|
1092
|
+
output: Schema5.Void
|
|
1093
1093
|
}) {
|
|
1094
1094
|
}
|
|
1095
1095
|
LayoutAction2.UpdatePopover = UpdatePopover;
|
|
1096
|
-
LayoutAction2.Toast =
|
|
1097
|
-
id:
|
|
1096
|
+
LayoutAction2.Toast = Schema5.Struct({
|
|
1097
|
+
id: Schema5.String.annotations({
|
|
1098
1098
|
description: "The id of the toast."
|
|
1099
1099
|
}),
|
|
1100
|
-
title:
|
|
1100
|
+
title: Schema5.optional(Label.annotations({
|
|
1101
1101
|
description: "The title of the toast."
|
|
1102
1102
|
})),
|
|
1103
|
-
description:
|
|
1103
|
+
description: Schema5.optional(Label.annotations({
|
|
1104
1104
|
description: "The description of the toast."
|
|
1105
1105
|
})),
|
|
1106
|
-
icon:
|
|
1106
|
+
icon: Schema5.optional(Schema5.String.annotations({
|
|
1107
1107
|
description: "The icon of the toast."
|
|
1108
1108
|
})),
|
|
1109
|
-
duration:
|
|
1109
|
+
duration: Schema5.optional(Schema5.Number.annotations({
|
|
1110
1110
|
description: "The duration of the toast."
|
|
1111
1111
|
})),
|
|
1112
|
-
closeLabel:
|
|
1112
|
+
closeLabel: Schema5.optional(Label.annotations({
|
|
1113
1113
|
description: "The label of the close button."
|
|
1114
1114
|
})),
|
|
1115
|
-
actionLabel:
|
|
1115
|
+
actionLabel: Schema5.optional(Label.annotations({
|
|
1116
1116
|
description: "The label of the action button."
|
|
1117
1117
|
})),
|
|
1118
|
-
actionAlt:
|
|
1118
|
+
actionAlt: Schema5.optional(Label.annotations({
|
|
1119
1119
|
description: "The alt text of the action button."
|
|
1120
1120
|
})),
|
|
1121
|
-
onAction:
|
|
1121
|
+
onAction: Schema5.optional(Schema5.Any.annotations({
|
|
1122
1122
|
description: "The action to perform when the action button is clicked."
|
|
1123
1123
|
}))
|
|
1124
1124
|
});
|
|
1125
|
-
class AddToast extends
|
|
1126
|
-
input:
|
|
1127
|
-
part:
|
|
1125
|
+
class AddToast extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1126
|
+
input: Schema5.Struct({
|
|
1127
|
+
part: Schema5.Literal("toast").annotations({
|
|
1128
1128
|
description: "Adding a toast."
|
|
1129
1129
|
}),
|
|
1130
1130
|
subject: LayoutAction2.Toast.annotations({
|
|
1131
1131
|
description: "The toast to add."
|
|
1132
1132
|
})
|
|
1133
1133
|
}),
|
|
1134
|
-
output:
|
|
1134
|
+
output: Schema5.Void
|
|
1135
1135
|
}) {
|
|
1136
1136
|
}
|
|
1137
1137
|
LayoutAction2.AddToast = AddToast;
|
|
1138
|
-
class SwitchWorkspace extends
|
|
1139
|
-
input:
|
|
1140
|
-
part:
|
|
1138
|
+
class SwitchWorkspace extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1139
|
+
input: Schema5.Struct({
|
|
1140
|
+
part: Schema5.Literal("workspace").annotations({
|
|
1141
1141
|
description: "Switching the workspace."
|
|
1142
1142
|
}),
|
|
1143
|
-
subject:
|
|
1143
|
+
subject: Schema5.String.annotations({
|
|
1144
1144
|
description: "The id of the workspace to switch to."
|
|
1145
1145
|
})
|
|
1146
1146
|
}),
|
|
1147
|
-
output:
|
|
1147
|
+
output: Schema5.Void
|
|
1148
1148
|
}) {
|
|
1149
1149
|
}
|
|
1150
1150
|
LayoutAction2.SwitchWorkspace = SwitchWorkspace;
|
|
1151
|
-
class RevertWorkspace extends
|
|
1152
|
-
input:
|
|
1153
|
-
part:
|
|
1151
|
+
class RevertWorkspace extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1152
|
+
input: Schema5.Struct({
|
|
1153
|
+
part: Schema5.Literal("workspace").annotations({
|
|
1154
1154
|
description: "Switching the workspace."
|
|
1155
1155
|
}),
|
|
1156
|
-
options:
|
|
1157
|
-
revert:
|
|
1156
|
+
options: Schema5.Struct({
|
|
1157
|
+
revert: Schema5.Literal(true).annotations({
|
|
1158
1158
|
description: "Revert to the previous workspace."
|
|
1159
1159
|
})
|
|
1160
1160
|
})
|
|
1161
1161
|
}),
|
|
1162
|
-
output:
|
|
1162
|
+
output: Schema5.Void
|
|
1163
1163
|
}) {
|
|
1164
1164
|
}
|
|
1165
1165
|
LayoutAction2.RevertWorkspace = RevertWorkspace;
|
|
1166
|
-
class Open extends
|
|
1167
|
-
input:
|
|
1168
|
-
part:
|
|
1166
|
+
class Open extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1167
|
+
input: Schema5.Struct({
|
|
1168
|
+
part: Schema5.Literal("main").annotations({
|
|
1169
1169
|
description: "Opening an item in the main content area."
|
|
1170
1170
|
}),
|
|
1171
|
-
subject:
|
|
1171
|
+
subject: Schema5.Array(Schema5.String.annotations({
|
|
1172
1172
|
description: "Ids of the items to open."
|
|
1173
1173
|
})),
|
|
1174
|
-
options:
|
|
1175
|
-
state:
|
|
1174
|
+
options: Schema5.optional(Schema5.Struct({
|
|
1175
|
+
state: Schema5.optional(Schema5.Literal(true).annotations({
|
|
1176
1176
|
description: "The items are being added."
|
|
1177
1177
|
})),
|
|
1178
|
-
variant:
|
|
1178
|
+
variant: Schema5.optional(Schema5.String.annotations({
|
|
1179
1179
|
description: "The variant of the item to open."
|
|
1180
1180
|
})),
|
|
1181
|
-
key:
|
|
1181
|
+
key: Schema5.optional(Schema5.String.annotations({
|
|
1182
1182
|
description: "If provided, will replace item with a matching key (id prefix)."
|
|
1183
1183
|
})),
|
|
1184
|
-
|
|
1184
|
+
workspace: Schema5.optional(Schema5.String.annotations({
|
|
1185
|
+
description: "The workspace to open the items in."
|
|
1186
|
+
})),
|
|
1187
|
+
scrollIntoView: Schema5.optional(Schema5.Boolean.annotations({
|
|
1185
1188
|
description: "Scroll the items into view."
|
|
1186
1189
|
})),
|
|
1187
|
-
pivotId:
|
|
1190
|
+
pivotId: Schema5.optional(Schema5.String.annotations({
|
|
1188
1191
|
description: "The id of the item to place new items next to."
|
|
1189
1192
|
})),
|
|
1190
|
-
positioning:
|
|
1193
|
+
positioning: Schema5.optional(Schema5.Union(Schema5.Literal("start").annotations({
|
|
1191
1194
|
description: "The items are being added before the pivot item."
|
|
1192
|
-
}),
|
|
1195
|
+
}), Schema5.Literal("end").annotations({
|
|
1193
1196
|
description: "The items are being added after the pivot item."
|
|
1194
1197
|
})))
|
|
1195
1198
|
}))
|
|
1196
1199
|
}),
|
|
1197
|
-
output:
|
|
1200
|
+
output: Schema5.Void
|
|
1198
1201
|
}) {
|
|
1199
1202
|
}
|
|
1200
1203
|
LayoutAction2.Open = Open;
|
|
1201
|
-
class Set2 extends
|
|
1202
|
-
input:
|
|
1203
|
-
part:
|
|
1204
|
+
class Set2 extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1205
|
+
input: Schema5.Struct({
|
|
1206
|
+
part: Schema5.Literal("main").annotations({
|
|
1204
1207
|
description: "Setting items in the main content area."
|
|
1205
1208
|
}),
|
|
1206
|
-
subject:
|
|
1209
|
+
subject: Schema5.Array(Schema5.String.annotations({
|
|
1207
1210
|
description: "Ids of the items to set."
|
|
1208
1211
|
})),
|
|
1209
|
-
options:
|
|
1210
|
-
override:
|
|
1212
|
+
options: Schema5.Struct({
|
|
1213
|
+
override: Schema5.Literal(true).annotations({
|
|
1211
1214
|
description: "Override the current items in the main content area."
|
|
1212
1215
|
})
|
|
1213
1216
|
})
|
|
1214
1217
|
}),
|
|
1215
|
-
output:
|
|
1218
|
+
output: Schema5.Void
|
|
1216
1219
|
}) {
|
|
1217
1220
|
}
|
|
1218
1221
|
LayoutAction2.Set = Set2;
|
|
1219
|
-
class Close extends
|
|
1220
|
-
input:
|
|
1221
|
-
part:
|
|
1222
|
+
class Close extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1223
|
+
input: Schema5.Struct({
|
|
1224
|
+
part: Schema5.Literal("main").annotations({
|
|
1222
1225
|
description: "Closing items in the main content area."
|
|
1223
1226
|
}),
|
|
1224
|
-
subject:
|
|
1227
|
+
subject: Schema5.Array(Schema5.String.annotations({
|
|
1225
1228
|
description: "Ids of the items to close."
|
|
1226
1229
|
})),
|
|
1227
|
-
options:
|
|
1228
|
-
state:
|
|
1230
|
+
options: Schema5.Struct({
|
|
1231
|
+
state: Schema5.Literal(false).annotations({
|
|
1229
1232
|
description: "The items are being removed."
|
|
1230
1233
|
})
|
|
1231
1234
|
})
|
|
1232
1235
|
}),
|
|
1233
|
-
output:
|
|
1236
|
+
output: Schema5.Void
|
|
1234
1237
|
}) {
|
|
1235
1238
|
}
|
|
1236
1239
|
LayoutAction2.Close = Close;
|
|
1237
|
-
class ScrollIntoView extends
|
|
1238
|
-
input:
|
|
1239
|
-
part:
|
|
1240
|
+
class ScrollIntoView extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1241
|
+
input: Schema5.Struct({
|
|
1242
|
+
part: Schema5.Literal("current").annotations({
|
|
1240
1243
|
description: "Setting the current item"
|
|
1241
1244
|
}),
|
|
1242
|
-
subject:
|
|
1245
|
+
subject: Schema5.optional(Schema5.String.annotations({
|
|
1243
1246
|
description: "The id of the item to set as current."
|
|
1244
1247
|
})),
|
|
1245
|
-
options:
|
|
1246
|
-
key:
|
|
1247
|
-
value:
|
|
1248
|
+
options: Schema5.optional(Schema5.Record({
|
|
1249
|
+
key: Schema5.String,
|
|
1250
|
+
value: Schema5.Any
|
|
1248
1251
|
}).annotations({
|
|
1249
1252
|
description: "Additional options for the scroll into view."
|
|
1250
1253
|
}))
|
|
1251
1254
|
}),
|
|
1252
|
-
output:
|
|
1255
|
+
output: Schema5.Void
|
|
1253
1256
|
}) {
|
|
1254
1257
|
}
|
|
1255
1258
|
LayoutAction2.ScrollIntoView = ScrollIntoView;
|
|
1256
|
-
class Expose extends
|
|
1257
|
-
input:
|
|
1258
|
-
part:
|
|
1259
|
+
class Expose extends Schema5.TaggedClass()(LayoutAction2.UPDATE_LAYOUT, {
|
|
1260
|
+
input: Schema5.Struct({
|
|
1261
|
+
part: Schema5.Literal("navigation").annotations({
|
|
1259
1262
|
description: "Exposing an item in the navigation area."
|
|
1260
1263
|
}),
|
|
1261
|
-
subject:
|
|
1264
|
+
subject: Schema5.String.annotations({
|
|
1262
1265
|
description: "The id of the item to expose."
|
|
1263
1266
|
})
|
|
1264
1267
|
}),
|
|
1265
|
-
output:
|
|
1268
|
+
output: Schema5.Void
|
|
1266
1269
|
}) {
|
|
1267
1270
|
}
|
|
1268
1271
|
LayoutAction2.Expose = Expose;
|
|
@@ -1272,17 +1275,17 @@ var LayoutAction;
|
|
|
1272
1275
|
var createSurface = (definition) => definition;
|
|
1273
1276
|
|
|
1274
1277
|
// packages/sdk/app-framework/src/common/translations.ts
|
|
1275
|
-
import { Schema as
|
|
1276
|
-
var ResourceKey =
|
|
1277
|
-
key:
|
|
1278
|
-
value:
|
|
1278
|
+
import { Schema as Schema6 } from "effect";
|
|
1279
|
+
var ResourceKey = Schema6.Union(Schema6.String, Schema6.Record({
|
|
1280
|
+
key: Schema6.String,
|
|
1281
|
+
value: Schema6.Any
|
|
1279
1282
|
}));
|
|
1280
|
-
var ResourceLanguage =
|
|
1281
|
-
key:
|
|
1283
|
+
var ResourceLanguage = Schema6.Record({
|
|
1284
|
+
key: Schema6.String,
|
|
1282
1285
|
value: ResourceKey
|
|
1283
1286
|
});
|
|
1284
|
-
var Resource =
|
|
1285
|
-
key:
|
|
1287
|
+
var Resource = Schema6.Record({
|
|
1288
|
+
key: Schema6.String,
|
|
1286
1289
|
value: ResourceLanguage
|
|
1287
1290
|
});
|
|
1288
1291
|
|
|
@@ -1479,4 +1482,4 @@ export {
|
|
|
1479
1482
|
ResourceLanguage,
|
|
1480
1483
|
Resource
|
|
1481
1484
|
};
|
|
1482
|
-
//# sourceMappingURL=chunk-
|
|
1485
|
+
//# sourceMappingURL=chunk-OZD32CQN.mjs.map
|