@asgardeo/react 0.12.0 → 0.13.2

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 (39) hide show
  1. package/dist/api/createOrganization.d.ts +5 -1
  2. package/dist/api/getAllOrganizations.d.ts +5 -1
  3. package/dist/api/getMeOrganizations.d.ts +5 -1
  4. package/dist/api/getOrganization.d.ts +5 -1
  5. package/dist/api/getSchemas.d.ts +5 -1
  6. package/dist/api/getScim2Me.d.ts +5 -1
  7. package/dist/api/updateMeProfile.d.ts +5 -1
  8. package/dist/api/updateOrganization.d.ts +5 -1
  9. package/dist/cjs/index.js +2603 -2087
  10. package/dist/cjs/index.js.map +4 -4
  11. package/dist/components/actions/SignInButton/BaseSignInButton.d.ts +5 -1
  12. package/dist/components/actions/SignOutButton/BaseSignOutButton.d.ts +5 -1
  13. package/dist/components/actions/SignUpButton/BaseSignUpButton.d.ts +5 -1
  14. package/dist/components/presentation/UserDropdown/UserDropdown.d.ts +3 -0
  15. package/dist/components/presentation/auth/AcceptInvite/v2/BaseAcceptInvite.d.ts +5 -0
  16. package/dist/components/presentation/auth/AuthOptionFactory.d.ts +14 -1
  17. package/dist/components/presentation/auth/InviteUser/v2/BaseInviteUser.d.ts +5 -0
  18. package/dist/components/presentation/auth/SignIn/v2/BaseSignIn.d.ts +5 -1
  19. package/dist/components/presentation/auth/SignIn/v2/SignIn.d.ts +5 -1
  20. package/dist/{utils/v2/resolveTranslation.d.ts → components/primitives/Icons/ArrowLeftRight.d.ts} +11 -9
  21. package/dist/components/primitives/Icons/flowIconRegistry.d.ts +28 -0
  22. package/dist/components/primitives/Icons/index.d.ts +1 -0
  23. package/dist/contexts/Asgardeo/AsgardeoContext.d.ts +23 -1
  24. package/dist/contexts/FlowMeta/FlowMetaContext.d.ts +39 -0
  25. package/dist/contexts/FlowMeta/FlowMetaProvider.d.ts +50 -0
  26. package/dist/contexts/FlowMeta/useFlowMeta.d.ts +20 -0
  27. package/dist/contexts/I18n/I18nContext.d.ts +5 -0
  28. package/dist/contexts/Theme/ThemeProvider.d.ts +36 -39
  29. package/dist/contexts/Theme/v1/ThemeProvider.d.ts +88 -0
  30. package/dist/contexts/Theme/v2/ThemeProvider.d.ts +57 -0
  31. package/dist/index.js +2056 -1540
  32. package/dist/index.js.map +4 -4
  33. package/dist/utils/applyThemeToDOM.d.ts +24 -0
  34. package/dist/utils/normalizeThemeConfig.d.ts +30 -0
  35. package/dist/utils/v2/buildThemeConfigFromFlowMeta.d.ts +33 -0
  36. package/dist/utils/v2/flowTransformer.d.ts +3 -3
  37. package/dist/utils/v2/resolveTranslationsInArray.d.ts +4 -2
  38. package/dist/utils/v2/resolveTranslationsInObject.d.ts +5 -3
  39. package/package.json +6 -5
@@ -25,6 +25,10 @@ export interface CreateOrganizationConfig extends Omit<BaseCreateOrganizationCon
25
25
  * which is a wrapper around axios http.request
26
26
  */
27
27
  fetcher?: (url: string, config: RequestInit) => Promise<Response>;
28
+ /**
29
+ * Optional instance ID for multi-instance support. Defaults to 0.
30
+ */
31
+ instanceId?: number;
28
32
  }
29
33
  /**
30
34
  * Creates a new organization.
@@ -77,5 +81,5 @@ export interface CreateOrganizationConfig extends Omit<BaseCreateOrganizationCon
77
81
  * }
78
82
  * ```
79
83
  */
