@apollo-annotation/jbrowse-plugin-apollo 0.3.5 → 0.3.6

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 (126) hide show
  1. package/dist/index.esm.js +5474 -4937
  2. package/dist/index.esm.js.map +1 -1
  3. package/dist/jbrowse-plugin-apollo.cjs.development.js +4609 -4089
  4. package/dist/jbrowse-plugin-apollo.cjs.development.js.map +1 -1
  5. package/dist/jbrowse-plugin-apollo.cjs.production.min.js +1 -1
  6. package/dist/jbrowse-plugin-apollo.cjs.production.min.js.map +1 -1
  7. package/dist/jbrowse-plugin-apollo.umd.development.js +3634 -3500
  8. package/dist/jbrowse-plugin-apollo.umd.development.js.map +1 -1
  9. package/dist/jbrowse-plugin-apollo.umd.production.min.js +1 -1
  10. package/dist/jbrowse-plugin-apollo.umd.production.min.js.map +1 -1
  11. package/package.json +4 -4
  12. package/src/ApolloInternetAccount/addMenuItems.ts +5 -2
  13. package/src/ApolloInternetAccount/components/AuthTypeSelector.tsx +1 -0
  14. package/src/ApolloInternetAccount/components/LoginButtons.tsx +1 -1
  15. package/src/ApolloInternetAccount/components/LoginIcons.tsx +1 -1
  16. package/src/ApolloInternetAccount/configSchema.ts +1 -1
  17. package/src/ApolloInternetAccount/model.ts +11 -10
  18. package/src/ApolloJobModel.ts +1 -1
  19. package/src/ApolloRefNameAliasAdapter/ApolloRefNameAliasAdapter.ts +8 -6
  20. package/src/ApolloRefNameAliasAdapter/index.ts +2 -2
  21. package/src/ApolloSequenceAdapter/ApolloSequenceAdapter.ts +4 -4
  22. package/src/ApolloSequenceAdapter/index.ts +1 -1
  23. package/src/ApolloTextSearchAdapter/ApolloTextSearchAdapter.ts +8 -7
  24. package/src/ApolloTextSearchAdapter/index.ts +1 -1
  25. package/src/BackendDrivers/BackendDriver.ts +7 -7
  26. package/src/BackendDrivers/CollaborationServerDriver.ts +14 -10
  27. package/src/BackendDrivers/DesktopFileDriver.ts +11 -10
  28. package/src/BackendDrivers/InMemoryFileDriver.ts +10 -6
  29. package/src/ChangeManager.ts +5 -5
  30. package/src/FeatureDetailsWidget/ApolloFeatureDetailsWidget.tsx +8 -7
  31. package/src/FeatureDetailsWidget/ApolloTranscriptDetailsWidget.tsx +35 -14
  32. package/src/FeatureDetailsWidget/AttributeKey.tsx +50 -0
  33. package/src/FeatureDetailsWidget/AttributeKeySelector.tsx +104 -0
  34. package/src/FeatureDetailsWidget/Attributes.tsx +210 -367
  35. package/src/FeatureDetailsWidget/BasicInformation.tsx +6 -5
  36. package/src/FeatureDetailsWidget/DefaultAttributeEditor.tsx +104 -0
  37. package/src/FeatureDetailsWidget/DefaultAttributeViewer.tsx +22 -0
  38. package/src/FeatureDetailsWidget/FeatureDetailsNavigation.tsx +4 -4
  39. package/src/FeatureDetailsWidget/NumberTextField.tsx +1 -1
  40. package/src/FeatureDetailsWidget/Sequence.tsx +2 -2
  41. package/src/FeatureDetailsWidget/StringTextField.tsx +1 -1
  42. package/src/FeatureDetailsWidget/TranscriptSequence.tsx +3 -3
  43. package/src/FeatureDetailsWidget/TranscriptWidgetEditLocation.tsx +21 -21
  44. package/src/FeatureDetailsWidget/TranscriptWidgetSummary.tsx +4 -4
  45. package/src/FeatureDetailsWidget/model.ts +8 -3
  46. package/src/LinearApolloDisplay/components/LinearApolloDisplay.tsx +6 -6
  47. package/src/LinearApolloDisplay/glyphs/BoxGlyph.ts +13 -14
  48. package/src/LinearApolloDisplay/glyphs/GeneGlyph.ts +9 -9
  49. package/src/LinearApolloDisplay/glyphs/GenericChildGlyph.ts +6 -5
  50. package/src/LinearApolloDisplay/glyphs/Glyph.ts +7 -7
  51. package/src/LinearApolloDisplay/stateModel/base.ts +52 -10
  52. package/src/LinearApolloDisplay/stateModel/index.ts +4 -3
  53. package/src/LinearApolloDisplay/stateModel/layouts.ts +8 -39
  54. package/src/LinearApolloDisplay/stateModel/mouseEvents.ts +13 -12
  55. package/src/LinearApolloDisplay/stateModel/rendering.ts +59 -31
  56. package/src/LinearApolloSixFrameDisplay/components/LinearApolloSixFrameDisplay.tsx +221 -0
  57. package/src/LinearApolloSixFrameDisplay/components/TrackLines.tsx +40 -0
  58. package/src/LinearApolloSixFrameDisplay/components/index.ts +2 -0
  59. package/src/LinearApolloSixFrameDisplay/configSchema.ts +7 -0
  60. package/src/LinearApolloSixFrameDisplay/glyphs/GeneGlyph.ts +821 -0
  61. package/src/LinearApolloSixFrameDisplay/glyphs/Glyph.ts +63 -0
  62. package/src/LinearApolloSixFrameDisplay/glyphs/index.ts +1 -0
  63. package/src/LinearApolloSixFrameDisplay/index.ts +2 -0
  64. package/src/LinearApolloSixFrameDisplay/stateModel/base.ts +261 -0
  65. package/src/LinearApolloSixFrameDisplay/stateModel/index.ts +27 -0
  66. package/src/LinearApolloSixFrameDisplay/stateModel/layouts.ts +236 -0
  67. package/src/LinearApolloSixFrameDisplay/stateModel/mouseEvents.ts +349 -0
  68. package/src/LinearApolloSixFrameDisplay/stateModel/rendering.ts +199 -0
  69. package/src/LinearApolloSixFrameDisplay/types.ts +1 -0
  70. package/src/OntologyManager/OntologyStore/fulltext.test.ts +1 -1
  71. package/src/OntologyManager/OntologyStore/fulltext.ts +8 -3
  72. package/src/OntologyManager/OntologyStore/index.test.ts +3 -1
  73. package/src/OntologyManager/OntologyStore/index.ts +19 -14
  74. package/src/OntologyManager/OntologyStore/indexeddb-schema.ts +6 -5
  75. package/src/OntologyManager/OntologyStore/indexeddb-storage.ts +11 -5
  76. package/src/OntologyManager/index.ts +8 -6
  77. package/src/OntologyManager/util.ts +3 -2
  78. package/src/TabularEditor/HybridGrid/ChangeHandling.ts +2 -2
  79. package/src/TabularEditor/HybridGrid/Feature.tsx +9 -7
  80. package/src/TabularEditor/HybridGrid/FeatureAttributes.tsx +1 -1
  81. package/src/TabularEditor/HybridGrid/HybridGrid.tsx +3 -2
  82. package/src/TabularEditor/HybridGrid/ToolBar.tsx +1 -1
  83. package/src/TabularEditor/HybridGrid/featureContextMenuItems.ts +6 -6
  84. package/src/TabularEditor/TabularEditorPane.tsx +1 -1
  85. package/src/TabularEditor/model.ts +2 -2
  86. package/src/TabularEditor/types.ts +5 -2
  87. package/src/components/AddAssembly.tsx +182 -179
  88. package/src/components/AddChildFeature.tsx +6 -5
  89. package/src/components/AddFeature.tsx +211 -38
  90. package/src/components/AddRefSeqAliases.tsx +14 -12
  91. package/src/components/CopyFeature.tsx +8 -7
  92. package/src/components/CreateApolloAnnotation.tsx +9 -8
  93. package/src/components/DeleteAssembly.tsx +9 -8
  94. package/src/components/DeleteFeature.tsx +5 -4
  95. package/src/components/Dialog.tsx +1 -1
  96. package/src/components/DownloadGFF3.tsx +11 -10
  97. package/src/components/FilterFeatures.tsx +6 -4
  98. package/src/components/ImportFeatures.tsx +7 -6
  99. package/src/components/LogOut.tsx +5 -4
  100. package/src/components/ManageChecks.tsx +9 -8
  101. package/src/components/ManageUsers.tsx +11 -10
  102. package/src/components/OntologyTermAutocomplete.tsx +5 -5
  103. package/src/components/OntologyTermMultiSelect.tsx +6 -6
  104. package/src/components/OpenLocalFile.tsx +4 -3
  105. package/src/components/ViewChangeLog.tsx +7 -6
  106. package/src/components/ViewCheckResults.tsx +8 -7
  107. package/src/extensions/annotationFromJBrowseFeature.test.ts +1 -0
  108. package/src/extensions/annotationFromJBrowseFeature.ts +11 -10
  109. package/src/extensions/annotationFromPileup.ts +6 -6
  110. package/src/index.ts +33 -50
  111. package/src/makeDisplayComponent.tsx +90 -37
  112. package/src/session/ClientDataStore.ts +21 -17
  113. package/src/session/session.ts +20 -26
  114. package/src/types.ts +4 -4
  115. package/src/util/annotationFeatureUtils.ts +1 -1
  116. package/src/util/index.ts +3 -3
  117. package/src/util/loadAssemblyIntoClient.ts +10 -3
  118. package/src/ApolloSixFrameRenderer/ApolloSixFrameRenderer.tsx +0 -13
  119. package/src/ApolloSixFrameRenderer/components/ApolloRendering.tsx +0 -707
  120. package/src/ApolloSixFrameRenderer/configSchema.ts +0 -7
  121. package/src/ApolloSixFrameRenderer/index.ts +0 -3
  122. package/src/SixFrameFeatureDisplay/components/TrackLines.tsx +0 -19
  123. package/src/SixFrameFeatureDisplay/components/index.ts +0 -1
  124. package/src/SixFrameFeatureDisplay/configSchema.ts +0 -21
  125. package/src/SixFrameFeatureDisplay/index.ts +0 -2
  126. package/src/SixFrameFeatureDisplay/stateModel.ts +0 -443
