getobsrv 0.12.0 → 0.14.0
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/out/cli/args.js +52 -5
- package/out/main/cli.js +43 -9
- package/out/main/index.js +68 -10
- package/out/main/{targetSource-DlsHc-Ri.js → targetSource-W6YddYef.js} +14 -0
- package/out/mcp/lib.js +14 -1
- package/out/mcp/server.js +67 -8
- package/out/renderer/assets/{index-DvwDBeho.css → index-BpvyvKfD.css} +148 -18
- package/out/renderer/assets/{index-gYDbIgqJ.js → index-WM0cwf7d.js} +198 -18
- package/out/renderer/index.html +2 -2
- package/out/shared/calibration.js +35 -0
- package/out/shared/control.js +59 -1
- package/out/shared/ipcPayloads.js +15 -0
- package/out/shared/presets.js +11 -1
- package/out/shared/url.js +15 -0
- package/package.json +1 -1
package/out/shared/url.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ALLOWED_URL_SCHEMES = void 0;
|
|
4
4
|
exports.normalizeUrl = normalizeUrl;
|
|
5
5
|
exports.urlSchemeError = urlSchemeError;
|
|
6
|
+
exports.isBlankUrl = isBlankUrl;
|
|
6
7
|
/** `scheme:` prefix, e.g. `https:`, `about:`, `file:`. */
|
|
7
8
|
const SCHEME = /^[a-z][a-z0-9+.-]*:/i;
|
|
8
9
|
/** Loopback host with optional port, e.g. `localhost:5173`, `127.0.0.1/a`. */
|
|
@@ -52,3 +53,17 @@ function urlSchemeError(url) {
|
|
|
52
53
|
`${exports.ALLOWED_URL_SCHEMES.map(s => `${s}//`).join(', ')} URLs only ` +
|
|
53
54
|
`(bare hosts like example.com also work; they normalise to http(s)).`);
|
|
54
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* True when a tab has never been navigated. Both the renderer's empty state and
|
|
58
|
+
* main's native-view visibility ask this question, and they must agree — a
|
|
59
|
+
* disagreement shows as a white OS overlay sitting on top of the empty state,
|
|
60
|
+
* or an empty state over a live page.
|
|
61
|
+
*
|
|
62
|
+
* `about:blank` is deliberately *not* blank here. It is a real destination a
|
|
63
|
+
* user can type and history can hold, and a tab showing it has a page — an
|
|
64
|
+
* empty one. Counting it would put the empty state over a page the user asked
|
|
65
|
+
* for, and take the native pane off screen underneath it.
|
|
66
|
+
*/
|
|
67
|
+
function isBlankUrl(url) {
|
|
68
|
+
return url === '';
|
|
69
|
+
}
|