@jbrowse/core 2.16.1 → 2.18.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 (308) hide show
  1. package/BaseFeatureWidget/BaseFeatureDetail/ArrayValue.js +1 -2
  2. package/BaseFeatureWidget/BaseFeatureDetail/Attributes.js +4 -8
  3. package/BaseFeatureWidget/BaseFeatureDetail/BaseCard.d.ts +1 -1
  4. package/BaseFeatureWidget/BaseFeatureDetail/BaseCard.js +1 -2
  5. package/BaseFeatureWidget/BaseFeatureDetail/BasicValue.js +2 -3
  6. package/BaseFeatureWidget/BaseFeatureDetail/CoreDetails.d.ts +1 -1
  7. package/BaseFeatureWidget/BaseFeatureDetail/CoreDetails.js +2 -3
  8. package/BaseFeatureWidget/BaseFeatureDetail/DataGridDetails.js +22 -25
  9. package/BaseFeatureWidget/BaseFeatureDetail/FeatureDetails.d.ts +2 -2
  10. package/BaseFeatureWidget/BaseFeatureDetail/FeatureDetails.js +6 -8
  11. package/BaseFeatureWidget/BaseFeatureDetail/Position.d.ts +1 -1
  12. package/BaseFeatureWidget/BaseFeatureDetail/SimpleField.js +1 -1
  13. package/BaseFeatureWidget/BaseFeatureDetail/UriField.js +1 -1
  14. package/BaseFeatureWidget/BaseFeatureDetail/index.d.ts +3 -4
  15. package/BaseFeatureWidget/BaseFeatureDetail/index.js +5 -9
  16. package/BaseFeatureWidget/BaseFeatureDetail/util.js +0 -5
  17. package/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeatureDetails.d.ts +2 -2
  18. package/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeatureDetails.js +0 -7
  19. package/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeaturePanel.d.ts +2 -2
  20. package/BaseFeatureWidget/SequenceFeatureDetails/SequenceFeaturePanel.js +1 -7
  21. package/BaseFeatureWidget/SequenceFeatureDetails/SequencePanel.d.ts +3 -3
  22. package/BaseFeatureWidget/SequenceFeatureDetails/SequencePanel.js +24 -33
  23. package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/HelpDialog.js +1 -2
  24. package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceDialog.d.ts +2 -2
  25. package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceDialog.js +3 -4
  26. package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceFeatureMenu.d.ts +2 -2
  27. package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceFeatureMenu.js +3 -6
  28. package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SequenceTypeSelector.d.ts +1 -1
  29. package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SettingsDialog.d.ts +1 -1
  30. package/BaseFeatureWidget/SequenceFeatureDetails/dialogs/SettingsDialog.js +2 -2
  31. package/BaseFeatureWidget/SequenceFeatureDetails/hooks.d.ts +2 -2
  32. package/BaseFeatureWidget/SequenceFeatureDetails/hooks.js +1 -2
  33. package/BaseFeatureWidget/SequenceFeatureDetails/model.d.ts +2 -35
  34. package/BaseFeatureWidget/SequenceFeatureDetails/model.js +19 -44
  35. package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDNASequence.d.ts +3 -3
  36. package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDSSequence.d.ts +2 -2
  37. package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/CDSSequence.js +5 -6
  38. package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/GenomicSequence.d.ts +2 -2
  39. package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/GenomicSequence.js +0 -1
  40. package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/ProteinSequence.d.ts +2 -2
  41. package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/ProteinSequence.js +0 -2
  42. package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/SequenceDisplay.d.ts +1 -1
  43. package/BaseFeatureWidget/SequenceFeatureDetails/seqtypes/SequenceDisplay.js +1 -3
  44. package/BaseFeatureWidget/SequenceFeatureDetails/util.js +1 -5
  45. package/BaseFeatureWidget/stateModelFactory.d.ts +3 -94
  46. package/BaseFeatureWidget/stateModelFactory.js +3 -73
  47. package/BaseFeatureWidget/types.d.ts +3 -3
  48. package/BaseFeatureWidget/util.js +0 -4
  49. package/CorePlugin.d.ts +1 -1
  50. package/CorePlugin.js +2 -5
  51. package/Plugin.d.ts +2 -5
  52. package/Plugin.js +0 -3
  53. package/PluginLoader.d.ts +1 -1
  54. package/PluginLoader.js +2 -19
  55. package/PluginManager.d.ts +15 -31
  56. package/PluginManager.js +11 -39
  57. package/ReExports/DataGrid.js +0 -1
  58. package/ReExports/list.d.ts +0 -5
  59. package/ReExports/list.js +0 -5
  60. package/ReExports/modules.d.ts +22 -20
  61. package/ReExports/modules.js +16 -25
  62. package/TextSearch/BaseResults.d.ts +3 -3
  63. package/TextSearch/TextSearchManager.d.ts +4 -16
  64. package/TextSearch/TextSearchManager.js +1 -13
  65. package/assemblyManager/assembly.d.ts +5 -100
  66. package/assemblyManager/assembly.js +27 -143
  67. package/assemblyManager/assemblyConfigSchema.d.ts +1 -34
  68. package/assemblyManager/assemblyConfigSchema.js +12 -46
  69. package/assemblyManager/assemblyManager.d.ts +7 -57
  70. package/assemblyManager/assemblyManager.js +2 -57
  71. package/configuration/configurationSchema.d.ts +4 -4
  72. package/configuration/configurationSchema.js +2 -14
  73. package/configuration/configurationSlot.d.ts +1 -12
  74. package/configuration/configurationSlot.js +2 -32
  75. package/configuration/index.d.ts +2 -2
  76. package/configuration/index.js +2 -2
  77. package/configuration/types.d.ts +2 -3
  78. package/configuration/util.d.ts +1 -25
  79. package/configuration/util.js +19 -56
  80. package/data_adapters/BaseAdapter/BaseAdapter.d.ts +4 -14
  81. package/data_adapters/BaseAdapter/BaseAdapter.js +1 -10
  82. package/data_adapters/BaseAdapter/BaseFeatureDataAdapter.d.ts +10 -114
  83. package/data_adapters/BaseAdapter/BaseFeatureDataAdapter.js +13 -79
  84. package/data_adapters/BaseAdapter/BaseOptions.d.ts +2 -2
  85. package/data_adapters/BaseAdapter/BaseRefNameAliasAdapter.d.ts +2 -2
  86. package/data_adapters/BaseAdapter/BaseSequenceAdapter.d.ts +3 -6
  87. package/data_adapters/BaseAdapter/BaseTextSearchAdapter.d.ts +3 -3
  88. package/data_adapters/BaseAdapter/RegionsAdapter.d.ts +3 -3
  89. package/data_adapters/BaseAdapter/index.d.ts +4 -4
  90. package/data_adapters/BaseAdapter/types.d.ts +2 -2
  91. package/data_adapters/BaseAdapter/util.d.ts +6 -6
  92. package/data_adapters/CytobandAdapter/CytobandAdapter.d.ts +2 -1
  93. package/data_adapters/CytobandAdapter/CytobandAdapter.js +11 -12
  94. package/data_adapters/CytobandAdapter/configSchema.d.ts +0 -3
  95. package/data_adapters/CytobandAdapter/configSchema.js +1 -7
  96. package/data_adapters/CytobandAdapter/index.d.ts +1 -1
  97. package/data_adapters/CytobandAdapter/index.js +1 -1
  98. package/data_adapters/dataAdapterCache.d.ts +4 -21
  99. package/data_adapters/dataAdapterCache.js +0 -19
  100. package/package.json +4 -5
  101. package/pluggableElementTypes/AdapterType.d.ts +2 -2
  102. package/pluggableElementTypes/AddTrackWorkflowType.d.ts +2 -2
  103. package/pluggableElementTypes/ConnectionType.d.ts +3 -3
  104. package/pluggableElementTypes/DisplayType.d.ts +3 -9
  105. package/pluggableElementTypes/InternetAccountType.d.ts +2 -2
  106. package/pluggableElementTypes/PluggableElementBase.d.ts +1 -1
  107. package/pluggableElementTypes/PluggableElementBase.js +2 -2
  108. package/pluggableElementTypes/RpcMethodType.d.ts +5 -11
  109. package/pluggableElementTypes/RpcMethodType.js +7 -19
  110. package/pluggableElementTypes/RpcMethodTypeWithFiltersAndRenameRegions.d.ts +9 -0
  111. package/pluggableElementTypes/RpcMethodTypeWithFiltersAndRenameRegions.js +35 -0
  112. package/pluggableElementTypes/TextSearchAdapterType.d.ts +2 -2
  113. package/pluggableElementTypes/TrackType.d.ts +3 -3
  114. package/pluggableElementTypes/ViewType.d.ts +3 -3
  115. package/pluggableElementTypes/WidgetType.d.ts +4 -3
  116. package/pluggableElementTypes/index.d.ts +11 -11
  117. package/pluggableElementTypes/models/BaseConnectionModelFactory.d.ts +2 -29
  118. package/pluggableElementTypes/models/BaseConnectionModelFactory.js +1 -28
  119. package/pluggableElementTypes/models/BaseDisplayModel.d.ts +3 -83
  120. package/pluggableElementTypes/models/BaseDisplayModel.js +2 -69
  121. package/pluggableElementTypes/models/BaseTrackModel.d.ts +4 -46
  122. package/pluggableElementTypes/models/BaseTrackModel.js +0 -58
  123. package/pluggableElementTypes/models/BaseViewModel.d.ts +2 -42
  124. package/pluggableElementTypes/models/BaseViewModel.js +2 -38
  125. package/pluggableElementTypes/models/InternetAccountModel.d.ts +3 -119
  126. package/pluggableElementTypes/models/InternetAccountModel.js +3 -123
  127. package/pluggableElementTypes/models/baseConnectionConfig.d.ts +0 -6
  128. package/pluggableElementTypes/models/baseConnectionConfig.js +1 -13
  129. package/pluggableElementTypes/models/baseInternetAccountConfig.d.ts +0 -15
  130. package/pluggableElementTypes/models/baseInternetAccountConfig.js +1 -23
  131. package/pluggableElementTypes/models/baseTrackConfig.d.ts +2 -53
  132. package/pluggableElementTypes/models/baseTrackConfig.js +1 -58
  133. package/pluggableElementTypes/renderers/BoxRendererType.d.ts +7 -15
  134. package/pluggableElementTypes/renderers/BoxRendererType.js +3 -14
  135. package/pluggableElementTypes/renderers/CircularChordRendererType.d.ts +3 -2
  136. package/pluggableElementTypes/renderers/CircularChordRendererType.js +1 -6
  137. package/pluggableElementTypes/renderers/ComparativeServerSideRendererType.d.ts +6 -21
  138. package/pluggableElementTypes/renderers/ComparativeServerSideRendererType.js +2 -25
  139. package/pluggableElementTypes/renderers/FeatureRendererType.d.ts +5 -47
  140. package/pluggableElementTypes/renderers/FeatureRendererType.js +15 -68
  141. package/pluggableElementTypes/renderers/RendererType.d.ts +4 -8
  142. package/pluggableElementTypes/renderers/RendererType.js +1 -5
  143. package/pluggableElementTypes/renderers/RpcRenderedSvgGroup.d.ts +2 -2
  144. package/pluggableElementTypes/renderers/RpcRenderedSvgGroup.js +3 -12
  145. package/pluggableElementTypes/renderers/ServerSideRenderedContent.d.ts +1 -1
  146. package/pluggableElementTypes/renderers/ServerSideRenderedContent.js +6 -14
  147. package/pluggableElementTypes/renderers/ServerSideRendererType.d.ts +9 -49
  148. package/pluggableElementTypes/renderers/ServerSideRendererType.js +7 -57
  149. package/pluggableElementTypes/renderers/index.d.ts +1 -1
  150. package/pluggableElementTypes/renderers/util/serializableFilterChain.js +1 -3
  151. package/rpc/BaseRpcDriver.d.ts +3 -4
  152. package/rpc/BaseRpcDriver.js +20 -80
  153. package/rpc/MainThreadRpcDriver.d.ts +3 -7
  154. package/rpc/MainThreadRpcDriver.js +0 -5
  155. package/rpc/RpcManager.d.ts +3 -3
  156. package/rpc/RpcManager.js +2 -4
  157. package/rpc/WebWorkerRpcDriver.d.ts +3 -2
  158. package/rpc/WebWorkerRpcDriver.js +2 -13
  159. package/rpc/baseRpcConfig.d.ts +0 -3
  160. package/rpc/baseRpcConfig.js +1 -7
  161. package/rpc/configSchema.d.ts +0 -6
  162. package/rpc/configSchema.js +2 -11
  163. package/rpc/mainThreadRpcConfig.js +1 -7
  164. package/rpc/methods/CoreFreeResources.d.ts +0 -6
  165. package/rpc/methods/CoreFreeResources.js +2 -9
  166. package/rpc/methods/CoreGetFeatureDensityStats.d.ts +4 -5
  167. package/rpc/methods/CoreGetFeatureDensityStats.js +1 -1
  168. package/rpc/methods/CoreGetFeatureDetails.d.ts +2 -7
  169. package/rpc/methods/CoreGetFeatureDetails.js +0 -5
  170. package/rpc/methods/CoreGetFeatures.d.ts +5 -5
  171. package/rpc/methods/CoreGetFeatures.js +4 -5
  172. package/rpc/methods/CoreGetFileInfo.d.ts +1 -2
  173. package/rpc/methods/CoreGetFileInfo.js +1 -1
  174. package/rpc/methods/CoreGetMetadata.d.ts +1 -2
  175. package/rpc/methods/CoreGetMetadata.js +1 -1
  176. package/rpc/methods/CoreGetRefNames.d.ts +1 -2
  177. package/rpc/methods/CoreGetRefNames.js +1 -1
  178. package/rpc/methods/CoreRender.d.ts +2 -6
  179. package/rpc/methods/CoreRender.js +5 -7
  180. package/rpc/methods/util.d.ts +3 -3
  181. package/rpc/methods/util.js +0 -1
  182. package/rpc/webWorkerRpcConfig.js +1 -7
  183. package/stories/JBrowseCore.stories.d.ts +1 -1
  184. package/stories/JBrowseCore.stories.js +3 -3
  185. package/stories/examples/WithSequencePanel.d.ts +1 -1
  186. package/stories/examples/WithSequencePanel.js +3 -3
  187. package/tsconfig.build.tsbuildinfo +1 -1
  188. package/ui/AppLogo.d.ts +1 -1
  189. package/ui/AppLogo.js +0 -2
  190. package/ui/AssemblySelector.d.ts +2 -2
  191. package/ui/AssemblySelector.js +5 -5
  192. package/ui/BaseTooltip.js +2 -6
  193. package/ui/CascadingMenu.d.ts +2 -2
  194. package/ui/CascadingMenu.js +3 -4
  195. package/ui/CascadingMenuButton.d.ts +1 -1
  196. package/ui/CascadingMenuButton.js +1 -1
  197. package/ui/ColorPicker.js +1 -7
  198. package/ui/Dialog.d.ts +1 -1
  199. package/ui/Dialog.js +2 -6
  200. package/ui/DropDownMenu.d.ts +1 -1
  201. package/ui/DropDownMenu.js +2 -2
  202. package/ui/EditableTypography.d.ts +1 -1
  203. package/ui/EditableTypography.js +1 -5
  204. package/ui/ErrorBoundary.d.ts +2 -1
  205. package/ui/ErrorMessage.js +2 -9
  206. package/ui/ErrorMessageStackTraceDialog.js +2 -10
  207. package/ui/FactoryResetDialog.js +1 -1
  208. package/ui/FatalErrorDialog.js +1 -1
  209. package/ui/FileSelector/FileSelector.d.ts +4 -3
  210. package/ui/FileSelector/FileSelector.js +40 -40
  211. package/ui/FileSelector/LocalFileChooser.d.ts +1 -1
  212. package/ui/FileSelector/LocalFileChooser.js +0 -1
  213. package/ui/FileSelector/UrlChooser.d.ts +4 -3
  214. package/ui/FileSelector/UrlChooser.js +6 -2
  215. package/ui/Icons.d.ts +1 -1
  216. package/ui/Icons.js +1 -7
  217. package/ui/LoadingEllipses.d.ts +1 -1
  218. package/ui/LoadingEllipses.js +3 -3
  219. package/ui/Menu.d.ts +1 -1
  220. package/ui/Menu.js +3 -10
  221. package/ui/MenuButton.d.ts +1 -1
  222. package/ui/ResizeHandle.js +2 -2
  223. package/ui/ReturnToImportFormDialog.js +1 -1
  224. package/ui/SanitizedHTML.js +2 -19
  225. package/ui/Snackbar.d.ts +2 -2
  226. package/ui/Snackbar.js +1 -2
  227. package/ui/SnackbarModel.d.ts +1 -26
  228. package/ui/SnackbarModel.js +2 -30
  229. package/ui/colors.d.ts +1 -1
  230. package/ui/colors.js +1 -1
  231. package/ui/react-colorful.js +0 -3
  232. package/ui/theme.d.ts +1 -1
  233. package/ui/theme.js +24 -84
  234. package/util/Base1DUtils.d.ts +1 -1
  235. package/util/Base1DUtils.js +0 -12
  236. package/util/Base1DViewModel.d.ts +4 -81
  237. package/util/Base1DViewModel.js +4 -108
  238. package/util/QuickLRU.js +0 -9
  239. package/util/TimeTraveller.js +0 -4
  240. package/util/aborting.d.ts +0 -20
  241. package/util/aborting.js +0 -31
  242. package/util/analytics.js +1 -12
  243. package/util/blockTypes.d.ts +0 -11
  244. package/util/blockTypes.js +0 -13
  245. package/util/calculateDynamicBlocks.d.ts +1 -20
  246. package/util/calculateDynamicBlocks.js +1 -22
  247. package/util/calculateStaticBlocks.d.ts +2 -2
  248. package/util/calculateStaticBlocks.js +0 -2
  249. package/util/color/cssColorsLevel4.js +0 -1
  250. package/util/color/index.d.ts +0 -19
  251. package/util/color/index.js +0 -30
  252. package/util/compositeMap.js +0 -2
  253. package/util/dedupe.js +0 -1
  254. package/util/formatFastaStrings.d.ts +0 -13
  255. package/util/formatFastaStrings.js +0 -13
  256. package/util/idMaker.d.ts +1 -1
  257. package/util/idMaker.js +16 -12
  258. package/util/index.d.ts +25 -173
  259. package/util/index.js +87 -326
  260. package/util/io/RemoteFileWithRangeCache.d.ts +3 -2
  261. package/util/io/RemoteFileWithRangeCache.js +6 -10
  262. package/util/io/index.d.ts +3 -4
  263. package/util/io/index.js +3 -17
  264. package/util/jexl.js +3 -13
  265. package/util/jexlStrings.d.ts +0 -6
  266. package/util/jexlStrings.js +0 -8
  267. package/util/layouts/BaseLayout.d.ts +1 -1
  268. package/util/layouts/GranularRectLayout.d.ts +1 -17
  269. package/util/layouts/GranularRectLayout.js +4 -81
  270. package/util/layouts/MultiLayout.d.ts +1 -6
  271. package/util/layouts/MultiLayout.js +0 -6
  272. package/util/layouts/PrecomputedLayout.d.ts +1 -4
  273. package/util/layouts/PrecomputedLayout.js +0 -5
  274. package/util/layouts/PrecomputedMultiLayout.js +0 -2
  275. package/util/layouts/SceneGraph.d.ts +0 -12
  276. package/util/layouts/SceneGraph.js +0 -13
  277. package/util/makeAbortableReaction.d.ts +2 -0
  278. package/util/makeAbortableReaction.js +50 -0
  279. package/util/map-obj.js +0 -4
  280. package/util/mst-reflection.d.ts +1 -14
  281. package/util/mst-reflection.js +1 -28
  282. package/util/nanoid.js +0 -31
  283. package/util/nextTick.d.ts +1 -0
  284. package/util/nextTick.js +6 -0
  285. package/util/offscreenCanvasPonyfill.d.ts +0 -1
  286. package/util/offscreenCanvasPonyfill.js +1 -9
  287. package/util/offscreenCanvasUtils.js +1 -8
  288. package/util/range.d.ts +0 -25
  289. package/util/range.js +0 -34
  290. package/util/rxjs.d.ts +3 -7
  291. package/util/rxjs.js +2 -9
  292. package/util/simpleFeature.d.ts +0 -58
  293. package/util/simpleFeature.js +0 -35
  294. package/util/stats.d.ts +4 -34
  295. package/util/stats.js +0 -60
  296. package/util/stopToken.d.ts +3 -0
  297. package/util/stopToken.js +29 -0
  298. package/util/tracks.d.ts +3 -25
  299. package/util/tracks.js +0 -30
  300. package/util/types/index.d.ts +14 -30
  301. package/util/types/index.js +5 -14
  302. package/util/types/mst.js +0 -9
  303. package/util/types/util.d.ts +2 -9
  304. package/util/useMeasure.js +0 -1
  305. package/util/when.d.ts +1 -15
  306. package/util/when.js +3 -70
  307. package/rpc/remoteAbortSignals.d.ts +0 -36
  308. package/rpc/remoteAbortSignals.js +0 -79
