@jbrowse/core 2.4.1 → 2.5.0
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/BaseFeatureWidget/BaseFeatureDetail/ArrayValue.d.ts +16 -0
- package/BaseFeatureWidget/BaseFeatureDetail/ArrayValue.js +46 -0
- package/BaseFeatureWidget/BaseFeatureDetail/Attributes.d.ts +15 -0
- package/BaseFeatureWidget/BaseFeatureDetail/Attributes.js +69 -0
- package/BaseFeatureWidget/BaseFeatureDetail/BasicField.d.ts +17 -0
- package/BaseFeatureWidget/BaseFeatureDetail/BasicField.js +23 -0
- package/BaseFeatureWidget/BaseFeatureDetail/BasicValue.d.ts +12 -0
- package/BaseFeatureWidget/BaseFeatureDetail/BasicValue.js +26 -0
- package/BaseFeatureWidget/BaseFeatureDetail/DataGrid.d.ts +14 -0
- package/BaseFeatureWidget/BaseFeatureDetail/DataGrid.js +98 -0
- package/BaseFeatureWidget/BaseFeatureDetail/FieldName.d.ts +16 -0
- package/BaseFeatureWidget/BaseFeatureDetail/FieldName.js +32 -0
- package/BaseFeatureWidget/BaseFeatureDetail/UriField.d.ts +17 -0
- package/BaseFeatureWidget/BaseFeatureDetail/UriField.js +31 -0
- package/BaseFeatureWidget/BaseFeatureDetail/UriLink.d.ts +6 -0
- package/BaseFeatureWidget/BaseFeatureDetail/UriLink.js +13 -0
- package/BaseFeatureWidget/{BaseFeatureDetail.d.ts → BaseFeatureDetail/index.d.ts} +5 -7
- package/BaseFeatureWidget/{BaseFeatureDetail.js → BaseFeatureDetail/index.js} +12 -9
- package/BaseFeatureWidget/BaseFeatureDetail/util.d.ts +4 -0
- package/BaseFeatureWidget/BaseFeatureDetail/util.js +23 -0
- package/BaseFeatureWidget/SequenceFeatureDetails/CDNASequence.d.ts +12 -0
- package/BaseFeatureWidget/SequenceFeatureDetails/CDNASequence.js +25 -0
- package/BaseFeatureWidget/SequenceFeatureDetails/CDSSequence.d.ts +5 -0
- package/BaseFeatureWidget/SequenceFeatureDetails/CDSSequence.js +12 -0
- package/BaseFeatureWidget/SequenceFeatureDetails/GenomicSequence.d.ts +5 -0
- package/BaseFeatureWidget/SequenceFeatureDetails/GenomicSequence.js +14 -0
- package/BaseFeatureWidget/SequenceFeatureDetails/ProteinSequence.d.ts +8 -0
- package/BaseFeatureWidget/SequenceFeatureDetails/ProteinSequence.js +18 -0
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeatureDetails.d.ts +2 -0
- package/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeatureDetails.js +146 -0
- package/BaseFeatureWidget/{SequenceFeatureSettingsDialog.d.ts → SequenceFeatureDetails/SequenceFeatureSettingsDialog.d.ts} +0 -1
- package/BaseFeatureWidget/{SequenceFeatureSettingsDialog.js → SequenceFeatureDetails/SequenceFeatureSettingsDialog.js} +1 -1
- package/BaseFeatureWidget/{SequenceHelpDialog.d.ts → SequenceFeatureDetails/SequenceHelpDialog.d.ts} +0 -1
- package/BaseFeatureWidget/{SequenceHelpDialog.js → SequenceFeatureDetails/SequenceHelpDialog.js} +6 -9
- package/BaseFeatureWidget/{SequencePanel.d.ts → SequenceFeatureDetails/SequencePanel.d.ts} +1 -1
- package/BaseFeatureWidget/{SequencePanel.js → SequenceFeatureDetails/SequencePanel.js} +10 -8
- package/BaseFeatureWidget/SequenceFeatureDetails/hooks.d.ts +10 -0
- package/BaseFeatureWidget/SequenceFeatureDetails/hooks.js +73 -0
- package/BaseFeatureWidget/SequenceFeatureDetails/index.d.ts +2 -0
- package/BaseFeatureWidget/SequenceFeatureDetails/index.js +68 -0
- package/BaseFeatureWidget/SequenceFeatureDetails/util.d.ts +6 -0
- package/BaseFeatureWidget/SequenceFeatureDetails/util.js +11 -0
- package/BaseFeatureWidget/index.d.ts +5 -2
- package/BaseFeatureWidget/index.js +29 -20
- package/BaseFeatureWidget/types.d.ts +2 -2
- package/Plugin.d.ts +1 -1
- package/PluginLoader.js +17 -0
- package/PluginManager.d.ts +6 -5
- package/PluginManager.js +3 -0
- package/ReExports/list.js +1 -0
- package/ReExports/modules.d.ts +6 -5
- package/ReExports/modules.js +7 -4
- package/TextSearch/TextSearchManager.d.ts +2 -9
- package/assemblyManager/assembly.d.ts +91 -8
- package/assemblyManager/assembly.js +92 -8
- package/assemblyManager/assemblyConfigSchema.d.ts +50 -1
- package/assemblyManager/assemblyManager.d.ts +115 -58
- package/assemblyManager/assemblyManager.js +60 -12
- package/configuration/configurationSchema.d.ts +13 -13
- package/configuration/configurationSchema.js +4 -2
- package/configuration/configurationSlot.d.ts +1 -0
- package/configuration/index.d.ts +1 -1
- package/configuration/types.d.ts +13 -0
- package/configuration/types.js +2 -0
- package/configuration/util.d.ts +5 -3
- package/configuration/util.js +18 -18
- package/data_adapters/BaseAdapter/BaseAdapter.d.ts +23 -0
- package/data_adapters/BaseAdapter/BaseAdapter.js +37 -0
- package/data_adapters/BaseAdapter/BaseFeatureDataAdapter.d.ts +128 -0
- package/data_adapters/{BaseAdapter.js → BaseAdapter/BaseFeatureDataAdapter.js} +58 -88
- package/data_adapters/BaseAdapter/BaseOptions.d.ts +16 -0
- package/data_adapters/BaseAdapter/BaseOptions.js +2 -0
- package/data_adapters/BaseAdapter/BaseRefNameAliasAdapter.d.ts +9 -0
- package/data_adapters/BaseAdapter/BaseRefNameAliasAdapter.js +2 -0
- package/data_adapters/BaseAdapter/BaseSequenceAdapter.d.ts +13 -0
- package/data_adapters/BaseAdapter/BaseSequenceAdapter.js +10 -0
- package/data_adapters/BaseAdapter/BaseTextSearchAdapter.d.ts +6 -0
- package/data_adapters/BaseAdapter/BaseTextSearchAdapter.js +2 -0
- package/data_adapters/BaseAdapter/RegionsAdapter.d.ts +6 -0
- package/data_adapters/BaseAdapter/RegionsAdapter.js +2 -0
- package/data_adapters/BaseAdapter/index.d.ts +15 -0
- package/data_adapters/BaseAdapter/index.js +25 -0
- package/data_adapters/BaseAdapter/types.d.ts +21 -0
- package/data_adapters/BaseAdapter/types.js +2 -0
- package/data_adapters/BaseAdapter/util.d.ts +12 -0
- package/data_adapters/BaseAdapter/util.js +23 -0
- package/data_adapters/CytobandAdapter/configSchema.d.ts +11 -1
- package/package.json +4 -5
- package/pluggableElementTypes/AdapterType.d.ts +1 -1
- package/pluggableElementTypes/ConnectionType.d.ts +1 -1
- package/pluggableElementTypes/DisplayType.d.ts +1 -1
- package/pluggableElementTypes/InternetAccountType.d.ts +1 -1
- package/pluggableElementTypes/TextSearchAdapterType.d.ts +1 -1
- package/pluggableElementTypes/models/BaseTrackModel.d.ts +1 -1
- package/pluggableElementTypes/models/BaseTrackModel.js +3 -2
- package/pluggableElementTypes/models/InternetAccountModel.d.ts +30 -0
- package/pluggableElementTypes/models/InternetAccountModel.js +6 -1
- package/pluggableElementTypes/models/baseConnectionConfig.d.ts +18 -1
- package/pluggableElementTypes/models/baseInternetAccountConfig.d.ts +42 -1
- package/pluggableElementTypes/models/baseTrackConfig.d.ts +118 -1
- package/pluggableElementTypes/models/baseTrackConfig.js +1 -1
- package/pluggableElementTypes/renderers/CircularChordRendererType.d.ts +0 -1
- package/pluggableElementTypes/renderers/FeatureRendererType.d.ts +1 -1
- package/pluggableElementTypes/renderers/RendererType.d.ts +1 -1
- package/pluggableElementTypes/renderers/RpcRenderedSvgGroup.d.ts +0 -1
- package/pluggableElementTypes/renderers/ServerSideRendererType.d.ts +1 -1
- package/rpc/RpcManager.d.ts +8 -1
- package/rpc/RpcManager.js +1 -1
- package/rpc/baseRpcConfig.d.ts +10 -1
- package/rpc/configSchema.d.ts +14 -1
- package/rpc/coreRpcMethods.d.ts +1 -1
- package/rpc/coreRpcMethods.js +3 -3
- package/rpc/mainThreadRpcConfig.d.ts +7 -1
- package/rpc/methods/{CoreEstimateRegionStats.d.ts → CoreGetFeatureDensityStats.d.ts} +2 -2
- package/rpc/methods/{CoreEstimateRegionStats.js → CoreGetFeatureDensityStats.js} +4 -4
- package/rpc/methods/CoreGetFeatureDetails.js +5 -5
- package/rpc/webWorkerRpcConfig.d.ts +7 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/ui/AboutDialog.d.ts +0 -1
- package/ui/AppLogo.d.ts +0 -1
- package/ui/AssemblySelector.d.ts +0 -1
- package/ui/CascadingMenu.d.ts +0 -1
- package/ui/ColorPicker.d.ts +0 -1
- package/ui/Dialog.d.ts +0 -1
- package/ui/Dialog.js +14 -1
- package/ui/DrawerWidget.d.ts +1 -2
- package/ui/DrawerWidget.js +5 -3
- package/ui/DropDownMenu.d.ts +0 -1
- package/ui/ErrorMessage.d.ts +0 -1
- package/ui/FactoryResetDialog.d.ts +0 -1
- package/ui/FatalErrorDialog.d.ts +0 -1
- package/ui/FileSelector/FileSelector.d.ts +0 -1
- package/ui/FileSelector/LocalFileChooser.d.ts +0 -1
- package/ui/FileSelector/UrlChooser.d.ts +0 -1
- package/ui/Icons.d.ts +0 -1
- package/ui/LoadingEllipses.d.ts +0 -1
- package/ui/Logo.d.ts +0 -1
- package/ui/PrerenderedCanvas.d.ts +0 -1
- package/ui/ResizeBar.js +1 -1
- package/ui/ResizeHandle.d.ts +0 -1
- package/ui/ReturnToImportFormDialog.d.ts +0 -1
- package/ui/SanitizedHTML.d.ts +0 -1
- package/ui/SanitizedHTML.js +6 -0
- package/ui/Snackbar.d.ts +0 -1
- package/ui/Tooltip.d.ts +0 -1
- package/ui/ViewContainer.d.ts +2 -3
- package/ui/ViewContainer.js +7 -39
- package/ui/ViewContainerTitle.d.ts +5 -0
- package/ui/ViewContainerTitle.js +42 -0
- package/ui/ViewLauncher.d.ts +0 -1
- package/ui/ViewMenu.d.ts +1 -2
- package/ui/ViewPanel.d.ts +0 -1
- package/ui/react-colorful.d.ts +1 -1
- package/ui/theme.js +3 -18
- package/util/index.d.ts +9 -4
- package/util/index.js +30 -6
- package/util/io/index.d.ts +3 -1
- package/util/io/index.js +9 -4
- package/util/layouts/PrecomputedMultiLayout.d.ts +1 -1
- package/util/mst-reflection.d.ts +12 -17
- package/util/mst-reflection.js +13 -12
- package/util/stats.d.ts +5 -5
- package/util/types/index.d.ts +4 -1
- package/util/types/mst.d.ts +12 -9
- package/util/useMeasure.d.ts +5 -0
- package/util/useMeasure.js +34 -0
- package/BaseFeatureWidget/SequenceBox.d.ts +0 -29
- package/BaseFeatureWidget/SequenceBox.js +0 -63
- package/BaseFeatureWidget/SequenceFeatureDetails.d.ts +0 -3
- package/BaseFeatureWidget/SequenceFeatureDetails.js +0 -237
- package/data_adapters/BaseAdapter.d.ts +0 -138
- /package/BaseFeatureWidget/{test_data → SequenceFeatureDetails/test_data}/DLGAP3.d.ts +0 -0
- /package/BaseFeatureWidget/{test_data → SequenceFeatureDetails/test_data}/DLGAP3.js +0 -0
- /package/BaseFeatureWidget/{test_data → SequenceFeatureDetails/test_data}/NCDN.d.ts +0 -0
- /package/BaseFeatureWidget/{test_data → SequenceFeatureDetails/test_data}/NCDN.js +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseAdapter } from './BaseAdapter';
|
|
2
|
+
import { BaseFeatureDataAdapter } from './BaseFeatureDataAdapter';
|
|
3
|
+
import { BaseRefNameAliasAdapter } from './BaseRefNameAliasAdapter';
|
|
4
|
+
import { BaseSequenceAdapter } from './BaseSequenceAdapter';
|
|
5
|
+
import { BaseTextSearchAdapter } from './BaseTextSearchAdapter';
|
|
6
|
+
import { RegionsAdapter } from './RegionsAdapter';
|
|
7
|
+
export type AnyDataAdapter = BaseAdapter | BaseFeatureDataAdapter | BaseRefNameAliasAdapter | BaseTextSearchAdapter | RegionsAdapter | BaseSequenceAdapter;
|
|
8
|
+
export declare function isSequenceAdapter(t: AnyDataAdapter): t is BaseSequenceAdapter;
|
|
9
|
+
export declare function isRegionsAdapter(t: AnyDataAdapter): t is RegionsAdapter;
|
|
10
|
+
export declare function isFeatureAdapter(t: AnyDataAdapter): t is BaseFeatureDataAdapter;
|
|
11
|
+
export declare function isRefNameAliasAdapter(t: object): t is BaseRefNameAliasAdapter;
|
|
12
|
+
export declare function isTextSearchAdapter(t: AnyDataAdapter): t is BaseTextSearchAdapter;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isTextSearchAdapter = exports.isRefNameAliasAdapter = exports.isFeatureAdapter = exports.isRegionsAdapter = exports.isSequenceAdapter = void 0;
|
|
4
|
+
function isSequenceAdapter(t) {
|
|
5
|
+
return 'getRegions' in t && 'getFeatures' in t;
|
|
6
|
+
}
|
|
7
|
+
exports.isSequenceAdapter = isSequenceAdapter;
|
|
8
|
+
function isRegionsAdapter(t) {
|
|
9
|
+
return 'getRegions' in t;
|
|
10
|
+
}
|
|
11
|
+
exports.isRegionsAdapter = isRegionsAdapter;
|
|
12
|
+
function isFeatureAdapter(t) {
|
|
13
|
+
return 'getFeatures' in t;
|
|
14
|
+
}
|
|
15
|
+
exports.isFeatureAdapter = isFeatureAdapter;
|
|
16
|
+
function isRefNameAliasAdapter(t) {
|
|
17
|
+
return 'getRefNameAliases' in t;
|
|
18
|
+
}
|
|
19
|
+
exports.isRefNameAliasAdapter = isRefNameAliasAdapter;
|
|
20
|
+
function isTextSearchAdapter(t) {
|
|
21
|
+
return 'searchIndex' in t;
|
|
22
|
+
}
|
|
23
|
+
exports.isTextSearchAdapter = isTextSearchAdapter;
|
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
declare const configSchema: import("../../configuration").
|
|
1
|
+
declare const configSchema: import("../../configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
+
/**
|
|
3
|
+
* #slot
|
|
4
|
+
*/
|
|
5
|
+
cytobandLocation: {
|
|
6
|
+
type: string;
|
|
7
|
+
defaultValue: {
|
|
8
|
+
uri: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
}, import("../../configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
2
12
|
export default configSchema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "JBrowse 2 core libraries used by plugins",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -53,15 +53,14 @@
|
|
|
53
53
|
"load-script2": "^2.0.5",
|
|
54
54
|
"material-ui-popup-state": "^5.0.0",
|
|
55
55
|
"rbush": "^3.0.1",
|
|
56
|
-
"react-error-boundary": "^
|
|
57
|
-
"react-use-measure": "^2.1.1",
|
|
56
|
+
"react-error-boundary": "^4.0.3",
|
|
58
57
|
"serialize-error": "^8.0.0",
|
|
59
58
|
"shortid": "^2.2.13",
|
|
60
59
|
"svg-path-generator": "^1.1.0"
|
|
61
60
|
},
|
|
62
61
|
"peerDependencies": {
|
|
63
62
|
"@mui/material": "^5.0.0",
|
|
64
|
-
"@mui/x-data-grid": "^
|
|
63
|
+
"@mui/x-data-grid": "^6.0.1",
|
|
65
64
|
"mobx": "^6.0.0",
|
|
66
65
|
"mobx-react": "^7.0.0",
|
|
67
66
|
"mobx-state-tree": "^5.0.0",
|
|
@@ -75,5 +74,5 @@
|
|
|
75
74
|
"access": "public",
|
|
76
75
|
"directory": "dist"
|
|
77
76
|
},
|
|
78
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "d1ca073996d008f0fe9a52f7c1a47ae649dcfdaf"
|
|
79
78
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import PluggableElementBase from './PluggableElementBase';
|
|
2
|
-
import { AnyConfigurationSchemaType } from '../configuration
|
|
2
|
+
import { AnyConfigurationSchemaType } from '../configuration';
|
|
3
3
|
import { AnyAdapter } from '../data_adapters/BaseAdapter';
|
|
4
4
|
export type AdapterMetadata = {
|
|
5
5
|
category?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IAnyModelType } from 'mobx-state-tree';
|
|
2
2
|
import PluggableElementBase from './PluggableElementBase';
|
|
3
|
-
import { AnyConfigurationSchemaType } from '../configuration
|
|
3
|
+
import { AnyConfigurationSchemaType } from '../configuration';
|
|
4
4
|
import { AnyReactComponentType } from '../util';
|
|
5
5
|
export default class ConnectionType extends PluggableElementBase {
|
|
6
6
|
stateModel: IAnyModelType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IAnyModelType } from 'mobx-state-tree';
|
|
2
2
|
import PluggableElementBase from './PluggableElementBase';
|
|
3
3
|
import { AnyReactComponentType } from '../util';
|
|
4
|
-
import { AnyConfigurationSchemaType } from '../configuration
|
|
4
|
+
import { AnyConfigurationSchemaType } from '../configuration';
|
|
5
5
|
export default class DisplayType extends PluggableElementBase {
|
|
6
6
|
stateModel: IAnyModelType;
|
|
7
7
|
configSchema: AnyConfigurationSchemaType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IAnyModelType } from 'mobx-state-tree';
|
|
2
2
|
import PluggableElementBase from './PluggableElementBase';
|
|
3
|
-
import { AnyConfigurationSchemaType } from '../configuration/
|
|
3
|
+
import { AnyConfigurationSchemaType } from '../configuration/types';
|
|
4
4
|
export default class InternetAccountType extends PluggableElementBase {
|
|
5
5
|
stateModel: IAnyModelType;
|
|
6
6
|
configSchema: AnyConfigurationSchemaType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import PluggableElementBase from './PluggableElementBase';
|
|
2
|
-
import { AnyConfigurationSchemaType } from '../configuration
|
|
2
|
+
import { AnyConfigurationSchemaType } from '../configuration';
|
|
3
3
|
import { AnyAdapter } from '../data_adapters/BaseAdapter';
|
|
4
4
|
export default class TextSearchAdapterType extends PluggableElementBase {
|
|
5
5
|
AdapterClass: AnyAdapter;
|
|
@@ -16,7 +16,7 @@ export declare function getCompatibleDisplays(self: IAnyStateTreeNode): ({
|
|
|
16
16
|
export declare function createBaseTrackModel(pm: PluginManager, trackType: string, baseTrackConfig: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
17
17
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
18
18
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
19
|
-
configuration:
|
|
19
|
+
configuration: AnyConfigurationSchemaType;
|
|
20
20
|
minimized: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
21
21
|
displays: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyType>;
|
|
22
22
|
}, {
|
|
@@ -53,7 +53,8 @@ function createBaseTrackModel(pm, trackType, baseTrackConfig) {
|
|
|
53
53
|
* determines which webworker to send the track to, currently based on trackId
|
|
54
54
|
*/
|
|
55
55
|
get rpcSessionId() {
|
|
56
|
-
|
|
56
|
+
var _a;
|
|
57
|
+
return (_a = self.configuration) === null || _a === void 0 ? void 0 : _a.trackId;
|
|
57
58
|
},
|
|
58
59
|
/**
|
|
59
60
|
* #getter
|
|
@@ -95,7 +96,7 @@ function createBaseTrackModel(pm, trackType, baseTrackConfig) {
|
|
|
95
96
|
const { sessionTracks, adminMode } = session;
|
|
96
97
|
return ((0, types_1.isSessionModelWithConfigEditing)(session) &&
|
|
97
98
|
(adminMode ||
|
|
98
|
-
sessionTracks.find((track) => track.trackId === self.configuration.trackId)));
|
|
99
|
+
sessionTracks.find((track) => { var _a; return track.trackId === ((_a = self.configuration) === null || _a === void 0 ? void 0 : _a.trackId); })));
|
|
99
100
|
},
|
|
100
101
|
}))
|
|
101
102
|
.actions(self => ({
|
|
@@ -11,6 +11,36 @@ export declare const InternetAccount: import("mobx-state-tree").IModelType<{
|
|
|
11
11
|
* #property
|
|
12
12
|
*/
|
|
13
13
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
14
|
+
/**
|
|
15
|
+
* #property
|
|
16
|
+
*/
|
|
17
|
+
configuration: import("../../configuration/configurationSchema").ConfigurationSchemaType<{
|
|
18
|
+
name: {
|
|
19
|
+
description: string;
|
|
20
|
+
type: string;
|
|
21
|
+
defaultValue: string;
|
|
22
|
+
};
|
|
23
|
+
description: {
|
|
24
|
+
description: string;
|
|
25
|
+
type: string;
|
|
26
|
+
defaultValue: string;
|
|
27
|
+
};
|
|
28
|
+
authHeader: {
|
|
29
|
+
description: string;
|
|
30
|
+
type: string;
|
|
31
|
+
defaultValue: string;
|
|
32
|
+
};
|
|
33
|
+
tokenType: {
|
|
34
|
+
description: string;
|
|
35
|
+
type: string;
|
|
36
|
+
defaultValue: string;
|
|
37
|
+
};
|
|
38
|
+
domains: {
|
|
39
|
+
description: string;
|
|
40
|
+
type: string;
|
|
41
|
+
defaultValue: never[];
|
|
42
|
+
};
|
|
43
|
+
}, import("../../configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
|
|
14
44
|
}, {
|
|
15
45
|
/**
|
|
16
46
|
* #getter
|
|
@@ -5,6 +5,7 @@ const mobx_state_tree_1 = require("mobx-state-tree");
|
|
|
5
5
|
const configuration_1 = require("../../configuration");
|
|
6
6
|
const io_1 = require("../../util/io");
|
|
7
7
|
const mst_1 = require("../../util/types/mst");
|
|
8
|
+
const baseInternetAccountConfig_1 = require("./baseInternetAccountConfig");
|
|
8
9
|
const inWebWorker = typeof sessionStorage === 'undefined';
|
|
9
10
|
/**
|
|
10
11
|
* #stateModel BaseInternetAccountModel
|
|
@@ -20,6 +21,10 @@ exports.InternetAccount = mobx_state_tree_1.types
|
|
|
20
21
|
* #property
|
|
21
22
|
*/
|
|
22
23
|
type: mobx_state_tree_1.types.string,
|
|
24
|
+
/**
|
|
25
|
+
* #property
|
|
26
|
+
*/
|
|
27
|
+
configuration: (0, configuration_1.ConfigurationReference)(baseInternetAccountConfig_1.BaseInternetAccountConfig),
|
|
23
28
|
})
|
|
24
29
|
.views(self => ({
|
|
25
30
|
/**
|
|
@@ -38,7 +43,7 @@ exports.InternetAccount = mobx_state_tree_1.types
|
|
|
38
43
|
* #getter
|
|
39
44
|
*/
|
|
40
45
|
get internetAccountId() {
|
|
41
|
-
return (0, configuration_1.getConf)(self, 'internetAccountId');
|
|
46
|
+
return (0, configuration_1.getConf)(self, 'internetAccountId'); // NOTE: this is the explicitIdentifier of the config schema
|
|
42
47
|
},
|
|
43
48
|
/**
|
|
44
49
|
* #getter
|
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
declare const _default: import("../../configuration").
|
|
1
|
+
declare const _default: import("../../configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
+
/**
|
|
3
|
+
* #slot
|
|
4
|
+
*/
|
|
5
|
+
name: {
|
|
6
|
+
type: string;
|
|
7
|
+
defaultValue: string;
|
|
8
|
+
description: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* #slot
|
|
12
|
+
*/
|
|
13
|
+
assemblyNames: {
|
|
14
|
+
type: string;
|
|
15
|
+
defaultValue: never[];
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
}, import("../../configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "connectionId">>;
|
|
2
19
|
export default _default;
|
|
@@ -1 +1,42 @@
|
|
|
1
|
-
export declare const BaseInternetAccountConfig: import("../../configuration").
|
|
1
|
+
export declare const BaseInternetAccountConfig: import("../../configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
+
/**
|
|
3
|
+
* #slot
|
|
4
|
+
*/
|
|
5
|
+
name: {
|
|
6
|
+
description: string;
|
|
7
|
+
type: string;
|
|
8
|
+
defaultValue: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* #slot
|
|
12
|
+
*/
|
|
13
|
+
description: {
|
|
14
|
+
description: string;
|
|
15
|
+
type: string;
|
|
16
|
+
defaultValue: string;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* #slot
|
|
20
|
+
*/
|
|
21
|
+
authHeader: {
|
|
22
|
+
description: string;
|
|
23
|
+
type: string;
|
|
24
|
+
defaultValue: string;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* #slot
|
|
28
|
+
*/
|
|
29
|
+
tokenType: {
|
|
30
|
+
description: string;
|
|
31
|
+
type: string;
|
|
32
|
+
defaultValue: string;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* #slot
|
|
36
|
+
*/
|
|
37
|
+
domains: {
|
|
38
|
+
description: string;
|
|
39
|
+
type: string;
|
|
40
|
+
defaultValue: never[];
|
|
41
|
+
};
|
|
42
|
+
}, import("../../configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
|
|
@@ -3,6 +3,123 @@ import PluginManager from '../../PluginManager';
|
|
|
3
3
|
/**
|
|
4
4
|
* #config BaseTrack
|
|
5
5
|
*/
|
|
6
|
-
export declare function createBaseTrackConfig(pluginManager: PluginManager): import("../../configuration").
|
|
6
|
+
export declare function createBaseTrackConfig(pluginManager: PluginManager): import("../../configuration/configurationSchema").ConfigurationSchemaType<{
|
|
7
|
+
/**
|
|
8
|
+
* #slot
|
|
9
|
+
*/
|
|
10
|
+
name: {
|
|
11
|
+
description: string;
|
|
12
|
+
type: string;
|
|
13
|
+
defaultValue: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* #slot
|
|
17
|
+
*/
|
|
18
|
+
assemblyNames: {
|
|
19
|
+
description: string;
|
|
20
|
+
type: string;
|
|
21
|
+
defaultValue: string[];
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* #slot
|
|
25
|
+
*/
|
|
26
|
+
description: {
|
|
27
|
+
description: string;
|
|
28
|
+
type: string;
|
|
29
|
+
defaultValue: string;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* #slot
|
|
33
|
+
*/
|
|
34
|
+
category: {
|
|
35
|
+
description: string;
|
|
36
|
+
type: string;
|
|
37
|
+
defaultValue: never[];
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* #slot
|
|
41
|
+
*/
|
|
42
|
+
metadata: {
|
|
43
|
+
type: string;
|
|
44
|
+
description: string;
|
|
45
|
+
defaultValue: {};
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* #slot
|
|
49
|
+
*/
|
|
50
|
+
adapter: import("mobx-state-tree").IAnyModelType;
|
|
51
|
+
textSearching: import("../../configuration/configurationSchema").ConfigurationSchemaType<{
|
|
52
|
+
/**
|
|
53
|
+
* #slot textSearching.indexedAttributes
|
|
54
|
+
*/
|
|
55
|
+
indexingAttributes: {
|
|
56
|
+
type: string;
|
|
57
|
+
description: string;
|
|
58
|
+
defaultValue: string[];
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* #slot textSearching.indexingFeatureTypesToExclude
|
|
62
|
+
*/
|
|
63
|
+
indexingFeatureTypesToExclude: {
|
|
64
|
+
type: string;
|
|
65
|
+
description: string;
|
|
66
|
+
defaultValue: string[];
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* #slot textSearching.textSearchAdapter
|
|
70
|
+
*/
|
|
71
|
+
textSearchAdapter: import("mobx-state-tree").IAnyModelType;
|
|
72
|
+
}, import("../../configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
73
|
+
/**
|
|
74
|
+
* #slot
|
|
75
|
+
*/
|
|
76
|
+
displays: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
77
|
+
formatDetails: import("../../configuration/configurationSchema").ConfigurationSchemaType<{
|
|
78
|
+
/**
|
|
79
|
+
* #slot formatDetails.feature
|
|
80
|
+
*/
|
|
81
|
+
feature: {
|
|
82
|
+
type: string;
|
|
83
|
+
description: string;
|
|
84
|
+
defaultValue: {};
|
|
85
|
+
contextVariable: string[];
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* #slot formatDetails.subfeatures
|
|
89
|
+
*/
|
|
90
|
+
subfeatures: {
|
|
91
|
+
type: string;
|
|
92
|
+
description: string;
|
|
93
|
+
defaultValue: {};
|
|
94
|
+
contextVariable: string[];
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* #slot formatDetails.depth
|
|
98
|
+
*/
|
|
99
|
+
depth: {
|
|
100
|
+
type: string;
|
|
101
|
+
defaultValue: number;
|
|
102
|
+
description: string;
|
|
103
|
+
};
|
|
104
|
+
}, import("../../configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
105
|
+
formatAbout: import("../../configuration/configurationSchema").ConfigurationSchemaType<{
|
|
106
|
+
/**
|
|
107
|
+
* #slot formatAbout.config
|
|
108
|
+
*/
|
|
109
|
+
config: {
|
|
110
|
+
type: string;
|
|
111
|
+
description: string;
|
|
112
|
+
defaultValue: {};
|
|
113
|
+
contextVariable: string[];
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* #slot formatAbout.hideUris
|
|
117
|
+
*/
|
|
118
|
+
hideUris: {
|
|
119
|
+
type: string;
|
|
120
|
+
defaultValue: boolean;
|
|
121
|
+
};
|
|
122
|
+
}, import("../../configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
123
|
+
}, import("../../configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "trackId">>;
|
|
7
124
|
export type BaseTrackConfigModel = ReturnType<typeof createBaseTrackConfig>;
|
|
8
125
|
export type BaseTrackConfig = Instance<BaseTrackConfigModel>;
|
|
@@ -158,7 +158,7 @@ function createBaseTrackConfig(pluginManager) {
|
|
|
158
158
|
if (!type) {
|
|
159
159
|
throw new Error(`unknown display type ${type}`);
|
|
160
160
|
}
|
|
161
|
-
const display = self.displays.find((d) => d
|
|
161
|
+
const display = self.displays.find((d) => (d === null || d === void 0 ? void 0 : d.displayId) === conf.displayId);
|
|
162
162
|
if (display) {
|
|
163
163
|
return display;
|
|
164
164
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Feature, SimpleFeatureSerialized } from '../../util/simpleFeature';
|
|
2
2
|
import { AugmentedRegion as Region } from '../../util/types';
|
|
3
3
|
import ServerSideRendererType, { RenderArgs as ServerSideRenderArgs, RenderArgsSerialized as ServerSideRenderArgsSerialized, RenderArgsDeserialized as ServerSideRenderArgsDeserialized, RenderResults as ServerSideRenderResults, ResultsDeserialized as ServerSideResultsDeserialized, ResultsSerialized as ServerSideResultsSerialized } from './ServerSideRendererType';
|
|
4
|
-
import { AnyConfigurationModel } from '../../configuration
|
|
4
|
+
import { AnyConfigurationModel } from '../../configuration';
|
|
5
5
|
export interface RenderArgs extends ServerSideRenderArgs {
|
|
6
6
|
displayModel: {
|
|
7
7
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import PluggableElementBase from '../PluggableElementBase';
|
|
3
|
-
import { AnyConfigurationSchemaType } from '../../configuration
|
|
3
|
+
import { AnyConfigurationSchemaType } from '../../configuration';
|
|
4
4
|
import { AnyReactComponentType } from '../../util';
|
|
5
5
|
import PluginManager from '../../PluginManager';
|
|
6
6
|
export type RenderProps = Record<string, unknown>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ThemeOptions } from '@mui/material';
|
|
2
2
|
import { SnapshotOrInstance, SnapshotIn } from 'mobx-state-tree';
|
|
3
3
|
import SerializableFilterChain, { SerializedFilterChain } from './util/serializableFilterChain';
|
|
4
|
-
import { AnyConfigurationModel } from '../../configuration
|
|
4
|
+
import { AnyConfigurationModel } from '../../configuration';
|
|
5
5
|
import RpcManager from '../../rpc/RpcManager';
|
|
6
6
|
import RendererType, { RenderProps, RenderResults } from './RendererType';
|
|
7
7
|
interface BaseRenderArgs extends RenderProps {
|
package/rpc/RpcManager.d.ts
CHANGED
|
@@ -15,7 +15,14 @@ export default class RpcManager {
|
|
|
15
15
|
pluginManager: PluginManager;
|
|
16
16
|
mainConfiguration: AnyConfigurationModel;
|
|
17
17
|
backendConfigurations: BackendConfigurations;
|
|
18
|
-
static configSchema: import("../configuration").
|
|
18
|
+
static configSchema: import("../configuration/configurationSchema").ConfigurationSchemaType<{
|
|
19
|
+
defaultDriver: {
|
|
20
|
+
type: string;
|
|
21
|
+
description: string;
|
|
22
|
+
defaultValue: string;
|
|
23
|
+
};
|
|
24
|
+
drivers: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IMapType<import("mobx-state-tree").ITypeUnion<import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<Record<string, any>>> | undefined, import("mobx-state-tree").ModelSnapshotType<Record<string, any>>, ({} & Partial<import("mobx-state-tree/dist/internal").ExtractCFromProps<Record<string, any>>> & import("mobx-state-tree/dist/internal").NonEmptyObject) | undefined>>, [undefined]>;
|
|
25
|
+
}, import("../configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
19
26
|
driverObjects: Map<string, DriverClass>;
|
|
20
27
|
constructor(pluginManager: PluginManager, mainConfiguration: AnyConfigurationModel, backendConfigurations: BackendConfigurations);
|
|
21
28
|
getDriver(backendName: keyof typeof DriverClasses): DriverClass;
|
package/rpc/RpcManager.js
CHANGED
package/rpc/baseRpcConfig.d.ts
CHANGED
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
declare const BaseRpcDriverConfigSchema: import("../configuration").
|
|
1
|
+
declare const BaseRpcDriverConfigSchema: import("../configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
+
/**
|
|
3
|
+
* #slot
|
|
4
|
+
*/
|
|
5
|
+
workerCount: {
|
|
6
|
+
type: string;
|
|
7
|
+
description: string;
|
|
8
|
+
defaultValue: number;
|
|
9
|
+
};
|
|
10
|
+
}, import("../configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
2
11
|
export default BaseRpcDriverConfigSchema;
|
package/rpc/configSchema.d.ts
CHANGED
|
@@ -1,2 +1,15 @@
|
|
|
1
|
-
declare const _default: import("../configuration").
|
|
1
|
+
declare const _default: import("../configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
+
/**
|
|
3
|
+
* #slot
|
|
4
|
+
*/
|
|
5
|
+
defaultDriver: {
|
|
6
|
+
type: string;
|
|
7
|
+
description: string;
|
|
8
|
+
defaultValue: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* #slot
|
|
12
|
+
*/
|
|
13
|
+
drivers: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IMapType<import("mobx-state-tree").ITypeUnion<import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<Record<string, any>>> | undefined, import("mobx-state-tree").ModelSnapshotType<Record<string, any>>, ({} & Partial<import("mobx-state-tree/dist/internal").ExtractCFromProps<Record<string, any>>> & import("mobx-state-tree/dist/internal").NonEmptyObject) | undefined>>, [undefined]>;
|
|
14
|
+
}, import("../configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
2
15
|
export default _default;
|
package/rpc/coreRpcMethods.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ export { default as CoreGetFileInfo } from './methods/CoreGetFileInfo';
|
|
|
5
5
|
export { default as CoreGetFeatures } from './methods/CoreGetFeatures';
|
|
6
6
|
export { default as CoreRender } from './methods/CoreRender';
|
|
7
7
|
export { default as CoreFreeResources } from './methods/CoreFreeResources';
|
|
8
|
+
export { default as CoreGetFeatureDensityStats } from './methods/CoreGetFeatureDensityStats';
|
|
8
9
|
export { type RenderArgs } from './methods/util';
|
|
9
|
-
export { default as CoreEstimateRegionStats } from './methods/CoreEstimateRegionStats';
|
package/rpc/coreRpcMethods.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.CoreGetFeatureDensityStats = exports.CoreFreeResources = exports.CoreRender = exports.CoreGetFeatures = exports.CoreGetFileInfo = exports.CoreGetMetadata = exports.CoreGetFeatureDetails = exports.CoreGetRefNames = void 0;
|
|
7
7
|
var CoreGetRefNames_1 = require("./methods/CoreGetRefNames");
|
|
8
8
|
Object.defineProperty(exports, "CoreGetRefNames", { enumerable: true, get: function () { return __importDefault(CoreGetRefNames_1).default; } });
|
|
9
9
|
var CoreGetFeatureDetails_1 = require("./methods/CoreGetFeatureDetails");
|
|
@@ -18,5 +18,5 @@ var CoreRender_1 = require("./methods/CoreRender");
|
|
|
18
18
|
Object.defineProperty(exports, "CoreRender", { enumerable: true, get: function () { return __importDefault(CoreRender_1).default; } });
|
|
19
19
|
var CoreFreeResources_1 = require("./methods/CoreFreeResources");
|
|
20
20
|
Object.defineProperty(exports, "CoreFreeResources", { enumerable: true, get: function () { return __importDefault(CoreFreeResources_1).default; } });
|
|
21
|
-
var
|
|
22
|
-
Object.defineProperty(exports, "
|
|
21
|
+
var CoreGetFeatureDensityStats_1 = require("./methods/CoreGetFeatureDensityStats");
|
|
22
|
+
Object.defineProperty(exports, "CoreGetFeatureDensityStats", { enumerable: true, get: function () { return __importDefault(CoreGetFeatureDensityStats_1).default; } });
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
declare const MainThreadRpcDriverConfigSchema: import("../configuration").
|
|
1
|
+
declare const MainThreadRpcDriverConfigSchema: import("../configuration/configurationSchema").ConfigurationSchemaType<{}, import("../configuration/configurationSchema").ConfigurationSchemaOptions<import("../configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
+
workerCount: {
|
|
3
|
+
type: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defaultValue: number;
|
|
6
|
+
};
|
|
7
|
+
}, import("../configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>, undefined>>;
|
|
2
8
|
export default MainThreadRpcDriverConfigSchema;
|
|
@@ -2,7 +2,7 @@ import RpcMethodType from '../../pluggableElementTypes/RpcMethodType';
|
|
|
2
2
|
import { RenderArgs } from './util';
|
|
3
3
|
import { RemoteAbortSignal } from '../remoteAbortSignals';
|
|
4
4
|
import { Region } from '../../util';
|
|
5
|
-
export default class
|
|
5
|
+
export default class CoreGetFeatureDensityStats extends RpcMethodType {
|
|
6
6
|
name: string;
|
|
7
7
|
serializeArguments(args: RenderArgs & {
|
|
8
8
|
signal?: AbortSignal;
|
|
@@ -14,5 +14,5 @@ export default class CoreEstimateRegionStats extends RpcMethodType {
|
|
|
14
14
|
signal?: RemoteAbortSignal;
|
|
15
15
|
headers?: Record<string, string>;
|
|
16
16
|
sessionId: string;
|
|
17
|
-
}, rpcDriver: string): Promise<import("../../data_adapters/BaseAdapter").
|
|
17
|
+
}, rpcDriver: string): Promise<import("../../data_adapters/BaseAdapter").FeatureDensityStats>;
|
|
18
18
|
}
|
|
@@ -8,10 +8,10 @@ const dataAdapterCache_1 = require("../../data_adapters/dataAdapterCache");
|
|
|
8
8
|
const RpcMethodType_1 = __importDefault(require("../../pluggableElementTypes/RpcMethodType"));
|
|
9
9
|
const BaseAdapter_1 = require("../../data_adapters/BaseAdapter");
|
|
10
10
|
const util_1 = require("../../util");
|
|
11
|
-
class
|
|
11
|
+
class CoreGetFeatureDensityStats extends RpcMethodType_1.default {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments);
|
|
14
|
-
this.name = '
|
|
14
|
+
this.name = 'CoreGetFeatureDensityStats';
|
|
15
15
|
}
|
|
16
16
|
async serializeArguments(args, rpcDriver) {
|
|
17
17
|
var _a;
|
|
@@ -31,7 +31,7 @@ class CoreEstimateRegionStats extends RpcMethodType_1.default {
|
|
|
31
31
|
if (!(0, BaseAdapter_1.isFeatureAdapter)(dataAdapter)) {
|
|
32
32
|
throw new Error('Adapter does not support retrieving features');
|
|
33
33
|
}
|
|
34
|
-
return dataAdapter.
|
|
34
|
+
return dataAdapter.getMultiRegionFeatureDensityStats(regions, deserializedArgs);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
exports.default =
|
|
37
|
+
exports.default = CoreGetFeatureDensityStats;
|
|
@@ -28,17 +28,17 @@ class CoreGetFeatureDetails extends RpcMethodType_1.default {
|
|
|
28
28
|
return RendererType.serializeArgsInClient(superArgs);
|
|
29
29
|
}
|
|
30
30
|
async execute(args, rpcDriver) {
|
|
31
|
+
var _a, _b;
|
|
31
32
|
let deserializedArgs = args;
|
|
32
33
|
if (rpcDriver !== 'MainThreadRpcDriver') {
|
|
33
34
|
deserializedArgs = await this.deserializeArguments(args, rpcDriver);
|
|
34
35
|
}
|
|
35
36
|
const { rendererType, featureId } = deserializedArgs;
|
|
36
37
|
const RendererType = (0, util_2.validateRendererType)(rendererType, this.pluginManager.getRendererType(rendererType));
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
return { feature: xref.toJSON() };
|
|
38
|
+
return {
|
|
39
|
+
// @ts-expect-error
|
|
40
|
+
feature: (_b = (_a = RendererType.sessions[(0, util_1.getLayoutId)(args)]) === null || _a === void 0 ? void 0 : _a.cachedLayout.layout.getDataByID(featureId)) === null || _b === void 0 ? void 0 : _b.toJSON(),
|
|
41
|
+
};
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
exports.default = CoreGetFeatureDetails;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
declare const WebWorkerRpcDriverConfigSchema: import("../configuration").
|
|
1
|
+
declare const WebWorkerRpcDriverConfigSchema: import("../configuration/configurationSchema").ConfigurationSchemaType<{}, import("../configuration/configurationSchema").ConfigurationSchemaOptions<import("../configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
+
workerCount: {
|
|
3
|
+
type: string;
|
|
4
|
+
description: string;
|
|
5
|
+
defaultValue: number;
|
|
6
|
+
};
|
|
7
|
+
}, import("../configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>, undefined>>;
|
|
2
8
|
export default WebWorkerRpcDriverConfigSchema;
|