@jbrowse/plugin-legacy-jbrowse 2.6.1 → 2.6.2

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 (97) hide show
  1. package/dist/GuessNCList/index.js +0 -1
  2. package/dist/JBrowse1Connection/configSchema.js +0 -1
  3. package/dist/JBrowse1Connection/index.js +0 -1
  4. package/dist/JBrowse1Connection/jb1ConfigLoad.js +0 -1
  5. package/dist/JBrowse1Connection/jb1ConfigParse.js +0 -1
  6. package/dist/JBrowse1Connection/jb1ToJb2.js +0 -1
  7. package/dist/JBrowse1Connection/model.js +0 -1
  8. package/dist/JBrowse1Connection/types.js +0 -1
  9. package/dist/JBrowse1Connection/util.js +0 -1
  10. package/dist/JBrowse1TextSearchAdapter/HttpMap.js +0 -1
  11. package/dist/JBrowse1TextSearchAdapter/JBrowse1TextSearchAdapter.js +0 -1
  12. package/dist/JBrowse1TextSearchAdapter/configSchema.js +0 -1
  13. package/dist/JBrowse1TextSearchAdapter/index.js +0 -1
  14. package/dist/NCListAdapter/NCListAdapter.js +0 -1
  15. package/dist/NCListAdapter/NCListFeature.js +0 -1
  16. package/dist/NCListAdapter/configSchema.js +0 -1
  17. package/dist/NCListAdapter/index.js +0 -1
  18. package/dist/index.js +0 -1
  19. package/esm/GuessNCList/index.js +0 -1
  20. package/esm/JBrowse1Connection/configSchema.js +0 -1
  21. package/esm/JBrowse1Connection/index.js +0 -1
  22. package/esm/JBrowse1Connection/jb1ConfigLoad.js +0 -1
  23. package/esm/JBrowse1Connection/jb1ConfigParse.js +0 -1
  24. package/esm/JBrowse1Connection/jb1ToJb2.js +0 -1
  25. package/esm/JBrowse1Connection/model.js +0 -1
  26. package/esm/JBrowse1Connection/types.js +0 -1
  27. package/esm/JBrowse1Connection/util.js +0 -1
  28. package/esm/JBrowse1TextSearchAdapter/HttpMap.js +0 -1
  29. package/esm/JBrowse1TextSearchAdapter/JBrowse1TextSearchAdapter.js +0 -1
  30. package/esm/JBrowse1TextSearchAdapter/configSchema.js +0 -1
  31. package/esm/JBrowse1TextSearchAdapter/index.js +0 -1
  32. package/esm/NCListAdapter/NCListAdapter.js +0 -1
  33. package/esm/NCListAdapter/NCListFeature.js +0 -1
  34. package/esm/NCListAdapter/configSchema.js +0 -1
  35. package/esm/NCListAdapter/index.js +0 -1
  36. package/esm/index.js +0 -1
  37. package/package.json +3 -4
  38. package/dist/GuessNCList/index.js.map +0 -1
  39. package/dist/JBrowse1Connection/configSchema.js.map +0 -1
  40. package/dist/JBrowse1Connection/index.js.map +0 -1
  41. package/dist/JBrowse1Connection/jb1ConfigLoad.js.map +0 -1
  42. package/dist/JBrowse1Connection/jb1ConfigParse.js.map +0 -1
  43. package/dist/JBrowse1Connection/jb1ToJb2.js.map +0 -1
  44. package/dist/JBrowse1Connection/model.js.map +0 -1
  45. package/dist/JBrowse1Connection/types.js.map +0 -1
  46. package/dist/JBrowse1Connection/util.js.map +0 -1
  47. package/dist/JBrowse1TextSearchAdapter/HttpMap.js.map +0 -1
  48. package/dist/JBrowse1TextSearchAdapter/JBrowse1TextSearchAdapter.js.map +0 -1
  49. package/dist/JBrowse1TextSearchAdapter/configSchema.js.map +0 -1
  50. package/dist/JBrowse1TextSearchAdapter/index.js.map +0 -1
  51. package/dist/NCListAdapter/NCListAdapter.js.map +0 -1
  52. package/dist/NCListAdapter/NCListFeature.js.map +0 -1
  53. package/dist/NCListAdapter/configSchema.js.map +0 -1
  54. package/dist/NCListAdapter/index.js.map +0 -1
  55. package/dist/index.js.map +0 -1
  56. package/esm/GuessNCList/index.js.map +0 -1
  57. package/esm/JBrowse1Connection/configSchema.js.map +0 -1
  58. package/esm/JBrowse1Connection/index.js.map +0 -1
  59. package/esm/JBrowse1Connection/jb1ConfigLoad.js.map +0 -1
  60. package/esm/JBrowse1Connection/jb1ConfigParse.js.map +0 -1
  61. package/esm/JBrowse1Connection/jb1ToJb2.js.map +0 -1
  62. package/esm/JBrowse1Connection/model.js.map +0 -1
  63. package/esm/JBrowse1Connection/types.js.map +0 -1
  64. package/esm/JBrowse1Connection/util.js.map +0 -1
  65. package/esm/JBrowse1TextSearchAdapter/HttpMap.js.map +0 -1
  66. package/esm/JBrowse1TextSearchAdapter/JBrowse1TextSearchAdapter.js.map +0 -1
  67. package/esm/JBrowse1TextSearchAdapter/configSchema.js.map +0 -1
  68. package/esm/JBrowse1TextSearchAdapter/index.js.map +0 -1
  69. package/esm/NCListAdapter/NCListAdapter.js.map +0 -1
  70. package/esm/NCListAdapter/NCListFeature.js.map +0 -1
  71. package/esm/NCListAdapter/configSchema.js.map +0 -1
  72. package/esm/NCListAdapter/index.js.map +0 -1
  73. package/esm/index.js.map +0 -1
  74. package/src/GuessNCList/index.ts +0 -27
  75. package/src/JBrowse1Connection/configSchema.ts +0 -42
  76. package/src/JBrowse1Connection/index.ts +0 -20
  77. package/src/JBrowse1Connection/jb1ConfigLoad.ts +0 -342
  78. package/src/JBrowse1Connection/jb1ConfigParse.ts +0 -423
  79. package/src/JBrowse1Connection/jb1ToJb2.ts +0 -529
  80. package/src/JBrowse1Connection/model.tsx +0 -69
  81. package/src/JBrowse1Connection/types.ts +0 -105
  82. package/src/JBrowse1Connection/util.ts +0 -149
  83. package/src/JBrowse1TextSearchAdapter/HttpMap.test.ts +0 -49
  84. package/src/JBrowse1TextSearchAdapter/HttpMap.ts +0 -100
  85. package/src/JBrowse1TextSearchAdapter/JBrowse1TextSearchAdapter.test.ts +0 -101
  86. package/src/JBrowse1TextSearchAdapter/JBrowse1TextSearchAdapter.ts +0 -100
  87. package/src/JBrowse1TextSearchAdapter/configSchema.ts +0 -44
  88. package/src/JBrowse1TextSearchAdapter/index.ts +0 -18
  89. package/src/NCListAdapter/NCListAdapter.test.ts +0 -58
  90. package/src/NCListAdapter/NCListAdapter.ts +0 -92
  91. package/src/NCListAdapter/NCListFeature.ts +0 -94
  92. package/src/NCListAdapter/__snapshots__/NCListAdapter.test.ts.snap +0 -30671
  93. package/src/NCListAdapter/configSchema.ts +0 -32
  94. package/src/NCListAdapter/index.ts +0 -16
  95. package/src/__snapshots__/index.test.ts.snap +0 -16
  96. package/src/index.test.ts +0 -35
  97. package/src/index.ts +0 -17
