@owlmeans/client-auth 0.1.18-rc.8 → 0.1.18

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.
Files changed (259) hide show
  1. package/README.md +283 -37
  2. package/agent-meta/manifest.json +50 -4
  3. package/agent-meta/skills/client-auth/SKILL.md +85 -23
  4. package/agent-meta/skills/client-auth/parts/login.md +77 -0
  5. package/agent-meta/skills/client-auth/parts/manager.md +37 -0
  6. package/build/components/dispatcher/component.d.ts.map +1 -1
  7. package/build/components/dispatcher/component.js +26 -6
  8. package/build/components/dispatcher/component.js.map +1 -1
  9. package/build/components/dispatcher/types.local.d.ts +7 -0
  10. package/build/components/dispatcher/types.local.d.ts.map +1 -0
  11. package/build/components/dispatcher/types.local.js +2 -0
  12. package/build/components/dispatcher/types.local.js.map +1 -0
  13. package/build/entrypoints.d.ts +7 -0
  14. package/build/entrypoints.d.ts.map +1 -0
  15. package/build/entrypoints.js +7 -0
  16. package/build/entrypoints.js.map +1 -0
  17. package/build/helper.d.ts +2 -1
  18. package/build/helper.d.ts.map +1 -1
  19. package/build/helper.js +28 -5
  20. package/build/helper.js.map +1 -1
  21. package/build/index.d.ts +1 -1
  22. package/build/index.d.ts.map +1 -1
  23. package/build/index.js +1 -1
  24. package/build/index.js.map +1 -1
  25. package/build/login/adopt/types.d.ts +26 -0
  26. package/build/login/adopt/types.d.ts.map +1 -0
  27. package/build/login/adopt/types.js +2 -0
  28. package/build/login/adopt/types.js.map +1 -0
  29. package/build/login/adopt.d.ts +7 -12
  30. package/build/login/adopt.d.ts.map +1 -1
  31. package/build/login/adopt.js +15 -14
  32. package/build/login/adopt.js.map +1 -1
  33. package/build/login/consts.d.ts +89 -4
  34. package/build/login/consts.d.ts.map +1 -1
  35. package/build/login/consts.js +93 -5
  36. package/build/login/consts.js.map +1 -1
  37. package/build/login/consts.local.d.ts +16 -0
  38. package/build/login/consts.local.d.ts.map +1 -0
  39. package/build/login/consts.local.js +30 -0
  40. package/build/login/consts.local.js.map +1 -0
  41. package/build/login/credit/types.d.ts +7 -0
  42. package/build/login/credit/types.d.ts.map +1 -0
  43. package/build/login/credit/types.js +2 -0
  44. package/build/login/credit/types.js.map +1 -0
  45. package/build/login/credit.d.ts +19 -0
  46. package/build/login/credit.d.ts.map +1 -0
  47. package/build/login/credit.js +58 -0
  48. package/build/login/credit.js.map +1 -0
  49. package/build/login/env/types.d.ts +35 -0
  50. package/build/login/env/types.d.ts.map +1 -0
  51. package/build/login/env/types.js +2 -0
  52. package/build/login/env/types.js.map +1 -0
  53. package/build/login/env.d.ts +5 -29
  54. package/build/login/env.d.ts.map +1 -1
  55. package/build/login/env.js +63 -80
  56. package/build/login/env.js.map +1 -1
  57. package/build/login/flow.d.ts +20 -0
  58. package/build/login/flow.d.ts.map +1 -0
  59. package/build/login/flow.js +39 -0
  60. package/build/login/flow.js.map +1 -0
  61. package/build/login/hook.d.ts +30 -4
  62. package/build/login/hook.d.ts.map +1 -1
  63. package/build/login/hook.js +53 -18
  64. package/build/login/hook.js.map +1 -1
  65. package/build/login/i18n/be.json +41 -0
  66. package/build/login/i18n/de.json +41 -0
  67. package/build/login/i18n/en.json +41 -0
  68. package/build/login/i18n/es.json +41 -0
  69. package/build/login/i18n/fr.json +41 -0
  70. package/build/login/i18n/pl.json +41 -0
  71. package/build/login/i18n/ru.json +41 -0
  72. package/build/login/i18n/uk.json +41 -0
  73. package/build/login/i18n.d.ts +2 -0
  74. package/build/login/i18n.d.ts.map +1 -0
  75. package/build/login/i18n.js +27 -0
  76. package/build/login/i18n.js.map +1 -0
  77. package/build/login/index.d.ts +20 -0
  78. package/build/login/index.d.ts.map +1 -1
  79. package/build/login/index.js +11 -0
  80. package/build/login/index.js.map +1 -1
  81. package/build/login/land/types.d.ts +52 -0
  82. package/build/login/land/types.d.ts.map +1 -0
  83. package/build/login/land/types.js +2 -0
  84. package/build/login/land/types.js.map +1 -0
  85. package/build/login/land.d.ts +6 -0
  86. package/build/login/land.d.ts.map +1 -0
  87. package/build/login/land.js +122 -0
  88. package/build/login/land.js.map +1 -0
  89. package/build/login/methods/types.d.ts +30 -0
  90. package/build/login/methods/types.d.ts.map +1 -0
  91. package/build/login/methods/types.js +2 -0
  92. package/build/login/methods/types.js.map +1 -0
  93. package/build/login/methods.d.ts +7 -0
  94. package/build/login/methods.d.ts.map +1 -0
  95. package/build/login/methods.js +87 -0
  96. package/build/login/methods.js.map +1 -0
  97. package/build/login/resume/types.d.ts +24 -0
  98. package/build/login/resume/types.d.ts.map +1 -0
  99. package/build/login/resume/types.js +2 -0
  100. package/build/login/resume/types.js.map +1 -0
  101. package/build/login/resume.d.ts +9 -0
  102. package/build/login/resume.d.ts.map +1 -0
  103. package/build/login/resume.js +38 -0
  104. package/build/login/resume.js.map +1 -0
  105. package/build/login/screen.d.ts +17 -0
  106. package/build/login/screen.d.ts.map +1 -0
  107. package/build/login/screen.js +66 -0
  108. package/build/login/screen.js.map +1 -0
  109. package/build/login/service.d.ts +6 -5
  110. package/build/login/service.d.ts.map +1 -1
  111. package/build/login/service.js +141 -15
  112. package/build/login/service.js.map +1 -1
  113. package/build/login/start/types.d.ts +29 -0
  114. package/build/login/start/types.d.ts.map +1 -0
  115. package/build/login/start/types.js +2 -0
  116. package/build/login/start/types.js.map +1 -0
  117. package/build/login/start.d.ts +5 -0
  118. package/build/login/start.d.ts.map +1 -0
  119. package/build/login/start.js +36 -0
  120. package/build/login/start.js.map +1 -0
  121. package/build/login/surrogate/types.d.ts +9 -0
  122. package/build/login/surrogate/types.d.ts.map +1 -0
  123. package/build/login/surrogate/types.js +2 -0
  124. package/build/login/surrogate/types.js.map +1 -0
  125. package/build/login/surrogate.d.ts +13 -0
  126. package/build/login/surrogate.d.ts.map +1 -0
  127. package/build/login/surrogate.js +33 -0
  128. package/build/login/surrogate.js.map +1 -0
  129. package/build/login/terms/types.d.ts +112 -0
  130. package/build/login/terms/types.d.ts.map +1 -0
  131. package/build/login/terms/types.js +2 -0
  132. package/build/login/terms/types.js.map +1 -0
  133. package/build/login/terms-config.d.ts +65 -0
  134. package/build/login/terms-config.d.ts.map +1 -0
  135. package/build/login/terms-config.js +2 -0
  136. package/build/login/terms-config.js.map +1 -0
  137. package/build/login/terms.d.ts +21 -0
  138. package/build/login/terms.d.ts.map +1 -0
  139. package/build/login/terms.js +235 -0
  140. package/build/login/terms.js.map +1 -0
  141. package/build/login/types.d.ts +223 -16
  142. package/build/login/types.d.ts.map +1 -1
  143. package/build/login/types.js +1 -16
  144. package/build/login/types.js.map +1 -1
  145. package/build/manager/components/authentication/control.d.ts.map +1 -1
  146. package/build/manager/components/authentication/control.js +3 -3
  147. package/build/manager/components/authentication/control.js.map +1 -1
  148. package/build/manager/components/authentication/types.d.ts +2 -2
  149. package/build/manager/components/authentication/types.d.ts.map +1 -1
  150. package/build/manager/components/tunnel-consumer.js +2 -2
  151. package/build/manager/components/tunnel-consumer.js.map +1 -1
  152. package/build/manager/entrypoints.d.ts +11 -0
  153. package/build/manager/entrypoints.d.ts.map +1 -0
  154. package/build/manager/entrypoints.js +17 -0
  155. package/build/manager/entrypoints.js.map +1 -0
  156. package/build/manager/errors.d.ts.map +1 -1
  157. package/build/manager/errors.js.map +1 -1
  158. package/build/manager/plugins/basic-ed25519.d.ts.map +1 -1
  159. package/build/manager/plugins/basic-ed25519.js +5 -0
  160. package/build/manager/plugins/basic-ed25519.js.map +1 -1
  161. package/build/manager/plugins/exports.d.ts +3 -0
  162. package/build/manager/plugins/exports.d.ts.map +1 -1
  163. package/build/manager/plugins/exports.js +2 -0
  164. package/build/manager/plugins/exports.js.map +1 -1
  165. package/build/manager/plugins/index.d.ts +2 -5
  166. package/build/manager/plugins/index.d.ts.map +1 -1
  167. package/build/manager/plugins/index.js +9 -1
  168. package/build/manager/plugins/index.js.map +1 -1
  169. package/build/manager/plugins/methods.d.ts +6 -0
  170. package/build/manager/plugins/methods.d.ts.map +1 -0
  171. package/build/manager/plugins/methods.js +65 -0
  172. package/build/manager/plugins/methods.js.map +1 -0
  173. package/build/manager/plugins/re-captcha.d.ts.map +1 -1
  174. package/build/manager/plugins/re-captcha.js +5 -0
  175. package/build/manager/plugins/re-captcha.js.map +1 -1
  176. package/build/manager/plugins/registry/types.d.ts +10 -0
  177. package/build/manager/plugins/registry/types.d.ts.map +1 -0
  178. package/build/manager/plugins/registry/types.js +2 -0
  179. package/build/manager/plugins/registry/types.js.map +1 -0
  180. package/build/manager/plugins/registry.d.ts +20 -0
  181. package/build/manager/plugins/registry.d.ts.map +1 -0
  182. package/build/manager/plugins/registry.js +23 -0
  183. package/build/manager/plugins/registry.js.map +1 -0
  184. package/build/manager/plugins/tunnel/wallet.d.ts.map +1 -1
  185. package/build/manager/plugins/tunnel-consumer.d.ts.map +1 -1
  186. package/build/manager/plugins/tunnel-consumer.js +10 -3
  187. package/build/manager/plugins/tunnel-consumer.js.map +1 -1
  188. package/build/manager/plugins/types.d.ts +53 -0
  189. package/build/manager/plugins/types.d.ts.map +1 -1
  190. package/build/service.d.ts.map +1 -1
  191. package/build/service.js +1 -1
  192. package/build/service.js.map +1 -1
  193. package/package.json +33 -30
  194. package/src/components/dispatcher/component.tsx +37 -14
  195. package/src/components/dispatcher/types.local.ts +7 -0
  196. package/src/entrypoints.ts +10 -0
  197. package/src/helper.ts +31 -5
  198. package/src/index.ts +1 -1
  199. package/src/login/adopt/types.ts +25 -0
  200. package/src/login/adopt.ts +21 -14
  201. package/src/login/consts.local.ts +34 -0
  202. package/src/login/consts.ts +105 -5
  203. package/src/login/credit/types.ts +6 -0
  204. package/src/login/credit.ts +69 -0
  205. package/src/login/env/types.ts +35 -0
  206. package/src/login/env.ts +60 -72
  207. package/src/login/flow.ts +44 -0
  208. package/src/login/hook.ts +58 -22
  209. package/src/login/i18n/be.json +41 -0
  210. package/src/login/i18n/de.json +41 -0
  211. package/src/login/i18n/en.json +41 -0
  212. package/src/login/i18n/es.json +41 -0
  213. package/src/login/i18n/fr.json +41 -0
  214. package/src/login/i18n/pl.json +41 -0
  215. package/src/login/i18n/ru.json +41 -0
  216. package/src/login/i18n/uk.json +41 -0
  217. package/src/login/i18n.ts +29 -0
  218. package/src/login/index.ts +21 -0
  219. package/src/login/land/types.ts +54 -0
  220. package/src/login/land.ts +149 -0
  221. package/src/login/methods/types.ts +32 -0
  222. package/src/login/methods.ts +109 -0
  223. package/src/login/resume/types.ts +24 -0
  224. package/src/login/resume.ts +45 -0
  225. package/src/login/screen.tsx +140 -0
  226. package/src/login/service.ts +181 -18
  227. package/src/login/start/types.ts +30 -0
  228. package/src/login/start.ts +44 -0
  229. package/src/login/surrogate/types.ts +9 -0
  230. package/src/login/surrogate.ts +37 -0
  231. package/src/login/terms/types.ts +126 -0
  232. package/src/login/terms-config.ts +55 -0
  233. package/src/login/terms.ts +315 -0
  234. package/src/login/types.ts +233 -17
  235. package/src/manager/README.md +37 -80
  236. package/src/manager/components/authentication/control.ts +3 -3
  237. package/src/manager/components/authentication/types.ts +2 -2
  238. package/src/manager/components/tunnel-consumer.tsx +2 -2
  239. package/src/manager/entrypoints.ts +18 -0
  240. package/src/manager/plugins/basic-ed25519.tsx +7 -0
  241. package/src/manager/plugins/exports.ts +3 -0
  242. package/src/manager/plugins/index.ts +11 -4
  243. package/src/manager/plugins/methods.ts +74 -0
  244. package/src/manager/plugins/re-captcha.tsx +7 -0
  245. package/src/manager/plugins/registry/types.ts +10 -0
  246. package/src/manager/plugins/registry.ts +33 -0
  247. package/src/manager/plugins/tunnel-consumer.tsx +12 -3
  248. package/src/manager/plugins/types.ts +54 -0
  249. package/src/service.ts +1 -1
  250. package/tests/context.ts +1 -2
  251. package/tests/i18n.spec.ts +68 -0
  252. package/tests/land.spec.ts +292 -0
  253. package/tests/login.spec.ts +332 -0
  254. package/tests/target.spec.ts +210 -0
  255. package/tests/terms-deferred.spec.ts +65 -0
  256. package/tests/terms.spec.ts +314 -0
  257. package/build/.gitkeep +0 -0
  258. package/src/manager/modules.ts +0 -18
  259. package/src/modules.ts +0 -13
