@asgardeo/react 0.11.2 → 0.11.3

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.
Files changed (104) hide show
  1. package/dist/AsgardeoReactClient.d.ts +10 -10
  2. package/dist/__temp__/api.d.ts +6 -6
  3. package/dist/__temp__/models.d.ts +30 -30
  4. package/dist/cjs/index.js +5988 -5754
  5. package/dist/cjs/index.js.map +4 -4
  6. package/dist/components/adapters/FacebookButton.d.ts +1 -1
  7. package/dist/components/adapters/GitHubButton.d.ts +1 -1
  8. package/dist/components/adapters/GoogleButton.d.ts +1 -1
  9. package/dist/components/adapters/LinkedInButton.d.ts +1 -1
  10. package/dist/components/adapters/MicrosoftButton.d.ts +1 -1
  11. package/dist/components/adapters/SignInWithEthereumButton.d.ts +1 -1
  12. package/dist/components/adapters/SmsOtpButton.d.ts +1 -1
  13. package/dist/components/factories/FieldFactory.d.ts +25 -25
  14. package/dist/components/presentation/CreateOrganization/BaseCreateOrganization.styles.d.ts +1 -18
  15. package/dist/components/presentation/CreateOrganization/CreateOrganization.d.ts +1 -1
  16. package/dist/components/presentation/OrganizationList/BaseOrganizationList.d.ts +26 -26
  17. package/dist/components/presentation/OrganizationList/BaseOrganizationList.styles.d.ts +1 -31
  18. package/dist/components/presentation/OrganizationList/OrganizationList.styles.d.ts +1 -6
  19. package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.d.ts +3 -3
  20. package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.styles.d.ts +1 -27
  21. package/dist/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.d.ts +6 -6
  22. package/dist/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.styles.d.ts +1 -25
  23. package/dist/components/presentation/User/BaseUser.d.ts +4 -4
  24. package/dist/components/presentation/UserDropdown/BaseUserDropdown.styles.d.ts +1 -15
  25. package/dist/components/presentation/UserProfile/BaseUserProfile.d.ts +3 -3
  26. package/dist/components/presentation/UserProfile/BaseUserProfile.styles.d.ts +1 -26
  27. package/dist/components/presentation/auth/AcceptInvite/index.d.ts +1 -1
  28. package/dist/components/presentation/auth/AcceptInvite/v2/AcceptInvite.d.ts +13 -13
  29. package/dist/components/presentation/auth/AcceptInvite/v2/BaseAcceptInvite.d.ts +51 -51
  30. package/dist/components/presentation/auth/AcceptInvite/v2/BaseAcceptInvite.styles.d.ts +6 -10
  31. package/dist/components/presentation/auth/AuthOptionFactory.d.ts +1 -1
  32. package/dist/components/presentation/auth/InviteUser/index.d.ts +1 -1
  33. package/dist/components/presentation/auth/InviteUser/v2/BaseInviteUser.d.ts +57 -57
  34. package/dist/components/presentation/auth/InviteUser/v2/BaseInviteUser.styles.d.ts +6 -10
  35. package/dist/components/presentation/auth/InviteUser/v2/InviteUser.d.ts +15 -15
  36. package/dist/components/presentation/auth/SignIn/BaseSignIn.styles.d.ts +1 -27
  37. package/dist/components/presentation/auth/SignIn/SignIn.d.ts +1 -1
  38. package/dist/components/presentation/auth/SignIn/v1/BaseSignIn.d.ts +12 -12
  39. package/dist/components/presentation/auth/SignIn/v1/options/SignInOptionFactory.d.ts +15 -15
  40. package/dist/components/presentation/auth/SignIn/v1/types.d.ts +30 -30
  41. package/dist/components/presentation/auth/SignIn/v2/BaseSignIn.d.ts +47 -47
  42. package/dist/components/presentation/auth/SignIn/v2/SignIn.d.ts +20 -20
  43. package/dist/components/presentation/auth/SignUp/BaseSignUp.styles.d.ts +1 -26
  44. package/dist/components/presentation/auth/SignUp/v1/BaseSignUp.d.ts +40 -40
  45. package/dist/components/presentation/auth/SignUp/v1/SignUpOptionFactory.d.ts +1 -1
  46. package/dist/components/presentation/auth/SignUp/v2/BaseSignUp.d.ts +46 -46
  47. package/dist/components/primitives/Alert/Alert.d.ts +8 -8
  48. package/dist/components/primitives/Alert/Alert.styles.d.ts +1 -8
  49. package/dist/components/primitives/Avatar/Avatar.d.ts +4 -4
  50. package/dist/components/primitives/Avatar/Avatar.styles.d.ts +1 -7
  51. package/dist/components/primitives/Button/Button.d.ts +14 -14
  52. package/dist/components/primitives/Button/Button.styles.d.ts +1 -13
  53. package/dist/components/primitives/Card/Card.d.ts +4 -4
  54. package/dist/components/primitives/Card/Card.styles.d.ts +1 -11
  55. package/dist/components/primitives/Checkbox/Checkbox.d.ts +8 -8
  56. package/dist/components/primitives/Checkbox/Checkbox.styles.d.ts +1 -8
  57. package/dist/components/primitives/DatePicker/DatePicker.d.ts +12 -12
  58. package/dist/components/primitives/DatePicker/DatePicker.styles.d.ts +1 -6
  59. package/dist/components/primitives/Dialog/Dialog.d.ts +17 -17
  60. package/dist/components/primitives/Dialog/Dialog.styles.d.ts +1 -9
  61. package/dist/components/primitives/Divider/Divider.d.ts +2 -2
  62. package/dist/components/primitives/Divider/Divider.styles.d.ts +1 -7
  63. package/dist/components/primitives/FormControl/FormControl.d.ts +4 -4
  64. package/dist/components/primitives/FormControl/FormControl.styles.d.ts +1 -5
  65. package/dist/components/primitives/InputLabel/InputLabel.d.ts +10 -10
  66. package/dist/components/primitives/InputLabel/InputLabel.styles.d.ts +1 -7
  67. package/dist/components/primitives/KeyValueInput/KeyValueInput.d.ts +4 -4
  68. package/dist/components/primitives/KeyValueInput/KeyValueInput.styles.d.ts +1 -17
  69. package/dist/components/primitives/Logo/Logo.d.ts +8 -8
  70. package/dist/components/primitives/Logo/Logo.styles.d.ts +1 -7
  71. package/dist/components/primitives/MultiInput/MultiInput.d.ts +28 -28
  72. package/dist/components/primitives/MultiInput/MultiInput.styles.d.ts +1 -11
  73. package/dist/components/primitives/OtpField/OtpField.d.ts +20 -20
  74. package/dist/components/primitives/OtpField/OtpField.styles.d.ts +1 -6
  75. package/dist/components/primitives/PasswordField/PasswordField.styles.d.ts +1 -5
  76. package/dist/components/primitives/Select/Select.d.ts +18 -18
  77. package/dist/components/primitives/Select/Select.styles.d.ts +1 -6
  78. package/dist/components/primitives/Spinner/Spinner.d.ts +4 -4
  79. package/dist/components/primitives/Spinner/Spinner.styles.d.ts +1 -6
  80. package/dist/components/primitives/TextField/TextField.d.ts +18 -18
  81. package/dist/components/primitives/TextField/TextField.styles.d.ts +1 -9
  82. package/dist/components/primitives/Typography/Typography.d.ts +24 -24
  83. package/dist/components/primitives/Typography/Typography.styles.d.ts +1 -19
  84. package/dist/contexts/Asgardeo/AsgardeoContext.d.ts +62 -62
  85. package/dist/contexts/Branding/BrandingContext.d.ts +12 -11
  86. package/dist/contexts/Branding/BrandingProvider.d.ts +10 -10
  87. package/dist/contexts/Flow/FlowContext.d.ts +25 -24
  88. package/dist/contexts/Flow/FlowProvider.d.ts +4 -4
  89. package/dist/contexts/I18n/I18nContext.d.ts +6 -5
  90. package/dist/contexts/I18n/I18nProvider.d.ts +1 -1
  91. package/dist/contexts/Theme/ThemeContext.d.ts +12 -11
  92. package/dist/contexts/Theme/ThemeProvider.d.ts +10 -10
  93. package/dist/contexts/Theme/types.d.ts +30 -30
  94. package/dist/contexts/User/UserContext.d.ts +2 -2
  95. package/dist/contexts/User/UserProvider.d.ts +2 -2
  96. package/dist/hooks/useBranding.d.ts +17 -17
  97. package/dist/hooks/useForm.d.ts +10 -9
  98. package/dist/hooks/useTranslation.d.ts +4 -4
  99. package/dist/index.d.ts +6 -26
  100. package/dist/index.js +5969 -5705
  101. package/dist/index.js.map +4 -4
  102. package/dist/utils/v2/flowTransformer.d.ts +7 -7
  103. package/dist/utils/v2/getAuthComponentHeadings.d.ts +2 -2
  104. package/package.json +2 -2
