@apollo-annotation/jbrowse-plugin-apollo 0.3.11 → 0.3.13

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 (395) hide show
  1. package/dist/ApolloInternetAccount/components/AuthTypeSelector.d.ts +6 -0
  2. package/dist/ApolloInternetAccount/components/AuthTypeSelector.d.ts.map +1 -0
  3. package/dist/ApolloInternetAccount/components/LoginButtons.d.ts +5 -0
  4. package/dist/ApolloInternetAccount/components/LoginButtons.d.ts.map +1 -0
  5. package/dist/ApolloInternetAccount/components/LoginIcons.d.ts +4 -0
  6. package/dist/ApolloInternetAccount/components/LoginIcons.d.ts.map +1 -0
  7. package/dist/ApolloInternetAccount/index.d.ts +3 -0
  8. package/dist/ApolloInternetAccount/index.d.ts.map +1 -0
  9. package/dist/ApolloJobModel.d.ts +53 -0
  10. package/dist/ApolloJobModel.d.ts.map +1 -0
  11. package/dist/ApolloRefNameAliasAdapter/ApolloRefNameAliasAdapter.d.ts +12 -0
  12. package/dist/ApolloRefNameAliasAdapter/ApolloRefNameAliasAdapter.d.ts.map +1 -0
  13. package/dist/ApolloRefNameAliasAdapter/index.d.ts +3 -0
  14. package/dist/ApolloRefNameAliasAdapter/index.d.ts.map +1 -0
  15. package/dist/ApolloSequenceAdapter/ApolloSequenceAdapter.d.ts +27 -0
  16. package/dist/ApolloSequenceAdapter/ApolloSequenceAdapter.d.ts.map +1 -0
  17. package/dist/ApolloSequenceAdapter/index.d.ts +3 -0
  18. package/dist/ApolloSequenceAdapter/index.d.ts.map +1 -0
  19. package/dist/ApolloTextSearchAdapter/ApolloTextSearchAdapter.d.ts +13 -0
  20. package/dist/ApolloTextSearchAdapter/ApolloTextSearchAdapter.d.ts.map +1 -0
  21. package/dist/ApolloTextSearchAdapter/index.d.ts +3 -0
  22. package/dist/ApolloTextSearchAdapter/index.d.ts.map +1 -0
  23. package/dist/BackendDrivers/BackendDriver.d.ts +26 -0
  24. package/dist/BackendDrivers/BackendDriver.d.ts.map +1 -0
  25. package/dist/BackendDrivers/CollaborationServerDriver.d.ts +206 -0
  26. package/dist/BackendDrivers/CollaborationServerDriver.d.ts.map +1 -0
  27. package/dist/BackendDrivers/DesktopFileDriver.d.ts +160 -0
  28. package/dist/BackendDrivers/DesktopFileDriver.d.ts.map +1 -0
  29. package/dist/BackendDrivers/InMemoryFileDriver.d.ts +162 -0
  30. package/dist/BackendDrivers/InMemoryFileDriver.d.ts.map +1 -0
  31. package/dist/BackendDrivers/index.d.ts +5 -0
  32. package/dist/BackendDrivers/index.d.ts.map +1 -0
  33. package/dist/ChangeManager.d.ts +24 -0
  34. package/dist/ChangeManager.d.ts.map +1 -0
  35. package/dist/FeatureDetailsWidget/ApolloFeatureDetailsWidget.d.ts +6 -0
  36. package/dist/FeatureDetailsWidget/ApolloFeatureDetailsWidget.d.ts.map +1 -0
  37. package/dist/FeatureDetailsWidget/ApolloTranscriptDetailsWidget.d.ts +12 -0
  38. package/dist/FeatureDetailsWidget/ApolloTranscriptDetailsWidget.d.ts.map +1 -0
  39. package/dist/FeatureDetailsWidget/AttributeKey.d.ts +4 -0
  40. package/dist/FeatureDetailsWidget/AttributeKey.d.ts.map +1 -0
  41. package/dist/FeatureDetailsWidget/AttributeKeySelector.d.ts +6 -0
  42. package/dist/FeatureDetailsWidget/AttributeKeySelector.d.ts.map +1 -0
  43. package/dist/FeatureDetailsWidget/Attributes.d.ts +9 -0
  44. package/dist/FeatureDetailsWidget/Attributes.d.ts.map +1 -0
  45. package/dist/FeatureDetailsWidget/BasicInformation.d.ts +8 -0
  46. package/dist/FeatureDetailsWidget/BasicInformation.d.ts.map +1 -0
  47. package/dist/FeatureDetailsWidget/DefaultAttributeEditor.d.ts +9 -0
  48. package/dist/FeatureDetailsWidget/DefaultAttributeEditor.d.ts.map +1 -0
  49. package/dist/FeatureDetailsWidget/DefaultAttributeViewer.d.ts +5 -0
  50. package/dist/FeatureDetailsWidget/DefaultAttributeViewer.d.ts.map +1 -0
  51. package/dist/FeatureDetailsWidget/FeatureDetailsNavigation.d.ts +7 -0
  52. package/dist/FeatureDetailsWidget/FeatureDetailsNavigation.d.ts.map +1 -0
  53. package/dist/FeatureDetailsWidget/NumberTextField.d.ts +8 -0
  54. package/dist/FeatureDetailsWidget/NumberTextField.d.ts.map +1 -0
  55. package/dist/FeatureDetailsWidget/Sequence.d.ts +10 -0
  56. package/dist/FeatureDetailsWidget/Sequence.d.ts.map +1 -0
  57. package/dist/FeatureDetailsWidget/StringTextField.d.ts +8 -0
  58. package/dist/FeatureDetailsWidget/StringTextField.d.ts.map +1 -0
  59. package/dist/FeatureDetailsWidget/TranscriptSequence.d.ts +10 -0
  60. package/dist/FeatureDetailsWidget/TranscriptSequence.d.ts.map +1 -0
  61. package/dist/FeatureDetailsWidget/TranscriptWidgetEditLocation.d.ts +9 -0
  62. package/dist/FeatureDetailsWidget/TranscriptWidgetEditLocation.d.ts.map +1 -0
  63. package/dist/FeatureDetailsWidget/TranscriptWidgetSummary.d.ts +6 -0
  64. package/dist/FeatureDetailsWidget/TranscriptWidgetSummary.d.ts.map +1 -0
  65. package/dist/FeatureDetailsWidget/index.d.ts +5 -0
  66. package/dist/FeatureDetailsWidget/index.d.ts.map +1 -0
  67. package/dist/FeatureDetailsWidget/model.d.ts +123 -0
  68. package/dist/FeatureDetailsWidget/model.d.ts.map +1 -0
  69. package/dist/LinearApolloDisplay/components/CheckResultWarnings.d.ts +5 -0
  70. package/dist/LinearApolloDisplay/components/CheckResultWarnings.d.ts.map +1 -0
  71. package/dist/LinearApolloDisplay/components/LinearApolloDisplay.d.ts +7 -0
  72. package/dist/LinearApolloDisplay/components/LinearApolloDisplay.d.ts.map +1 -0
  73. package/dist/LinearApolloDisplay/components/index.d.ts +2 -0
  74. package/dist/LinearApolloDisplay/components/index.d.ts.map +1 -0
  75. package/dist/LinearApolloDisplay/glyphs/BoxGlyph.d.ts +4 -0
  76. package/dist/LinearApolloDisplay/glyphs/BoxGlyph.d.ts.map +1 -0
  77. package/dist/LinearApolloDisplay/glyphs/GeneGlyph.d.ts +3 -0
  78. package/dist/LinearApolloDisplay/glyphs/GeneGlyph.d.ts.map +1 -0
  79. package/dist/LinearApolloDisplay/glyphs/GenericChildGlyph.d.ts +3 -0
  80. package/dist/LinearApolloDisplay/glyphs/GenericChildGlyph.d.ts.map +1 -0
  81. package/dist/LinearApolloDisplay/glyphs/Glyph.d.ts +26 -0
  82. package/dist/LinearApolloDisplay/glyphs/Glyph.d.ts.map +1 -0
  83. package/dist/LinearApolloDisplay/glyphs/index.d.ts +4 -0
  84. package/dist/LinearApolloDisplay/glyphs/index.d.ts.map +1 -0
  85. package/dist/LinearApolloDisplay/glyphs/util.d.ts +12 -0
  86. package/dist/LinearApolloDisplay/glyphs/util.d.ts.map +1 -0
  87. package/dist/LinearApolloDisplay/index.d.ts +3 -0
  88. package/dist/LinearApolloDisplay/index.d.ts.map +1 -0
  89. package/dist/LinearApolloDisplay/stateModel/base.d.ts +254 -0
  90. package/dist/LinearApolloDisplay/stateModel/base.d.ts.map +1 -0
  91. package/dist/LinearApolloDisplay/stateModel/index.d.ts +349 -0
  92. package/dist/LinearApolloDisplay/stateModel/index.d.ts.map +1 -0
  93. package/dist/LinearApolloDisplay/stateModel/layouts.d.ts +273 -0
  94. package/dist/LinearApolloDisplay/stateModel/layouts.d.ts.map +1 -0
  95. package/dist/LinearApolloDisplay/stateModel/mouseEvents.d.ts +656 -0
  96. package/dist/LinearApolloDisplay/stateModel/mouseEvents.d.ts.map +1 -0
  97. package/dist/LinearApolloDisplay/stateModel/rendering.d.ts +300 -0
  98. package/dist/LinearApolloDisplay/stateModel/rendering.d.ts.map +1 -0
  99. package/dist/LinearApolloDisplay/types.d.ts +2 -0
  100. package/dist/LinearApolloDisplay/types.d.ts.map +1 -0
  101. package/dist/LinearApolloReferenceSequenceDisplay/components/LinearApolloReferenceSequenceDisplay.d.ts +7 -0
  102. package/dist/LinearApolloReferenceSequenceDisplay/components/LinearApolloReferenceSequenceDisplay.d.ts.map +1 -0
  103. package/dist/LinearApolloReferenceSequenceDisplay/components/index.d.ts +2 -0
  104. package/dist/LinearApolloReferenceSequenceDisplay/components/index.d.ts.map +1 -0
  105. package/dist/LinearApolloReferenceSequenceDisplay/drawSequenceOverlay.d.ts +6 -0
  106. package/dist/LinearApolloReferenceSequenceDisplay/drawSequenceOverlay.d.ts.map +1 -0
  107. package/dist/LinearApolloReferenceSequenceDisplay/drawSequenceTrack.d.ts +5 -0
  108. package/dist/LinearApolloReferenceSequenceDisplay/drawSequenceTrack.d.ts.map +1 -0
  109. package/dist/LinearApolloReferenceSequenceDisplay/index.d.ts +4 -0
  110. package/dist/LinearApolloReferenceSequenceDisplay/index.d.ts.map +1 -0
  111. package/dist/LinearApolloReferenceSequenceDisplay/stateModel/base.d.ts +236 -0
  112. package/dist/LinearApolloReferenceSequenceDisplay/stateModel/base.d.ts.map +1 -0
  113. package/dist/LinearApolloReferenceSequenceDisplay/stateModel/index.d.ts +245 -0
  114. package/dist/LinearApolloReferenceSequenceDisplay/stateModel/index.d.ts.map +1 -0
  115. package/dist/LinearApolloReferenceSequenceDisplay/stateModel/rendering.d.ts +246 -0
  116. package/dist/LinearApolloReferenceSequenceDisplay/stateModel/rendering.d.ts.map +1 -0
  117. package/dist/LinearApolloSixFrameDisplay/components/LinearApolloSixFrameDisplay.d.ts +7 -0
  118. package/dist/LinearApolloSixFrameDisplay/components/LinearApolloSixFrameDisplay.d.ts.map +1 -0
  119. package/dist/LinearApolloSixFrameDisplay/components/TrackLines.d.ts +8 -0
  120. package/dist/LinearApolloSixFrameDisplay/components/TrackLines.d.ts.map +1 -0
  121. package/dist/LinearApolloSixFrameDisplay/components/index.d.ts +3 -0
  122. package/dist/LinearApolloSixFrameDisplay/components/index.d.ts.map +1 -0
  123. package/dist/LinearApolloSixFrameDisplay/glyphs/GeneGlyph.d.ts +3 -0
  124. package/dist/LinearApolloSixFrameDisplay/glyphs/GeneGlyph.d.ts.map +1 -0
  125. package/dist/LinearApolloSixFrameDisplay/glyphs/Glyph.d.ts +20 -0
  126. package/dist/LinearApolloSixFrameDisplay/glyphs/Glyph.d.ts.map +1 -0
  127. package/dist/LinearApolloSixFrameDisplay/glyphs/index.d.ts +2 -0
  128. package/dist/LinearApolloSixFrameDisplay/glyphs/index.d.ts.map +1 -0
  129. package/dist/LinearApolloSixFrameDisplay/index.d.ts +3 -0
  130. package/dist/LinearApolloSixFrameDisplay/index.d.ts.map +1 -0
  131. package/dist/LinearApolloSixFrameDisplay/stateModel/base.d.ts +257 -0
  132. package/dist/LinearApolloSixFrameDisplay/stateModel/base.d.ts.map +1 -0
  133. package/dist/LinearApolloSixFrameDisplay/stateModel/index.d.ts +355 -0
  134. package/dist/LinearApolloSixFrameDisplay/stateModel/index.d.ts.map +1 -0
  135. package/dist/LinearApolloSixFrameDisplay/stateModel/layouts.d.ts +283 -0
  136. package/dist/LinearApolloSixFrameDisplay/stateModel/layouts.d.ts.map +1 -0
  137. package/dist/LinearApolloSixFrameDisplay/stateModel/mouseEvents.d.ts +668 -0
  138. package/dist/LinearApolloSixFrameDisplay/stateModel/mouseEvents.d.ts.map +1 -0
  139. package/dist/LinearApolloSixFrameDisplay/stateModel/rendering.d.ts +306 -0
  140. package/dist/LinearApolloSixFrameDisplay/stateModel/rendering.d.ts.map +1 -0
  141. package/dist/LinearApolloSixFrameDisplay/types.d.ts +2 -0
  142. package/dist/LinearApolloSixFrameDisplay/types.d.ts.map +1 -0
  143. package/dist/OntologyManager/OntologyStore/fulltext-stopwords.d.ts +8 -0
  144. package/dist/OntologyManager/OntologyStore/fulltext-stopwords.d.ts.map +1 -0
  145. package/dist/OntologyManager/OntologyStore/fulltext.d.ts +27 -0
  146. package/dist/OntologyManager/OntologyStore/fulltext.d.ts.map +1 -0
  147. package/dist/OntologyManager/OntologyStore/index.d.ts +93 -0
  148. package/dist/OntologyManager/OntologyStore/index.d.ts.map +1 -0
  149. package/dist/OntologyManager/OntologyStore/indexeddb-schema.d.ts +71 -0
  150. package/dist/OntologyManager/OntologyStore/indexeddb-schema.d.ts.map +1 -0
  151. package/dist/OntologyManager/OntologyStore/indexeddb-storage.d.ts +11 -0
  152. package/dist/OntologyManager/OntologyStore/indexeddb-storage.d.ts.map +1 -0
  153. package/dist/OntologyManager/OntologyStore/obo-graph-json-schema.d.ts +107 -0
  154. package/dist/OntologyManager/OntologyStore/obo-graph-json-schema.d.ts.map +1 -0
  155. package/dist/OntologyManager/OntologyStore/prefixes.d.ts +20 -0
  156. package/dist/OntologyManager/OntologyStore/prefixes.d.ts.map +1 -0
  157. package/dist/OntologyManager/util.d.ts +4 -0
  158. package/dist/OntologyManager/util.d.ts.map +1 -0
  159. package/dist/TabularEditor/HybridGrid/ChangeHandling.d.ts +6 -0
  160. package/dist/TabularEditor/HybridGrid/ChangeHandling.d.ts.map +1 -0
  161. package/dist/TabularEditor/HybridGrid/Feature.d.ts +13 -0
  162. package/dist/TabularEditor/HybridGrid/Feature.d.ts.map +1 -0
  163. package/dist/TabularEditor/HybridGrid/FeatureAttributes.d.ts +6 -0
  164. package/dist/TabularEditor/HybridGrid/FeatureAttributes.d.ts.map +1 -0
  165. package/dist/TabularEditor/HybridGrid/Highlight.d.ts +6 -0
  166. package/dist/TabularEditor/HybridGrid/Highlight.d.ts.map +1 -0
  167. package/dist/TabularEditor/HybridGrid/HybridGrid.d.ts +14 -0
  168. package/dist/TabularEditor/HybridGrid/HybridGrid.d.ts.map +1 -0
  169. package/dist/TabularEditor/HybridGrid/NumberCell.d.ts +8 -0
  170. package/dist/TabularEditor/HybridGrid/NumberCell.d.ts.map +1 -0
  171. package/dist/TabularEditor/HybridGrid/ToolBar.d.ts +5 -0
  172. package/dist/TabularEditor/HybridGrid/ToolBar.d.ts.map +1 -0
  173. package/dist/TabularEditor/HybridGrid/featureContextMenuItems.d.ts +11 -0
  174. package/dist/TabularEditor/HybridGrid/featureContextMenuItems.d.ts.map +1 -0
  175. package/dist/TabularEditor/HybridGrid/index.d.ts +2 -0
  176. package/dist/TabularEditor/HybridGrid/index.d.ts.map +1 -0
  177. package/dist/TabularEditor/TabularEditorPane.d.ts +5 -0
  178. package/dist/TabularEditor/TabularEditorPane.d.ts.map +1 -0
  179. package/dist/TabularEditor/index.d.ts +3 -0
  180. package/dist/TabularEditor/index.d.ts.map +1 -0
  181. package/dist/TabularEditor/model.d.ts +17 -0
  182. package/dist/TabularEditor/model.d.ts.map +1 -0
  183. package/dist/TabularEditor/types.d.ts +4 -0
  184. package/dist/TabularEditor/types.d.ts.map +1 -0
  185. package/dist/components/AddAssembly.d.ts +10 -0
  186. package/dist/components/AddAssembly.d.ts.map +1 -0
  187. package/dist/components/AddAssemblyAliases.d.ts +10 -0
  188. package/dist/components/AddAssemblyAliases.d.ts.map +1 -0
  189. package/dist/components/AddChildFeature.d.ts +13 -0
  190. package/dist/components/AddChildFeature.d.ts.map +1 -0
  191. package/dist/components/AddFeature.d.ts +12 -0
  192. package/dist/components/AddFeature.d.ts.map +1 -0
  193. package/dist/components/AddRefSeqAliases.d.ts +10 -0
  194. package/dist/components/AddRefSeqAliases.d.ts.map +1 -0
  195. package/dist/components/CopyFeature.d.ts +13 -0
  196. package/dist/components/CopyFeature.d.ts.map +1 -0
  197. package/dist/components/CreateApolloAnnotation.d.ts +20 -0
  198. package/dist/components/CreateApolloAnnotation.d.ts.map +1 -0
  199. package/dist/components/DeleteAssembly.d.ts +10 -0
  200. package/dist/components/DeleteAssembly.d.ts.map +1 -0
  201. package/dist/components/DeleteFeature.d.ts +15 -0
  202. package/dist/components/DeleteFeature.d.ts.map +1 -0
  203. package/dist/components/Dialog.d.ts +7 -0
  204. package/dist/components/Dialog.d.ts.map +1 -0
  205. package/dist/components/DownloadGFF3.d.ts +8 -0
  206. package/dist/components/DownloadGFF3.d.ts.map +1 -0
  207. package/dist/components/DuplicateTranscript.d.ts +15 -0
  208. package/dist/components/DuplicateTranscript.d.ts.map +1 -0
  209. package/dist/components/EditZoomThresholdDialog.d.ts +11 -0
  210. package/dist/components/EditZoomThresholdDialog.d.ts.map +1 -0
  211. package/dist/components/FilterFeatures.d.ts +10 -0
  212. package/dist/components/FilterFeatures.d.ts.map +1 -0
  213. package/dist/components/FilterTranscripts.d.ts +10 -0
  214. package/dist/components/FilterTranscripts.d.ts.map +1 -0
  215. package/dist/components/ImportFeatures.d.ts +10 -0
  216. package/dist/components/ImportFeatures.d.ts.map +1 -0
  217. package/dist/components/LogOut.d.ts +8 -0
  218. package/dist/components/LogOut.d.ts.map +1 -0
  219. package/dist/components/ManageChecks.d.ts +8 -0
  220. package/dist/components/ManageChecks.d.ts.map +1 -0
  221. package/dist/components/ManageUsers.d.ts +10 -0
  222. package/dist/components/ManageUsers.d.ts.map +1 -0
  223. package/dist/components/MergeExons.d.ts +15 -0
  224. package/dist/components/MergeExons.d.ts.map +1 -0
  225. package/dist/components/MergeTranscripts.d.ts +15 -0
  226. package/dist/components/MergeTranscripts.d.ts.map +1 -0
  227. package/dist/components/OntologyTermAutocomplete.d.ts +25 -0
  228. package/dist/components/OntologyTermAutocomplete.d.ts.map +1 -0
  229. package/dist/components/OntologyTermMultiSelect.d.ts +12 -0
  230. package/dist/components/OntologyTermMultiSelect.d.ts.map +1 -0
  231. package/dist/components/OpenLocalFile.d.ts +15 -0
  232. package/dist/components/OpenLocalFile.d.ts.map +1 -0
  233. package/dist/components/SplitExon.d.ts +15 -0
  234. package/dist/components/SplitExon.d.ts.map +1 -0
  235. package/dist/components/ViewChangeLog.d.ts +8 -0
  236. package/dist/components/ViewChangeLog.d.ts.map +1 -0
  237. package/dist/components/ViewCheckResults.d.ts +8 -0
  238. package/dist/components/ViewCheckResults.d.ts.map +1 -0
  239. package/dist/components/index.d.ts +21 -0
  240. package/dist/components/index.d.ts.map +1 -0
  241. package/dist/extensions/annotationFromJBrowseFeature.d.ts +6 -0
  242. package/dist/extensions/annotationFromJBrowseFeature.d.ts.map +1 -0
  243. package/dist/extensions/annotationFromPileup.d.ts +3 -0
  244. package/dist/extensions/annotationFromPileup.d.ts.map +1 -0
  245. package/dist/extensions/index.d.ts +3 -0
  246. package/dist/extensions/index.d.ts.map +1 -0
  247. package/dist/index.esm.js +843 -1330
  248. package/dist/index.esm.js.map +1 -1
  249. package/dist/jbrowse-plugin-apollo.cjs.development.js +919 -1455
  250. package/dist/jbrowse-plugin-apollo.cjs.development.js.map +1 -1
  251. package/dist/jbrowse-plugin-apollo.cjs.production.min.js +1 -1
  252. package/dist/jbrowse-plugin-apollo.cjs.production.min.js.map +1 -1
  253. package/dist/jbrowse-plugin-apollo.umd.development.js +46351 -63687
  254. package/dist/jbrowse-plugin-apollo.umd.development.js.map +1 -1
  255. package/dist/jbrowse-plugin-apollo.umd.production.min.js +1 -1
  256. package/dist/jbrowse-plugin-apollo.umd.production.min.js.map +1 -1
  257. package/dist/makeDisplayComponent.d.ts +9 -0
  258. package/dist/makeDisplayComponent.d.ts.map +1 -0
  259. package/dist/menus/index.d.ts +2 -0
  260. package/dist/menus/index.d.ts.map +1 -0
  261. package/dist/menus/topLevelMenu.d.ts +3 -0
  262. package/dist/menus/topLevelMenu.d.ts.map +1 -0
  263. package/dist/menus/topLevelMenuAdmin.d.ts +3 -0
  264. package/dist/menus/topLevelMenuAdmin.d.ts.map +1 -0
  265. package/dist/session/index.d.ts +2 -0
  266. package/dist/session/index.d.ts.map +1 -0
  267. package/dist/types.d.ts +10 -0
  268. package/dist/types.d.ts.map +1 -0
  269. package/dist/util/annotationFeatureUtils.d.ts +7 -0
  270. package/dist/util/annotationFeatureUtils.d.ts.map +1 -0
  271. package/dist/util/copyToClipboard.d.ts +2 -0
  272. package/dist/util/copyToClipboard.d.ts.map +1 -0
  273. package/dist/util/glyphUtils.d.ts +31 -0
  274. package/dist/util/glyphUtils.d.ts.map +1 -0
  275. package/dist/util/index.d.ts +10 -0
  276. package/dist/util/index.d.ts.map +1 -0
  277. package/dist/util/loadAssemblyIntoClient.d.ts +5 -0
  278. package/dist/util/loadAssemblyIntoClient.d.ts.map +1 -0
  279. package/dist/util/mouseEventsUtils.d.ts +25 -0
  280. package/dist/util/mouseEventsUtils.d.ts.map +1 -0
  281. package/package.json +48 -25
  282. package/src/ApolloInternetAccount/components/AuthTypeSelector.tsx +7 -2
  283. package/src/ApolloInternetAccount/components/LoginButtons.tsx +1 -1
  284. package/src/ApolloInternetAccount/configSchema.ts +1 -1
  285. package/src/ApolloInternetAccount/model.ts +13 -6
  286. package/src/ApolloJobModel.ts +3 -3
  287. package/src/ApolloRefNameAliasAdapter/ApolloRefNameAliasAdapter.ts +2 -2
  288. package/src/ApolloSequenceAdapter/ApolloSequenceAdapter.ts +2 -2
  289. package/src/ApolloTextSearchAdapter/ApolloTextSearchAdapter.ts +28 -5
  290. package/src/BackendDrivers/BackendDriver.ts +8 -8
  291. package/src/BackendDrivers/CollaborationServerDriver.ts +6 -6
  292. package/src/BackendDrivers/DesktopFileDriver.ts +4 -4
  293. package/src/BackendDrivers/InMemoryFileDriver.ts +5 -8
  294. package/src/ChangeManager.ts +8 -3
  295. package/src/FeatureDetailsWidget/ApolloFeatureDetailsWidget.tsx +3 -3
  296. package/src/FeatureDetailsWidget/ApolloTranscriptDetailsWidget.tsx +7 -7
  297. package/src/FeatureDetailsWidget/AttributeKey.tsx +1 -1
  298. package/src/FeatureDetailsWidget/AttributeKeySelector.tsx +1 -1
  299. package/src/FeatureDetailsWidget/Attributes.tsx +4 -4
  300. package/src/FeatureDetailsWidget/BasicInformation.tsx +3 -3
  301. package/src/FeatureDetailsWidget/DefaultAttributeEditor.tsx +1 -1
  302. package/src/FeatureDetailsWidget/FeatureDetailsNavigation.tsx +2 -2
  303. package/src/FeatureDetailsWidget/Sequence.tsx +3 -3
  304. package/src/FeatureDetailsWidget/TranscriptSequence.tsx +2 -2
  305. package/src/FeatureDetailsWidget/TranscriptWidgetEditLocation.tsx +3 -6
  306. package/src/FeatureDetailsWidget/TranscriptWidgetSummary.tsx +1 -1
  307. package/src/FeatureDetailsWidget/model.ts +3 -3
  308. package/src/LinearApolloDisplay/components/CheckResultWarnings.tsx +2 -2
  309. package/src/LinearApolloDisplay/components/LinearApolloDisplay.tsx +6 -4
  310. package/src/LinearApolloDisplay/glyphs/BoxGlyph.ts +7 -7
  311. package/src/LinearApolloDisplay/glyphs/GeneGlyph.ts +56 -30
  312. package/src/LinearApolloDisplay/glyphs/GenericChildGlyph.ts +6 -6
  313. package/src/LinearApolloDisplay/glyphs/Glyph.ts +7 -7
  314. package/src/LinearApolloDisplay/glyphs/util.ts +2 -2
  315. package/src/LinearApolloDisplay/stateModel/base.ts +17 -8
  316. package/src/LinearApolloDisplay/stateModel/index.ts +2 -2
  317. package/src/LinearApolloDisplay/stateModel/layouts.ts +4 -4
  318. package/src/LinearApolloDisplay/stateModel/mouseEvents.ts +6 -6
  319. package/src/LinearApolloDisplay/stateModel/rendering.ts +3 -3
  320. package/src/LinearApolloReferenceSequenceDisplay/components/LinearApolloReferenceSequenceDisplay.tsx +4 -2
  321. package/src/LinearApolloReferenceSequenceDisplay/drawSequenceOverlay.ts +4 -4
  322. package/src/LinearApolloReferenceSequenceDisplay/drawSequenceTrack.ts +3 -3
  323. package/src/LinearApolloReferenceSequenceDisplay/stateModel/base.ts +11 -8
  324. package/src/LinearApolloReferenceSequenceDisplay/stateModel/index.ts +2 -2
  325. package/src/LinearApolloReferenceSequenceDisplay/stateModel/rendering.ts +2 -2
  326. package/src/LinearApolloSixFrameDisplay/components/LinearApolloSixFrameDisplay.tsx +17 -9
  327. package/src/LinearApolloSixFrameDisplay/components/TrackLines.tsx +1 -1
  328. package/src/LinearApolloSixFrameDisplay/glyphs/GeneGlyph.ts +36 -23
  329. package/src/LinearApolloSixFrameDisplay/glyphs/Glyph.ts +6 -6
  330. package/src/LinearApolloSixFrameDisplay/stateModel/base.ts +17 -8
  331. package/src/LinearApolloSixFrameDisplay/stateModel/index.ts +2 -2
  332. package/src/LinearApolloSixFrameDisplay/stateModel/layouts.ts +12 -8
  333. package/src/LinearApolloSixFrameDisplay/stateModel/mouseEvents.ts +11 -10
  334. package/src/LinearApolloSixFrameDisplay/stateModel/rendering.ts +3 -3
  335. package/src/OntologyManager/OntologyStore/fulltext.test.ts +1 -1
  336. package/src/OntologyManager/OntologyStore/fulltext.ts +11 -4
  337. package/src/OntologyManager/OntologyStore/index.test.ts +3 -0
  338. package/src/OntologyManager/OntologyStore/indexeddb-schema.ts +6 -6
  339. package/src/OntologyManager/OntologyStore/indexeddb-storage.ts +2 -1
  340. package/src/OntologyManager/index.ts +4 -4
  341. package/src/OntologyManager/util.ts +1 -1
  342. package/src/TabularEditor/HybridGrid/ChangeHandling.ts +2 -2
  343. package/src/TabularEditor/HybridGrid/Feature.tsx +6 -6
  344. package/src/TabularEditor/HybridGrid/FeatureAttributes.tsx +2 -2
  345. package/src/TabularEditor/HybridGrid/Highlight.tsx +1 -1
  346. package/src/TabularEditor/HybridGrid/HybridGrid.tsx +2 -2
  347. package/src/TabularEditor/HybridGrid/NumberCell.tsx +1 -1
  348. package/src/TabularEditor/HybridGrid/ToolBar.tsx +3 -2
  349. package/src/TabularEditor/HybridGrid/featureContextMenuItems.ts +26 -4
  350. package/src/TabularEditor/TabularEditorPane.tsx +1 -1
  351. package/src/TabularEditor/model.ts +2 -2
  352. package/src/TabularEditor/types.ts +2 -2
  353. package/src/components/AddAssembly.tsx +61 -42
  354. package/src/components/AddAssemblyAliases.tsx +5 -5
  355. package/src/components/AddChildFeature.tsx +3 -3
  356. package/src/components/AddFeature.tsx +4 -4
  357. package/src/components/AddRefSeqAliases.tsx +7 -7
  358. package/src/components/CopyFeature.tsx +8 -8
  359. package/src/components/CreateApolloAnnotation.tsx +5 -5
  360. package/src/components/DeleteAssembly.tsx +8 -8
  361. package/src/components/DeleteFeature.tsx +4 -4
  362. package/src/components/Dialog.tsx +1 -1
  363. package/src/components/DownloadGFF3.tsx +8 -8
  364. package/src/components/DuplicateTranscript.tsx +132 -0
  365. package/src/components/FilterFeatures.tsx +1 -1
  366. package/src/components/FilterTranscripts.tsx +1 -1
  367. package/src/components/ImportFeatures.tsx +51 -33
  368. package/src/components/LogOut.tsx +4 -4
  369. package/src/components/ManageChecks.tsx +8 -8
  370. package/src/components/ManageUsers.tsx +18 -26
  371. package/src/components/MergeExons.tsx +4 -4
  372. package/src/components/MergeTranscripts.tsx +4 -4
  373. package/src/components/OntologyTermAutocomplete.tsx +14 -4
  374. package/src/components/OntologyTermMultiSelect.tsx +12 -5
  375. package/src/components/OpenLocalFile.tsx +2 -2
  376. package/src/components/SplitExon.tsx +6 -6
  377. package/src/components/ViewChangeLog.tsx +8 -8
  378. package/src/components/ViewCheckResults.tsx +4 -4
  379. package/src/components/index.ts +1 -0
  380. package/src/config.ts +1 -1
  381. package/src/extensions/annotationFromJBrowseFeature.ts +29 -24
  382. package/src/extensions/annotationFromPileup.ts +8 -6
  383. package/src/index.ts +25 -1
  384. package/src/makeDisplayComponent.tsx +8 -5
  385. package/src/menus/topLevelMenu.ts +4 -4
  386. package/src/menus/topLevelMenuAdmin.ts +4 -4
  387. package/src/session/ClientDataStore.ts +20 -15
  388. package/src/session/session.ts +30 -19
  389. package/src/types.ts +10 -4
  390. package/src/util/annotationFeatureUtils.ts +1 -1
  391. package/src/util/displayUtils.ts +3 -3
  392. package/src/util/glyphUtils.ts +10 -10
  393. package/src/util/index.ts +4 -4
  394. package/src/util/loadAssemblyIntoClient.ts +4 -4
  395. package/src/util/mouseEventsUtils.ts +2 -2
