@passflow/react 0.14.0 → 0.15.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.
- package/CHANGELOG.md +66 -0
- package/README.md +29 -16
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.es.js +143 -143
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/error/index.d.cts +7 -0
- package/dist/src/components/error/index.d.ts +1 -1
- package/dist/src/components/error/index.d.ts.map +1 -1
- package/dist/src/components/flow/consent/index.d.cts +13 -0
- package/dist/src/components/flow/consent/index.d.ts +1 -1
- package/dist/src/components/flow/consent/index.d.ts.map +1 -1
- package/dist/src/components/flow/consent/screen.d.cts +9 -0
- package/dist/src/components/flow/consent/screen.d.ts +2 -2
- package/dist/src/components/flow/consent/screen.d.ts.map +1 -1
- package/dist/src/components/flow/device-verify/index.d.cts +10 -0
- package/dist/src/components/flow/device-verify/index.d.ts +1 -1
- package/dist/src/components/flow/device-verify/index.d.ts.map +1 -1
- package/dist/src/components/flow/device-verify/screen.d.cts +4 -0
- package/dist/src/components/flow/device-verify/screen.d.ts +2 -2
- package/dist/src/components/flow/device-verify/screen.d.ts.map +1 -1
- package/dist/src/components/flow/index.d.cts +5 -0
- package/dist/src/components/flow/index.d.ts +4 -4
- package/dist/src/components/flow/index.d.ts.map +1 -1
- package/dist/src/components/flow/passflow/index.d.cts +16 -0
- package/dist/src/components/flow/passflow/index.d.ts +5 -1
- package/dist/src/components/flow/passflow/index.d.ts.map +1 -1
- package/dist/src/components/flow/two-factor-setup/index.d.cts +10 -0
- package/dist/src/components/flow/two-factor-setup/index.d.ts +2 -2
- package/dist/src/components/flow/two-factor-setup/index.d.ts.map +1 -1
- package/dist/src/components/flow/two-factor-setup-magic-link/index.d.cts +35 -0
- package/dist/src/components/flow/two-factor-setup-magic-link/index.d.ts +2 -2
- package/dist/src/components/flow/two-factor-setup-magic-link/index.d.ts.map +1 -1
- package/dist/src/components/flow/two-factor-verify/index.d.cts +11 -0
- package/dist/src/components/flow/two-factor-verify/index.d.ts +2 -2
- package/dist/src/components/flow/two-factor-verify/index.d.ts.map +1 -1
- package/dist/src/components/form/forgot-password/forgot-password-success.d.cts +2 -0
- package/dist/src/components/form/forgot-password/forgot-password-success.d.ts +1 -1
- package/dist/src/components/form/forgot-password/forgot-password-success.d.ts.map +1 -1
- package/dist/src/components/form/forgot-password/forgot-password.d.cts +9 -0
- package/dist/src/components/form/forgot-password/forgot-password.d.ts +1 -1
- package/dist/src/components/form/forgot-password/forgot-password.d.ts.map +1 -1
- package/dist/src/components/form/forgot-password/index.d.cts +3 -0
- package/dist/src/components/form/forgot-password/index.d.ts +2 -2
- package/dist/src/components/form/index.d.cts +10 -0
- package/dist/src/components/form/index.d.ts +9 -9
- package/dist/src/components/form/index.d.ts.map +1 -1
- package/dist/src/components/form/invitation-join/index.d.cts +7 -0
- package/dist/src/components/form/invitation-join/index.d.ts +1 -2
- package/dist/src/components/form/invitation-join/index.d.ts.map +1 -1
- package/dist/src/components/form/reset-password/index.d.cts +9 -0
- package/dist/src/components/form/reset-password/index.d.ts +2 -2
- package/dist/src/components/form/reset-password/index.d.ts.map +1 -1
- package/dist/src/components/form/signin/index.d.cts +15 -0
- package/dist/src/components/form/signin/index.d.ts +2 -2
- package/dist/src/components/form/signin/index.d.ts.map +1 -1
- package/dist/src/components/form/signup/index.d.cts +14 -0
- package/dist/src/components/form/signup/index.d.ts +2 -2
- package/dist/src/components/form/signup/index.d.ts.map +1 -1
- package/dist/src/components/form/two-factor-challenge/index.d.cts +10 -0
- package/dist/src/components/form/two-factor-challenge/index.d.ts +1 -1
- package/dist/src/components/form/two-factor-challenge/index.d.ts.map +1 -1
- package/dist/src/components/form/two-factor-challenge/method-selector.d.cts +12 -0
- package/dist/src/components/form/two-factor-challenge/method-selector.d.ts +2 -2
- package/dist/src/components/form/two-factor-setup/index.d.cts +2 -0
- package/dist/src/components/form/two-factor-setup/index.d.ts +1 -1
- package/dist/src/components/form/two-factor-setup/two-factor-setup-form.d.cts +9 -0
- package/dist/src/components/form/two-factor-setup/two-factor-setup-form.d.ts +1 -1
- package/dist/src/components/form/two-factor-setup/two-factor-setup-form.d.ts.map +1 -1
- package/dist/src/components/form/two-factor-verify/index.d.cts +3 -0
- package/dist/src/components/form/two-factor-verify/index.d.ts +2 -2
- package/dist/src/components/form/two-factor-verify/index.d.ts.map +1 -1
- package/dist/src/components/form/two-factor-verify/two-factor-recovery-form.d.cts +13 -0
- package/dist/src/components/form/two-factor-verify/two-factor-recovery-form.d.ts +1 -1
- package/dist/src/components/form/two-factor-verify/two-factor-recovery-form.d.ts.map +1 -1
- package/dist/src/components/form/two-factor-verify/two-factor-verify-form.d.cts +16 -0
- package/dist/src/components/form/two-factor-verify/two-factor-verify-form.d.ts +1 -1
- package/dist/src/components/form/two-factor-verify/two-factor-verify-form.d.ts.map +1 -1
- package/dist/src/components/form/verify-challenge/index.d.cts +3 -0
- package/dist/src/components/form/verify-challenge/index.d.ts +2 -2
- package/dist/src/components/form/verify-challenge/timer-button.d.cts +9 -0
- package/dist/src/components/form/verify-challenge/timer-button.d.ts +1 -1
- package/dist/src/components/form/verify-challenge/timer-button.d.ts.map +1 -1
- package/dist/src/components/form/verify-challenge/verify-challenge-magic-link.d.cts +2 -0
- package/dist/src/components/form/verify-challenge/verify-challenge-magic-link.d.ts +1 -1
- package/dist/src/components/form/verify-challenge/verify-challenge-magic-link.d.ts.map +1 -1
- package/dist/src/components/form/verify-challenge/verify-challenge-otp-manual.d.cts +16 -0
- package/dist/src/components/form/verify-challenge/verify-challenge-otp-manual.d.ts +1 -1
- package/dist/src/components/form/verify-challenge/verify-challenge-otp-manual.d.ts.map +1 -1
- package/dist/src/components/form/verify-challenge/verify-challenge-otp-redirect.d.cts +9 -0
- package/dist/src/components/form/verify-challenge/verify-challenge-otp-redirect.d.ts +1 -2
- package/dist/src/components/form/verify-challenge/verify-challenge-otp-redirect.d.ts.map +1 -1
- package/dist/src/components/form/verify-challenge/verify-challenge-otp.d.cts +12 -0
- package/dist/src/components/form/verify-challenge/verify-challenge-otp.d.ts +2 -2
- package/dist/src/components/form/verify-challenge/verify-challenge-otp.d.ts.map +1 -1
- package/dist/src/components/form/verify-challenge/verify-challenge-success.d.cts +3 -0
- package/dist/src/components/form/verify-challenge/verify-challenge-success.d.ts +1 -1
- package/dist/src/components/form/verify-challenge/verify-challenge-success.d.ts.map +1 -1
- package/dist/src/components/form/wrapper/index.d.cts +2 -0
- package/dist/src/components/form/wrapper/index.d.ts +1 -1
- package/dist/src/components/passkey/index.d.cts +7 -0
- package/dist/src/components/passkey/index.d.ts +1 -1
- package/dist/src/components/passkey/index.d.ts.map +1 -1
- package/dist/src/components/passkey/passkey-actions.d.cts +13 -0
- package/dist/src/components/passkey/passkey-actions.d.ts +1 -1
- package/dist/src/components/passkey/passkey-actions.d.ts.map +1 -1
- package/dist/src/components/passkey/passkey-dialog.d.cts +10 -0
- package/dist/src/components/passkey/passkey-dialog.d.ts +1 -1
- package/dist/src/components/passkey/passkey-list.d.cts +9 -0
- package/dist/src/components/passkey/passkey-list.d.ts +2 -2
- package/dist/src/components/passkey/passkey-list.d.ts.map +1 -1
- package/dist/src/components/provider/index.d.cts +4 -0
- package/dist/src/components/provider/index.d.ts +3 -3
- package/dist/src/components/provider/index.d.ts.map +1 -1
- package/dist/src/components/provider/passflow-provider.d.cts +160 -0
- package/dist/src/components/provider/passflow-provider.d.ts +4 -4
- package/dist/src/components/provider/passflow-provider.d.ts.map +1 -1
- package/dist/src/components/provider/upgrade-provider.d.cts +85 -0
- package/dist/src/components/provider/upgrade-provider.d.ts +39 -3
- package/dist/src/components/provider/upgrade-provider.d.ts.map +1 -1
- package/dist/src/components/ui/button/index.d.cts +34 -0
- package/dist/src/components/ui/button/index.d.ts +3 -2
- package/dist/src/components/ui/button/index.d.ts.map +1 -1
- package/dist/src/components/ui/continuing-status/index.d.cts +8 -0
- package/dist/src/components/ui/continuing-status/index.d.ts +1 -1
- package/dist/src/components/ui/country-flag/index.d.cts +7 -0
- package/dist/src/components/ui/country-flag/index.d.ts +1 -1
- package/dist/src/components/ui/country-flag/index.d.ts.map +1 -1
- package/dist/src/components/ui/country-flag/positions.d.cts +245 -0
- package/dist/src/components/ui/country-flag/positions.d.ts +241 -241
- package/dist/src/components/ui/country-flag/positions.d.ts.map +1 -1
- package/dist/src/components/ui/dialog/index.d.cts +20 -0
- package/dist/src/components/ui/dialog/index.d.ts +18 -18
- package/dist/src/components/ui/dialog/index.d.ts.map +1 -1
- package/dist/src/components/ui/fields/field-otp.d.cts +48 -0
- package/dist/src/components/ui/fields/field-otp.d.ts +48 -0
- package/dist/src/components/ui/fields/field-otp.d.ts.map +1 -0
- package/dist/src/components/ui/fields/field-password.d.cts +13 -0
- package/dist/src/components/ui/fields/field-password.d.ts +4 -4
- package/dist/src/components/ui/fields/field-password.d.ts.map +1 -1
- package/dist/src/components/ui/fields/field-phone.d.cts +11 -0
- package/dist/src/components/ui/fields/field-phone.d.ts +1 -1
- package/dist/src/components/ui/fields/field-phone.d.ts.map +1 -1
- package/dist/src/components/ui/fields/field-text.d.cts +8 -0
- package/dist/src/components/ui/fields/field-text.d.ts +3 -3
- package/dist/src/components/ui/fields/field-text.d.ts.map +1 -1
- package/dist/src/components/ui/fields/index.d.cts +5 -0
- package/dist/src/components/ui/fields/index.d.ts +4 -3
- package/dist/src/components/ui/fields/index.d.ts.map +1 -1
- package/dist/src/components/ui/icon/index.d.cts +11 -0
- package/dist/src/components/ui/icon/index.d.ts +1 -1
- package/dist/src/components/ui/icon/index.d.ts.map +1 -1
- package/dist/src/components/ui/index.d.cts +14 -0
- package/dist/src/components/ui/index.d.ts +13 -13
- package/dist/src/components/ui/index.d.ts.map +1 -1
- package/dist/src/components/ui/link/index.d.cts +11 -0
- package/dist/src/components/ui/link/index.d.ts +1 -1
- package/dist/src/components/ui/link/index.d.ts.map +1 -1
- package/dist/src/components/ui/login-screen/code-entry.d.cts +4 -0
- package/dist/src/components/ui/login-screen/code-entry.d.ts +2 -2
- package/dist/src/components/ui/login-screen/consent.d.cts +15 -0
- package/dist/src/components/ui/login-screen/consent.d.ts +2 -2
- package/dist/src/components/ui/login-screen/credentials.d.cts +4 -0
- package/dist/src/components/ui/login-screen/credentials.d.ts +2 -2
- package/dist/src/components/ui/login-screen/credentials.d.ts.map +1 -1
- package/dist/src/components/ui/login-screen/device-approval.d.cts +4 -0
- package/dist/src/components/ui/login-screen/device-approval.d.ts +2 -2
- package/dist/src/components/ui/login-screen/general-error.d.cts +4 -0
- package/dist/src/components/ui/login-screen/general-error.d.ts +2 -2
- package/dist/src/components/ui/login-screen/index.d.cts +4 -0
- package/dist/src/components/ui/login-screen/index.d.ts +3 -3
- package/dist/src/components/ui/login-screen/index.d.ts.map +1 -1
- package/dist/src/components/ui/login-screen/invitation.d.cts +4 -0
- package/dist/src/components/ui/login-screen/invitation.d.ts +2 -2
- package/dist/src/components/ui/login-screen/login-screen.d.cts +4 -0
- package/dist/src/components/ui/login-screen/login-screen.d.ts +2 -2
- package/dist/src/components/ui/login-screen/passkey-progress.d.cts +4 -0
- package/dist/src/components/ui/login-screen/passkey-progress.d.ts +2 -2
- package/dist/src/components/ui/login-screen/second-factor.d.cts +4 -0
- package/dist/src/components/ui/login-screen/second-factor.d.ts +2 -2
- package/dist/src/components/ui/login-screen/shared.d.cts +15 -0
- package/dist/src/components/ui/login-screen/shared.d.ts +2 -2
- package/dist/src/components/ui/login-screen/shell.d.cts +13 -0
- package/dist/src/components/ui/login-screen/shell.d.ts +1 -1
- package/dist/src/components/ui/login-screen/shell.d.ts.map +1 -1
- package/dist/src/components/ui/login-screen/status.d.cts +4 -0
- package/dist/src/components/ui/login-screen/status.d.ts +2 -2
- package/dist/src/components/ui/login-screen/types.d.cts +192 -0
- package/dist/src/components/ui/login-screen/types.d.ts +2 -2
- package/dist/src/components/ui/login-screen/types.d.ts.map +1 -1
- package/dist/src/components/ui/popover/index.d.cts +7 -0
- package/dist/src/components/ui/popover/index.d.ts +5 -5
- package/dist/src/components/ui/popover/index.d.ts.map +1 -1
- package/dist/src/components/ui/providers-box/index.d.cts +10 -0
- package/dist/src/components/ui/providers-box/index.d.ts +2 -2
- package/dist/src/components/ui/providers-box/index.d.ts.map +1 -1
- package/dist/src/components/ui/spinner/index.d.cts +23 -0
- package/dist/src/components/ui/spinner/index.d.ts +1 -1
- package/dist/src/components/ui/spinner/index.d.ts.map +1 -1
- package/dist/src/components/ui/switch/index.d.cts +22 -0
- package/dist/src/components/ui/switch/index.d.ts +1 -1
- package/dist/src/components/ui/switch/index.d.ts.map +1 -1
- package/dist/src/components/ui/upgrade-dialog/challenge.d.cts +12 -0
- package/dist/src/components/ui/upgrade-dialog/challenge.d.ts +2 -2
- package/dist/src/components/ui/upgrade-dialog/factor-list.d.cts +20 -0
- package/dist/src/components/ui/upgrade-dialog/factor-list.d.ts +2 -2
- package/dist/src/components/ui/upgrade-dialog/index.d.cts +8 -0
- package/dist/src/components/ui/upgrade-dialog/index.d.ts +7 -7
- package/dist/src/components/ui/upgrade-dialog/index.d.ts.map +1 -1
- package/dist/src/components/ui/upgrade-dialog/state-mapping.d.cts +130 -0
- package/dist/src/components/ui/upgrade-dialog/state-mapping.d.ts +12 -1
- package/dist/src/components/ui/upgrade-dialog/state-mapping.d.ts.map +1 -1
- package/dist/src/components/ui/upgrade-dialog/status.d.cts +27 -0
- package/dist/src/components/ui/upgrade-dialog/status.d.ts +2 -2
- package/dist/src/components/ui/upgrade-dialog/types.d.cts +188 -0
- package/dist/src/components/ui/upgrade-dialog/upgrade-dialog.d.cts +13 -0
- package/dist/src/components/ui/upgrade-dialog/upgrade-dialog.d.ts +2 -2
- package/dist/src/components/ui/visually-hidden/index.d.cts +17 -0
- package/dist/src/components/ui/visually-hidden/index.d.ts +17 -0
- package/dist/src/components/ui/visually-hidden/index.d.ts.map +1 -0
- package/dist/src/constants/countries-phone-code.d.cts +253 -0
- package/dist/src/constants/countries-phone-code.d.ts.map +1 -1
- package/dist/src/constants/formats.d.cts +4 -0
- package/dist/src/constants/formats.d.ts.map +1 -1
- package/dist/src/constants/index.d.cts +3 -0
- package/dist/src/constants/index.d.ts +2 -2
- package/dist/src/context/auth-context.d.cts +23 -0
- package/dist/src/context/auth-context.d.ts +3 -3
- package/dist/src/context/auth-context.d.ts.map +1 -1
- package/dist/src/context/index.d.cts +6 -0
- package/dist/src/context/index.d.ts +5 -5
- package/dist/src/context/index.d.ts.map +1 -1
- package/dist/src/context/navigation-context.d.cts +25 -0
- package/dist/src/context/navigation-context.d.ts +1 -1
- package/dist/src/context/passflow-context.d.cts +26 -0
- package/dist/src/context/passflow-context.d.ts +3 -3
- package/dist/src/context/passflow-context.d.ts.map +1 -1
- package/dist/src/context/router-context.d.cts +42 -0
- package/dist/src/context/router-context.d.ts.map +1 -1
- package/dist/src/context/upgrade-context.d.cts +107 -0
- package/dist/src/context/upgrade-context.d.ts +24 -2
- package/dist/src/hocs/index.d.cts +2 -0
- package/dist/src/hocs/index.d.ts +1 -1
- package/dist/src/hocs/with-error.d.cts +8 -0
- package/dist/src/hocs/with-error.d.ts +5 -5
- package/dist/src/hocs/with-error.d.ts.map +1 -1
- package/dist/src/hooks/index.d.cts +28 -0
- package/dist/src/hooks/index.d.ts +27 -27
- package/dist/src/hooks/index.d.ts.map +1 -1
- package/dist/src/hooks/use-app-settings.d.cts +16 -0
- package/dist/src/hooks/use-app-settings.d.ts +1 -1
- package/dist/src/hooks/use-app-settings.d.ts.map +1 -1
- package/dist/src/hooks/use-auth-cloud-redirect.d.cts +4 -0
- package/dist/src/hooks/use-auth.d.cts +3 -0
- package/dist/src/hooks/use-auth.d.ts +1 -1
- package/dist/src/hooks/use-auth.d.ts.map +1 -1
- package/dist/src/hooks/use-consent.d.cts +68 -0
- package/dist/src/hooks/use-device-verify.d.cts +96 -0
- package/dist/src/hooks/use-device-verify.d.ts +1 -1
- package/dist/src/hooks/use-device-verify.d.ts.map +1 -1
- package/dist/src/hooks/use-forgot-password.d.cts +10 -0
- package/dist/src/hooks/use-forgot-password.d.ts +1 -1
- package/dist/src/hooks/use-join-invite.d.cts +8 -0
- package/dist/src/hooks/use-logout.d.cts +8 -0
- package/dist/src/hooks/use-navigation.d.cts +29 -0
- package/dist/src/hooks/use-navigation.d.ts +2 -2
- package/dist/src/hooks/use-navigation.d.ts.map +1 -1
- package/dist/src/hooks/use-outsideclick.d.cts +3 -0
- package/dist/src/hooks/use-outsideclick.d.ts +2 -2
- package/dist/src/hooks/use-outsideclick.d.ts.map +1 -1
- package/dist/src/hooks/use-passflow-store.d.cts +3 -0
- package/dist/src/hooks/use-passflow-store.d.ts +1 -1
- package/dist/src/hooks/use-passflow.d.cts +3 -0
- package/dist/src/hooks/use-passflow.d.ts +1 -1
- package/dist/src/hooks/use-passflow.d.ts.map +1 -1
- package/dist/src/hooks/use-passwordless-complete.d.cts +10 -0
- package/dist/src/hooks/use-passwordless-complete.d.ts +1 -1
- package/dist/src/hooks/use-passwordless-complete.d.ts.map +1 -1
- package/dist/src/hooks/use-provider.d.cts +7 -0
- package/dist/src/hooks/use-provider.d.ts +1 -1
- package/dist/src/hooks/use-provider.d.ts.map +1 -1
- package/dist/src/hooks/use-reset-password.d.cts +9 -0
- package/dist/src/hooks/use-session-expired.d.cts +49 -0
- package/dist/src/hooks/use-signin.d.cts +11 -0
- package/dist/src/hooks/use-signin.d.ts +2 -2
- package/dist/src/hooks/use-signin.d.ts.map +1 -1
- package/dist/src/hooks/use-signup.d.cts +11 -0
- package/dist/src/hooks/use-signup.d.ts +2 -2
- package/dist/src/hooks/use-signup.d.ts.map +1 -1
- package/dist/src/hooks/use-trusted-devices.d.cts +21 -0
- package/dist/src/hooks/use-trusted-devices.d.ts +1 -1
- package/dist/src/hooks/use-two-factor-challenge.d.cts +16 -0
- package/dist/src/hooks/use-two-factor-challenge.d.ts +1 -1
- package/dist/src/hooks/use-two-factor-manage.d.cts +15 -0
- package/dist/src/hooks/use-two-factor-manage.d.ts +1 -1
- package/dist/src/hooks/use-two-factor-methods.d.cts +14 -0
- package/dist/src/hooks/use-two-factor-methods.d.ts +1 -1
- package/dist/src/hooks/use-two-factor-setup-magic-link.d.cts +55 -0
- package/dist/src/hooks/use-two-factor-setup-magic-link.d.ts.map +1 -1
- package/dist/src/hooks/use-two-factor-setup.d.cts +18 -0
- package/dist/src/hooks/use-two-factor-setup.d.ts +1 -1
- package/dist/src/hooks/use-two-factor-status.d.cts +13 -0
- package/dist/src/hooks/use-two-factor-status.d.ts +1 -1
- package/dist/src/hooks/use-two-factor-verify.d.cts +20 -0
- package/dist/src/hooks/use-two-factor-verify.d.ts +2 -2
- package/dist/src/hooks/use-two-factor-verify.d.ts.map +1 -1
- package/dist/src/hooks/use-upgrade.d.cts +53 -0
- package/dist/src/hooks/use-upgrade.d.ts +12 -2
- package/dist/src/hooks/use-upgrade.d.ts.map +1 -1
- package/dist/src/hooks/use-user-passkeys.d.cts +12 -0
- package/dist/src/hooks/use-user-passkeys.d.ts +1 -1
- package/dist/src/index.d.cts +10 -0
- package/dist/src/index.d.ts +8 -8
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/types/auth-errors.d.cts +8 -0
- package/dist/src/types/device-errors.d.cts +95 -0
- package/dist/src/types/index.d.cts +26 -0
- package/dist/src/types/index.d.ts +4 -4
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/src/types/two-factor-errors.d.cts +14 -0
- package/dist/src/utils/auth-error.d.cts +7 -0
- package/dist/src/utils/auth-error.d.ts +1 -1
- package/dist/src/utils/auth-error.d.ts.map +1 -1
- package/dist/src/utils/classify-device-error.d.cts +35 -0
- package/dist/src/utils/classify-device-error.d.ts +1 -1
- package/dist/src/utils/classify-device-error.d.ts.map +1 -1
- package/dist/src/utils/classify-two-factor-error.d.cts +13 -0
- package/dist/src/utils/classify-two-factor-error.d.ts +1 -1
- package/dist/src/utils/cn.d.cts +3 -0
- package/dist/src/utils/cn.d.ts +1 -1
- package/dist/src/utils/cn.d.ts.map +1 -1
- package/dist/src/utils/dayjs/format.d.cts +8 -0
- package/dist/src/utils/dayjs/format.d.ts.map +1 -1
- package/dist/src/utils/dayjs/index.d.cts +2 -0
- package/dist/src/utils/dayjs/index.d.ts +1 -1
- package/dist/src/utils/get-app-version.d.cts +7 -0
- package/dist/src/utils/get-auth-methods.d.cts +30 -0
- package/dist/src/utils/get-auth-methods.d.ts +1 -1
- package/dist/src/utils/get-auth-methods.d.ts.map +1 -1
- package/dist/src/utils/get-form-labels.d.cts +10 -0
- package/dist/src/utils/get-form-labels.d.ts +5 -5
- package/dist/src/utils/get-form-labels.d.ts.map +1 -1
- package/dist/src/utils/get-url-errors.d.cts +5 -0
- package/dist/src/utils/get-url-errors.d.ts.map +1 -1
- package/dist/src/utils/get-url-with-tokens.d.cts +4 -0
- package/dist/src/utils/get-url-with-tokens.d.ts +1 -1
- package/dist/src/utils/get-url-with-tokens.d.ts.map +1 -1
- package/dist/src/utils/index.d.cts +18 -0
- package/dist/src/utils/index.d.ts +17 -17
- package/dist/src/utils/index.d.ts.map +1 -1
- package/dist/src/utils/invitation-auth-chrome.d.cts +8 -0
- package/dist/src/utils/invitation-auth-chrome.d.ts.map +1 -1
- package/dist/src/utils/login-theme.d.cts +8 -0
- package/dist/src/utils/login-theme.d.ts +1 -1
- package/dist/src/utils/login-theme.d.ts.map +1 -1
- package/dist/src/utils/second-factor.d.cts +21 -0
- package/dist/src/utils/second-factor.d.ts +3 -3
- package/dist/src/utils/second-factor.d.ts.map +1 -1
- package/dist/src/utils/two-factor-loop-prevention.d.cts +40 -0
- package/dist/src/utils/two-factor-loop-prevention.d.ts.map +1 -1
- package/dist/src/utils/undefined-on-catch.d.cts +2 -0
- package/dist/src/utils/upgrade-auth.d.cts +82 -0
- package/dist/src/utils/upgrade-auth.d.ts +45 -1
- package/dist/src/utils/upgrade-auth.d.ts.map +1 -1
- package/dist/src/utils/url-params.d.cts +14 -0
- package/dist/src/utils/url-params.d.ts.map +1 -1
- package/dist/src/utils/validate-url.d.cts +2 -0
- package/dist/src/utils/validate-url.d.ts.map +1 -1
- package/dist/src/utils/validation-schemas/index.d.cts +6 -0
- package/dist/src/utils/validation-schemas/index.d.ts +1 -1
- package/dist/src/utils/validation-schemas/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +54 -56
- package/dist/index.cjs.js +0 -2
- package/dist/index.cjs.js.map +0 -1
- package/dist/src/components/form/two-factor-challenge/otp-input.d.ts +0 -12
- package/dist/src/components/form/two-factor-challenge/otp-input.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/two-factor-verify/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/two-factor-verify/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
type TwoFactorRecoveryFormProps = {
|
|
3
|
+
onSuccess?: () => void;
|
|
4
|
+
onBack?: () => void;
|
|
5
|
+
title?: string;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
signInPath?: string;
|
|
8
|
+
/** Label of the "trust this device" option, unticked by default. */
|
|
9
|
+
trustDeviceLabel?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const TwoFactorRecoveryForm: FC<TwoFactorRecoveryFormProps>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=two-factor-recovery-form.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"two-factor-recovery-form.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/two-factor-verify/two-factor-recovery-form.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"two-factor-recovery-form.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/two-factor-verify/two-factor-recovery-form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,EAAE,EAAa,MAAM,OAAO,CAAC;AAOxD,OAAO,oBAAoB,CAAC;AAE5B,KAAK,0BAA0B,GAAG;IAChC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oEAAoE;IACpE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAKF,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,CAiKhE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
type TwoFactorVerifyFormProps = {
|
|
3
|
+
onSuccess?: () => void;
|
|
4
|
+
onUseRecovery?: () => void;
|
|
5
|
+
title?: string;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
numInputs?: number;
|
|
8
|
+
shouldAutoFocus?: boolean;
|
|
9
|
+
signInPath?: string;
|
|
10
|
+
twoFactorSetupPath?: string;
|
|
11
|
+
/** Label of the "trust this device" option, unticked by default. */
|
|
12
|
+
trustDeviceLabel?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const TwoFactorVerifyForm: FC<TwoFactorVerifyFormProps>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=two-factor-verify-form.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"two-factor-verify-form.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/two-factor-verify/two-factor-verify-form.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"two-factor-verify-form.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/two-factor-verify/two-factor-verify-form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAO3C,OAAO,oBAAoB,CAAC;AAE5B,KAAK,wBAAwB,GAAG;IAC9B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oEAAoE;IACpE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAKF,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAiN5D,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { VerifyChallengeMagicLink } from './verify-challenge-magic-link';
|
|
2
|
-
export { VerifyChallengeOTP } from './verify-challenge-otp';
|
|
1
|
+
export { VerifyChallengeMagicLink } from './verify-challenge-magic-link.js';
|
|
2
|
+
export { VerifyChallengeOTP } from './verify-challenge-otp.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type FC, type PropsWithChildren } from 'react';
|
|
2
|
+
type TTimerButton = PropsWithChildren & {
|
|
3
|
+
totalSecond: number;
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const TimerButton: FC<TTimerButton>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=timer-button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timer-button.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/timer-button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"timer-button.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/timer-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAuB,MAAM,OAAO,CAAC;AAE7E,OAAO,oBAAoB,CAAC;AAG5B,KAAK,YAAY,GAAG,iBAAiB,GAAG;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,YAAY,CAwCxC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VerifyChallengeMagicLink: () => JSX.Element;
|
|
1
|
+
export declare const VerifyChallengeMagicLink: () => import("react").JSX.Element;
|
|
2
2
|
//# sourceMappingURL=verify-challenge-magic-link.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-challenge-magic-link.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/verify-challenge-magic-link.tsx"],"names":[],"mappings":"AAKA,OAAO,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"verify-challenge-magic-link.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/verify-challenge-magic-link.tsx"],"names":[],"mappings":"AAKA,OAAO,oBAAoB,CAAC;AAQ5B,eAAO,MAAM,wBAAwB,mCAyDpC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
type VerifyChallengeOTPManualProps = {
|
|
3
|
+
identity: string | null;
|
|
4
|
+
identityValue: string | null;
|
|
5
|
+
challengeType: string | null;
|
|
6
|
+
challengeId: string | null;
|
|
7
|
+
type: 'passwordless' | 'passkey' | null;
|
|
8
|
+
numInputs: number;
|
|
9
|
+
shouldAutoFocus: boolean;
|
|
10
|
+
signUpPath: string;
|
|
11
|
+
successAuthRedirect?: string;
|
|
12
|
+
twoFactorVerifyPath?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const VerifyChallengeOTPManual: FC<VerifyChallengeOTPManualProps>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=verify-challenge-otp-manual.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-challenge-otp-manual.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/verify-challenge-otp-manual.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"verify-challenge-otp-manual.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/verify-challenge-otp-manual.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,EAAE,EAA8B,MAAM,OAAO,CAAC;AAS5D,OAAO,oBAAoB,CAAC;AAE5B,KAAK,6BAA6B,GAAG;IACnC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,cAAc,GAAG,SAAS,GAAG,IAAI,CAAC;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAOF,eAAO,MAAM,wBAAwB,EAAE,EAAE,CAAC,6BAA6B,CAgItE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type VerifyChallengeOTPRedirectProps = {
|
|
2
|
+
appId: string | null;
|
|
3
|
+
otp: string | null;
|
|
4
|
+
challengeId: string | null;
|
|
5
|
+
twoFactorVerifyPath?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const VerifyChallengeOTPRedirect: ({ otp, challengeId, appId, twoFactorVerifyPath, }: VerifyChallengeOTPRedirectProps) => import("react").JSX.Element | null;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=verify-challenge-otp-redirect.d.ts.map
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
type VerifyChallengeOTPRedirectProps = {
|
|
3
2
|
appId: string | null;
|
|
4
3
|
otp: string | null;
|
|
5
4
|
challengeId: string | null;
|
|
6
5
|
twoFactorVerifyPath?: string;
|
|
7
6
|
};
|
|
8
|
-
export declare const VerifyChallengeOTPRedirect: ({ otp, challengeId, appId, twoFactorVerifyPath, }: VerifyChallengeOTPRedirectProps) =>
|
|
7
|
+
export declare const VerifyChallengeOTPRedirect: ({ otp, challengeId, appId, twoFactorVerifyPath, }: VerifyChallengeOTPRedirectProps) => import("react").JSX.Element | null;
|
|
9
8
|
export {};
|
|
10
9
|
//# sourceMappingURL=verify-challenge-otp-redirect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-challenge-otp-redirect.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/verify-challenge-otp-redirect.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"verify-challenge-otp-redirect.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/verify-challenge-otp-redirect.tsx"],"names":[],"mappings":"AAYA,KAAK,+BAA+B,GAAG;IACrC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,0BAA0B,sDAKpC,+BAA+B,uCA8CjC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import type { SuccessAuthRedirect } from '../../../types/index.cjs';
|
|
3
|
+
type TVerifyChallengeOTP = {
|
|
4
|
+
numInputs: number;
|
|
5
|
+
shouldAutoFocus: boolean;
|
|
6
|
+
signUpPath: string;
|
|
7
|
+
successAuthRedirect?: SuccessAuthRedirect;
|
|
8
|
+
twoFactorVerifyPath?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const VerifyChallengeOTP: FC<TVerifyChallengeOTP>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=verify-challenge-otp.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import type { SuccessAuthRedirect } from '../../../types/index.js';
|
|
3
3
|
type TVerifyChallengeOTP = {
|
|
4
4
|
numInputs: number;
|
|
5
5
|
shouldAutoFocus: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-challenge-otp.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/verify-challenge-otp.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"verify-challenge-otp.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/verify-challenge-otp.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAInD,OAAO,oBAAoB,CAAC;AAI5B,KAAK,mBAAmB,GAAG;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAgBF,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,mBAAmB,CA4EtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-challenge-success.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/verify-challenge-success.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"verify-challenge-success.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/verify-challenge-success.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIhC,eAAO,MAAM,sBAAsB,EAAE,EAmBpC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { LoginScreenShell as Wrapper, type LoginScreenShellProps as TWrapper } from '../../ui/login-screen/shell';
|
|
1
|
+
export { LoginScreenShell as Wrapper, type LoginScreenShellProps as TWrapper } from '../../ui/login-screen/shell.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/passkey/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/passkey/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAY,MAAM,OAAO,CAAC;AAQ1C,KAAK,QAAQ,GAAG;IACd,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,QAAQ,CA6DhC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
type TPasskeyActions = {
|
|
3
|
+
passkeyId: string;
|
|
4
|
+
passkeyName: string | null;
|
|
5
|
+
actions: {
|
|
6
|
+
title: string;
|
|
7
|
+
iconId: string;
|
|
8
|
+
onClick: (newName: string, passkeyId: string) => Promise<void> | void;
|
|
9
|
+
}[];
|
|
10
|
+
};
|
|
11
|
+
export declare const PasskeyActions: FC<TPasskeyActions>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=passkey-actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"passkey-actions.d.ts","sourceRoot":"","sources":["../../../../src/components/passkey/passkey-actions.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"passkey-actions.d.ts","sourceRoot":"","sources":["../../../../src/components/passkey/passkey-actions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIhC,KAAK,eAAe,GAAG;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;KACvE,EAAE,CAAC;CACL,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,eAAe,CAkC9C,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
type TPasskeyDialog = {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onChangeOpen: (isOpen: boolean) => void;
|
|
5
|
+
passkeyId: string;
|
|
6
|
+
editUserPasskey: (newName: string, passkeyId: string) => Promise<void> | void;
|
|
7
|
+
};
|
|
8
|
+
export declare const PasskeyDialog: FC<TPasskeyDialog>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=passkey-dialog.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PassflowUserPasskey } from '@passflow/core';
|
|
2
|
+
import type { FC, JSX } from 'react';
|
|
3
|
+
type TPasskeyList = {
|
|
4
|
+
data: PassflowUserPasskey[];
|
|
5
|
+
renderActions: (id: string, name: string | null) => JSX.Element;
|
|
6
|
+
};
|
|
7
|
+
export declare const PasskeyList: FC<TPasskeyList>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=passkey-list.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PassflowUserPasskey } from '@passflow/core';
|
|
2
|
-
import { FC, JSX } from 'react';
|
|
1
|
+
import type { PassflowUserPasskey } from '@passflow/core';
|
|
2
|
+
import type { FC, JSX } from 'react';
|
|
3
3
|
type TPasskeyList = {
|
|
4
4
|
data: PassflowUserPasskey[];
|
|
5
5
|
renderActions: (id: string, name: string | null) => JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"passkey-list.d.ts","sourceRoot":"","sources":["../../../../src/components/passkey/passkey-list.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"passkey-list.d.ts","sourceRoot":"","sources":["../../../../src/components/passkey/passkey-list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAKrC,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,mBAAmB,EAAE,CAAC;IAC5B,aAAa,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,KAAK,GAAG,CAAC,OAAO,CAAC;CACjE,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,YAAY,CA2BxC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type { OIDCExchangeContextValue, PassflowUpgradeOptions } from './passflow-provider.cjs';
|
|
2
|
+
export { OIDCExchangeContext, PassflowProvider } from './passflow-provider.cjs';
|
|
3
|
+
export { UpgradeProvider, type UpgradeProviderProps } from './upgrade-provider.cjs';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export
|
|
3
|
-
export { UpgradeProvider, type UpgradeProviderProps } from './upgrade-provider';
|
|
1
|
+
export type { OIDCExchangeContextValue, PassflowUpgradeOptions } from './passflow-provider.js';
|
|
2
|
+
export { OIDCExchangeContext, PassflowProvider } from './passflow-provider.js';
|
|
3
|
+
export { UpgradeProvider, type UpgradeProviderProps } from './upgrade-provider.js';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/provider/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/provider/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC5F,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { type PassflowConfig } from '@passflow/core';
|
|
2
|
+
import React, { type FC, type ReactNode } from 'react';
|
|
3
|
+
import { type UpgradeProviderProps } from './upgrade-provider.cjs';
|
|
4
|
+
import { type NavigateFunction, type RouterType } from '../../context/index.cjs';
|
|
5
|
+
/**
|
|
6
|
+
* The assurance-upgrade options a consumer may set on `PassflowProvider`.
|
|
7
|
+
*
|
|
8
|
+
* `children`, `enabled` and `backend` are owned by `PassflowProvider` itself:
|
|
9
|
+
* `backend` is a top-level prop (§13.5 — "where your API is" is the headline
|
|
10
|
+
* act, not a nested detail) and `enabled` is derived from `upgrade`/`backend`
|
|
11
|
+
* below, so there is exactly one source for each.
|
|
12
|
+
*/
|
|
13
|
+
export type PassflowUpgradeOptions = Omit<UpgradeProviderProps, 'children' | 'enabled' | 'backend'>;
|
|
14
|
+
type PassflowProviderProps = PassflowConfig & {
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
navigate?: NavigateFunction;
|
|
17
|
+
router?: RouterType;
|
|
18
|
+
/**
|
|
19
|
+
* Where the customer's own API is — domain 2 of §13.5's two-domain
|
|
20
|
+
* interception model. Nothing outside this and Passflow's own API is ever
|
|
21
|
+
* observed, and there is no allow-all opt-in. `string | string[]`, an origin
|
|
22
|
+
* or a same-origin path prefix (`'/api'`).
|
|
23
|
+
*/
|
|
24
|
+
backend?: string | string[];
|
|
25
|
+
/**
|
|
26
|
+
* Automatic assurance upgrade (step-up). `undefined` ⇒ **off**, so no
|
|
27
|
+
* existing consumer changes behaviour on upgrade. `true` ⇒ on with
|
|
28
|
+
* defaults; an object ⇒ on with those options; `false` ⇒ off even when
|
|
29
|
+
* `backend` is declared.
|
|
30
|
+
*
|
|
31
|
+
* Declaring `backend` also turns it on: naming where your API is has no
|
|
32
|
+
* other meaning, and §13.5's acceptance configuration is `backend` plus one
|
|
33
|
+
* attached client. The global `window.fetch` patch is a separate, explicit
|
|
34
|
+
* act (`upgrade={{ interceptFetch: true }}`) and stays off by default.
|
|
35
|
+
*/
|
|
36
|
+
upgrade?: boolean | PassflowUpgradeOptions;
|
|
37
|
+
/**
|
|
38
|
+
* Where to send a sign-in that lands on this page owing its second factor:
|
|
39
|
+
* a federated redirect on a non-PKCE app comes back with `#tfa_token=` and
|
|
40
|
+
* no tokens. A mounted `PassflowFlow` registers its own (prefixed) route,
|
|
41
|
+
* which wins; set this when the landing page renders no flow, or the flow
|
|
42
|
+
* is mounted elsewhere. Defaults to `routes.two_factor_verify.path`.
|
|
43
|
+
*/
|
|
44
|
+
twoFactorVerifyPath?: string;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Passflow auth-endpoint regex used by the OIDC interceptor below.
|
|
48
|
+
* Matches every endpoint that takes credentials + an optional
|
|
49
|
+
* parent_challenge_id so the SDK can inject the parent on outbound
|
|
50
|
+
* POSTs and follow `redirect_url` on responses.
|
|
51
|
+
*
|
|
52
|
+
* The set is canonical with the server's AuthFlow dispatcher; if a
|
|
53
|
+
* new credential endpoint lands server-side, it must be added here.
|
|
54
|
+
*
|
|
55
|
+
* - /auth/login — password login
|
|
56
|
+
* - /auth/register — password sign-up
|
|
57
|
+
* - /auth/passwordless/* — OTP / magic-link start+complete
|
|
58
|
+
* - /auth/passkey/* — passkey registration/auth
|
|
59
|
+
* - /auth/2fa/* — second-factor verify
|
|
60
|
+
* - /auth/federated/start — federated start (callback is server)
|
|
61
|
+
* - /auth/session/exchange — RFC 8693-style session exchange
|
|
62
|
+
* (ADR-2; activated on Leg 2 of
|
|
63
|
+
* OIDC two-step flows)
|
|
64
|
+
*/
|
|
65
|
+
export declare const AUTH_ENDPOINT_PATTERN: RegExp;
|
|
66
|
+
/**
|
|
67
|
+
* Read `parent_challenge_id` from the current URL's query string.
|
|
68
|
+
* Returns `undefined` when not present so callers can short-circuit
|
|
69
|
+
* the OIDC interceptor on non-OIDC mounts.
|
|
70
|
+
*
|
|
71
|
+
* Lowercases only the parameter KEYS (not values) so the
|
|
72
|
+
* KSUID-shaped value isn't corrupted on the way through. (URL params
|
|
73
|
+
* are case-sensitive per RFC 3986; some Passflow URLs use mixed
|
|
74
|
+
* case like `appId=...`. The lowercase-keys treatment mirrors what
|
|
75
|
+
* the bundled login-app was doing pre-SDK-migration.)
|
|
76
|
+
*/
|
|
77
|
+
export declare const readParentChallengeIdFromURL: () => string | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Has the OIDC interceptor already taken ownership of the post-login navigation?
|
|
80
|
+
*
|
|
81
|
+
* A credential form MUST NOT navigate after a successful login when this is
|
|
82
|
+
* true. Two navigations do not queue — the second cancels the first, and the
|
|
83
|
+
* first is the one that completes the OIDC flow:
|
|
84
|
+
*
|
|
85
|
+
* 1. The interceptor calls `window.location.assign(redirect_url)` to hand the
|
|
86
|
+
* authorization code back to the RP (a CLI's `127.0.0.1:<port>/callback`,
|
|
87
|
+
* a web RP's `redirect_uri`, …).
|
|
88
|
+
* 2. `window.location.assign` does not halt script execution, so the form's
|
|
89
|
+
* success handler keeps running and sets `window.location.href` to the
|
|
90
|
+
* app's default post-login page.
|
|
91
|
+
* 3. The browser drops the in-flight request from (1) and goes to (2).
|
|
92
|
+
*
|
|
93
|
+
* Whether (1) has already been delivered when (2) lands is pure scheduling, so
|
|
94
|
+
* this presents as a flake rather than a clean break. Measured against the CLI
|
|
95
|
+
* loopback flow (RFC 8252 §7.3): roughly a third of real browser sign-ins had
|
|
96
|
+
* the GET to the CLI's loopback port aborted mid-flight, and the CLI then sat
|
|
97
|
+
* waiting for a callback that had already been cancelled until it timed out.
|
|
98
|
+
*/
|
|
99
|
+
export declare const hasFollowedOIDCRedirect: () => boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Parent-challenge metadata returned by GET /oidc/requests/{id}.
|
|
102
|
+
* Subset used by the SDK's exchange-on-mount probe.
|
|
103
|
+
*/
|
|
104
|
+
type ParentChallengeMeta = {
|
|
105
|
+
request_id: string;
|
|
106
|
+
app_name?: string;
|
|
107
|
+
client_id?: string;
|
|
108
|
+
redirect_uri?: string;
|
|
109
|
+
state?: string;
|
|
110
|
+
response_mode?: string;
|
|
111
|
+
oidc_prompt_login?: boolean;
|
|
112
|
+
oidc_prompt_none?: boolean;
|
|
113
|
+
max_age?: number;
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Token-exchange-on-mount probe per ADR-2 Leg 2. When a parent
|
|
117
|
+
* challenge is present in the URL AND the SDK has an existing
|
|
118
|
+
* session AND the parent allows exchange (no `prompt=login`,
|
|
119
|
+
* `max_age` not exceeded), POST the access token to
|
|
120
|
+
* /auth/session/exchange so the OP can issue a fresh authorization
|
|
121
|
+
* code for the RP without re-prompting the user.
|
|
122
|
+
*
|
|
123
|
+
* Decision-making is the SDK's; the server enforces too (defence in
|
|
124
|
+
* depth — see `auth_util.EvaluatePolicy`).
|
|
125
|
+
*
|
|
126
|
+
* Today the response branches are:
|
|
127
|
+
*
|
|
128
|
+
* - 200 { redirect_url } → the interceptor's fetch wrapper follows
|
|
129
|
+
* the redirect (sole owner of redirect_url navigation; this hook
|
|
130
|
+
* must never navigate on OK responses — see the res.ok branch).
|
|
131
|
+
* - 403 { error: "upgrade_required", ... } → falls through to the
|
|
132
|
+
* login form. Factor elevation on an existing session is
|
|
133
|
+
* `UpgradeProvider`'s flow, not this probe's.
|
|
134
|
+
* - 401 → clear stale tokens, fall through to login form.
|
|
135
|
+
*
|
|
136
|
+
* On any decision-point that ends with "render login form," the
|
|
137
|
+
* SDK consumer's existing PassflowFlow render path picks up
|
|
138
|
+
* naturally.
|
|
139
|
+
*/
|
|
140
|
+
/**
|
|
141
|
+
* `'upgrade_required'` is vestigial and kept deliberately (§8.4): it is
|
|
142
|
+
* unreachable today — the 403 branch below sets `'fallback_to_login'` — and
|
|
143
|
+
* removing a member from an exported union would be a type-level breaking
|
|
144
|
+
* change for anyone reading `OIDCExchangeContextValue`. Assurance elevation is
|
|
145
|
+
* now `UpgradeProvider`'s job, not a placeholder's.
|
|
146
|
+
*/
|
|
147
|
+
type ExchangeState = 'idle' | 'exchanging' | 'upgrade_required' | 'fallback_to_login';
|
|
148
|
+
/**
|
|
149
|
+
* Context surface exposed to children so the SDK's own components
|
|
150
|
+
* (or consumer code) can read the OIDC parent-challenge state.
|
|
151
|
+
*/
|
|
152
|
+
export type OIDCExchangeContextValue = {
|
|
153
|
+
parentChallengeId?: string;
|
|
154
|
+
parentMeta?: ParentChallengeMeta;
|
|
155
|
+
exchangeState: ExchangeState;
|
|
156
|
+
};
|
|
157
|
+
export declare const OIDCExchangeContext: React.Context<OIDCExchangeContextValue>;
|
|
158
|
+
export declare const PassflowProvider: FC<PassflowProviderProps>;
|
|
159
|
+
export {};
|
|
160
|
+
//# sourceMappingURL=passflow-provider.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { type PassflowConfig } from '@passflow/core';
|
|
2
|
+
import React, { type FC, type ReactNode } from 'react';
|
|
3
|
+
import { type UpgradeProviderProps } from './upgrade-provider.js';
|
|
4
|
+
import { type NavigateFunction, type RouterType } from '../../context/index.js';
|
|
5
5
|
/**
|
|
6
6
|
* The assurance-upgrade options a consumer may set on `PassflowProvider`.
|
|
7
7
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"passflow-provider.d.ts","sourceRoot":"","sources":["../../../../src/components/provider/passflow-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"passflow-provider.d.ts","sourceRoot":"","sources":["../../../../src/components/provider/passflow-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,cAAc,EAA2B,MAAM,gBAAgB,CAAC;AAC7G,OAAO,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAiE,MAAM,OAAO,CAAC;AACtH,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAEpG,OAAO,EAIL,KAAK,gBAAgB,EAIrB,KAAK,UAAU,EAEhB,MAAM,WAAW,CAAC;AAEnB,OAAO,oBAAoB,CAAC;AAE5B;;;;;;;GAOG;AACH,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,oBAAoB,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC,CAAC;AAEpG,KAAK,qBAAqB,GAAG,cAAc,GAAG;IAC5C,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC5B;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,sBAAsB,CAAC;IAC3C;;;;;;OAMG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,qBAAqB,QACkE,CAAC;AAErG;;;;;;;;;;GAUG;AACH,eAAO,MAAM,4BAA4B,QAAO,MAAM,GAAG,SAQxD,CAAC;AAiCF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,uBAAuB,QAAO,OAA+B,CAAC;AAqK3E;;;GAGG;AACH,KAAK,mBAAmB,GAAG;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH;;;;;;GAMG;AACH,KAAK,aAAa,GAAG,MAAM,GAAG,YAAY,GAAG,kBAAkB,GAAG,mBAAmB,CAAC;AAmLtF;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAwCF,eAAO,MAAM,mBAAmB,yCAE9B,CAAC;AAEH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAyJtD,CAAC"}
|