@asgardeo/react 0.6.22 → 0.6.23

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.
@@ -64,17 +64,23 @@ export interface FlowTransformOptions {
64
64
  * @default 'errors.flow.generic'
65
65
  */
66
66
  defaultErrorKey?: string;
67
+ /**
68
+ * Whether to resolve translation strings or keep them as i18n keys
69
+ * @default true
70
+ */
71
+ resolveTranslations?: boolean;
67
72
  }
68
73
  /**
69
74
  * Transform and resolve translations in components from flow response.
70
- * This function extracts components from the response meta structure and resolves
75
+ * This function extracts components from the response meta structure and optionally resolves
71
76
  * any translation strings within them.
72
77
  *
73
78
  * @param response - The flow response object containing components in meta structure
74
79
  * @param t - Translation function from useTranslation hook
75
- * @returns Array of flow components with resolved translations
80
+ * @param resolveTranslations - Whether to resolve translation strings or keep them as i18n keys (default: true)
81
+ * @returns Array of flow components with resolved or unresolved translations
76
82
  */
77
- export declare const transformComponents: (response: any, t: UseTranslation["t"]) => EmbeddedFlowComponent[];
83
+ export declare const transformComponents: (response: any, t: UseTranslation["t"], resolveTranslations?: boolean) => EmbeddedFlowComponent[];
78
84
  /**
79
85
  * Extract error message from flow error response.
80
86
  * Supports any flow error response that follows the standard structure.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asgardeo/react",
3
- "version": "0.6.22",
3
+ "version": "0.6.23",
4
4
  "description": "React implementation of Asgardeo JavaScript SDK.",
5
5
  "keywords": [
6
6
  "asgardeo",