@jbrowse/product-core 2.6.2 → 2.7.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.
Files changed (45) hide show
  1. package/dist/RootModel/BaseRootModel.d.ts +136 -115
  2. package/dist/RootModel/FormatAbout.d.ts +22 -0
  3. package/dist/RootModel/FormatAbout.js +29 -0
  4. package/dist/RootModel/FormatDetails.d.ts +32 -0
  5. package/dist/RootModel/FormatDetails.js +39 -0
  6. package/dist/RootModel/HierarchicalConfig.d.ts +45 -0
  7. package/dist/RootModel/HierarchicalConfig.js +52 -0
  8. package/dist/RootModel/index.d.ts +3 -0
  9. package/dist/RootModel/index.js +3 -0
  10. package/dist/Session/BaseSession.d.ts +13 -6
  11. package/dist/Session/BaseSession.js +3 -6
  12. package/dist/Session/Connections.d.ts +1 -2
  13. package/dist/Session/DialogQueue.d.ts +1 -1
  14. package/dist/Session/DialogQueue.js +1 -1
  15. package/dist/Session/MultipleViews.d.ts +396 -353
  16. package/dist/Session/ReferenceManagement.d.ts +1 -1
  17. package/dist/Session/ReferenceManagement.js +1 -1
  18. package/dist/Session/SessionTracks.d.ts +389 -351
  19. package/dist/Session/Themes.d.ts +2 -4
  20. package/dist/Session/Themes.js +1 -1
  21. package/dist/Session/Tracks.d.ts +387 -337
  22. package/dist/rpcWorker.js +0 -1
  23. package/esm/RootModel/BaseRootModel.d.ts +136 -115
  24. package/esm/RootModel/FormatAbout.d.ts +22 -0
  25. package/esm/RootModel/FormatAbout.js +25 -0
  26. package/esm/RootModel/FormatDetails.d.ts +32 -0
  27. package/esm/RootModel/FormatDetails.js +35 -0
  28. package/esm/RootModel/HierarchicalConfig.d.ts +45 -0
  29. package/esm/RootModel/HierarchicalConfig.js +48 -0
  30. package/esm/RootModel/index.d.ts +3 -0
  31. package/esm/RootModel/index.js +3 -0
  32. package/esm/Session/BaseSession.d.ts +13 -6
  33. package/esm/Session/BaseSession.js +3 -3
  34. package/esm/Session/Connections.d.ts +1 -2
  35. package/esm/Session/DialogQueue.d.ts +1 -1
  36. package/esm/Session/DialogQueue.js +1 -1
  37. package/esm/Session/MultipleViews.d.ts +396 -353
  38. package/esm/Session/ReferenceManagement.d.ts +1 -1
  39. package/esm/Session/ReferenceManagement.js +1 -1
  40. package/esm/Session/SessionTracks.d.ts +389 -351
  41. package/esm/Session/Themes.d.ts +2 -4
  42. package/esm/Session/Themes.js +1 -1
  43. package/esm/Session/Tracks.d.ts +387 -337
  44. package/esm/rpcWorker.js +0 -1
  45. package/package.json +7 -7
package/dist/rpcWorker.js CHANGED
@@ -4,7 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.initializeWorker = void 0;
7
- /* eslint-disable no-restricted-globals */
8
7
  const librpc_web_mod_1 = __importDefault(require("librpc-web-mod"));
9
8
  const PluginManager_1 = __importDefault(require("@jbrowse/core/PluginManager"));
10
9
  const remoteAbortSignals_1 = require("@jbrowse/core/rpc/remoteAbortSignals");
@@ -48,6 +48,8 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
48
48
  [x: string]: string | undefined;
49
49
  } | undefined;
50
50
  cytobands: import("@jbrowse/core/util").Feature[] | undefined;
