@jbrowse/plugin-trix 2.15.0 → 2.15.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.
package/dist/index.js CHANGED
@@ -1,24 +1,49 @@
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 (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
27
  };
5
28
  Object.defineProperty(exports, "__esModule", { value: true });
6
29
  const TextSearchAdapterType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/TextSearchAdapterType"));
7
30
  const Plugin_1 = __importDefault(require("@jbrowse/core/Plugin"));
8
- const TrixTextSearchAdapter_1 = require("./TrixTextSearchAdapter");
31
+ const configSchema_1 = __importDefault(require("./TrixTextSearchAdapter/configSchema"));
9
32
  class TrixPlugin extends Plugin_1.default {
10
33
  constructor() {
11
34
  super(...arguments);
12
35
  this.name = 'TrixPlugin';
13
36
  }
14
37
  install(pluginManager) {
15
- pluginManager.addTextSearchAdapterType(() => new TextSearchAdapterType_1.default({
16
- name: 'TrixTextSearchAdapter',
17
- displayName: 'Trix text search adapter',
18
- configSchema: TrixTextSearchAdapter_1.configSchema,
19
- AdapterClass: TrixTextSearchAdapter_1.AdapterClass,
20
- description: 'Trix adapter',
21
- }));
38
+ pluginManager.addTextSearchAdapterType(() => {
39
+ return new TextSearchAdapterType_1.default({
40
+ name: 'TrixTextSearchAdapter',
41
+ displayName: 'Trix text search adapter',
42
+ configSchema: configSchema_1.default,
43
+ description: 'Trix text search adapter',
44
+ getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./TrixTextSearchAdapter/TrixTextSearchAdapter'))).then(d => d.default),
45
+ });
46
+ });
22
47
  }
23
48
  }
24
49
  exports.default = TrixPlugin;
package/esm/index.js CHANGED
@@ -1,18 +1,20 @@
1
1
  import TextSearchAdapterType from '@jbrowse/core/pluggableElementTypes/TextSearchAdapterType';
2
2
  import Plugin from '@jbrowse/core/Plugin';
3
- import { AdapterClass as TrixTextSearchAdapterClass, configSchema as trixAdapterConfigSchema, } from './TrixTextSearchAdapter';
3
+ import configSchema from './TrixTextSearchAdapter/configSchema';
4
4
  export default class TrixPlugin extends Plugin {
5
5
  constructor() {
6
6
  super(...arguments);
7
7
  this.name = 'TrixPlugin';
8
8
  }
9
9
  install(pluginManager) {
10
- pluginManager.addTextSearchAdapterType(() => new TextSearchAdapterType({
11
- name: 'TrixTextSearchAdapter',
12
- displayName: 'Trix text search adapter',
13
- configSchema: trixAdapterConfigSchema,
14
- AdapterClass: TrixTextSearchAdapterClass,
15
- description: 'Trix adapter',
16
- }));
10
+ pluginManager.addTextSearchAdapterType(() => {
11
+ return new TextSearchAdapterType({
12
+ name: 'TrixTextSearchAdapter',
13
+ displayName: 'Trix text search adapter',
14
+ configSchema,
15
+ description: 'Trix text search adapter',
16
+ getAdapterClass: () => import('./TrixTextSearchAdapter/TrixTextSearchAdapter').then(d => d.default),
17
+ });
18
+ });
17
19
  }
18
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-trix",
3
- "version": "2.15.0",
3
+ "version": "2.15.1",
4
4
  "description": "JBrowse 2 trix text search adapter",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -44,7 +44,7 @@
44
44
  "react": ">=16.8.0"
45
45
  },
46
46
  "dependencies": {
47
- "@gmod/trix": "^2.0.4"
47
+ "@gmod/trix": "^2.0.9"
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public"
@@ -52,5 +52,5 @@
52
52
  "distModule": "esm/index.js",
53
53
  "srcModule": "src/index.ts",
54
54
  "module": "esm/index.js",
55
- "gitHead": "87eeb1fbf8311dbf88d5e75b5a265f03beffdda8"
55
+ "gitHead": "86ed70124fc5a0b1161266659d1ca9f8796bf3fe"
56
56
  }
@@ -1,2 +0,0 @@
1
- export { default as AdapterClass } from './TrixTextSearchAdapter';
2
- export { default as configSchema } from './configSchema';
@@ -1,10 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.configSchema = exports.AdapterClass = void 0;
7
- var TrixTextSearchAdapter_1 = require("./TrixTextSearchAdapter");
8
- Object.defineProperty(exports, "AdapterClass", { enumerable: true, get: function () { return __importDefault(TrixTextSearchAdapter_1).default; } });
9
- var configSchema_1 = require("./configSchema");
10
- Object.defineProperty(exports, "configSchema", { enumerable: true, get: function () { return __importDefault(configSchema_1).default; } });
@@ -1,2 +0,0 @@
1
- export { default as AdapterClass } from './TrixTextSearchAdapter';
2
- export { default as configSchema } from './configSchema';
@@ -1,2 +0,0 @@
1
- export { default as AdapterClass } from './TrixTextSearchAdapter';
2
- export { default as configSchema } from './configSchema';