@jbrowse/app-core 5.0.0-beta.1 → 5.0.0-beta.11

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 (75) hide show
  1. package/esm/AppSession/AppSessionMixin.d.ts +42 -316
  2. package/esm/Assemblies/AssembliesMixin.d.ts +172 -103
  3. package/esm/Assemblies/AssembliesMixin.js +13 -8
  4. package/esm/HistoryManagement/index.d.ts +6 -11
  5. package/esm/HistoryManagement/index.js +24 -28
  6. package/esm/JBrowseConfig/RootConfiguration.d.ts +80 -124
  7. package/esm/JBrowseConfig/RootConfiguration.js +5 -11
  8. package/esm/JBrowseConfig/defaultShareUrl.d.ts +1 -0
  9. package/esm/JBrowseConfig/defaultShareUrl.js +5 -0
  10. package/esm/JBrowseConfig/index.d.ts +89 -83
  11. package/esm/JBrowseConfig/index.js +6 -4
  12. package/esm/JBrowseModel/index.d.ts +93 -96
  13. package/esm/JBrowseModel/index.js +43 -43
  14. package/esm/JbApi/index.d.ts +2 -0
  15. package/esm/JbApi/index.js +1 -0
  16. package/esm/JbApi/jbApi.d.ts +2767 -0
  17. package/esm/JbApi/jbApi.js +1383 -0
  18. package/esm/RootMenu/index.d.ts +2 -11
  19. package/esm/RootMenu/index.js +0 -11
  20. package/esm/SessionSpec/index.d.ts +1 -1
  21. package/esm/SessionSpec/index.js +1 -1
  22. package/esm/SessionSpec/lgvUrlInit.js +5 -2
  23. package/esm/SessionSpec/loadSessionSpec.d.ts +56 -2
  24. package/esm/SessionSpec/loadSessionSpec.js +285 -123
  25. package/esm/SessionSpec/parseSessionSpecUrl.d.ts +2 -8
  26. package/esm/SessionSpec/parseSessionSpecUrl.js +2 -17
  27. package/esm/SessionSpec/types.d.ts +16 -12
  28. package/esm/WorkspaceLayout/WorkspaceContainer.js +4 -2
  29. package/esm/WorkspaceLayout/WorkspaceTab.js +2 -6
  30. package/esm/WorkspaceLayout/model.d.ts +25 -5
  31. package/esm/WorkspaceLayout/model.js +77 -18
  32. package/esm/WorkspaceLayout/spec.d.ts +40 -10
  33. package/esm/WorkspaceLayout/spec.js +81 -8
  34. package/esm/index.d.ts +4 -2
  35. package/esm/index.js +4 -1
  36. package/esm/menus.d.ts +15 -29
  37. package/esm/menus.js +76 -92
  38. package/esm/queryParams.d.ts +1 -1
  39. package/esm/queryParams.js +10 -9
  40. package/esm/ui/App/App.js +18 -11
  41. package/esm/ui/App/AppToolbar.js +23 -8
  42. package/esm/ui/App/ClassicViewsContainer.d.ts +2 -2
  43. package/esm/ui/App/DialogQueue.d.ts +2 -2
  44. package/esm/ui/App/DialogQueue.js +3 -3
  45. package/esm/ui/App/DrawerHeader.js +2 -3
  46. package/esm/ui/App/ThemeModeButton.d.ts +12 -0
  47. package/esm/ui/App/ThemeModeButton.js +34 -0
  48. package/esm/ui/App/ViewButtons.js +2 -2
  49. package/esm/ui/App/ViewContainer.js +1 -17
  50. package/esm/ui/App/ViewContainerTitle.js +15 -12
  51. package/esm/ui/App/ViewLauncher.js +1 -1
  52. package/esm/ui/App/ViewMenu.js +2 -2
  53. package/esm/ui/App/ViewStack.js +7 -1
  54. package/esm/ui/App/ViewsContainer.d.ts +2 -4
  55. package/esm/ui/App/ViewsContainer.js +3 -9
  56. package/esm/ui/App/index.d.ts +1 -1
  57. package/esm/ui/App/index.js +1 -1
  58. package/esm/ui/App/lazyParts.d.ts +32 -0
  59. package/esm/ui/App/lazyParts.js +8 -0
  60. package/esm/ui/App/preloadAppShell.d.ts +14 -0
  61. package/esm/ui/App/preloadAppShell.js +41 -0
  62. package/esm/ui/App/types.d.ts +12 -7
  63. package/esm/ui/App/useViewVisibility.d.ts +10 -9
  64. package/esm/ui/App/useViewVisibility.js +12 -11
  65. package/esm/ui/App/viewTitle.d.ts +10 -3
  66. package/esm/ui/App/viewTitle.js +13 -5
  67. package/esm/ui/index.d.ts +1 -1
  68. package/esm/ui/index.js +1 -1
  69. package/package.json +7 -7
  70. package/esm/ui/App/AppReadyMarker.d.ts +0 -34
  71. package/esm/ui/App/AppReadyMarker.js +0 -56
  72. package/esm/ui/App/DrawerControls.d.ts +0 -1
  73. package/esm/ui/App/DrawerControls.js +0 -1
  74. package/esm/ui/App/copyView.d.ts +0 -1
  75. package/esm/ui/App/copyView.js +0 -29
