@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
@@ -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,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FormatAboutConfigSchemaFactory = void 0;
4
+ const configuration_1 = require("@jbrowse/core/configuration");
5
+ /**
6
+ * #config FormatAbout
7
+ * generally exists on the config.json or root config as configuration.formatAbout
8
+ */
9
+ function FormatAboutConfigSchemaFactory() {
10
+ return (0, configuration_1.ConfigurationSchema)('FormatAbout', {
11
+ /**
12
+ * #slot configuration.formatAbout.config
13
+ */
14
+ config: {
15
+ type: 'frozen',
16
+ description: 'formats configuration object in about dialog',
17
+ defaultValue: {},
18
+ contextVariable: ['config'],
19
+ },
20
+ /**
21
+ * #slot configuration.formatAbout.hideUris
22
+ */
23
+ hideUris: {
24
+ type: 'boolean',
25
+ defaultValue: false,
26
+ },
27
+ });
28
+ }
29
+ exports.FormatAboutConfigSchemaFactory = FormatAboutConfigSchemaFactory;
@@ -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,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FormatDetailsConfigSchemaFactory = void 0;
4
+ const configuration_1 = require("@jbrowse/core/configuration");
5
+ /**
6
+ * #config FormatDetails
7
+ * generally exists on the config.json or root config as configuration.formatDetails
8
+ */
9
+ function FormatDetailsConfigSchemaFactory() {
10
+ return (0, configuration_1.ConfigurationSchema)('FormatDetails', {
11
+ /**
12
+ * #slot configuration.formatDetails.feature
13
+ */
14
+ feature: {
15
+ type: 'frozen',
16
+ description: 'adds extra fields to the feature details',
17
+ defaultValue: {},
18
+ contextVariable: ['feature'],
19
+ },
20
+ /**
21
+ * #slot configuration.formatDetails.subfeatures
22
+ */
23
+ subfeatures: {
24
+ type: 'frozen',
25
+ description: 'adds extra fields to the subfeatures of a feature',
26
+ defaultValue: {},
27
+ contextVariable: ['feature'],
28
+ },
29
+ /**
30
+ * #slot configuration.formatDetails.depth
31
+ */
32
+ depth: {
33
+ type: 'number',
34
+ defaultValue: 2,
35
+ description: 'depth to iterate on subfeatures',
36
+ },
37
+ });
38
+ }
39
+ exports.FormatDetailsConfigSchemaFactory = FormatDetailsConfigSchemaFactory;
@@ -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,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HierarchicalConfigSchemaFactory = void 0;
4
+ const configuration_1 = require("@jbrowse/core/configuration");
5
+ /**
6
+ * #config HierarchicalConfigSchema
7
+ * generally exists on the config.json or root config as configuration.hierarchical
8
+ */
9
+ function HierarchicalConfigSchemaFactory() {
10
+ return (0, configuration_1.ConfigurationSchema)('hierarchical', {
11
+ sort: (0, configuration_1.ConfigurationSchema)('hierarchicalSort', {
12
+ /**
13
+ * #slot configuration.hierarchical.sort.trackNames
14
+ */
15
+ trackNames: {
16
+ type: 'boolean',
17
+ defaultValue: false,
18
+ },
19
+ /**
20
+ * #slot configuration.hierarchical.sort.categories
21
+ */
22
+ categories: {
23
+ type: 'boolean',
24
+ defaultValue: false,
25
+ },
26
+ }),
27
+ defaultCollapsed: (0, configuration_1.ConfigurationSchema)('defaultCollapsed', {
28
+ /**
29
+ * #slot configuration.hierarchical.defaultCollapsed.categoryNames
30
+ */
31
+ categoryNames: {
32
+ type: 'stringArray',
33
+ defaultValue: [],
34
+ },
35
+ /**
36
+ * #slot configuration.hierarchical.defaultCollapsed.topLevelCategories
37
+ */
38
+ topLevelCategories: {
39
+ type: 'boolean',
40
+ defaultValue: false,
41
+ },
42
+ /**
43
+ * #slot configuration.hierarchical.defaultCollapsed.subCategories
44
+ */
45
+ subCategories: {
46
+ type: 'boolean',
47
+ defaultValue: false,
48
+ },
49
+ }),
50
+ });
51
+ }
52
+ exports.HierarchicalConfigSchemaFactory = HierarchicalConfigSchemaFactory;
@@ -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';
@@ -16,3 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./BaseRootModel"), exports);
18
18
  __exportStar(require("./InternetAccounts"), exports);
19
+ __exportStar(require("./FormatAbout"), exports);
20
+ __exportStar(require("./FormatDetails"), exports);
21
+ __exportStar(require("./HierarchicalConfig"), exports);
@@ -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,23 +1,20 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.isSession = exports.isBaseSession = exports.BaseSessionModel = void 0;
7
- const shortid_1 = __importDefault(require("shortid"));
4
+ const nanoid_1 = require("@jbrowse/core/util/nanoid");
8
5
  const mobx_state_tree_1 = require("mobx-state-tree");
9
6
  /**
10
7
  * #stateModel BaseSessionModel
11
8
  * base session shared by **all** JBrowse products. Be careful what you include
12
9
  * here, everything will use it.
13
10
  */
14
- function BaseSessionModel(pluginManager) {
11
+ function BaseSessionModel(_pluginManager) {
15
12
  return mobx_state_tree_1.types
16
13
  .model({
17
14
  /**
18
15
  * #property
19
16
  */
20
- id: mobx_state_tree_1.types.optional(mobx_state_tree_1.types.identifier, (0, shortid_1.default)()),
17
+ id: mobx_state_tree_1.types.optional(mobx_state_tree_1.types.identifier, (0, nanoid_1.nanoid)()),
21
18
  /**
22
19
  * #property
23
20
  */