@quanta-intellect/vessel-browser 0.1.136 → 0.1.138
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/README.md +4 -4
- package/out/main/index.js +1464 -810
- package/out/preload/content-script.js +18 -0
- package/out/preload/index.js +4 -0
- package/out/renderer/assets/{index-D13TOsuR.js → index-Cjl9fej2.js} +1095 -684
- package/out/renderer/assets/{index-CWy6khUL.css → index-DMcjRzqj.css} +271 -19
- package/out/renderer/index.html +2 -2
- package/package.json +2 -2
|
@@ -2262,6 +2262,7 @@ function notifyPageDiffActivity() {
|
|
|
2262
2262
|
function startPageDiffObserver() {
|
|
2263
2263
|
if (typeof MutationObserver === "undefined") return;
|
|
2264
2264
|
if (!document.documentElement) return;
|
|
2265
|
+
if (isDocumentViewerPage()) return;
|
|
2265
2266
|
lastPageDiffSignature = getPageDiffSignature();
|
|
2266
2267
|
const observer = new MutationObserver((mutations) => {
|
|
2267
2268
|
if (mutations.every((mutation) => shouldIgnorePageDiffMutation(mutation))) {
|
|
@@ -2311,6 +2312,23 @@ function startPageDiffObserver() {
|
|
|
2311
2312
|
}
|
|
2312
2313
|
});
|
|
2313
2314
|
}
|
|
2315
|
+
function isDocumentViewerPage() {
|
|
2316
|
+
const contentType = document.contentType?.toLowerCase() || "";
|
|
2317
|
+
if (contentType.includes("application/pdf")) return true;
|
|
2318
|
+
try {
|
|
2319
|
+
const url = new URL(window.location.href);
|
|
2320
|
+
const pathname = decodeURIComponent(url.pathname).toLowerCase();
|
|
2321
|
+
if (/\.(pdf|epub|mobi|cbz|cbr)$/.test(pathname)) return true;
|
|
2322
|
+
const host = url.hostname.toLowerCase().replace(/^www\./, "");
|
|
2323
|
+
if (host === "archive.org" && /^\/(details|stream|download)\//.test(pathname)) {
|
|
2324
|
+
return true;
|
|
2325
|
+
}
|
|
2326
|
+
} catch {
|
|
2327
|
+
}
|
|
2328
|
+
return !!document.querySelector(
|
|
2329
|
+
"#BookReader, ia-bookreader, bookreader, embed[type='application/pdf'], object[type='application/pdf']"
|
|
2330
|
+
);
|
|
2331
|
+
}
|
|
2314
2332
|
const MAX_SHADOW_HOSTS = 150;
|
|
2315
2333
|
const MAX_SHADOW_DEPTH = 5;
|
|
2316
2334
|
const MAX_WALK_ELEMENTS = 1e4;
|
package/out/preload/index.js
CHANGED
|
@@ -32,6 +32,8 @@ const AutofillChannels = {
|
|
|
32
32
|
const AutomationChannels = {
|
|
33
33
|
AUTOMATION_GET_INSTALLED: "automation:get-installed",
|
|
34
34
|
AUTOMATION_INSTALL_FROM_FILE: "automation:install-from-file",
|
|
35
|
+
AUTOMATION_CREATE_FROM_TEXT: "automation:create-from-text",
|
|
36
|
+
AUTOMATION_UPDATE_FROM_TEXT: "automation:update-from-text",
|
|
35
37
|
AUTOMATION_UNINSTALL: "automation:uninstall",
|
|
36
38
|
AUTOMATION_ACTIVITY_START: "automation:activity-start",
|
|
37
39
|
AUTOMATION_ACTIVITY_CHUNK: "automation:activity-chunk",
|
|
@@ -576,6 +578,8 @@ const api = {
|
|
|
576
578
|
automation: {
|
|
577
579
|
getInstalled: () => electron.ipcRenderer.invoke(Channels.AUTOMATION_GET_INSTALLED),
|
|
578
580
|
installFromFile: () => electron.ipcRenderer.invoke(Channels.AUTOMATION_INSTALL_FROM_FILE),
|
|
581
|
+
createFromText: (source) => electron.ipcRenderer.invoke(Channels.AUTOMATION_CREATE_FROM_TEXT, source),
|
|
582
|
+
updateFromText: (id, source) => electron.ipcRenderer.invoke(Channels.AUTOMATION_UPDATE_FROM_TEXT, id, source),
|
|
579
583
|
uninstall: (id) => electron.ipcRenderer.invoke(Channels.AUTOMATION_UNINSTALL, id)
|
|
580
584
|
},
|
|
581
585
|
schedule: {
|