@@ -1,6 +1,5 @@
1
1
  import type PluginManager from '@jbrowse/core/PluginManager';
2
2
  import type { ConfigurationSchemaDefinition } from '@jbrowse/core/configuration';
3
- export declare const DEFAULT_SHARE_URL = "https://share.jbrowse.org/api/v1/";
4
3
  /**
5
4
  * #config JBrowseConfiguration
6
5
  * #category root
@@ -18,179 +17,136 @@ export default function RootConfiguration({ pluginManager, extraConfigSlots, }:
18
17
  pluginManager: PluginManager;
19
18
  extraConfigSlots?: ConfigurationSchemaDefinition;
20
19
  }): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
21
- /**
22
- * #slot configuration.rpc
23
- * configuration for the RPC system that runs data adapters in web workers,
24
- * see RpcOptions
25
- */
26
20
  readonly rpc: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
27
21
  readonly defaultDriver: {
28
- readonly type: "string";
29
- readonly description: "the RPC driver to run data fetching on: MainThreadRpcDriver or WebWorkerRpcDriver. Leave empty to use the default for this application";
30
- readonly defaultValue: "";
31
- readonly advanced: true;
22
+ type: "string";
23
+ } & {
24
+ defaultValue: string;
32
25
  };
33
26
  readonly workerCount: {
34
- readonly type: "number";
35
- readonly description: "The number of workers to use. If 0 (the default) JBrowse will decide how many workers to use.";
36
- readonly defaultValue: 0;
37
- readonly advanced: true;
27
+ type: "number";
28
+ } & {
29
+ defaultValue: number;
38
30
  };
39
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
40
- /**
41
- * #slot configuration.formatDetails
42
- * jexl callbacks that add, rewrite or hide fields in the feature-details
43
- * panel of every track at once. Four slots, listed at
44
- * [FormatDetails](/docs/config/formatdetails); a track can set the same
45
- * ones on its own `formatDetails` and override individual keys.
46
- */
31
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined, undefined, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>, any>>;
47
32
  readonly formatDetails: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
48
33
  readonly feature: {
49
- readonly type: "frozen";
50
- readonly description: "adds extra fields to the feature details";
51
- readonly defaultValue: {};
52
- readonly contextVariable: ["feature"];
34
+ type: "frozen";
35
+ } & {
36
+ defaultValue: unknown;
53
37
  };
54
38
  readonly subfeatures: {
55
- readonly type: "frozen";
56
- readonly description: "adds extra fields to the subfeatures of a feature";
57
- readonly defaultValue: {};
58
- readonly contextVariable: ["feature"];
39
+ type: "frozen";
40
+ } & {
41
+ defaultValue: unknown;
59
42
  };
60
43
  readonly depth: {
61
- readonly type: "maybeNumber";
62
- readonly description: "levels of subfeature the formatDetails.subfeatures callback runs on, default 2";
44
+ type: "maybeNumber";
63
45
  };
64
46
  readonly maxDepth: {
65
- readonly type: "maybeNumber";
66
- readonly description: "hide subfeatures nested deeper than this, default no limit";
47
+ type: "maybeNumber";
67
48
  };