80
- declare const createOrganization: ({ fetcher, ...requestConfig }: CreateOrganizationConfig) => Promise<Organization>;
84
+ declare const createOrganization: ({ fetcher, instanceId, ...requestConfig }: CreateOrganizationConfig) => Promise<Organization>;
81
85
  export default createOrganization;
@@ -25,6 +25,10 @@ export interface GetAllOrganizationsConfig extends Omit<BaseGetAllOrganizationsC
25
25
  * which is a wrapper around axios http.request
26
26
  */
27
27
  fetcher?: (url: string, config: RequestInit) => Promise<Response>;
28
+ /**
29
+ * Optional instance ID for multi-instance support. Defaults to 0.
30
+ */
31
+ instanceId?: number;
28
32
  }
29
33
  /**
30
34
  * Retrieves all organizations with pagination support.
@@ -69,5 +73,5 @@ export interface GetAllOrganizationsConfig extends Omit<BaseGetAllOrganizationsC
69
73
  * }
70
74
  * ```
71
75
  */
72
- declare const getAllOrganizations: ({ fetcher, ...requestConfig }: GetAllOrganizationsConfig) => Promise<AllOrganizationsApiResponse>;
76
+ declare const getAllOrganizations: ({ fetcher, instanceId, ...requestConfig }: GetAllOrganizationsConfig) => Promise<AllOrganizationsApiResponse>;
73
77
  export default getAllOrganizations;
@@ -25,6 +25,10 @@ export interface GetMeOrganizationsConfig extends Omit<BaseGetMeOrganizationsCon
25
25
  * which is a wrapper around axios http.request
26
26
  */
27
27
  fetcher?: (url: string, config: RequestInit) => Promise<Response>;
28
+ /**
29
+ * Optional instance ID for multi-instance support. Defaults to 0.
30
+ */
31
+ instanceId?: number;
28
32
  }
29
33
  /**
30
34
  * Retrieves the organizations associated with the current user.
@@ -73,5 +77,5 @@ export interface GetMeOrganizationsConfig extends Omit<BaseGetMeOrganizationsCon
73
77
  * }
74
78
  * ```
75
79
  */
76
- declare const getMeOrganizations: ({ fetcher, ...requestConfig }: GetMeOrganizationsConfig) => Promise<Organization[]>;
80
+ declare const getMeOrganizations: ({ fetcher, instanceId, ...requestConfig }: GetMeOrganizationsConfig) => Promise<Organization[]>;
77
81
  export default getMeOrganizations;
@@ -25,6 +25,10 @@ export interface GetOrganizationConfig extends Omit<BaseGetOrganizationConfig, '
25
25
  * which is a wrapper around axios http.request
26
26
  */
27
27
  fetcher?: (url: string, config: RequestInit) => Promise<Response>;
28
+ /**
29
+ * Optional instance ID for multi-instance support. Defaults to 0.
30
+ */
31
+ instanceId?: number;
28
32
  }
29
33
  /**
30
34
  * Retrieves detailed information for a specific organization.
@@ -65,5 +69,5 @@ export interface GetOrganizationConfig extends Omit<BaseGetOrganizationConfig, '
65
69
  * }
66
70
  * ```
67
71
  */
68
- declare const getOrganization: ({ fetcher, ...requestConfig }: GetOrganizationConfig) => Promise<OrganizationDetails>;
72
+ declare const getOrganization: ({ fetcher, instanceId, ...requestConfig }: GetOrganizationConfig) => Promise<OrganizationDetails>;
69
73
  export default getOrganization;
@@ -25,6 +25,10 @@ export interface GetSchemasConfig extends Omit<BaseGetSchemasConfig, 'fetcher'>
25
25
  * which is a wrapper around axios http.request
26
26
  */
27
27
  fetcher?: (url: string, config: RequestInit) => Promise<Response>;
