@asgardeo/react 0.5.4 → 0.5.5
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/AsgardeoReactClient.d.ts +4 -3
- package/dist/api/getAllOrganizations.d.ts +2 -2
- package/dist/cjs/index.js +2505 -2236
- package/dist/cjs/index.js.map +4 -4
- package/dist/components/presentation/OrganizationList/BaseOrganizationList.d.ts +18 -7
- package/dist/components/presentation/OrganizationList/OrganizationList.d.ts +2 -3
- package/dist/components/primitives/Logo/Logo.d.ts +55 -0
- package/dist/contexts/Branding/BrandingContext.d.ts +51 -0
- package/dist/contexts/Branding/BrandingProvider.d.ts +88 -0
- package/dist/contexts/Branding/useBrandingContext.d.ts +44 -0
- package/dist/contexts/Organization/OrganizationContext.d.ts +4 -42
- package/dist/contexts/Organization/OrganizationProvider.d.ts +10 -11
- package/dist/contexts/Organization/useOrganization.d.ts +2 -2
- package/dist/contexts/Theme/ThemeContext.d.ts +12 -0
- package/dist/contexts/Theme/ThemeProvider.d.ts +54 -2
- package/dist/contexts/Theme/types.d.ts +55 -0
- package/dist/hooks/useBranding.d.ts +127 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +2140 -1869
- package/dist/index.js.map +4 -4
- package/package.json +2 -2
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
import { AsgardeoBrowserClient, UserProfile, SignInOptions, SignOutOptions, User, EmbeddedFlowExecuteResponse, SignUpOptions, EmbeddedFlowExecuteRequestPayload, EmbeddedSignInFlowHandleRequestPayload, Organization, IdToken, EmbeddedFlowExecuteRequestConfig } from '@asgardeo/browser';
|
|
18
|
+
import { AsgardeoBrowserClient, UserProfile, SignInOptions, SignOutOptions, User, EmbeddedFlowExecuteResponse, SignUpOptions, EmbeddedFlowExecuteRequestPayload, EmbeddedSignInFlowHandleRequestPayload, Organization, IdToken, EmbeddedFlowExecuteRequestConfig, AllOrganizationsApiResponse, TokenResponse } from '@asgardeo/browser';
|
|
19
19
|
import { AsgardeoReactConfig } from './models/config';
|
|
20
20
|
/**
|
|
21
21
|
* Client for mplementing Asgardeo in React applications.
|
|
@@ -31,9 +31,10 @@ declare class AsgardeoReactClient<T extends AsgardeoReactConfig = AsgardeoReactC
|
|
|
31
31
|
getUser(options?: any): Promise<User>;
|
|
32
32
|
getDecodedIdToken(sessionId?: string): Promise<IdToken>;
|
|
33
33
|
getUserProfile(options?: any): Promise<UserProfile>;
|
|
34
|
-
|
|
34
|
+
getMyOrganizations(options?: any, sessionId?: string): Promise<Organization[]>;
|
|
35
|
+
getAllOrganizations(options?: any, sessionId?: string): Promise<AllOrganizationsApiResponse>;
|
|
35
36
|
getCurrentOrganization(): Promise<Organization | null>;
|
|
36
|
-
switchOrganization(organization: Organization): Promise<
|
|
37
|
+
switchOrganization(organization: Organization, sessionId?: string): Promise<TokenResponse | Response>;
|
|
37
38
|
isLoading(): boolean;
|
|
38
39
|
isInitialized(): Promise<boolean>;
|
|
39
40
|
isSignedIn(): Promise<boolean>;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
import { GetAllOrganizationsConfig as BaseGetAllOrganizationsConfig,
|
|
18
|
+
import { GetAllOrganizationsConfig as BaseGetAllOrganizationsConfig, AllOrganizationsApiResponse } from '@asgardeo/browser';
|
|
19
19
|
/**
|
|
20
20
|
* Configuration for the getAllOrganizations request (React-specific)
|
|
21
21
|
*/
|
|
@@ -69,5 +69,5 @@ export interface GetAllOrganizationsConfig extends Omit<BaseGetAllOrganizationsC
|
|
|
69
69
|
* }
|
|
70
70
|
* ```
|
|
71
71
|
*/
|
|
72
|
-
declare const getAllOrganizations: ({ fetcher, ...requestConfig }: GetAllOrganizationsConfig) => Promise<
|
|
72
|
+
declare const getAllOrganizations: ({ fetcher, ...requestConfig }: GetAllOrganizationsConfig) => Promise<AllOrganizationsApiResponse>;
|
|
73
73
|
export default getAllOrganizations;
|