@descope/react-sdk 3.4.8 → 3.5.1

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.
@@ -12,5 +12,6 @@ declare const UserProfile: React.ForwardRefExoticComponent<Omit<{
12
12
  client?: Record<string, any>;
13
13
  }, "tenant"> & {
14
14
  onLogout?: (e: CustomEvent<any>) => void;
15
+ onFlowPopupUnauthenticated?: (e: CustomEvent<any>) => void;
15
16
  } & React.RefAttributes<HTMLElement>>;
16
17
  export default UserProfile;
@@ -803,6 +803,11 @@ declare const createSdkWrapper: <P extends {
803
803
  nonAlphanumeric: boolean;
804
804
  }>>;
805
805
  };
806
+ emailVerification: {
807
+ start: () => Promise<_1.SdkResponse<{
808
+ nonce: string;
809
+ }>>;
810
+ };
806
811
  selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
807
812
  logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
808
813
  me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
@@ -1573,6 +1578,11 @@ declare const createSdkWrapper: <P extends {
1573
1578
  nonAlphanumeric: boolean;
1574
1579
  }>>;
1575
1580
  };
1581
+ emailVerification: {
1582
+ start: () => Promise<_1.SdkResponse<{
1583
+ nonce: string;
1584
+ }>>;
1585
+ };
1576
1586
  selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1577
1587
  logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
1578
1588
  me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
@@ -2343,6 +2353,11 @@ declare const createSdkWrapper: <P extends {
2343
2353
  nonAlphanumeric: boolean;
2344
2354
  }>>;
2345
2355
  };
2356
+ emailVerification: {
2357
+ start: () => Promise<_1.SdkResponse<{
2358
+ nonce: string;
2359
+ }>>;
2360
+ };
2346
2361
  selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2347
2362
  logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
2348
2363
  me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
@@ -3128,6 +3143,11 @@ export declare const createTempSdk: () => (((({
3128
3143
  nonAlphanumeric: boolean;
3129
3144
  }>>;
3130
3145
  };
3146
+ emailVerification: {
3147
+ start: () => Promise<_1.SdkResponse<{
3148
+ nonce: string;
3149
+ }>>;
3150
+ };
3131
3151
  selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3132
3152
  logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
3133
3153
  me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
@@ -3898,6 +3918,11 @@ export declare const createTempSdk: () => (((({
3898
3918
  nonAlphanumeric: boolean;
3899
3919
  }>>;
3900
3920
  };
3921
+ emailVerification: {
3922
+ start: () => Promise<_1.SdkResponse<{
3923
+ nonce: string;
3924
+ }>>;
3925
+ };
3901
3926
  selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3902
3927
  logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
3903
3928
  me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
@@ -4668,6 +4693,11 @@ export declare const createTempSdk: () => (((({
4668
4693
  nonAlphanumeric: boolean;
4669
4694
  }>>;
4670
4695
  };
4696
+ emailVerification: {
4697
+ start: () => Promise<_1.SdkResponse<{
4698
+ nonce: string;
4699
+ }>>;
4700
+ };
4671
4701
  selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
4672
4702
  logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
4673
4703
  me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
@@ -5461,6 +5491,11 @@ export declare const getGlobalSdk: () => (((({
5461
5491
  nonAlphanumeric: boolean;
5462
5492
  }>>;
5463
5493
  };
5494
+ emailVerification: {
5495
+ start: () => Promise<_1.SdkResponse<{
5496
+ nonce: string;
5497
+ }>>;
5498
+ };
5464
5499
  selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
5465
5500
  logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
5466
5501
  me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
@@ -6231,6 +6266,11 @@ export declare const getGlobalSdk: () => (((({
6231
6266
  nonAlphanumeric: boolean;
6232
6267
  }>>;
6233
6268
  };
6269
+ emailVerification: {
6270
+ start: () => Promise<_1.SdkResponse<{
6271
+ nonce: string;
6272
+ }>>;
6273
+ };
6234
6274
  selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
6235
6275
  logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
6236
6276
  me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
@@ -7001,6 +7041,11 @@ export declare const getGlobalSdk: () => (((({
7001
7041
  nonAlphanumeric: boolean;
7002
7042
  }>>;
7003
7043
  };
7044
+ emailVerification: {
7045
+ start: () => Promise<_1.SdkResponse<{
7046
+ nonce: string;
7047
+ }>>;
7048
+ };
7004
7049
  selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
7005
7050
  logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
7006
7051
  me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
@@ -127,6 +127,11 @@ export type AccessKeyManagementProps = WidgetProps;
127
127
  export type AuditManagementProps = WidgetProps;
128
128
  export type UserProfileProps = Omit<WidgetProps, 'tenant'> & {
129
129
  onLogout?: (e: CustomEvent) => void;
130
+ /**
131
+ * The auth domain does not know this user, so the app should sign them in.
132
+ * Not a logout: this app's own session is untouched.
133
+ */
134
+ onFlowPopupUnauthenticated?: (e: CustomEvent) => void;
130
135
  };
131
136
  export type ApplicationsPortalProps = Omit<WidgetProps, 'tenant'> & {
132
137
  onLogout?: (e: CustomEvent) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/react-sdk",
3
- "version": "3.4.8",
3
+ "version": "3.5.1",
4
4
  "description": "Descope React SDK",
5
5
  "author": "Descope Team <info@descope.com>",
6
6
  "homepage": "https://github.com/descope/descope-js",
@@ -49,18 +49,18 @@
49
49
  ]
50
50
  },
51
51
  "dependencies": {
52
- "@descope/access-key-management-widget": "0.10.16",
53
- "@descope/applications-portal-widget": "0.9.16",
54
- "@descope/audit-management-widget": "0.9.16",
55
- "@descope/core-js-sdk": "2.77.0",
56
- "@descope/outbound-applications-widget": "0.7.19",
57
- "@descope/role-management-widget": "0.10.16",
58
- "@descope/sdk-helpers": "0.10.1",
59
- "@descope/tenant-profile-widget": "0.11.13",
60
- "@descope/user-management-widget": "0.21.10",
61
- "@descope/user-profile-widget": "0.20.4",
62
- "@descope/web-component": "4.6.2",
63
- "@descope/web-js-sdk": "1.54.5"
52
+ "@descope/access-key-management-widget": "0.10.18",
53
+ "@descope/core-js-sdk": "2.78.0",
54
+ "@descope/outbound-applications-widget": "0.7.21",
55
+ "@descope/applications-portal-widget": "0.9.18",
56
+ "@descope/role-management-widget": "0.10.18",
57
+ "@descope/tenant-profile-widget": "0.11.15",
58
+ "@descope/sdk-helpers": "0.11.0",
59
+ "@descope/user-management-widget": "0.21.12",
60
+ "@descope/user-profile-widget": "0.21.1",
61
+ "@descope/web-component": "4.7.0",
62
+ "@descope/audit-management-widget": "0.9.18",
63
+ "@descope/web-js-sdk": "1.54.6"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@babel/core": "7.29.6",