@lalternative/auth 0.6.0 → 0.7.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/dist/client.d.ts +1 -1
- package/dist/index.d.ts +19 -13
- package/dist/index.js +416 -244
- package/dist/index.js.map +1 -1
- package/dist/{invitation-aZz_6M7B.d.ts → invitation-BUqM_BF8.d.ts} +1 -1
- package/dist/server.d.ts +3 -3
- package/dist/{types-BEldQPou.d.ts → types-SieiPwdd.d.ts} +87 -11
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { L as LoginFormProps, R as RegisterFormProps, V as VerifyEmailFormProps, F as ForgotPasswordFormProps, a as ResetPasswordFormProps, A as AuthLayoutProps, I as InvitationNoticeProps } from './types-
|
|
2
|
-
export { b as InvitationFailure, c as LoginFormLabels, P as PlatformAuthClientConfig, d as PlatformAuthConfig, e as PlatformAuthMailer, f as PlatformAuthMailerArgs, g as PlatformAuthMailerType, h as PlatformSession, i as PlatformSessionData, j as PlatformUser, k as RegisterFormLabels } from './types-
|
|
1
|
+
import { L as LoginFormProps, R as RegisterFormProps, V as VerifyEmailFormProps, F as ForgotPasswordFormProps, a as ResetPasswordFormProps, A as AuthLayoutProps, I as InvitationNoticeProps } from './types-SieiPwdd.js';
|
|
2
|
+
export { b as InvitationFailure, c as LoginFormLabels, P as PlatformAuthClientConfig, d as PlatformAuthConfig, e as PlatformAuthMailer, f as PlatformAuthMailerArgs, g as PlatformAuthMailerType, h as PlatformSession, i as PlatformSessionData, j as PlatformUser, k as RegisterFormLabels } from './types-SieiPwdd.js';
|
|
3
3
|
import * as better_auth_react from 'better-auth/react';
|
|
4
4
|
import * as better_auth from 'better-auth';
|
|
5
5
|
import { PlatformAuthClient } from './client.js';
|
|
6
6
|
import * as react from 'react';
|
|
7
7
|
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
8
|
-
export { C as ClaimOutcome, i as isInvitationFailure } from './invitation-
|
|
8
|
+
export { C as ClaimOutcome, i as isInvitationFailure } from './invitation-BUqM_BF8.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Returns a useSession hook bound to the given auth client.
|
|
@@ -90,9 +90,9 @@ interface AuthSubmitProps {
|
|
|
90
90
|
*/
|
|
91
91
|
declare function AuthSubmit({ pending, disabled, pendingLabel, children, }: AuthSubmitProps): react.JSX.Element;
|
|
92
92
|
|
|
93
|
-
declare function LoginForm({ onSuccess, registerUrl, forgotPasswordUrl, socialCallbackUrl, socialProviders, coreTokenUrl, labels, authClient, }: LoginFormProps): react.JSX.Element;
|
|
93
|
+
declare function LoginForm({ onSuccess, registerUrl, forgotPasswordUrl, socialCallbackUrl, socialProviders, coreTokenUrl, labels, titleClassName, error: externalError, authClient, }: LoginFormProps): react.JSX.Element;
|
|
94
94
|
|
|
95
|
-
declare function RegisterForm({ onSuccess, loginUrl, legal, socialCallbackUrl, socialProviders, labels, authClient, }: RegisterFormProps): react.JSX.Element;
|
|
95
|
+
declare function RegisterForm({ onSuccess, loginUrl, legal, socialCallbackUrl, socialProviders, labels, titleClassName, error: externalError, authClient, }: RegisterFormProps): react.JSX.Element;
|
|
96
96
|
|
|
97
97
|
interface SocialButtonsProps {
|
|
98
98
|
providers: Array<"google" | "github">;
|
|
@@ -105,27 +105,33 @@ interface SocialButtonsProps {
|
|
|
105
105
|
}
|
|
106
106
|
declare function SocialButtons({ providers, onSelect, disabled, separator, labels, }: SocialButtonsProps): react.JSX.Element | null;
|
|
107
107
|
|
|
108
|
-
declare function VerifyEmailForm({ email, onSuccess, authClient, }: VerifyEmailFormProps): react.JSX.Element;
|
|
108
|
+
declare function VerifyEmailForm({ email, onSuccess, loginUrl, labels, titleClassName, authClient, }: VerifyEmailFormProps): react.JSX.Element;
|
|
109
109
|
|
|
110
|
-
declare function ForgotPasswordForm({ onSuccess, loginUrl, authClient, }: ForgotPasswordFormProps): react.JSX.Element;
|
|
110
|
+
declare function ForgotPasswordForm({ onSuccess, loginUrl, labels, titleClassName, authClient, }: ForgotPasswordFormProps): react.JSX.Element;
|
|
111
111
|
|
|
112
|
-
declare function ResetPasswordForm({ email, onSuccess, loginUrl, authClient, }: ResetPasswordFormProps): react.JSX.Element;
|
|
112
|
+
declare function ResetPasswordForm({ email, onSuccess, loginUrl, labels, titleClassName, authClient, }: ResetPasswordFormProps): react.JSX.Element;
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
|
-
* The frame every auth screen sits in.
|
|
115
|
+
* The frame every auth screen sits in. It owns the ground, the card and the
|
|
116
|
+
* app's own marks (logo, illustration, legal footer); the form it wraps owns
|
|
117
|
+
* its title and its fields.
|
|
116
118
|
*
|
|
117
119
|
* Mobile and desktop are two layouts, not one scaled down. On a phone the form
|
|
118
120
|
* IS the page: no card, no border, edge-to-edge padding, top-aligned so the
|
|
119
121
|
* fields stay above the keyboard instead of being pushed under it by vertical
|
|
120
122
|
* centering. From sm up it becomes a bounded card on a tinted ground — a
|
|
121
|
-
* full-width form on a 1440px display is unreadable.
|
|
122
|
-
*
|
|
123
|
-
*
|
|
123
|
+
* full-width form on a 1440px display is unreadable.
|
|
124
|
+
*
|
|
125
|
+
* With a `panel` the card splits in two from md up, the form on the left and
|
|
126
|
+
* the illustration on the right. The panel is dropped below that width rather
|
|
127
|
+
* than stacked: a decorative half-screen above a form costs a full swipe
|
|
128
|
+
* before the first field. Without a `panel` the card stays the single 420px
|
|
129
|
+
* column it has always been.
|
|
124
130
|
*
|
|
125
131
|
* min-h-dvh rather than min-h-screen: on mobile browsers 100vh includes the
|
|
126
132
|
* retracting URL bar, so a screen-height container overflows by its height.
|
|
127
133
|
*/
|
|
128
|
-
declare function AuthLayout({ logo,
|
|
134
|
+
declare function AuthLayout({ logo, panel, children, footer, }: AuthLayoutProps): react.JSX.Element;
|
|
129
135
|
|
|
130
136
|
/**
|
|
131
137
|
* What an invitee sees when their link does not work.
|