@@ -1,19 +1,10 @@
1
- import React from 'react';
2
- import { Instance } from 'mobx-state-tree';
1
+ import type React from 'react';
3
2
  import { RemoteFileWithRangeCache } from '../../util/io';
4
- import { UriLocation, AnyReactComponentType } from '../../util/types';
3
+ import type { AnyReactComponentType, UriLocation } from '../../util/types';
4
+ import type { Instance } from 'mobx-state-tree';
5
5
  export declare const InternetAccount: import("mobx-state-tree").IModelType<{
6
- /**
7
- * #property
8
- */
9
6
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
10
- /**
11
- * #property
12
- */
13
7
  type: import("mobx-state-tree").ISimpleType<string>;
14
- /**
15
- * #property
16
- */
17
8
  configuration: import("../../configuration/configurationSchema").ConfigurationSchemaType<{
18
9
  name: {
19
10
  description: string;
@@ -42,111 +33,27 @@ export declare const InternetAccount: import("mobx-state-tree").IModelType<{
42
33
  };
43
34
  }, import("../../configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
44
35
  }, {
45
- /**
46
- * #getter
47
- */
48
36
  readonly name: string;
49
- /**
50
- * #getter
51
- */
52
37
  readonly description: string;
53
- /**
54
- * #getter
55
- */
56
38
  readonly internetAccountId: string;
57
- /**
58
- * #getter
59
- */
60
39
  readonly authHeader: string;
61
- /**
62
- * #getter
63
- */
64
40
  readonly tokenType: string;
65
- /**
66
- * #getter
67
- */
68
41
  readonly domains: string[];
69
- /**
70
- * #getter
71
- * Can use this to customize what is displayed in fileSelector's toggle box
72
- */
73
42
  readonly toggleContents: React.ReactNode;
74
- /**
75
- * #getter
76
- * Can use this to customize what the fileSelector. It takes a prop called
77
- * `setLocation` that should be used to set a UriLocation
78
- */
79
43
  readonly SelectorComponent: AnyReactComponentType | undefined;
80
- /**
81
- * #getter
82
- * Can use this to add a label to the UrlChooser. Has no effect if a custom
83
- * SelectorComponent is supplied
84
- */
85
44
  readonly selectorLabel: string | undefined;
86
45
  } & {
87
- /**
88
- * #method
89
- * Determine whether this internetAccount provides credentials for a URL
90
- * @param location - UriLocation of resource
91
- * @returns true or false
92
- */
93
46
  handlesLocation(location: UriLocation): boolean;
94
- /**
95
- * #getter
96
- * The key used to store this internetAccount's token in sessionStorage
97
- */
98
47
  readonly tokenKey: string;
99
48
  } & {
100
- /**
101
- * #action
102
- * Must be implemented by a model extending or composing this one. Pass the
103
- * user's token to `resolve`.
104
- * @param resolve - Pass the token to this function
105
- * @param reject - If there is an error getting the token, call this function
106
- */
107
49
  getTokenFromUser(_resolve: (token: string) => void, _reject: (error: Error) => void): void;
108
- /**
109
- * #action
110
- */
111
50
  storeToken(token: string): void;
112
- /**
113
- * #action
114
- */
115
51
  removeToken(): void;
116
- /**
117
- * #action
118
- */
119
52
  retrieveToken(): string | null;
120
- /**
121
- * #action
122
- * This can be used by an internetAccount to validate a token works before
123
- * it is used. This is run when preAuthorizationInformation is requested,
124
- * so it can be used to check that a token is valid before sending it to a
125
- * worker thread. It expects the token to be returned so that this action
126
- * can also be used to generate a new token (e.g. by using a refresh token)
127
- * if the original one was invalid. Should throw an error if a token is
128
- * invalid.
129
- *
130
- * @param token - Auth token
131
- * @param loc - UriLocation of the resource
132
- * @returns - Valid auth token
133
- */
134
53
  validateToken(token: string, _loc: UriLocation): Promise<string>;
135
54
  } & {
136
- /**
137
- * #action
138
- * Try to get the token from the location pre-auth, from local storage,
139
- * or from a previously cached promise. If token is not available, uses
140
- * `getTokenFromUser`.
141
- *
142
- * @param location - UriLocation of the resource
143
- * @returns A promise for the token
144
- */
145
55
  getToken(location?: UriLocation): Promise<string>;
146
56
  } & {
147
- /**
148
- * #action
149
- */
150
57
  addAuthHeaderToInit(init?: RequestInit, token?: string): {
151
58
  headers: Headers;
152
59
  body?: BodyInit | null;
@@ -163,14 +70,6 @@ export declare const InternetAccount: import("mobx-state-tree").IModelType<{
163
70
  signal?: AbortSignal | null;
164
71
  window?: null;
165
72
  };
166
- /**
167
- * #action
168
- * Gets the token and returns it along with the information needed to
169
- * create a new internetAccount.
170
- *
171
- * @param location - UriLocation of the resource
172
- * @returns
173
- */
174
73
  getPreAuthorizationInformation(location: UriLocation): Promise<{
175
74
  internetAccountType: string;
176
75
  authInfo: {
@@ -179,23 +78,8 @@ export declare const InternetAccount: import("mobx-state-tree").IModelType<{
179
78
  };
180
79
  }>;
181
80
  } & {
182
- /**
183
- * #action
184
- * Get a fetch method that will add any needed authentication headers to
185
- * the request before sending it. If location is provided, it will be
186
- * checked to see if it includes a token in it pre-auth information.
187
- *
188
- * @param loc - UriLocation of the resource
189
- * @returns A function that can be used to fetch
190
- */
191
81
  getFetcher(loc?: UriLocation): (input: RequestInfo, init?: RequestInit) => Promise<Response>;
192
82
  } & {
193
- /**
194
- * #action
195
- * Gets a filehandle that uses a fetch that adds auth headers
196
- * @param location - UriLocation of the resource
197
- * @returns A filehandle
198
- */
199
83
  openLocation(location: UriLocation): RemoteFileWithRangeCache;
200
84
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
201
85
  export type BaseInternetAccountStateModel = typeof InternetAccount;
@@ -2,153 +2,68 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InternetAccount = void 0;
4
4
  const mobx_state_tree_1 = require("mobx-state-tree");
5
+ const baseInternetAccountConfig_1 = require("./baseInternetAccountConfig");
5
6
  const configuration_1 = require("../../configuration");
6
7
  const io_1 = require("../../util/io");
7
8
  const mst_1 = require("../../util/types/mst");
8
- const baseInternetAccountConfig_1 = require("./baseInternetAccountConfig");
9
9
  const inWebWorker = typeof sessionStorage === 'undefined';
10
- /**
11
- * #stateModel BaseInternetAccountModel
12
- * #category internetAccount
13
- */
14
- function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
10
+ function x() { }
15
11
  exports.InternetAccount = mobx_state_tree_1.types
16
12
  .model('InternetAccount', {
17
- /**
18
- * #property
19
- */
20
13
  id: mst_1.ElementId,
21
- /**
22
- * #property
23
- */
24
14
  type: mobx_state_tree_1.types.string,
25
- /**
26
- * #property
27
- */
28
15
  configuration: (0, configuration_1.ConfigurationReference)(baseInternetAccountConfig_1.BaseInternetAccountConfig),
29
16
  })
30
17
  .views(self => ({
31
- /**
32
- * #getter
33
- */
34
18
  get name() {
35
19
  return (0, configuration_1.getConf)(self, 'name');
36
20
  },
37
- /**
38
- * #getter
39
- */
40
21
  get description() {
41
22
  return (0, configuration_1.getConf)(self, 'description');
42
23
  },
43
- /**
44
- * #getter
45
- */
46
24
  get internetAccountId() {
47
- return (0, configuration_1.getConf)(self, 'internetAccountId'); // NOTE: this is the explicitIdentifier of the config schema
25
+ return (0, configuration_1.getConf)(self, 'internetAccountId');
48
26
  },
49
- /**
50
- * #getter
51
- */
52
27
  get authHeader() {
53
28
  return (0, configuration_1.getConf)(self, 'authHeader');
54
29
  },
55
- /**
56
- * #getter
57
- */
58
30
  get tokenType() {
59
31
  return (0, configuration_1.getConf)(self, 'tokenType');
60
32
  },
61
- /**
62
- * #getter
63
- */
64
33
  get domains() {
65
34
  return (0, configuration_1.getConf)(self, 'domains');
66
35
  },
67
- /**
68
- * #getter
69
- * Can use this to customize what is displayed in fileSelector's toggle box
70
- */
71
36
  get toggleContents() {
72
37
  return null;
73
38
  },
74
- /**
75
- * #getter
76
- * Can use this to customize what the fileSelector. It takes a prop called
77
- * `setLocation` that should be used to set a UriLocation
78
- */
79
39
  get SelectorComponent() {
80
40
  return undefined;
81
41
  },
82
- /**
83
- * #getter
84
- * Can use this to add a label to the UrlChooser. Has no effect if a custom
85
- * SelectorComponent is supplied
86
- */
87
42
  get selectorLabel() {
88
43
  return undefined;
89
44
  },
90
45
  }))
91
46
  .views(self => ({
92
- /**
93
- * #method
94
- * Determine whether this internetAccount provides credentials for a URL
95
- * @param location - UriLocation of resource
96
- * @returns true or false
97
- */
98
47
  handlesLocation(location) {
99
48
  return self.domains.some(domain => location.uri.includes(domain));
100
49
  },
101
- /**
102
- * #getter
103
- * The key used to store this internetAccount's token in sessionStorage
104
- */
105
50
  get tokenKey() {
106
51
  return `${self.internetAccountId}-token`;
107
52
  },
108
53
  }))
109
54
  .actions(self => ({
110
- /**
111
- * #action
112
- * Must be implemented by a model extending or composing this one. Pass the
113
- * user's token to `resolve`.
114
- * @param resolve - Pass the token to this function
115
- * @param reject - If there is an error getting the token, call this function
116
- */
117
55
  getTokenFromUser(_resolve, _reject) {
118
56
  throw new Error('getTokenFromUser must be implemented by extending model');
119
57
  },
120
- /**
121
- * #action
122
- */
123
58
  storeToken(token) {
124
59
  sessionStorage.setItem(self.tokenKey, token);
125
60
  },
126
- /**
127
- * #action
128
- */
129
61
  removeToken() {
130
62
  sessionStorage.removeItem(self.tokenKey);
131
63
  },
132
- /**
133
- * #action
134
- */
135
64
  retrieveToken() {
136
65
  return sessionStorage.getItem(self.tokenKey);
137
66
  },
138
- /**
139
- * #action
140
- * This can be used by an internetAccount to validate a token works before
141
- * it is used. This is run when preAuthorizationInformation is requested,
142
- * so it can be used to check that a token is valid before sending it to a
143
- * worker thread. It expects the token to be returned so that this action
144
- * can also be used to generate a new token (e.g. by using a refresh token)
145
- * if the original one was invalid. Should throw an error if a token is
146
- * invalid.
147
- *
148
- * @param token - Auth token
149
- * @param loc - UriLocation of the resource
150
- * @returns - Valid auth token
151
- */
152
67
  async validateToken(token, _loc) {
153
68
  return token;
154
69
  },
@@ -156,15 +71,6 @@ exports.InternetAccount = mobx_state_tree_1.types
156
71
  .actions(self => {
157
72
  let tokenPromise = undefined;
158
73
  return {
159
- /**
160
- * #action
161
- * Try to get the token from the location pre-auth, from local storage,
162
- * or from a previously cached promise. If token is not available, uses
163
- * `getTokenFromUser`.
164
- *
165
- * @param location - UriLocation of the resource
166
- * @returns A promise for the token
167
- */
168
74
  async getToken(location) {
169
75
  var _a, _b;
170
76
  if (tokenPromise) {
@@ -197,9 +103,6 @@ exports.InternetAccount = mobx_state_tree_1.types
197
103
  };
198
104
  })
199
105
  .actions(self => ({
200
- /**
201
- * #action
202
- */
203
106
  addAuthHeaderToInit(init, token) {
204
107
  return {
205
108
  ...init,
@@ -215,14 +118,6 @@ exports.InternetAccount = mobx_state_tree_1.types
215
118
  }),
216
119
  };
217
120
  },
218
- /**
219
- * #action
220
- * Gets the token and returns it along with the information needed to
221
- * create a new internetAccount.
222
- *
223
- * @param location - UriLocation of the resource
224
- * @returns
225
- */
226
121
  async getPreAuthorizationInformation(location) {
227
122
  const authToken = await self.getToken(location);
228
123
  let validatedToken;
@@ -243,15 +138,6 @@ exports.InternetAccount = mobx_state_tree_1.types
243
138
  },
244
139
  }))
245
140
  .actions(self => ({
246
- /**
247
- * #action
248
- * Get a fetch method that will add any needed authentication headers to
249
- * the request before sending it. If location is provided, it will be
250
- * checked to see if it includes a token in it pre-auth information.
251
- *
252
- * @param loc - UriLocation of the resource
253
- * @returns A function that can be used to fetch
254
- */
255
141
  getFetcher(loc) {
256
142
  return async (input, init) => {
257
143
  const authToken = await self.getToken(loc);
@@ -261,12 +147,6 @@ exports.InternetAccount = mobx_state_tree_1.types
261
147
  },
262
148
  }))
263
149
  .actions(self => ({
264
- /**
265
- * #action
266
- * Gets a filehandle that uses a fetch that adds auth headers
267
- * @param location - UriLocation of the resource
268
- * @returns A filehandle
269
- */
270
150
  openLocation(location) {
271
151
  return new io_1.RemoteFileWithRangeCache(location.uri, {
272
152
  fetch: self.getFetcher(location),
@@ -1,16 +1,10 @@
1
1
  import type { Instance } from 'mobx-state-tree';
2
2
  declare const BaseConnectionConfig: import("../../configuration/configurationSchema").ConfigurationSchemaType<{
3
- /**
4
- * #slot
5
- */
6
3
  name: {
7
4
  type: string;
8
5
  defaultValue: string;
9
6
  description: string;
10
7
  };
11
- /**
12
- * #slot
13
- */
14
8
  assemblyNames: {
15
9
  type: string;
16
10
  defaultValue: never[];
@@ -1,22 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const configuration_1 = require("../../configuration");
4
- /**
5
- * #config BaseConnection
6
- */
7
- function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
4
+ function x() { }
8
5
  const BaseConnectionConfig = (0, configuration_1.ConfigurationSchema)('BaseConnection', {
9
- /**
10
- * #slot
11
- */
12
6
  name: {
13
7
  type: 'string',
14
8
  defaultValue: 'nameOfConnection',
15
9
  description: 'a unique name for this connection',
16
10
  },
17
- /**
18
- * #slot
19
- */
20
11
  assemblyNames: {
21
12
  type: 'stringArray',
22
13
  defaultValue: [],
@@ -24,9 +15,6 @@ const BaseConnectionConfig = (0, configuration_1.ConfigurationSchema)('BaseConne
24
15
  },
25
16
  }, {
26
17
  explicitlyTyped: true,
27
- /**
28
- * #identifier
29
- */
30
18
  explicitIdentifier: 'connectionId',
31
19
  });
32
20
  exports.default = BaseConnectionConfig;
@@ -1,39 +1,24 @@
1
1
  export declare const BaseInternetAccountConfig: import("../../configuration/configurationSchema").ConfigurationSchemaType<{
2
- /**
3
- * #slot
4
- */
5
2
  name: {
6
3
  description: string;
7
4
  type: string;
8
5
  defaultValue: string;
9
6
  };
10
- /**
11
- * #slot
12
- */
13
7
  description: {
14
8
  description: string;
15
9
  type: string;
16
10
  defaultValue: string;
17
11
  };
18
- /**
19
- * #slot
20
- */
21
12
  authHeader: {
22
13
  description: string;
23
14
  type: string;
24
15
  defaultValue: string;
25
16
  };
26
- /**
27
- * #slot
28
- */
29
17
  tokenType: {
30
18
  description: string;
31
19
  type: string;
32
20
  defaultValue: string;
33
21
  };
34
- /**
35
- * #slot
36
- */
37
22
  domains: {
38
23
  description: string;
39
24
  type: string;
@@ -2,56 +2,34 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BaseInternetAccountConfig = void 0;
4
4
  const configuration_1 = require("../../configuration");
5
- /**
6
- * #config BaseInternetAccount
7
- * the "base" internet account type
8
- */
9
- function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
5
+ function x() { }
10
6
  exports.BaseInternetAccountConfig = (0, configuration_1.ConfigurationSchema)('InternetAccount', {
11
- /**
12
- * #slot
13
- */
14
7
  name: {
15
8
  description: 'descriptive name of the internet account',
16
9
  type: 'string',
17
10
  defaultValue: '',
18
11
  },
19
- /**
20
- * #slot
21
- */
22
12
  description: {
23
13
  description: 'a description of the internet account',
24
14
  type: 'string',
25
15
  defaultValue: '',
26
16
  },
27
- /**
28
- * #slot
29
- */
30
17
  authHeader: {
31
18
  description: 'request header for credentials',
32
19
  type: 'string',
33
20
  defaultValue: 'Authorization',
34
21
  },
35
- /**
36
- * #slot
37
- */
38
22
  tokenType: {
39
23
  description: 'a custom name for a token to include in the header',
40
24
  type: 'string',
41
25
  defaultValue: '',
42
26
  },
43
- /**
44
- * #slot
45
- */
46
27
  domains: {
47
28
  description: 'array of valid domains the url can contain to use this account',
48
29
  type: 'stringArray',
49
30
  defaultValue: [],
50
31
  },
51
32
  }, {
52
- /**
53
- * #identifier
54
- */
55
33
  explicitIdentifier: 'internetAccountId',
56
34
  explicitlyTyped: true,
57
35
  });
@@ -1,109 +1,64 @@
1
- import { Instance } from 'mobx-state-tree';
2
- import PluginManager from '../../PluginManager';
3
- /**
4
- * #config BaseTrack
5
- */
1
+ import type PluginManager from '../../PluginManager';
2
+ import type { Instance } from 'mobx-state-tree';
6
3
  export declare function createBaseTrackConfig(pluginManager: PluginManager): import("../../configuration/configurationSchema").ConfigurationSchemaType<{
7
- /**
8
- * #slot
9
- */
10
4
  name: {
11
5
  description: string;
12
6
  type: string;
13
7
  defaultValue: string;
14
8
  };
15
- /**
16
- * #slot
17
- */
18
9
  assemblyNames: {
19
10
  description: string;
20
11
  type: string;
21
12
  defaultValue: string[];
22
13
  };
23
- /**
24
- * #slot
25
- */
26
14
  description: {
27
15
  description: string;
28
16
  type: string;
29
17
  defaultValue: string;
30
18
  };
31
- /**
32
- * #slot
33
- */
34
19
  category: {
35
20
  description: string;
36
21
  type: string;
37
22
  defaultValue: never[];
38
23
  };
39
- /**
40
- * #slot
41
- */
42
24
  metadata: {
43
25
  type: string;
44
26
  description: string;
45
27
  defaultValue: {};
46
28
  };
47
- /**
48
- * #slot
49
- */
50
29
  adapter: import("mobx-state-tree").IAnyModelType;
51
30
  textSearching: import("../../configuration/configurationSchema").ConfigurationSchemaType<{
52
- /**
53
- * #slot textSearching.indexedAttributes
54
- */
55
31
  indexingAttributes: {
56
32
  type: string;
57
33
  description: string;
58
34
  defaultValue: string[];
59
35
  };
60
- /**
61
- * #slot textSearching.indexingFeatureTypesToExclude
62
- */
63
36
  indexingFeatureTypesToExclude: {
64
37
  type: string;
65
38
  description: string;
66
39
  defaultValue: string[];
67
40
  };
68
- /**
69
- * #slot textSearching.textSearchAdapter
70
- */
71
41
  textSearchAdapter: import("mobx-state-tree").IAnyModelType;
72
42
  }, import("../../configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
73
- /**
74
- * #slot
75
- */
76
43
  displays: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
77
44
  formatDetails: import("../../configuration/configurationSchema").ConfigurationSchemaType<{
78
- /**
79
- * #slot formatDetails.feature
80
- */
81
45
  feature: {
82
46
  type: string;
83
47
  description: string;
84
48
  defaultValue: {};
85
49
  contextVariable: string[];
86
50
  };
87
- /**
88
- * #slot formatDetails.subfeatures
89
- */
90
51
  subfeatures: {
91
52
  type: string;
92
53
  description: string;
93
54
  defaultValue: {};
94
55
  contextVariable: string[];
95
56
  };
96
- /**
97
- * #slot formatDetails.depth
98
- */
99
57
  depth: {
100
58
  type: string;
101
59
  defaultValue: number;
102
60
  description: string;
103
61
  };
104
- /**
105
- * #slot formatDetails.maxDepth
106
- */
107
62
  maxDepth: {
108
63
  type: string;
109
64
  defaultValue: number;
@@ -111,18 +66,12 @@ export declare function createBaseTrackConfig(pluginManager: PluginManager): imp
111
66
  };
112
67
  }, import("../../configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
113
68
  formatAbout: import("../../configuration/configurationSchema").ConfigurationSchemaType<{
114
- /**
115
- * #slot formatAbout.config
116
- */
117
69
  config: {
118
70
  type: string;
119
71
  description: string;
120
72
  defaultValue: {};
121
73
  contextVariable: string[];
122
74
  };
123
- /**
124
- * #slot formatAbout.hideUris
125
- */
126
75
  hideUris: {
127
76
  type: string;
128
77
  defaultValue: boolean;