@owlmeans/web-panel 0.1.18-rc.69 → 0.1.18-rc.71

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 (209) hide show
  1. package/README.md +8 -8
  2. package/agent-meta/manifest.json +2 -2
  3. package/agent-meta/skills/web-panel/SKILL.md +9 -9
  4. package/build/auth/entrypoints.d.ts +1 -1
  5. package/build/auth/entrypoints.d.ts.map +1 -1
  6. package/build/auth/exports.d.ts +1 -1
  7. package/build/auth/exports.d.ts.map +1 -1
  8. package/build/auth/exports.js +1 -1
  9. package/build/auth/exports.js.map +1 -1
  10. package/build/components/consts.local.d.ts +14 -0
  11. package/build/components/consts.local.d.ts.map +1 -0
  12. package/build/components/consts.local.js +26 -0
  13. package/build/components/consts.local.js.map +1 -0
  14. package/build/components/footer/component.js +3 -3
  15. package/build/components/footer/component.js.map +1 -1
  16. package/build/components/footer/credit.d.ts +2 -4
  17. package/build/components/footer/credit.d.ts.map +1 -1
  18. package/build/components/footer/credit.js +1 -1
  19. package/build/components/footer/credit.js.map +1 -1
  20. package/build/components/footer/types.d.ts +3 -0
  21. package/build/components/footer/types.d.ts.map +1 -1
  22. package/build/components/helper.d.ts.map +1 -1
  23. package/build/components/helper.js +1 -12
  24. package/build/components/helper.js.map +1 -1
  25. package/build/components/login/append.d.ts +1 -8
  26. package/build/components/login/append.d.ts.map +1 -1
  27. package/build/components/login/append.js.map +1 -1
  28. package/build/components/login/consts.d.ts +3 -0
  29. package/build/components/login/consts.d.ts.map +1 -0
  30. package/build/components/login/consts.js +3 -0
  31. package/build/components/login/consts.js.map +1 -0
  32. package/build/components/login/consts.local.d.ts +4 -0
  33. package/build/components/login/consts.local.d.ts.map +1 -0
  34. package/build/components/login/consts.local.js +8 -0
  35. package/build/components/login/consts.local.js.map +1 -0
  36. package/build/components/login/credit.d.ts +1 -8
  37. package/build/components/login/credit.d.ts.map +1 -1
  38. package/build/components/login/credit.js +1 -2
  39. package/build/components/login/credit.js.map +1 -1
  40. package/build/components/login/index.d.ts +2 -0
  41. package/build/components/login/index.d.ts.map +1 -1
  42. package/build/components/login/index.js +1 -0
  43. package/build/components/login/index.js.map +1 -1
  44. package/build/components/login/notify.d.ts +1 -1
  45. package/build/components/login/notify.d.ts.map +1 -1
  46. package/build/components/login/notify.js +5 -6
  47. package/build/components/login/notify.js.map +1 -1
  48. package/build/components/login/screen.d.ts +2 -2
  49. package/build/components/login/screen.d.ts.map +1 -1
  50. package/build/components/login/screen.js +3 -7
  51. package/build/components/login/screen.js.map +1 -1
  52. package/build/components/login/terms.d.ts +1 -9
  53. package/build/components/login/terms.d.ts.map +1 -1
  54. package/build/components/login/terms.js +5 -5
  55. package/build/components/login/terms.js.map +1 -1
  56. package/build/components/login/types.d.ts +23 -0
  57. package/build/components/login/types.d.ts.map +1 -0
  58. package/build/components/login/types.js +2 -0
  59. package/build/components/login/types.js.map +1 -0
  60. package/build/components/nav/consts.local.d.ts +41 -0
  61. package/build/components/nav/consts.local.d.ts.map +1 -0
  62. package/build/components/nav/consts.local.js +60 -0
  63. package/build/components/nav/consts.local.js.map +1 -0
  64. package/build/components/nav/layout.d.ts +1 -1
  65. package/build/components/nav/layout.d.ts.map +1 -1
  66. package/build/components/nav/layout.js +3 -25
  67. package/build/components/nav/layout.js.map +1 -1
  68. package/build/components/nav/mobile.d.ts +1 -1
  69. package/build/components/nav/mobile.d.ts.map +1 -1
  70. package/build/components/nav/mobile.js +5 -20
  71. package/build/components/nav/mobile.js.map +1 -1
  72. package/build/components/nav/side.js +3 -3
  73. package/build/components/nav/side.js.map +1 -1
  74. package/build/components/nav/top.d.ts.map +1 -1
  75. package/build/components/nav/top.js +4 -23
  76. package/build/components/nav/top.js.map +1 -1
  77. package/build/components/scheme/consts.local.d.ts +8 -0
  78. package/build/components/scheme/consts.local.d.ts.map +1 -0
  79. package/build/components/scheme/consts.local.js +13 -0
  80. package/build/components/scheme/consts.local.js.map +1 -0
  81. package/build/components/scheme/hook.d.ts.map +1 -1
  82. package/build/components/scheme/hook.js +10 -9
  83. package/build/components/scheme/hook.js.map +1 -1
  84. package/build/components/scheme/toggle.d.ts.map +1 -1
  85. package/build/components/scheme/toggle.js +1 -11
  86. package/build/components/scheme/toggle.js.map +1 -1
  87. package/build/components/scheme/types.d.ts +1 -1
  88. package/build/components/scheme/types.d.ts.map +1 -1
  89. package/build/components/socket/i18n.js +9 -9
  90. package/build/components/socket/i18n.js.map +1 -1
  91. package/build/components/text.d.ts.map +1 -1
  92. package/build/components/text.js +1 -12
  93. package/build/components/text.js.map +1 -1
  94. package/build/components/toaster.d.ts +2 -2
  95. package/build/components/toaster.d.ts.map +1 -1
  96. package/build/components/toaster.js +1 -1
  97. package/build/components/toaster.js.map +1 -1
  98. package/build/components/uploader/consts.local.d.ts +4 -0
  99. package/build/components/uploader/consts.local.d.ts.map +1 -0
  100. package/build/components/uploader/consts.local.js +6 -0
  101. package/build/components/uploader/consts.local.js.map +1 -0
  102. package/build/components/uploader/image.d.ts.map +1 -1
  103. package/build/components/uploader/image.js +1 -5
  104. package/build/components/uploader/image.js.map +1 -1
  105. package/build/consent/component.d.ts +1 -1
  106. package/build/consent/component.d.ts.map +1 -1
  107. package/build/consent/component.js +1 -8
  108. package/build/consent/component.js.map +1 -1
  109. package/build/consent/consts.local.d.ts +9 -0
  110. package/build/consent/consts.local.d.ts.map +1 -0
  111. package/build/consent/consts.local.js +9 -0
  112. package/build/consent/consts.local.js.map +1 -0
  113. package/build/consent/translate.js +2 -2
  114. package/build/consent/translate.js.map +1 -1
  115. package/build/consent/types.local.d.ts +6 -0
  116. package/build/consent/types.local.d.ts.map +1 -0
  117. package/build/consent/types.local.js +2 -0
  118. package/build/consent/types.local.js.map +1 -0
  119. package/build/entrypoints.d.ts +2 -2
  120. package/build/exports.d.ts +2 -2
  121. package/build/exports.d.ts.map +1 -1
  122. package/build/exports.js +2 -2
  123. package/build/exports.js.map +1 -1
  124. package/build/main.d.ts +1 -4
  125. package/build/main.d.ts.map +1 -1
  126. package/build/main.js.map +1 -1
  127. package/build/permission/i18n.js +2 -2
  128. package/build/permission/i18n.js.map +1 -1
  129. package/build/permission/index.js +3 -3
  130. package/build/permission/index.js.map +1 -1
  131. package/build/permission/toast.d.ts +1 -5
  132. package/build/permission/toast.d.ts.map +1 -1
  133. package/build/permission/toast.js.map +1 -1
  134. package/build/permission/types.d.ts +6 -0
  135. package/build/permission/types.d.ts.map +1 -0
  136. package/build/permission/types.js +2 -0
  137. package/build/permission/types.js.map +1 -0
  138. package/build/scheme/consts.d.ts +8 -0
  139. package/build/scheme/consts.d.ts.map +1 -0
  140. package/build/scheme/consts.js +8 -0
  141. package/build/scheme/consts.js.map +1 -0
  142. package/build/scheme/index.d.ts +3 -2
  143. package/build/scheme/index.d.ts.map +1 -1
  144. package/build/scheme/index.js +2 -1
  145. package/build/scheme/index.js.map +1 -1
  146. package/build/scheme/scheme.d.ts +4 -32
  147. package/build/scheme/scheme.d.ts.map +1 -1
  148. package/build/scheme/scheme.js +44 -64
  149. package/build/scheme/scheme.js.map +1 -1
  150. package/build/scheme/types.d.ts +30 -0
  151. package/build/scheme/types.d.ts.map +1 -0
  152. package/build/scheme/types.js +2 -0
  153. package/build/scheme/types.js.map +1 -0
  154. package/build/types.d.ts +4 -1
  155. package/build/types.d.ts.map +1 -1
  156. package/package.json +52 -52
  157. package/src/auth/exports.ts +1 -1
  158. package/src/components/consts.local.ts +29 -0
  159. package/src/components/footer/component.tsx +3 -3
  160. package/src/components/footer/credit.tsx +3 -7
  161. package/src/components/footer/types.ts +4 -0
  162. package/src/components/helper.ts +1 -13
  163. package/src/components/login/append.ts +1 -7
  164. package/src/components/login/consts.local.ts +10 -0
  165. package/src/components/login/consts.ts +2 -0
  166. package/src/components/login/credit.tsx +2 -10
  167. package/src/components/login/index.ts +2 -0
  168. package/src/components/login/notify.ts +6 -11
  169. package/src/components/login/screen.tsx +4 -11
  170. package/src/components/login/terms.tsx +7 -27
  171. package/src/components/login/types.ts +24 -0
  172. package/src/components/nav/consts.local.ts +64 -0
  173. package/src/components/nav/layout.tsx +4 -29
  174. package/src/components/nav/mobile.tsx +6 -25
  175. package/src/components/nav/side.tsx +3 -3
  176. package/src/components/nav/top.tsx +4 -24
  177. package/src/components/scheme/consts.local.ts +13 -0
  178. package/src/components/scheme/hook.ts +11 -13
  179. package/src/components/scheme/toggle.tsx +1 -12
  180. package/src/components/scheme/types.ts +1 -1
  181. package/src/components/socket/i18n.ts +9 -9
  182. package/src/components/text.tsx +1 -13
  183. package/src/components/toaster.tsx +3 -6
  184. package/src/components/uploader/consts.local.ts +7 -0
  185. package/src/components/uploader/image.tsx +1 -5
  186. package/src/consent/component.tsx +3 -15
  187. package/src/consent/consts.local.ts +10 -0
  188. package/src/consent/translate.ts +2 -2
  189. package/src/consent/types.local.ts +6 -0
  190. package/src/exports.ts +2 -2
  191. package/src/main.tsx +2 -6
  192. package/src/permission/i18n.ts +2 -2
  193. package/src/permission/index.ts +3 -3
  194. package/src/permission/toast.tsx +1 -6
  195. package/src/permission/types.ts +5 -0
  196. package/src/scheme/consts.ts +8 -0
  197. package/src/scheme/index.ts +3 -4
  198. package/src/scheme/scheme.ts +44 -64
  199. package/src/scheme/types.ts +30 -0
  200. package/src/types.ts +5 -1
  201. package/tests/consent-language.spec.ts +2 -2
  202. package/tests/consent.spec.ts +2 -2
  203. package/tests/lazy.spec.ts +2 -2
  204. package/tests/login.spec.ts +2 -2
  205. package/tests/nav.spec.ts +2 -2
  206. package/tests/scheme.spec.ts +4 -4
  207. package/tests/smoke.spec.ts +2 -2
  208. package/tests/socket-dialog.spec.ts +2 -2
  209. package/tests/toaster.spec.ts +2 -2