28
+ /**
29
+ * Optional instance ID for multi-instance support. Defaults to 0.
30
+ */
31
+ instanceId?: number;
28
32
  }
29
33
  /**
30
34
  * Retrieves the SCIM2 schemas from the specified endpoint.
@@ -63,5 +67,5 @@ export interface GetSchemasConfig extends Omit<BaseGetSchemasConfig, 'fetcher'>
63
67
  * }
64
68
  * ```
65
69
  */
66
- declare const getSchemas: ({ fetcher, ...requestConfig }: GetSchemasConfig) => Promise<Schema[]>;
70
+ declare const getSchemas: ({ fetcher, instanceId, ...requestConfig }: GetSchemasConfig) => Promise<Schema[]>;
67
71
  export default getSchemas;
@@ -25,6 +25,10 @@ export interface GetScim2MeConfig extends Omit<BaseGetScim2MeConfig, 'fetcher'>
25
25
  * which is a wrapper around axios http.request
26
26
  */
27
27
  fetcher?: (url: string, config: RequestInit) => Promise<Response>;
28
+ /**
29
+ * Optional instance ID for multi-instance support. Defaults to 0.
30
+ */
31
+ instanceId?: number;
28
32
  }
29
33
  /**
30
34
  * Retrieves the user profile information from the specified SCIM2 /Me endpoint.
@@ -63,5 +67,5 @@ export interface GetScim2MeConfig extends Omit<BaseGetScim2MeConfig, 'fetcher'>
63
67
  * }
64
68
  * ```
65
69
  */
66
- declare const getScim2Me: ({ fetcher, ...requestConfig }: GetScim2MeConfig) => Promise<User>;
70
+ declare const getScim2Me: ({ fetcher, instanceId, ...requestConfig }: GetScim2MeConfig) => Promise<User>;
67
71
  export default getScim2Me;
@@ -25,6 +25,10 @@ export interface UpdateMeProfileConfig extends Omit<BaseUpdateMeProfileConfig, '
25
25
  * which is a wrapper around axios http.request
26
26
  */
27
27
  fetcher?: (url: string, config: RequestInit) => Promise<Response>;
28
+ /**
29
+ * Optional instance ID for multi-instance support. Defaults to 0.
30
+ */
31
+ instanceId?: number;
28
32
  }
29
33
  /**
30
34
  * Updates the user profile information at the specified SCIM2 Me endpoint.
@@ -51,5 +55,5 @@ export interface UpdateMeProfileConfig extends Omit<BaseUpdateMeProfileConfig, '
51
55
  * });
52
56
  * ```
53
57
  */
54
- declare const updateMeProfile: ({ fetcher, ...requestConfig }: UpdateMeProfileConfig) => Promise<User>;
58
+ declare const updateMeProfile: ({ fetcher, instanceId, ...requestConfig }: UpdateMeProfileConfig) => Promise<User>;
55
59
  export default updateMeProfile;
@@ -25,6 +25,10 @@ export interface UpdateOrganizationConfig extends Omit<BaseUpdateOrganizationCon
25
25
  * which is a wrapper around axios http.request
26
26
  */
27
27
  fetcher?: (url: string, config: RequestInit) => Promise<Response>;
28
+ /**
29
+ * Optional instance ID for multi-instance support. Defaults to 0.
30
+ */
31
+ instanceId?: number;
28
32
  }
29
33
  /**
30
34
  * Updates the organization information using the Organizations Management API.
@@ -71,6 +75,6 @@ export interface UpdateOrganizationConfig extends Omit<BaseUpdateOrganizationCon
71
75
  * });
72
76
  * ```
73
77
  */
74
- declare const updateOrganization: ({ fetcher, ...requestConfig }: UpdateOrganizationConfig) => Promise<OrganizationDetails>;
78
+ declare const updateOrganization: ({ fetcher, instanceId, ...requestConfig }: UpdateOrganizationConfig) => Promise<OrganizationDetails>;
75
79
  export { createPatchOperations };
76
80
  export default updateOrganization;