@livetiles/reach-plugin-types 0.4.0-preview.7 → 0.4.0-preview.70
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 +50 -62
- 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;
|
|
@@ -1070,6 +1068,8 @@ declare module "libs/reach/util/common/src/user/Audience" {
|
|
|
1070
1068
|
[key: string]: string;
|
|
1071
1069
|
};
|
|
1072
1070
|
mode: AudienceMatchMode;
|
|
1071
|
+
includeDirectoryUsers?: boolean;
|
|
1072
|
+
includeNonDirectoryUsers?: boolean;
|
|
1073
1073
|
}
|
|
1074
1074
|
}
|
|
1075
1075
|
declare module "libs/reach/util/common/src/content/Language" {
|
|
@@ -2807,6 +2807,10 @@ declare module "libs/reach/util/common/src/Variables" {
|
|
|
2807
2807
|
ready: string;
|
|
2808
2808
|
rejected: string;
|
|
2809
2809
|
};
|
|
2810
|
+
export const cardWidthS = 260;
|
|
2811
|
+
export const cardWidthM = 354;
|
|
2812
|
+
export const cardWidthL = 314;
|
|
2813
|
+
export const cardWidthXL = 423;
|
|
2810
2814
|
}
|
|
2811
2815
|
declare module "libs/reach/util/common/src/notification/NotificationContext" {
|
|
2812
2816
|
import { FC, ReactNode } from 'react';
|
|
@@ -2838,6 +2842,7 @@ declare module "libs/reach/util/common/src/notification/NotificationContext" {
|
|
|
2838
2842
|
}
|
|
2839
2843
|
declare module "libs/reach/util/common/src/notification/ToastNotificationHost" {
|
|
2840
2844
|
import { FC } from 'react';
|
|
2845
|
+
import 'react-toastify/dist/ReactToastify.min.css';
|
|
2841
2846
|
export const ToastNotificationHost: FC;
|
|
2842
2847
|
}
|
|
2843
2848
|
declare module "libs/reach/util/common/src/notification/index" {
|
|
@@ -3181,8 +3186,6 @@ declare module "libs/reach/ui/common/src/content-keyword-utils" {
|
|
|
3181
3186
|
}
|
|
3182
3187
|
declare module "libs/reach/ui/common/src/NotificationBar" {
|
|
3183
3188
|
import { FC } from 'react';
|
|
3184
|
-
import './Notification.scss';
|
|
3185
|
-
import 'react-toastify/dist/ReactToastify.min.css';
|
|
3186
3189
|
export const NotificationBar: FC;
|
|
3187
3190
|
}
|
|
3188
3191
|
declare module "libs/reach/ui/common/src/common/AttachedMediaDownloadLink" {
|
|
@@ -3429,6 +3432,7 @@ declare module "libs/reach/ui/common/src/common/useFileAccessTokenApi" {
|
|
|
3429
3432
|
export function useFileAccessTokenApi(): {
|
|
3430
3433
|
exchangeShortLivedToken: (fileAccessToken: string) => Promise<string>;
|
|
3431
3434
|
getPublishableItemShortLivedToken: (basePath: string, itemId: string) => Promise<string>;
|
|
3435
|
+
createDownloadClickHandler: (target: string, getUrl: () => Promise<string>) => () => Promise<void>;
|
|
3432
3436
|
};
|
|
3433
3437
|
}
|
|
3434
3438
|
declare module "libs/reach/ui/common/src/common/FileAttachmentList" {
|
|
@@ -3496,7 +3500,6 @@ declare module "libs/reach/ui/common/src/common/GroupedByDateTitles" {
|
|
|
3496
3500
|
}
|
|
3497
3501
|
declare module "libs/reach/ui/common/src/common/IconHeaderButton" {
|
|
3498
3502
|
import { FC } from 'react';
|
|
3499
|
-
import './IconHeaderButton.scss';
|
|
3500
3503
|
export const IconHeaderButton: FC<{
|
|
3501
3504
|
icon: string;
|
|
3502
3505
|
isActive?: boolean;
|
|
@@ -3625,7 +3628,8 @@ declare module "libs/reach/ui/common/src/common/toolbar/ToolbarIconButtonWithToo
|
|
|
3625
3628
|
import { FC } from 'react';
|
|
3626
3629
|
export interface ToolbarIconButtonProps {
|
|
3627
3630
|
iconName: string;
|
|
3628
|
-
|
|
3631
|
+
ariaLabel?: string;
|
|
3632
|
+
ariaLabelResourceKey?: string;
|
|
3629
3633
|
onClick?: () => unknown;
|
|
3630
3634
|
to?: string;
|
|
3631
3635
|
target?: string;
|
|
@@ -5203,6 +5207,7 @@ declare module "libs/shared/util/authentication-services/src/msal/WebMsalService
|
|
|
5203
5207
|
getCurrentEmailInternal(): Promise<string>;
|
|
5204
5208
|
private tryGetMsalV1Token;
|
|
5205
5209
|
private removeMsalV1IdToken;
|
|
5210
|
+
private tryGetGuestTenantId;
|
|
5206
5211
|
private handleAuthClientCallback;
|
|
5207
5212
|
private handleAuthClientErrorCallback;
|
|
5208
5213
|
private ensureAuthority;
|
|
@@ -5488,6 +5493,26 @@ declare module "apps/reach-app/src/app/common/GoToAdminConsentButton" {
|
|
|
5488
5493
|
}
|
|
5489
5494
|
export const GoToAdminConsentButton: React.FC<Props>;
|
|
5490
5495
|
}
|
|
5496
|
+
declare module "apps/reach-app/src/app/admin/groups/accountUtils" {
|
|
5497
|
+
import { IntlShape } from 'react-intl';
|
|
5498
|
+
import { Account } from "libs/reach/util/common/src/index";
|
|
5499
|
+
import { GroupUser } from "libs/reach/util/common/src/index";
|
|
5500
|
+
import { Group, GroupRule } from "libs/reach/util/common/src/index";
|
|
5501
|
+
export const systemAccountGroupIds: {
|
|
5502
|
+
everyone: string;
|
|
5503
|
+
directoryUsers: string;
|
|
5504
|
+
nonDirectoryUsers: string;
|
|
5505
|
+
allGroups: string[];
|
|
5506
|
+
};
|
|
5507
|
+
export function getDirectoryUsersGroup(intl: IntlShape): Account;
|
|
5508
|
+
export function getNonDirectoryUsersGroup(intl: IntlShape): Account;
|
|
5509
|
+
export const getSystemAccountGroups: (useEveryoneGroup: boolean, intl: IntlShape) => Account[];
|
|
5510
|
+
export function extractSystemGroups(group: Group, useEveryoneGroup: boolean, intl: IntlShape): Generator<GroupUser, void, unknown>;
|
|
5511
|
+
export function createRuleFromAddedAccounts(currentRule: GroupRule, users: Account[]): Partial<GroupRule> | null;
|
|
5512
|
+
export function createRuleFromRemovedAccount(currentRule: GroupRule, account: GroupUser): Partial<GroupRule> | null;
|
|
5513
|
+
export const isAdGroup: (account: Account) => boolean;
|
|
5514
|
+
export const isUser: (account: Account) => boolean;
|
|
5515
|
+
}
|
|
5491
5516
|
declare module "apps/reach-app/src/app/admin/audience/AudienceSettingsDialog" {
|
|
5492
5517
|
import { FC } from 'react';
|
|
5493
5518
|
import { Audience } from "libs/reach/util/common/src/index";
|
|
@@ -5999,24 +6024,6 @@ declare module "apps/reach-app/src/app/admin/groups/GroupListPage" {
|
|
|
5999
6024
|
import { FC } from 'react';
|
|
6000
6025
|
export const GroupListPage: FC;
|
|
6001
6026
|
}
|
|
6002
|
-
declare module "apps/reach-app/src/app/admin/groups/accountUtils" {
|
|
6003
|
-
import { IntlShape } from 'react-intl';
|
|
6004
|
-
import { Account } from "libs/reach/util/common/src/index";
|
|
6005
|
-
import { GroupUser } from "libs/reach/util/common/src/index";
|
|
6006
|
-
import { Group, GroupRule } from "libs/reach/util/common/src/index";
|
|
6007
|
-
export const systemAccountGroupIds: {
|
|
6008
|
-
everyone: string;
|
|
6009
|
-
directoryUsers: string;
|
|
6010
|
-
nonDirectoryUsers: string;
|
|
6011
|
-
allGroups: string[];
|
|
6012
|
-
};
|
|
6013
|
-
export const getSystemAccountGroups: (useEveryoneGroup: boolean, intl: IntlShape) => Account[];
|
|
6014
|
-
export function extractSystemGroups(group: Group, useEveryoneGroup: boolean, intl: IntlShape): Generator<GroupUser, void, unknown>;
|
|
6015
|
-
export function createRuleFromAddedAccounts(currentRule: GroupRule, users: Account[]): Partial<GroupRule> | null;
|
|
6016
|
-
export function createRuleFromRemovedAccount(currentRule: GroupRule, account: GroupUser): Partial<GroupRule> | null;
|
|
6017
|
-
export const isAdGroup: (account: Account) => boolean;
|
|
6018
|
-
export const isUser: (account: Account) => boolean;
|
|
6019
|
-
}
|
|
6020
6027
|
declare module "apps/reach-app/src/app/admin/groups/UserRolePicker" {
|
|
6021
6028
|
import { FC } from 'react';
|
|
6022
6029
|
import { Account } from "libs/reach/util/common/src/index";
|
|
@@ -6400,6 +6407,7 @@ declare module "libs/reach/feature/content/src/filter/NewsFilterDefinition" {
|
|
|
6400
6407
|
export interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFilterDefinition, ChannelsFilterDefinition, StateFilterDefinition {
|
|
6401
6408
|
groupId?: string;
|
|
6402
6409
|
bookmarksOnly?: boolean;
|
|
6410
|
+
unreadOnly?: boolean;
|
|
6403
6411
|
}
|
|
6404
6412
|
}
|
|
6405
6413
|
declare module "libs/reach/feature/content/src/news/fetchNewsItems" {
|
|
@@ -6697,6 +6705,7 @@ declare module "libs/reach/feature/content/src/news/NewsService" {
|
|
|
6697
6705
|
import { LanguageBase } from "libs/reach/util/common/src/index";
|
|
6698
6706
|
import { ContentDefinition, PublishableItem, PublishableItemContent } from "libs/reach/util/common/src/index";
|
|
6699
6707
|
export class NewsService {
|
|
6708
|
+
static getNewsRouteWithRedirect(baseRoute: string, newsId: string, newsTitle: string, isExternalContent?: boolean): string;
|
|
6700
6709
|
static getNewsRoute(baseRoute: string, newsId: string, newsTitle: string, isExternalContent?: boolean): string;
|
|
6701
6710
|
static getItemContentLanguages(item: PublishableItem, languages: LanguageBase[]): string[];
|
|
6702
6711
|
static getContentLanguages(contents: {
|
|
@@ -7435,7 +7444,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/NewsItemTile" {
|
|
|
7435
7444
|
dateLabelResourceKey?: string;
|
|
7436
7445
|
buttons?: ReactNode;
|
|
7437
7446
|
openTargetInNewWindow?: boolean;
|
|
7438
|
-
onClick?: (event: React.MouseEvent<unknown
|
|
7447
|
+
onClick?: (event: React.MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
|
|
7439
7448
|
styleDefinition?: StyleDefinition;
|
|
7440
7449
|
readOnly?: boolean;
|
|
7441
7450
|
className?: string;
|
|
@@ -8656,7 +8665,6 @@ declare module "libs/reach/feature/content/src/common/cards/CardBanner" {
|
|
|
8656
8665
|
}
|
|
8657
8666
|
declare module "libs/reach/feature/content/src/common/cards/Card" {
|
|
8658
8667
|
import { FC, ReactNode } from 'react';
|
|
8659
|
-
import './Card.scss';
|
|
8660
8668
|
import { PublishableItem } from "libs/reach/util/common/src/index";
|
|
8661
8669
|
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
8662
8670
|
import { CurrentUser } from "libs/reach/util/common/src/index";
|
|
@@ -8789,7 +8797,6 @@ declare module "libs/reach/feature/content/src/common/detail/pages/controls/Page
|
|
|
8789
8797
|
}
|
|
8790
8798
|
declare module "libs/reach/feature/content/src/common/language-selector/LanguageSelector" {
|
|
8791
8799
|
import { FC } from 'react';
|
|
8792
|
-
import './LanguageSelector.scss';
|
|
8793
8800
|
interface LanguageSelectorProps {
|
|
8794
8801
|
languages: string[];
|
|
8795
8802
|
selectedLanguage: string;
|
|
@@ -9145,7 +9152,6 @@ declare module "libs/reach/feature/content/src/forms/keyword-picker/KeywordPicke
|
|
|
9145
9152
|
declare module "libs/reach/feature/content/src/forms/keyword-picker/KeywordPicker" {
|
|
9146
9153
|
import { FC } from 'react';
|
|
9147
9154
|
import { Keyword } from "libs/reach/util/common/src/index";
|
|
9148
|
-
import './KeywordPicker.scss';
|
|
9149
9155
|
interface Props {
|
|
9150
9156
|
value?: Keyword[] | string[];
|
|
9151
9157
|
onChange: (keywords: Keyword[]) => void;
|
|
@@ -9179,7 +9185,6 @@ declare module "libs/reach/feature/content/src/forms/KeywordDialog" {
|
|
|
9179
9185
|
}
|
|
9180
9186
|
declare module "libs/reach/feature/content/src/forms/Textarea" {
|
|
9181
9187
|
import { FC, MutableRefObject } from 'react';
|
|
9182
|
-
import './Textarea.scss';
|
|
9183
9188
|
export interface TextareaProps {
|
|
9184
9189
|
rows?: number;
|
|
9185
9190
|
placeholder?: string;
|
|
@@ -9207,7 +9212,6 @@ declare module "libs/reach/feature/content/src/forms/Textarea" {
|
|
|
9207
9212
|
}
|
|
9208
9213
|
declare module "libs/reach/feature/content/src/forms/DateTimePicker" {
|
|
9209
9214
|
import { FC } from 'react';
|
|
9210
|
-
import './DateTimePicker.scss';
|
|
9211
9215
|
interface DateTimePickerProps {
|
|
9212
9216
|
date: string;
|
|
9213
9217
|
maxDate?: string;
|
|
@@ -9269,7 +9273,6 @@ declare module "libs/reach/feature/content/src/forms/DateRange" {
|
|
|
9269
9273
|
declare module "libs/reach/feature/content/src/forms/DateRangeSlider" {
|
|
9270
9274
|
import { FC } from 'react';
|
|
9271
9275
|
import { DateRange } from "libs/reach/feature/content/src/forms/DateRange";
|
|
9272
|
-
import './DateRangeSlider.scss';
|
|
9273
9276
|
export const DateRangeSlider: FC<{
|
|
9274
9277
|
value?: DateRange;
|
|
9275
9278
|
onChange: (range: DateRange) => unknown;
|
|
@@ -9522,6 +9525,7 @@ declare module "libs/reach/feature/content/src/posts/PostReplies" {
|
|
|
9522
9525
|
interface Props {
|
|
9523
9526
|
className?: string;
|
|
9524
9527
|
post: Post;
|
|
9528
|
+
initialPageSize?: number;
|
|
9525
9529
|
comments?: PaginatedList<Comment>;
|
|
9526
9530
|
autoFocusReplyField?: boolean;
|
|
9527
9531
|
onReplyAdded: () => void;
|
|
@@ -9572,6 +9576,7 @@ declare module "libs/reach/feature/content/src/posts/PostDisplay" {
|
|
|
9572
9576
|
threadId?: string;
|
|
9573
9577
|
onCustomPostDelete?: () => void;
|
|
9574
9578
|
comments?: PaginatedList<Comment>;
|
|
9579
|
+
initialCommentsPageSize?: number;
|
|
9575
9580
|
onEditActiveChange?: (isEditMode: boolean) => void;
|
|
9576
9581
|
onShowCommentsChange?: (showComments: boolean) => void;
|
|
9577
9582
|
onThreadCommentDelete?: () => void;
|
|
@@ -9634,10 +9639,10 @@ declare module "libs/reach/feature/content/src/posts/PostWithSelfThreadHandling"
|
|
|
9634
9639
|
declare module "libs/reach/feature/content/src/stream/stream-utils" {
|
|
9635
9640
|
export const MARK_ITEMS_AS_READ_MUTATION: import("@apollo/client").DocumentNode;
|
|
9636
9641
|
}
|
|
9637
|
-
declare module "libs/reach/feature/content/src/posts/
|
|
9642
|
+
declare module "libs/reach/feature/content/src/posts/useMarkPostsAndCommentsAsRead" {
|
|
9638
9643
|
import { Post } from "libs/reach/feature/content/src/posts/utils";
|
|
9639
9644
|
import { DependencyList } from 'react';
|
|
9640
|
-
export function
|
|
9645
|
+
export function useMarkPostsAndCommentsAsRead(area: 'CACHE_ONLY' | 'CACHE_AND_SERVER', posts: Post[], deps?: DependencyList): void;
|
|
9641
9646
|
}
|
|
9642
9647
|
declare module "libs/reach/feature/content/src/posts/usePostKeywordSettings" {
|
|
9643
9648
|
import { UserGroup } from "libs/reach/util/common/src/index";
|
|
@@ -9655,7 +9660,7 @@ declare module "libs/reach/feature/content/src/posts/index" {
|
|
|
9655
9660
|
export * from "libs/reach/feature/content/src/posts/PostListItem";
|
|
9656
9661
|
export * from "libs/reach/feature/content/src/posts/PostWithSelfThreadHandling";
|
|
9657
9662
|
export * from "libs/reach/feature/content/src/posts/useAttachmentUploader";
|
|
9658
|
-
export * from "libs/reach/feature/content/src/posts/
|
|
9663
|
+
export * from "libs/reach/feature/content/src/posts/useMarkPostsAndCommentsAsRead";
|
|
9659
9664
|
export * from "libs/reach/feature/content/src/posts/usePostKeywordSettings";
|
|
9660
9665
|
export * from "libs/reach/feature/content/src/posts/usePostsApi";
|
|
9661
9666
|
export * from "libs/reach/feature/content/src/posts/utils";
|
|
@@ -9844,18 +9849,6 @@ declare module "apps/reach-app/src/app/admin/users/self-registration/SelfRegistr
|
|
|
9844
9849
|
import { FC } from 'react';
|
|
9845
9850
|
export const SelfRegistrationSettingsPage: FC;
|
|
9846
9851
|
}
|
|
9847
|
-
declare module "apps/reach-app/src/app/Intercom/Intercom" {
|
|
9848
|
-
export interface Intercom {
|
|
9849
|
-
(action: string, settings?: IntercomSettings): void;
|
|
9850
|
-
}
|
|
9851
|
-
export interface IntercomSettings {
|
|
9852
|
-
app_id: string;
|
|
9853
|
-
product_id: string;
|
|
9854
|
-
name?: string;
|
|
9855
|
-
email?: string;
|
|
9856
|
-
}
|
|
9857
|
-
export function create(settings: IntercomSettings): Intercom;
|
|
9858
|
-
}
|
|
9859
9852
|
declare module "apps/reach-app/src/app/AppLoader" {
|
|
9860
9853
|
import { FC } from 'react';
|
|
9861
9854
|
export const AppLoader: FC;
|
|
@@ -9901,21 +9894,16 @@ declare module "apps/reach-app/src/app/teams/TeamsContext" {
|
|
|
9901
9894
|
}>;
|
|
9902
9895
|
export const TeamsContextProvider: FC;
|
|
9903
9896
|
}
|
|
9904
|
-
declare module "apps/reach-app/src/app/
|
|
9905
|
-
export enum
|
|
9906
|
-
Authenticated = 0,
|
|
9907
|
-
UnAuthenticated = 1
|
|
9908
|
-
}
|
|
9909
|
-
export enum IntercomInitialState {
|
|
9897
|
+
declare module "apps/reach-app/src/app/Zendesk/useZendesk" {
|
|
9898
|
+
export enum ZendeskInitialState {
|
|
9910
9899
|
Minimized = 0,
|
|
9911
9900
|
MobileHidden = 1
|
|
9912
9901
|
}
|
|
9913
|
-
export function
|
|
9914
|
-
export
|
|
9915
|
-
|
|
9902
|
+
export function shutdownZendesk(): void;
|
|
9903
|
+
export function useZendesk(initialState?: ZendeskInitialState): {
|
|
9904
|
+
showZendeskChat: () => void;
|
|
9916
9905
|
toggleIcon: (show: boolean) => void;
|
|
9917
|
-
}
|
|
9918
|
-
export function useIntercom(area: IntercomArea, initialState?: IntercomInitialState): IntercomProps;
|
|
9906
|
+
};
|
|
9919
9907
|
}
|
|
9920
9908
|
declare module "apps/reach-app/src/app/admin/terms-and-conditions/TermsAndConditionsPage" {
|
|
9921
9909
|
import { FC } from 'react';
|