@@ -464,10 +464,6 @@ export interface Resources {
464
464
465
465
export type RoutingStrategy = 'path' | 'hash' | 'virtual' ;
466
466
467
- export type RoutingOptions =
468
- | { path : string ; routing ?: Extract < RoutingStrategy , 'path' > }
469
- | { path ?: never ; routing ?: Extract < RoutingStrategy , 'hash' | 'virtual' > } ;
470
-
471
467
export type RedirectOptions = {
472
468
/**
473
469
* Full URL or path to navigate after successful sign in.
@@ -512,7 +508,15 @@ export type SetActiveParams = {
512
508
513
509
export type SetActive = ( params : SetActiveParams ) => Promise < void > ;
514
510
515
- export type SignInProps = RoutingOptions & {
511
+ export type SignInProps = {
512
+ /*
513
+ * Page routing strategy
514
+ */
515
+ routing ?: RoutingStrategy ;
516
+ /*
517
+ * Root URL where the component is mounted on, eg: '/sign in'
518
+ */
519
+ path ?: string ;
516
520
/**
517
521
* Full URL or path to for the sign up process.
518
522
* Used to fill the "Sign up" link in the SignUp component.
@@ -526,7 +530,15 @@ export type SignInProps = RoutingOptions & {
526
530
appearance ?: SignInTheme ;
527
531
} & RedirectOptions ;
528
532
529
- export type SignUpProps = RoutingOptions & {
533
+ export type SignUpProps = {
534
+ /*
535
+ * Page routing strategy
536
+ */
537
+ routing ?: RoutingStrategy ;
538
+ /*
539
+ * Root URL where the component is mounted on, eg: '/sign up'
540
+ */
541
+ path ?: string ;
530
542
/**
531
543
* Full URL or path to for the sign in process.
532
544
* Used to fill the "Sign in" link in the SignUp component.
@@ -540,7 +552,15 @@ export type SignUpProps = RoutingOptions & {
540
552
appearance ?: SignUpTheme ;
541
553
} & RedirectOptions ;
542
554
543
- export type UserProfileProps = RoutingOptions & {
555
+ export type UserProfileProps = {
556
+ /*
557
+ * Page routing strategy
558
+ */
559
+ routing ?: RoutingStrategy ;
560
+ /*
561
+ * Root URL where the component is mounted on, eg: '/user'
562
+ */
563
+ path ?: string ;
544
564
/*
545
565
* Renders only a specific view of the component eg: 'security'
546
566
*/
@@ -553,7 +573,15 @@ export type UserProfileProps = RoutingOptions & {
553
573
appearance ?: UserProfileTheme ;
554
574
} ;
555
575
556
- export type OrganizationProfileProps = RoutingOptions & {
576
+ export type OrganizationProfileProps = {
577
+ /*
578
+ * Page routing strategy
579
+ */
580
+ routing ?: RoutingStrategy ;
581
+ /*
582
+ * Root URL where the component is mounted on, eg: '/user'
583
+ */
584
+ path ?: string ;
557
585
/**
558
586
* Full URL or path to navigate to after the user leaves the currently active organization.
559
587
* @default undefined
@@ -567,7 +595,15 @@ export type OrganizationProfileProps = RoutingOptions & {
567
595
appearance ?: OrganizationProfileTheme ;
568
596
} ;
569
597
570
- export type CreateOrganizationProps = RoutingOptions & {
598
+ export type CreateOrganizationProps = {
599
+ /*
600
+ * Page routing strategy
601
+ */
602
+ routing ?: RoutingStrategy ;
603
+ /*
604
+ * Root URL where the component is mounted on, eg: '/user'
605
+ */
606
+ path ?: string ;
571
607
/**
572
608
* Full URL or path to navigate after creating a new organization.
573
609
* @default undefined
0 commit comments