@@ -1,32 +0,0 @@
1
- import { ConfigurationSchema } from '@jbrowse/core/configuration'
2
-
3
- /**
4
- * #config NCListAdapter
5
- */
6
- function x() {} // eslint-disable-line @typescript-eslint/no-unused-vars
7
-
8
- const NCListAdapter = ConfigurationSchema(
9
- 'NCListAdapter',
10
- {
11
- /**
12
- * #slot
13
- */
14
- rootUrlTemplate: {
15
- type: 'fileLocation',
16
- defaultValue: {
17
- uri: '/path/to/my/{refseq}/trackData.json',
18
- locationType: 'UriLocation',
19
- },
20
- },
21
- /**
22
- * #slot
23
- */
24
- refNames: {
25
- type: 'stringArray',
26
- defaultValue: [],
27
- description: 'List of refNames used by the NCList used for aliasing',
28
- },
29
- },
30
- { explicitlyTyped: true },
31
- )
32
- export default NCListAdapter
@@ -1,16 +0,0 @@
1
- import { AdapterType } from '@jbrowse/core/pluggableElementTypes'
2
- import PluginManager from '@jbrowse/core/PluginManager'
3
-
4
- import configSchema from './configSchema'
5
-
6
- export default (pluginManager: PluginManager) => {
7
- pluginManager.addAdapterType(
8
- () =>
9
- new AdapterType({
10
- name: 'NCListAdapter',
11
- displayName: 'NCList adapter',
12
- configSchema,
13
- getAdapterClass: () => import('./NCListAdapter').then(r => r.default),
14
- }),
15
- )
16
- }
@@ -1,16 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`plugin in a stock JBrowse 1`] = `{}`;
4
-
5
- exports[`test creating a text search adapter 1`] = `
6
- {
7
- "namesIndexLocation": {
8
- "internetAccountId": undefined,
9
- "internetAccountPreAuthorization": undefined,
10
- "locationType": "UriLocation",
11
- "uri": "names/",
12
- },
13
- "textSearchAdapterId": "JBrowse1GenerateNamesAdapterTest",
14
- "type": "JBrowse1TextSearchAdapter",
15
- }
16
- `;
package/src/index.test.ts DELETED
@@ -1,35 +0,0 @@
1
- import PluginManager from '@jbrowse/core/PluginManager'
2
- import { getSnapshot } from 'mobx-state-tree'
3
- import ThisPlugin from '.'
4
-
5
- test('plugin in a stock JBrowse', () => {
6
- const pm = new PluginManager([new ThisPlugin()])
7
- pm.createPluggableElements()
8
- pm.configure()
9
- expect(() => pm.addPlugin(new ThisPlugin())).toThrow(
10
- /JBrowse already configured, cannot add plugins/,
11
- )
12
-
13
- const NCListAdapter = pm.getAdapterType('NCListAdapter')
14
- const config = NCListAdapter.configSchema.create({ type: 'NCListAdapter' })
15
- expect(getSnapshot(config)).toMatchSnapshot()
16
- })
17
-
18
- test('test creating a text search adapter', () => {
19
- const pm = new PluginManager([new ThisPlugin()])
20
- pm.createPluggableElements()
21
- pm.configure()
22
-
23
- const Adapter = pm.getTextSearchAdapterType('JBrowse1TextSearchAdapter')
24
- const config = Adapter.configSchema.create({
25
- type: 'JBrowse1TextSearchAdapter',
26
- textSearchAdapterId: 'JBrowse1GenerateNamesAdapterTest',
27
- namesIndexLocation: {
28
- uri: 'names/',
29
- locationType: 'UriLocation',
30
- },
31
- tracks: [],
32
- assemblies: [],
33
- })
34
- expect(getSnapshot(config)).toMatchSnapshot()
35
- })
package/src/index.ts DELETED
@@ -1,17 +0,0 @@
1
- import Plugin from '@jbrowse/core/Plugin'
2
- import PluginManager from '@jbrowse/core/PluginManager'
3
- import NCListAdapterF from './NCListAdapter'
4
- import JBrowse1TextSearchAdapterF from './JBrowse1TextSearchAdapter'
5
- import JBrowse1ConnectionF from './JBrowse1Connection'
6
- import GuessNCListF from './GuessNCList'
7
-
8
- export default class LegacyJBrowsePlugin extends Plugin {
9
- name = 'LegacyJBrowsePlugin'
10
-
11
- install(pluginManager: PluginManager) {
12
- NCListAdapterF(pluginManager)
13
- GuessNCListF(pluginManager)
14
- JBrowse1TextSearchAdapterF(pluginManager)
15
- JBrowse1ConnectionF(pluginManager)
16
- }
17
- }