68
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
69
- /**
70
- * #slot configuration.formatAbout
71
- * jexl callbacks that add, rewrite or hide fields in the About dialog of
72
- * every track at once. Two slots, listed at
73
- * [FormatAbout](/docs/config/formatabout); a track can set the same ones on
74
- * its own `formatAbout` and override individual keys.
75
- */
49
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined, undefined, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>, any>>;
76
50
  readonly formatAbout: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
77
51
  readonly config: {
78
- readonly type: "frozen";
79
- readonly description: "formats configuration object in about dialog";
80
- readonly defaultValue: {};
81
- readonly contextVariable: ["config"];
52
+ type: "frozen";
53
+ } & {
54
+ defaultValue: unknown;
82
55
  };
83
56
  readonly hideUris: {
84
- readonly type: "boolean";
85
- readonly defaultValue: false;
57
+ type: "boolean";
58
+ } & {
59
+ defaultValue: boolean;
86
60
  };
87
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
88
- /**
89
- * #slot configuration.shareURL
90
- * URL of the session-sharing backend used by the Share button, a
91
- * JBrowse-hosted service by default
92
- */
61
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined, undefined, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>, any>>;
93
62
  readonly shareURL: {
94
- readonly type: "string";
95
- readonly defaultValue: "https://share.jbrowse.org/api/v1/";
96
- readonly advanced: true;
63
+ type: "string";
64
+ } & {
65
+ defaultValue: string;
97
66
  };
98
- /**
99
- * #slot configuration.disableAnalytics
100
- * disables collection of anonymous usage analytics
101
- */
102
67
  readonly disableAnalytics: {
103
- readonly type: "boolean";
104
- readonly defaultValue: false;
105
- readonly advanced: true;
68
+ type: "boolean";
69
+ } & {
70
+ defaultValue: boolean;
106
71
  };
107
- /**
108
- * #slot configuration.hierarchical
109
- * configuration for the hierarchical track selector, controlling sorting
110
- * and default categories, see HierarchicalConfigSchema
111
- */
112
72
  readonly hierarchical: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
113
73
  readonly sort: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
114
74
  readonly trackNames: {
115
- readonly type: "boolean";
116
- readonly defaultValue: false;
75
+ type: "boolean";
76
+ } & {
77
+ defaultValue: boolean;
117
78
  };
118
79
  readonly categories: {
119
- readonly type: "boolean";
120
- readonly defaultValue: false;
80
+ type: "boolean";
81
+ } & {
82
+ defaultValue: boolean;
121
83
  };
122
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
84
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined, undefined, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>, any>>;
123
85
  readonly defaultFolderCategories: {
124
- readonly type: "stringArray";
125
- readonly description: "list of category names to display as folders by default";
126
- readonly defaultValue: readonly [];
86
+ type: "stringArray";
87
+ } & {
88
+ defaultValue: unknown;
127
89
  };
128
90
  readonly defaultCollapsed: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
129
91
  readonly categoryNames: {
130
- readonly type: "stringArray";
131
- readonly defaultValue: readonly [];
92
+ type: "stringArray";
93
+ } & {
94
+ defaultValue: unknown;
132
95
  };
133
96
  readonly topLevelCategories: {
134
- readonly type: "boolean";
135
- readonly defaultValue: false;
97
+ type: "boolean";
98
+ } & {
99
+ defaultValue: boolean;
136
100
  };
137
101
  readonly subCategories: {
138
- readonly type: "boolean";
139
- readonly defaultValue: false;
102
+ type: "boolean";
103
+ } & {
104
+ defaultValue: boolean;
140
105
  };
141
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
142
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
143
- /**
144
- * #slot configuration.preferences
145
- * user preferences such as scroll-to-zoom and animation behavior, see
146
- * PreferencesConfigSchema
147
- */
106
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined, undefined, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>, any>>;
107
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined, undefined, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>, any>>;
148
108
  readonly preferences: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
149
109
  readonly animationMode: {
150
- readonly model: import("@jbrowse/mobx-state-tree").ISimpleType<"disabled" | "enabled" | "system">;
151
- readonly type: "stringEnum";
152
- readonly defaultValue: "enabled";
110
+ type: "stringEnum";
111
+ } & {
112
+ model: import("@jbrowse/mobx-state-tree").ISimpleType<"disabled" | "enabled" | "system">;
113
+ } & {
114
+ defaultValue: string;
153
115
  };