@@ -4,6 +4,7 @@
4
4
  /* eslint-disable @typescript-eslint/no-unsafe-argument */
5
5
  /* eslint-disable @typescript-eslint/no-unsafe-member-access */
6
6
  /* eslint-disable @typescript-eslint/no-unsafe-return */
7
+ import { getRoot } from '@jbrowse/mobx-state-tree'
7
8
  import {
8
9
  Button,
9
10
  DialogActions,
@@ -19,12 +20,11 @@ import {
19
20
  type GridRowsProp,
20
21
  GridToolbar,
21
22
  } from '@mui/x-data-grid'
22
- import { getRoot } from 'mobx-state-tree'
23
23
  import React, { useEffect, useState } from 'react'
24
24
 
25
- import { type ApolloInternetAccountModel } from '../ApolloInternetAccount/model'
26
- import { type ApolloSessionModel } from '../session'
27
- import { type ApolloRootModel } from '../types'
25
+ import type { ApolloInternetAccountModel } from '../ApolloInternetAccount/model'
26
+ import type { ApolloSessionModel } from '../session'
27
+ import type { ApolloRootModel } from '../types'
28
28
  import { createFetchErrorMessage } from '../util'
29
29
 
30
30
  import { Dialog } from './Dialog'
@@ -17,3 +17,4 @@ export * from './ViewChangeLog'
17
17
  export * from './AddRefSeqAliases'
18
18
  export * from './ViewCheckResults'
19
19
  export * from './SplitExon'
20
+ export * from './DuplicateTranscript'
package/src/config.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ConfigurationSchema } from '@jbrowse/core/configuration'
2
- import { types } from 'mobx-state-tree'
2
+ import { types } from '@jbrowse/mobx-state-tree'
3
3
 
