@livetiles/reach-plugin-types 0.4.0-preview.6 → 0.4.0-preview.60
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 +28 -45
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -38,12 +38,10 @@ declare module "libs/shared/util/common/src/JwtHelper" {
|
|
|
38
38
|
declare module "libs/shared/util/common/src/redirect" {
|
|
39
39
|
export function redirectWithReload(redirectUrl: string): void;
|
|
40
40
|
}
|
|
41
|
-
declare module "libs/shared/util/environment/src/
|
|
42
|
-
export interface
|
|
43
|
-
|
|
41
|
+
declare module "libs/shared/util/environment/src/ZendeskConfig" {
|
|
42
|
+
export interface ZendeskConfig {
|
|
43
|
+
apiKey: string;
|
|
44
44
|
enable: boolean;
|
|
45
|
-
productId: string;
|
|
46
|
-
unauthenticatedProductId: string;
|
|
47
45
|
}
|
|
48
46
|
}
|
|
49
47
|
declare module "libs/shared/util/authentication/src/AuthenticationType" {
|
|
@@ -216,7 +214,7 @@ declare module "libs/shared/util/environment/src/MsalConfiguration" {
|
|
|
216
214
|
}
|
|
217
215
|
}
|
|
218
216
|
declare module "libs/shared/util/environment/src/AppConfiguration" {
|
|
219
|
-
import {
|
|
217
|
+
import { ZendeskConfig } from "libs/shared/util/environment/src/ZendeskConfig";
|
|
220
218
|
import { AuthenticationType } from "libs/shared/util/authentication/src/index";
|
|
221
219
|
import { KeycloakConfiguration } from "libs/shared/util/environment/src/KeycloakConfiguration";
|
|
222
220
|
import { MsalConfiguration } from "libs/shared/util/environment/src/MsalConfiguration";
|
|
@@ -260,7 +258,7 @@ declare module "libs/shared/util/environment/src/AppConfiguration" {
|
|
|
260
258
|
resource: string;
|
|
261
259
|
};
|
|
262
260
|
};
|
|
263
|
-
|
|
261
|
+
zendeskMessaging: ZendeskConfig;
|
|
264
262
|
singleSubscriptionMode: boolean;
|
|
265
263
|
oneSignal?: {
|
|
266
264
|
appId: string;
|
|
@@ -2807,6 +2805,10 @@ declare module "libs/reach/util/common/src/Variables" {
|
|
|
2807
2805
|
ready: string;
|
|
2808
2806
|
rejected: string;
|
|
2809
2807
|
};
|
|
2808
|
+
export const cardWidthS = 260;
|
|
2809
|
+
export const cardWidthM = 354;
|
|
2810
|
+
export const cardWidthL = 314;
|
|
2811
|
+
export const cardWidthXL = 423;
|
|
2810
2812
|
}
|
|
2811
2813
|
declare module "libs/reach/util/common/src/notification/NotificationContext" {
|
|
2812
2814
|
import { FC, ReactNode } from 'react';
|
|
@@ -2838,6 +2840,7 @@ declare module "libs/reach/util/common/src/notification/NotificationContext" {
|
|
|
2838
2840
|
}
|
|
2839
2841
|
declare module "libs/reach/util/common/src/notification/ToastNotificationHost" {
|
|
2840
2842
|
import { FC } from 'react';
|
|
2843
|
+
import 'react-toastify/dist/ReactToastify.min.css';
|
|
2841
2844
|
export const ToastNotificationHost: FC;
|
|
2842
2845
|
}
|
|
2843
2846
|
declare module "libs/reach/util/common/src/notification/index" {
|
|
@@ -3127,7 +3130,6 @@ declare module "libs/reach/ui/common/src/PeoplePicker" {
|
|
|
3127
3130
|
import { FC } from 'react';
|
|
3128
3131
|
import { SelectionMode } from 'office-ui-fabric-react';
|
|
3129
3132
|
import { Account, AccountType } from "libs/reach/util/common/src/index";
|
|
3130
|
-
import './PeoplePicker.scss';
|
|
3131
3133
|
interface Props {
|
|
3132
3134
|
defaultSelectedItems?: Account[];
|
|
3133
3135
|
localOnly?: boolean;
|
|
@@ -3182,8 +3184,6 @@ declare module "libs/reach/ui/common/src/content-keyword-utils" {
|
|
|
3182
3184
|
}
|
|
3183
3185
|
declare module "libs/reach/ui/common/src/NotificationBar" {
|
|
3184
3186
|
import { FC } from 'react';
|
|
3185
|
-
import './Notification.scss';
|
|
3186
|
-
import 'react-toastify/dist/ReactToastify.min.css';
|
|
3187
3187
|
export const NotificationBar: FC;
|
|
3188
3188
|
}
|
|
3189
3189
|
declare module "libs/reach/ui/common/src/common/AttachedMediaDownloadLink" {
|
|
@@ -3430,6 +3430,7 @@ declare module "libs/reach/ui/common/src/common/useFileAccessTokenApi" {
|
|
|
3430
3430
|
export function useFileAccessTokenApi(): {
|
|
3431
3431
|
exchangeShortLivedToken: (fileAccessToken: string) => Promise<string>;
|
|
3432
3432
|
getPublishableItemShortLivedToken: (basePath: string, itemId: string) => Promise<string>;
|
|
3433
|
+
createDownloadClickHandler: (target: string, getUrl: () => Promise<string>) => () => Promise<void>;
|
|
3433
3434
|
};
|
|
3434
3435
|
}
|
|
3435
3436
|
declare module "libs/reach/ui/common/src/common/FileAttachmentList" {
|
|
@@ -3497,7 +3498,6 @@ declare module "libs/reach/ui/common/src/common/GroupedByDateTitles" {
|
|
|
3497
3498
|
}
|
|
3498
3499
|
declare module "libs/reach/ui/common/src/common/IconHeaderButton" {
|
|
3499
3500
|
import { FC } from 'react';
|
|
3500
|
-
import './IconHeaderButton.scss';
|
|
3501
3501
|
export const IconHeaderButton: FC<{
|
|
3502
3502
|
icon: string;
|
|
3503
3503
|
isActive?: boolean;
|
|
@@ -3626,7 +3626,8 @@ declare module "libs/reach/ui/common/src/common/toolbar/ToolbarIconButtonWithToo
|
|
|
3626
3626
|
import { FC } from 'react';
|
|
3627
3627
|
export interface ToolbarIconButtonProps {
|
|
3628
3628
|
iconName: string;
|
|
3629
|
-
|
|
3629
|
+
ariaLabel?: string;
|
|
3630
|
+
ariaLabelResourceKey?: string;
|
|
3630
3631
|
onClick?: () => unknown;
|
|
3631
3632
|
to?: string;
|
|
3632
3633
|
target?: string;
|
|
@@ -5204,6 +5205,7 @@ declare module "libs/shared/util/authentication-services/src/msal/WebMsalService
|
|
|
5204
5205
|
getCurrentEmailInternal(): Promise<string>;
|
|
5205
5206
|
private tryGetMsalV1Token;
|
|
5206
5207
|
private removeMsalV1IdToken;
|
|
5208
|
+
private tryGetGuestTenantId;
|
|
5207
5209
|
private handleAuthClientCallback;
|
|
5208
5210
|
private handleAuthClientErrorCallback;
|
|
5209
5211
|
private ensureAuthority;
|
|
@@ -6401,6 +6403,7 @@ declare module "libs/reach/feature/content/src/filter/NewsFilterDefinition" {
|
|
|
6401
6403
|
export interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFilterDefinition, ChannelsFilterDefinition, StateFilterDefinition {
|
|
6402
6404
|
groupId?: string;
|
|
6403
6405
|
bookmarksOnly?: boolean;
|
|
6406
|
+
unreadOnly?: boolean;
|
|
6404
6407
|
}
|
|
6405
6408
|
}
|
|
6406
6409
|
declare module "libs/reach/feature/content/src/news/fetchNewsItems" {
|
|
@@ -6698,6 +6701,7 @@ declare module "libs/reach/feature/content/src/news/NewsService" {
|
|
|
6698
6701
|
import { LanguageBase } from "libs/reach/util/common/src/index";
|
|
6699
6702
|
import { ContentDefinition, PublishableItem, PublishableItemContent } from "libs/reach/util/common/src/index";
|
|
6700
6703
|
export class NewsService {
|
|
6704
|
+
static getNewsRouteWithRedirect(baseRoute: string, newsId: string, newsTitle: string, isExternalContent?: boolean): string;
|
|
6701
6705
|
static getNewsRoute(baseRoute: string, newsId: string, newsTitle: string, isExternalContent?: boolean): string;
|
|
6702
6706
|
static getItemContentLanguages(item: PublishableItem, languages: LanguageBase[]): string[];
|
|
6703
6707
|
static getContentLanguages(contents: {
|
|
@@ -7436,7 +7440,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/NewsItemTile" {
|
|
|
7436
7440
|
dateLabelResourceKey?: string;
|
|
7437
7441
|
buttons?: ReactNode;
|
|
7438
7442
|
openTargetInNewWindow?: boolean;
|
|
7439
|
-
onClick?: (event: React.MouseEvent<unknown
|
|
7443
|
+
onClick?: (event: React.MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
|
|
7440
7444
|
styleDefinition?: StyleDefinition;
|
|
7441
7445
|
readOnly?: boolean;
|
|
7442
7446
|
className?: string;
|
|
@@ -8657,7 +8661,6 @@ declare module "libs/reach/feature/content/src/common/cards/CardBanner" {
|
|
|
8657
8661
|
}
|
|
8658
8662
|
declare module "libs/reach/feature/content/src/common/cards/Card" {
|
|
8659
8663
|
import { FC, ReactNode } from 'react';
|
|
8660
|
-
import './Card.scss';
|
|
8661
8664
|
import { PublishableItem } from "libs/reach/util/common/src/index";
|
|
8662
8665
|
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
8663
8666
|
import { CurrentUser } from "libs/reach/util/common/src/index";
|
|
@@ -8790,7 +8793,6 @@ declare module "libs/reach/feature/content/src/common/detail/pages/controls/Page
|
|
|
8790
8793
|
}
|
|
8791
8794
|
declare module "libs/reach/feature/content/src/common/language-selector/LanguageSelector" {
|
|
8792
8795
|
import { FC } from 'react';
|
|
8793
|
-
import './LanguageSelector.scss';
|
|
8794
8796
|
interface LanguageSelectorProps {
|
|
8795
8797
|
languages: string[];
|
|
8796
8798
|
selectedLanguage: string;
|
|
@@ -9146,7 +9148,6 @@ declare module "libs/reach/feature/content/src/forms/keyword-picker/KeywordPicke
|
|
|
9146
9148
|
declare module "libs/reach/feature/content/src/forms/keyword-picker/KeywordPicker" {
|
|
9147
9149
|
import { FC } from 'react';
|
|
9148
9150
|
import { Keyword } from "libs/reach/util/common/src/index";
|
|
9149
|
-
import './KeywordPicker.scss';
|
|
9150
9151
|
interface Props {
|
|
9151
9152
|
value?: Keyword[] | string[];
|
|
9152
9153
|
onChange: (keywords: Keyword[]) => void;
|
|
@@ -9180,7 +9181,6 @@ declare module "libs/reach/feature/content/src/forms/KeywordDialog" {
|
|
|
9180
9181
|
}
|
|
9181
9182
|
declare module "libs/reach/feature/content/src/forms/Textarea" {
|
|
9182
9183
|
import { FC, MutableRefObject } from 'react';
|
|
9183
|
-
import './Textarea.scss';
|
|
9184
9184
|
export interface TextareaProps {
|
|
9185
9185
|
rows?: number;
|
|
9186
9186
|
placeholder?: string;
|
|
@@ -9208,7 +9208,6 @@ declare module "libs/reach/feature/content/src/forms/Textarea" {
|
|
|
9208
9208
|
}
|
|
9209
9209
|
declare module "libs/reach/feature/content/src/forms/DateTimePicker" {
|
|
9210
9210
|
import { FC } from 'react';
|
|
9211
|
-
import './DateTimePicker.scss';
|
|
9212
9211
|
interface DateTimePickerProps {
|
|
9213
9212
|
date: string;
|
|
9214
9213
|
maxDate?: string;
|
|
@@ -9270,7 +9269,6 @@ declare module "libs/reach/feature/content/src/forms/DateRange" {
|
|
|
9270
9269
|
declare module "libs/reach/feature/content/src/forms/DateRangeSlider" {
|
|
9271
9270
|
import { FC } from 'react';
|
|
9272
9271
|
import { DateRange } from "libs/reach/feature/content/src/forms/DateRange";
|
|
9273
|
-
import './DateRangeSlider.scss';
|
|
9274
9272
|
export const DateRangeSlider: FC<{
|
|
9275
9273
|
value?: DateRange;
|
|
9276
9274
|
onChange: (range: DateRange) => unknown;
|
|
@@ -9523,6 +9521,7 @@ declare module "libs/reach/feature/content/src/posts/PostReplies" {
|
|
|
9523
9521
|
interface Props {
|
|
9524
9522
|
className?: string;
|
|
9525
9523
|
post: Post;
|
|
9524
|
+
initialPageSize?: number;
|
|
9526
9525
|
comments?: PaginatedList<Comment>;
|
|
9527
9526
|
autoFocusReplyField?: boolean;
|
|
9528
9527
|
onReplyAdded: () => void;
|
|
@@ -9573,6 +9572,7 @@ declare module "libs/reach/feature/content/src/posts/PostDisplay" {
|
|
|
9573
9572
|
threadId?: string;
|
|
9574
9573
|
onCustomPostDelete?: () => void;
|
|
9575
9574
|
comments?: PaginatedList<Comment>;
|
|
9575
|
+
initialCommentsPageSize?: number;
|
|
9576
9576
|
onEditActiveChange?: (isEditMode: boolean) => void;
|
|
9577
9577
|
onShowCommentsChange?: (showComments: boolean) => void;
|
|
9578
9578
|
onThreadCommentDelete?: () => void;
|
|
@@ -9635,10 +9635,10 @@ declare module "libs/reach/feature/content/src/posts/PostWithSelfThreadHandling"
|
|
|
9635
9635
|
declare module "libs/reach/feature/content/src/stream/stream-utils" {
|
|
9636
9636
|
export const MARK_ITEMS_AS_READ_MUTATION: import("@apollo/client").DocumentNode;
|
|
9637
9637
|
}
|
|
9638
|
-
declare module "libs/reach/feature/content/src/posts/
|
|
9638
|
+
declare module "libs/reach/feature/content/src/posts/useMarkPostsAndCommentsAsRead" {
|
|
9639
9639
|
import { Post } from "libs/reach/feature/content/src/posts/utils";
|
|
9640
9640
|
import { DependencyList } from 'react';
|
|
9641
|
-
export function
|
|
9641
|
+
export function useMarkPostsAndCommentsAsRead(area: 'CACHE_ONLY' | 'CACHE_AND_SERVER', posts: Post[], deps?: DependencyList): void;
|
|
9642
9642
|
}
|
|
9643
9643
|
declare module "libs/reach/feature/content/src/posts/usePostKeywordSettings" {
|
|
9644
9644
|
import { UserGroup } from "libs/reach/util/common/src/index";
|
|
@@ -9656,7 +9656,7 @@ declare module "libs/reach/feature/content/src/posts/index" {
|
|
|
9656
9656
|
export * from "libs/reach/feature/content/src/posts/PostListItem";
|
|
9657
9657
|
export * from "libs/reach/feature/content/src/posts/PostWithSelfThreadHandling";
|
|
9658
9658
|
export * from "libs/reach/feature/content/src/posts/useAttachmentUploader";
|
|
9659
|
-
export * from "libs/reach/feature/content/src/posts/
|
|
9659
|
+
export * from "libs/reach/feature/content/src/posts/useMarkPostsAndCommentsAsRead";
|
|
9660
9660
|
export * from "libs/reach/feature/content/src/posts/usePostKeywordSettings";
|
|
9661
9661
|
export * from "libs/reach/feature/content/src/posts/usePostsApi";
|
|
9662
9662
|
export * from "libs/reach/feature/content/src/posts/utils";
|
|
@@ -9845,18 +9845,6 @@ declare module "apps/reach-app/src/app/admin/users/self-registration/SelfRegistr
|
|
|
9845
9845
|
import { FC } from 'react';
|
|
9846
9846
|
export const SelfRegistrationSettingsPage: FC;
|
|
9847
9847
|
}
|
|
9848
|
-
declare module "apps/reach-app/src/app/Intercom/Intercom" {
|
|
9849
|
-
export interface Intercom {
|
|
9850
|
-
(action: string, settings?: IntercomSettings): void;
|
|
9851
|
-
}
|
|
9852
|
-
export interface IntercomSettings {
|
|
9853
|
-
app_id: string;
|
|
9854
|
-
product_id: string;
|
|
9855
|
-
name?: string;
|
|
9856
|
-
email?: string;
|
|
9857
|
-
}
|
|
9858
|
-
export function create(settings: IntercomSettings): Intercom;
|
|
9859
|
-
}
|
|
9860
9848
|
declare module "apps/reach-app/src/app/AppLoader" {
|
|
9861
9849
|
import { FC } from 'react';
|
|
9862
9850
|
export const AppLoader: FC;
|
|
@@ -9902,21 +9890,16 @@ declare module "apps/reach-app/src/app/teams/TeamsContext" {
|
|
|
9902
9890
|
}>;
|
|
9903
9891
|
export const TeamsContextProvider: FC;
|
|
9904
9892
|
}
|
|
9905
|
-
declare module "apps/reach-app/src/app/
|
|
9906
|
-
export enum
|
|
9907
|
-
Authenticated = 0,
|
|
9908
|
-
UnAuthenticated = 1
|
|
9909
|
-
}
|
|
9910
|
-
export enum IntercomInitialState {
|
|
9893
|
+
declare module "apps/reach-app/src/app/Zendesk/useZendesk" {
|
|
9894
|
+
export enum ZendeskInitialState {
|
|
9911
9895
|
Minimized = 0,
|
|
9912
9896
|
MobileHidden = 1
|
|
9913
9897
|
}
|
|
9914
|
-
export function
|
|
9915
|
-
export
|
|
9916
|
-
|
|
9898
|
+
export function shutdownZendesk(): void;
|
|
9899
|
+
export function useZendesk(initialState?: ZendeskInitialState): {
|
|
9900
|
+
showZendeskChat: () => void;
|
|
9917
9901
|
toggleIcon: (show: boolean) => void;
|
|
9918
|
-
}
|
|
9919
|
-
export function useIntercom(area: IntercomArea, initialState?: IntercomInitialState): IntercomProps;
|
|
9902
|
+
};
|
|
9920
9903
|
}
|
|
9921
9904
|
declare module "apps/reach-app/src/app/admin/terms-and-conditions/TermsAndConditionsPage" {
|
|
9922
9905
|
import { FC } from 'react';
|