@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.
- package/dist/index.esm.js +5474 -4937
- package/dist/index.esm.js.map +1 -1
- package/dist/jbrowse-plugin-apollo.cjs.development.js +4609 -4089
- package/dist/jbrowse-plugin-apollo.cjs.development.js.map +1 -1
- package/dist/jbrowse-plugin-apollo.cjs.production.min.js +1 -1
- package/dist/jbrowse-plugin-apollo.cjs.production.min.js.map +1 -1
- package/dist/jbrowse-plugin-apollo.umd.development.js +3634 -3500
- package/dist/jbrowse-plugin-apollo.umd.development.js.map +1 -1
- package/dist/jbrowse-plugin-apollo.umd.production.min.js +1 -1
- package/dist/jbrowse-plugin-apollo.umd.production.min.js.map +1 -1
- package/package.json +4 -4
- package/src/ApolloInternetAccount/addMenuItems.ts +5 -2
- package/src/ApolloInternetAccount/components/AuthTypeSelector.tsx +1 -0
- package/src/ApolloInternetAccount/components/LoginButtons.tsx +1 -1
- package/src/ApolloInternetAccount/components/LoginIcons.tsx +1 -1
- package/src/ApolloInternetAccount/configSchema.ts +1 -1
- package/src/ApolloInternetAccount/model.ts +11 -10
- package/src/ApolloJobModel.ts +1 -1
- package/src/ApolloRefNameAliasAdapter/ApolloRefNameAliasAdapter.ts +8 -6
- package/src/ApolloRefNameAliasAdapter/index.ts +2 -2
- package/src/ApolloSequenceAdapter/ApolloSequenceAdapter.ts +4 -4
- package/src/ApolloSequenceAdapter/index.ts +1 -1
- package/src/ApolloTextSearchAdapter/ApolloTextSearchAdapter.ts +8 -7
- package/src/ApolloTextSearchAdapter/index.ts +1 -1
- package/src/BackendDrivers/BackendDriver.ts +7 -7
- package/src/BackendDrivers/CollaborationServerDriver.ts +14 -10
- package/src/BackendDrivers/DesktopFileDriver.ts +11 -10
- package/src/BackendDrivers/InMemoryFileDriver.ts +10 -6
- package/src/ChangeManager.ts +5 -5
- package/src/FeatureDetailsWidget/ApolloFeatureDetailsWidget.tsx +8 -7
- package/src/FeatureDetailsWidget/ApolloTranscriptDetailsWidget.tsx +35 -14
- package/src/FeatureDetailsWidget/AttributeKey.tsx +50 -0
- package/src/FeatureDetailsWidget/AttributeKeySelector.tsx +104 -0
- package/src/FeatureDetailsWidget/Attributes.tsx +210 -367
- package/src/FeatureDetailsWidget/BasicInformation.tsx +6 -5
- package/src/FeatureDetailsWidget/DefaultAttributeEditor.tsx +104 -0
- package/src/FeatureDetailsWidget/DefaultAttributeViewer.tsx +22 -0
- package/src/FeatureDetailsWidget/FeatureDetailsNavigation.tsx +4 -4
- package/src/FeatureDetailsWidget/NumberTextField.tsx +1 -1
- package/src/FeatureDetailsWidget/Sequence.tsx +2 -2
- package/src/FeatureDetailsWidget/StringTextField.tsx +1 -1
- package/src/FeatureDetailsWidget/TranscriptSequence.tsx +3 -3
- package/src/FeatureDetailsWidget/TranscriptWidgetEditLocation.tsx +21 -21
- package/src/FeatureDetailsWidget/TranscriptWidgetSummary.tsx +4 -4
- package/src/FeatureDetailsWidget/model.ts +8 -3
- package/src/LinearApolloDisplay/components/LinearApolloDisplay.tsx +6 -6
- package/src/LinearApolloDisplay/glyphs/BoxGlyph.ts +13 -14
- package/src/LinearApolloDisplay/glyphs/GeneGlyph.ts +9 -9
- package/src/LinearApolloDisplay/glyphs/GenericChildGlyph.ts +6 -5
- package/src/LinearApolloDisplay/glyphs/Glyph.ts +7 -7
- package/src/LinearApolloDisplay/stateModel/base.ts +52 -10
- package/src/LinearApolloDisplay/stateModel/index.ts +4 -3
- package/src/LinearApolloDisplay/stateModel/layouts.ts +8 -39
- package/src/LinearApolloDisplay/stateModel/mouseEvents.ts +13 -12
- package/src/LinearApolloDisplay/stateModel/rendering.ts +59 -31
- package/src/LinearApolloSixFrameDisplay/components/LinearApolloSixFrameDisplay.tsx +221 -0
- package/src/LinearApolloSixFrameDisplay/components/TrackLines.tsx +40 -0
- package/src/LinearApolloSixFrameDisplay/components/index.ts +2 -0
- package/src/LinearApolloSixFrameDisplay/configSchema.ts +7 -0
- package/src/LinearApolloSixFrameDisplay/glyphs/GeneGlyph.ts +821 -0
- package/src/LinearApolloSixFrameDisplay/glyphs/Glyph.ts +63 -0
- package/src/LinearApolloSixFrameDisplay/glyphs/index.ts +1 -0
- package/src/LinearApolloSixFrameDisplay/index.ts +2 -0
- package/src/LinearApolloSixFrameDisplay/stateModel/base.ts +261 -0
- package/src/LinearApolloSixFrameDisplay/stateModel/index.ts +27 -0
- package/src/LinearApolloSixFrameDisplay/stateModel/layouts.ts +236 -0
- package/src/LinearApolloSixFrameDisplay/stateModel/mouseEvents.ts +349 -0
- package/src/LinearApolloSixFrameDisplay/stateModel/rendering.ts +199 -0
- package/src/LinearApolloSixFrameDisplay/types.ts +1 -0
- package/src/OntologyManager/OntologyStore/fulltext.test.ts +1 -1
- package/src/OntologyManager/OntologyStore/fulltext.ts +8 -3
- package/src/OntologyManager/OntologyStore/index.test.ts +3 -1
- package/src/OntologyManager/OntologyStore/index.ts +19 -14
- package/src/OntologyManager/OntologyStore/indexeddb-schema.ts +6 -5
- package/src/OntologyManager/OntologyStore/indexeddb-storage.ts +11 -5
- package/src/OntologyManager/index.ts +8 -6
- package/src/OntologyManager/util.ts +3 -2
- package/src/TabularEditor/HybridGrid/ChangeHandling.ts +2 -2
- package/src/TabularEditor/HybridGrid/Feature.tsx +9 -7
- package/src/TabularEditor/HybridGrid/FeatureAttributes.tsx +1 -1
- package/src/TabularEditor/HybridGrid/HybridGrid.tsx +3 -2
- package/src/TabularEditor/HybridGrid/ToolBar.tsx +1 -1
- package/src/TabularEditor/HybridGrid/featureContextMenuItems.ts +6 -6
- package/src/TabularEditor/TabularEditorPane.tsx +1 -1
- package/src/TabularEditor/model.ts +2 -2
- package/src/TabularEditor/types.ts +5 -2
- package/src/components/AddAssembly.tsx +182 -179
- package/src/components/AddChildFeature.tsx +6 -5
- package/src/components/AddFeature.tsx +211 -38
- package/src/components/AddRefSeqAliases.tsx +14 -12
- package/src/components/CopyFeature.tsx +8 -7
- package/src/components/CreateApolloAnnotation.tsx +9 -8
- package/src/components/DeleteAssembly.tsx +9 -8
- package/src/components/DeleteFeature.tsx +5 -4
- package/src/components/Dialog.tsx +1 -1
- package/src/components/DownloadGFF3.tsx +11 -10
- package/src/components/FilterFeatures.tsx +6 -4
- package/src/components/ImportFeatures.tsx +7 -6
- package/src/components/LogOut.tsx +5 -4
- package/src/components/ManageChecks.tsx +9 -8
- package/src/components/ManageUsers.tsx +11 -10
- package/src/components/OntologyTermAutocomplete.tsx +5 -5
- package/src/components/OntologyTermMultiSelect.tsx +6 -6
- package/src/components/OpenLocalFile.tsx +4 -3
- package/src/components/ViewChangeLog.tsx +7 -6
- package/src/components/ViewCheckResults.tsx +8 -7
- package/src/extensions/annotationFromJBrowseFeature.test.ts +1 -0
- package/src/extensions/annotationFromJBrowseFeature.ts +11 -10
- package/src/extensions/annotationFromPileup.ts +6 -6
- package/src/index.ts +33 -50
- package/src/makeDisplayComponent.tsx +90 -37
- package/src/session/ClientDataStore.ts +21 -17
- package/src/session/session.ts +20 -26
- package/src/types.ts +4 -4
- package/src/util/annotationFeatureUtils.ts +1 -1
- package/src/util/index.ts +3 -3
- package/src/util/loadAssemblyIntoClient.ts +10 -3
- package/src/ApolloSixFrameRenderer/ApolloSixFrameRenderer.tsx +0 -13
- package/src/ApolloSixFrameRenderer/components/ApolloRendering.tsx +0 -707
- package/src/ApolloSixFrameRenderer/configSchema.ts +0 -7
- package/src/ApolloSixFrameRenderer/index.ts +0 -3
- package/src/SixFrameFeatureDisplay/components/TrackLines.tsx +0 -19
- package/src/SixFrameFeatureDisplay/components/index.ts +0 -1
- package/src/SixFrameFeatureDisplay/configSchema.ts +0 -21
- package/src/SixFrameFeatureDisplay/index.ts +0 -2
- package/src/SixFrameFeatureDisplay/stateModel.ts +0 -443
package/src/session/session.ts
CHANGED
|
@@ -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
|
|
16
|
-
import {
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
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
|
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 {
|
|
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, {
|
|
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
|
-
}
|