authhero 5.17.1 → 5.18.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.
Files changed (40) hide show
  1. package/dist/assets/u/widget/authhero-widget.esm.js +1 -1
  2. package/dist/assets/u/widget/p-35c8b265.entry.js +1 -0
  3. package/dist/authhero.cjs +118 -122
  4. package/dist/authhero.d.ts +221 -195
  5. package/dist/authhero.mjs +8767 -8675
  6. package/dist/stats.html +1 -1
  7. package/dist/tsconfig.types.tsbuildinfo +1 -1
  8. package/dist/types/authentication-flows/passwordless.d.ts +1 -1
  9. package/dist/types/emails/defaults/Layout.d.ts +3 -3
  10. package/dist/types/emails/defaults/PrimaryButton.d.ts +5 -2
  11. package/dist/types/index.d.ts +212 -195
  12. package/dist/types/middlewares/index.d.ts +3 -0
  13. package/dist/types/middlewares/prefer.d.ts +12 -0
  14. package/dist/types/routes/auth-api/index.d.ts +22 -22
  15. package/dist/types/routes/auth-api/passwordless.d.ts +16 -16
  16. package/dist/types/routes/auth-api/revoke.d.ts +6 -6
  17. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  18. package/dist/types/routes/management-api/branding.d.ts +9 -9
  19. package/dist/types/routes/management-api/clients.d.ts +2 -2
  20. package/dist/types/routes/management-api/connections.d.ts +6 -6
  21. package/dist/types/routes/management-api/custom-domains.d.ts +8 -8
  22. package/dist/types/routes/management-api/email-templates.d.ts +17 -0
  23. package/dist/types/routes/management-api/forms.d.ts +119 -119
  24. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  25. package/dist/types/routes/management-api/index.d.ts +185 -168
  26. package/dist/types/routes/management-api/logs.d.ts +3 -3
  27. package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
  28. package/dist/types/routes/management-api/organizations.d.ts +3 -3
  29. package/dist/types/routes/management-api/prompts.d.ts +4 -4
  30. package/dist/types/routes/management-api/themes.d.ts +6 -6
  31. package/dist/types/routes/management-api/users.d.ts +2 -2
  32. package/dist/types/routes/universal-login/common.d.ts +8 -8
  33. package/dist/types/routes/universal-login/flow-api.d.ts +8 -8
  34. package/dist/types/routes/universal-login/identifier.d.ts +2 -2
  35. package/dist/types/routes/universal-login/index.d.ts +2 -2
  36. package/dist/types/routes/universal-login/u2-index.d.ts +3 -3
  37. package/dist/types/routes/universal-login/u2-routes.d.ts +3 -3
  38. package/dist/types/types/Variables.d.ts +2 -0
  39. package/package.json +2 -2
  40. package/dist/assets/u/widget/p-f0f9eca3.entry.js +0 -1
@@ -404,7 +404,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
404
404
  } | undefined;
405
405
  } | undefined;
406
406
  passkey_options?: {
407
- challenge_ui?: "both" | "autofill" | "button" | undefined;
407
+ challenge_ui?: "button" | "both" | "autofill" | undefined;
408
408
  local_enrollment_enabled?: boolean | undefined;
409
409
  progressive_enrollment_enabled?: boolean | undefined;
410
410
  } | undefined;
@@ -4,9 +4,9 @@ interface LayoutProps {
4
4
  children: ReactNode;
5
5
  }
6
6
  /**
7
- * Shared frame for all built-in email defaults. Liquid placeholders
8
- * (`{{ branding.logo }}`, `{{ tenant.support_url }}`, etc.) are emitted as
9
- * raw strings; the runtime Liquid pass interpolates them per-send.
7
+ * Shared frame for all built-in email defaults. Every visual token
8
+ * (logo, colors, signature, address) is emitted as a raw Liquid placeholder
9
+ * and resolved at send time from the tenant's branding + per-send vars.
10
10
  */
11
11
  export declare function Layout({ preview, children }: LayoutProps): import("react").JSX.Element;
12
12
  export {};
@@ -4,8 +4,11 @@ interface PrimaryButtonProps {
4
4
  children: ReactNode;
5
5
  }
6
6
  /**
7
- * Liquid-friendly button. The background color is a Liquid placeholder so the
8
- * runtime pass can substitute the tenant's `branding.primary_color`.
7
+ * Liquid-friendly button. Background, text color, and border radius are
8
+ * emitted as raw Liquid placeholders; `sendTemplatedEmail` is responsible
9
+ * for resolving defaults before render. Inlining `| default: '...'` here
10
+ * would not survive React Email's HTML escaping — single quotes become
11
+ * `&#x27;`, which liquidjs cannot parse as a string literal.
9
12
  */
10
13
  export declare function PrimaryButton({ href, children }: PrimaryButtonProps): import("react").JSX.Element;
11
14
  export {};