@aiquants/auth-react-router 0.27.0 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -41,7 +41,7 @@ import { createAuthServer } from "@aiquants/auth-react-router/server"
41
41
  export const authServer = createAuthServer({
42
42
  google: { clientId: env.GOOGLE_CLIENT_ID, clientSecret: env.GOOGLE_CLIENT_SECRET, redirectURI: env.GOOGLE_OAUTH_REDIRECT_URL },
43
43
  session: { secrets: [env.REMIX_SESSION_SECRET] },
44
- isEmailAllowed: emailDomainAllowlist(parseAllowlistCsv(env.ALLOWED_EMAILS), parseAllowlistCsv(env.ALLOWED_DOMAINS)),
44
+ isEmailAllowed: emailDomainAllowlist(parseAllowlistCsv(env.AUTHZ_ALLOWED_EMAILS), parseAllowlistCsv(env.AUTHZ_ALLOWED_DOMAINS)),
45
45
  isUserActive: async (profile) => isAccountEnabled(profile), // optional: deactivation revokes live sessions
46
46
  sessionGeneration: { store: sessionGenerationStore }, // REQUIRED: sign-out generation store shared by every process (or false)
47
47
  backendAuth: { verify: verifyBackend, signup: (p, t) => signupBackend(p, t) }, // FastAPI verify/signup
@@ -203,7 +203,24 @@ export default () => <AuthUserAdminAppView basePath="/users" />
203
203
  element around it: the label of the visually hidden "create from" radios and of the "members only" checkbox. The two
204
204
  upstream-group pickers keep the 44 px targets of `@aiquants/select-box` itself. Rows grow to hold their actions; on
205
205
  a narrow screen the toolbars and the tabs wrap, the tables scroll sideways, and a dialog taller than the screen
206
- scrolls with its backdrop.
206
+ scrolls with its backdrop. The fields of the directory link form shrink to the width of the form's row, so the page
207
+ never scrolls sideways, even at 400 % zoom (a viewport 320 to 360 CSS px wide).
208
+ - **Text size**: the names of the row actions, of the links to a group's members and of the pressable "create from"
209
+ and "members only" labels are set in the `body` step (13 px on a 20 px line), and the permission badge of the header
210
+ and its pills in the `caption` step (11 px on a 20 px line); no text of the package is smaller than `caption`. A
211
+ size is always read together with its line height. A one-line name sits inside its 44 px target without changing
212
+ it; a name that wraps takes 20 px per line (the longer "create from" label wraps to two lines, a 54.8 px box). The
213
+ sizes are in rem, so they follow the browser's zoom and its root font-size setting. They are read from custom
214
+ properties with these defaults, which a host may bind once on `:root` (never declare them on an element inside the
215
+ screen: a declaration there wins over the host's binding):
216
+
217
+ | Custom property | Default | Read by |
218
+ | --- | --- | --- |
219
+ | `--aqau-font-size-body` | `0.8125rem` (13 px) | the names of the controls above |
220
+ | `--aqau-line-height-body` | `1.25rem` (20 px) | the same controls, together with the size |
221
+ | `--aqau-font-size-caption` | `0.6875rem` (11 px) | the permission badge of the header and its pills |
222
+ | `--aqau-line-height-caption` | `1.25rem` (20 px) | the same badge and pills, together with the size |
223
+
207
224
  - **The group-members tab reflows without a media query** (WCAG 2.2 SC 1.4.10): the group list keeps a 240 px basis
208
225
  and the member panel never takes less than half the row, so the two sit side by side from about 518 px
209
226
  (`2 × (240 px + 1.2rem)`) and stack, each at the full width, below it. The heading, the action error and the