4
4
  import { OntologyRecordConfiguration } from './OntologyManager'
5
5
 
@@ -3,19 +3,19 @@
3
3
  /* eslint-disable @typescript-eslint/no-unsafe-member-access */
4
4
  /* eslint-disable @typescript-eslint/no-unsafe-call */
5
5
  /* eslint-disable @typescript-eslint/no-unsafe-return */
6
- import { type AnnotationFeatureSnapshot } from '@apollo-annotation/mst'
6
+ import type { AnnotationFeatureSnapshot } from '@apollo-annotation/mst'
7
7
  import { gff3ToAnnotationFeature } from '@apollo-annotation/shared'
8
- import { type GFF3Feature } from '@gmod/gff'
9
- import { type Assembly } from '@jbrowse/core/assemblyManager/assembly'
8
+ import type { GFF3Feature } from '@gmod/gff'
9
+ import type { Assembly } from '@jbrowse/core/assemblyManager/assembly'
10
+ import type { PluggableElementType } from '@jbrowse/core/pluggableElementTypes'
10
11
  import type DisplayType from '@jbrowse/core/pluggableElementTypes/DisplayType'
11
- import type PluggableElementBase from '@jbrowse/core/pluggableElementTypes/PluggableElementBase'
12
12
  import {
13
13
  type AbstractSessionModel,
14
14
  getContainingView,
15
15
  getSession,
16
16
  } from '@jbrowse/core/util'
