@asgardeo/react 0.11.3 → 0.13.0
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/api/createOrganization.d.ts +5 -1
- package/dist/api/getAllOrganizations.d.ts +5 -1
- package/dist/api/getMeOrganizations.d.ts +5 -1
- package/dist/api/getOrganization.d.ts +5 -1
- package/dist/api/getSchemas.d.ts +5 -1
- package/dist/api/getScim2Me.d.ts +5 -1
- package/dist/api/updateMeProfile.d.ts +5 -1
- package/dist/api/updateOrganization.d.ts +5 -1
- package/dist/cjs/index.js +2257 -1742
- package/dist/cjs/index.js.map +4 -4
- package/dist/components/actions/SignInButton/BaseSignInButton.d.ts +5 -1
- package/dist/components/actions/SignOutButton/BaseSignOutButton.d.ts +5 -1
- package/dist/components/actions/SignUpButton/BaseSignUpButton.d.ts +5 -1
- package/dist/components/auth/Callback/Callback.d.ts +51 -0
- package/dist/components/presentation/UserDropdown/UserDropdown.d.ts +3 -0
- package/dist/components/presentation/auth/AcceptInvite/v2/BaseAcceptInvite.d.ts +6 -0
- package/dist/components/presentation/auth/InviteUser/v2/BaseInviteUser.d.ts +5 -0
- package/dist/components/presentation/auth/SignIn/v2/BaseSignIn.d.ts +5 -1
- package/dist/components/presentation/auth/SignIn/v2/SignIn.d.ts +5 -1
- package/dist/contexts/Asgardeo/AsgardeoContext.d.ts +10 -1
- package/dist/contexts/FlowMeta/FlowMetaContext.d.ts +39 -0
- package/dist/contexts/FlowMeta/FlowMetaProvider.d.ts +50 -0
- package/dist/contexts/FlowMeta/useFlowMeta.d.ts +20 -0
- package/dist/contexts/Theme/ThemeProvider.d.ts +36 -39
- package/dist/contexts/Theme/v1/ThemeProvider.d.ts +88 -0
- package/dist/contexts/Theme/v2/ThemeProvider.d.ts +57 -0
- package/dist/hooks/useBrowserUrl.d.ts +8 -0
- package/dist/hooks/v2/useOAuthCallback.d.ts +82 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1666 -1149
- package/dist/index.js.map +4 -4
- package/dist/utils/applyThemeToDOM.d.ts +24 -0
- package/dist/utils/normalizeThemeConfig.d.ts +30 -0
- package/dist/utils/oauth.d.ts +24 -0
- package/dist/utils/v2/buildThemeConfigFromFlowMeta.d.ts +33 -0
- package/package.json +4 -4
|
@@ -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;
|
package/dist/api/getSchemas.d.ts
CHANGED
|
@@ -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;
|
package/dist/api/getScim2Me.d.ts
CHANGED
|
@@ -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;
|