@livetiles/reach-plugin-types 0.4.0-preview.806 → 0.4.0-preview.809
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/lib/index.d.ts +6 -4
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -129,6 +129,7 @@ declare module "libs/shared/util/authentication/src/AuthenticationContext" {
|
|
|
129
129
|
export const AuthenticationContext: import("react").Context<{
|
|
130
130
|
getIsAuthenticated: () => Promise<boolean>;
|
|
131
131
|
onRequestToken: () => Promise<string>;
|
|
132
|
+
onRequestTokenWithCustomScopes?: (scopes: string[]) => Promise<string>;
|
|
132
133
|
onHandleError?: (error: any, config: any) => Promise<void>;
|
|
133
134
|
getCurrentEmail: () => Promise<string>;
|
|
134
135
|
setToken: (token: string) => void;
|
|
@@ -136,6 +137,7 @@ declare module "libs/shared/util/authentication/src/AuthenticationContext" {
|
|
|
136
137
|
export function useAuthenticationContext(): {
|
|
137
138
|
getIsAuthenticated: () => Promise<boolean>;
|
|
138
139
|
onRequestToken: () => Promise<string>;
|
|
140
|
+
onRequestTokenWithCustomScopes?: (scopes: string[]) => Promise<string>;
|
|
139
141
|
onHandleError?: (error: any, config: any) => Promise<void>;
|
|
140
142
|
getCurrentEmail: () => Promise<string>;
|
|
141
143
|
setToken: (token: string) => void;
|
|
@@ -5558,7 +5560,7 @@ declare module "libs/shared/util/authentication-services/src/BaseAuthService" {
|
|
|
5558
5560
|
getCurrentEmail(): Promise<string | null>;
|
|
5559
5561
|
protected abstract loginInternal(LoginConfiguration: LoginArguments): Promise<boolean>;
|
|
5560
5562
|
protected abstract logoutInternal(postLogoutRedirectUri?: string): Promise<void>;
|
|
5561
|
-
abstract acquireToken(): Promise<string>;
|
|
5563
|
+
abstract acquireToken(scopes?: string[]): Promise<string>;
|
|
5562
5564
|
abstract clearCache(): Promise<void>;
|
|
5563
5565
|
abstract handleCallbackInternal(redirectUrl: string): Promise<boolean>;
|
|
5564
5566
|
abstract isLoginInProgress(): Promise<boolean>;
|
|
@@ -5669,7 +5671,7 @@ declare module "libs/shared/util/authentication-services/src/msal/WebMsalService
|
|
|
5669
5671
|
clearCache(): Promise<void>;
|
|
5670
5672
|
isAuthenticated(): Promise<boolean>;
|
|
5671
5673
|
isLoginInProgress(): Promise<boolean>;
|
|
5672
|
-
acquireToken(): Promise<string>;
|
|
5674
|
+
acquireToken(scopes?: string[]): Promise<string>;
|
|
5673
5675
|
private acquireTokenInternal;
|
|
5674
5676
|
private acquireTokenSilent;
|
|
5675
5677
|
private requiresInteraction;
|
|
@@ -5724,7 +5726,7 @@ declare module "libs/shared/util/authentication-services/src/msal/MobileMsalServ
|
|
|
5724
5726
|
protected logoutInternal(postLogoutRedirectUri?: string): Promise<void>;
|
|
5725
5727
|
isAuthenticated(): Promise<boolean>;
|
|
5726
5728
|
isLoginInProgress(): Promise<boolean>;
|
|
5727
|
-
acquireToken(): Promise<string>;
|
|
5729
|
+
acquireToken(scopes?: string[]): Promise<string>;
|
|
5728
5730
|
private acquireTokenInternal;
|
|
5729
5731
|
clearCache(): Promise<void>;
|
|
5730
5732
|
getCurrentEmailInternal(): Promise<string>;
|
|
@@ -12004,7 +12006,7 @@ declare module "libs/reach/feature/content/src/stream/usePostsStreamDataLoader"
|
|
|
12004
12006
|
import { PostStreamItem } from "libs/reach/feature/content/src/stream/streamUtils";
|
|
12005
12007
|
import { ItemLoader } from "libs/reach/ui/common/src/index";
|
|
12006
12008
|
import { PostStreamFilterDefinition } from "libs/reach/feature/content/src/stream/PostStreamFilterDefinition";
|
|
12007
|
-
export function usePostsStreamDataLoader(groupId?: string, filter?: PostStreamFilterDefinition): ItemLoader<PostStreamItem, number>;
|
|
12009
|
+
export function usePostsStreamDataLoader(groupId?: string, filter?: PostStreamFilterDefinition, searchText?: string): ItemLoader<PostStreamItem, number>;
|
|
12008
12010
|
export const POSTS_QUERY: (whereConditions?: string) => import("@apollo/client").DocumentNode;
|
|
12009
12011
|
}
|
|
12010
12012
|
declare module "libs/reach/feature/content/src/stream/useMarkStreamItemsAsRead" {
|