package/README.md CHANGED
@@ -11,7 +11,7 @@ but never started.
11
11
  ## Installation
12
12
 
13
13
  ```sh
14
- bun add @owlmeans/web-panel@^0.1.18-rc.69
14
+ bun add @owlmeans/web-panel@^0.1.18-rc.71
15
15
  ```
16
16
 
17
17
  Peer requirements (the consuming app provides these): `react`, `react-dom`,
@@ -363,7 +363,7 @@ The dialog's strings are the lib-tier `socket` namespace (`reload.title`, `reloa
363
363
  |---|---|
364
364
  | everything (`usePanelNav`, `PanelNavConfig` / `PanelNavItem` / `PanelNavSection` / `PanelNavLink` / `NavTranslate`, `PanelContext`, `BlockScaling`, `useFormRef`, `FormContext`, ...) | `@owlmeans/client-panel` |
365
365
  | `handler`, `useNavigate`, `useValue`, `useEntrypoint` | `@owlmeans/client` |
366
- | `bind`, `bindAll`, `bindScreen`, `provideRequest`, `stab`; type `Module` | `@owlmeans/client-entrypoint` |
366
+ | `bind`, `bindAll`, `bindScreen`, `clientRequestHelper`, `provideRequest` (deprecated, use `clientRequestHelper.provideRequest`), `stab`; type `Module` | `@owlmeans/client-entrypoint` |
367
367
  | `route`, `frontend` / `croute` | `@owlmeans/route` / `@owlmeans/client-route` |
368
368
  | `config` / `service` / `addWebService` | `@owlmeans/client-context` / `@owlmeans/config` / `@owlmeans/client-config` |
369
369
  | `AppType`, `HOME`, `ROOT`, `BASE`, `GUEST` | `@owlmeans/context` |
@@ -371,7 +371,7 @@ The dialog's strings are the lib-tier `socket` namespace (`reload.title`, `reloa
371
371
  | `DAUTH_GUARD` (`DEFAULT_ALIAS`), `bindExternalAuthentication` | `@owlmeans/client-auth` |
372
372
  | `Dispatcher`, `appendWebAuthService` | `@owlmeans/web-client` |
373
373
  | `composePrefix`, `useI18n`, `useI18nApp`, `useI18nLib`, `useLanguage` | `@owlmeans/client-i18n` |
374
- | `addI18nApp`, `addI18nLib`, `SUPPORTED_LNGS` | `@owlmeans/i18n` |
374
+ | `i18nHelper`, `addI18nApp` / `addI18nLib` (deprecated, use `i18nHelper.*`), `SUPPORTED_LNGS` | `@owlmeans/i18n` |
375
375
  | `flow`, `configureFlows` / `FLOW_PARAM`, `SERVICE_PARAM`, `useFlow` | `@owlmeans/flow` / `@owlmeans/web-flow` |
