@owlmeans/web-client 0.1.18-rc.59 → 0.1.18-rc.60
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/components/dispatcher/component.d.ts.map +1 -1
- package/build/components/dispatcher/component.js +2 -1
- package/build/components/dispatcher/component.js.map +1 -1
- package/build/entrypoints.d.ts +1 -7
- package/build/entrypoints.d.ts.map +1 -1
- package/build/login/consts.d.ts +36 -0
- package/build/login/consts.d.ts.map +1 -1
- package/build/login/consts.js +38 -0
- package/build/login/consts.js.map +1 -1
- package/build/login/consts.local.d.ts +22 -0
- package/build/login/consts.local.d.ts.map +1 -0
- package/build/login/consts.local.js +48 -0
- package/build/login/consts.local.js.map +1 -0
- package/build/login/index.d.ts +1 -0
- package/build/login/index.d.ts.map +1 -1
- package/build/login/index.js.map +1 -1
- package/build/login/screen.d.ts +2 -22
- package/build/login/screen.d.ts.map +1 -1
- package/build/login/screen.js +4 -24
- package/build/login/screen.js.map +1 -1
- package/build/login/types.d.ts +10 -0
- package/build/login/types.d.ts.map +1 -0
- package/build/login/types.js +2 -0
- package/build/login/types.js.map +1 -0
- package/build/login/view.d.ts +1 -23
- package/build/login/view.d.ts.map +1 -1
- package/build/login/view.js +1 -62
- package/build/login/view.js.map +1 -1
- package/build/middleware.d.ts +1 -1
- package/build/middleware.d.ts.map +1 -1
- package/build/middleware.js.map +1 -1
- package/build/types.local.d.ts +5 -0
- package/build/types.local.d.ts.map +1 -0
- package/build/types.local.js +2 -0
- package/build/types.local.js.map +1 -0
- package/package.json +21 -21
- package/src/components/dispatcher/component.tsx +2 -1
- package/src/login/consts.local.ts +52 -0
- package/src/login/consts.ts +38 -0
- package/src/login/index.ts +1 -0
- package/src/login/screen.tsx +5 -30
- package/src/login/types.ts +10 -0
- package/src/login/view.tsx +3 -75
- package/src/middleware.ts +2 -6
- package/src/types.local.ts +5 -0
- 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.60
|
|
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.48
|
|
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": 2,
|
|
3
3
|
"package": "@owlmeans/web-client",
|
|
4
|
-
"version": "0.1.18-rc.
|
|
5
|
-
"generatedAt": "2026-10-
|
|
4
|
+
"version": "0.1.18-rc.60",
|
|
5
|
+
"generatedAt": "2026-10-05T08:32:19.116Z",
|
|
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.60`
|
|
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.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/components/dispatcher/component.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/components/dispatcher/component.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,UAAU,6FA+FrB,CAAA"}
|
|
@@ -4,7 +4,8 @@ import { useEffect, useState } from 'react';
|
|
|
4
4
|
import { useI18nLib } from '@owlmeans/client-i18n';
|
|
5
5
|
import { AUTH_QUERY } from '@owlmeans/auth';
|
|
6
6
|
import { FallbackLoginScreen, LoginIntent, LoginOutcome, ResumeAction, resumeAction, } from '@owlmeans/client-auth/login';
|
|
7
|
-
import { LoginSurrogateView
|
|
7
|
+
import { LoginSurrogateView } from '../../login/view.js';
|
|
8
|
+
import { SurrogateStage } from '../../login/consts.js';
|
|
8
9
|
import { useContext } from '../../context.js';
|
|
9
10
|
export const Dispatcher = DispatcherHOC(({ provideToken, navigate }) => {
|
|
10
11
|
const context = useContext();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../src/components/dispatcher/component.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EACL,mBAAmB,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,GAC3E,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["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ACnD,UAAU,EAAE,MAAM,EAAE,6BAA6B;YACjD,aAAa,EAAE,MAAM,EAAE,6BAA6B;SACrD,YAAG,CAAC,CAAC,SAAS,CAAC,GAAO,CAAC,CAAC,CAAC,SAAS,CAAA;AACrC,CAAC,CAAC,CAAA"}
|
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
|
-
}, undefined>> | import("@owlmeans/client-entrypoint").ClientProtocolEntrypoint<import("@owlmeans/entrypoint").EntrypointProtocol<{
|
|
12
|
-
query: import("@owlmeans/auth-common").SurrogateQuery;
|
|
13
|
-
}, undefined>> | 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: import("@owlmeans/client-entrypoint").ClientProtocolEntrypoint<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,uEAIvB,CAAA"}
|
package/build/login/consts.d.ts
CHANGED
|
@@ -8,4 +8,40 @@ export declare const SURROGATE_LOGIN = "owlmeans-surrogate-login";
|
|
|
8
8
|
* ordinary tab.
|
|
9
9
|
*/
|
|
10
10
|
export declare const SURROGATE_LOGIN_PRIORITY = 100;
|
|
11
|
+
/** What the surrogate window is doing, from the point of view of the person watching it. */
|
|
12
|
+
export declare enum SurrogateStage {
|
|
13
|
+
/** Working. No control — there is nothing for the user to do but wait. */
|
|
14
|
+
Working = "working",
|
|
15
|
+
/** Needs a click: the flow cannot continue without a fresh gesture. */
|
|
16
|
+
Gesture = "gesture",
|
|
17
|
+
/** Done here; handing the result back and closing. */
|
|
18
|
+
Handing = "handing",
|
|
19
|
+
/** Acted, but with no channel back to the window that asked. */
|
|
20
|
+
Orphaned = "orphaned",
|
|
21
|
+
/** Ended with nothing. */
|
|
22
|
+
Failed = "failed",
|
|
23
|
+
/** Not a surrogate at all — someone opened this address directly. */
|
|
24
|
+
Standalone = "standalone"
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The login window an embedded application opens one level up.
|
|
28
|
+
*
|
|
29
|
+
* It is NOT wrapped in `DispatcherHOC`, and that is the point: the HOC's continuation navigates to
|
|
30
|
+
* `HOME` when it has nothing else to do, which is how a popup ended up rendering the whole
|
|
31
|
+
* application, with its navigation, inside itself. This screen has no continuation at all — it
|
|
32
|
+
* either hands something back and closes, or it says what it is waiting for.
|
|
33
|
+
*
|
|
34
|
+
* It also never runs the authorization machine itself: it forwards to the dispatcher (`next`),
|
|
35
|
+
* which owns that flow, and hands back what the dispatcher issued — see {@link surrogateLoginStep}
|
|
36
|
+
* for why a session already stored in this window is not simply handed back.
|
|
37
|
+
*/
|
|
38
|
+
/** What a surrogate window opened to SIGN IN does with the session it may already hold. */
|
|
39
|
+
export declare enum SurrogateLoginStep {
|
|
40
|
+
/** Drop the stored session and authenticate afresh through the dispatcher. */
|
|
41
|
+
Forget = "forget",
|
|
42
|
+
/** Hand the stored session to the opener — there is no dispatcher to authenticate through. */
|
|
43
|
+
Resume = "resume",
|
|
44
|
+
/** Nothing stored: authenticate through the dispatcher. */
|
|
45
|
+
Authenticate = "authenticate"
|
|
46
|
+
}
|
|
11
47
|
//# sourceMappingURL=consts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../src/login/consts.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,eAAO,MAAM,cAAc,4BAA4B,CAAA;AAEvD,yFAAyF;AACzF,eAAO,MAAM,eAAe,6BAA6B,CAAA;AAEzD;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,MAAM,CAAA"}
|
|
1
|
+
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../src/login/consts.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,eAAO,MAAM,cAAc,4BAA4B,CAAA;AAEvD,yFAAyF;AACzF,eAAO,MAAM,eAAe,6BAA6B,CAAA;AAEzD;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,MAAM,CAAA;AAE3C,4FAA4F;AAC5F,oBAAY,cAAc;IACxB,0EAA0E;IAC1E,OAAO,YAAY;IACnB,uEAAuE;IACvE,OAAO,YAAY;IACnB,sDAAsD;IACtD,OAAO,YAAY;IACnB,gEAAgE;IAChE,QAAQ,aAAa;IACrB,0BAA0B;IAC1B,MAAM,WAAW;IACjB,qEAAqE;IACrE,UAAU,eAAe;CAC1B;AAED;;;;;;;;;;;GAWG;AACH,2FAA2F;AAC3F,oBAAY,kBAAkB;IAC5B,8EAA8E;IAC9E,MAAM,WAAW;IACjB,8FAA8F;IAC9F,MAAM,WAAW;IACjB,2DAA2D;IAC3D,YAAY,iBAAiB;CAC9B"}
|
package/build/login/consts.js
CHANGED
|
@@ -8,4 +8,42 @@ export const SURROGATE_LOGIN = 'owlmeans-surrogate-login';
|
|
|
8
8
|
* ordinary tab.
|
|
9
9
|
*/
|
|
10
10
|
export const SURROGATE_LOGIN_PRIORITY = 100;
|
|
11
|
+
/** What the surrogate window is doing, from the point of view of the person watching it. */
|
|
12
|
+
export var SurrogateStage;
|
|
13
|
+
(function (SurrogateStage) {
|
|
14
|
+
/** Working. No control — there is nothing for the user to do but wait. */
|
|
15
|
+
SurrogateStage["Working"] = "working";
|
|
16
|
+
/** Needs a click: the flow cannot continue without a fresh gesture. */
|
|
17
|
+
SurrogateStage["Gesture"] = "gesture";
|
|
18
|
+
/** Done here; handing the result back and closing. */
|
|
19
|
+
SurrogateStage["Handing"] = "handing";
|
|
20
|
+
/** Acted, but with no channel back to the window that asked. */
|
|
21
|
+
SurrogateStage["Orphaned"] = "orphaned";
|
|
22
|
+
/** Ended with nothing. */
|
|
23
|
+
SurrogateStage["Failed"] = "failed";
|
|
24
|
+
/** Not a surrogate at all — someone opened this address directly. */
|
|
25
|
+
SurrogateStage["Standalone"] = "standalone";
|
|
26
|
+
})(SurrogateStage || (SurrogateStage = {}));
|
|
27
|
+
/**
|
|
28
|
+
* The login window an embedded application opens one level up.
|
|
29
|
+
*
|
|
30
|
+
* It is NOT wrapped in `DispatcherHOC`, and that is the point: the HOC's continuation navigates to
|
|
31
|
+
* `HOME` when it has nothing else to do, which is how a popup ended up rendering the whole
|
|
32
|
+
* application, with its navigation, inside itself. This screen has no continuation at all — it
|
|
33
|
+
* either hands something back and closes, or it says what it is waiting for.
|
|
34
|
+
*
|
|
35
|
+
* It also never runs the authorization machine itself: it forwards to the dispatcher (`next`),
|
|
36
|
+
* which owns that flow, and hands back what the dispatcher issued — see {@link surrogateLoginStep}
|
|
37
|
+
* for why a session already stored in this window is not simply handed back.
|
|
38
|
+
*/
|
|
39
|
+
/** What a surrogate window opened to SIGN IN does with the session it may already hold. */
|
|
40
|
+
export var SurrogateLoginStep;
|
|
41
|
+
(function (SurrogateLoginStep) {
|
|
42
|
+
/** Drop the stored session and authenticate afresh through the dispatcher. */
|
|
43
|
+
SurrogateLoginStep["Forget"] = "forget";
|
|
44
|
+
/** Hand the stored session to the opener — there is no dispatcher to authenticate through. */
|
|
45
|
+
SurrogateLoginStep["Resume"] = "resume";
|
|
46
|
+
/** Nothing stored: authenticate through the dispatcher. */
|
|
47
|
+
SurrogateLoginStep["Authenticate"] = "authenticate";
|
|
48
|
+
})(SurrogateLoginStep || (SurrogateLoginStep = {}));
|
|
11
49
|
//# sourceMappingURL=consts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../src/login/consts.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,MAAM,CAAC,MAAM,cAAc,GAAG,yBAAyB,CAAA;AAEvD,yFAAyF;AACzF,MAAM,CAAC,MAAM,eAAe,GAAG,0BAA0B,CAAA;AAEzD;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,CAAA"}
|
|
1
|
+
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../src/login/consts.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,MAAM,CAAC,MAAM,cAAc,GAAG,yBAAyB,CAAA;AAEvD,yFAAyF;AACzF,MAAM,CAAC,MAAM,eAAe,GAAG,0BAA0B,CAAA;AAEzD;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,CAAA;AAE3C,4FAA4F;AAC5F,MAAM,CAAN,IAAY,cAaX;AAbD,WAAY,cAAc;IACxB,0EAA0E;IAC1E,qCAAmB,CAAA;IACnB,uEAAuE;IACvE,qCAAmB,CAAA;IACnB,sDAAsD;IACtD,qCAAmB,CAAA;IACnB,gEAAgE;IAChE,uCAAqB,CAAA;IACrB,0BAA0B;IAC1B,mCAAiB,CAAA;IACjB,qEAAqE;IACrE,2CAAyB,CAAA;AAC3B,CAAC,EAbW,cAAc,KAAd,cAAc,QAazB;AAED;;;;;;;;;;;GAWG;AACH,2FAA2F;AAC3F,MAAM,CAAN,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAC5B,8EAA8E;IAC9E,uCAAiB,CAAA;IACjB,8FAA8F;IAC9F,uCAAiB,CAAA;IACjB,2DAA2D;IAC3D,mDAA6B,CAAA;AAC/B,CAAC,EAPW,kBAAkB,KAAlB,kBAAkB,QAO7B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
import { SurrogateStage } from './consts.js';
|
|
3
|
+
/**
|
|
4
|
+
* The whole of what a login window shows.
|
|
5
|
+
*
|
|
6
|
+
* Plain elements and inline styles on purpose. This renders in a popup opened by a `web-panel` app,
|
|
7
|
+
* a `mui-panel` app and a generated Tailwind app alike, and none of their stylesheets is loaded
|
|
8
|
+
* here — a class name would simply do nothing. It is also the reason this component carries no
|
|
9
|
+
* dependency on a UI family at all.
|
|
10
|
+
*/
|
|
11
|
+
export declare const box: CSSProperties;
|
|
12
|
+
export declare const action: CSSProperties;
|
|
13
|
+
export declare const COPY: Record<SurrogateStage, {
|
|
14
|
+
key: string;
|
|
15
|
+
en: string;
|
|
16
|
+
action?: [string, string];
|
|
17
|
+
}>;
|
|
18
|
+
export declare const LOGOUT_COPY: Partial<Record<SurrogateStage, {
|
|
19
|
+
key: string;
|
|
20
|
+
en: string;
|
|
21
|
+
}>>;
|
|
22
|
+
//# sourceMappingURL=consts.local.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.local.d.ts","sourceRoot":"","sources":["../../src/login/consts.local.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C;;;;;;;GAOG;AACH,eAAO,MAAM,GAAG,EAAE,aAGjB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,aAGpB,CAAA;AAED,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,cAAc,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAkB/F,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAUpF,CAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { SurrogateStage } from './consts.js';
|
|
2
|
+
/**
|
|
3
|
+
* The whole of what a login window shows.
|
|
4
|
+
*
|
|
5
|
+
* Plain elements and inline styles on purpose. This renders in a popup opened by a `web-panel` app,
|
|
6
|
+
* a `mui-panel` app and a generated Tailwind app alike, and none of their stylesheets is loaded
|
|
7
|
+
* here — a class name would simply do nothing. It is also the reason this component carries no
|
|
8
|
+
* dependency on a UI family at all.
|
|
9
|
+
*/
|
|
10
|
+
export const box = {
|
|
11
|
+
maxWidth: '22rem', margin: '15vh auto', padding: '1.5rem', textAlign: 'center',
|
|
12
|
+
fontFamily: 'system-ui, sans-serif', lineHeight: 1.5,
|
|
13
|
+
};
|
|
14
|
+
export const action = {
|
|
15
|
+
marginTop: '1rem', padding: '.625rem 1.25rem', fontSize: '1rem',
|
|
16
|
+
cursor: 'pointer', borderRadius: '.375rem', border: '1px solid currentColor',
|
|
17
|
+
};
|
|
18
|
+
export const COPY = {
|
|
19
|
+
[SurrogateStage.Working]: { key: 'working', en: 'Signing you in…' },
|
|
20
|
+
[SurrogateStage.Gesture]: {
|
|
21
|
+
key: 'gesture.title', en: 'Continue to sign in.', action: ['gesture.action', 'Sign in'],
|
|
22
|
+
},
|
|
23
|
+
[SurrogateStage.Handing]: { key: 'handing', en: 'Done. Returning to the application…' },
|
|
24
|
+
[SurrogateStage.Orphaned]: {
|
|
25
|
+
key: 'orphaned', en: 'Signed in. You can close this window and continue in the application.',
|
|
26
|
+
action: ['close', 'Close'],
|
|
27
|
+
},
|
|
28
|
+
[SurrogateStage.Failed]: {
|
|
29
|
+
key: 'failed', en: 'That did not complete. You can close this window and try again.',
|
|
30
|
+
action: ['close', 'Close'],
|
|
31
|
+
},
|
|
32
|
+
[SurrogateStage.Standalone]: {
|
|
33
|
+
key: 'standalone.title', en: 'This page is used to sign in from another window.',
|
|
34
|
+
action: ['standalone.action', 'Open the application'],
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
export const LOGOUT_COPY = {
|
|
38
|
+
[SurrogateStage.Working]: { key: 'working', en: 'Signing you out…' },
|
|
39
|
+
[SurrogateStage.Gesture]: { key: 'gesture.title', en: 'Continue to sign out.' },
|
|
40
|
+
[SurrogateStage.Handing]: { key: 'handing', en: 'Signed out. Returning to the application…' },
|
|
41
|
+
[SurrogateStage.Orphaned]: {
|
|
42
|
+
key: 'orphaned', en: 'Signed out. You can close this window.',
|
|
43
|
+
},
|
|
44
|
+
[SurrogateStage.Failed]: {
|
|
45
|
+
key: 'failed', en: 'Sign-out did not complete here. You can close this window.',
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=consts.local.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.local.js","sourceRoot":"","sources":["../../src/login/consts.local.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,GAAG,GAAkB;IAChC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ;IAC9E,UAAU,EAAE,uBAAuB,EAAE,UAAU,EAAE,GAAG;CACrD,CAAA;AAED,MAAM,CAAC,MAAM,MAAM,GAAkB;IACnC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM;IAC/D,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,wBAAwB;CAC7E,CAAA;AAED,MAAM,CAAC,MAAM,IAAI,GAAmF;IAClG,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE,EAAE,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EAAE,EAAE,4DAA4D;KAChF;CACF,CAAA"}
|
package/build/login/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/login/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/login/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,mBAAmB,YAAY,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA"}
|
package/build/login/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/login/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/login/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AAEzB,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA"}
|
package/build/login/screen.d.ts
CHANGED
|
@@ -1,25 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
3
|
-
* The login window an embedded application opens one level up.
|
|
4
|
-
*
|
|
5
|
-
* It is NOT wrapped in `DispatcherHOC`, and that is the point: the HOC's continuation navigates to
|
|
6
|
-
* `HOME` when it has nothing else to do, which is how a popup ended up rendering the whole
|
|
7
|
-
* application, with its navigation, inside itself. This screen has no continuation at all — it
|
|
8
|
-
* either hands something back and closes, or it says what it is waiting for.
|
|
9
|
-
*
|
|
10
|
-
* It also never runs the authorization machine itself: it forwards to the dispatcher (`next`),
|
|
11
|
-
* which owns that flow, and hands back what the dispatcher issued — see {@link surrogateLoginStep}
|
|
12
|
-
* for why a session already stored in this window is not simply handed back.
|
|
13
|
-
*/
|
|
14
|
-
/** What a surrogate window opened to SIGN IN does with the session it may already hold. */
|
|
15
|
-
export declare enum SurrogateLoginStep {
|
|
16
|
-
/** Drop the stored session and authenticate afresh through the dispatcher. */
|
|
17
|
-
Forget = "forget",
|
|
18
|
-
/** Hand the stored session to the opener — there is no dispatcher to authenticate through. */
|
|
19
|
-
Resume = "resume",
|
|
20
|
-
/** Nothing stored: authenticate through the dispatcher. */
|
|
21
|
-
Authenticate = "authenticate"
|
|
22
|
-
}
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { SurrogateLoginStep } from './consts.js';
|
|
23
3
|
/**
|
|
24
4
|
* A sign-in request never reuses the session this window happens to hold.
|
|
25
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screen.d.ts","sourceRoot":"","sources":["../../src/login/screen.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"screen.d.ts","sourceRoot":"","sources":["../../src/login/screen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,EAAE,EAAE,MAAM,OAAO,CAAA;AASjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAGhD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,UAAW,MAAM,GAAG,IAAI,GAAG,SAAS,QAAQ,MAAM,GAAG,IAAI,KAAG,kBAO1F,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,EAyG7B,CAAA"}
|
package/build/login/screen.js
CHANGED
|
@@ -2,33 +2,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useCallback, useEffect, useState } from 'react';
|
|
3
3
|
import { useContext } from '@owlmeans/client';
|
|
4
4
|
import { useI18nLib } from '@owlmeans/client-i18n';
|
|
5
|
-
import { LoginIntent, LoginOutcome, LOGIN_INTENT_QUERY, LOGIN_METHOD_QUERY, LOGIN_NEXT_QUERY
|
|
5
|
+
import { LoginIntent, LoginOutcome, LOGIN_INTENT_QUERY, LOGIN_METHOD_QUERY, LOGIN_NEXT_QUERY } from '@owlmeans/client-auth/login';
|
|
6
6
|
import { USER_ID } from '@owlmeans/client-auth';
|
|
7
|
-
import { LoginSurrogateView
|
|
7
|
+
import { LoginSurrogateView } from './view.js';
|
|
8
|
+
import { SurrogateStage } from './consts.js';
|
|
8
9
|
import { logger } from '@owlmeans/log';
|
|
10
|
+
import { SurrogateLoginStep } from './consts.js';
|
|
9
11
|
const log = logger('web-client:login');
|
|
10
|
-
/**
|
|
11
|
-
* The login window an embedded application opens one level up.
|
|
12
|
-
*
|
|
13
|
-
* It is NOT wrapped in `DispatcherHOC`, and that is the point: the HOC's continuation navigates to
|
|
14
|
-
* `HOME` when it has nothing else to do, which is how a popup ended up rendering the whole
|
|
15
|
-
* application, with its navigation, inside itself. This screen has no continuation at all — it
|
|
16
|
-
* either hands something back and closes, or it says what it is waiting for.
|
|
17
|
-
*
|
|
18
|
-
* It also never runs the authorization machine itself: it forwards to the dispatcher (`next`),
|
|
19
|
-
* which owns that flow, and hands back what the dispatcher issued — see {@link surrogateLoginStep}
|
|
20
|
-
* for why a session already stored in this window is not simply handed back.
|
|
21
|
-
*/
|
|
22
|
-
/** What a surrogate window opened to SIGN IN does with the session it may already hold. */
|
|
23
|
-
export var SurrogateLoginStep;
|
|
24
|
-
(function (SurrogateLoginStep) {
|
|
25
|
-
/** Drop the stored session and authenticate afresh through the dispatcher. */
|
|
26
|
-
SurrogateLoginStep["Forget"] = "forget";
|
|
27
|
-
/** Hand the stored session to the opener — there is no dispatcher to authenticate through. */
|
|
28
|
-
SurrogateLoginStep["Resume"] = "resume";
|
|
29
|
-
/** Nothing stored: authenticate through the dispatcher. */
|
|
30
|
-
SurrogateLoginStep["Authenticate"] = "authenticate";
|
|
31
|
-
})(SurrogateLoginStep || (SurrogateLoginStep = {}));
|
|
32
12
|
/**
|
|
33
13
|
* A sign-in request never reuses the session this window happens to hold.
|
|
34
14
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screen.js","sourceRoot":"","sources":["../../src/login/screen.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"screen.js","sourceRoot":"","sources":["../../src/login/screen.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAW,MAAM,OAAO,CAAA;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,gBAAgB,EAAqB,MAAM,6BAA6B,CAAA;AACpJ,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAE/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAEhD,MAAM,GAAG,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAA;AACtC;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAA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5C,CAAC,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,kBAAkB,IAAI,kBAAkB,CAAC,MAAM,CAAC,EAAE;gBAC/F,CAAC,CAAC,IAAI,CAAA;YACR,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,MAAM,CAAA;QAC/B,CAAC,CAAA;QAED,KAAK,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAQ,EAAE,EAAE;YAC5B,GAAG,CAAC,KAAK,CAAC,wBAAwB,EAAE,CAAC,CAAC,CAAA;YACtC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;YACnB,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;QACjC,CAAC,CAAC,CAAA;IACJ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;IAErB,OAAO,KAAC,kBAAkB,IACxB,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAC9D,SAAS,EAAE,CAAC,GAAG,EAAE,YAAY,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,EAAE,YAAY,EAAE,CAAC,GAC1D,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LoginIntent } from '@owlmeans/client-auth/login';
|
|
2
|
+
import { SurrogateStage } from './consts.js';
|
|
3
|
+
export interface SurrogateViewProps {
|
|
4
|
+
stage: SurrogateStage;
|
|
5
|
+
intent: LoginIntent;
|
|
6
|
+
onAction?: () => void;
|
|
7
|
+
error?: string;
|
|
8
|
+
translate?: (key: string, defaultValue: string) => string;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/login/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,cAAc,CAAA;IACrB,MAAM,EAAE,WAAW,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,MAAM,CAAA;CAC1D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/login/types.ts"],"names":[],"mappings":""}
|
package/build/login/view.d.ts
CHANGED
|
@@ -1,26 +1,4 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
/** What the surrogate window is doing, from the point of view of the person watching it. */
|
|
4
|
-
export declare enum SurrogateStage {
|
|
5
|
-
/** Working. No control — there is nothing for the user to do but wait. */
|
|
6
|
-
Working = "working",
|
|
7
|
-
/** Needs a click: the flow cannot continue without a fresh gesture. */
|
|
8
|
-
Gesture = "gesture",
|
|
9
|
-
/** Done here; handing the result back and closing. */
|
|
10
|
-
Handing = "handing",
|
|
11
|
-
/** Acted, but with no channel back to the window that asked. */
|
|
12
|
-
Orphaned = "orphaned",
|
|
13
|
-
/** Ended with nothing. */
|
|
14
|
-
Failed = "failed",
|
|
15
|
-
/** Not a surrogate at all — someone opened this address directly. */
|
|
16
|
-
Standalone = "standalone"
|
|
17
|
-
}
|
|
18
|
-
export interface SurrogateViewProps {
|
|
19
|
-
stage: SurrogateStage;
|
|
20
|
-
intent: LoginIntent;
|
|
21
|
-
onAction?: () => void;
|
|
22
|
-
error?: string;
|
|
23
|
-
translate?: (key: string, defaultValue: string) => string;
|
|
24
|
-
}
|
|
2
|
+
import type { SurrogateViewProps } from './types.js';
|
|
25
3
|
export declare const LoginSurrogateView: FC<SurrogateViewProps>;
|
|
26
4
|
//# sourceMappingURL=view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../src/login/view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../src/login/view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAG/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAEpD,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,kBAAkB,CAgBrD,CAAA"}
|
package/build/login/view.js
CHANGED
|
@@ -1,67 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { LoginIntent } from '@owlmeans/client-auth/login';
|
|
3
|
-
|
|
4
|
-
export var SurrogateStage;
|
|
5
|
-
(function (SurrogateStage) {
|
|
6
|
-
/** Working. No control — there is nothing for the user to do but wait. */
|
|
7
|
-
SurrogateStage["Working"] = "working";
|
|
8
|
-
/** Needs a click: the flow cannot continue without a fresh gesture. */
|
|
9
|
-
SurrogateStage["Gesture"] = "gesture";
|
|
10
|
-
/** Done here; handing the result back and closing. */
|
|
11
|
-
SurrogateStage["Handing"] = "handing";
|
|
12
|
-
/** Acted, but with no channel back to the window that asked. */
|
|
13
|
-
SurrogateStage["Orphaned"] = "orphaned";
|
|
14
|
-
/** Ended with nothing. */
|
|
15
|
-
SurrogateStage["Failed"] = "failed";
|
|
16
|
-
/** Not a surrogate at all — someone opened this address directly. */
|
|
17
|
-
SurrogateStage["Standalone"] = "standalone";
|
|
18
|
-
})(SurrogateStage || (SurrogateStage = {}));
|
|
19
|
-
/**
|
|
20
|
-
* The whole of what a login window shows.
|
|
21
|
-
*
|
|
22
|
-
* Plain elements and inline styles on purpose. This renders in a popup opened by a `web-panel` app,
|
|
23
|
-
* a `mui-panel` app and a generated Tailwind app alike, and none of their stylesheets is loaded
|
|
24
|
-
* here — a class name would simply do nothing. It is also the reason this component carries no
|
|
25
|
-
* dependency on a UI family at all.
|
|
26
|
-
*/
|
|
27
|
-
const box = {
|
|
28
|
-
maxWidth: '22rem', margin: '15vh auto', padding: '1.5rem', textAlign: 'center',
|
|
29
|
-
fontFamily: 'system-ui, sans-serif', lineHeight: 1.5,
|
|
30
|
-
};
|
|
31
|
-
const action = {
|
|
32
|
-
marginTop: '1rem', padding: '.625rem 1.25rem', fontSize: '1rem',
|
|
33
|
-
cursor: 'pointer', borderRadius: '.375rem', border: '1px solid currentColor',
|
|
34
|
-
};
|
|
35
|
-
const COPY = {
|
|
36
|
-
[SurrogateStage.Working]: { key: 'working', en: 'Signing you in…' },
|
|
37
|
-
[SurrogateStage.Gesture]: {
|
|
38
|
-
key: 'gesture.title', en: 'Continue to sign in.', action: ['gesture.action', 'Sign in'],
|
|
39
|
-
},
|
|
40
|
-
[SurrogateStage.Handing]: { key: 'handing', en: 'Done. Returning to the application…' },
|
|
41
|
-
[SurrogateStage.Orphaned]: {
|
|
42
|
-
key: 'orphaned', en: 'Signed in. You can close this window and continue in the application.',
|
|
43
|
-
action: ['close', 'Close'],
|
|
44
|
-
},
|
|
45
|
-
[SurrogateStage.Failed]: {
|
|
46
|
-
key: 'failed', en: 'That did not complete. You can close this window and try again.',
|
|
47
|
-
action: ['close', 'Close'],
|
|
48
|
-
},
|
|
49
|
-
[SurrogateStage.Standalone]: {
|
|
50
|
-
key: 'standalone.title', en: 'This page is used to sign in from another window.',
|
|
51
|
-
action: ['standalone.action', 'Open the application'],
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
const LOGOUT_COPY = {
|
|
55
|
-
[SurrogateStage.Working]: { key: 'working', en: 'Signing you out…' },
|
|
56
|
-
[SurrogateStage.Gesture]: { key: 'gesture.title', en: 'Continue to sign out.' },
|
|
57
|
-
[SurrogateStage.Handing]: { key: 'handing', en: 'Signed out. Returning to the application…' },
|
|
58
|
-
[SurrogateStage.Orphaned]: {
|
|
59
|
-
key: 'orphaned', en: 'Signed out. You can close this window.',
|
|
60
|
-
},
|
|
61
|
-
[SurrogateStage.Failed]: {
|
|
62
|
-
key: 'failed', en: 'Sign-out did not complete here. You can close this window.',
|
|
63
|
-
},
|
|
64
|
-
};
|
|
3
|
+
import { action, box, COPY, LOGOUT_COPY } from './consts.local.js';
|
|
65
4
|
export const LoginSurrogateView = ({ stage, intent, onAction, error, translate }) => {
|
|
66
5
|
const t = translate ?? ((_key, defaultValue) => defaultValue);
|
|
67
6
|
const scope = intent === LoginIntent.Logout ? 'logout' : 'login';
|
package/build/login/view.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.js","sourceRoot":"","sources":["../../src/login/view.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;
|
|
1
|
+
{"version":3,"file":"view.js","sourceRoot":"","sources":["../../src/login/view.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACzD,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAGlE,MAAM,CAAC,MAAM,kBAAkB,GAA2B,CACxD,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,EAC7C,EAAE;IACF,MAAM,CAAC,GAAG,SAAS,IAAI,CAAC,CAAC,IAAY,EAAE,YAAoB,EAAE,EAAE,CAAC,YAAY,CAAC,CAAA;IAC7E,MAAM,KAAK,GAAG,MAAM,KAAK,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAA;IAChE,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAA;IACxB,MAAM,IAAI,GAAG,CAAC,MAAM,KAAK,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,IAAI,CAAA;IAErF,OAAO,eAAK,KAAK,EAAE,GAAG,0BAAwB,KAAK,2BAAyB,MAAM,aAChF,sBAAI,CAAC,CAAC,aAAa,KAAK,IAAI,IAAI,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,GAAK,EACpD,KAAK,IAAI,IAAI,IAAI,KAAK,KAAK,EAAE;gBAC5B,YAAG,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,IAAI,EAAC,OAAO,YAAE,KAAK,GAAK,EAC3E,IAAI,CAAC,MAAM,IAAI,IAAI,IAAI,QAAQ,IAAI,IAAI,IAAI,iBAAQ,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,YAC/F,CAAC,CAAC,aAAa,KAAK,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GACnD,IACL,CAAA;AACR,CAAC,CAAA"}
|
package/build/middleware.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../src/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../src/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAA4C,MAAM,mBAAmB,CAAA;AAO7F,eAAO,MAAM,gBAAgB,EAAE,UAuC9B,CAAA"}
|
package/build/middleware.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.js","sourceRoot":"","s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AAC;gCACvB,MAAM,GAAG,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;gCACpC,IAAI,GAAG,YAAY,WAAW,EAAE,CAAC;oCAC/B,IAAI,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;wCACrC,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;4CAClC,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAc,aAAa,CAAC,CAAA;4CACxD,MAAM,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;4CAC5B,MAAM,GAAG,CAAA;wCACX,CAAC;oCACH,CAAC;gCACH,CAAC;4BACH,CAAC;4BACD,MAAM,CAAC,CAAA;wBACT,CAAC;oBACH,CAAC,CAAyB,CAAA;gBAE5B,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAA;IACJ,CAAC;CACF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.local.d.ts","sourceRoot":"","sources":["../src/types.local.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAEnE,MAAM,WAAW,MAAO,SAAQ,gBAAgB,CAAC,OAAO,CAAC;IACvD,4BAA4B,CAAC,EAAE,OAAO,CAAA;CACvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.local.js","sourceRoot":"","sources":["../src/types.local.ts"],"names":[],"mappings":""}
|
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.60",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -21,24 +21,24 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@owlmeans/auth": "^0.1.18-rc.
|
|
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.
|
|
33
|
-
"@owlmeans/config": "^0.1.18-rc.
|
|
34
|
-
"@owlmeans/context": "^0.1.18-rc.
|
|
35
|
-
"@owlmeans/error": "^0.1.18-rc.
|
|
36
|
-
"@owlmeans/i18n": "^0.1.18-rc.
|
|
37
|
-
"@owlmeans/log": "^0.1.18-rc.
|
|
38
|
-
"@owlmeans/route": "^0.1.18-rc.
|
|
39
|
-
"@owlmeans/web-db": "^0.1.18-rc.
|
|
40
|
-
"@owlmeans/web-router": "^0.1.18-rc.
|
|
41
|
-
"react-dropzone": "^
|
|
24
|
+
"@owlmeans/auth": "^0.1.18-rc.39",
|
|
25
|
+
"@owlmeans/auth-common": "^0.1.18-rc.46",
|
|
26
|
+
"@owlmeans/client": "^0.1.18-rc.50",
|
|
27
|
+
"@owlmeans/client-auth": "^0.1.18-rc.57",
|
|
28
|
+
"@owlmeans/client-context": "^0.1.18-rc.47",
|
|
29
|
+
"@owlmeans/client-i18n": "^0.1.18-rc.49",
|
|
30
|
+
"@owlmeans/client-entrypoint": "^0.1.18-rc.46",
|
|
31
|
+
"@owlmeans/client-resource": "^0.1.18-rc.46",
|
|
32
|
+
"@owlmeans/client-route": "^0.1.18-rc.47",
|
|
33
|
+
"@owlmeans/config": "^0.1.18-rc.43",
|
|
34
|
+
"@owlmeans/context": "^0.1.18-rc.33",
|
|
35
|
+
"@owlmeans/error": "^0.1.18-rc.37",
|
|
36
|
+
"@owlmeans/i18n": "^0.1.18-rc.38",
|
|
37
|
+
"@owlmeans/log": "^0.1.18-rc.1",
|
|
38
|
+
"@owlmeans/route": "^0.1.18-rc.34",
|
|
39
|
+
"@owlmeans/web-db": "^0.1.18-rc.47",
|
|
40
|
+
"@owlmeans/web-router": "^0.1.18-rc.48",
|
|
41
|
+
"react-dropzone": "^20.1.2"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": "*",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@owlmeans/dep-config": "workspace:*",
|
|
49
|
-
"@types/react": "^19.
|
|
50
|
-
"@types/react-dom": "^19.
|
|
49
|
+
"@types/react": "^19.3.0",
|
|
50
|
+
"@types/react-dom": "^19.3.0",
|
|
51
51
|
"nodemon": "^3.1.14",
|
|
52
52
|
"typescript": "^7.0.2"
|
|
53
53
|
},
|
|
@@ -5,7 +5,8 @@ import { AUTH_QUERY } from '@owlmeans/auth'
|
|
|
5
5
|
import {
|
|
6
6
|
FallbackLoginScreen, LoginIntent, LoginOutcome, ResumeAction, resumeAction,
|
|
7
7
|
} from '@owlmeans/client-auth/login'
|
|
8
|
-
import { LoginSurrogateView
|
|
8
|
+
import { LoginSurrogateView } from '../../login/view.js'
|
|
9
|
+
import { SurrogateStage } from '../../login/consts.js'
|
|
9
10
|
import { useContext } from '../../context.js'
|
|
10
11
|
|
|
11
12
|
export const Dispatcher = DispatcherHOC(({ provideToken, navigate }) => {
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react'
|
|
2
|
+
import { SurrogateStage } from './consts.js'
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The whole of what a login window shows.
|
|
6
|
+
*
|
|
7
|
+
* Plain elements and inline styles on purpose. This renders in a popup opened by a `web-panel` app,
|
|
8
|
+
* a `mui-panel` app and a generated Tailwind app alike, and none of their stylesheets is loaded
|
|
9
|
+
* here — a class name would simply do nothing. It is also the reason this component carries no
|
|
10
|
+
* dependency on a UI family at all.
|
|
11
|
+
*/
|
|
12
|
+
export const box: CSSProperties = {
|
|
13
|
+
maxWidth: '22rem', margin: '15vh auto', padding: '1.5rem', textAlign: 'center',
|
|
14
|
+
fontFamily: 'system-ui, sans-serif', lineHeight: 1.5,
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const action: CSSProperties = {
|
|
18
|
+
marginTop: '1rem', padding: '.625rem 1.25rem', fontSize: '1rem',
|
|
19
|
+
cursor: 'pointer', borderRadius: '.375rem', border: '1px solid currentColor',
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const COPY: Record<SurrogateStage, { key: string, en: string, action?: [string, string] }> = {
|
|
23
|
+
[SurrogateStage.Working]: { key: 'working', en: 'Signing you in…' },
|
|
24
|
+
[SurrogateStage.Gesture]: {
|
|
25
|
+
key: 'gesture.title', en: 'Continue to sign in.', action: ['gesture.action', 'Sign in'],
|
|
26
|
+
},
|
|
27
|
+
[SurrogateStage.Handing]: { key: 'handing', en: 'Done. Returning to the application…' },
|
|
28
|
+
[SurrogateStage.Orphaned]: {
|
|
29
|
+
key: 'orphaned', en: 'Signed in. You can close this window and continue in the application.',
|
|
30
|
+
action: ['close', 'Close'],
|
|
31
|
+
},
|
|
32
|
+
[SurrogateStage.Failed]: {
|
|
33
|
+
key: 'failed', en: 'That did not complete. You can close this window and try again.',
|
|
34
|
+
action: ['close', 'Close'],
|
|
35
|
+
},
|
|
36
|
+
[SurrogateStage.Standalone]: {
|
|
37
|
+
key: 'standalone.title', en: 'This page is used to sign in from another window.',
|
|
38
|
+
action: ['standalone.action', 'Open the application'],
|
|
39
|
+
},
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export const LOGOUT_COPY: Partial<Record<SurrogateStage, { key: string, en: string }>> = {
|
|
43
|
+
[SurrogateStage.Working]: { key: 'working', en: 'Signing you out…' },
|
|
44
|
+
[SurrogateStage.Gesture]: { key: 'gesture.title', en: 'Continue to sign out.' },
|
|
45
|
+
[SurrogateStage.Handing]: { key: 'handing', en: 'Signed out. Returning to the application…' },
|
|
46
|
+
[SurrogateStage.Orphaned]: {
|
|
47
|
+
key: 'orphaned', en: 'Signed out. You can close this window.',
|
|
48
|
+
},
|
|
49
|
+
[SurrogateStage.Failed]: {
|
|
50
|
+
key: 'failed', en: 'Sign-out did not complete here. You can close this window.',
|
|
51
|
+
},
|
|
52
|
+
}
|
package/src/login/consts.ts
CHANGED
|
@@ -10,3 +10,41 @@ export const SURROGATE_LOGIN = 'owlmeans-surrogate-login'
|
|
|
10
10
|
* ordinary tab.
|
|
11
11
|
*/
|
|
12
12
|
export const SURROGATE_LOGIN_PRIORITY = 100
|
|
13
|
+
|
|
14
|
+
/** What the surrogate window is doing, from the point of view of the person watching it. */
|
|
15
|
+
export enum SurrogateStage {
|
|
16
|
+
/** Working. No control — there is nothing for the user to do but wait. */
|
|
17
|
+
Working = 'working',
|
|
18
|
+
/** Needs a click: the flow cannot continue without a fresh gesture. */
|
|
19
|
+
Gesture = 'gesture',
|
|
20
|
+
/** Done here; handing the result back and closing. */
|
|
21
|
+
Handing = 'handing',
|
|
22
|
+
/** Acted, but with no channel back to the window that asked. */
|
|
23
|
+
Orphaned = 'orphaned',
|
|
24
|
+
/** Ended with nothing. */
|
|
25
|
+
Failed = 'failed',
|
|
26
|
+
/** Not a surrogate at all — someone opened this address directly. */
|
|
27
|
+
Standalone = 'standalone',
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The login window an embedded application opens one level up.
|
|
32
|
+
*
|
|
33
|
+
* It is NOT wrapped in `DispatcherHOC`, and that is the point: the HOC's continuation navigates to
|
|
34
|
+
* `HOME` when it has nothing else to do, which is how a popup ended up rendering the whole
|
|
35
|
+
* application, with its navigation, inside itself. This screen has no continuation at all — it
|
|
36
|
+
* either hands something back and closes, or it says what it is waiting for.
|
|
37
|
+
*
|
|
38
|
+
* It also never runs the authorization machine itself: it forwards to the dispatcher (`next`),
|
|
39
|
+
* which owns that flow, and hands back what the dispatcher issued — see {@link surrogateLoginStep}
|
|
40
|
+
* for why a session already stored in this window is not simply handed back.
|
|
41
|
+
*/
|
|
42
|
+
/** What a surrogate window opened to SIGN IN does with the session it may already hold. */
|
|
43
|
+
export enum SurrogateLoginStep {
|
|
44
|
+
/** Drop the stored session and authenticate afresh through the dispatcher. */
|
|
45
|
+
Forget = 'forget',
|
|
46
|
+
/** Hand the stored session to the opener — there is no dispatcher to authenticate through. */
|
|
47
|
+
Resume = 'resume',
|
|
48
|
+
/** Nothing stored: authenticate through the dispatcher. */
|
|
49
|
+
Authenticate = 'authenticate',
|
|
50
|
+
}
|
package/src/login/index.ts
CHANGED
package/src/login/screen.tsx
CHANGED
|
@@ -1,40 +1,15 @@
|
|
|
1
|
-
import { useCallback, useEffect, useState } from 'react'
|
|
2
|
-
import type { FC } from 'react'
|
|
1
|
+
import { useCallback, useEffect, useState, type FC } from 'react'
|
|
3
2
|
import { useContext } from '@owlmeans/client'
|
|
4
3
|
import { useI18nLib } from '@owlmeans/client-i18n'
|
|
5
|
-
import {
|
|
6
|
-
LoginIntent, LoginOutcome, LOGIN_INTENT_QUERY, LOGIN_METHOD_QUERY, LOGIN_NEXT_QUERY,
|
|
7
|
-
} from '@owlmeans/client-auth/login'
|
|
8
|
-
import type { LoginService } from '@owlmeans/client-auth/login'
|
|
4
|
+
import { LoginIntent, LoginOutcome, LOGIN_INTENT_QUERY, LOGIN_METHOD_QUERY, LOGIN_NEXT_QUERY, type LoginService } from '@owlmeans/client-auth/login'
|
|
9
5
|
import { USER_ID } from '@owlmeans/client-auth'
|
|
10
6
|
import type { AppContext } from '../types.js'
|
|
11
|
-
import { LoginSurrogateView
|
|
7
|
+
import { LoginSurrogateView } from './view.js'
|
|
8
|
+
import { SurrogateStage } from './consts.js'
|
|
12
9
|
import { logger } from '@owlmeans/log'
|
|
10
|
+
import { SurrogateLoginStep } from './consts.js'
|
|
13
11
|
|
|
14
12
|
const log = logger('web-client:login')
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* The login window an embedded application opens one level up.
|
|
18
|
-
*
|
|
19
|
-
* It is NOT wrapped in `DispatcherHOC`, and that is the point: the HOC's continuation navigates to
|
|
20
|
-
* `HOME` when it has nothing else to do, which is how a popup ended up rendering the whole
|
|
21
|
-
* application, with its navigation, inside itself. This screen has no continuation at all — it
|
|
22
|
-
* either hands something back and closes, or it says what it is waiting for.
|
|
23
|
-
*
|
|
24
|
-
* It also never runs the authorization machine itself: it forwards to the dispatcher (`next`),
|
|
25
|
-
* which owns that flow, and hands back what the dispatcher issued — see {@link surrogateLoginStep}
|
|
26
|
-
* for why a session already stored in this window is not simply handed back.
|
|
27
|
-
*/
|
|
28
|
-
/** What a surrogate window opened to SIGN IN does with the session it may already hold. */
|
|
29
|
-
export enum SurrogateLoginStep {
|
|
30
|
-
/** Drop the stored session and authenticate afresh through the dispatcher. */
|
|
31
|
-
Forget = 'forget',
|
|
32
|
-
/** Hand the stored session to the opener — there is no dispatcher to authenticate through. */
|
|
33
|
-
Resume = 'resume',
|
|
34
|
-
/** Nothing stored: authenticate through the dispatcher. */
|
|
35
|
-
Authenticate = 'authenticate',
|
|
36
|
-
}
|
|
37
|
-
|
|
38
13
|
/**
|
|
39
14
|
* A sign-in request never reuses the session this window happens to hold.
|
|
40
15
|
*
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LoginIntent } from '@owlmeans/client-auth/login'
|
|
2
|
+
import { SurrogateStage } from './consts.js'
|
|
3
|
+
|
|
4
|
+
export interface SurrogateViewProps {
|
|
5
|
+
stage: SurrogateStage
|
|
6
|
+
intent: LoginIntent
|
|
7
|
+
onAction?: () => void
|
|
8
|
+
error?: string
|
|
9
|
+
translate?: (key: string, defaultValue: string) => string
|
|
10
|
+
}
|
package/src/login/view.tsx
CHANGED
|
@@ -1,79 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FC } from 'react'
|
|
2
2
|
import { LoginIntent } from '@owlmeans/client-auth/login'
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export enum SurrogateStage {
|
|
6
|
-
/** Working. No control — there is nothing for the user to do but wait. */
|
|
7
|
-
Working = 'working',
|
|
8
|
-
/** Needs a click: the flow cannot continue without a fresh gesture. */
|
|
9
|
-
Gesture = 'gesture',
|
|
10
|
-
/** Done here; handing the result back and closing. */
|
|
11
|
-
Handing = 'handing',
|
|
12
|
-
/** Acted, but with no channel back to the window that asked. */
|
|
13
|
-
Orphaned = 'orphaned',
|
|
14
|
-
/** Ended with nothing. */
|
|
15
|
-
Failed = 'failed',
|
|
16
|
-
/** Not a surrogate at all — someone opened this address directly. */
|
|
17
|
-
Standalone = 'standalone',
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface SurrogateViewProps {
|
|
21
|
-
stage: SurrogateStage
|
|
22
|
-
intent: LoginIntent
|
|
23
|
-
onAction?: () => void
|
|
24
|
-
error?: string
|
|
25
|
-
translate?: (key: string, defaultValue: string) => string
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* The whole of what a login window shows.
|
|
30
|
-
*
|
|
31
|
-
* Plain elements and inline styles on purpose. This renders in a popup opened by a `web-panel` app,
|
|
32
|
-
* a `mui-panel` app and a generated Tailwind app alike, and none of their stylesheets is loaded
|
|
33
|
-
* here — a class name would simply do nothing. It is also the reason this component carries no
|
|
34
|
-
* dependency on a UI family at all.
|
|
35
|
-
*/
|
|
36
|
-
const box: CSSProperties = {
|
|
37
|
-
maxWidth: '22rem', margin: '15vh auto', padding: '1.5rem', textAlign: 'center',
|
|
38
|
-
fontFamily: 'system-ui, sans-serif', lineHeight: 1.5,
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
const action: CSSProperties = {
|
|
42
|
-
marginTop: '1rem', padding: '.625rem 1.25rem', fontSize: '1rem',
|
|
43
|
-
cursor: 'pointer', borderRadius: '.375rem', border: '1px solid currentColor',
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
const COPY: Record<SurrogateStage, { key: string, en: string, action?: [string, string] }> = {
|
|
47
|
-
[SurrogateStage.Working]: { key: 'working', en: 'Signing you in…' },
|
|
48
|
-
[SurrogateStage.Gesture]: {
|
|
49
|
-
key: 'gesture.title', en: 'Continue to sign in.', action: ['gesture.action', 'Sign in'],
|
|
50
|
-
},
|
|
51
|
-
[SurrogateStage.Handing]: { key: 'handing', en: 'Done. Returning to the application…' },
|
|
52
|
-
[SurrogateStage.Orphaned]: {
|
|
53
|
-
key: 'orphaned', en: 'Signed in. You can close this window and continue in the application.',
|
|
54
|
-
action: ['close', 'Close'],
|
|
55
|
-
},
|
|
56
|
-
[SurrogateStage.Failed]: {
|
|
57
|
-
key: 'failed', en: 'That did not complete. You can close this window and try again.',
|
|
58
|
-
action: ['close', 'Close'],
|
|
59
|
-
},
|
|
60
|
-
[SurrogateStage.Standalone]: {
|
|
61
|
-
key: 'standalone.title', en: 'This page is used to sign in from another window.',
|
|
62
|
-
action: ['standalone.action', 'Open the application'],
|
|
63
|
-
},
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
const LOGOUT_COPY: Partial<Record<SurrogateStage, { key: string, en: string }>> = {
|
|
67
|
-
[SurrogateStage.Working]: { key: 'working', en: 'Signing you out…' },
|
|
68
|
-
[SurrogateStage.Gesture]: { key: 'gesture.title', en: 'Continue to sign out.' },
|
|
69
|
-
[SurrogateStage.Handing]: { key: 'handing', en: 'Signed out. Returning to the application…' },
|
|
70
|
-
[SurrogateStage.Orphaned]: {
|
|
71
|
-
key: 'orphaned', en: 'Signed out. You can close this window.',
|
|
72
|
-
},
|
|
73
|
-
[SurrogateStage.Failed]: {
|
|
74
|
-
key: 'failed', en: 'Sign-out did not complete here. You can close this window.',
|
|
75
|
-
},
|
|
76
|
-
}
|
|
3
|
+
import { action, box, COPY, LOGOUT_COPY } from './consts.local.js'
|
|
4
|
+
import type { SurrogateViewProps } from './types.js'
|
|
77
5
|
|
|
78
6
|
export const LoginSurrogateView: FC<SurrogateViewProps> = (
|
|
79
7
|
{ stage, intent, onAction, error, translate }
|
package/src/middleware.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { MiddlewareType, MiddlewareStage, AppType } from '@owlmeans/context'
|
|
3
|
-
import type { ClientEntrypoint } from '@owlmeans/client-entrypoint'
|
|
1
|
+
import { type Middleware, MiddlewareType, MiddlewareStage, AppType } from '@owlmeans/context'
|
|
4
2
|
import { AuthUnknown } from '@owlmeans/auth'
|
|
5
3
|
import { ResilientError } from '@owlmeans/error'
|
|
6
4
|
import { DEFAULT_ALIAS } from '@owlmeans/client-auth'
|
|
7
5
|
import { AuthService } from '@owlmeans/auth-common'
|
|
6
|
+
import type { Perked } from './types.local.js'
|
|
8
7
|
|
|
9
8
|
export const logoutMiddleware: Middleware = {
|
|
10
9
|
type: MiddlewareType.Context,
|
|
@@ -47,6 +46,3 @@ export const logoutMiddleware: Middleware = {
|
|
|
47
46
|
}
|
|
48
47
|
}
|
|
49
48
|
|
|
50
|
-
interface Perked extends ClientEntrypoint<unknown> {
|
|
51
|
-
_auth_web_middleware_applied?: boolean
|
|
52
|
-
}
|
|
@@ -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
|
-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