154
116
  readonly scrollZoom: {
155
- readonly type: "boolean";
156
- readonly defaultValue: false;
117
+ type: "boolean";
118
+ } & {
119
+ defaultValue: boolean;
157
120
  };
158
121
  readonly numberGrouping: {
159
- readonly type: "boolean";
160
- readonly defaultValue: true;
122
+ type: "boolean";
123
+ } & {
124
+ defaultValue: boolean;
161
125
  };
162
126
  readonly useWorkspaces: {
163
- readonly type: "boolean";
164
- readonly defaultValue: false;
127
+ type: "boolean";
128
+ } & {
129
+ defaultValue: boolean;
165
130
  };
166
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
167
- /**
168
- * #slot configuration.theme
169
- */
131
+ readonly developerMode: {
132
+ type: "boolean";
133
+ } & {
134
+ defaultValue: boolean;
135
+ };
136
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined, undefined, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>, any>>;
170
137
  readonly theme: {
171
- readonly type: "frozen";
172
- readonly description: "Material UI theme overrides applied to the JBrowse UI";
173
- readonly defaultValue: {};
138
+ type: "frozen";
139
+ } & {
140
+ defaultValue: unknown;
174
141
  };
175
- /**
176
- * #slot configuration.extraThemes
177
- */
178
142
  readonly extraThemes: {
179
- readonly type: "frozen";
180
- readonly description: "additional named themes the user can switch between";
181
- readonly defaultValue: {};
182
- readonly advanced: true;
143
+ type: "frozen";
144
+ } & {
145
+ defaultValue: unknown;
183
146
  };
184
- /**
185
- * #slot configuration.logoPath
186
- */
187
147
  readonly logoPath: {
188
- readonly type: "fileLocation";
189
- readonly description: "path to a custom logo image displayed in the app header";
190
- readonly defaultValue: {
191
- readonly uri: "";
192
- readonly locationType: "UriLocation";
193
- };
194
- readonly advanced: true;
148
+ type: "fileLocation";
149
+ } & {
150
+ defaultValue: unknown;
195
151
  };
196
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
152
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined, undefined, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>, any>>;
@@ -1,11 +1,7 @@
1
1
  import { ConfigurationSchema } from '@jbrowse/core/configuration';
2
2
  import RpcManager from '@jbrowse/core/rpc/RpcManager';
3
3
  import { FormatAboutConfigSchemaFactory, FormatDetailsConfigSchemaFactory, HierarchicalConfigSchemaFactory, PreferencesConfigSchemaFactory, } from '@jbrowse/product-core';
4
- // The JBrowse-hosted session-sharing backend. Single source of truth for both
5
- // the write path (this slot's default, read via getConf) and the SessionLoader
6
- // read path (which reads the raw config snapshot before config is initialized),
7
- // so the two can't drift onto different endpoints.
8
- export const DEFAULT_SHARE_URL = 'https://share.jbrowse.org/api/v1/';
4
+ import { DEFAULT_SHARE_URL } from './defaultShareUrl.js';
9
5
  /**
10
6
  * #config JBrowseConfiguration
11
7
  * #category root
@@ -31,17 +27,15 @@ export default function RootConfiguration({ pluginManager, extraConfigSlots = {}
31
27
  /**
32
28
  * #slot configuration.formatDetails
33
29
  * jexl callbacks that add, rewrite or hide fields in the feature-details
34
- * panel of every track at once. Four slots, listed at
35
- * [FormatDetails](/docs/config/formatdetails); a track can set the same
36
- * ones on its own `formatDetails` and override individual keys.
30
+ * panel of every track at once. A track can set the same ones on its own
31
+ * `formatDetails` and override individual keys.
37
32
  */
38
33
  formatDetails: FormatDetailsConfigSchemaFactory(),
39
34
  /**
40
35
  * #slot configuration.formatAbout
41
36
  * jexl callbacks that add, rewrite or hide fields in the About dialog of
42
- * every track at once. Two slots, listed at
43
- * [FormatAbout](/docs/config/formatabout); a track can set the same ones on
44
- * its own `formatAbout` and override individual keys.
37
+ * every track at once. A track can set the same ones on its own
38
+ * `formatAbout` and override individual keys.
45
39
  */
