@jbrowse/plugin-rdf 2.18.0 → 3.0.1

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.
@@ -1,2 +1,2 @@
1
- export { default as AdapterClass } from './SPARQLAdapter';
2
- export { default as configSchema } from './configSchema';
1
+ import type PluginManager from '@jbrowse/core/PluginManager';
2
+ export default function SPARQLAdapterF(pluginManager: PluginManager): void;
@@ -1,10 +1,52 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
37
  };
5
38
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.configSchema = exports.AdapterClass = void 0;
7
- var SPARQLAdapter_1 = require("./SPARQLAdapter");
8
- Object.defineProperty(exports, "AdapterClass", { enumerable: true, get: function () { return __importDefault(SPARQLAdapter_1).default; } });
9
- var configSchema_1 = require("./configSchema");
10
- Object.defineProperty(exports, "configSchema", { enumerable: true, get: function () { return __importDefault(configSchema_1).default; } });
39
+ exports.default = SPARQLAdapterF;
40
+ const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
41
+ const configSchema_1 = __importDefault(require("./configSchema"));
42
+ function SPARQLAdapterF(pluginManager) {
43
+ pluginManager.addAdapterType(() => new pluggableElementTypes_1.AdapterType({
44
+ name: 'SPARQLAdapter',
45
+ displayName: 'SPARQL adapter',
46
+ configSchema: configSchema_1.default,
47
+ adapterMetadata: {
48
+ category: 'Uncommon',
49
+ },
50
+ getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./SPARQLAdapter'))).then(r => r.default),
51
+ }));
52
+ }
package/dist/index.js CHANGED
@@ -4,21 +4,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const Plugin_1 = __importDefault(require("@jbrowse/core/Plugin"));
7
- const AdapterType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/AdapterType"));
8
7
  const tracks_1 = require("@jbrowse/core/util/tracks");
9
- const SPARQLAdapter_1 = require("./SPARQLAdapter");
8
+ const SPARQLAdapter_1 = __importDefault(require("./SPARQLAdapter"));
10
9
  class RdfPlugin extends Plugin_1.default {
11
10
  constructor() {
12
11
  super(...arguments);
13
12
  this.name = 'RdfPlugin';
14
13
  }
15
14
  install(pluginManager) {
16
- pluginManager.addAdapterType(() => new AdapterType_1.default({
17
- name: 'SPARQLAdapter',
18
- displayName: 'SPARQL adapter',
19
- configSchema: SPARQLAdapter_1.configSchema,
20
- AdapterClass: SPARQLAdapter_1.AdapterClass,
21
- }));
15
+ (0, SPARQLAdapter_1.default)(pluginManager);
22
16
  pluginManager.addToExtensionPoint('Core-guessAdapterForLocation', (adapterGuesser) => {
23
17
  return (file, index, adapterHint) => {
24
18
  const regexGuess = /\/sparql$/i;
@@ -1,2 +1,2 @@
1
- export { default as AdapterClass } from './SPARQLAdapter';
2
- export { default as configSchema } from './configSchema';
1
+ import type PluginManager from '@jbrowse/core/PluginManager';
2
+ export default function SPARQLAdapterF(pluginManager: PluginManager): void;
@@ -1,2 +1,13 @@
1
- export { default as AdapterClass } from './SPARQLAdapter';
2
- export { default as configSchema } from './configSchema';
1
+ import { AdapterType } from '@jbrowse/core/pluggableElementTypes';
2
+ import configSchema from './configSchema';
3
+ export default function SPARQLAdapterF(pluginManager) {
4
+ pluginManager.addAdapterType(() => new AdapterType({
5
+ name: 'SPARQLAdapter',
6
+ displayName: 'SPARQL adapter',
7
+ configSchema,
8
+ adapterMetadata: {
9
+ category: 'Uncommon',
10
+ },
11
+ getAdapterClass: () => import('./SPARQLAdapter').then(r => r.default),
12
+ }));
13
+ }
package/esm/index.js CHANGED
@@ -1,19 +1,13 @@
1
1
  import Plugin from '@jbrowse/core/Plugin';
2
- import AdapterType from '@jbrowse/core/pluggableElementTypes/AdapterType';
3
2
  import { getFileName } from '@jbrowse/core/util/tracks';
4
- import { AdapterClass as SPARQLAdapterClass, configSchema as sparqlAdapterConfigSchema, } from './SPARQLAdapter';
3
+ import SPARQLAdapterF from './SPARQLAdapter';
5
4
  export default class RdfPlugin extends Plugin {
6
5
  constructor() {
7
6
  super(...arguments);
8
7
  this.name = 'RdfPlugin';
9
8
  }
10
9
  install(pluginManager) {
11
- pluginManager.addAdapterType(() => new AdapterType({
12
- name: 'SPARQLAdapter',
13
- displayName: 'SPARQL adapter',
14
- configSchema: sparqlAdapterConfigSchema,
15
- AdapterClass: SPARQLAdapterClass,
16
- }));
10
+ SPARQLAdapterF(pluginManager);
17
11
  pluginManager.addToExtensionPoint('Core-guessAdapterForLocation', (adapterGuesser) => {
18
12
  return (file, index, adapterHint) => {
19
13
  const regexGuess = /\/sparql$/i;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-rdf",
3
- "version": "2.18.0",
3
+ "version": "3.0.1",
4
4
  "description": "JBrowse 2 RDF resources",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -36,14 +36,12 @@
36
36
  "clean": "rimraf dist esm *.tsbuildinfo"
37
37
  },
38
38
  "dependencies": {
39
- "string-template": "^1.0.0"
40
- },
41
- "peerDependencies": {
42
- "@jbrowse/core": "^2.0.0",
39
+ "@jbrowse/core": "^3.0.1",
43
40
  "mobx": "^6.0.0",
44
41
  "mobx-react": "^9.0.0",
45
42
  "mobx-state-tree": "^5.0.0",
46
- "rxjs": "^7.0.0"
43
+ "rxjs": "^7.0.0",
44
+ "string-template": "^1.0.0"
47
45
  },
48
46
  "distModule": "esm/index.js",
49
47
  "srcModule": "src/index.ts",
@@ -51,5 +49,5 @@
51
49
  "publishConfig": {
52
50
  "access": "public"
53
51
  },
54
- "gitHead": "c344ea60099cb7e460b77f15808946b24a7eee74"
52
+ "gitHead": "aa2f1d1a89d2361c7fd1a93fe29506fa4554f5cc"
55
53
  }