@owlmeans/web-client 0.1.18-rc.68 → 0.1.18-rc.69
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 +2 -2
- package/agent-meta/manifest.json +2 -2
- package/agent-meta/skills/web-client/SKILL.md +1 -1
- package/build/entrypoints.d.ts +1 -7
- package/build/entrypoints.d.ts.map +1 -1
- package/package.json +11 -11
- package/tests/surrogate.spec.d.ts +0 -2
- package/tests/surrogate.spec.d.ts.map +0 -1
- package/tests/surrogate.spec.js +0 -43
- package/tests/surrogate.spec.js.map +0 -1
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ is the legacy MUI layer — start nothing new there. React Native apps use the `
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
bun add @owlmeans/web-client@^0.1.18-rc.
|
|
14
|
+
bun add @owlmeans/web-client@^0.1.18-rc.69
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Concepts
|
|
@@ -289,7 +289,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
|
|
|
289
289
|
your project's skill store (`.agents/skills/`):
|
|
290
290
|
|
|
291
291
|
```sh
|
|
292
|
-
npx @owlmeans/agent-skills@^0.1.18-rc.
|
|
292
|
+
npx @owlmeans/agent-skills@^0.1.18-rc.58
|
|
293
293
|
```
|
|
294
294
|
|
|
295
295
|
The embedded files are version-matched to this package release. Do not edit them
|
package/agent-meta/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 3,
|
|
3
3
|
"package": "@owlmeans/web-client",
|
|
4
|
-
"version": "0.1.18-rc.
|
|
5
|
-
"generatedAt": "2026-10-
|
|
4
|
+
"version": "0.1.18-rc.69",
|
|
5
|
+
"generatedAt": "2026-10-26T16:31:24.916Z",
|
|
6
6
|
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
@@ -6,7 +6,7 @@ description: Bind OwlMeans shared entrypoint protocols in a browser application.
|
|
|
6
6
|
|
|
7
7
|
# Browser protocol entrypoints
|
|
8
8
|
|
|
9
|
-
**Install:** `bun add @owlmeans/web-client@^0.1.18-rc.
|
|
9
|
+
**Install:** `bun add @owlmeans/web-client@^0.1.18-rc.69`
|
|
10
10
|
|
|
11
11
|
Shared protocol declarations are immutable. Bind a complete protocol tree for callable API routes,
|
|
12
12
|
then bind frontend declarations to screens.
|
package/build/entrypoints.d.ts
CHANGED
|
@@ -6,11 +6,5 @@
|
|
|
6
6
|
* means `web-panel`, `mui-panel` and every generated target gain a working login window with no
|
|
7
7
|
* edit of their own, which is the only way an application that is already deployed can get it.
|
|
8
8
|
*/
|
|
9
|
-
export declare const entrypoints:
|
|
10
|
-
query: import("@owlmeans/auth").AuthToken;
|
|
11
|
-
}, unknown>> | import("@owlmeans/client-entrypoint").ClientProtocolEntrypoint<import("@owlmeans/entrypoint").EntrypointProtocol<{
|
|
12
|
-
query: import("@owlmeans/auth-common").SurrogateQuery;
|
|
13
|
-
}, unknown>> | import("@owlmeans/client-entrypoint").ClientProtocolEntrypoint<import("@owlmeans/entrypoint").EntrypointProtocol<{
|
|
14
|
-
body: import("@owlmeans/auth").AuthToken;
|
|
15
|
-
}, import("@owlmeans/auth").AuthToken>>)[];
|
|
9
|
+
export declare const entrypoints: any[];
|
|
16
10
|
//# sourceMappingURL=entrypoints.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entrypoints.d.ts","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"entrypoints.d.ts","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,OAIvB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/web-client",
|
|
3
|
-
"version": "0.1.18-rc.
|
|
3
|
+
"version": "0.1.18-rc.69",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -22,22 +22,22 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@owlmeans/auth": "^0.1.18-rc.42",
|
|
25
|
-
"@owlmeans/auth-common": "^0.1.18-rc.
|
|
26
|
-
"@owlmeans/client": "^0.1.18-rc.
|
|
27
|
-
"@owlmeans/client-auth": "^0.1.18-rc.
|
|
28
|
-
"@owlmeans/client-context": "^0.1.18-rc.
|
|
29
|
-
"@owlmeans/client-i18n": "^0.1.18-rc.
|
|
30
|
-
"@owlmeans/client-entrypoint": "^0.1.18-rc.
|
|
31
|
-
"@owlmeans/client-resource": "^0.1.18-rc.
|
|
32
|
-
"@owlmeans/client-route": "^0.1.18-rc.
|
|
25
|
+
"@owlmeans/auth-common": "^0.1.18-rc.53",
|
|
26
|
+
"@owlmeans/client": "^0.1.18-rc.58",
|
|
27
|
+
"@owlmeans/client-auth": "^0.1.18-rc.66",
|
|
28
|
+
"@owlmeans/client-context": "^0.1.18-rc.54",
|
|
29
|
+
"@owlmeans/client-i18n": "^0.1.18-rc.57",
|
|
30
|
+
"@owlmeans/client-entrypoint": "^0.1.18-rc.53",
|
|
31
|
+
"@owlmeans/client-resource": "^0.1.18-rc.53",
|
|
32
|
+
"@owlmeans/client-route": "^0.1.18-rc.54",
|
|
33
33
|
"@owlmeans/config": "^0.1.18-rc.45",
|
|
34
34
|
"@owlmeans/context": "^0.1.18-rc.35",
|
|
35
35
|
"@owlmeans/error": "^0.1.18-rc.39",
|
|
36
36
|
"@owlmeans/i18n": "^0.1.18-rc.40",
|
|
37
37
|
"@owlmeans/log": "^0.1.18-rc.4",
|
|
38
38
|
"@owlmeans/route": "^0.1.18-rc.36",
|
|
39
|
-
"@owlmeans/web-db": "^0.1.18-rc.
|
|
40
|
-
"@owlmeans/web-router": "^0.1.18-rc.
|
|
39
|
+
"@owlmeans/web-db": "^0.1.18-rc.54",
|
|
40
|
+
"@owlmeans/web-router": "^0.1.18-rc.56",
|
|
41
41
|
"react-dropzone": "^20.1.2"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"surrogate.spec.d.ts","sourceRoot":"","sources":["surrogate.spec.ts"],"names":[],"mappings":""}
|
package/tests/surrogate.spec.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { describe, test, expect, afterEach } from 'bun:test';
|
|
2
|
-
import { centeredPopupFeatures } from '../src/login/surrogate.js';
|
|
3
|
-
/**
|
|
4
|
-
* A hand-written `window`, not jsdom: the function under test reads exactly four geometry
|
|
5
|
-
* properties, and a real DOM would prove a fixture behaves rather than that the math does.
|
|
6
|
-
*/
|
|
7
|
-
const stubWindow = (over) => {
|
|
8
|
-
globalThis.window = {
|
|
9
|
-
screenLeft: 0, screenTop: 0, screenX: 0, screenY: 0,
|
|
10
|
-
outerWidth: 1920, outerHeight: 1080,
|
|
11
|
-
screen: { width: 1920, height: 1080 },
|
|
12
|
-
...over,
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
afterEach(() => {
|
|
16
|
-
delete globalThis.window;
|
|
17
|
-
});
|
|
18
|
-
describe('centeredPopupFeatures', () => {
|
|
19
|
-
test('centers on the browser window, at its current screen position', () => {
|
|
20
|
-
stubWindow({ screenLeft: 100, screenTop: 50, outerWidth: 1200, outerHeight: 800 });
|
|
21
|
-
expect(centeredPopupFeatures(520, 760)).toBe('popup=yes,width=520,height=760,left=440,top=70');
|
|
22
|
-
});
|
|
23
|
-
// A cross-origin iframe: `window.top.innerWidth` would throw, which is exactly why this reads
|
|
24
|
-
// `outerWidth`/`outerHeight` instead — they describe the browser's own chrome, not this
|
|
25
|
-
// document's viewport, and stay readable across the origin boundary.
|
|
26
|
-
test('falls back to screenX/screenY when the legacy aliases are unavailable', () => {
|
|
27
|
-
stubWindow({
|
|
28
|
-
screenLeft: undefined, screenTop: undefined, screenX: 20, screenY: 10,
|
|
29
|
-
outerWidth: 1200, outerHeight: 800,
|
|
30
|
-
});
|
|
31
|
-
expect(centeredPopupFeatures(520, 760)).toBe('popup=yes,width=520,height=760,left=360,top=30');
|
|
32
|
-
});
|
|
33
|
-
test('falls back to window.screen when outerWidth/outerHeight report zero', () => {
|
|
34
|
-
// A headless runner: no chrome geometry to report at all.
|
|
35
|
-
stubWindow({ outerWidth: 0, outerHeight: 0, screen: { width: 1600, height: 900 } });
|
|
36
|
-
expect(centeredPopupFeatures(520, 760)).toBe('popup=yes,width=520,height=760,left=540,top=70');
|
|
37
|
-
});
|
|
38
|
-
test('never places the popup off-screen when it is larger than the window', () => {
|
|
39
|
-
stubWindow({ outerWidth: 400, outerHeight: 400 });
|
|
40
|
-
expect(centeredPopupFeatures(520, 760)).toBe('popup=yes,width=520,height=760,left=0,top=0');
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
//# sourceMappingURL=surrogate.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"surrogate.spec.js","sourceRoot":"","sources":["surrogate.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;AAEjE;;;GAGG;AACH,MAAM,UAAU,GAAG,CAAC,IAA6B,EAAQ,EAAE;IACxD,UAA6C,CAAC,MAAM,GAAG;QACtD,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC;QACnD,UAAU,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI;QACnC,MAAM,EAAE,EAAE,KAAK,EAAE,IA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