authhero 8.25.0 → 8.25.1

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 (41) hide show
  1. package/dist/assets/u/css/tailwind.css +1 -1
  2. package/dist/authhero.cjs +7 -7
  3. package/dist/authhero.css +1 -1
  4. package/dist/authhero.d.ts +218 -200
  5. package/dist/authhero.mjs +161 -125
  6. package/dist/tailwind.css +1 -1
  7. package/dist/tsconfig.types.tsbuildinfo +1 -1
  8. package/dist/types/components/AuthCard.d.ts +17 -0
  9. package/dist/types/components/PasswordField.d.ts +18 -0
  10. package/dist/types/components/auth-form-styles.d.ts +39 -0
  11. package/dist/types/components/auth-forms.render.test.d.ts +1 -0
  12. package/dist/types/components/ui/input.d.ts +1 -0
  13. package/dist/types/index.d.ts +197 -197
  14. package/dist/types/routes/auth-api/index.d.ts +27 -27
  15. package/dist/types/routes/auth-api/passwordless.d.ts +12 -12
  16. package/dist/types/routes/auth-api/revoke.d.ts +2 -2
  17. package/dist/types/routes/auth-api/token.d.ts +12 -12
  18. package/dist/types/routes/auth-api/well-known.d.ts +1 -1
  19. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  20. package/dist/types/routes/management-api/branding.d.ts +1 -1
  21. package/dist/types/routes/management-api/connections.d.ts +1 -1
  22. package/dist/types/routes/management-api/failed-events.d.ts +1 -1
  23. package/dist/types/routes/management-api/forms.d.ts +126 -126
  24. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  25. package/dist/types/routes/management-api/index.d.ts +165 -165
  26. package/dist/types/routes/management-api/logs.d.ts +4 -4
  27. package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
  28. package/dist/types/routes/management-api/organizations.d.ts +8 -8
  29. package/dist/types/routes/management-api/prompts.d.ts +4 -4
  30. package/dist/types/routes/management-api/roles.d.ts +1 -1
  31. package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
  32. package/dist/types/routes/management-api/users.d.ts +2 -2
  33. package/dist/types/routes/proxy-control-plane/index.d.ts +7 -1
  34. package/dist/types/routes/proxy-control-plane/verify.d.ts +13 -1
  35. package/dist/types/routes/universal-login/flow-api.d.ts +12 -12
  36. package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
  37. package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
  38. package/dist/types/styles/tailwind.d.ts +1 -1
  39. package/dist/types/types/AuthHeroConfig.d.ts +6 -1
  40. package/dist/types/utils/jwks.d.ts +2 -2
  41. package/package.json +3 -3
@@ -0,0 +1,17 @@
1
+ import type { FC, Child, PropsWithChildren } from "hono/jsx";
2
+ import { Theme, Branding } from "@authhero/adapter-interfaces";
3
+ import type { AuthFormStyles } from "./auth-form-styles";
4
+ type Props = PropsWithChildren<{
5
+ styles: AuthFormStyles;
6
+ theme?: Theme | null;
7
+ branding?: Branding | null;
8
+ title: Child;
9
+ description: Child;
10
+ className?: string;
11
+ }>;
12
+ /**
13
+ * The shared page shell for the universal-login auth screens: the themed card,
14
+ * optional logo, title, and description, with the form passed as children.
15
+ */
16
+ declare const AuthCard: FC<Props>;
17
+ export default AuthCard;
@@ -0,0 +1,18 @@
1
+ import type { FC } from "hono/jsx";
2
+ type Props = {
3
+ id: string;
4
+ name: string;
5
+ placeholder: string;
6
+ error?: boolean;
7
+ style?: Record<string, string | number>;
8
+ };
9
+ /**
10
+ * A themed password input with a client-side show/hide toggle.
11
+ *
12
+ * Emits the `data-password-toggle` / `data-password-input` /
13
+ * `data-password-toggle-btn` / `data-show-icon` / `data-hide-icon` hooks that
14
+ * the client-side `PasswordToggle` component wires up. Shared by the
15
+ * enter-password, reset-password, and sign-up screens.
16
+ */
17
+ declare const PasswordField: FC<Props>;
18
+ export default PasswordField;
@@ -0,0 +1,39 @@
1
+ import { Theme, Branding } from "@authhero/adapter-interfaces";
2
+ type Style = Record<string, string | number>;
3
+ /**
4
+ * Derived theme/branding styles shared by the universal-login auth forms.
5
+ *
6
+ * Every field is computed exactly as the forms did inline, so
7
+ * {@link getThemeStyles} is a drop-in replacement that renders byte-identically.
8
+ * `inputStyle` depends on whether the form is in an error state, so `error` is
9
+ * passed in.
10
+ */
11
+ export interface AuthFormStyles {
12
+ primaryColor: string;
13
+ primaryButtonLabel: string;
14
+ bodyText: string;
15
+ inputBackground: string;
16
+ inputBorder: string;
17
+ inputText: string;
18
+ errorColor: string;
19
+ widgetBackground: string;
20
+ widgetBorder: string;
21
+ borderRadius: number;
22
+ inputBorderRadius: number;
23
+ buttonBorderRadius: number;
24
+ showShadow: boolean;
25
+ titleSize: number;
26
+ titleBold: boolean;
27
+ bodySize: number;
28
+ cardStyle: Style;
29
+ titleStyle: Style;
30
+ bodyStyle: Style;
31
+ inputStyle: Style;
32
+ buttonStyle: Style;
33
+ logoPosition: string;
34
+ logoAlignmentClass: string;
35
+ logoUrl?: string;
36
+ showLogo: string | false | undefined;
37
+ }
38
+ export declare function getThemeStyles(theme?: Theme | null, branding?: Branding | null, error?: string): AuthFormStyles;
39
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -10,6 +10,7 @@ export interface InputProps {
10
10
  disabled?: boolean;
11
11
  error?: boolean;
12
12
  style?: Record<string, string | number>;
13
+ "data-password-input"?: string;
13
14
  }
14
15
  declare const Input: FC<InputProps>;
15
16
  export default Input;