@descope/react-sdk 2.21.4 → 2.22.0
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/cjs/constants.js +1 -1
- package/dist/esm/constants.js +1 -1
- package/dist/index.d.ts +2 -3
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/types/types.d.ts +2 -2
- package/package.json +11 -11
package/dist/cjs/constants.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e="undefined"!=typeof window;exports.IS_BROWSER=e,exports.baseHeaders={"x-descope-sdk-name":"react","x-descope-sdk-version":"2.
|
|
1
|
+
"use strict";const e="undefined"!=typeof window;exports.IS_BROWSER=e,exports.baseHeaders={"x-descope-sdk-name":"react","x-descope-sdk-version":"2.22.0"};
|
|
2
2
|
//# sourceMappingURL=constants.js.map
|
package/dist/esm/constants.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e={"x-descope-sdk-name":"react","x-descope-sdk-version":"2.
|
|
1
|
+
const e={"x-descope-sdk-name":"react","x-descope-sdk-version":"2.22.0"},d="undefined"!=typeof window;export{d as IS_BROWSER,e as baseHeaders};
|
|
2
2
|
//# sourceMappingURL=constants.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import React, { FC, DOMAttributes } from 'react';
|
|
|
2
2
|
import * as _descope_web_js_sdk from '@descope/web-js-sdk';
|
|
3
3
|
import { CookieConfig, OidcConfig } from '@descope/web-js-sdk';
|
|
4
4
|
import * as _descope_web_component from '@descope/web-component';
|
|
5
|
-
import _descope_web_component__default, { CustomStorage, ILogger, ThemeOptions, AutoFocusOptions } from '@descope/web-component';
|
|
5
|
+
import _descope_web_component__default, { CustomStorage, ILogger, ThemeOptions, FlowJWTResponse, AutoFocusOptions } from '@descope/web-component';
|
|
6
6
|
export { ILogger } from '@descope/web-component';
|
|
7
7
|
import AccessKeyManagementWidget from '@descope/access-key-management-widget';
|
|
8
8
|
import ApplicationsPortalWidget from '@descope/applications-portal-widget';
|
|
@@ -2066,7 +2066,6 @@ type WidgetProps = {
|
|
|
2066
2066
|
};
|
|
2067
2067
|
type FlowResponse = Awaited<ReturnType<Sdk['flow']['next']>>;
|
|
2068
2068
|
type ErrorResponse = Required<FlowResponse>['error'];
|
|
2069
|
-
type JWTResponse = Required<Required<FlowResponse>['data']>['authInfo'];
|
|
2070
2069
|
type CustomEventCb<T extends Record<string, any>> = (e: CustomEvent<T>) => void;
|
|
2071
2070
|
type Sdk = ReturnType<typeof createSdkWrapper>;
|
|
2072
2071
|
type CustomElement<T> = Partial<T & DOMAttributes<T> & {
|
|
@@ -2083,7 +2082,7 @@ type ApplicationsPortalCustomElement = CustomElement<typeof ApplicationsPortalWi
|
|
|
2083
2082
|
type TenantProfileCustomElement = CustomElement<typeof TenantProfileWidget & TenantProfileProps>;
|
|
2084
2083
|
type DescopeProps = {
|
|
2085
2084
|
flowId: string;
|
|
2086
|
-
onSuccess?: CustomEventCb<
|
|
2085
|
+
onSuccess?: CustomEventCb<FlowJWTResponse>;
|
|
2087
2086
|
onError?: CustomEventCb<ErrorResponse>;
|
|
2088
2087
|
onReady?: CustomEventCb<{}>;
|
|
2089
2088
|
logger?: ILogger;
|