46
40
  formatAbout: FormatAboutConfigSchemaFactory(),
47
41
  /**
@@ -0,0 +1 @@
1
+ export declare const DEFAULT_SHARE_URL = "https://share.jbrowse.org/api/v1/";
@@ -0,0 +1,5 @@
1
+ // The JBrowse-hosted session-sharing backend. Single source of truth for both
2
+ // the write path (the root config's `shareURL` default, read via getConf) and
3
+ // the SessionLoader read path (which reads the raw config snapshot before config
4
+ // is initialized), so the two can't drift onto different endpoints.
5
+ export const DEFAULT_SHARE_URL = 'https://share.jbrowse.org/api/v1/';
@@ -1,7 +1,7 @@
1
1
  import type PluginManager from '@jbrowse/core/PluginManager';
2
2
  import type { AnyConfigurationSchemaType, ConfigurationSchemaDefinition } from '@jbrowse/core/configuration';
3
3
  import type { PluginDefinition } from '@jbrowse/core/pluginDefinitions';
4
- export { DEFAULT_SHARE_URL } from './RootConfiguration.ts';
4
+ export { DEFAULT_SHARE_URL } from './defaultShareUrl.ts';
5
5
  /**
6
6
  * #config JBrowseRootConfig
7
7
  * #category root
@@ -22,133 +22,137 @@ export declare function JBrowseConfigF({ pluginManager, assemblyConfigSchema, ex
22
22
  configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
23
23
  readonly rpc: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
24
24
  readonly defaultDriver: {
25
- readonly type: "string";
26
- readonly description: "the RPC driver to run data fetching on: MainThreadRpcDriver or WebWorkerRpcDriver. Leave empty to use the default for this application";
27
- readonly defaultValue: "";
28
- readonly advanced: true;
25
+ type: "string";
26
+ } & {
27
+ defaultValue: string;
29
28
  };
30
29
  readonly workerCount: {
31
- readonly type: "number";
32
- readonly description: "The number of workers to use. If 0 (the default) JBrowse will decide how many workers to use.";
33
- readonly defaultValue: 0;
34
- readonly advanced: true;
30
+ type: "number";
31
+ } & {
32
+ defaultValue: number;
35
33
  };
36
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
34
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined, undefined, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>, any>>;
37
35
  readonly formatDetails: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
38
36
  readonly feature: {
39
- readonly type: "frozen";
40
- readonly description: "adds extra fields to the feature details";
41
- readonly defaultValue: {};
42
- readonly contextVariable: ["feature"];
37
+ type: "frozen";
38
+ } & {
39
+ defaultValue: unknown;
43
40
  };
44
41
  readonly subfeatures: {
45
- readonly type: "frozen";
46
- readonly description: "adds extra fields to the subfeatures of a feature";
47
- readonly defaultValue: {};
48
- readonly contextVariable: ["feature"];
42
+ type: "frozen";
43
+ } & {
44
+ defaultValue: unknown;
49
45
  };
50
46
  readonly depth: {
51
- readonly type: "maybeNumber";
52
- readonly description: "levels of subfeature the formatDetails.subfeatures callback runs on, default 2";
47
+ type: "maybeNumber";
53
48
  };
54
49
  readonly maxDepth: {
55
- readonly type: "maybeNumber";
56
- readonly description: "hide subfeatures nested deeper than this, default no limit";
50
+ type: "maybeNumber";
57
51
  };
58
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
52
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined, undefined, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>, any>>;
59
53
  readonly formatAbout: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
60
54
  readonly config: {
61
- readonly type: "frozen";
62
- readonly description: "formats configuration object in about dialog";
63
- readonly defaultValue: {};
64
- readonly contextVariable: ["config"];
55
+ type: "frozen";
56
+ } & {
57
+ defaultValue: unknown;
65
58
  };
66
59
  readonly hideUris: {
67
- readonly type: "boolean";
68
- readonly defaultValue: false;
60
+ type: "boolean";
61
+ } & {
62
+ defaultValue: boolean;
69
63
  };
70
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
64
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined, undefined, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>, any>>;
71
65
  readonly shareURL: {
72
- readonly type: "string";
73
- readonly defaultValue: "https://share.jbrowse.org/api/v1/";
74
- readonly advanced: true;
66
+ type: "string";
67
+ } & {
68
+ defaultValue: string;
75
69
  };
76
70
  readonly disableAnalytics: {
77
- readonly type: "boolean";
78
- readonly defaultValue: false;
79
- readonly advanced: true;
71
+ type: "boolean";
72
+ } & {
73
+ defaultValue: boolean;
80
74
  };
81
75
  readonly hierarchical: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
82
76
  readonly sort: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
83
77
  readonly trackNames: {
84
- readonly type: "boolean";
85
- readonly defaultValue: false;
78
+ type: "boolean";
79
+ } & {
80
+ defaultValue: boolean;
86
81
  };
87
82
  readonly categories: {
88
- readonly type: "boolean";
89
- readonly defaultValue: false;
83
+ type: "boolean";
84
+ } & {
85
+ defaultValue: boolean;
90
86
  };
91
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
87
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined, undefined, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>, any>>;
92
88
  readonly defaultFolderCategories: {
93
- readonly type: "stringArray";
94
- readonly description: "list of category names to display as folders by default";
95
- readonly defaultValue: readonly [];
89
+ type: "stringArray";
90
+ } & {
91
+ defaultValue: unknown;
96
92
  };
97
93
  readonly defaultCollapsed: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
98
94
  readonly categoryNames: {
99
- readonly type: "stringArray";
100
- readonly defaultValue: readonly [];
95
+ type: "stringArray";
96
+ } & {
97
+ defaultValue: unknown;
101
98
  };
102
99
  readonly topLevelCategories: {
103
- readonly type: "boolean";
104
- readonly defaultValue: false;
100
+ type: "boolean";
101
+ } & {
102
+ defaultValue: boolean;
105
103
  };
106
104
  readonly subCategories: {
107
- readonly type: "boolean";
108
- readonly defaultValue: false;
105
+ type: "boolean";
106
+ } & {
107
+ defaultValue: boolean;
109
108
  };
110
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
111
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
109
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined, undefined, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>, any>>;
110
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined, undefined, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>, any>>;
112
111
  readonly preferences: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
113
112
  readonly animationMode: {
114
- readonly model: import("@jbrowse/mobx-state-tree").ISimpleType<"disabled" | "enabled" | "system">;
115
- readonly type: "stringEnum";
116
- readonly defaultValue: "enabled";
113
+ type: "stringEnum";
114
+ } & {
115
+ model: import("@jbrowse/mobx-state-tree").ISimpleType<"disabled" | "enabled" | "system">;
116
+ } & {
117
+ defaultValue: string;
117
118
  };
118
119
  readonly scrollZoom: {
119
- readonly type: "boolean";
120
- readonly defaultValue: false;
120
+ type: "boolean";
121
+ } & {
122
+ defaultValue: boolean;
121
123
  };
122
124
  readonly numberGrouping: {
123
- readonly type: "boolean";
124
- readonly defaultValue: true;
125
+ type: "boolean";
126
+ } & {
127
+ defaultValue: boolean;
125
128
  };
126
129
  readonly useWorkspaces: {
127
- readonly type: "boolean";
128
- readonly defaultValue: false;
130
+ type: "boolean";
131
+ } & {
132
+ defaultValue: boolean;
129
133
  };
130
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
134
+ readonly developerMode: {
135
+ type: "boolean";
136
+ } & {
137
+ defaultValue: boolean;
138
+ };
139
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined, undefined, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>, any>>;
131
140
  readonly theme: {
132
- readonly type: "frozen";
133
- readonly description: "Material UI theme overrides applied to the JBrowse UI";
134
- readonly defaultValue: {};
141
+ type: "frozen";
142
+ } & {
143
+ defaultValue: unknown;
135
144
  };
136
145
  readonly extraThemes: {
137
- readonly type: "frozen";
138
- readonly description: "additional named themes the user can switch between";
139
- readonly defaultValue: {};
140
- readonly advanced: true;
146
+ type: "frozen";
147
+ } & {
148
+ defaultValue: unknown;
141
149
  };
142
150
  readonly logoPath: {
143
- readonly type: "fileLocation";
144
- readonly description: "path to a custom logo image displayed in the app header";
145
- readonly defaultValue: {
146
- readonly uri: "";
147
- readonly locationType: "UriLocation";
148
- };
149
- readonly advanced: true;
151
+ type: "fileLocation";
152
+ } & {
153
+ defaultValue: unknown;
150
154
  };
151
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
155
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined, undefined, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>, any>>;
152
156
  /**
153
157
  * #slot
154
158
  * defines plugins of the format
@@ -157,9 +161,9 @@ export declare function JBrowseConfigF({ pluginManager, assemblyConfigSchema, ex
157
161
  * { umdUrl: string, name:string } |
158
162
  * { url: string, name: string } |
159
163
  * { esmUrl: string } |
160
- * { cjsUrl: string } |
161
164
  * { umdLoc: { uri: string } } |
162
165
  * { esmLoc: { uri: string } } |
166
+ * { storePlugin: string }
163
167
  * ```
164
168
  */
