@@ -48,6 +48,7 @@ import type {
4848 SignUpResource ,
4949 State ,
5050 TaskChooseOrganizationProps ,
51+ TaskResetPasswordProps ,
5152 TasksRedirectOptions ,
5253 UnsubscribeCallback ,
5354 UserAvatarProps ,
@@ -152,7 +153,7 @@ export class IsomorphicClerk implements IsomorphicLoadedClerk {
152153 private premountAPIKeysNodes = new Map < HTMLDivElement , APIKeysProps | undefined > ( ) ;
153154 private premountOAuthConsentNodes = new Map < HTMLDivElement , __internal_OAuthConsentProps | undefined > ( ) ;
154155 private premountTaskChooseOrganizationNodes = new Map < HTMLDivElement , TaskChooseOrganizationProps | undefined > ( ) ;
155-
156+ private premountTaskResetPasswordNodes = new Map < HTMLDivElement , TaskResetPasswordProps | undefined > ( ) ;
156157 // A separate Map of `addListener` method calls to handle multiple listeners.
157158 private premountAddListenerCalls = new Map <
158159 ListenerCallback ,
@@ -689,6 +690,10 @@ export class IsomorphicClerk implements IsomorphicLoadedClerk {
689690 clerkjs . mountTaskChooseOrganization ( node , props ) ;
690691 } ) ;
691692
693+ this . premountTaskResetPasswordNodes . forEach ( ( props , node ) => {
694+ clerkjs . mountTaskResetPassword ( node , props ) ;
695+ } ) ;
696+
692697 /**
693698 * Only update status in case `clerk.status` is missing. In any other case, `clerk-js` should be the orchestrator.
694699 */
@@ -1233,6 +1238,22 @@ export class IsomorphicClerk implements IsomorphicLoadedClerk {
12331238 }
12341239 } ;
12351240
1241+ mountTaskResetPassword = ( node : HTMLDivElement , props ?: TaskResetPasswordProps ) : void => {
1242+ if ( this . clerkjs && this . loaded ) {
1243+ this . clerkjs . mountTaskResetPassword ( node , props ) ;
1244+ } else {
1245+ this . premountTaskResetPasswordNodes . set ( node , props ) ;
1246+ }
1247+ } ;
1248+
1249+ unmountTaskResetPassword = ( node : HTMLDivElement ) : void => {
1250+ if ( this . clerkjs && this . loaded ) {
1251+ this . clerkjs . unmountTaskResetPassword ( node ) ;
1252+ } else {
1253+ this . premountTaskResetPasswordNodes . delete ( node ) ;
1254+ }
1255+ } ;
1256+
12361257 addListener = ( listener : ListenerCallback ) : UnsubscribeCallback => {
12371258 if ( this . clerkjs ) {
12381259 return this . clerkjs . addListener ( listener ) ;
0 commit comments