@@ -1,4 +1,5 @@
1
- import type { MouseEvent } from 'react';
1
+ import { type MouseEvent } from 'react';
2
+ import type { LandOptions } from './land/types.js';
2
3
  /**
3
4
  * Wiring for a "Log in" control: where it points, and what it does when clicked.
4
5
  *
@@ -7,6 +8,12 @@ import type { MouseEvent } from 'react';
7
8
  * an app embedded in a frame runs the flow one window up, because the provider refuses to be
8
9
  * framed and its cookies are third-party there.
9
10
  *
11
+ * `target` is the screen to land on once signed in — sign-in FIRST, then the screen, in an ordinary
12
+ * tab and in a framed application alike, with any pending post-sign-in step (a consent screen) run
13
+ * on the way. The control still leads to the dispatcher; the target is parked for the landing
14
+ * (`LoginRequest.target`), and somebody already signed in goes straight to it (`loginStartOf(ctx).startLogin`).
15
+ * Without a target the landing is the ordinary one.
16
+ *
10
17
  * The returned handler is deliberately NOT async and awaits nothing before delegating: a window
11
18
  * opened after the user gesture has finished being handled is eaten by the popup blocker.
12
19
  *
@@ -19,8 +26,27 @@ export declare const useLogin: (target?: string) => readonly [string, (event?: M
19
26
  /**
20
27
  * Wiring for a "Log out" control.
21
28
  *
22
- * `update(undefined)` — not `null`. The declared clearing value is `undefined`, and on the web the
23
- * auth service reacts to it by navigating to the dispatcher, so this is the whole logout.
29
+ * One control, one handler, no decision — the mirror of {@link useLogin}. Where the session has to
30
+ * be ended (here, or one window up in a surrogate whose storage partition this document cannot
31
+ * reach) is the login plugin's call.
32
+ *
33
+ * NOT async, and nothing is awaited before delegating: logging out of a framed application opens a
34
+ * window, and a window opened after the gesture has finished being handled is eaten by the popup
35
+ * blocker. The surrogate entrypoint is resolved INSIDE the hook for the same reason `useLogin`
36
+ * resolves the dispatcher there.
37
+ *
38
+ * The return shape stays a bare handler rather than `useLogin`'s tuple: a logout control has no
39
+ * address to point at, and every generated application carries a copy of a component that writes
40
+ * `const onLogOut = useLogout()`. `(event?: MouseEvent) => void` is assignable to `() => void`, so
41
+ * `onClick={onLogOut}` keeps compiling everywhere.
42
+ */
43
+ export declare const useLogout: (target?: string) => ((event?: MouseEvent) => void);
44
+ /**
45
+ * For a component that runs its own post-login step (the marketing-consent screen, for one) to
46
+ * call once it is satisfied — moves the flow on to the next step, or the ordinary landing.
47
+ *
48
+ * Not async at the call site by accident of its own — it is a callback a component holds and
49
+ * fires later, so nothing here needs the synchronous-gesture discipline `useLogin`/`useLogout` do.
24
50
  */