165
169
  plugins: import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/mobx-state-tree").IType<PluginDefinition, PluginDefinition, PluginDefinition>>;
@@ -188,18 +192,20 @@ export declare function JBrowseConfigF({ pluginManager, assemblyConfigSchema, ex
188
192
  * #slot
189
193
  * configuration for internet accounts, see InternetAccounts
190
194
  */
191
- internetAccounts: import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/mobx-state-tree").IAnyType>;
195
+ internetAccounts: import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/core/PluginManager").PluggableConfigSchemaType>;
192
196
  /**
193
197
  * #slot
194
- * configuration for aggregate text search adapters (created by e.g.
195
- * jbrowse text-index, but can be a pluggable TextSearchAdapter type)
198
+ * search indexes covering whole assemblies, as `jbrowse text-index` writes
199
+ * them or any pluggable text search adapter. A trix index can be just its
200
+ * `.ix` (`["trix/hg38.ix"]`), which takes the config's assembly when it
201
+ * has one; with several, write `{ uri, assemblyNames }`.
196
202
  */
197
- aggregateTextSearchAdapters: import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/mobx-state-tree").IAnyType>;
203
+ aggregateTextSearchAdapters: import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/core/PluginManager").PluggableConfigSchemaType>;
198
204
  /**
199
205
  * #slot
200
206
  * configuration for connections
201
207
  */
202
- connections: import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/mobx-state-tree").IAnyType>;
208
+ connections: import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/core/PluginManager").PluggableConfigSchemaType>;
203
209
  /**
204
210
  * #slot
205
211
  * the session loaded when no session is otherwise specified, e.g. the
@@ -1,6 +1,6 @@
1
1
  import { types } from '@jbrowse/mobx-state-tree';
2
2
  import RootConfiguration from './RootConfiguration.js';
3
- export { DEFAULT_SHARE_URL } from './RootConfiguration.js';
3
+ export { DEFAULT_SHARE_URL } from './defaultShareUrl.js';
4
4
  /**
5
5
  * #config JBrowseRootConfig
6
6
  * #category root
@@ -27,9 +27,9 @@ export function JBrowseConfigF({ pluginManager, assemblyConfigSchema, extraConfi
27
27
  * { umdUrl: string, name:string } |
28
28
  * { url: string, name: string } |
29
29
  * { esmUrl: string } |
30
- * { cjsUrl: string } |
31
30
  * { umdLoc: { uri: string } } |
32
31
  * { esmLoc: { uri: string } } |
32
+ * { storePlugin: string }
33
33
  * ```
34
34
  */
35
35
  plugins: types.array(types.frozen()),
@@ -52,8 +52,10 @@ export function JBrowseConfigF({ pluginManager, assemblyConfigSchema, extraConfi
52
52
  internetAccounts: types.array(pluginManager.pluggableConfigSchemaType('internet account')),
53
53
  /**
54
54
  * #slot
55
- * configuration for aggregate text search adapters (created by e.g.
56
- * jbrowse text-index, but can be a pluggable TextSearchAdapter type)
55
+ * search indexes covering whole assemblies, as `jbrowse text-index` writes
56
+ * them or any pluggable text search adapter. A trix index can be just its
57
+ * `.ix` (`["trix/hg38.ix"]`), which takes the config's assembly when it
58
+ * has one; with several, write `{ uri, assemblyNames }`.
57
59
  */
58
60
  aggregateTextSearchAdapters: types.array(pluginManager.pluggableConfigSchemaType('text search adapter')),
59
61
  /**