51
+ } & {
52
+ getConf(arg: string): any;
51
53
  } & {
52
54
  readonly initialized: boolean;
53
55
  readonly name: string;
@@ -70,7 +72,9 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
70
72
  } & {
71
73
  setLoaded({ adapterRegionsWithAssembly, refNameAliases, lowerCaseRefNameAliases, cytobands, }: import("@jbrowse/core/assemblyManager/assembly").Loading): void;
72
74
  setError(e: unknown): void;
73
- setRegions(regions: import("@jbrowse/core/util").Region[]): void;
75
+ setRegions(regions: import("@jbrowse/core/util").Region[]): void; /**
76
+ * #action
77
+ */
74
78
  setRefNameAliases(aliases: {
75
79
  [x: string]: string | undefined;
76
80
  }, lcAliases: {
@@ -85,123 +89,124 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
85
89
  getRefNameMapForAdapter(adapterConf: unknown, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
86
90
  [x: string]: string | undefined;
87
91
  }>;
88
- /** Type guard for checking if something is a JB root model */
89
92
  getReverseRefNameMapForAdapter(adapterConf: unknown, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
90
93
  [x: string]: string | undefined;
91
94
  }>;
92
95
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
93
96
  }, {
94
- readonly assemblyNameMap: {
95
- [key: string]: ({
96
- configuration: any;
97
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
98
- error: unknown;
99
- loaded: boolean;
100
- loadingP: Promise<void> | undefined;
101
- volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
102
- refNameAliases: {
103
- [x: string]: string | undefined;
104
- } | undefined;
105
- lowerCaseRefNameAliases: {
106
- [x: string]: string | undefined;
107
- } | undefined;
108
- cytobands: import("@jbrowse/core/util").Feature[] | undefined;
109
- } & {
110
- readonly initialized: boolean;
111
- readonly name: string;
112
- readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
113
- readonly aliases: string[];
114
- readonly displayName: string | undefined;
115
- hasName(name: string): boolean;
116
- readonly allAliases: string[];
117
- readonly allRefNames: string[] | undefined;
118
- readonly lowerCaseRefNames: string[] | undefined;
119
- readonly allRefNamesWithLowerCase: string[] | undefined;
120
- readonly rpcManager: RpcManager;
121
- readonly refNameColors: string[];
122
- } & {
123
- readonly refNames: string[] | undefined;
124
- } & {
125
- getCanonicalRefName(refName: string): string | undefined;
126
- getRefNameColor(refName: string): string | undefined;
127
- isValidRefName(refName: string): boolean;
128
- } & {
129
- setLoaded({ adapterRegionsWithAssembly, refNameAliases, lowerCaseRefNameAliases, cytobands, }: import("@jbrowse/core/assemblyManager/assembly").Loading): void;
130
- setError(e: unknown): void;
131
- setRegions(regions: import("@jbrowse/core/util").Region[]): void;
132
- setRefNameAliases(aliases: {
133
- [x: string]: string | undefined;
134
- }, lcAliases: {
135
- [x: string]: string | undefined;
136
- }): void;
137
- setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
138
- setLoadingP(p?: Promise<void> | undefined): void;
139
- load(): Promise<void>;
140
- loadPre(): Promise<void>;
141
- } & {
142
- getAdapterMapEntry(adapterConf: unknown, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
143
- getRefNameMapForAdapter(adapterConf: unknown, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
144
- [x: string]: string | undefined;
145
- }>;
146
- getReverseRefNameMapForAdapter(adapterConf: unknown, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
147
- [x: string]: string | undefined;
148
- }>;
149
- } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
150
- configuration: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<IAnyType>>;
151
- }, {
152
- error: unknown;
153
- loaded: boolean;
154
- loadingP: Promise<void> | undefined;
155
- volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
156
- refNameAliases: {
157
- [x: string]: string | undefined;
158
- } | undefined;
159
- lowerCaseRefNameAliases: {
160
- [x: string]: string | undefined;
161
- } | undefined;
162
- cytobands: import("@jbrowse/core/util").Feature[] | undefined;
163
- } & {
164
- readonly initialized: boolean;
165
- readonly name: string;
166
- readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
167
- readonly aliases: string[];
168
- readonly displayName: string | undefined;
169
- hasName(name: string): boolean;
170
- readonly allAliases: string[];
171
- readonly allRefNames: string[] | undefined;
172
- readonly lowerCaseRefNames: string[] | undefined;
173
- readonly allRefNamesWithLowerCase: string[] | undefined;
174
- readonly rpcManager: RpcManager;
175
- readonly refNameColors: string[];
176
- } & {
177
- readonly refNames: string[] | undefined;
178
- } & {
179
- getCanonicalRefName(refName: string): string | undefined;
180
- getRefNameColor(refName: string): string | undefined;
181
- isValidRefName(refName: string): boolean;
182
- } & {
183
- setLoaded({ adapterRegionsWithAssembly, refNameAliases, lowerCaseRefNameAliases, cytobands, }: import("@jbrowse/core/assemblyManager/assembly").Loading): void;
184
- setError(e: unknown): void;
185
- setRegions(regions: import("@jbrowse/core/util").Region[]): void;
186
- setRefNameAliases(aliases: {
187
- [x: string]: string | undefined;
188
- }, lcAliases: {
189
- [x: string]: string | undefined;
190
- }): void;
191
- setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
192
- setLoadingP(p?: Promise<void> | undefined): void;
193
- load(): Promise<void>;
194
- loadPre(): Promise<void>;
195
- } & {
196
- getAdapterMapEntry(adapterConf: unknown, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
197
- getRefNameMapForAdapter(adapterConf: unknown, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
198
- [x: string]: string | undefined;
199
- }>;
200
- getReverseRefNameMapForAdapter(adapterConf: unknown, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
201
- [x: string]: string | undefined;
202
- }>;
203
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
204
- };
97
+ readonly assemblyNameMap: Record<string, ({
98
+ configuration: any;
99
+ } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
100
+ error: unknown;
101
+ loaded: boolean;
102
+ loadingP: Promise<void> | undefined;
103
+ volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
104
+ refNameAliases: {
105
+ [x: string]: string | undefined;
106
+ } | undefined;
107
+ lowerCaseRefNameAliases: {
108
+ [x: string]: string | undefined;
109
+ } | undefined;
110
+ cytobands: import("@jbrowse/core/util").Feature[] | undefined;
111
+ } & {
112
+ getConf(arg: string): any;
113
+ } & {
114
+ readonly initialized: boolean;
115
+ readonly name: string;
116
+ readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
117
+ readonly aliases: string[];
118
+ readonly displayName: string | undefined;
119
+ hasName(name: string): boolean;
120
+ readonly allAliases: string[];
121
+ readonly allRefNames: string[] | undefined;
122
+ readonly lowerCaseRefNames: string[] | undefined;
123
+ readonly allRefNamesWithLowerCase: string[] | undefined;
124
+ readonly rpcManager: RpcManager;
125
+ readonly refNameColors: string[];
126
+ } & {
127
+ readonly refNames: string[] | undefined;
128
+ } & {
129
+ getCanonicalRefName(refName: string): string | undefined;
130
+ getRefNameColor(refName: string): string | undefined;
131
+ isValidRefName(refName: string): boolean;
132
+ } & {
133
+ setLoaded({ adapterRegionsWithAssembly, refNameAliases, lowerCaseRefNameAliases, cytobands, }: import("@jbrowse/core/assemblyManager/assembly").Loading): void;
134
+ setError(e: unknown): void;
135
+ setRegions(regions: import("@jbrowse/core/util").Region[]): void;
136
+ setRefNameAliases(aliases: {
137
+ [x: string]: string | undefined;
138
+ }, lcAliases: {
139
+ [x: string]: string | undefined;
140
+ }): void;
141
+ setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
142
+ setLoadingP(p?: Promise<void> | undefined): void;
143
+ load(): Promise<void>;
144
+ loadPre(): Promise<void>;
145
+ } & {
146
+ getAdapterMapEntry(adapterConf: unknown, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
147
+ getRefNameMapForAdapter(adapterConf: unknown, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
148
+ [x: string]: string | undefined;
149
+ }>;
150
+ getReverseRefNameMapForAdapter(adapterConf: unknown, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
151
+ [x: string]: string | undefined;
152
+ }>;
153
+ } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
154
+ configuration: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<IAnyType>>;
155
+ }, {
156
+ error: unknown;
157
+ loaded: boolean;
158
+ loadingP: Promise<void> | undefined;
159
+ volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
160
+ refNameAliases: {
161
+ [x: string]: string | undefined;
162
+ } | undefined;
163
+ lowerCaseRefNameAliases: {
164
+ [x: string]: string | undefined;
165
+ } | undefined;
166
+ cytobands: import("@jbrowse/core/util").Feature[] | undefined;
167
+ } & {
168
+ getConf(arg: string): any;
169
+ } & {
170
+ readonly initialized: boolean;
171
+ readonly name: string;
172
+ readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
173
+ readonly aliases: string[];
174
+ readonly displayName: string | undefined;
175
+ hasName(name: string): boolean;
176
+ readonly allAliases: string[];
177
+ readonly allRefNames: string[] | undefined;
178
+ readonly lowerCaseRefNames: string[] | undefined;
179
+ readonly allRefNamesWithLowerCase: string[] | undefined;
180
+ readonly rpcManager: RpcManager;
181
+ readonly refNameColors: string[];
182
+ } & {
183
+ readonly refNames: string[] | undefined;
184
+ } & {
185
+ getCanonicalRefName(refName: string): string | undefined;
186
+ getRefNameColor(refName: string): string | undefined;
187
+ isValidRefName(refName: string): boolean;
188
+ } & {
189
+ setLoaded({ adapterRegionsWithAssembly, refNameAliases, lowerCaseRefNameAliases, cytobands, }: import("@jbrowse/core/assemblyManager/assembly").Loading): void;
190
+ setError(e: unknown): void;
191
+ setRegions(regions: import("@jbrowse/core/util").Region[]): void;
192
+ setRefNameAliases(aliases: {
193
+ [x: string]: string | undefined;
194
+ }, lcAliases: {
195
+ [x: string]: string | undefined;
196
+ }): void;
197
+ setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
198
+ setLoadingP(p?: Promise<void> | undefined): void;
199
+ load(): Promise<void>;
200
+ loadPre(): Promise<void>;
201
+ } & {
202
+ getAdapterMapEntry(adapterConf: unknown, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
203
+ getRefNameMapForAdapter(adapterConf: unknown, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
204
+ [x: string]: string | undefined;
205
+ }>;
206
+ getReverseRefNameMapForAdapter(adapterConf: unknown, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
207
+ [x: string]: string | undefined;
208
+ }>;
209
+ }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined>;
205
210
  } & {
206
211
  get(asmName: string): ({
207
212
  configuration: any;
@@ -217,6 +222,8 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
217
222
  [x: string]: string | undefined;
218
223
  } | undefined;
219
224
  cytobands: import("@jbrowse/core/util").Feature[] | undefined;
225
+ } & {
226
+ getConf(arg: string): any;
220
227
  } & {
221
228
  readonly initialized: boolean;
222
229
  readonly name: string;
@@ -271,6 +278,8 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
271
278
  [x: string]: string | undefined;
272
279
  } | undefined;
273
280
  cytobands: import("@jbrowse/core/util").Feature[] | undefined;
281
+ } & {
282
+ getConf(arg: string): any;
274
283
  } & {
275
284
  readonly initialized: boolean;
276
285
  readonly name: string;
@@ -334,6 +343,8 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
334
343
  [x: string]: string | undefined;
335
344
  } | undefined;
336
345
  cytobands: import("@jbrowse/core/util").Feature[] | undefined;
346
+ } & {
347
+ getConf(arg: string): any;
337
348
  } & {
338
349
  readonly initialized: boolean;
339
350
  readonly name: string;
@@ -388,6 +399,8 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
388
399
  [x: string]: string | undefined;
389
400
  } | undefined;
390
401
  cytobands: import("@jbrowse/core/util").Feature[] | undefined;
402
+ } & {
403
+ getConf(arg: string): any;
391
404
  } & {
392
405
  readonly initialized: boolean;
393
406
  readonly name: string;
@@ -464,6 +477,8 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
464
477
  * #property
465
478
  */
466
479
  cytobands: import("@jbrowse/core/util").Feature[] | undefined;
480
+ } & {
481
+ getConf(arg: string): any;
467
482
  } & {
468
483
  readonly initialized: boolean;
469
484
  readonly name: string;
@@ -476,7 +491,9 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
476
491
  readonly lowerCaseRefNames: string[] | undefined;
477
492
  readonly allRefNamesWithLowerCase: string[] | undefined;
478
493
  readonly rpcManager: RpcManager;
479
- readonly refNameColors: string[];
494
+ readonly refNameColors: string[]; /**
495
+ * #action
496
+ */
480
497
  } & {
481
498
  readonly refNames: string[] | undefined;
482
499
  } & {
@@ -524,6 +541,8 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
524
541
  * #property
525
542
  */
526
543
  cytobands: import("@jbrowse/core/util").Feature[] | undefined;
544
+ } & {
545
+ getConf(arg: string): any;
527
546
  } & {
528
547
  readonly initialized: boolean;
529
548
  readonly name: string;
@@ -536,7 +555,9 @@ export declare function BaseRootModelFactory({ pluginManager, jbrowseModelType,
536
555
  readonly lowerCaseRefNames: string[] | undefined;
537
556
  readonly allRefNamesWithLowerCase: string[] | undefined;
538
557
  readonly rpcManager: RpcManager;
539
- readonly refNameColors: string[];
558
+ readonly refNameColors: string[]; /**
559
+ * #action
560
+ */
540
561
  } & {
541
562
  readonly refNames: string[] | undefined;
542
563
  } & {
@@ -0,0 +1,22 @@
1
+ /**
2
+ * #config FormatAbout
3
+ * generally exists on the config.json or root config as configuration.formatAbout
4
+ */
5
+ export declare function FormatAboutConfigSchemaFactory(): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
6
+ /**
7
+ * #slot configuration.formatAbout.config
8
+ */
9
+ config: {
10
+ type: string;
11
+ description: string;
12
+ defaultValue: {};
13
+ contextVariable: string[];
14
+ };
15
+ /**
16
+ * #slot configuration.formatAbout.hideUris
17
+ */
18
+ hideUris: {
19
+ type: string;
20
+ defaultValue: boolean;
21
+ };
22
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
@@ -0,0 +1,25 @@
1
+ import { ConfigurationSchema } from '@jbrowse/core/configuration';
2
+ /**
3
+ * #config FormatAbout
4
+ * generally exists on the config.json or root config as configuration.formatAbout
5
+ */
6
+ export function FormatAboutConfigSchemaFactory() {
7
+ return ConfigurationSchema('FormatAbout', {
8
+ /**
9
+ * #slot configuration.formatAbout.config
10
+ */
11
+ config: {
12
+ type: 'frozen',
13
+ description: 'formats configuration object in about dialog',
14
+ defaultValue: {},
15
+ contextVariable: ['config'],
16
+ },
17
+ /**
18
+ * #slot configuration.formatAbout.hideUris
19
+ */
20
+ hideUris: {
21
+ type: 'boolean',
22
+ defaultValue: false,
23
+ },
24
+ });
25
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * #config FormatDetails
3
+ * generally exists on the config.json or root config as configuration.formatDetails
4
+ */
5
+ export declare function FormatDetailsConfigSchemaFactory(): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
6
+ /**
7
+ * #slot configuration.formatDetails.feature
8
+ */
9
+ feature: {
10
+ type: string;
11
+ description: string;
12
+ defaultValue: {};
13
+ contextVariable: string[];
14
+ };
15
+ /**
16
+ * #slot configuration.formatDetails.subfeatures
17
+ */
18
+ subfeatures: {
19
+ type: string;
20
+ description: string;
21
+ defaultValue: {};
22
+ contextVariable: string[];
23
+ };
24
+ /**
25
+ * #slot configuration.formatDetails.depth
26
+ */
27
+ depth: {
28
+ type: string;
29
+ defaultValue: number;
30
+ description: string;
31
+ };
32
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
@@ -0,0 +1,35 @@
1
+ import { ConfigurationSchema } from '@jbrowse/core/configuration';
2
+ /**
3
+ * #config FormatDetails
4
+ * generally exists on the config.json or root config as configuration.formatDetails
5
+ */
6
+ export function FormatDetailsConfigSchemaFactory() {
7
+ return ConfigurationSchema('FormatDetails', {
8
+ /**
9
+ * #slot configuration.formatDetails.feature
10
+ */
11
+ feature: {
12
+ type: 'frozen',
13
+ description: 'adds extra fields to the feature details',
14
+ defaultValue: {},
15
+ contextVariable: ['feature'],
16
+ },
17
+ /**
18
+ * #slot configuration.formatDetails.subfeatures
19
+ */
20
+ subfeatures: {
21
+ type: 'frozen',
22
+ description: 'adds extra fields to the subfeatures of a feature',
23
+ defaultValue: {},
24
+ contextVariable: ['feature'],
25
+ },
26
+ /**
27
+ * #slot configuration.formatDetails.depth
28
+ */
29
+ depth: {
30
+ type: 'number',
31
+ defaultValue: 2,
32
+ description: 'depth to iterate on subfeatures',
33
+ },
34
+ });
35
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * #config HierarchicalConfigSchema
3
+ * generally exists on the config.json or root config as configuration.hierarchical
4
+ */
5
+ export declare function HierarchicalConfigSchemaFactory(): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
6
+ sort: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
7
+ /**
8
+ * #slot configuration.hierarchical.sort.trackNames
9
+ */
10
+ trackNames: {
11
+ type: string;
12
+ defaultValue: boolean;
13
+ };
14
+ /**
15
+ * #slot configuration.hierarchical.sort.categories
16
+ */
17
+ categories: {
18
+ type: string;
19
+ defaultValue: boolean;
20
+ };
21
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
22
+ defaultCollapsed: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
23
+ /**
24
+ * #slot configuration.hierarchical.defaultCollapsed.categoryNames
25
+ */
26
+ categoryNames: {
27
+ type: string;
28
+ defaultValue: never[];
29
+ };
30
+ /**
31
+ * #slot configuration.hierarchical.defaultCollapsed.topLevelCategories
32
+ */
33
+ topLevelCategories: {
34
+ type: string;
35
+ defaultValue: boolean;
36
+ };
37
+ /**
38
+ * #slot configuration.hierarchical.defaultCollapsed.subCategories
39
+ */
40
+ subCategories: {
41
+ type: string;
42
+ defaultValue: boolean;
43
+ };
44
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
45
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
@@ -0,0 +1,48 @@
1
+ import { ConfigurationSchema } from '@jbrowse/core/configuration';
2
+ /**
3
+ * #config HierarchicalConfigSchema
4
+ * generally exists on the config.json or root config as configuration.hierarchical
5
+ */
6
+ export function HierarchicalConfigSchemaFactory() {
7
+ return ConfigurationSchema('hierarchical', {
8
+ sort: ConfigurationSchema('hierarchicalSort', {
9
+ /**
10
+ * #slot configuration.hierarchical.sort.trackNames
11
+ */
12
+ trackNames: {
13
+ type: 'boolean',
14
+ defaultValue: false,
15
+ },
16
+ /**
17
+ * #slot configuration.hierarchical.sort.categories
18
+ */
19
+ categories: {
20
+ type: 'boolean',
21
+ defaultValue: false,
22
+ },
23
+ }),
24
+ defaultCollapsed: ConfigurationSchema('defaultCollapsed', {
25
+ /**
26
+ * #slot configuration.hierarchical.defaultCollapsed.categoryNames
27
+ */
28
+ categoryNames: {
29
+ type: 'stringArray',
30
+ defaultValue: [],
31
+ },
32
+ /**
33
+ * #slot configuration.hierarchical.defaultCollapsed.topLevelCategories
34
+ */
35
+ topLevelCategories: {
36
+ type: 'boolean',
37
+ defaultValue: false,
38
+ },
39
+ /**
40
+ * #slot configuration.hierarchical.defaultCollapsed.subCategories
41
+ */
42
+ subCategories: {
43
+ type: 'boolean',
44
+ defaultValue: false,
45
+ },
46
+ }),
47
+ });
48
+ }
@@ -1,2 +1,5 @@
1
1
  export * from './BaseRootModel';
2
2
  export * from './InternetAccounts';
3
+ export * from './FormatAbout';
4
+ export * from './FormatDetails';
5
+ export * from './HierarchicalConfig';
@@ -1,2 +1,5 @@
1
1
  export * from './BaseRootModel';
2
2
  export * from './InternetAccounts';
3
+ export * from './FormatAbout';
4
+ export * from './FormatDetails';
5
+ export * from './HierarchicalConfig';
@@ -7,7 +7,7 @@ import type { BaseRootModelType } from '../RootModel/BaseRootModel';
7
7
  * base session shared by **all** JBrowse products. Be careful what you include
8
8
  * here, everything will use it.
9
9
  */
10
- export declare function BaseSessionModel<ROOT_MODEL_TYPE extends BaseRootModelType, JB_CONFIG_SCHEMA extends AnyConfigurationSchemaType>(pluginManager: PluginManager): import("mobx-state-tree").IModelType<{
10
+ export declare function BaseSessionModel<ROOT_MODEL_TYPE extends BaseRootModelType, JB_CONFIG_SCHEMA extends AnyConfigurationSchemaType>(_pluginManager: PluginManager): import("mobx-state-tree").IModelType<{
11
11
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
12
12
  name: import("mobx-state-tree").ISimpleType<string>;
13
13
  margin: import("mobx-state-tree").IType<number | undefined, number, number>;
@@ -52,6 +52,11 @@ export declare function BaseSessionModel<ROOT_MODEL_TYPE extends BaseRootModelTy
52
52
  setSubschema(slotName: string, data: unknown): any;
53
53
  } & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
54
54
  aliases: {
55
+ /**
56
+ * #stateModel BaseSessionModel
57
+ * base session shared by **all** JBrowse products. Be careful what you include
58
+ * here, everything will use it.
59
+ */
55
60
  type: string;
56
61
  defaultValue: never[];
57
62
  description: string;
@@ -66,14 +71,16 @@ export declare function BaseSessionModel<ROOT_MODEL_TYPE extends BaseRootModelTy
66
71
  adapter: import("mobx-state-tree").IAnyModelType;
67
72
  }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
68
73
  cytobands: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
69
- adapter: import("mobx-state-tree").IAnyModelType;
70
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
74
+ adapter: import("mobx-state-tree").IAnyModelType; /**
75
+ * #getter
76
+ */
77
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>; /**
78
+ * #getter
79
+ */
71
80
  displayName: {
72
81
  type: string;
73
82
  defaultValue: string;
74
- description: string; /**
75
- * #getter
76
- */
83
+ description: string;
77
84
  };
78
85
  }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "name">>>)[];
79
86
  } & {
@@ -1,17 +1,17 @@
1
- import shortid from 'shortid';
1
+ import { nanoid } from '@jbrowse/core/util/nanoid';
2
2
  import { getParent, isStateTreeNode, types, } from 'mobx-state-tree';
3
3
  /**
4
4
  * #stateModel BaseSessionModel
5
5
  * base session shared by **all** JBrowse products. Be careful what you include
6
6
  * here, everything will use it.
7
7
  */
8
- export function BaseSessionModel(pluginManager) {
8
+ export function BaseSessionModel(_pluginManager) {
9
9
  return types
10
10
  .model({
11
11
  /**
12
12
  * #property
13
13
  */
14
- id: types.optional(types.identifier, shortid()),
14
+ id: types.optional(types.identifier, nanoid()),
15
15
  /**
16
16
  * #property
17
17
  */