@apollo-annotation/jbrowse-plugin-apollo 0.1.19 → 0.1.20
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 +33 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/jbrowse-plugin-apollo.cjs.development.js +33 -6
- 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 +879 -590
- 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 +31 -31
- package/src/OntologyManager/OntologyStore/fulltext.ts +0 -1
- package/src/components/AddAssembly.tsx +1 -1
- package/src/components/ManageUsers.tsx +20 -1
- package/src/session/session.ts +11 -3
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apollo-annotation/jbrowse-plugin-apollo",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"description": "Apollo plugin for JBrowse 2",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"jbrowse",
|
|
7
|
+
"jbrowse2"
|
|
8
|
+
],
|
|
5
9
|
"repository": {
|
|
6
10
|
"type": "git",
|
|
7
11
|
"url": "https://github.com/GMOD/Apollo3.git",
|
|
8
12
|
"directory": "packages/jbrowse-plugin-apollo"
|
|
9
13
|
},
|
|
10
|
-
"author": "JBrowse Team",
|
|
11
14
|
"license": "Apache-2.0",
|
|
12
|
-
"
|
|
13
|
-
"jbrowse",
|
|
14
|
-
"jbrowse2"
|
|
15
|
-
],
|
|
15
|
+
"author": "JBrowse Team",
|
|
16
16
|
"main": "dist/index.js",
|
|
17
17
|
"module": "dist/index.esm.js",
|
|
18
18
|
"typings": "dist/index.d.ts",
|
|
@@ -20,13 +20,6 @@
|
|
|
20
20
|
"dist",
|
|
21
21
|
"src"
|
|
22
22
|
],
|
|
23
|
-
"config": {
|
|
24
|
-
"jbrowse": {
|
|
25
|
-
"plugin": {
|
|
26
|
-
"name": "Apollo"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
23
|
"scripts": {
|
|
31
24
|
"setup": "rimraf .jbrowse && jbrowse create .jbrowse",
|
|
32
25
|
"clean": "rimraf dist",
|
|
@@ -47,13 +40,17 @@
|
|
|
47
40
|
"prepack": "yarn build",
|
|
48
41
|
"postversion": "git push --follow-tags"
|
|
49
42
|
},
|
|
50
|
-
"
|
|
51
|
-
"
|
|
43
|
+
"config": {
|
|
44
|
+
"jbrowse": {
|
|
45
|
+
"plugin": {
|
|
46
|
+
"name": "Apollo"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
52
49
|
},
|
|
53
50
|
"dependencies": {
|
|
54
|
-
"@apollo-annotation/common": "^0.1.
|
|
55
|
-
"@apollo-annotation/mst": "^0.1.
|
|
56
|
-
"@apollo-annotation/shared": "^0.1.
|
|
51
|
+
"@apollo-annotation/common": "^0.1.20",
|
|
52
|
+
"@apollo-annotation/mst": "^0.1.20",
|
|
53
|
+
"@apollo-annotation/shared": "^0.1.20",
|
|
57
54
|
"@emotion/react": "^11.10.6",
|
|
58
55
|
"@emotion/styled": "^11.10.6",
|
|
59
56
|
"@gmod/gff": "1.2.0",
|
|
@@ -74,18 +71,6 @@
|
|
|
74
71
|
"socket.io-client": "^4.5.4",
|
|
75
72
|
"tslib": "^2.3.1"
|
|
76
73
|
},
|
|
77
|
-
"peerDependencies": {
|
|
78
|
-
"@jbrowse/core": "^2.13.1",
|
|
79
|
-
"@mui/material": "^5.11.14",
|
|
80
|
-
"mobx": "^6.6.1",
|
|
81
|
-
"mobx-react": "^7.2.1",
|
|
82
|
-
"mobx-state-tree": "^5.1.7",
|
|
83
|
-
"prop-types": "^15.8.1",
|
|
84
|
-
"react": "^18.2.0",
|
|
85
|
-
"react-dom": "^18.2.0",
|
|
86
|
-
"rxjs": "^7.4.0",
|
|
87
|
-
"tss-react": "^4.6.1"
|
|
88
|
-
},
|
|
89
74
|
"devDependencies": {
|
|
90
75
|
"@jbrowse/cli": "^2.6.2",
|
|
91
76
|
"@jbrowse/core": "^2.13.1",
|
|
@@ -97,7 +82,7 @@
|
|
|
97
82
|
"@types/file-saver": "^2",
|
|
98
83
|
"@types/node": "^18.14.2",
|
|
99
84
|
"@types/prop-types": "^15",
|
|
100
|
-
"@types/react": "^
|
|
85
|
+
"@types/react": "^18.3.4",
|
|
101
86
|
"@types/react-dom": "^18",
|
|
102
87
|
"cypress": "12.17.3",
|
|
103
88
|
"cypress-mongodb": "^6.2.0",
|
|
@@ -123,7 +108,22 @@
|
|
|
123
108
|
"tss-react": "^4.6.1",
|
|
124
109
|
"typescript": "^5.5.3"
|
|
125
110
|
},
|
|
111
|
+
"peerDependencies": {
|
|
112
|
+
"@jbrowse/core": "^2.13.1",
|
|
113
|
+
"@mui/material": "^5.11.14",
|
|
114
|
+
"mobx": "^6.6.1",
|
|
115
|
+
"mobx-react": "^7.2.1",
|
|
116
|
+
"mobx-state-tree": "^5.1.7",
|
|
117
|
+
"prop-types": "^15.8.1",
|
|
118
|
+
"react": "^18.2.0",
|
|
119
|
+
"react-dom": "^18.2.0",
|
|
120
|
+
"rxjs": "^7.4.0",
|
|
121
|
+
"tss-react": "^4.6.1"
|
|
122
|
+
},
|
|
126
123
|
"publishConfig": {
|
|
127
124
|
"access": "public"
|
|
125
|
+
},
|
|
126
|
+
"jbrowse-plugin": {
|
|
127
|
+
"name": "Apollo"
|
|
128
128
|
}
|
|
129
129
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unnecessary-condition */
|
|
2
2
|
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
|
3
|
-
/* eslint-disable import/no-named-as-default-member */
|
|
4
3
|
// jsonpath triggers this rule for some reason. import { query } from 'jsonpath' does not work
|
|
5
4
|
|
|
6
5
|
import { checkAbortSignal } from '@jbrowse/core/util'
|
|
@@ -124,7 +124,26 @@ export function ManageUsers({
|
|
|
124
124
|
headerName: 'Role',
|
|
125
125
|
width: 140,
|
|
126
126
|
type: 'singleSelect',
|
|
127
|
-
valueOptions: ['', '
|
|
127
|
+
valueOptions: ['readOnly', 'user', 'admin', 'none'],
|
|
128
|
+
getOptionLabel(value) {
|
|
129
|
+
switch (value) {
|
|
130
|
+
case 'readOnly': {
|
|
131
|
+
return 'Read-only'
|
|
132
|
+
}
|
|
133
|
+
case 'user': {
|
|
134
|
+
return 'User'
|
|
135
|
+
}
|
|
136
|
+
case 'admin': {
|
|
137
|
+
return 'Admin'
|
|
138
|
+
}
|
|
139
|
+
case 'none': {
|
|
140
|
+
return 'None'
|
|
141
|
+
}
|
|
142
|
+
default: {
|
|
143
|
+
return 'unknown'
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
},
|
|
128
147
|
editable: true,
|
|
129
148
|
},
|
|
130
149
|
{
|
package/src/session/session.ts
CHANGED
|
@@ -323,7 +323,7 @@ export function extendSession(
|
|
|
323
323
|
if (Object.keys(filteredConfig).length === 0) {
|
|
324
324
|
filteredConfig = undefined
|
|
325
325
|
}
|
|
326
|
-
|
|
326
|
+
const trackConfigSnapshot = getSnapshot(conf) as {
|
|
327
327
|
trackId: string
|
|
328
328
|
type: string
|
|
329
329
|
}
|
|
@@ -331,7 +331,7 @@ export function extendSession(
|
|
|
331
331
|
0,
|
|
332
332
|
trackId.length - sessionTrackIdentifier.length,
|
|
333
333
|
)
|
|
334
|
-
|
|
334
|
+
const newTrackConfigSnapshot = {
|
|
335
335
|
...trackConfigSnapshot,
|
|
336
336
|
trackId: newTrackId,
|
|
337
337
|
}
|
|
@@ -346,7 +346,7 @@ export function extendSession(
|
|
|
346
346
|
...filteredConfig,
|
|
347
347
|
tracks: filteredConfig?.tracks && [
|
|
348
348
|
...filteredConfig.tracks,
|
|
349
|
-
|
|
349
|
+
newTrackConfigSnapshot,
|
|
350
350
|
],
|
|
351
351
|
},
|
|
352
352
|
})
|
|
@@ -357,6 +357,10 @@ export function extendSession(
|
|
|
357
357
|
const { notify } = self as unknown as AbstractSessionModel
|
|
358
358
|
notify('Track added', 'success')
|
|
359
359
|
}
|
|
360
|
+
// @ts-expect-error This method is missing in the JB types
|
|
361
|
+
self.deleteTrackConf(conf)
|
|
362
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
363
|
+
jbrowse.addTrackConf(newTrackConfigSnapshot)
|
|
360
364
|
},
|
|
361
365
|
icon: SaveIcon,
|
|
362
366
|
},
|
|
@@ -396,6 +400,10 @@ export function extendSession(
|
|
|
396
400
|
const { notify } = self as unknown as AbstractSessionModel
|
|
397
401
|
notify('Track removed', 'success')
|
|
398
402
|
}
|
|
403
|
+
// @ts-expect-error This method is missing in the JB types
|
|
404
|
+
self.deleteTrackConf(conf)
|
|
405
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
406
|
+
jbrowse.deleteTrackConf(conf)
|
|
399
407
|
},
|
|
400
408
|
icon: SaveIcon,
|
|
401
409
|
},
|