@livetiles/reach-plugin-types 0.4.0-preview.4 → 0.4.0-preview.43
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 +26 -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';
|
|
@@ -3127,7 +3129,6 @@ declare module "libs/reach/ui/common/src/PeoplePicker" {
|
|
|
3127
3129
|
import { FC } from 'react';
|
|
3128
3130
|
import { SelectionMode } from 'office-ui-fabric-react';
|
|
3129
3131
|
import { Account, AccountType } from "libs/reach/util/common/src/index";
|
|
3130
|
-
import './PeoplePicker.scss';
|
|
3131
3132
|
interface Props {
|
|
3132
3133
|
defaultSelectedItems?: Account[];
|
|
3133
3134
|
localOnly?: boolean;
|
|
@@ -3182,7 +3183,6 @@ declare module "libs/reach/ui/common/src/content-keyword-utils" {
|
|
|
3182
3183
|
}
|
|
3183
3184
|
declare module "libs/reach/ui/common/src/NotificationBar" {
|
|
3184
3185
|
import { FC } from 'react';
|
|
3185
|
-
import './Notification.scss';
|
|
3186
3186
|
import 'react-toastify/dist/ReactToastify.min.css';
|
|
3187
3187
|
export const NotificationBar: FC;
|
|
3188
3188
|
}
|
|
@@ -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;
|
|
@@ -4119,7 +4120,6 @@ declare module "libs/reach/ui/common/src/common/paging/useItemLoaderWithPreFetch
|
|
|
4119
4120
|
}
|
|
4120
4121
|
declare module "libs/reach/ui/common/src/common/pull-to-refresh/PullToRefresh" {
|
|
4121
4122
|
import { FC, ReactNode } from 'react';
|
|
4122
|
-
import './PullToRefresh.scss';
|
|
4123
4123
|
export const PullToRefreshContext: import("react").Context<{
|
|
4124
4124
|
refreshToken: string;
|
|
4125
4125
|
setEnabled: (enabled: boolean) => unknown;
|
|
@@ -5205,6 +5205,7 @@ declare module "libs/shared/util/authentication-services/src/msal/WebMsalService
|
|
|
5205
5205
|
getCurrentEmailInternal(): Promise<string>;
|
|
5206
5206
|
private tryGetMsalV1Token;
|
|
5207
5207
|
private removeMsalV1IdToken;
|
|
5208
|
+
private tryGetGuestTenantId;
|
|
5208
5209
|
private handleAuthClientCallback;
|
|
5209
5210
|
private handleAuthClientErrorCallback;
|
|
5210
5211
|
private ensureAuthority;
|
|
@@ -6402,6 +6403,7 @@ declare module "libs/reach/feature/content/src/filter/NewsFilterDefinition" {
|
|
|
6402
6403
|
export interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFilterDefinition, ChannelsFilterDefinition, StateFilterDefinition {
|
|
6403
6404
|
groupId?: string;
|
|
6404
6405
|
bookmarksOnly?: boolean;
|
|
6406
|
+
unreadOnly?: boolean;
|
|
6405
6407
|
}
|
|
6406
6408
|
}
|
|
6407
6409
|
declare module "libs/reach/feature/content/src/news/fetchNewsItems" {
|
|
@@ -7437,7 +7439,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/NewsItemTile" {
|
|
|
7437
7439
|
dateLabelResourceKey?: string;
|
|
7438
7440
|
buttons?: ReactNode;
|
|
7439
7441
|
openTargetInNewWindow?: boolean;
|
|
7440
|
-
onClick?: (event: React.MouseEvent<unknown
|
|
7442
|
+
onClick?: (event: React.MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
|
|
7441
7443
|
styleDefinition?: StyleDefinition;
|
|
7442
7444
|
readOnly?: boolean;
|
|
7443
7445
|
className?: string;
|
|
@@ -8658,7 +8660,6 @@ declare module "libs/reach/feature/content/src/common/cards/CardBanner" {
|
|
|
8658
8660
|
}
|
|
8659
8661
|
declare module "libs/reach/feature/content/src/common/cards/Card" {
|
|
8660
8662
|
import { FC, ReactNode } from 'react';
|
|
8661
|
-
import './Card.scss';
|
|
8662
8663
|
import { PublishableItem } from "libs/reach/util/common/src/index";
|
|
8663
8664
|
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
8664
8665
|
import { CurrentUser } from "libs/reach/util/common/src/index";
|
|
@@ -8791,7 +8792,6 @@ declare module "libs/reach/feature/content/src/common/detail/pages/controls/Page
|
|
|
8791
8792
|
}
|
|
8792
8793
|
declare module "libs/reach/feature/content/src/common/language-selector/LanguageSelector" {
|
|
8793
8794
|
import { FC } from 'react';
|
|
8794
|
-
import './LanguageSelector.scss';
|
|
8795
8795
|
interface LanguageSelectorProps {
|
|
8796
8796
|
languages: string[];
|
|
8797
8797
|
selectedLanguage: string;
|
|
@@ -9147,7 +9147,6 @@ declare module "libs/reach/feature/content/src/forms/keyword-picker/KeywordPicke
|
|
|
9147
9147
|
declare module "libs/reach/feature/content/src/forms/keyword-picker/KeywordPicker" {
|
|
9148
9148
|
import { FC } from 'react';
|
|
9149
9149
|
import { Keyword } from "libs/reach/util/common/src/index";
|
|
9150
|
-
import './KeywordPicker.scss';
|
|
9151
9150
|
interface Props {
|
|
9152
9151
|
value?: Keyword[] | string[];
|
|
9153
9152
|
onChange: (keywords: Keyword[]) => void;
|
|
@@ -9181,7 +9180,6 @@ declare module "libs/reach/feature/content/src/forms/KeywordDialog" {
|
|
|
9181
9180
|
}
|
|
9182
9181
|
declare module "libs/reach/feature/content/src/forms/Textarea" {
|
|
9183
9182
|
import { FC, MutableRefObject } from 'react';
|
|
9184
|
-
import './Textarea.scss';
|
|
9185
9183
|
export interface TextareaProps {
|
|
9186
9184
|
rows?: number;
|
|
9187
9185
|
placeholder?: string;
|
|
@@ -9209,7 +9207,6 @@ declare module "libs/reach/feature/content/src/forms/Textarea" {
|
|
|
9209
9207
|
}
|
|
9210
9208
|
declare module "libs/reach/feature/content/src/forms/DateTimePicker" {
|
|
9211
9209
|
import { FC } from 'react';
|
|
9212
|
-
import './DateTimePicker.scss';
|
|
9213
9210
|
interface DateTimePickerProps {
|
|
9214
9211
|
date: string;
|
|
9215
9212
|
maxDate?: string;
|
|
@@ -9271,7 +9268,6 @@ declare module "libs/reach/feature/content/src/forms/DateRange" {
|
|
|
9271
9268
|
declare module "libs/reach/feature/content/src/forms/DateRangeSlider" {
|
|
9272
9269
|
import { FC } from 'react';
|
|
9273
9270
|
import { DateRange } from "libs/reach/feature/content/src/forms/DateRange";
|
|
9274
|
-
import './DateRangeSlider.scss';
|
|
9275
9271
|
export const DateRangeSlider: FC<{
|
|
9276
9272
|
value?: DateRange;
|
|
9277
9273
|
onChange: (range: DateRange) => unknown;
|
|
@@ -9524,6 +9520,7 @@ declare module "libs/reach/feature/content/src/posts/PostReplies" {
|
|
|
9524
9520
|
interface Props {
|
|
9525
9521
|
className?: string;
|
|
9526
9522
|
post: Post;
|
|
9523
|
+
initialPageSize?: number;
|
|
9527
9524
|
comments?: PaginatedList<Comment>;
|
|
9528
9525
|
autoFocusReplyField?: boolean;
|
|
9529
9526
|
onReplyAdded: () => void;
|
|
@@ -9574,6 +9571,7 @@ declare module "libs/reach/feature/content/src/posts/PostDisplay" {
|
|
|
9574
9571
|
threadId?: string;
|
|
9575
9572
|
onCustomPostDelete?: () => void;
|
|
9576
9573
|
comments?: PaginatedList<Comment>;
|
|
9574
|
+
initialCommentsPageSize?: number;
|
|
9577
9575
|
onEditActiveChange?: (isEditMode: boolean) => void;
|
|
9578
9576
|
onShowCommentsChange?: (showComments: boolean) => void;
|
|
9579
9577
|
onThreadCommentDelete?: () => void;
|
|
@@ -9636,10 +9634,10 @@ declare module "libs/reach/feature/content/src/posts/PostWithSelfThreadHandling"
|
|
|
9636
9634
|
declare module "libs/reach/feature/content/src/stream/stream-utils" {
|
|
9637
9635
|
export const MARK_ITEMS_AS_READ_MUTATION: import("@apollo/client").DocumentNode;
|
|
9638
9636
|
}
|
|
9639
|
-
declare module "libs/reach/feature/content/src/posts/
|
|
9637
|
+
declare module "libs/reach/feature/content/src/posts/useMarkPostsAndCommentsAsRead" {
|
|
9640
9638
|
import { Post } from "libs/reach/feature/content/src/posts/utils";
|
|
9641
9639
|
import { DependencyList } from 'react';
|
|
9642
|
-
export function
|
|
9640
|
+
export function useMarkPostsAndCommentsAsRead(area: 'CACHE_ONLY' | 'CACHE_AND_SERVER', posts: Post[], deps?: DependencyList): void;
|
|
9643
9641
|
}
|
|
9644
9642
|
declare module "libs/reach/feature/content/src/posts/usePostKeywordSettings" {
|
|
9645
9643
|
import { UserGroup } from "libs/reach/util/common/src/index";
|
|
@@ -9657,7 +9655,7 @@ declare module "libs/reach/feature/content/src/posts/index" {
|
|
|
9657
9655
|
export * from "libs/reach/feature/content/src/posts/PostListItem";
|
|
9658
9656
|
export * from "libs/reach/feature/content/src/posts/PostWithSelfThreadHandling";
|
|
9659
9657
|
export * from "libs/reach/feature/content/src/posts/useAttachmentUploader";
|
|
9660
|
-
export * from "libs/reach/feature/content/src/posts/
|
|
9658
|
+
export * from "libs/reach/feature/content/src/posts/useMarkPostsAndCommentsAsRead";
|
|
9661
9659
|
export * from "libs/reach/feature/content/src/posts/usePostKeywordSettings";
|
|
9662
9660
|
export * from "libs/reach/feature/content/src/posts/usePostsApi";
|
|
9663
9661
|
export * from "libs/reach/feature/content/src/posts/utils";
|
|
@@ -9846,18 +9844,6 @@ declare module "apps/reach-app/src/app/admin/users/self-registration/SelfRegistr
|
|
|
9846
9844
|
import { FC } from 'react';
|
|
9847
9845
|
export const SelfRegistrationSettingsPage: FC;
|
|
9848
9846
|
}
|
|
9849
|
-
declare module "apps/reach-app/src/app/Intercom/Intercom" {
|
|
9850
|
-
export interface Intercom {
|
|
9851
|
-
(action: string, settings?: IntercomSettings): void;
|
|
9852
|
-
}
|
|
9853
|
-
export interface IntercomSettings {
|
|
9854
|
-
app_id: string;
|
|
9855
|
-
product_id: string;
|
|
9856
|
-
name?: string;
|
|
9857
|
-
email?: string;
|
|
9858
|
-
}
|
|
9859
|
-
export function create(settings: IntercomSettings): Intercom;
|
|
9860
|
-
}
|
|
9861
9847
|
declare module "apps/reach-app/src/app/AppLoader" {
|
|
9862
9848
|
import { FC } from 'react';
|
|
9863
9849
|
export const AppLoader: FC;
|
|
@@ -9903,21 +9889,16 @@ declare module "apps/reach-app/src/app/teams/TeamsContext" {
|
|
|
9903
9889
|
}>;
|
|
9904
9890
|
export const TeamsContextProvider: FC;
|
|
9905
9891
|
}
|
|
9906
|
-
declare module "apps/reach-app/src/app/
|
|
9907
|
-
export enum
|
|
9908
|
-
Authenticated = 0,
|
|
9909
|
-
UnAuthenticated = 1
|
|
9910
|
-
}
|
|
9911
|
-
export enum IntercomInitialState {
|
|
9892
|
+
declare module "apps/reach-app/src/app/Zendesk/useZendesk" {
|
|
9893
|
+
export enum ZendeskInitialState {
|
|
9912
9894
|
Minimized = 0,
|
|
9913
9895
|
MobileHidden = 1
|
|
9914
9896
|
}
|
|
9915
|
-
export function
|
|
9916
|
-
export
|
|
9917
|
-
|
|
9897
|
+
export function shutdownZendesk(): void;
|
|
9898
|
+
export function useZendesk(initialState?: ZendeskInitialState): {
|
|
9899
|
+
showZendeskChat: () => void;
|
|
9918
9900
|
toggleIcon: (show: boolean) => void;
|
|
9919
|
-
}
|
|
9920
|
-
export function useIntercom(area: IntercomArea, initialState?: IntercomInitialState): IntercomProps;
|
|
9901
|
+
};
|
|
9921
9902
|
}
|
|
9922
9903
|
declare module "apps/reach-app/src/app/admin/terms-and-conditions/TermsAndConditionsPage" {
|
|
9923
9904
|
import { FC } from 'react';
|