@jbrowse/plugin-grid-bookmark 2.12.0 → 2.12.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.
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = AddHighlightModelF;
|
|
6
7
|
const react_1 = __importDefault(require("react"));
|
|
7
8
|
// locals
|
|
8
9
|
const Highlight_1 = __importDefault(require("./Highlight"));
|
|
@@ -25,4 +26,3 @@ function AddHighlightModelF(pluginManager) {
|
|
|
25
26
|
];
|
|
26
27
|
});
|
|
27
28
|
}
|
|
28
|
-
exports.default = AddHighlightModelF;
|
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = GridBookmarkWidgetF;
|
|
29
30
|
const react_1 = require("react");
|
|
30
31
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
31
32
|
const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
|
|
@@ -45,4 +46,3 @@ function GridBookmarkWidgetF(pluginManager) {
|
|
|
45
46
|
});
|
|
46
47
|
(0, Highlight_1.default)(pluginManager);
|
|
47
48
|
}
|
|
48
|
-
exports.default = GridBookmarkWidgetF;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = f;
|
|
3
4
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
4
5
|
const mst_1 = require("@jbrowse/core/util/types/mst");
|
|
5
6
|
const util_1 = require("@jbrowse/core/util");
|
|
@@ -235,4 +236,3 @@ function f(_pluginManager) {
|
|
|
235
236
|
return rest;
|
|
236
237
|
});
|
|
237
238
|
}
|
|
238
|
-
exports.default = f;
|
|
@@ -23,7 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
26
|
+
exports.shareSessionToDynamo = shareSessionToDynamo;
|
|
27
|
+
exports.readSessionFromDynamo = readSessionFromDynamo;
|
|
27
28
|
// duplicated from products/jbrowse-web/src/sessionSharing.ts ; could possibly be moved into a higher directory and shared between the two
|
|
28
29
|
const utils_1 = require("./utils");
|
|
29
30
|
// from https://stackoverflow.com/questions/1349404/
|
|
@@ -79,7 +80,6 @@ async function shareSessionToDynamo(session, url, referer) {
|
|
|
79
80
|
password,
|
|
80
81
|
};
|
|
81
82
|
}
|
|
82
|
-
exports.shareSessionToDynamo = shareSessionToDynamo;
|
|
83
83
|
async function readSessionFromDynamo(baseUrl, sessionQueryParam, password, signal) {
|
|
84
84
|
const sessionId = sessionQueryParam.split('share-')[1];
|
|
85
85
|
const url = `${baseUrl}?sessionId=${encodeURIComponent(sessionId)}`;
|
|
@@ -93,4 +93,3 @@ async function readSessionFromDynamo(baseUrl, sessionQueryParam, password, signa
|
|
|
93
93
|
const json = await response.json();
|
|
94
94
|
return decrypt(json.session, password);
|
|
95
95
|
}
|
|
96
|
-
exports.readSessionFromDynamo = readSessionFromDynamo;
|
|
@@ -23,7 +23,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
26
|
+
exports.navToBookmark = navToBookmark;
|
|
27
|
+
exports.downloadBookmarkFile = downloadBookmarkFile;
|
|
28
|
+
exports.b64PadSuffix = b64PadSuffix;
|
|
29
|
+
exports.fromUrlSafeB64 = fromUrlSafeB64;
|
|
30
|
+
exports.toUrlSafeB64 = toUrlSafeB64;
|
|
27
31
|
const file_saver_1 = require("file-saver");
|
|
28
32
|
const util_1 = require("@jbrowse/core/util");
|
|
29
33
|
async function navToBookmark(locString, assembly, views, model) {
|
|
@@ -52,7 +56,6 @@ async function navToBookmark(locString, assembly, views, model) {
|
|
|
52
56
|
session.notifyError(`${e}`, e);
|
|
53
57
|
}
|
|
54
58
|
}
|
|
55
|
-
exports.navToBookmark = navToBookmark;
|
|
56
59
|
function downloadBookmarkFile(fileFormat, model) {
|
|
57
60
|
const { selectedBookmarks, bookmarksWithValidAssemblies } = model;
|
|
58
61
|
const bookmarksToDownload = selectedBookmarks.length === 0
|
|
@@ -96,7 +99,6 @@ function downloadBookmarkFile(fileFormat, model) {
|
|
|
96
99
|
(0, file_saver_1.saveAs)(blob, fileName);
|
|
97
100
|
}
|
|
98
101
|
}
|
|
99
|
-
exports.downloadBookmarkFile = downloadBookmarkFile;
|
|
100
102
|
/**
|
|
101
103
|
* Pad the end of a base64 string with "=" to make it valid
|
|
102
104
|
* @param b64 - unpadded b64 string
|
|
@@ -119,7 +121,6 @@ function b64PadSuffix(b64) {
|
|
|
119
121
|
}
|
|
120
122
|
return b64 + '='.repeat(num);
|
|
121
123
|
}
|
|
122
|
-
exports.b64PadSuffix = b64PadSuffix;
|
|
123
124
|
/**
|
|
124
125
|
* Decode and inflate a url-safe base64 to a string
|
|
125
126
|
* See {@link https://en.wikipedia.org/wiki/Base64#URL_applications}
|
|
@@ -133,7 +134,6 @@ async function fromUrlSafeB64(b64) {
|
|
|
133
134
|
const inflated = inflate(bytes);
|
|
134
135
|
return new TextDecoder().decode(inflated);
|
|
135
136
|
}
|
|
136
|
-
exports.fromUrlSafeB64 = fromUrlSafeB64;
|
|
137
137
|
/**
|
|
138
138
|
* Compress and encode a string as url-safe base64
|
|
139
139
|
* See {@link https://en.wikipedia.org/wiki/Base64#URL_applications}
|
|
@@ -150,4 +150,3 @@ async function toUrlSafeB64(str) {
|
|
|
150
150
|
? encoded.slice(0, pos).replaceAll('+', '-').replaceAll('/', '_')
|
|
151
151
|
: encoded.replaceAll('+', '-').replaceAll('/', '_');
|
|
152
152
|
}
|
|
153
|
-
exports.toUrlSafeB64 = toUrlSafeB64;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-grid-bookmark",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.2",
|
|
4
4
|
"description": "JBrowse 2 grid bookmark widget",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"distModule": "esm/index.js",
|
|
60
60
|
"srcModule": "src/index.ts",
|
|
61
61
|
"module": "esm/index.js",
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "1ec66736ce048a1637f52b7a7ef2eb02d956b771"
|
|
63
63
|
}
|