@dxos/app-framework 0.7.5-main.9d2a38b → 0.7.5-main.b19bfc8
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-S4MYSHQA.mjs +137 -0
- package/dist/lib/browser/app-graph-builder-S4MYSHQA.mjs.map +7 -0
- package/dist/lib/browser/{chunk-GNLU3GAU.mjs → chunk-BCMEJONP.mjs} +660 -823
- package/dist/lib/browser/chunk-BCMEJONP.mjs.map +7 -0
- package/dist/lib/browser/chunk-QS4J6O47.mjs +285 -0
- package/dist/lib/browser/chunk-QS4J6O47.mjs.map +7 -0
- package/dist/lib/browser/chunk-SRZH2PQ2.mjs +32 -0
- package/dist/lib/browser/chunk-SRZH2PQ2.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +57 -74
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/intent-dispatcher-GFBH7T2J.mjs +11 -0
- package/dist/lib/browser/intent-dispatcher-GFBH7T2J.mjs.map +7 -0
- package/dist/lib/browser/intent-resolver-KAFM7CQH.mjs +39 -0
- package/dist/lib/browser/intent-resolver-KAFM7CQH.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/store-L3VRR7II.mjs +29 -0
- package/dist/lib/browser/store-L3VRR7II.mjs.map +7 -0
- package/dist/lib/browser/testing/index.mjs +10 -3
- package/dist/lib/browser/testing/index.mjs.map +3 -3
- package/dist/lib/browser/worker.mjs +77 -0
- package/dist/lib/browser/worker.mjs.map +7 -0
- package/dist/lib/node/app-graph-builder-VMHWFCTP.cjs +146 -0
- package/dist/lib/node/app-graph-builder-VMHWFCTP.cjs.map +7 -0
- package/dist/lib/node/chunk-7Y6KJ3OK.cjs +1466 -0
- package/dist/lib/node/chunk-7Y6KJ3OK.cjs.map +7 -0
- package/dist/lib/node/chunk-B65NJEIJ.cjs +308 -0
- package/dist/lib/node/chunk-B65NJEIJ.cjs.map +7 -0
- package/dist/lib/node/chunk-VCIHQZSN.cjs +58 -0
- package/dist/lib/node/chunk-VCIHQZSN.cjs.map +7 -0
- package/dist/lib/node/index.cjs +106 -118
- package/dist/lib/node/index.cjs.map +4 -4
- package/dist/lib/node/intent-dispatcher-PRCC4KZT.cjs +32 -0
- package/dist/lib/node/intent-dispatcher-PRCC4KZT.cjs.map +7 -0
- package/dist/lib/node/intent-resolver-OZDKCHPW.cjs +46 -0
- package/dist/lib/node/intent-resolver-OZDKCHPW.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/store-BVUKNVKL.cjs +44 -0
- package/dist/lib/node/store-BVUKNVKL.cjs.map +7 -0
- package/dist/lib/node/testing/index.cjs +15 -8
- package/dist/lib/node/testing/index.cjs.map +3 -3
- package/dist/lib/node/worker.cjs +99 -0
- package/dist/lib/node/worker.cjs.map +7 -0
- package/dist/lib/node-esm/app-graph-builder-XHI5IIXQ.mjs +138 -0
- package/dist/lib/node-esm/app-graph-builder-XHI5IIXQ.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-CBT75GCX.mjs +34 -0
- package/dist/lib/node-esm/chunk-CBT75GCX.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-JDAHZRYQ.mjs +286 -0
- package/dist/lib/node-esm/chunk-JDAHZRYQ.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-KPMTPXQI.mjs → chunk-TVIR2PHY.mjs} +660 -823
- package/dist/lib/node-esm/chunk-TVIR2PHY.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +57 -74
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/intent-dispatcher-LGACN32C.mjs +12 -0
- package/dist/lib/node-esm/intent-dispatcher-LGACN32C.mjs.map +7 -0
- package/dist/lib/node-esm/intent-resolver-RBNG76ZX.mjs +40 -0
- package/dist/lib/node-esm/intent-resolver-RBNG76ZX.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/store-PHTOEREN.mjs +30 -0
- package/dist/lib/node-esm/store-PHTOEREN.mjs.map +7 -0
- package/dist/lib/node-esm/testing/index.mjs +10 -3
- package/dist/lib/node-esm/testing/index.mjs.map +3 -3
- package/dist/lib/node-esm/worker.mjs +78 -0
- package/dist/lib/node-esm/worker.mjs.map +7 -0
- package/dist/types/src/App.d.ts +2 -2
- package/dist/types/src/App.d.ts.map +1 -1
- package/dist/types/src/common/capabilities.d.ts +88 -124
- package/dist/types/src/common/capabilities.d.ts.map +1 -1
- package/dist/types/src/common/events.d.ts +22 -11
- package/dist/types/src/common/events.d.ts.map +1 -1
- package/dist/types/src/common/file.d.ts +1 -1
- package/dist/types/src/common/file.d.ts.map +1 -1
- package/dist/types/src/common/graph.d.ts +2 -2
- package/dist/types/src/common/graph.d.ts.map +1 -1
- package/dist/types/src/common/index.d.ts +0 -1
- package/dist/types/src/common/index.d.ts.map +1 -1
- package/dist/types/src/common/layout.d.ts +218 -121
- package/dist/types/src/common/layout.d.ts.map +1 -1
- package/dist/types/src/common/surface.d.ts +3 -3
- 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 +6 -2
- package/dist/types/src/core/capabilities.d.ts.map +1 -1
- package/dist/types/src/core/manager.d.ts +2 -9
- package/dist/types/src/core/manager.d.ts.map +1 -1
- package/dist/types/src/core/plugin.d.ts +5 -2
- package/dist/types/src/core/plugin.d.ts.map +1 -1
- package/dist/types/src/playground/debug/Debug.d.ts +2 -3
- package/dist/types/src/playground/debug/Debug.d.ts.map +1 -1
- package/dist/types/src/playground/debug/plugin.d.ts +1 -1
- package/dist/types/src/playground/debug/plugin.d.ts.map +1 -1
- package/dist/types/src/playground/generator/Main.d.ts +2 -3
- package/dist/types/src/playground/generator/Main.d.ts.map +1 -1
- package/dist/types/src/playground/generator/Toolbar.d.ts +2 -3
- package/dist/types/src/playground/generator/Toolbar.d.ts.map +1 -1
- package/dist/types/src/playground/generator/generator.d.ts +5 -3
- package/dist/types/src/playground/generator/generator.d.ts.map +1 -1
- package/dist/types/src/playground/generator/plugin.d.ts +1 -1
- package/dist/types/src/playground/generator/plugin.d.ts.map +1 -1
- package/dist/types/src/playground/layout/Layout.d.ts +2 -2
- package/dist/types/src/playground/layout/Layout.d.ts.map +1 -1
- package/dist/types/src/playground/layout/plugin.d.ts +1 -1
- package/dist/types/src/playground/layout/plugin.d.ts.map +1 -1
- package/dist/types/src/playground/logger/Toolbar.d.ts +2 -3
- package/dist/types/src/playground/logger/Toolbar.d.ts.map +1 -1
- package/dist/types/src/playground/logger/plugin.d.ts +1 -1
- package/dist/types/src/playground/logger/plugin.d.ts.map +1 -1
- package/dist/types/src/playground/logger/schema.d.ts +1 -1
- package/dist/types/src/playground/logger/schema.d.ts.map +1 -1
- package/dist/types/src/playground/playground.stories.d.ts +2 -3
- package/dist/types/src/playground/playground.stories.d.ts.map +1 -1
- package/dist/types/src/plugin-intent/IntentPlugin.d.ts +1 -1
- package/dist/types/src/plugin-intent/IntentPlugin.d.ts.map +1 -1
- package/dist/types/src/plugin-intent/actions.d.ts +1 -1
- package/dist/types/src/plugin-intent/actions.d.ts.map +1 -1
- package/dist/types/src/plugin-intent/index.d.ts +0 -1
- package/dist/types/src/plugin-intent/index.d.ts.map +1 -1
- package/dist/types/src/plugin-intent/intent-dispatcher.d.ts +27 -20
- package/dist/types/src/plugin-intent/intent-dispatcher.d.ts.map +1 -1
- package/dist/types/src/plugin-intent/intent.d.ts +3 -3
- package/dist/types/src/plugin-intent/intent.d.ts.map +1 -1
- package/dist/types/src/plugin-settings/SettingsPlugin.d.ts +1 -1
- package/dist/types/src/plugin-settings/SettingsPlugin.d.ts.map +1 -1
- package/dist/types/src/plugin-settings/actions.d.ts +11 -1
- package/dist/types/src/plugin-settings/actions.d.ts.map +1 -1
- package/dist/types/src/plugin-settings/app-graph-builder.d.ts +197 -0
- package/dist/types/src/plugin-settings/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/plugin-settings/intent-resolver.d.ts +4 -0
- package/dist/types/src/plugin-settings/intent-resolver.d.ts.map +1 -0
- package/dist/types/src/plugin-settings/store.d.ts +5 -0
- package/dist/types/src/plugin-settings/store.d.ts.map +1 -0
- package/dist/types/src/plugin-settings/translations.d.ts +11 -0
- package/dist/types/src/plugin-settings/translations.d.ts.map +1 -0
- package/dist/types/src/react/ErrorBoundary.d.ts +1 -1
- package/dist/types/src/{plugin-intent → react}/IntentContext.d.ts +1 -1
- package/dist/types/src/react/IntentContext.d.ts.map +1 -0
- package/dist/types/src/react/Surface.d.ts.map +1 -1
- package/dist/types/src/react/Surface.stories.d.ts +15 -0
- package/dist/types/src/react/Surface.stories.d.ts.map +1 -0
- package/dist/types/src/react/common.d.ts +13 -0
- package/dist/types/src/react/common.d.ts.map +1 -0
- package/dist/types/src/react/index.d.ts +2 -0
- package/dist/types/src/react/index.d.ts.map +1 -1
- package/dist/types/src/react/useCapabilities.d.ts.map +1 -1
- package/dist/types/src/react/useIntentResolver.d.ts +3 -0
- package/dist/types/src/react/useIntentResolver.d.ts.map +1 -0
- package/dist/types/src/testing/withPluginManager.d.ts +1 -1
- package/dist/types/src/testing/withPluginManager.d.ts.map +1 -1
- package/dist/types/src/worker.d.ts +4 -0
- package/dist/types/src/worker.d.ts.map +1 -0
- package/package.json +29 -21
- package/project.json +4 -3
- package/src/App.tsx +17 -15
- package/src/common/capabilities.ts +30 -11
- package/src/common/events.ts +16 -2
- package/src/common/file.ts +1 -1
- package/src/common/graph.ts +2 -2
- package/src/common/index.ts +0 -1
- package/src/common/layout.ts +207 -126
- package/src/common/surface.ts +2 -2
- package/src/common/translations.ts +7 -8
- package/src/core/capabilities.ts +16 -7
- package/src/core/manager.test.ts +22 -73
- package/src/core/manager.ts +105 -91
- package/src/core/plugin.ts +6 -3
- package/src/playground/debug/plugin.ts +1 -1
- package/src/playground/generator/Toolbar.tsx +11 -11
- package/src/playground/generator/generator.ts +25 -0
- package/src/playground/generator/plugin.ts +6 -1
- package/src/playground/layout/plugin.ts +1 -1
- package/src/playground/logger/Toolbar.tsx +2 -1
- package/src/playground/logger/plugin.ts +7 -4
- package/src/playground/logger/schema.ts +1 -1
- package/src/plugin-intent/IntentPlugin.tsx +3 -43
- package/src/plugin-intent/actions.ts +1 -1
- package/src/plugin-intent/errors.ts +1 -1
- package/src/plugin-intent/index.ts +0 -1
- package/src/plugin-intent/intent-dispatcher.test.ts +48 -29
- package/src/plugin-intent/intent-dispatcher.ts +81 -42
- package/src/plugin-intent/intent.ts +5 -5
- package/src/plugin-settings/SettingsPlugin.ts +19 -13
- package/src/plugin-settings/actions.ts +11 -1
- package/src/plugin-settings/app-graph-builder.ts +122 -0
- package/src/plugin-settings/intent-resolver.ts +34 -0
- package/src/plugin-settings/store.ts +30 -0
- package/src/plugin-settings/translations.ts +17 -0
- package/src/{plugin-intent → react}/IntentContext.tsx +2 -2
- package/src/react/Surface.stories.tsx +96 -0
- package/src/react/Surface.tsx +11 -8
- package/src/react/common.ts +12 -0
- package/src/react/index.ts +2 -0
- package/src/react/useCapabilities.ts +1 -0
- package/src/react/useIntentResolver.ts +22 -0
- package/src/testing/withPluginManager.tsx +11 -3
- package/src/worker.ts +11 -0
- package/tsconfig.json +7 -13
- package/dist/lib/browser/chunk-GNLU3GAU.mjs.map +0 -7
- package/dist/lib/node/chunk-FBA4BB3J.cjs +0 -1639
- package/dist/lib/node/chunk-FBA4BB3J.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-KPMTPXQI.mjs.map +0 -7
- package/dist/types/src/common/navigation.d.ts +0 -241
- package/dist/types/src/common/navigation.d.ts.map +0 -1
- package/dist/types/src/plugin-intent/IntentContext.d.ts.map +0 -1
- package/src/common/navigation.ts +0 -199
- /package/{.eslintrc.js → .eslintrc.cjs} +0 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var chunk_VCIHQZSN_exports = {};
|
|
20
|
+
__export(chunk_VCIHQZSN_exports, {
|
|
21
|
+
SETTINGS_ACTION: () => SETTINGS_ACTION,
|
|
22
|
+
SETTINGS_ID: () => SETTINGS_ID,
|
|
23
|
+
SETTINGS_KEY: () => SETTINGS_KEY,
|
|
24
|
+
SETTINGS_PLUGIN: () => SETTINGS_PLUGIN,
|
|
25
|
+
SettingsAction: () => SettingsAction
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(chunk_VCIHQZSN_exports);
|
|
28
|
+
var import_schema = require("@effect/schema");
|
|
29
|
+
var SETTINGS_PLUGIN = "dxos.org/plugin/settings";
|
|
30
|
+
var SETTINGS_ACTION = `${SETTINGS_PLUGIN}/action`;
|
|
31
|
+
var SETTINGS_ID = "!dxos:settings";
|
|
32
|
+
var SETTINGS_KEY = "settings";
|
|
33
|
+
var SettingsAction;
|
|
34
|
+
(function(SettingsAction2) {
|
|
35
|
+
class Open extends import_schema.Schema.TaggedClass()(`${SETTINGS_ACTION}/open`, {
|
|
36
|
+
input: import_schema.Schema.Struct({
|
|
37
|
+
plugin: import_schema.Schema.optional(import_schema.Schema.String)
|
|
38
|
+
}),
|
|
39
|
+
output: import_schema.Schema.Void
|
|
40
|
+
}) {
|
|
41
|
+
}
|
|
42
|
+
SettingsAction2.Open = Open;
|
|
43
|
+
class OpenPluginRegistry extends import_schema.Schema.TaggedClass()(`${SETTINGS_ACTION}/open-plugin-registry`, {
|
|
44
|
+
input: import_schema.Schema.Void,
|
|
45
|
+
output: import_schema.Schema.Void
|
|
46
|
+
}) {
|
|
47
|
+
}
|
|
48
|
+
SettingsAction2.OpenPluginRegistry = OpenPluginRegistry;
|
|
49
|
+
})(SettingsAction || (SettingsAction = {}));
|
|
50
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
51
|
+
0 && (module.exports = {
|
|
52
|
+
SETTINGS_ACTION,
|
|
53
|
+
SETTINGS_ID,
|
|
54
|
+
SETTINGS_KEY,
|
|
55
|
+
SETTINGS_PLUGIN,
|
|
56
|
+
SettingsAction
|
|
57
|
+
});
|
|
58
|
+
//# sourceMappingURL=chunk-VCIHQZSN.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/plugin-settings/actions.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Schema as S } from '@effect/schema';\n\nexport const SETTINGS_PLUGIN = 'dxos.org/plugin/settings';\nexport const SETTINGS_ACTION = `${SETTINGS_PLUGIN}/action`;\nexport const SETTINGS_ID = '!dxos:settings';\nexport const SETTINGS_KEY = 'settings';\n\nexport namespace SettingsAction {\n export class Open extends S.TaggedClass<Open>()(`${SETTINGS_ACTION}/open`, {\n input: S.Struct({\n plugin: S.optional(S.String),\n }),\n output: S.Void,\n }) {}\n\n export class OpenPluginRegistry extends S.TaggedClass<OpenPluginRegistry>()(\n `${SETTINGS_ACTION}/open-plugin-registry`,\n {\n input: S.Void,\n output: S.Void,\n },\n ) {}\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oBAA4B;AAErB,IAAMA,kBAAkB;AACxB,IAAMC,kBAAkB,GAAGD,eAAAA;AAC3B,IAAME,cAAc;AACpB,IAAMC,eAAe;;UAEXC,iBAAAA;EACR,MAAMC,aAAaC,cAAAA,OAAEC,YAAW,EAAS,GAAGN,eAAAA,SAAwB;IACzEO,OAAOF,cAAAA,OAAEG,OAAO;MACdC,QAAQJ,cAAAA,OAAEK,SAASL,cAAAA,OAAEM,MAAM;IAC7B,CAAA;IACAC,QAAQP,cAAAA,OAAEQ;EACZ,CAAA,EAAA;EAAI;kBALST,OAAAA;EAON,MAAMU,2BAA2BT,cAAAA,OAAEC,YAAW,EACnD,GAAGN,eAAAA,yBACH;IACEO,OAAOF,cAAAA,OAAEQ;IACTD,QAAQP,cAAAA,OAAEQ;EACZ,CAAA,EAAA;EACC;kBANUC,qBAAAA;AAOf,GAfiBX,mBAAAA,iBAAAA,CAAAA,EAAAA;",
|
|
6
|
+
"names": ["SETTINGS_PLUGIN", "SETTINGS_ACTION", "SETTINGS_ID", "SETTINGS_KEY", "SettingsAction", "Open", "S", "TaggedClass", "input", "Struct", "plugin", "optional", "String", "output", "Void", "OpenPluginRegistry"]
|
|
7
|
+
}
|
package/dist/lib/node/index.cjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,121 +17,120 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
var node_exports = {};
|
|
20
30
|
__export(node_exports, {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
ResourceLanguage: () => import_chunk_FBA4BB3J.ResourceLanguage,
|
|
47
|
-
SETTINGS_ACTION: () => SETTINGS_ACTION,
|
|
48
|
-
SETTINGS_PLUGIN: () => SETTINGS_PLUGIN,
|
|
49
|
-
SLUG_COLLECTION_INDICATOR: () => import_chunk_FBA4BB3J.SLUG_COLLECTION_INDICATOR,
|
|
50
|
-
SLUG_ENTRY_SEPARATOR: () => import_chunk_FBA4BB3J.SLUG_ENTRY_SEPARATOR,
|
|
51
|
-
SLUG_KEY_VALUE_SEPARATOR: () => import_chunk_FBA4BB3J.SLUG_KEY_VALUE_SEPARATOR,
|
|
52
|
-
SLUG_LIST_SEPARATOR: () => import_chunk_FBA4BB3J.SLUG_LIST_SEPARATOR,
|
|
53
|
-
SLUG_PATH_SEPARATOR: () => import_chunk_FBA4BB3J.SLUG_PATH_SEPARATOR,
|
|
54
|
-
SettingsAction: () => SettingsAction,
|
|
31
|
+
Capabilities: () => import_chunk_7Y6KJ3OK.Capabilities,
|
|
32
|
+
ErrorBoundary: () => import_chunk_B65NJEIJ.ErrorBoundary,
|
|
33
|
+
Events: () => import_chunk_7Y6KJ3OK.Events,
|
|
34
|
+
FileInfoSchema: () => import_chunk_7Y6KJ3OK.FileInfoSchema,
|
|
35
|
+
INTENT_ACTION: () => import_chunk_7Y6KJ3OK.INTENT_ACTION,
|
|
36
|
+
INTENT_PLUGIN: () => import_chunk_7Y6KJ3OK.INTENT_PLUGIN,
|
|
37
|
+
IntentAction: () => import_chunk_7Y6KJ3OK.IntentAction,
|
|
38
|
+
IntentPlugin: () => import_chunk_7Y6KJ3OK.IntentPlugin,
|
|
39
|
+
LAYOUT_ACTION: () => import_chunk_7Y6KJ3OK.LAYOUT_ACTION,
|
|
40
|
+
LAYOUT_PLUGIN: () => import_chunk_7Y6KJ3OK.LAYOUT_PLUGIN,
|
|
41
|
+
Label: () => import_chunk_7Y6KJ3OK.Label,
|
|
42
|
+
LayoutAction: () => import_chunk_7Y6KJ3OK.LayoutAction,
|
|
43
|
+
Plugin: () => import_chunk_7Y6KJ3OK.Plugin,
|
|
44
|
+
PluginManager: () => import_chunk_7Y6KJ3OK.PluginManager,
|
|
45
|
+
PluginManagerProvider: () => import_chunk_B65NJEIJ.PluginManagerProvider,
|
|
46
|
+
PluginModule: () => import_chunk_7Y6KJ3OK.PluginModule,
|
|
47
|
+
PluginsContext: () => import_chunk_7Y6KJ3OK.PluginsContext,
|
|
48
|
+
Resource: () => import_chunk_7Y6KJ3OK.Resource,
|
|
49
|
+
ResourceKey: () => import_chunk_7Y6KJ3OK.ResourceKey,
|
|
50
|
+
ResourceLanguage: () => import_chunk_7Y6KJ3OK.ResourceLanguage,
|
|
51
|
+
SETTINGS_ACTION: () => import_chunk_VCIHQZSN.SETTINGS_ACTION,
|
|
52
|
+
SETTINGS_ID: () => import_chunk_VCIHQZSN.SETTINGS_ID,
|
|
53
|
+
SETTINGS_KEY: () => import_chunk_VCIHQZSN.SETTINGS_KEY,
|
|
54
|
+
SETTINGS_PLUGIN: () => import_chunk_VCIHQZSN.SETTINGS_PLUGIN,
|
|
55
|
+
SettingsAction: () => import_chunk_VCIHQZSN.SettingsAction,
|
|
55
56
|
SettingsPlugin: () => SettingsPlugin,
|
|
56
|
-
Surface: () =>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
useCapabilities: () => import_chunk_FBA4BB3J.useCapabilities,
|
|
86
|
-
useCapability: () => import_chunk_FBA4BB3J.useCapability,
|
|
87
|
-
useIntentDispatcher: () => import_chunk_FBA4BB3J.useIntentDispatcher,
|
|
88
|
-
useIntentResolver: () => import_chunk_FBA4BB3J.useIntentResolver,
|
|
89
|
-
usePluginManager: () => import_chunk_FBA4BB3J.usePluginManager
|
|
57
|
+
Surface: () => import_chunk_B65NJEIJ.Surface,
|
|
58
|
+
allOf: () => import_chunk_7Y6KJ3OK.allOf,
|
|
59
|
+
chain: () => import_chunk_7Y6KJ3OK.chain,
|
|
60
|
+
contributes: () => import_chunk_7Y6KJ3OK.contributes,
|
|
61
|
+
createApp: () => import_chunk_B65NJEIJ.createApp,
|
|
62
|
+
createDispatcher: () => import_chunk_7Y6KJ3OK.createDispatcher,
|
|
63
|
+
createIntent: () => import_chunk_7Y6KJ3OK.createIntent,
|
|
64
|
+
createResolver: () => import_chunk_7Y6KJ3OK.createResolver,
|
|
65
|
+
createSurface: () => import_chunk_7Y6KJ3OK.createSurface,
|
|
66
|
+
defaultFileTypes: () => import_chunk_7Y6KJ3OK.defaultFileTypes,
|
|
67
|
+
defineCapability: () => import_chunk_7Y6KJ3OK.defineCapability,
|
|
68
|
+
defineEvent: () => import_chunk_7Y6KJ3OK.defineEvent,
|
|
69
|
+
defineModule: () => import_chunk_7Y6KJ3OK.defineModule,
|
|
70
|
+
definePlugin: () => import_chunk_7Y6KJ3OK.definePlugin,
|
|
71
|
+
eventKey: () => import_chunk_7Y6KJ3OK.eventKey,
|
|
72
|
+
getEvents: () => import_chunk_7Y6KJ3OK.getEvents,
|
|
73
|
+
isAllOf: () => import_chunk_7Y6KJ3OK.isAllOf,
|
|
74
|
+
isOneOf: () => import_chunk_7Y6KJ3OK.isOneOf,
|
|
75
|
+
isSurfaceAvailable: () => import_chunk_B65NJEIJ.isSurfaceAvailable,
|
|
76
|
+
lazy: () => import_chunk_7Y6KJ3OK.lazy,
|
|
77
|
+
oneOf: () => import_chunk_7Y6KJ3OK.oneOf,
|
|
78
|
+
useAppGraph: () => import_chunk_B65NJEIJ.useAppGraph,
|
|
79
|
+
useCapabilities: () => import_chunk_B65NJEIJ.useCapabilities,
|
|
80
|
+
useCapability: () => import_chunk_B65NJEIJ.useCapability,
|
|
81
|
+
useIntentDispatcher: () => import_chunk_B65NJEIJ.useIntentDispatcher,
|
|
82
|
+
useIntentResolver: () => import_chunk_B65NJEIJ.useIntentResolver,
|
|
83
|
+
useLayout: () => import_chunk_B65NJEIJ.useLayout,
|
|
84
|
+
usePluginManager: () => import_chunk_B65NJEIJ.usePluginManager,
|
|
85
|
+
useSurfaces: () => import_chunk_B65NJEIJ.useSurfaces
|
|
90
86
|
});
|
|
91
87
|
module.exports = __toCommonJS(node_exports);
|
|
92
|
-
var
|
|
93
|
-
var
|
|
94
|
-
var
|
|
95
|
-
var
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}) {
|
|
88
|
+
var import_chunk_B65NJEIJ = require("./chunk-B65NJEIJ.cjs");
|
|
89
|
+
var import_chunk_VCIHQZSN = require("./chunk-VCIHQZSN.cjs");
|
|
90
|
+
var import_chunk_7Y6KJ3OK = require("./chunk-7Y6KJ3OK.cjs");
|
|
91
|
+
var translations_default = [
|
|
92
|
+
{
|
|
93
|
+
"en-US": {
|
|
94
|
+
[import_chunk_VCIHQZSN.SETTINGS_PLUGIN]: {
|
|
95
|
+
"open settings label": "Open settings",
|
|
96
|
+
"app settings label": "Settings",
|
|
97
|
+
"custom plugins label": "Plugins"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
105
100
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
id: SETTINGS_PLUGIN
|
|
101
|
+
];
|
|
102
|
+
var SettingsPlugin = () => (0, import_chunk_7Y6KJ3OK.definePlugin)({
|
|
103
|
+
id: import_chunk_VCIHQZSN.SETTINGS_PLUGIN
|
|
110
104
|
}, [
|
|
111
|
-
(0,
|
|
112
|
-
id: `${SETTINGS_PLUGIN}/module/store`,
|
|
113
|
-
activatesOn:
|
|
105
|
+
(0, import_chunk_7Y6KJ3OK.defineModule)({
|
|
106
|
+
id: `${import_chunk_VCIHQZSN.SETTINGS_PLUGIN}/module/store`,
|
|
107
|
+
activatesOn: import_chunk_7Y6KJ3OK.Events.Startup,
|
|
114
108
|
activatesBefore: [
|
|
115
|
-
|
|
109
|
+
import_chunk_7Y6KJ3OK.Events.SetupSettings
|
|
116
110
|
],
|
|
117
111
|
activatesAfter: [
|
|
118
|
-
|
|
112
|
+
import_chunk_7Y6KJ3OK.Events.SettingsReady
|
|
119
113
|
],
|
|
120
|
-
activate: (
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
114
|
+
activate: (0, import_chunk_7Y6KJ3OK.lazy)(() => import("./store-BVUKNVKL.cjs"))
|
|
115
|
+
}),
|
|
116
|
+
(0, import_chunk_7Y6KJ3OK.defineModule)({
|
|
117
|
+
id: `${import_chunk_VCIHQZSN.SETTINGS_PLUGIN}/module/translations`,
|
|
118
|
+
activatesOn: import_chunk_7Y6KJ3OK.Events.SetupTranslations,
|
|
119
|
+
activate: () => (0, import_chunk_7Y6KJ3OK.contributes)(import_chunk_7Y6KJ3OK.Capabilities.Translations, translations_default)
|
|
120
|
+
}),
|
|
121
|
+
(0, import_chunk_7Y6KJ3OK.defineModule)({
|
|
122
|
+
id: `${import_chunk_VCIHQZSN.SETTINGS_PLUGIN}/module/intent-resolver`,
|
|
123
|
+
activatesOn: import_chunk_7Y6KJ3OK.Events.SetupIntentResolver,
|
|
124
|
+
activate: (0, import_chunk_7Y6KJ3OK.lazy)(() => import("./intent-resolver-OZDKCHPW.cjs"))
|
|
125
|
+
}),
|
|
126
|
+
(0, import_chunk_7Y6KJ3OK.defineModule)({
|
|
127
|
+
id: `${import_chunk_VCIHQZSN.SETTINGS_PLUGIN}/module/app-graph-builder`,
|
|
128
|
+
activatesOn: import_chunk_7Y6KJ3OK.Events.SetupAppGraph,
|
|
129
|
+
activate: (0, import_chunk_7Y6KJ3OK.lazy)(() => import("./app-graph-builder-VMHWFCTP.cjs"))
|
|
128
130
|
})
|
|
129
131
|
]);
|
|
130
132
|
// Annotate the CommonJS export names for ESM import in node:
|
|
131
133
|
0 && (module.exports = {
|
|
132
|
-
ActiveParts,
|
|
133
134
|
Capabilities,
|
|
134
135
|
ErrorBoundary,
|
|
135
136
|
Events,
|
|
@@ -138,15 +139,10 @@ var SettingsPlugin = () => (0, import_chunk_FBA4BB3J.definePlugin)({
|
|
|
138
139
|
INTENT_PLUGIN,
|
|
139
140
|
IntentAction,
|
|
140
141
|
IntentPlugin,
|
|
141
|
-
IntentProvider,
|
|
142
142
|
LAYOUT_ACTION,
|
|
143
143
|
LAYOUT_PLUGIN,
|
|
144
144
|
Label,
|
|
145
|
-
Layout,
|
|
146
145
|
LayoutAction,
|
|
147
|
-
NAVIGATION_ACTION,
|
|
148
|
-
NAVIGATION_PLUGIN,
|
|
149
|
-
NavigationAction,
|
|
150
146
|
Plugin,
|
|
151
147
|
PluginManager,
|
|
152
148
|
PluginManagerProvider,
|
|
@@ -156,16 +152,12 @@ var SettingsPlugin = () => (0, import_chunk_FBA4BB3J.definePlugin)({
|
|
|
156
152
|
ResourceKey,
|
|
157
153
|
ResourceLanguage,
|
|
158
154
|
SETTINGS_ACTION,
|
|
155
|
+
SETTINGS_ID,
|
|
156
|
+
SETTINGS_KEY,
|
|
159
157
|
SETTINGS_PLUGIN,
|
|
160
|
-
SLUG_COLLECTION_INDICATOR,
|
|
161
|
-
SLUG_ENTRY_SEPARATOR,
|
|
162
|
-
SLUG_KEY_VALUE_SEPARATOR,
|
|
163
|
-
SLUG_LIST_SEPARATOR,
|
|
164
|
-
SLUG_PATH_SEPARATOR,
|
|
165
158
|
SettingsAction,
|
|
166
159
|
SettingsPlugin,
|
|
167
160
|
Surface,
|
|
168
|
-
Toast,
|
|
169
161
|
allOf,
|
|
170
162
|
chain,
|
|
171
163
|
contributes,
|
|
@@ -180,23 +172,19 @@ var SettingsPlugin = () => (0, import_chunk_FBA4BB3J.definePlugin)({
|
|
|
180
172
|
defineModule,
|
|
181
173
|
definePlugin,
|
|
182
174
|
eventKey,
|
|
183
|
-
firstIdInPart,
|
|
184
175
|
getEvents,
|
|
185
|
-
indexInPart,
|
|
186
176
|
isAllOf,
|
|
187
|
-
isLayoutAdjustment,
|
|
188
|
-
isLayoutMode,
|
|
189
|
-
isLayoutParts,
|
|
190
177
|
isOneOf,
|
|
191
178
|
isSurfaceAvailable,
|
|
192
179
|
lazy,
|
|
193
180
|
oneOf,
|
|
194
|
-
|
|
195
|
-
partLength,
|
|
181
|
+
useAppGraph,
|
|
196
182
|
useCapabilities,
|
|
197
183
|
useCapability,
|
|
198
184
|
useIntentDispatcher,
|
|
199
185
|
useIntentResolver,
|
|
200
|
-
|
|
186
|
+
useLayout,
|
|
187
|
+
usePluginManager,
|
|
188
|
+
useSurfaces
|
|
201
189
|
});
|
|
202
190
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/plugin-settings/
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport {
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["SETTINGS_PLUGIN", "
|
|
3
|
+
"sources": ["../../../src/plugin-settings/translations.ts", "../../../src/plugin-settings/SettingsPlugin.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { SETTINGS_PLUGIN } from './actions';\n\nexport default [\n {\n 'en-US': {\n [SETTINGS_PLUGIN]: {\n 'open settings label': 'Open settings',\n 'app settings label': 'Settings',\n 'custom plugins label': 'Plugins',\n },\n },\n },\n];\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { SETTINGS_PLUGIN } from './actions';\nimport translations from './translations';\nimport { Capabilities, Events } from '../common';\nimport { contributes, defineModule, definePlugin, lazy } from '../core';\n\n// TODO(wittjosiah): Add options to exclude some modules.\nexport const SettingsPlugin = () =>\n definePlugin({ id: SETTINGS_PLUGIN }, [\n defineModule({\n id: `${SETTINGS_PLUGIN}/module/store`,\n activatesOn: Events.Startup,\n activatesBefore: [Events.SetupSettings],\n activatesAfter: [Events.SettingsReady],\n activate: lazy(() => import('./store')),\n }),\n defineModule({\n id: `${SETTINGS_PLUGIN}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${SETTINGS_PLUGIN}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: lazy(() => import('./intent-resolver')),\n }),\n defineModule({\n id: `${SETTINGS_PLUGIN}/module/app-graph-builder`,\n activatesOn: Events.SetupAppGraph,\n activate: lazy(() => import('./app-graph-builder')),\n }),\n ]);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACA,qCAAAA,GAAkB;QACjB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;MAC1B;IACF;EACF;;ACLK,IAAMC,iBAAiB,UAC5BC,oCAAa;EAAEC,IAAIH;AAAgB,GAAG;MACpCI,oCAAa;IACXD,IAAI,GAAGH,qCAAAA;IACPK,aAAaC,6BAAOC;IACpBC,iBAAiB;MAACF,6BAAOG;;IACzBC,gBAAgB;MAACJ,6BAAOK;;IACxBC,cAAUC,4BAAK,MAAM,OAAO,sBAAA,CAAA;EAC9B,CAAA;MACAT,oCAAa;IACXD,IAAI,GAAGH,qCAAAA;IACPK,aAAaC,6BAAOQ;IACpBF,UAAU,UAAMG,mCAAYC,mCAAaC,cAAcC,oBAAAA;EACzD,CAAA;MACAd,oCAAa;IACXD,IAAI,GAAGH,qCAAAA;IACPK,aAAaC,6BAAOa;IACpBP,cAAUC,4BAAK,MAAM,OAAO,gCAAA,CAAA;EAC9B,CAAA;MACAT,oCAAa;IACXD,IAAI,GAAGH,qCAAAA;IACPK,aAAaC,6BAAOc;IACpBR,cAAUC,4BAAK,MAAM,OAAO,kCAAA,CAAA;EAC9B,CAAA;CACD;",
|
|
6
|
+
"names": ["SETTINGS_PLUGIN", "SettingsPlugin", "definePlugin", "id", "defineModule", "activatesOn", "Events", "Startup", "activatesBefore", "SetupSettings", "activatesAfter", "SettingsReady", "activate", "lazy", "SetupTranslations", "contributes", "Capabilities", "Translations", "translations", "SetupIntentResolver", "SetupAppGraph"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var intent_dispatcher_PRCC4KZT_exports = {};
|
|
20
|
+
__export(intent_dispatcher_PRCC4KZT_exports, {
|
|
21
|
+
createDispatcher: () => import_chunk_7Y6KJ3OK.createDispatcher,
|
|
22
|
+
createResolver: () => import_chunk_7Y6KJ3OK.createResolver,
|
|
23
|
+
default: () => import_chunk_7Y6KJ3OK.intent_dispatcher_default
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(intent_dispatcher_PRCC4KZT_exports);
|
|
26
|
+
var import_chunk_7Y6KJ3OK = require("./chunk-7Y6KJ3OK.cjs");
|
|
27
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
28
|
+
0 && (module.exports = {
|
|
29
|
+
createDispatcher,
|
|
30
|
+
createResolver
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=intent-dispatcher-PRCC4KZT.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["intent-dispatcher-PRCC4KZT.cjs"],
|
|
4
|
+
"sourcesContent": ["import {\n createDispatcher,\n createResolver,\n intent_dispatcher_default\n} from \"./chunk-7Y6KJ3OK.cjs\";\nexport {\n createDispatcher,\n createResolver,\n intent_dispatcher_default as default\n};\n//# sourceMappingURL=intent-dispatcher-PRCC4KZT.cjs.map\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAIO;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var intent_resolver_OZDKCHPW_exports = {};
|
|
20
|
+
__export(intent_resolver_OZDKCHPW_exports, {
|
|
21
|
+
default: () => intent_resolver_default
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(intent_resolver_OZDKCHPW_exports);
|
|
24
|
+
var import_chunk_VCIHQZSN = require("./chunk-VCIHQZSN.cjs");
|
|
25
|
+
var import_chunk_7Y6KJ3OK = require("./chunk-7Y6KJ3OK.cjs");
|
|
26
|
+
var import_effect = require("effect");
|
|
27
|
+
var intent_resolver_default = () => (0, import_chunk_7Y6KJ3OK.contributes)(import_chunk_7Y6KJ3OK.Capabilities.IntentResolver, (0, import_chunk_7Y6KJ3OK.createResolver)({
|
|
28
|
+
intent: import_chunk_VCIHQZSN.SettingsAction.Open,
|
|
29
|
+
resolve: ({ plugin }) => {
|
|
30
|
+
const openSettings = (0, import_chunk_7Y6KJ3OK.createIntent)(import_chunk_7Y6KJ3OK.LayoutAction.SwitchWorkspace, {
|
|
31
|
+
part: "workspace",
|
|
32
|
+
subject: import_chunk_VCIHQZSN.SETTINGS_ID
|
|
33
|
+
});
|
|
34
|
+
return {
|
|
35
|
+
intents: [
|
|
36
|
+
plugin ? (0, import_effect.pipe)(openSettings, (0, import_chunk_7Y6KJ3OK.chain)(import_chunk_7Y6KJ3OK.LayoutAction.Open, {
|
|
37
|
+
part: "main",
|
|
38
|
+
subject: [
|
|
39
|
+
`${import_chunk_VCIHQZSN.SETTINGS_KEY}:${plugin.replaceAll("/", ":")}`
|
|
40
|
+
]
|
|
41
|
+
})) : openSettings
|
|
42
|
+
]
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
}));
|
|
46
|
+
//# sourceMappingURL=intent-resolver-OZDKCHPW.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/plugin-settings/intent-resolver.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { pipe } from 'effect';\n\nimport { SETTINGS_ID, SETTINGS_KEY, SettingsAction } from './actions';\nimport { Capabilities, LayoutAction } from '../common';\nimport { contributes } from '../core';\nimport { createResolver, createIntent, chain } from '../plugin-intent';\n\nexport default () =>\n contributes(\n Capabilities.IntentResolver,\n createResolver({\n intent: SettingsAction.Open,\n resolve: ({ plugin }) => {\n const openSettings = createIntent(LayoutAction.SwitchWorkspace, { part: 'workspace', subject: SETTINGS_ID });\n return {\n intents: [\n plugin\n ? pipe(\n openSettings,\n chain(LayoutAction.Open, {\n part: 'main',\n subject: [`${SETTINGS_KEY}:${plugin.replaceAll('/', ':')}`],\n }),\n )\n : openSettings,\n ],\n };\n },\n }),\n );\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oBAAqB;AAOrB,IAAA,0BAAe,UACbA,mCACEC,mCAAaC,oBACbC,sCAAe;EACbC,QAAQC,qCAAeC;EACvBC,SAAS,CAAC,EAAEC,OAAM,MAAE;AAClB,UAAMC,mBAAeC,oCAAaC,mCAAaC,iBAAiB;MAAEC,MAAM;MAAaC,SAASC;IAAY,CAAA;AAC1G,WAAO;MACLC,SAAS;QACPR,aACIS,oBACER,kBACAS,6BAAMP,mCAAaL,MAAM;UACvBO,MAAM;UACNC,SAAS;YAAC,GAAGK,kCAAAA,IAAgBX,OAAOY,WAAW,KAAK,GAAA,CAAA;;QACtD,CAAA,CAAA,IAEFX;;IAER;EACF;AACF,CAAA,CAAA;",
|
|
6
|
+
"names": ["contributes", "Capabilities", "IntentResolver", "createResolver", "intent", "SettingsAction", "Open", "resolve", "plugin", "openSettings", "createIntent", "LayoutAction", "SwitchWorkspace", "part", "subject", "SETTINGS_ID", "intents", "pipe", "chain", "SETTINGS_KEY", "replaceAll"]
|
|
7
|
+
}
|