@@ -1,27 +1,31 @@
1
1
  /* eslint-disable @typescript-eslint/no-unsafe-return */
2
2
  /* eslint-disable @typescript-eslint/no-unnecessary-condition */
3
3
  /* eslint-disable @typescript-eslint/no-unsafe-assignment */
4
- import { ClientDataStore as ClientDataStoreType } from '@apollo-annotation/common'
4
+ import { type ClientDataStore as ClientDataStoreType } from '@apollo-annotation/common'
5
5
  import {
6
- AnnotationFeature,
6
+ type AnnotationFeature,
7
7
  AnnotationFeatureModel,
8
8
  } from '@apollo-annotation/mst'
9
9
  import {
10
- filterJBrowseConfig,
11
10
  ImportJBrowseConfigChange,
12
- JBrowseConfig,
13
- UserLocation,
11
+ type JBrowseConfig,
12
+ type UserLocation,
13
+ filterJBrowseConfig,
14
14
  } from '@apollo-annotation/shared'
15
- import { readConfObject, getConf } from '@jbrowse/core/configuration'
16
- import { BaseTrackConfig } from '@jbrowse/core/pluggableElementTypes'
17
- import PluginManager from '@jbrowse/core/PluginManager'
18
- import { AbstractSessionModel, SessionWithAddTracks } from '@jbrowse/core/util'
19
- import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
15
+ import type PluginManager from '@jbrowse/core/PluginManager'
16
+ import { type AssemblyModel } from '@jbrowse/core/assemblyManager/assembly'
17
+ import { getConf, readConfObject } from '@jbrowse/core/configuration'
18
+ import { type BaseTrackConfig } from '@jbrowse/core/pluggableElementTypes'
19
+ import {
20
+ type AbstractSessionModel,
21
+ type SessionWithAddTracks,
22
+ } from '@jbrowse/core/util'
23
+ import { type LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
20
24
  import SaveIcon from '@mui/icons-material/Save'
21
25
  import { autorun, observable } from 'mobx'
22
26
  import {
23
- Instance,
24
- SnapshotOut,
27
+ type Instance,
28
+ type SnapshotOut,
25
29
  applySnapshot,
26
30
  flow,
27
31
  getRoot,
@@ -29,13 +33,13 @@ import {
29
33
  types,
30
34
  } from 'mobx-state-tree'
31
35
 
32
- import { ApolloInternetAccountModel } from '../ApolloInternetAccount/model'
36
+ import { type ApolloInternetAccountModel } from '../ApolloInternetAccount/model'
33
37
  import { ApolloJobModel } from '../ApolloJobModel'
34
- import { ChangeManager } from '../ChangeManager'
35
- import { ApolloRootModel } from '../types'
38
+ import { type ChangeManager } from '../ChangeManager'
39
+ import { type ApolloRootModel } from '../types'
36
40
  import { createFetchErrorMessage } from '../util'
41
+
37
42
  import { clientDataStoreFactory } from './ClientDataStore'
38
- import { AssemblyModel } from '@jbrowse/core/assemblyManager/assembly'
39
43
 
40
44
  export interface ApolloSession extends AbstractSessionModel {
41
45
  apolloDataStore: ClientDataStoreType & { changeManager: ChangeManager }
@@ -119,16 +123,6 @@ export function extendSession(
119
123
  : {}),
120
124
  },
121
125
  },
122
- displays: [
123
- {
124
- type: 'LinearApolloDisplay',
125
- displayId: `${trackId}-LinearApolloDisplay`,
126
- },
127
- {
128
- type: 'SixFrameFeatureDisplay',
129
- displayId: `${trackId}-SixFrameFeatureDisplay`,
130
- },
131
- ],
132
126
  })