17
- import { type Feature } from '@jbrowse/core/util/simpleFeature'
18
- import { type LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
17
+ import type { Feature } from '@jbrowse/core/util/simpleFeature'
18
+ import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
19
19
  import AddIcon from '@mui/icons-material/Add'
20
20
 
21
21
  import { CreateApolloAnnotation } from '../components/CreateApolloAnnotation'
@@ -24,23 +24,26 @@ function simpleFeatureToGFF3Feature(
24
24
  feature: Feature,
25
25
  refSeqId: string,
26
26
  ): GFF3Feature {
27
- // eslint-disable-next-line unicorn/prefer-structured-clone
28
- const xfeature = JSON.parse(JSON.stringify(feature))
29
- const children = xfeature.subfeatures
27
+ const children = feature.get('subfeatures')
30
28
  const gff3Feature = [
31
29
  {
32
- start: (xfeature.start as number) + 1,
33
- end: xfeature.end as number,
30
+ start: feature.get('start') + 1,
31
+ end: feature.get('end'),
34
32
  seq_id: refSeqId,
35
- source: xfeature.source ?? null,
36
- type: xfeature.type ?? null,
37
- score: xfeature.score ?? null,
38
- strand: xfeature.strand ? (xfeature.strand === 1 ? '+' : '-') : null,
33
+ source: feature.get('source') ?? null,
34
+ type: feature.get('type') ?? null,
35
+ score: feature.get('score') ?? null,
36
+ strand: feature.get('strand')
37
+ ? // eslint-disable-next-line unicorn/no-nested-ternary
38
+ feature.get('strand') === 1
39
+ ? '+'
40
+ : '-'
41
+ : null,
39
42
  phase:
40
- xfeature.phase !== null || xfeature.phase !== undefined
41
- ? (xfeature.phase as string)
43
+ feature.get('phase') !== null || feature.get('phase') !== undefined
44
+ ? (feature.get('phase') as string)
42
45
  : null,
43
- attributes: convertFeatureAttributes(xfeature),
46
+ attributes: convertFeatureAttributes(feature),
44
47
  derived_features: [],
45
48
  child_features: children
46
49
  ? children.map((x: Feature) => simpleFeatureToGFF3Feature(x, refSeqId))
@@ -71,7 +74,7 @@ function convertFeatureAttributes(feature: Feature): Record<string, string[]> {
71
74
  'source',
72
75
  'score',
73
76
  ])
74
- for (const [key, value] of Object.entries(feature)) {
77
+ for (const [key, value] of Object.entries(feature.toJSON())) {
75
78
  if (defaultFields.has(key)) {
76
79
  continue
77
80
  }
@@ -81,7 +84,7 @@ function convertFeatureAttributes(feature: Feature): Record<string, string[]> {
81
84
  }
82
85
 
83
86
  export function annotationFromJBrowseFeature(
84
- pluggableElement: PluggableElementBase,
87
+ pluggableElement: PluggableElementType,
85
88
  ) {
86
89
  if (pluggableElement.name !== 'LinearBasicDisplay') {
87
90
  return pluggableElement
@@ -124,10 +127,9 @@ export function annotationFromJBrowseFeature(
124
127
  }
125
128
  return refSeqId
126
129
  },
127
- getAnnotationFeature(assembly: Assembly) {
130
+ getAnnotationFeature(assembly: Assembly, feature: Feature) {
128
131
  const refSeqId = self.getRefSeqId(assembly)
129
- const sfeature: Feature = self.contextMenuFeature.data
130
- return jbrowseFeatureToAnnotationFeature(sfeature, refSeqId)
132
+ return jbrowseFeatureToAnnotationFeature(feature, refSeqId)
131
133
  },
132
134
  }))
133
135
  .views((self) => {
@@ -156,7 +158,10 @@ export function annotationFromJBrowseFeature(
156
158
  handleClose: () => {
157
159
  doneCallback()
158
160
  },
159
- annotationFeature: self.getAnnotationFeature(assembly),
161
+ annotationFeature: self.getAnnotationFeature(
162
+ assembly,
163
+ feature,
164
+ ),
160
165
  assembly,
161
166
  refSeqId: self.getRefSeqId(assembly),
162
167
  region,
@@ -3,16 +3,18 @@
3
3
  /* eslint-disable @typescript-eslint/no-unsafe-member-access */
4
4
  /* eslint-disable @typescript-eslint/no-unsafe-call */
5
5
  /* eslint-disable @typescript-eslint/no-unsafe-return */
6
- import { type AnnotationFeatureSnapshot } from '@apollo-annotation/mst'
7
- import { type Assembly } from '@jbrowse/core/assemblyManager/assembly'
8
- import { type DisplayType } from '@jbrowse/core/pluggableElementTypes'
9
- import type PluggableElementBase from '@jbrowse/core/pluggableElementTypes/PluggableElementBase'
6
+ import type { AnnotationFeatureSnapshot } from '@apollo-annotation/mst'
7
+ import type { Assembly } from '@jbrowse/core/assemblyManager/assembly'
8
+ import type {
9
+ DisplayType,
10
+ PluggableElementType,
11
+ } from '@jbrowse/core/pluggableElementTypes'
10
12
  import {
11
13
  type AbstractSessionModel,
12
14
  getContainingView,
13
15
  getSession,
14
16
  } from '@jbrowse/core/util'
15
- import { type LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
17
+ import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
16
18
  import AddIcon from '@mui/icons-material/Add'
17
19
  import ObjectID from 'bson-objectid'
18
20
 
@@ -30,7 +32,7 @@ function parseCigar(cigar: string): [string, number][] {
30
32
  return result
31
33
  }
32
34
 
33
- export function annotationFromPileup(pluggableElement: PluggableElementBase) {
35
+ export function annotationFromPileup(pluggableElement: PluggableElementType) {
34
36
  if (pluggableElement.name !== 'LinearPileupDisplay') {
35
37
  return pluggableElement
36
38
  }
package/src/index.ts CHANGED
@@ -1,7 +1,9 @@
1
1
  /* eslint-disable @typescript-eslint/unbound-method */
2
2
  /* eslint-disable @typescript-eslint/no-unnecessary-condition */
3
3
  /* eslint-disable @typescript-eslint/no-misused-promises */
4
+ /* eslint-disable @typescript-eslint/no-explicit-any */
4
5
  import { changeRegistry, checkRegistry } from '@apollo-annotation/common'
6
+ import type { AnnotationFeature } from '@apollo-annotation/mst'
5
7
  import {
6
8
  CDSCheck,
7
9
  CoreValidation,
@@ -12,6 +14,7 @@ import {
12
14
  } from '@apollo-annotation/shared'
13
15
  import Plugin from '@jbrowse/core/Plugin'
14
16
  import type PluginManager from '@jbrowse/core/PluginManager'
17
+ import type BaseResult from '@jbrowse/core/TextSearch/BaseResults'
15
18
  import { ConfigurationSchema } from '@jbrowse/core/configuration'
16
19
  import {
17
20
  DisplayType,
@@ -29,7 +32,7 @@ import {
29
32
  getSession,
30
33
  isAbstractMenuManager,
31
34
  } from '@jbrowse/core/util'
32
- import { type LinearGenomeViewStateModel } from '@jbrowse/plugin-linear-genome-view'
35
+ import type { LinearGenomeViewStateModel } from '@jbrowse/plugin-linear-genome-view'
33
36
  import AddIcon from '@mui/icons-material/Add'
34
37
  import { alpha } from '@mui/material'
35
38
 
@@ -284,6 +287,27 @@ export default class ApolloPlugin extends Plugin {
284
287
  'Core-extendPluggableElement',
285
288
  annotationFromJBrowseFeature,
286
289
  )
290
+
291
+ pluginManager.addToExtensionPoint(
292
+ 'LinearGenomeView-searchResultSelected',
293
+ (_: any, props: Record<string, unknown>) => {
294
+ const { session, result } = props as {
295
+ session: ApolloSessionModel
296
+ result: BaseResult
297
+ }
298
+ const trackId = result.getTrackId()
299
+ const matchedFeature = result.matchedObject
300
+
301
+ if (trackId?.startsWith('apollo_track_') && matchedFeature) {
302
+ const geneFeature = matchedFeature as AnnotationFeature
303
+ void session.apolloSetEventualSelectedFeature(geneFeature._id)
304
+ }
305
+
306
+ /* eslint-disable-next-line @typescript-eslint/no-unsafe-return */
307
+ return _
308
+ },
309
+ )
310
+
287
311
  if (!inWebWorker) {
288
312
  pluginManager.addToExtensionPoint(
289
313
  'Core-extendWorker',
@@ -1,18 +1,19 @@
1
1
  /* eslint-disable @typescript-eslint/unbound-method */
2
+
2
3
  import { getSession } from '@jbrowse/core/util'
4
+ import { makeStyles } from '@jbrowse/core/util/tss-react'
3
5
  import ExpandLessIcon from '@mui/icons-material/ExpandLess'
4
6
  import ExpandMoreIcon from '@mui/icons-material/ExpandMore'
5
7
  import { Alert, Typography, alpha } from '@mui/material'
6
8
  import { observer } from 'mobx-react'
7
9
  import React, { useCallback, useEffect, useRef } from 'react'
8
- import { makeStyles } from 'tss-react/mui'
9
10
 
10
11
  import { LinearApolloDisplay } from './LinearApolloDisplay/components'
11
- import { type LinearApolloDisplay as LinearApolloDisplayI } from './LinearApolloDisplay/stateModel'
12
+ import type { LinearApolloDisplay as LinearApolloDisplayI } from './LinearApolloDisplay/stateModel'
12
13
  import { LinearApolloSixFrameDisplay } from './LinearApolloSixFrameDisplay/components'
13
- import { type LinearApolloSixFrameDisplay as LinearApolloSixFrameDisplayI } from './LinearApolloSixFrameDisplay/stateModel'
14
+ import type { LinearApolloSixFrameDisplay as LinearApolloSixFrameDisplayI } from './LinearApolloSixFrameDisplay/stateModel'
14
15
  import { TabularEditorPane } from './TabularEditor'
15
- import { type ApolloSessionModel } from './session'
16
+ import type { ApolloSessionModel } from './session'
16
17
 
17
18
  const accordionControlHeight = 12
18
19
 
@@ -97,7 +98,9 @@ const ResizeHandle = ({
97
98
  const controller = new AbortController()
98
99
  const { signal } = controller
99
100
  function abortDrag() {
100
- controller.abort('makeDisplayComponent')
101
+ controller.abort(
102
+ new DOMException('Canceling drag event listener', 'AbortError'),
103
+ )
101
104
  }
102
105
  globalThis.addEventListener('mousemove', mouseMove, { signal })
103
106
  globalThis.addEventListener('mouseup', abortDrag, { signal })
@@ -1,6 +1,6 @@
1
- import {
2
- type AbstractMenuManager,
3
- type AbstractSessionModel,
1
+ import type {
2
+ AbstractMenuManager,
3
+ AbstractSessionModel,
4
4
  } from '@jbrowse/core/util'
5
5
  import DownloadIcon from '@mui/icons-material/Download'
6
6
  import FactCheckIcon from '@mui/icons-material/FactCheck'
@@ -17,7 +17,7 @@ import {
17
17
  ViewChangeLog,
18
18
  ViewCheckResults,
19
19
  } from '../components'
20
- import { type ApolloSessionModel } from '../session'
20
+ import type { ApolloSessionModel } from '../session'
21
21
 
22
22
  export function addTopLevelMenus(rootModel: AbstractMenuManager) {
23
23
  rootModel.insertInMenu(
@@ -1,6 +1,6 @@
1
- import {
2
- type AbstractMenuManager,
3
- type AbstractSessionModel,
1
+ import type {
2
+ AbstractMenuManager,
3
+ AbstractSessionModel,
4
4
  } from '@jbrowse/core/util'
5
5
  import AddIcon from '@mui/icons-material/Add'
6
6
  import AdminPanelSettingsIcon from '@mui/icons-material/AdminPanelSettings'
@@ -18,7 +18,7 @@ import {
18
18
  ManageChecks,
19
19
  ManageUsers,
20
20
  } from '../components'
21
- import { type ApolloSessionModel } from '../session'
21
+ import type { ApolloSessionModel } from '../session'
22
22
 
23
23
  export function addTopLevelAdminMenus(rootModel: AbstractMenuManager) {
24
24
  rootModel.appendToMenu('Apollo', {
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable @typescript-eslint/no-unsafe-assignment */
3
3
  /* eslint-disable @typescript-eslint/no-unnecessary-condition */
4
4
  /* eslint-disable @typescript-eslint/no-unsafe-argument */
5
- import { type ClientDataStore as ClientDataStoreType } from '@apollo-annotation/common'
5
+ import type { ClientDataStore as ClientDataStoreType } from '@apollo-annotation/common'
6
6
  import {
7
7
  type AnnotationFeatureModel,
8
8
  type AnnotationFeatureSnapshot,
@@ -13,14 +13,16 @@ import {
13
13
  CheckResult,
14
14
  type CheckResultSnapshot,
15
15
  } from '@apollo-annotation/mst'
16
- import { getConf, readConfObject } from '@jbrowse/core/configuration'
17
- import { type ConfigurationModel } from '@jbrowse/core/configuration/types'
18
- import { type Region, getSession, isElectron } from '@jbrowse/core/util'
19
16
  import {
20
- type LocalPathLocation,
21
- type UriLocation,
17
+ type AnyConfigurationModel,
18
+ getConf,
19
+ readConfObject,
20
+ } from '@jbrowse/core/configuration'
21
+ import { type Region, getSession, isElectron } from '@jbrowse/core/util'
22
+ import type {
23
+ LocalPathLocation,
24
+ UriLocation,
22
25
  } from '@jbrowse/core/util/types/mst'
23
- import { autorun } from 'mobx'
24
26
  import {
25
27
  type Instance,
26
28
  addDisposer,
@@ -29,7 +31,8 @@ import {
29
31
  getRoot,
30
32
  resolveIdentifier,
31
33
  types,
32
- } from 'mobx-state-tree'
34
+ } from '@jbrowse/mobx-state-tree'
35
+ import { autorun } from 'mobx'
33
36
 
34
37
  import {
35
38
  type ApolloInternetAccount,
@@ -41,13 +44,12 @@ import {
41
44
  import { ChangeManager } from '../ChangeManager'
42
45
  import {
43
46
  OntologyManagerType,
44
- type OntologyRecordConfiguration,
45
47
  type TextIndexFieldDefinition,
46
48
  } from '../OntologyManager'
47
49
  import type ApolloPluginConfigurationSchema from '../config'
48
- import { type ApolloRootModel } from '../types'
50
+ import type { ApolloRootModel } from '../types'
49
51
 
50
- import { type ApolloSessionModel } from './session'
52
+ import type { ApolloSessionModel } from './session'
51
53
 
52
54
  export function clientDataStoreFactory(
53
55
  AnnotationFeatureExtended: typeof AnnotationFeatureModel,
@@ -177,9 +179,7 @@ export function clientDataStoreFactory(
177
179
  // take precedence over the ontologies in the configuration.
178
180
  const { ontologyManager, pluginConfiguration } = self
179
181
  const configuredOntologies =
180
- pluginConfiguration.ontologies as ConfigurationModel<
181
- typeof OntologyRecordConfiguration
182
- >[]
182
+ pluginConfiguration.ontologies as AnyConfigurationModel[]
183
183
  for (const ont of configuredOntologies || []) {
184
184
  const [name, version, source, indexFields] = [
185
185
  readConfObject(ont, 'name') as string,
@@ -204,7 +204,12 @@ export function clientDataStoreFactory(
204
204
  statusMessage: `Loading ontology "${name}", version "${version}", this may take a while`,
205
205
  progressPct: 0,
206
206
  cancelCallback: () => {
207
- controller.abort('ClientDataStore')
207
+ controller.abort(
208
+ new DOMException(
209
+ `Canceling loading of ontology "${name}"`,
210
+ 'AbortError',
211
+ ),
212
+ )
208
213
  jobsManager.abortJob(job.name)
209
214
  },
210
215
  }
@@ -1,7 +1,6 @@
1
- /* eslint-disable @typescript-eslint/no-unsafe-return */
2
1
  /* eslint-disable @typescript-eslint/no-unnecessary-condition */
3
2
  /* eslint-disable @typescript-eslint/no-unsafe-assignment */
4
- import { type ClientDataStore as ClientDataStoreType } from '@apollo-annotation/common'
3
+ import type { ClientDataStore as ClientDataStoreType } from '@apollo-annotation/common'
5
4
  import {
6
5
  type AnnotationFeature,
7
6
  AnnotationFeatureModel,
@@ -13,16 +12,13 @@ import {
13
12
  filterJBrowseConfig,
14
13
  } from '@apollo-annotation/shared'
15
14
  import type PluginManager from '@jbrowse/core/PluginManager'
16
- import { type AssemblyModel } from '@jbrowse/core/assemblyManager/assembly'
15
+ import type { AssemblyModel } from '@jbrowse/core/assemblyManager/assembly'
17
16
  import { getConf, readConfObject } from '@jbrowse/core/configuration'
18
- import { type BaseTrackConfig } from '@jbrowse/core/pluggableElementTypes'
19
- import {
20
- type AbstractSessionModel,
21
- type SessionWithAddTracks,
17
+ import type { BaseTrackConfig } from '@jbrowse/core/pluggableElementTypes'
18
+ import type {
19
+ AbstractSessionModel,
20
+ SessionWithAddTracks,
22
21
  } from '@jbrowse/core/util'
23
- import { type LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
24
- import SaveIcon from '@mui/icons-material/Save'
25
- import { autorun, observable } from 'mobx'
26
22
  import {
27
23
  type Instance,
28
24
  type SnapshotOut,
@@ -31,13 +27,16 @@ import {
31
27
  getRoot,
32
28
  getSnapshot,
33
29
  types,
34
- } from 'mobx-state-tree'
30
+ } from '@jbrowse/mobx-state-tree'
31
+ import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
32
+ import SaveIcon from '@mui/icons-material/Save'
33
+ import { autorun, flow, observable, when } from 'mobx'
35
34
 
36
- import { type ApolloInternetAccountModel } from '../ApolloInternetAccount/model'
35
+ import type { ApolloInternetAccountModel } from '../ApolloInternetAccount/model'
37
36
  import { ApolloJobModel } from '../ApolloJobModel'
38
- import { type ChangeManager } from '../ChangeManager'
37
+ import type { ChangeManager } from '../ChangeManager'
39
38
  import type ApolloPluginConfigurationSchema from '../config'
40
- import { type ApolloRootModel } from '../types'
39
+ import type { ApolloRootModel } from '../types'
41
40
  import { createFetchErrorMessage } from '../util'
42
41
 
43
42
  import { clientDataStoreFactory } from './ClientDataStore'
@@ -207,6 +206,14 @@ export function extendSession(
207
206
  }
208
207
  },
209
208
  }))
209
+ .actions((self) => ({
210
+ apolloSetEventualSelectedFeature: flow(
211
+ function* apolloSetEventualSelectedFeature(featureId: string) {
212
+ yield when(() => Boolean(self.apolloDataStore.getFeature(featureId)))
213
+ self.apolloSetSelectedFeature(featureId)
214
+ },
215
+ ),
216
+ }))
210
217
  .volatile((self) => ({
211
218
  previousSnapshot: getSnapshot(self),
212
219
  }))
@@ -338,6 +345,10 @@ export function extendSession(
338
345
  console.error(error)
339
346
  continue
340
347
  }
348
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
349
+ if (!jbrowseConfig.configuration.ApolloPlugin.hasRole) {
350
+ continue
351
+ }
341
352
  // eslint-disable-next-line @typescript-eslint/no-unsafe-call
342
353
  reloadPluginManagerCallback(
343
354
  jbrowseConfig,
@@ -351,7 +362,9 @@ export function extendSession(
351
362
  )
352
363
  },
353
364
  beforeDestroy() {
354
- self.abortController.abort('destroying session model')
365
+ self.abortController.abort(
366
+ new DOMException('Clean up Apollo session', 'AbortError'),
367
+ )
355
368
  },
356
369
  }))
357
370
 
@@ -384,10 +397,7 @@ export function extendSession(
384
397
  if (Object.keys(filteredConfig).length === 0) {
385
398
  filteredConfig = undefined
386
399
  }
387
- const trackConfigSnapshot = getSnapshot(conf) as {
388
- trackId: string
389
- type: string
390
- }
400
+ const trackConfigSnapshot = getSnapshot(conf)
391
401
  const newTrackId = trackId.slice(
392
402
  0,
393
403
  trackId.length - sessionTrackIdentifier.length,
@@ -405,6 +415,7 @@ export function extendSession(
405
415
  oldJBrowseConfig: filteredConfig,
406
416
  newJBrowseConfig: {
407
417
  ...filteredConfig,
418
+ // @ts-expect-error The track types are in the snapshot
408
419
  tracks: filteredConfig?.tracks && [
409
420
  ...filteredConfig.tracks,
410
421
  newTrackConfigSnapshot,
package/src/types.ts CHANGED
@@ -1,10 +1,16 @@
1
- import { type BaseInternetAccountModel } from '@jbrowse/core/pluggableElementTypes'
2
- import { type AppRootModel } from '@jbrowse/core/util'
1
+ import type { BaseInternetAccountModel } from '@jbrowse/core/pluggableElementTypes'
2
+ import type { AppRootModel } from '@jbrowse/core/util'
3
3
 
4
- import { type ApolloInternetAccountModel } from './ApolloInternetAccount/model'
5
- import { type ApolloSessionModel } from './session'
4
+ import type { ApolloInternetAccountModel } from './ApolloInternetAccount/model'
5
+ import type { ApolloSessionModel } from './session'
6
6
 
7
7
  export interface ApolloRootModel extends Omit<AppRootModel, 'session'> {
8
8
  session: ApolloSessionModel
9
9
  internetAccounts: (BaseInternetAccountModel | ApolloInternetAccountModel)[]
10
10
  }
11
+
12
+ export function isApolloInternetAccount(
13
+ internetAccount: BaseInternetAccountModel | ApolloInternetAccountModel,
14
+ ): internetAccount is ApolloInternetAccountModel {
15
+ return internetAccount.type === 'ApolloInternetAccount'
16
+ }
@@ -1,4 +1,4 @@
1
- import { type AnnotationFeature } from '@apollo-annotation/mst'
1
+ import type { AnnotationFeature } from '@apollo-annotation/mst'
2
2
 
3
3
  export function getFeatureName(feature: AnnotationFeature) {
4
4
  const { attributes } = feature
@@ -1,6 +1,6 @@
1
- import { type CheckResultIdsType } from '@apollo-annotation/mst'
2
- import { type Theme } from '@mui/material'
3
- import { makeStyles } from 'tss-react/mui'
1
+ import type { CheckResultIdsType } from '@apollo-annotation/mst'
2
+ import { makeStyles } from '@jbrowse/core/util/tss-react'
3
+ import type { Theme } from '@mui/material'
4
4
 
5
5
  export { default as EditZoomThresholdDialog } from '../components/EditZoomThresholdDialog'
6
6
 
@@ -1,24 +1,24 @@
1
- import {
2
- type AnnotationFeature,
3
- type TranscriptPartCoding,
1
+ import type {
2
+ AnnotationFeature,
3
+ TranscriptPartCoding,
4
4
  } from '@apollo-annotation/mst'
5
- import { type BaseDisplayModel } from '@jbrowse/core/pluggableElementTypes'
6
- import { type MenuItem } from '@jbrowse/core/ui'
5
+ import type { BaseDisplayModel } from '@jbrowse/core/pluggableElementTypes'
6
+ import type { MenuItem } from '@jbrowse/core/ui'
7
7
  import {
8
8
  type AbstractSessionModel,
9
9
  getContainingView,
10
10
  isSessionModelWithWidgets,
11
11
  } from '@jbrowse/core/util'
12
- import { type LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
12
+ import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
13
13
  import SkipNextRoundedIcon from '@mui/icons-material/SkipNextRounded'
14
14
  import SkipPreviousRoundedIcon from '@mui/icons-material/SkipPreviousRounded'
15
15
 
16
- import { type LinearApolloDisplayMouseEvents } from '../LinearApolloDisplay/stateModel/mouseEvents'
17
- import { type LinearApolloSixFrameDisplayMouseEvents } from '../LinearApolloSixFrameDisplay/stateModel/mouseEvents'
16
+ import type { LinearApolloDisplayMouseEvents } from '../LinearApolloDisplay/stateModel/mouseEvents'
17
+ import type { LinearApolloSixFrameDisplayMouseEvents } from '../LinearApolloSixFrameDisplay/stateModel/mouseEvents'
18
18
  import { AddChildFeature, CopyFeature, DeleteFeature } from '../components'
19
- import { type ApolloSessionModel } from '../session'
19
+ import type { ApolloSessionModel } from '../session'
20
20
 
21
- import { type MousePositionWithFeature } from '.'
21
+ import type { MousePositionWithFeature } from '.'
22
22
 
23
23
  type NavLocation = Parameters<LinearGenomeViewModel['navTo']>[0]
24
24
 
package/src/util/index.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { getParent } from 'mobx-state-tree'
1
+ import { getParent } from '@jbrowse/mobx-state-tree'
2
2
 
3
- import { type ApolloInternetAccountModel } from '../ApolloInternetAccount/model'
4
- import { type ApolloSessionModel } from '../session'
5
- import { type ApolloRootModel } from '../types'
3
+ import type { ApolloInternetAccountModel } from '../ApolloInternetAccount/model'
4
+ import type { ApolloSessionModel } from '../session'
5
+ import type { ApolloRootModel } from '../types'
6
6
 
7
7
  export async function createFetchErrorMessage(
8
8
  response: Response,
@@ -1,7 +1,7 @@
1
1
  import { type ClientDataStore, checkRegistry } from '@apollo-annotation/common'
2
- import {
3
- type ApolloAssemblyI,
4
- type CheckResultSnapshot,
2
+ import type {
3
+ ApolloAssemblyI,
4
+ CheckResultSnapshot,
5
5
  } from '@apollo-annotation/mst'
6
6
  import { gff3ToAnnotationFeature } from '@apollo-annotation/shared'
7
7
  import {
@@ -10,7 +10,7 @@ import {
10
10
  type GFF3Sequence,
11
11
  parseStringSync,
12
12
  } from '@gmod/gff'
13
- import { getSnapshot } from 'mobx-state-tree'
13
+ import { getSnapshot } from '@jbrowse/mobx-state-tree'
14
14
 
15
15
  export async function loadAssemblyIntoClient(
16
16
  assemblyId: string,
@@ -1,5 +1,5 @@
1
- import { type AnnotationFeature } from '@apollo-annotation/mst'
2
- import { type LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
1
+ import type { AnnotationFeature } from '@apollo-annotation/mst'
2
+ import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
3
3
 
4
4
  type MinEdge = 'min'
5
5
  type MaxEdge = 'max'