376
376
 
377
377
  ### `@owlmeans/web-panel/auth`
@@ -400,14 +400,14 @@ React-free — it imports nothing, so a Node build script can load it.
400
400
  | `COLOR_SCHEME_KEY` | const | `'owlmeans:color-scheme'`, the `localStorage` key |
401
401
  | `COLOR_SCHEME_EVENT` | const | The `window` event every change dispatches |
402
402
  | `ColorSchemeChoice` | type | `'light' \| 'dark'` |
403
- | `readColorScheme()` | function | The stored choice or `null` (storage errors swallowed) |
404
- | `applyColorScheme(choice \| null)` | function | Sets the `light`/`dark` class on `<html>`, stores or clears the key, dispatches the event |
405
- | `colorSchemeBootstrapScript()` | function | The inline head script that applies a stored choice before first paint |
403
+ | `colorSchemeHelper.readColorScheme()` | helper member | The stored choice or `null` (storage errors swallowed) |
404
+ | `colorSchemeHelper.applyColorScheme(choice \| null)` | helper member | Sets the `light`/`dark` class on `<html>`, stores or clears the key, dispatches the event |
405
+ | `colorSchemeHelper.colorSchemeBootstrapScript()` | helper member | The inline head script that applies a stored choice before first paint |
406
406
 
407
407
  The class contract: `.dark` = chosen dark, `.light` = chosen light, neither = follow the OS. A
408
408
  consumer's CSS puts dark tokens under `.dark` AND under
409
409
  `@media (prefers-color-scheme: dark) { :root:not(.light) { … } }`, and inlines
410
- `colorSchemeBootstrapScript()` in the document head.
410
+ `colorSchemeHelper.colorSchemeBootstrapScript()` in the document head.
411
411
 
412
412
  ### `@owlmeans/web-panel/consent`
413
413
 
@@ -496,7 +496,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
496
496
  your project's skill store (`.agents/skills/`):
497
497
 
498
498
  ```sh
499
- npx @owlmeans/agent-skills@^0.1.18-rc.47
499
+ npx @owlmeans/agent-skills@^0.1.18-rc.49
500
500
  ```
501
501
 
502
502
  The embedded files are version-matched to this package release. Do not edit them
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "package": "@owlmeans/web-panel",
4
- "version": "0.1.18-rc.69",
5
- "generatedAt": "2026-10-03T20:05:07.609Z",
4
+ "version": "0.1.18-rc.71",
5
+ "generatedAt": "2026-10-05T21:03:06.415Z",
6
6
  "canonicalRepo": "https://github.com/owlmeans/common",