133
127
  }
134
128
  },
package/src/types.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { BaseInternetAccountModel } from '@jbrowse/core/pluggableElementTypes'
2
- import { 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 { ApolloInternetAccountModel } from './ApolloInternetAccount/model'
5
- import { 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
@@ -1,4 +1,4 @@
1
- import { 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
package/src/util/index.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { getParent } from 'mobx-state-tree'
2
2
 
3
- import { ApolloInternetAccountModel } from '../ApolloInternetAccount/model'
4
- import { ApolloSessionModel } from '../session'
5
- import { 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,14 @@
1
- import { ClientDataStore, checkRegistry } from '@apollo-annotation/common'
2
- import { ApolloAssemblyI, CheckResultSnapshot } from '@apollo-annotation/mst'
1
+ import { type ClientDataStore, checkRegistry } from '@apollo-annotation/common'
2
+ import {
3
+ type ApolloAssemblyI,
4
+ type CheckResultSnapshot,
5
+ } from '@apollo-annotation/mst'
3
6
  import { gff3ToAnnotationFeature } from '@apollo-annotation/shared'
4
- import gff, { GFF3Comment, GFF3Feature, GFF3Sequence } from '@gmod/gff'
7
+ import gff, {
8
+ type GFF3Comment,
9
+ type GFF3Feature,
10
+ type GFF3Sequence,
11
+ } from '@gmod/gff'
5
12
  import { getSnapshot } from 'mobx-state-tree'
6
13
 
7
14
  export async function loadAssemblyIntoClient(
@@ -1,13 +0,0 @@
1
- /* eslint-disable @typescript-eslint/require-await */
2
- import { RenderProps, RendererType } from '@jbrowse/core/pluggableElementTypes'
3
- import RpcManager from '@jbrowse/core/rpc/RpcManager'
4
-
5
- export default class ApolloSixFrameRenderer extends RendererType {
6
- async renderInClient(_rpcManager: RpcManager, args: RenderProps) {
7
- return this.render(args)
8
- }
9
-
10
- async freeResourcesInClient(_rpcManager: RpcManager, _args: RenderProps) {
11
- return 0
12
- }
13
- }