@@ -36,9 +36,9 @@ import type {
3636 AuthenticateWithMetamaskParams ,
3737 AuthenticateWithOKXWalletParams ,
3838 BillingNamespace ,
39- Clerk as ClerkInterface ,
4039 ClerkAPIError ,
4140 ClerkAuthenticateWithWeb3Params ,
41+ Clerk as ClerkInterface ,
4242 ClerkOptions ,
4343 ClientJSONSnapshot ,
4444 ClientResource ,
@@ -826,6 +826,9 @@ export class Clerk implements ClerkInterface {
826826 if ( this . #instanceType === 'development' ) {
827827 this . __internal_openEnableOrganizationsPrompt ( {
828828 componentName : 'OrganizationProfile' ,
829+ onComplete : ( ) => {
830+ this . openOrganizationProfile ( ) ;
831+ } ,
829832 } ) ;
830833 }
831834 return ;
@@ -856,6 +859,9 @@ export class Clerk implements ClerkInterface {
856859 if ( this . #instanceType === 'development' ) {
857860 this . __internal_openEnableOrganizationsPrompt ( {
858861 componentName : 'OrganizationSwitcher' ,
862+ onComplete : ( ) => {
863+ this . openCreateOrganization ( ) ;
864+ } ,
859865 } ) ;
860866 }
861867 return ;
@@ -998,6 +1004,9 @@ export class Clerk implements ClerkInterface {
9981004 if ( this . #instanceType === 'development' ) {
9991005 this . __internal_openEnableOrganizationsPrompt ( {
10001006 componentName : 'OrganizationProfile' ,
1007+ onComplete : ( ) => {
1008+ this . mountOrganizationProfile ( node , props ) ;
1009+ } ,
10011010 } ) ;
10021011 }
10031012 return ;
@@ -1038,6 +1047,9 @@ export class Clerk implements ClerkInterface {
10381047 if ( this . #instanceType === 'development' ) {
10391048 this . __internal_openEnableOrganizationsPrompt ( {
10401049 componentName : 'OrganizationSwitcher' ,
1050+ onComplete : ( ) => {
1051+ this . mountCreateOrganization ( ) ;
1052+ } ,
10411053 } ) ;
10421054 }
10431055 return ;
@@ -1069,6 +1081,9 @@ export class Clerk implements ClerkInterface {
10691081 if ( this . #instanceType === 'development' ) {
10701082 this . __internal_openEnableOrganizationsPrompt ( {
10711083 componentName : 'OrganizationSwitcher' ,
1084+ onComplete : ( ) => {
1085+ this . mountOrganizationSwitcher ( node , props ) ;
1086+ } ,
10721087 } ) ;
10731088 }
10741089 return ;
@@ -1105,9 +1120,14 @@ export class Clerk implements ClerkInterface {
11051120 public mountOrganizationList = ( node : HTMLDivElement , props ?: OrganizationListProps ) => {
11061121 this . assertComponentsReady ( this . #componentControls) ;
11071122 if ( disabledOrganizationsFeature ( this , this . environment ) ) {
1123+ debugger ;
11081124 if ( this . #instanceType === 'development' ) {
11091125 this . __internal_openEnableOrganizationsPrompt ( {
11101126 componentName : 'OrganizationList' ,
1127+ onComplete : ( ) => {
1128+ debugger ;
1129+ this . mountOrganizationList ( node , props ) ;
1130+ } ,
11111131 } ) ;
11121132 }
11131133 return ;
@@ -1295,6 +1315,9 @@ export class Clerk implements ClerkInterface {
12951315 if ( this . #instanceType === 'development' ) {
12961316 this . __internal_openEnableOrganizationsPrompt ( {
12971317 componentName : 'OrganizationSwitcher' ,
1318+ onComplete : ( ) => {
1319+ this . mountTaskChooseOrganization ( node , props ) ;
1320+ } ,
12981321 } ) ;
12991322 }
13001323 return ;
0 commit comments