7
7
  "entries": [
8
8
  {
@@ -8,7 +8,7 @@ user-invocable: false
8
8
  # @owlmeans/web-panel
9
9
 
10
10
  **Layer:** Web (React)
11
- **Install:** `"@owlmeans/web-panel": "^0.1.18-rc.69"` in `dependencies`
11
+ **Install:** `"@owlmeans/web-panel": "^0.1.18-rc.71"` in `dependencies`
12
12
 
13
13
  ## Key Exports
14
14
 
@@ -33,8 +33,8 @@ user-invocable: false
33
33
  | `useBreakPoint()` | The current Tailwind breakpoint name, tracked on `resize` (`lg` when there is no `window`) |
34
34
  | `useMapBreakpoint(map, def?, breakpoint?)` | The `map` entry for the current breakpoint (or for the `breakpoint` passed), falling back to `def`. It **throws a `SyntaxError`** when neither yields a value, so give it a `def` or cover every breakpoint |
35
35
  | Re-exports from `@owlmeans/client-panel` | Cross-platform panel primitives, incl. `usePanelNav` and the `PanelNav*` types |
36
- | Re-exports from `@owlmeans/client` / `@owlmeans/client-entrypoint` / `@owlmeans/route` | `bind`, `bindAll`, `bindScreen`, `handler`, `lazyHandler` / `lazyComponent` (+ `LazyHandler` / `LazyComponent` / `LazyComponentOptions` types — see the `client` skill), `provideRequest`, `stab`, `route`, `croute`, `frontend`, `useNavigate`, `useEntrypoint`, `useValue` |
37
- | Re-exports from the surrounding layers | `config`, `service`, `addWebService`, `AppType` / `HOME` / `ROOT` / `BASE` / `GUEST`, `DISPATCHER`, `CAUTHEN_FLOW_ENTER`, `DAUTH_GUARD`, `bindExternalAuthentication`, `Dispatcher`, `appendWebAuthService`, `flow` / `configureFlows` / `useFlow` / `FLOW_PARAM` / `SERVICE_PARAM`, `useI18n*` / `useLanguage` / `composePrefix`, `addI18nApp` / `addI18nLib` / `SUPPORTED_LNGS` |
36
+ | Re-exports from `@owlmeans/client` / `@owlmeans/client-entrypoint` / `@owlmeans/route` | `bind`, `bindAll`, `bindScreen`, `handler`, `lazyHandler` / `lazyComponent` (+ `LazyHandler` / `LazyComponent` / `LazyComponentOptions` types — see the `client` skill), `clientRequestHelper` (`provideRequest`), `stab`, `route`, `croute`, `frontend`, `useNavigate`, `useEntrypoint`, `useValue` |
37
+ | Re-exports from the surrounding layers | `config`, `service`, `addWebService`, `AppType` / `HOME` / `ROOT` / `BASE` / `GUEST`, `DISPATCHER`, `CAUTHEN_FLOW_ENTER`, `DAUTH_GUARD`, `bindExternalAuthentication`, `Dispatcher`, `appendWebAuthService`, `flow` / `configureFlows` / `useFlow` / `FLOW_PARAM` / `SERVICE_PARAM`, `useI18n*` / `useLanguage` / `composePrefix`, `i18nHelper` (`addI18nApp` / `addI18nLib`) / `SUPPORTED_LNGS` |
38
38
 
39
39
  ## Subpath Exports
40
40
 
@@ -44,7 +44,7 @@ user-invocable: false
44
44
  widget and a presence service so a host's own collapsed menu can take over the floating button's
45
45
  job
46
46
  - `./scheme` — the React-free colour-scheme half: `COLOR_SCHEME_KEY`, `COLOR_SCHEME_EVENT`,
47
- `ColorSchemeChoice`, `readColorScheme`, `applyColorScheme`, `colorSchemeBootstrapScript` — safe
47
+ `ColorSchemeChoice`, `colorSchemeHelper` (`readColorScheme`, `applyColorScheme`, `colorSchemeBootstrapScript`) — safe
48
48
  to import from a Node build script
49
49
 
50
50
  ## Usage
@@ -277,7 +277,7 @@ that paints dark under `prefers-color-scheme: dark`. So a consumer's CSS must re
277
277
  A theme with dark tokens under `.dark` alone never follows the OS; one with them under the media
278
278
  query alone ignores an explicit light choice.
279
279
 
280
- **The head bootstrap goes before any stylesheet paints.** `colorSchemeBootstrapScript()` returns a
280
+ **The head bootstrap goes before any stylesheet paints.** `colorSchemeHelper.colorSchemeBootstrapScript()` returns a
281
281
  self-contained inline script that puts the stored choice's class on `<html>` before first paint —
282
282
  the only moment it can; a component doing it after mount shows a visitor who chose dark one frame
283
283
  of the light page. A build step inlines it into `index.html` (import it from
@@ -292,7 +292,7 @@ Rules the pieces own:
292
292
  is in (sun while light, moon while dark), chosen in script, not by a `dark:` variant.
293
293
  - **The accessible name says what pressing does** — `labels.toLight` / `labels.toDark`, English
294
294
  defaults; `NavLayout` resolves them through `translate` (`shell.toLight`, `shell.toDark`).
295
- - **One choice per document.** `applyColorScheme(choice | null)` sets the class, stores or clears
295
+ - **One choice per document.** `colorSchemeHelper.applyColorScheme(choice | null)` sets the class, stores or clears
296
296
  the key and dispatches `COLOR_SCHEME_EVENT`, so every mounted `useColorScheme` agrees at once;
297
297
  another tab's change arrives through `storage`, and an OS switch through `matchMedia` while
298
298
  nothing is stored. `setChoice(null)` hands the page back to the OS.
@@ -346,7 +346,7 @@ on every navigation. Neither does anything unless an app opts in:
346
346
  cfg.socket = { reloadDialog: true }
347
347
  ```
348
348
 
349
- Once any `ws()`/`useWs()` connection in the app has exhausted its own retry budget
349
+ Once any `socketClientHelper.ws()`/`useWs()` connection in the app has exhausted its own retry budget
350
350
  (`useSocketStatus() === 'lost'`), a global, blocking `AlertDialog` covers the screen — no Escape,
351
351
  no outside click, two actions:
352
352
 
@@ -429,7 +429,7 @@ import { Form, TextInput, SubmitButton, Button } from '@owlmeans/web-panel'
429
429
  ### The terms confirmation — `LoginTerms`, `LoginPrivacyNotice`
430
430
 
431
431
  `components/login/terms.tsx` renders `LoginTermsModel` (`@owlmeans/client-panel/auth`) via
432
- `termsSentence` + `termsLabelResolver` (`@owlmeans/client-auth/login`) rather than re-deriving
432
+ `loginTermsHelper.termsSentence` + `.termsLabelResolver` (`@owlmeans/client-auth/login`) rather than re-deriving
433
433
  link/label pairs itself. **`[data-login-terms]` marks exactly one checkbox — or NONE, once
434
434
  `model.terms.deferred` is true** (`LoginScreen` renders `LoginTerms` when not deferred,
435
435
  `LoginPrivacyNotice` when it is): an e2e suite elsewhere in the platform treats the checkbox as a
@@ -504,7 +504,7 @@ menu has already mounted) and because React 18 StrictMode double-invokes mount/c
504
504
  | Job | Import from `@owlmeans/web-panel/consent` | Where it goes |
505
505
  |---|---|---|
506
506
  | The consent dialog (and its floating re-open button) | `PanelCookieConsent` | Beside the router — a `PanelApp` child — once |
507
- | The "Cookie settings" control in a footer or menu | `PanelConsentMenuWidget` (`label`, `className`, `onSelect?` — defaults to `openConsent('reopen')`) | Inside the host's own footer/menu |
507
+ | The "Cookie settings" control in a footer or menu | `PanelConsentMenuWidget` (`label`, `className`, `onSelect?` — defaults to `consentStore.open('reopen')`) | Inside the host's own footer/menu |
508
508
  | Hiding the floating button while that control is reachable | `useConsentMenuPresence()` | Called by the always-mounted component that renders the control — mounted ONLY while the control can actually be reached: a component that is merely hidden by CSS (`xl:hidden`) is still mounted and still claims presence, so the floating button vanishes with nothing else to open the dialog; render it conditionally instead (viable's header mounts its hamburger menu only below the full-row breakpoint) |
509
509
  | Registering the presence service | `appendConsentWidgetService(context)` | The app's `context.ts` |
510
510
 
@@ -6,5 +6,5 @@ export declare const entrypoints: (import("@owlmeans/client-entrypoint").ClientP
6
6
  query: Partial<import("@owlmeans/auth").AuthToken>;
7
7
  }, undefined>> | import("@owlmeans/client-entrypoint").ClientProtocolEntrypoint<import("@owlmeans/entrypoint").EntrypointProtocol<{
8
8
  query: import("@owlmeans/auth").AuthToken;
9
- }, undefined>>)[];
9
+ }, unknown>>)[];
10
10
  //# sourceMappingURL=entrypoints.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entrypoints.d.ts","sourceRoot":"","sources":["../../src/auth/entrypoints.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW;;;;;;;;iBAAuC,CAAA"}
1
+ {"version":3,"file":"entrypoints.d.ts","sourceRoot":"","sources":["../../src/auth/entrypoints.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW;;;;;;;;eAAuC,CAAA"}
@@ -5,7 +5,7 @@ export { service } from '@owlmeans/config';
5
5
  export { EntrypointOutcome } from '@owlmeans/entrypoint';
6
6
  export type { AbstractRequest } from '@owlmeans/entrypoint';
7
7
  export { addWebService } from '@owlmeans/client-config';
8
- export { bind, bindAll, bindScreen, provideRequest, stab } from '@owlmeans/client-entrypoint';
8
+ export { bind, bindAll, bindScreen, clientRequestHelper, provideRequest, stab } from '@owlmeans/client-entrypoint';
9
9
  export type { ClientEntrypoint as Module, ClientRequest as Request } from '@owlmeans/client-entrypoint';
10
10
  export { route as croute } from '@owlmeans/client-route';
11
11
  export { route, frontend, RouteMethod } from '@owlmeans/route';
@@ -1 +1 @@
1
- {"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../src/auth/exports.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC5G,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACnG,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,YAAY,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AAC7F,YAAY,EAAE,gBAAgB,IAAI,MAAM,EAAE,aAAa,IAAI,OAAO,EAAE,MAAM,6BAA6B,CAAA;AACvG,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC9D,YAAY,EAAE,oBAAoB,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC3E,OAAO,EAAE,aAAa,IAAI,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAExC,OAAO,EAAE,OAAO,EAAE,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,gBAAgB,IAAI,MAAM,EAAE,aAAa,IAAI,OAAO,EAAE,MAAM,6BAA6B,CAAA;AACvG,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC9D,YAAY,EAAE,oBAAoB,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC3E,OAAO,EAAE,aAAa,IAAI,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAExC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAEpE,cAAc,6BAA6B,CAAA;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAEnC,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAC/D,YAAY,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE/C,OAAO,EAAE,aAAa,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAA;AACnE,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,WAAW,IAAI,UAAU,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAC7E,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA"}
@@ -3,7 +3,7 @@ export { config } from '@owlmeans/client-context';
3
3
  export { service } from '@owlmeans/config';
4
4
  export { EntrypointOutcome } from '@owlmeans/entrypoint';
5
5
  export { addWebService } from '@owlmeans/client-config';
6
- export { bind, bindAll, bindScreen, provideRequest, stab } from '@owlmeans/client-entrypoint';
6
+ export { bind, bindAll, bindScreen, clientRequestHelper, provideRequest, stab } from '@owlmeans/client-entrypoint';
7
7
  export { route as croute } from '@owlmeans/client-route';
8
8
  export { route, frontend, RouteMethod } from '@owlmeans/route';
9
9
  export { DEFAULT_ALIAS as DAUTH_GUARD } from '@owlmeans/client-auth';
@@ -1 +1 @@
1
- {"version":3,"file":"exports.js","sourceRoot":"","sources":["../../src/auth/exports.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE5G,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AAE7F,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAE9D,OAAO,EAAE,aAAa,IAAI,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAExC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAEpE,cAAc,6BAA6B,CAAA;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAEnC,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAG/D,OAAO,EAAE,aAAa,IAAI,UAAU,EA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aAAa,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAEnE,OAAO,EAAE,WAAW,IAAI,UAAU,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAC7E,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA"}
@@ -0,0 +1,14 @@
1
+ import type { TextVariant } from './types.js';
2
+ /**
3
+ * Tailwind default breakpoints — kept stable across consumers. If a consumer
4
+ * has customised Tailwind breakpoints in their app config, override this
5
+ * via a wrapping hook in the app.
6
+ */
7
+ export declare const BREAKPOINTS: Array<{
8
+ name: string;
9
+ min: number;
10
+ max: number;
11
+ }>;
12
+ export declare const variantClasses: Record<TextVariant, string>;
13
+ export declare const DARK_CLASS = "dark";
14
+ //# sourceMappingURL=consts.local.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consts.local.d.ts","sourceRoot":"","sources":["../../src/components/consts.local.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAMzE,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAWtD,CAAA;AAED,eAAO,MAAM,UAAU,SAAS,CAAA"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Tailwind default breakpoints — kept stable across consumers. If a consumer
3
+ * has customised Tailwind breakpoints in their app config, override this
4
+ * via a wrapping hook in the app.
5
+ */
6
+ export const BREAKPOINTS = [
7
+ { name: 'xs', min: 0, max: 639 },
8
+ { name: 'sm', min: 640, max: 767 },
9
+ { name: 'md', min: 768, max: 1023 },
10
+ { name: 'lg', min: 1024, max: 1279 },
11
+ { name: 'xl', min: 1280, max: Number.POSITIVE_INFINITY },
12
+ ];
13
+ export const variantClasses = {
14
+ h1: 'scroll-m-20 text-4xl font-extrabold tracking-tight',
15
+ h2: 'scroll-m-20 text-3xl font-semibold tracking-tight',
16
+ h3: 'scroll-m-20 text-2xl font-semibold tracking-tight',
17
+ h4: 'scroll-m-20 text-xl font-semibold tracking-tight',
18
+ p: 'leading-7',
19
+ lead: 'text-xl text-muted-foreground',
20
+ large: 'text-lg font-semibold',
21
+ small: 'text-sm font-medium leading-none',
22
+ muted: 'text-sm text-muted-foreground',
23
+ blockquote: 'mt-6 border-l-2 pl-6 italic',
24
+ };
25
+ export const DARK_CLASS = 'dark';
26
+ //# sourceMappingURL=consts.local.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consts.local.js","sourceRoot":"","sources":["../../src/components/consts.local.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAsD;IAC5E,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAK,GAAG,EAAE,GAAG,EAAG;IACpC,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAG,GAAG,EAAE,GAAG,EAAG;IACpC,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAG,GAAG,EAAE,IAAI,EAAE;IACpC,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE;IACpC,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,iBAAiB,EAAE;CACzD,CAAA;AAED,MAAM,CAAC,MAAM,cAAc,GAAgC;IACzD,EAAE,EAAE,oDAAoD;IACxD,EAAE,EAAE,mDAAmD;IACvD,EAAE,EAAE,mDAAmD;IACvD,EAAE,EAAE,kDAAkD;IACtD,CAAC,EAAE,WAAW;IACd,IAAI,EAAE,+BAA+B;IACrC,KAAK,EAAE,uBAAuB;IAC9B,KAAK,EAAE,kCAAkC;IACzC,KAAK,EAAE,+BAA+B;IACtC,UAAU,EAAE,6BAA6B;CAC1C,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { defaultNavTranslate, resolveNavLabel } from '@owlmeans/client-panel';
2
+ import { navLabelHelper } from '@owlmeans/client-panel';
3
3
  import { cn } from '../../@/lib/utils.js';
4
4
  import { Link } from '../link.js';
5
5
  import { ThemeToggle } from '../scheme/toggle.js';
@@ -30,7 +30,7 @@ import { ShellCredit, useShellCredit } from './credit.js';
30
30
  * an application offers it in the same place and the credit keeps its position whatever the
31
31
  * application's own footer layout does.
32
32
  */
33
- export const Footer = ({ links, translate = defaultNavTranslate, children, content, className, style, containerClassName, themeToggle }) => {
33
+ export const Footer = ({ links, translate = navLabelHelper.defaultNavTranslate, children, content, className, style, containerClassName, themeToggle }) => {
34
34
  const credit = useShellCredit();
35
35
  const hasLinks = (links != null && links.length > 0) || children != null;
36
36
  const toggle = themeToggle == null || themeToggle === false
@@ -40,7 +40,7 @@ export const Footer = ({ links, translate = defaultNavTranslate, children, conte
40
40
  return null;
41
41
  }
42
42
  return _jsx("footer", { className: cn('border-t py-6', className), style: style, children: _jsxs("div", { className: cn('flex flex-col items-center gap-3 text-center', containerClassName), children: [content != null && _jsx("div", { "data-footer-content": true, className: "w-full self-stretch text-start", children: content }), hasLinks && _jsxs("div", { className: "flex flex-wrap items-center justify-center gap-4 text-sm", children: [links?.map((link, idx) => {
43
- const label = resolveNavLabel(translate, link.label, `modules.${link.alias ?? link.href ?? ''}`, link.alias ?? link.href);
43
+ const label = navLabelHelper.resolveNavLabel(translate, link.label, `modules.${link.alias ?? link.href ?? ''}`, link.alias ?? link.href);
44
44
  return link.href != null
45
45
  ? _jsx(Link, { src: link.href, open: link.open, children: label }, `${link.href}:${idx}`)
46
46
  : _jsx(Link, { module: link.alias, open: link.open, children: label }, `${link.alias}:${idx}`);
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../src/components/footer/component.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC7E,OAAO,EAAE,EAAE,EAAE,MAAM,sBAAsB,CAAA;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAIzD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,MAAM,MAAM,GAAoB,CAAC,EACtC,KAAK,EAAE,SAAS,GAAG,mBAAmB,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,kBAAkB,EAC/F,WAAW,EACZ,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,cAAc,EAAE,CAAA;IAC/B,MAAM,QAAQ,GAAG,CAAC,KAAK,IAAI,IAAI,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,QAAQ,IAAI,IAAI,CAAA;IACxE,MAAM,MAAM,GAAG,WAAW,IAAI,IAAI,IAAI,WAAW,KAAK,KAAK;QACzD,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,WAAW,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAA;IAC3C,IAAI,OAAO,IAAI,IAAI,IAAI,CAAC,QAAQ,IAAI,MAAM,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,IAAI,MAAM,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC;QAC/F,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO,iBAAQ,SAAS,EAAE,EAAE,CAAC,eAAe,EAAE,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK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-auth/login';
3
- export interface ShellCreditProps {
4
- className?: string;
5
- }
2
+ import { type ResolvedCredit } from '@owlmeans/client-auth/login';
3
+ import type { ShellCreditProps } from './types.js';
6
4
  /**
7
5
  * The platform credit and the owner's own copyright notice, resolved from the same
8
6
  * `security.auth.login.credit` configuration the sign-in screen reads (`resolveCredit`,
@@ -1 +1 @@
1
- {"version":3,"file":"credit.d.ts","sourceRoot":"","sources":["../../../src/components/footer/credit.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAI/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAKjE,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,QAAO,cAMjC,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAsB5C,CAAA"}
1
+ {"version":3,"file":"credit.d.ts","sourceRoot":"","sources":["../../../src/components/footer/credit.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAG/B,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAIhF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,QAAO,cAMjC,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAsB5C,CAAA"}
@@ -3,7 +3,7 @@ import { useContext } from '@owlmeans/client';
3
3
  import { useI18nLib } from '@owlmeans/client-i18n';
4
4
  import { resolveCredit } from '@owlmeans/client-auth/login';
5
5
  import { cn } from '../../@/lib/utils.js';
6
- import { OWLMEANS_URL } from '../login/credit.js';
6
+ import { OWLMEANS_URL } from '../login/consts.js';
7
7
  /**
8
8
  * The platform credit and the owner's own copyright notice, resolved from the same
9
9
  * `security.auth.login.credit` configuration the sign-in screen reads (`resolveCredit`,
@@ -1 +1 @@
1
- {"version":3,"file":"credit.js","sourceRoot":"","sources":["../../../src/components/footer/credit.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAG3D,OAAO,EAAE,EAAE,EAAE,MAAM,sBAAsB,CAAA;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAMjD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,GAAmB,EAAE;IACjD,MAAM,OAAO,GAAG,UAAU,EAAE,CAAA;IAC5B,MAAM,GAAG,GAAI,OAAO,CAAC,GAAoB,CAAC,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,CAAA;IACvE,MAAM,KAAK,GAAI,OAAO,CAAC,GAAoB,CAAC,KAAK,CAAA;IAEjD,OAAO,aAAa,CAAC,GAAG,EAAE,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;AACvD,CAAC,CAAA;AAED;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,WAAW,GAAyB,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE;IACjE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,cAAc,EAAE,CAAA;IAC5C,MAAM,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAE5B,IAAI,CAAC,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QAC/B,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO,wCAEL,SAAS,EAAE,EAAE,CAAC,2CAA2C,EAAE,SAAS,CAAC,aAEpE,IAAI,IAAI,IAAI,IAA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,CAAC,CAAA;IAE5B,IAAI,CAAC,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QAC/B,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO,wCAEL,SAAS,EAAE,EAAE,CAAC,2CAA2C,EAAE,SAAS,CAAC,aAEpE,IAAI,IAAI,IAAI,IAAI,yBAAO,IAAI,GAAQ,EACnC,SAAS,IAAI,IAAI,IAAI,IAAI,IAAI,8BAAkB,MAAM,yBAAW,EAChE,SAAS,IAAI,wCAEZ,IAAI,EAAE,YAAY,EAAE,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,qBAAqB,EAC7D,SAAS,EAAC,0DAA0D,YAEnE,CAAC,CAAC,sBAAsB,EAAE,EAAE,YAAY,EAAE,qBAAqB,EAAE,CAAC,GACjE,IACF,CAAA;AACN,CAAC,CAAA"}
@@ -24,4 +24,7 @@ export interface FooterProps extends PropsWithChildren<StyledProps> {
24
24
  /** See {@link NavTranslate} — omitted, literal labels and humanized aliases are used. */
25
25
  translate?: NavTranslate;
26
26
  }
27
+ export interface ShellCreditProps {
28
+ className?: string;
29
+ }
27
30
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/footer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,8EAA8E;AAC9E,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG;IAAE,MAAM,CAAC,EAAE,iBAAiB,CAAA;CAAE,CAAA;AAExE,MAAM,WAAW,WAAY,SAAQ,iBAAiB,CAAC,WAAW,CAAC;IACjE,KAAK,CAAC,EAAE,YAAY,EAAE,CAAA;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAC/B,iGAAiG;IACjG,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,yFAAyF;IACzF,SAAS,CAAC,EAAE,YAAY,CAAA;CACzB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/footer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,8EAA8E;AAC9E,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG;IAAE,MAAM,CAAC,EAAE,iBAAiB,CAAA;CAAE,CAAA;AAExE,MAAM,WAAW,WAAY,SAAQ,iBAAiB,CAAC,WAAW,CAAC;IACjE,KAAK,CAAC,EAAE,YAAY,EAAE,CAAA;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAC/B,iGAAiG;IACjG,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,yFAAyF;IACzF,SAAS,CAAC,EAAE,YAAY,CAAA;CACzB;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
@@ -1 +1 @@
1
- {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../src/components/helper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAErD;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,gBACb,YAAY,aACd,YAAY,KACtB,MA4BF,CAAA;AAwBD,eAAO,MAAM,aAAa,QAAO,MAchC,CAAA;AAED,eAAO,MAAM,gBAAgB,GAAI,CAAC,OAAO,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,eAAe,MAAM,KAAG,CAQ1F,CAAA"}
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../src/components/helper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAGrD;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,gBACb,YAAY,aACd,YAAY,KACtB,MA4BF,CAAA;AAWD,eAAO,MAAM,aAAa,QAAO,MAchC,CAAA;AAED,eAAO,MAAM,gBAAgB,GAAI,CAAC,OAAO,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,eAAe,MAAM,KAAG,CAQ1F,CAAA"}
@@ -1,5 +1,6 @@
1
1
  import { useEffect, useState } from 'react';
2
2
  import { BlockScaling } from '@owlmeans/client-panel';
3
+ import { BREAKPOINTS } from './consts.local.js';
3
4
  /**
4
5
  * Map MUI's previous `scalingToStyles(horizontal, vertical, theme): SxProps`
5
6
  * to a Tailwind utility class composition string. Consumers compose this
@@ -36,18 +37,6 @@ export const scalingToStyles = (horizontal, vertical) => {
36
37
  }
37
38
  return parts.join(' ');
38
39
  };
39
- /**
40
- * Tailwind default breakpoints — kept stable across consumers. If a consumer
41
- * has customised Tailwind breakpoints in their app config, override this
42
- * via a wrapping hook in the app.
43
- */
44
- const BREAKPOINTS = [
45
- { name: 'xs', min: 0, max: 639 },
46
- { name: 'sm', min: 640, max: 767 },
47
- { name: 'md', min: 768, max: 1023 },
48
- { name: 'lg', min: 1024, max: 1279 },
49
- { name: 'xl', min: 1280, max: Number.POSITIVE_INFINITY },
50
- ];
51
40
  const matchBreakpoint = (width) => {
52
41
  for (const bp of BREAKPOINTS) {
53
42
  if (width >= bp.min && width <= bp.max) {
@@ -1 +1 @@
1
- {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../src/components/helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAErD;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,UAAyB,EACzB,QAAuB,EACf,EAAE;IACV,MAAM,KAAK,GAAa,EAAE,CAAA;IAE1B,QAAQ,UAAU,EAAE,CAAC;QACnB,KAAK,YAAY,CAAC,IAAI;YACpB,KAAK,CAAC,IAAI,CAAC,aAAa,EAAE,gBAAgB,EAAE,MAAM,CAAC,CAAA;YACnD,MAAK;QACP,KAAK,YAAY,CAAC,IAAI;YACpB,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CAAA;YAC9B,MAAK;QACP,KAAK,YAAY,CAAC,IAAI;YACpB,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;YAClB,MAAK;IACT,CAAC;IAED,QAAQ,QAAQ,EAAE,CAAC;QACjB,KAAK,YAAY,CAAC,IAAI;YACpB,KAAK,CAAC,IAAI,CAAC,aAAa,EAAE,gBAAgB,EAAE,MAAM,CAAC,CAAA;YACnD,MAAK;QACP,KAAK,YAAY,CAAC,IAAI;YACpB,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CAAA;YAC9B,MAAK;QACP,KAAK,YAAY,CAAC,IAAI;YACpB,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;YAC5B,MAAK;IACT,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AACxB,CAAC,CAAA;AAED;;;;GAIG;AACH,MAAM,WAAW,GAAsD;IACrE,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,C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QAAQ,EAAE,CAAA;QACV,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;QAC3C,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;IAC7D,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,OAAO,EAAE,CAAA;AACX,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAI,GAAsB,EAAE,GAAO,EAAE,UAAmB,EAAK,EAAE;IAC7F,MAAM,WAAW,GAAG,aAAa,EAAE,CAAA;IACnC,UAAU,GAAG,UAAU,IAAI,WAAW,CAAA;IACtC,MAAM,MAAM,GAAG,GAAG,CAAC,UAAU,CAAC,IAAI,GAAG,CAAA;IACrC,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;QACnB,MAAM,IAAI,WAAW,CAAC,kDAAkD,UAAU,SAAS,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;IACzI,CAAC;IACD,OAAO,MAAW,CAAA;AACpB,CAAC,CAAA"}
@@ -1,12 +1,5 @@
1
- import type { ComponentType, ReactNode } from 'react';
2
- import type { LoginScreenProps } from '@owlmeans/client-auth/login';
3
1
  import type { BasicConfig, BasicContext } from '@owlmeans/context';
4
- export interface LoginScreenSetup extends Omit<LoginScreenProps, 'translate'> {
5
- /** The one thing an application is expected to supply. */
6
- Logo?: ComponentType<{
7
- className?: string;
8
- }> | ReactNode;
9
- }
2
+ import type { LoginScreenSetup } from './types.js';
10
3
  /**
11
4
  * Give this context the shadcn sign-in screen, with the application's own logo and copy on it.
12
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"append.d.ts","sourceRoot":"","sources":["../../../src/components/login/append.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAErD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAKlE,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,WAAW,CAAC;IAC3E,0DAA0D;IAC1D,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,SAAS,CAAA;CACzD;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,WAAW,EAAE,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,OAC3E,CAAC,UAAU,gBAAgB,KAC/B,CAaF,CAAA"}
1
+ {"version":3,"file":"append.d.ts","sourceRoot":"","sources":["../../../src/components/login/append.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAIlE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,WAAW,EAAE,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,OAC3E,CAAC,UAAU,gBAAgB,KAC/B,CAaF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"append.js","sourceRoot":"","sources":["../../../src/components/login/append.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAIhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAOhD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,GAAM,EAAE,KAAwB,EAC7B,EAAE;IACL,MAAM,OAAO,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAA;IACvC,O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,CAAA"}
@@ -0,0 +1,3 @@
1
+ /** Where "Powered by OwlMeans" leads, on the sign-in screen and in every shell footer alike. */
2
+ export declare const OWLMEANS_URL = "https://owlmeans.com";
3
+ //# sourceMappingURL=consts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../src/components/login/consts.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,eAAO,MAAM,YAAY,yBAAyB,CAAA"}
@@ -0,0 +1,3 @@
1
+ /** Where "Powered by OwlMeans" leads, on the sign-in screen and in every shell footer alike. */
2
+ export const OWLMEANS_URL = 'https://owlmeans.com';
3
+ //# sourceMappingURL=consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../src/components/login/consts.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,MAAM,CAAC,MAAM,YAAY,GAAG,sBAAsB,CAAA"}
@@ -0,0 +1,4 @@
1
+ export declare const AUTH_RESOURCE = "auth";
2
+ export declare const POPUP_BLOCKED_FALLBACK = "The sign-in window was blocked. Click the blocked pop-up icon in your browser's address bar to open it.";
3
+ export declare const VARIANT: Record<string, 'default' | 'outline' | 'link'>;
4
+ //# sourceMappingURL=consts.local.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consts.local.d.ts","sourceRoot":"","sources":["../../../src/components/login/consts.local.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,SAAS,CAAA;AAEnC,eAAO,MAAM,sBAAsB,4GACwE,CAAA;AAE3G,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,CAIlE,CAAA"}
@@ -0,0 +1,8 @@
1
+ export const AUTH_RESOURCE = 'auth';
2
+ export const POPUP_BLOCKED_FALLBACK = "The sign-in window was blocked. Click the blocked pop-up icon in your browser's address bar to open it.";
3
+ export const VARIANT = {
4
+ primary: 'default',
5
+ secondary: 'outline',
6
+ link: 'link',
7
+ };
8
+ //# sourceMappingURL=consts.local.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consts.local.js","sourceRoot":"","sources":["../../../src/components/login/consts.local.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAA;AAEnC,MAAM,CAAC,MAAM,sBAAsB,GACjC,yGAAyG,CAAA;AAE3G,MAAM,CAAC,MAAM,OAAO,GAAmD;IACrE,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,SAAS;IACpB,IAAI,EAAE,MAAM;CACb,CAAA"}
@@ -1,12 +1,5 @@
1
1
  import type { FC } from 'react';
2
- import type { LoginCreditModel } from '@owlmeans/client-panel/auth';
3
- /** Where "Powered by OwlMeans" leads, on the sign-in screen and in every shell footer alike. */
4
- export declare const OWLMEANS_URL = "https://owlmeans.com";
5
- export interface LoginCreditProps {
6
- model: LoginCreditModel;
7
- translate: (key: string, defaultValue: string) => string;
8
- className?: string;
9
- }
2
+ import type { LoginCreditProps } from './types.js';
10
3
  /**
11
4
  * The line at the bottom of a sign-in screen.
12
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"credit.d.ts","sourceRoot":"","sources":["../../../src/components/login/credit.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAEnE,gGAAgG;AAChG,eAAO,MAAM,YAAY,yBAAyB,CAAA;AAElD,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,gBAAgB,CAAA;IACvB,SAAS,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,MAAM,CAAA;IACxD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAmB5C,CAAA"}
1
+ {"version":3,"file":"credit.d.ts","sourceRoot":"","sources":["../../../src/components/login/credit.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAG/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAmB5C,CAAA"}
@@ -1,7 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { cn } from '../../@/lib/utils.js';
3
- /** Where "Powered by OwlMeans" leads, on the sign-in screen and in every shell footer alike. */
4
- export const OWLMEANS_URL = 'https://owlmeans.com';
3
+ import { OWLMEANS_URL } from './consts.js';
5
4
  /**
6
5
  * The line at the bottom of a sign-in screen.
7
6
  *
@@ -1 +1 @@
1
- {"version":3,"file":"credit.js","sourceRoot":"","sources":["../../../src/components/login/credit.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,sBAAsB,CAAA;AAGzC,gGAAgG;AAChG,MAAM,CAAC,MAAM,YAAY,GAAG,sBAAsB,CAAA;AAQlD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,WAAW,GAAyB,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE;IACnF,IAAI,CAAC,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC;QAC3C,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO,wCAEL,SAAS,EAAE,EAAE,CAAC,2CAA2C,EAAE,SAAS,CAAC,aAEpE,KAAK,CAAC,SAAS,IAAI,wCAElB,IAAI,EAAE,YAAY,EAAE,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,qBAAqB,EAC7D,SAAS,EAAC,0DAA0D,YAEnE,SAAS,CAAC,sBAAsB,EAAE,qBAAqB,CAAC,GACvD,EACH,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,IAAI,IAAI,IAAI,8BAAkB,MAAM,yBAAW,EAC5E,KAAK,CAAC,IAAI,IAAI,IAAI,IAAI,yBAAO,KAAK,CAAC,IAAI,GAAQ,IAC9C,CAAA;AACN,CAAC,CAAA"}
1
+ {"version":3,"file":"credit.js","sourceRoot":"","sources":["../../../src/components/login/credit.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,sBAAsB,CAAA;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAG1C;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,WAAW,GAAyB,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE;IACnF,IAAI,CAAC,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC;QAC3C,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO,wCAEL,SAAS,EAAE,EAAE,CAAC,2CAA2C,EAAE,SAAS,CAAC,aAEpE,KAAK,CAAC,SAAS,IAAI,wCAElB,IAAI,EAAE,YAAY,EAAE,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,qBAAqB,EAC7D,SAAS,EAAC,0DAA0D,YAEnE,SAAS,CAAC,sBAAsB,EAAE,qBAAqB,CAAC,GACvD,EACH,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,IAAI,IAAI,IAAI,8BAAkB,MAAM,yBAAW,EAC5E,KAAK,CAAC,IAAI,IAAI,IAAI,IAAI,yBAAO,KAAK,CAAC,IAAI,GAAQ,IAC9C,CAAA;AACN,CAAC,CAAA"}
@@ -1,6 +1,8 @@
1
1
  export * from './screen.js';
2
2
  export * from './terms.js';
3
+ export type * from './types.js';
3
4
  export * from './credit.js';
5
+ export * from './consts.js';
4
6
  export * from './icons.js';
5
7
  export * from './append.js';
6
8
  export * from './notify.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/login/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/login/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,mBAAmB,YAAY,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
@@ -1,6 +1,7 @@
1
1
  export * from './screen.js';
2
2
  export * from './terms.js';
3
3
  export * from './credit.js';
4
+ export * from './consts.js';
4
5
  export * from './icons.js';
5
6
  export * from './append.js';
6
7
  export * from './notify.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/login/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/login/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAE1B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import type { ClientConfig } from '@owlmeans/client-context';
2
- import type { LoginNotifier } from '@owlmeans/client-auth/login';
2
+ import { type LoginNotifier } from '@owlmeans/client-auth/login';
3
3
  /**
4
4
  * Tell the user a login/logout attempt was silently blocked, when nothing else on screen will.
5
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"notify.d.ts","sourceRoot":"","sources":["../../../src/components/login/notify.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAG5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AA4BhE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,QAAS,YAAY,KAAG,aAKtD,CAAA"}
1
+ {"version":3,"file":"notify.d.ts","sourceRoot":"","sources":["../../../src/components/login/notify.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAE5D,OAAO,EAAgB,KAAK,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAwB9E;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,QAAS,YAAY,KAAG,aAKtD,CAAA"}
@@ -1,9 +1,8 @@
1
- import { initI18nResource, LIB_NAMESPACE } from '@owlmeans/i18n';
2
- import { getI18nInstance } from '@owlmeans/client-i18n/utils';
1
+ import { LIB_NAMESPACE, i18nHelper } from '@owlmeans/i18n';
2
+ import { i18nInstanceHelper } from '@owlmeans/client-i18n/utils';
3
3
  import { toast } from 'sonner';
4
4
  import { LoginOutcome } from '@owlmeans/client-auth/login';
5
- const AUTH_RESOURCE = 'auth';
6
- const POPUP_BLOCKED_FALLBACK = "The sign-in window was blocked. Click the blocked pop-up icon in your browser's address bar to open it.";
5
+ import { AUTH_RESOURCE, POPUP_BLOCKED_FALLBACK } from './consts.local.js';
7
6
  /**
8
7
  * Translate an `auth`-library key with no mounted component to read it through.
9
8
  *
@@ -14,8 +13,8 @@ const POPUP_BLOCKED_FALLBACK = "The sign-in window was blocked. Click the blocke
14
13
  * memoized), and the other later gets `null` back and no-ops with the bundle already there.
15
14
  */
16
15
  const translateAuth = (cfg, key, fallback) => {
17
- const i18n = getI18nInstance(cfg);
18
- const resources = initI18nResource(i18n.language, AUTH_RESOURCE, LIB_NAMESPACE);
16
+ const i18n = i18nInstanceHelper.getI18nInstance(cfg);
17
+ const resources = i18nHelper.initI18nResource(i18n.language, AUTH_RESOURCE, LIB_NAMESPACE);
19
18
  resources?.forEach(resource => i18n.addResourceBundle(i18n.language, LIB_NAMESPACE, { [AUTH_RESOURCE]: resource.data }, true, true));
20
19
  return i18n.t(`${AUTH_RESOURCE}.${key}`, { ns: LIB_NAMESPACE, defaultValue: fallback });
21
20
  };
@@ -1 +1 @@
1
- {"version":3,"file":"notify.js","sourceRoot":"","sources":["../../../src/components/login/notify.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAE7D,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAG1D,MAAM,aAAa,GAAG,MAAM,CAAA;AAE5B,MAAM,sBAAsB,GAC1B,yGAAyG,CAAA;AAE3G;;;;;;;;GAQG;AACH,MAAM,aAAa,GAAG,CAAC,GAAiB,EAAE,GAAW,EAAE,QAAgB,EAAU,EAAE;IACjF,MAAM,IAAI,GAAG,eAAe,CAAC,GAAG,CAAC,CAAA;IACjC,MAAM,SAAS,GAAG,gBAAgB,CAAC,IAAI,CAAC,QAAQ,EAAE,aAAa,EAAE,aAAa,CAAC,CAAA;IAC/E,SAAS,EAAE,OAAO,CAChB,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAChC,IAAI,CAAC,QAAQ,EAAE,aAAa,EAAE,EAAE,CAAC,aAAa,CAAC,EAAE,QAAQ,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,CAC7E,CACF,CAAA;IAED,OAAO,IAAI,CAAC,CA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EAAE,EAAE,IAAI,EAAE,IAAI,CAC7E,CACF,CAAA;IAED,OAAO,IAAI,CAAC,CAAC,CAAC,GAAG,aAAa,IAAI,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,aAAa,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC,CAAA;AACzF,CAAC,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,GAAiB,EAAiB,EAAE,CAAC,OAAO,CAAC,EAAE;IAChF,IAAI,OAAO,KAAK,YAAY,CAAC,OAAO,EAAE,CAAC;QACrC,OAAM;IACR,CAAC;IACD,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,EAAE,qBAAqB,EAAE,sBAAsB,CAAC,CAAC,CAAA;AAClF,CAAC,CAAA"}
@@ -1,5 +1,5 @@
1
- import type { FC } from 'react';
2
- import type { LoginScreenProps } from '@owlmeans/client-auth/login';
1
+ import { type FC } from 'react';
2
+ import { type LoginScreenProps } from '@owlmeans/client-auth/login';
3
3
  /**
4
4
  * The sign-in screen: which identity provider, confirmed against which documents.
5
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"screen.d.ts","sourceRoot":"","sources":["../../../src/components/login/screen.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAQ/B,OAAO,KAAK,EAAe,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAWhF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAgG5C,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,gBAAgB,CASrD,CAAA"}
1
+ {"version":3,"file":"screen.d.ts","sourceRoot":"","sources":["../../../src/components/login/screen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAA;AAO/C,OAAO,EAAoB,KAAK,gBAAgB,EAAqB,MAAM,6BAA6B,CAAA;AAMxG;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAgG5C,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,gBAAgB,CASrD,CAAA"}