@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.
@@ -32,7 +32,7 @@
32
32
  * ```typescript
33
33
  * import { normalizeFlowResponse } from '../../../utils/v2/flowTransformer';
34
34
  *
35
- * const { flowId, components } = normalizeFlowResponse(apiResponse, t, {
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 flowId and transformed components
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
- flowId: string;
119
+ executionId: string;
120
120
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asgardeo/react",
3
- "version": "0.21.4",
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.4",
62
+ "@asgardeo/browser": "0.6.6",
63
63
  "@asgardeo/i18n": "0.4.5"
64
64
  },
65
65
  "publishConfig": {