25
- export declare const useLogout: () => (() => void);
51
+ export declare const useContinueLogin: () => ((opts?: LandOptions) => Promise<void>);
26
52
  //# sourceMappingURL=hook.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../src/login/hook.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAUvC;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ,GAAI,SAAS,MAAM,KAAG,SAAS,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,UAAU,KAAK,IAAI,CAmBxF,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,SAAS,QAAO,CAAC,MAAM,IAAI,CAQvC,CAAA"}
1
+ {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../src/login/hook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,OAAO,CAAA;AAMpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAMlD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,QAAQ,YAAa,MAAM,KAAG,SAAS,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,UAAU,KAAK,IAAI,CAcxF,CAAA;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,SAAS,YAAa,MAAM,KAAG,CAAC,CAAC,KAAK,CAAC,EAAE,UAAU,KAAK,IAAI,CAcxE,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,QAAO,CAAC,CAAC,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAQzE,CAAA"}
@@ -1,8 +1,10 @@
1
1
  import { useCallback } from 'react';
2
2
  import { useContext, useNavigate } from '@owlmeans/client';
3
3
  import { DISPATCHER } from '@owlmeans/auth';
4
- import { DEFAULT_ALIAS as AUTH_ALIAS } from '../consts.js';
5
- import { LOGIN_SERVICE } from './consts.js';
4
+ import { LoginIntent, LOGIN_SERVICE } from './consts.js';
5
+ import { loginLandingOf } from './land.js';
6
+ import { surrogatePath } from './surrogate.js';
7
+ import { loginStartOf } from './start.js';
6
8
  /**
7
9
  * Wiring for a "Log in" control: where it points, and what it does when clicked.
8
10
  *
@@ -11,6 +13,12 @@ import { LOGIN_SERVICE } from './consts.js';
11
13
  * an app embedded in a frame runs the flow one window up, because the provider refuses to be
12
14
  * framed and its cookies are third-party there.
13
15
  *
16
+ * `target` is the screen to land on once signed in — sign-in FIRST, then the screen, in an ordinary
17
+ * tab and in a framed application alike, with any pending post-sign-in step (a consent screen) run
18
+ * on the way. The control still leads to the dispatcher; the target is parked for the landing
19
+ * (`LoginRequest.target`), and somebody already signed in goes straight to it (`loginStartOf(ctx).startLogin`).
20
+ * Without a target the landing is the ordinary one.
21
+ *
14
22
  * The returned handler is deliberately NOT async and awaits nothing before delegating: a window
15
23
  * opened after the user gesture has finished being handled is eaten by the popup blocker.
16
24
  *
@@ -23,16 +31,11 @@ export const useLogin = (target) => {
23
31
  const context = useContext();
24
32
  const nav = useNavigate();
25
33
  const dispatcher = context.entrypoint(DISPATCHER);
26
- const path = dispatcher.getPath();
34
+ const path = dispatcher.path();
27
35
  const onLogin = useCallback((event) => {
28
36
  event?.preventDefault();
29
- const login = context.service(LOGIN_SERVICE);
30
- void login.begin({
31
- url: path,
32
- target,
33
- // Only a component may call `useNavigate`, so the in-app continuation is handed to the
34
- // plugin rather than reinvented by it.
35
- navigate: () => { nav.go(target ?? DISPATCHER); },
37
+ void loginStartOf(context).startLogin({
38
+ url: path, target, go: alias => nav.go(alias),
36
39
  });
37
40
  }, [context, path, target]);
38
41
  return [path, onLogin];
@@ -40,15 +43,47 @@ export const useLogin = (target) => {
40
43
  /**
41
44
  * Wiring for a "Log out" control.
42
45
  *
43
- * `update(undefined)` — not `null`. The declared clearing value is `undefined`, and on the web the
44
- * auth service reacts to it by navigating to the dispatcher, so this is the whole logout.
46
+ * One control, one handler, no decision — the mirror of {@link useLogin}. Where the session has to
47
+ * be ended (here, or one window up in a surrogate whose storage partition this document cannot
48
+ * reach) is the login plugin's call.
49
+ *
50
+ * NOT async, and nothing is awaited before delegating: logging out of a framed application opens a
51
+ * window, and a window opened after the gesture has finished being handled is eaten by the popup
52
+ * blocker. The surrogate entrypoint is resolved INSIDE the hook for the same reason `useLogin`
53
+ * resolves the dispatcher there.
54
+ *
55
+ * The return shape stays a bare handler rather than `useLogin`'s tuple: a logout control has no
56
+ * address to point at, and every generated application carries a copy of a component that writes
57
+ * `const onLogOut = useLogout()`. `(event?: MouseEvent) => void` is assignable to `() => void`, so
58
+ * `onClick={onLogOut}` keeps compiling everywhere.
45
59
  */
46
- export const useLogout = () => {
60
+ export const useLogout = (target) => {
47
61
  const context = useContext();
48
- return useCallback(() => {
49
- void context.service(AUTH_ALIAS).update(undefined)
50
- .then(() => { window.location.reload(); })
51
- .catch(console.error);
52
- }, [context]);
62
+ const nav = useNavigate();
63
+ const path = surrogatePath(context, { intent: LoginIntent.Logout });
64
+ return useCallback((event) => {
65
+ event?.preventDefault();
66
+ const login = context.service(LOGIN_SERVICE);
67
+ void login.logout({
68
+ // An application whose entrypoint list predates the surrogate route logs out in place.
69
+ url: path ?? '',
70
+ ...(target != null ? { navigate: () => { nav.go(target); } } : {}),
71
+ });
72
+ }, [context, path, target]);
73
+ };
74
+ /**
75
+ * For a component that runs its own post-login step (the marketing-consent screen, for one) to
76
+ * call once it is satisfied — moves the flow on to the next step, or the ordinary landing.
77
+ *
78
+ * Not async at the call site by accident of its own — it is a callback a component holds and
79
+ * fires later, so nothing here needs the synchronous-gesture discipline `useLogin`/`useLogout` do.
80
+ */
81
+ export const useContinueLogin = () => {
82
+ const context = useContext();
83
+ const nav = useNavigate();
84
+ return useCallback(async (opts) => {
85
+ const landing = await loginLandingOf(context).continueLogin(opts);
86
+ await nav.go(landing.alias, { params: landing.params, query: landing.query });
87
+ }, [context, nav]);
53
88
  };
54
89
  //# sourceMappingURL=hook.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"hook.js","sourceRoot":"","sources":["../../src/login/hook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AAEnC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAG1D,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EAAE,aAAa,IAAI,UAAU,EAAE,MAAM,cAAc,CAAA;AAG1D,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,MAAe,EAAmD,EAAE;IAC3F,MAAM,OAAO,GAAG,UAAU,EAA8B,CAAA;IACxD,MAAM,GAAG,GAAG,WAAW,EAAE,CAAA;IACzB,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAmB,UAAU,CAAC,CAAA;IACnE,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,EAAE,CAAA;IAEjC,MAAM,OAAO,GAAG,WAAW,CAAC,CAAC,KAAkB,EAAE,EAAE;QACjD,KAAK,EAAE,cAAc,EAAE,CAAA;QACvB,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAe,aAAa,CAAC,CAAA;QAC1D,KAAK,KAAK,CAAC,KAAK,CAAC;YACf,GAAG,EAAE,IAAI;YACT,MAAM;YACN,uFAAuF;YACvF,uCAAuC;YACvC,QAAQ,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC,EAAE,CAAC,MAAM,IAAI,UAAU,CAAC,CAAA,CAAC,CAAC;SACjD,CAAC,CAAA;IACJ,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAA;IAE3B,OAAO,CAAC,IAAI,EAAE,OAAO,CAAU,CAAA;AACjC,CAAC,CAAA;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,GAAiB,EAAE;IAC1C,MAAM,OAAO,GAAG,UAAU,EAA8B,CAAA;IAExD,OAAO,WAAW,CAAC,GAAG,EAAE;QACtB,KAAK,OAAO,CAAC,OAAO,CAAc,UAAU,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC;aAC5D,IAAI,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAA,CAAC,CAAC,CAAC;aACxC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IACzB,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;AACf,CAAC,CAAA"}
1
+ {"version":3,"file":"hook.js","sourceRoot":"","sources":["../../src/login/hook.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,41 @@
1
+ {
2
+ "login": {
3
+ "title": "Уваход",
4
+ "subtitle": "Абярыце спосаб уваходу.",
5
+ "busy": "Адкрываем акно ўваходу…",
6
+ "empty": "Для гэтай праграмы не наладжаны ніводзін спосаб уваходу.",
7
+ "method": {
8
+ "google": "Працягнуць з Google",
9
+ "oidc": "Працягнуць з {{provider}}",
10
+ "oidc-default": "Увайсці / Зарэгістравацца",
11
+ "oidc-client": "Працягнуць з {{provider}}",
12
+ "basic-ed25519": "Увайсці з ключом",
13
+ "pk-supervisor": "Сакрэтны ключ (аператар)",
14
+ "wallet-consumer": "Гаманец OwlMeans ID",
15
+ "one-time-token": "Увайсці па кодзе з ліста",
16
+ "fallback": "Працягнуць з {{method}}"
17
+ },
18
+ "terms": {
19
+ "accept": "Я прачытаў(-ла) і прымаю {{documents}}.",
20
+ "terms": "Умовы карыстання",
21
+ "privacy": "Палітыку прыватнасці",
22
+ "cookies": "Палітыку файлаў cookie",
23
+ "billing": "Умовы аплаты",
24
+ "product": "Умовы прадукту {{product}}",
25
+ "notice": "Як мы апрацоўваем вашы асабістыя дадзеныя: {{notices}}.",
26
+ "revised": "Апошняе абнаўленне: {{date}}",
27
+ "required": "Каб працягнуць, пацвердзіце {{documents}}."
28
+ },
29
+ "consent": {
30
+ "required": "Уваход захоўвае сеансавы файл cookie. Прыміце неабходныя файлы cookie, каб працягнуць."
31
+ },
32
+ "credit": {
33
+ "powered": "Працуе на OwlMeans"
34
+ },
35
+ "error": {
36
+ "failed": "Уваход не завершаны. Паспрабуйце яшчэ раз.",
37
+ "blocked": "Акно ўваходу заблакавана. Націсніце значок заблакаванага ўсплывальнага акна ў адрасным радку браўзера, каб адкрыць яго."
38
+ },
39
+ "orphaned": "Уваход выкананы. Можаце закрыць гэтае акно і вярнуцца ў праграму."
40
+ }
41
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "login": {
3
+ "title": "Anmelden",
4
+ "subtitle": "Wählen Sie, wie Sie fortfahren möchten.",
5
+ "busy": "Anmeldung wird geöffnet…",
6
+ "empty": "Für diese Anwendung ist keine Anmeldemethode konfiguriert.",
7
+ "method": {
8
+ "google": "Mit Google fortfahren",
9
+ "oidc": "Mit {{provider}} fortfahren",
10
+ "oidc-default": "Anmelden / Registrieren",
11
+ "oidc-client": "Mit {{provider}} fortfahren",
12
+ "basic-ed25519": "Mit einem Schlüssel anmelden",
13
+ "pk-supervisor": "Geheimer Schlüssel (Betreiber)",
14
+ "wallet-consumer": "OwlMeans-ID-Wallet",
15
+ "one-time-token": "Mit einem E-Mail-Code anmelden",
16
+ "fallback": "Mit {{method}} fortfahren"
17
+ },
18
+ "terms": {
19
+ "accept": "Ich habe {{documents}} gelesen und stimme ihnen zu.",
20
+ "terms": "Allgemeinen Geschäftsbedingungen",
21
+ "privacy": "Datenschutzerklärung",
22
+ "cookies": "Cookie-Richtlinie",
23
+ "billing": "Abrechnungsbedingungen",
24
+ "product": "{{product}}-Produktbedingungen",
25
+ "notice": "Wie wir Ihre personenbezogenen Daten verarbeiten: {{notices}}.",
26
+ "revised": "Zuletzt aktualisiert: {{date}}",
27
+ "required": "Bitte bestätigen Sie {{documents}}, um fortzufahren."
28
+ },
29
+ "consent": {
30
+ "required": "Bei der Anmeldung wird ein Sitzungs-Cookie gespeichert. Akzeptieren Sie die notwendigen Cookies, um fortzufahren."
31
+ },
32
+ "credit": {
33
+ "powered": "Betrieben mit OwlMeans"
34
+ },
35
+ "error": {
36
+ "failed": "Die Anmeldung wurde nicht abgeschlossen. Bitte versuchen Sie es erneut.",
37
+ "blocked": "Das Anmeldefenster wurde blockiert. Klicken Sie auf das Symbol für blockierte Pop-ups in der Adressleiste Ihres Browsers, um es zu öffnen."
38
+ },
39
+ "orphaned": "Angemeldet. Sie können dieses Fenster schließen und in der Anwendung fortfahren."
40
+ }
41
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "login": {
3
+ "title": "Sign in",
4
+ "subtitle": "Choose how you would like to continue.",
5
+ "busy": "Opening sign-in…",
6
+ "empty": "No sign-in method is configured for this application.",
7
+ "method": {
8
+ "google": "Continue with Google",
9
+ "oidc": "Continue with {{provider}}",
10
+ "oidc-default": "Sign in / Sign up",
11
+ "oidc-client": "Continue with {{provider}}",
12
+ "basic-ed25519": "Sign in with a key",
13
+ "pk-supervisor": "Secret key (operator)",
14
+ "wallet-consumer": "OwlMeans ID wallet",
15
+ "one-time-token": "Sign in with an email code",
16
+ "fallback": "Continue with {{method}}"
17
+ },
18
+ "terms": {
19
+ "accept": "I have read and agree to the {{documents}}.",
20
+ "terms": "Terms & Conditions",
21
+ "privacy": "Privacy Policy",
22
+ "cookies": "Cookie Policy",
23
+ "billing": "Billing Terms",
24
+ "product": "{{product}} Product Terms",
25
+ "notice": "How we handle your personal data: {{notices}}.",
26
+ "revised": "Last updated: {{date}}",
27
+ "required": "Please confirm the {{documents}} to continue."
28
+ },
29
+ "consent": {
30
+ "required": "Signing in stores a session cookie. Accept essential cookies to continue."
31
+ },
32
+ "credit": {
33
+ "powered": "Powered by OwlMeans"
34
+ },
35
+ "error": {
36
+ "failed": "Sign-in did not complete. Please try again.",
37
+ "blocked": "The sign-in window was blocked. Click the blocked pop-up icon in your browser's address bar to open it."
38
+ },
39
+ "orphaned": "Signed in. You can close this window and continue in the application."
40
+ }
41
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "login": {
3
+ "title": "Iniciar sesión",
4
+ "subtitle": "Elige cómo quieres continuar.",
5
+ "busy": "Abriendo el inicio de sesión…",
6
+ "empty": "No hay ningún método de inicio de sesión configurado para esta aplicación.",
7
+ "method": {
8
+ "google": "Continuar con Google",
9
+ "oidc": "Continuar con {{provider}}",
10
+ "oidc-default": "Iniciar sesión / Registrarse",
11
+ "oidc-client": "Continuar con {{provider}}",
12
+ "basic-ed25519": "Iniciar sesión con una clave",
13
+ "pk-supervisor": "Clave secreta (operador)",
14
+ "wallet-consumer": "Cartera OwlMeans ID",
15
+ "one-time-token": "Iniciar sesión con un código por correo",
16
+ "fallback": "Continuar con {{method}}"
17
+ },
18
+ "terms": {
19
+ "accept": "He leído y acepto {{documents}}.",
20
+ "terms": "Términos y Condiciones",
21
+ "privacy": "Política de Privacidad",
22
+ "cookies": "Política de Cookies",
23
+ "billing": "Condiciones de Facturación",
24
+ "product": "Condiciones del Producto {{product}}",
25
+ "notice": "Cómo tratamos tus datos personales: {{notices}}.",
26
+ "revised": "Última actualización: {{date}}",
27
+ "required": "Confirma {{documents}} para continuar."
28
+ },
29
+ "consent": {
30
+ "required": "Iniciar sesión guarda una cookie de sesión. Acepta las cookies esenciales para continuar."
31
+ },
32
+ "credit": {
33
+ "powered": "Con tecnología de OwlMeans"
34
+ },
35
+ "error": {
36
+ "failed": "El inicio de sesión no se completó. Inténtalo de nuevo.",
37
+ "blocked": "Se bloqueó la ventana de inicio de sesión. Haz clic en el icono de ventana emergente bloqueada en la barra de direcciones del navegador para abrirla."
38
+ },
39
+ "orphaned": "Sesión iniciada. Puedes cerrar esta ventana y continuar en la aplicación."
40
+ }
41
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "login": {
3
+ "title": "Connexion",
4
+ "subtitle": "Choisissez comment continuer.",
5
+ "busy": "Ouverture de la connexion…",
6
+ "empty": "Aucune méthode de connexion n’est configurée pour cette application.",
7
+ "method": {
8
+ "google": "Continuer avec Google",
9
+ "oidc": "Continuer avec {{provider}}",
10
+ "oidc-default": "Connexion / Inscription",
11
+ "oidc-client": "Continuer avec {{provider}}",
12
+ "basic-ed25519": "Se connecter avec une clé",
13
+ "pk-supervisor": "Clé secrète (opérateur)",
14
+ "wallet-consumer": "Portefeuille d’identité OwlMeans",
15
+ "one-time-token": "Se connecter avec un code e-mail",
16
+ "fallback": "Continuer avec {{method}}"
17
+ },
18
+ "terms": {
19
+ "accept": "J’ai lu et j’accepte {{documents}}.",
20
+ "terms": "conditions générales",
21
+ "privacy": "politique de confidentialité",
22
+ "cookies": "Politique relative aux cookies",
23
+ "billing": "Conditions de facturation",
24
+ "product": "Conditions du produit {{product}}",
25
+ "notice": "Comment nous traitons vos données personnelles : {{notices}}.",
26
+ "revised": "Dernière mise à jour : {{date}}",
27
+ "required": "Confirmez {{documents}} pour continuer."
28
+ },
29
+ "consent": {
30
+ "required": "La connexion enregistre un cookie de session. Acceptez les cookies essentiels pour continuer."
31
+ },
32
+ "credit": {
33
+ "powered": "Propulsé par OwlMeans"
34
+ },
35
+ "error": {
36
+ "failed": "La connexion n’a pas abouti. Réessayez.",
37
+ "blocked": "La fenêtre de connexion a été bloquée. Cliquez sur l’icône de fenêtre contextuelle bloquée dans la barre d’adresse pour l’ouvrir."
38
+ },
39
+ "orphaned": "Vous êtes connecté. Vous pouvez fermer cette fenêtre et continuer dans l’application."
40
+ }
41
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "login": {
3
+ "title": "Zaloguj się",
4
+ "subtitle": "Wybierz sposób, w jaki chcesz kontynuować.",
5
+ "busy": "Otwieranie logowania…",
6
+ "empty": "Dla tej aplikacji nie skonfigurowano żadnej metody logowania.",
7
+ "method": {
8
+ "google": "Kontynuuj z Google",
9
+ "oidc": "Kontynuuj z {{provider}}",
10
+ "oidc-default": "Zaloguj się / Zarejestruj się",
11
+ "oidc-client": "Kontynuuj z {{provider}}",
12
+ "basic-ed25519": "Zaloguj się kluczem",
13
+ "pk-supervisor": "Klucz tajny (operator)",
14
+ "wallet-consumer": "Portfel OwlMeans ID",
15
+ "one-time-token": "Zaloguj się kodem e-mail",
16
+ "fallback": "Kontynuuj z {{method}}"
17
+ },
18
+ "terms": {
19
+ "accept": "Przeczytałem(-am) i akceptuję {{documents}}.",
20
+ "terms": "Regulamin",
21
+ "privacy": "Politykę prywatności",
22
+ "cookies": "Politykę plików cookie",
23
+ "billing": "Warunki rozliczeń",
24
+ "product": "Warunki produktu {{product}}",
25
+ "notice": "Jak przetwarzamy Twoje dane osobowe: {{notices}}.",
26
+ "revised": "Ostatnia aktualizacja: {{date}}",
27
+ "required": "Aby kontynuować, potwierdź {{documents}}."
28
+ },
29
+ "consent": {
30
+ "required": "Logowanie zapisuje plik cookie sesji. Zaakceptuj niezbędne pliki cookie, aby kontynuować."
31
+ },
32
+ "credit": {
33
+ "powered": "Napędzane przez OwlMeans"
34
+ },
35
+ "error": {
36
+ "failed": "Logowanie nie zostało ukończone. Spróbuj ponownie.",
37
+ "blocked": "Okno logowania zostało zablokowane. Kliknij ikonę zablokowanego okienka w pasku adresu przeglądarki, aby je otworzyć."
38
+ },
39
+ "orphaned": "Zalogowano. Możesz zamknąć to okno i kontynuować w aplikacji."
40
+ }
41
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "login": {
3
+ "title": "Вход",
4
+ "subtitle": "Выберите способ входа.",
5
+ "busy": "Открываем окно входа…",
6
+ "empty": "Для этого приложения не настроен ни один способ входа.",
7
+ "method": {
8
+ "google": "Продолжить с Google",
9
+ "oidc": "Продолжить с {{provider}}",
10
+ "oidc-default": "Войти / Зарегистрироваться",
11
+ "oidc-client": "Продолжить с {{provider}}",
12
+ "basic-ed25519": "Войти с ключом",
13
+ "pk-supervisor": "Секретный ключ (оператор)",
14
+ "wallet-consumer": "Кошелёк OwlMeans ID",
15
+ "one-time-token": "Войти по коду из письма",
16
+ "fallback": "Продолжить с {{method}}"
17
+ },
18
+ "terms": {
19
+ "accept": "Я прочитал(а) и принимаю {{documents}}.",
20
+ "terms": "Условия использования",
21
+ "privacy": "Политику конфиденциальности",
22
+ "cookies": "Политику файлов cookie",
23
+ "billing": "Условия оплаты",
24
+ "product": "Условия использования продукта {{product}}",
25
+ "notice": "Как мы обрабатываем ваши персональные данные: {{notices}}.",
26
+ "revised": "Последнее обновление: {{date}}",
27
+ "required": "Чтобы продолжить, подтвердите {{documents}}."
28
+ },
29
+ "consent": {
30
+ "required": "Вход сохраняет сессионный файл cookie. Примите необходимые файлы cookie, чтобы продолжить."
31
+ },
32
+ "credit": {
33
+ "powered": "Работает на OwlMeans"
34
+ },
35
+ "error": {
36
+ "failed": "Вход не завершён. Попробуйте ещё раз.",
37
+ "blocked": "Окно входа заблокировано. Нажмите на значок заблокированного всплывающего окна в адресной строке браузера, чтобы открыть его."
38
+ },
39
+ "orphaned": "Вход выполнен. Можете закрыть это окно и вернуться в приложение."
40
+ }
41
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "login": {
3
+ "title": "Вхід",
4
+ "subtitle": "Оберіть спосіб входу.",
5
+ "busy": "Відкриваємо вікно входу…",
6
+ "empty": "Для цього застосунку не налаштовано жодного способу входу.",
7
+ "method": {
8
+ "google": "Продовжити з Google",
9
+ "oidc": "Продовжити з {{provider}}",
10
+ "oidc-default": "Увійти / Зареєструватися",
11
+ "oidc-client": "Продовжити з {{provider}}",
12
+ "basic-ed25519": "Увійти з ключем",
13
+ "pk-supervisor": "Секретний ключ (оператор)",
14
+ "wallet-consumer": "Гаманець OwlMeans ID",
15
+ "one-time-token": "Увійти за кодом з листа",
16
+ "fallback": "Продовжити з {{method}}"
17
+ },
18
+ "terms": {
19
+ "accept": "Я прочитав(-ла) і приймаю {{documents}}.",
20
+ "terms": "Умови користування",
21
+ "privacy": "Політику конфіденційності",
22
+ "cookies": "Політику файлів cookie",
23
+ "billing": "Умови оплати",
24
+ "product": "Умови продукту {{product}}",
25
+ "notice": "Як ми обробляємо ваші персональні дані: {{notices}}.",
26
+ "revised": "Востаннє оновлено: {{date}}",
27
+ "required": "Щоб продовжити, підтвердьте {{documents}}."
28
+ },
29
+ "consent": {
30
+ "required": "Вхід зберігає сеансовий файл cookie. Прийміть необхідні файли cookie, щоб продовжити."
31
+ },
32
+ "credit": {
33
+ "powered": "Працює на OwlMeans"
34
+ },
35
+ "error": {
36
+ "failed": "Вхід не завершено. Спробуйте ще раз.",
37
+ "blocked": "Вікно входу заблоковано. Натисніть значок заблокованого спливаючого вікна в адресному рядку браузера, щоб відкрити його."
38
+ },
39
+ "orphaned": "Вхід виконано. Можете закрити це вікно й повернутися до застосунку."
40
+ }
41
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=i18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/login/i18n.ts"],"names":[],"mappings":""}
@@ -0,0 +1,27 @@
1
+ import en from './i18n/en.json' with { type: 'json' };
2
+ import pl from './i18n/pl.json' with { type: 'json' };
3
+ import ru from './i18n/ru.json' with { type: 'json' };
4
+ import be from './i18n/be.json' with { type: 'json' };
5
+ import uk from './i18n/uk.json' with { type: 'json' };
6
+ import es from './i18n/es.json' with { type: 'json' };
7
+ import de from './i18n/de.json' with { type: 'json' };
8
+ import fr from './i18n/fr.json' with { type: 'json' };
9
+ import { i18nHelper } from '@owlmeans/i18n';
10
+ /**
11
+ * The sign-in screen's copy, registered into the `auth` library resource.
12
+ *
13
+ * `_addI18n` PUSHES rather than replaces, so this coexists with `@owlmeans/web-client`'s own
14
+ * `auth` registration (which owns `dispatcher.*` and `surrogate.*`) and the two merge by tier and
15
+ * priority. Registering here rather than in a UI package is what lets the plain fallback screen
16
+ * and every styled one read the same keys — so the seven-language rule holds on every path a user
17
+ * can actually reach, not only the pretty one.
18
+ */
19
+ i18nHelper.addI18nLib('en', 'auth', en);
20
+ i18nHelper.addI18nLib('pl', 'auth', pl);
21
+ i18nHelper.addI18nLib('ru', 'auth', ru);
22
+ i18nHelper.addI18nLib('be', 'auth', be);
23
+ i18nHelper.addI18nLib('uk', 'auth', uk);
24
+ i18nHelper.addI18nLib('es', 'auth', es);
25
+ i18nHelper.addI18nLib('de', 'auth', de);
26
+ i18nHelper.addI18nLib('fr', 'auth', fr);
27
+ //# sourceMappingURL=i18n.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../src/login/i18n.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,gBAAgB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACrD,OAAO,EAAE,MAAM,gBAAgB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACrD,OAAO,EAAE,MAAM,gBAAgB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACrD,OAAO,EAAE,MAAM,gBAAgB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACrD,OAAO,EAAE,MAAM,gBAAgB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACrD,OAAO,EAAE,MAAM,gBAAgB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACrD,OAAO,EAAE,MAAM,gBAAgB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACrD,OAAO,EAAE,MAAM,gBAAgB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;GAQG;AACH,UAAU,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,CAAA;AACvC,UAAU,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,CAAA;AACvC,UAAU,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,CAAA;AACvC,UAAU,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,CAAA;AACvC,UAAU,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,CAAA;AACvC,UAAU,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,CAAA;AACvC,UAAU,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,CAAA;AACvC,UAAU,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,CAAA"}
@@ -1,7 +1,27 @@
1
+ import './i18n.js';
1
2
  export * from './consts.js';
2
3
  export * from './types.js';
4
+ export type * from './env/types.js';
5
+ export type * from './adopt/types.js';
6
+ export type * from './methods/types.js';
7
+ export type * from './resume/types.js';
8
+ export type * from './terms/types.js';
9
+ export type * from './credit/types.js';
10
+ export type * from './surrogate/types.js';
11
+ export type * from './land/types.js';
12
+ export type * from './start/types.js';
3
13
  export * from './env.js';
4
14
  export * from './adopt.js';
15
+ export * from './methods.js';
16
+ export * from './flow.js';
17
+ export * from './resume.js';
18
+ export * from './terms-config.js';
19
+ export * from './terms.js';
20
+ export * from './credit.js';
21
+ export * from './surrogate.js';
22
+ export * from './screen.js';
5
23
  export * from './service.js';
24
+ export * from './start.js';
6
25
  export * from './hook.js';
26
+ export * from './land.js';
7
27
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/login/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/login/index.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,CAAA;AAElB,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,mBAAmB,gBAAgB,CAAA;AACnC,mBAAmB,kBAAkB,CAAA;AACrC,mBAAmB,oBAAoB,CAAA;AACvC,mBAAmB,mBAAmB,CAAA;AACtC,mBAAmB,kBAAkB,CAAA;AACrC,mBAAmB,mBAAmB,CAAA;AACtC,mBAAmB,sBAAsB,CAAA;AACzC,mBAAmB,iBAAiB,CAAA;AACpC,mBAAmB,kBAAkB,CAAA;AACrC,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA"}
@@ -1,7 +1,18 @@
1
+ import './i18n.js';
1
2
  export * from './consts.js';
2
3
  export * from './types.js';
3
4
  export * from './env.js';
4
5
  export * from './adopt.js';
6
+ export * from './methods.js';
7
+ export * from './flow.js';
8
+ export * from './resume.js';
9
+ export * from './terms-config.js';
10
+ export * from './terms.js';
11
+ export * from './credit.js';
12
+ export * from './surrogate.js';
13
+ export * from './screen.js';
5
14
  export * from './service.js';
15
+ export * from './start.js';
6
16
  export * from './hook.js';
17
+ export * from './land.js';
7
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/login/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/login/index.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,CAAA;AAElB,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAU1B,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA"}