@asgardeo/react 0.21.4 → 0.22.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.
- package/dist/cjs/index.js +85 -85
- package/dist/cjs/index.js.map +2 -2
- package/dist/components/presentation/auth/AcceptInvite/v2/AcceptInvite.d.ts +3 -3
- package/dist/components/presentation/auth/AcceptInvite/v2/BaseAcceptInvite.d.ts +6 -6
- package/dist/components/presentation/auth/InviteUser/v2/BaseInviteUser.d.ts +7 -3
- package/dist/components/presentation/auth/InviteUser/v2/InviteUser.d.ts +1 -1
- package/dist/hooks/v2/useOAuthCallback.d.ts +9 -9
- package/dist/index.js +85 -85
- package/dist/index.js.map +2 -2
- package/dist/utils/v2/flowTransformer.d.ts +4 -4
- package/package.json +2 -2
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
* ```typescript
|
|
33
33
|
* import { normalizeFlowResponse } from '../../../utils/v2/flowTransformer';
|
|
34
34
|
*
|
|
35
|
-
* const {
|
|
35
|
+
* const { executionId, components } = normalizeFlowResponse(apiResponse, t, {
|
|
36
36
|
* defaultErrorKey: 'components.signIn.errors.generic'
|
|
37
37
|
* });
|
|
38
38
|
* ```
|
|
@@ -46,8 +46,8 @@ import { UseTranslation } from '../../hooks/useTranslation';
|
|
|
46
46
|
* Generic flow error response interface that covers common error structure
|
|
47
47
|
*/
|
|
48
48
|
export interface FlowErrorResponse {
|
|
49
|
+
executionId: string;
|
|
49
50
|
failureReason?: string;
|
|
50
|
-
flowId: string;
|
|
51
51
|
flowStatus: 'ERROR';
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
@@ -110,11 +110,11 @@ export declare const checkForErrorResponse: (response: any, t: UseTranslation["t
|
|
|
110
110
|
* @param response - The raw flow response from the API
|
|
111
111
|
* @param t - Translation function from useTranslation hook
|
|
112
112
|
* @param options - Configuration options for transformation behavior
|
|
113
|
-
* @returns Normalized flow response with
|
|
113
|
+
* @returns Normalized flow response with executionId and transformed components
|
|
114
114
|
* @throws {any} The original response if it's an error and throwOnError is true
|
|
115
115
|
*/
|
|
116
116
|
export declare const normalizeFlowResponse: (response: any, t: UseTranslation["t"], options?: FlowTransformOptions, meta?: FlowMetadataResponse | null) => {
|
|
117
117
|
additionalData: Record<string, any>;
|
|
118
118
|
components: EmbeddedFlowComponent[];
|
|
119
|
-
|
|
119
|
+
executionId: string;
|
|
120
120
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asgardeo/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.1",
|
|
4
4
|
"description": "React implementation of Asgardeo JavaScript SDK.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"asgardeo",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"dompurify": "3.3.1",
|
|
60
60
|
"react-dom": "19.2.4",
|
|
61
61
|
"tslib": "2.8.1",
|
|
62
|
-
"@asgardeo/browser": "0.6.
|
|
62
|
+
"@asgardeo/browser": "0.6.6",
|
|
63
63
|
"@asgardeo/i18n": "0.4.5"
|
|
64
64
|
},
|
|
65
65
|
"publishConfig": {
|