@@ -46,19 +46,14 @@ 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
+ failureReason?: string;
49
50
  flowId: string;
50
51
  flowStatus: 'ERROR';
51
- failureReason?: string;
52
52
  }
53
53
  /**
54
54
  * Configuration options for flow transformation
55
55
  */
56
56
  export interface FlowTransformOptions {
57
- /**
58
- * Whether to throw errors or return them as normalized response
59
- * @default true
60
- */
61
- throwOnError?: boolean;
62
57
  /**
63
58
  * Default error message key for translation fallback
64
59
  * @default 'errors.flow.generic'
@@ -69,6 +64,11 @@ export interface FlowTransformOptions {
69
64
  * @default true
70
65
  */
71
66
  resolveTranslations?: boolean;
67
+ /**
68
+ * Whether to throw errors or return them as normalized response
69
+ * @default true
70
+ */
71
+ throwOnError?: boolean;
72
72
  }
73
73
  /**
74
74
  * Transform and resolve translations in components from flow response.
@@ -114,6 +114,6 @@ export declare const checkForErrorResponse: (response: any, t: UseTranslation["t
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) => {
117
- flowId: string;
118
117
  components: EmbeddedFlowComponent[];
118
+ flowId: string;
119
119
  };
@@ -27,10 +27,10 @@ export interface HeadingExtractionResult {
27
27
  * Complete result of authentication component heading extraction
28
28
  */
29
29
  export interface AuthComponentHeadingsResult {
30
- title: string;
31
- subtitle: string;
32
30
  componentsWithoutHeadings: EmbeddedFlowComponent[];
33
31
  headingComponents: HeadingExtractionResult;
32
+ subtitle: string;
33
+ title: string;
34
34
  }
35
35
  /**
36
36
  * Extracts heading and subheading components from authentication flow components
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asgardeo/react",
3
- "version": "0.11.2",
3
+ "version": "0.11.3",
4
4
  "description": "React implementation of Asgardeo JavaScript SDK.",
5
5
  "keywords": [
6
6
  "asgardeo",
@@ -59,7 +59,7 @@
59
59
  "react-dom": "19.1.4",
60
60
  "tslib": "2.8.1",
61
61
  "@asgardeo/i18n": "0.4.2",
62
- "@asgardeo/browser": "0.2.8"
62
+ "@asgardeo/browser": "0.2.9"
63
63
  },
64
64
  "publishConfig": {
65
65
  "access": "public"