@wacht/jsx 1.0.0-beta.57 → 1.0.0-beta.59
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/index.cjs.js +21 -21
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +20 -12
- package/dist/index.es.js +5898 -5830
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -180,6 +180,10 @@ export declare function canManageOrganization(membership: WithOrgRoles): boolean
|
|
|
180
180
|
*/
|
|
181
181
|
export declare function canManageWorkspace(membership: WithWsRoles): boolean;
|
|
182
182
|
|
|
183
|
+
declare type ChallengeParams = {
|
|
184
|
+
challenge_token?: string;
|
|
185
|
+
};
|
|
186
|
+
|
|
183
187
|
export declare function clearTokenCache(): void;
|
|
184
188
|
|
|
185
189
|
declare const CONNECTION_STATES: {
|
|
@@ -347,16 +351,16 @@ export declare const DropdownTrigger: ({ children }: {
|
|
|
347
351
|
children: ReactNode;
|
|
348
352
|
}) => JSX.Element;
|
|
349
353
|
|
|
350
|
-
declare type EmailOTPSignInParams = {
|
|
354
|
+
declare type EmailOTPSignInParams = ChallengeParams & {
|
|
351
355
|
email: string;
|
|
352
356
|
};
|
|
353
357
|
|
|
354
|
-
declare type EmailOTPVerificationParams = {
|
|
358
|
+
declare type EmailOTPVerificationParams = ChallengeParams & {
|
|
355
359
|
strategy: "email_otp";
|
|
356
360
|
redirectUri?: string;
|
|
357
361
|
};
|
|
358
362
|
|
|
359
|
-
declare type EmailSignInParams = {
|
|
363
|
+
declare type EmailSignInParams = ChallengeParams & {
|
|
360
364
|
email: string;
|
|
361
365
|
password: string;
|
|
362
366
|
};
|
|
@@ -385,6 +389,7 @@ declare type GenericSignInParams = {
|
|
|
385
389
|
password?: string;
|
|
386
390
|
phone?: string;
|
|
387
391
|
strategy?: string;
|
|
392
|
+
challenge_token?: string;
|
|
388
393
|
};
|
|
389
394
|
|
|
390
395
|
export declare function hasIncompleteProfile(session: Session): boolean;
|
|
@@ -437,13 +442,13 @@ declare interface MagicLinkParams {
|
|
|
437
442
|
redirectUri?: string;
|
|
438
443
|
}
|
|
439
444
|
|
|
440
|
-
declare type MagicLinkSignInParams = {
|
|
445
|
+
declare type MagicLinkSignInParams = ChallengeParams & {
|
|
441
446
|
email: string;
|
|
442
447
|
};
|
|
443
448
|
|
|
444
449
|
export declare function MagicLinkVerification({ onSuccess, onError, }?: MagicLinkVerificationProps): JSX.Element;
|
|
445
450
|
|
|
446
|
-
declare type MagicLinkVerificationParams = {
|
|
451
|
+
declare type MagicLinkVerificationParams = ChallengeParams & {
|
|
447
452
|
strategy: "magic_link";
|
|
448
453
|
redirectUri?: string;
|
|
449
454
|
};
|
|
@@ -624,12 +629,12 @@ export declare const PhoneNumberInput: ({ value, onChange, error, countryCode, s
|
|
|
624
629
|
setCountryCode: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
625
630
|
}) => JSX.Element;
|
|
626
631
|
|
|
627
|
-
declare type PhoneOTPVerificationParams = {
|
|
632
|
+
declare type PhoneOTPVerificationParams = ChallengeParams & {
|
|
628
633
|
strategy: "phone_otp";
|
|
629
634
|
lastDigits?: string;
|
|
630
635
|
};
|
|
631
636
|
|
|
632
|
-
declare type PhoneSignInParams = {
|
|
637
|
+
declare type PhoneSignInParams = ChallengeParams & {
|
|
633
638
|
phone: string;
|
|
634
639
|
};
|
|
635
640
|
|
|
@@ -734,8 +739,8 @@ declare type SignIn = {
|
|
|
734
739
|
prepareVerification: (params: VerificationParams) => Promise<ApiResult<PrepareVerificationResponse>>;
|
|
735
740
|
completeVerification: (verificationCode: string) => Promise<Session>;
|
|
736
741
|
completeProfile: (data: ProfileCompletionData) => Promise<Session>;
|
|
737
|
-
identify: (identifier: string) => Promise<IdentifyResult>;
|
|
738
|
-
initEnterpriseSso: (connectionId: string, redirectUri?: string) => Promise<{
|
|
742
|
+
identify: (identifier: string, challengeToken?: string) => Promise<IdentifyResult>;
|
|
743
|
+
initEnterpriseSso: (connectionId: string, redirectUri?: string, challengeToken?: string) => Promise<{
|
|
739
744
|
sso_url: string;
|
|
740
745
|
session: Session;
|
|
741
746
|
}>;
|
|
@@ -745,16 +750,17 @@ declare type SignInEmailOTP = ({ email, }: EmailOTPSignInParams) => Promise<ApiR
|
|
|
745
750
|
|
|
746
751
|
export declare function SignInForm(): JSX.Element;
|
|
747
752
|
|
|
748
|
-
declare type SignInGeneric = ({ email, username, password, phone, strategy, }: GenericSignInParams) => Promise<ApiResult<Session>>;
|
|
753
|
+
declare type SignInGeneric = ({ email, username, password, phone, strategy, challenge_token, }: GenericSignInParams) => Promise<ApiResult<Session>>;
|
|
749
754
|
|
|
750
755
|
declare type SignInMagicLink = ({ email, }: MagicLinkSignInParams) => Promise<ApiResult<Session>>;
|
|
751
756
|
|
|
752
757
|
declare type SignInOauth = ({ provider, redirectUri, }: {
|
|
753
758
|
provider: OAuthProvider;
|
|
754
759
|
redirectUri?: string;
|
|
760
|
+
challenge_token?: string;
|
|
755
761
|
}) => Promise<ApiResult<InitSSOResponseType>>;
|
|
756
762
|
|
|
757
|
-
declare type SignInPasskey = () => Promise<ApiResult<Session>>;
|
|
763
|
+
declare type SignInPasskey = (params?: ChallengeParams) => Promise<ApiResult<Session>>;
|
|
758
764
|
|
|
759
765
|
declare type SignInPhone = ({ phone, }: PhoneSignInParams) => Promise<ApiResult<Session>>;
|
|
760
766
|
|
|
@@ -765,6 +771,7 @@ declare type SignInPlainUsername = ({ username, password, }: UsernameSignInParam
|
|
|
765
771
|
declare type SignupEmailOTPVerificationParams = {
|
|
766
772
|
strategy: "email_otp";
|
|
767
773
|
redirectUri?: string;
|
|
774
|
+
challenge_token?: string;
|
|
768
775
|
};
|
|
769
776
|
|
|
770
777
|
export declare function SignUpForm(): JSX.Element;
|
|
@@ -779,6 +786,7 @@ export declare type SignUpFunction = {
|
|
|
779
786
|
declare type SignupPhoneOTPVerificationParams = {
|
|
780
787
|
strategy: "phone_otp";
|
|
781
788
|
lastDigits?: string;
|
|
789
|
+
challenge_token?: string;
|
|
782
790
|
};
|
|
783
791
|
|
|
784
792
|
declare type SignupVerificationParams = SignupEmailOTPVerificationParams | SignupPhoneOTPVerificationParams;
|
|
@@ -1455,7 +1463,7 @@ declare interface UserControlsProps {
|
|
|
1455
1463
|
showNotifications?: boolean;
|
|
1456
1464
|
}
|
|
1457
1465
|
|
|
1458
|
-
declare type UsernameSignInParams = {
|
|
1466
|
+
declare type UsernameSignInParams = ChallengeParams & {
|
|
1459
1467
|
username: string;
|
|
1460
1468
|
password: string;
|
|
1461
1469
|
};
|