@livetiles/reach-plugin-types 0.4.0-preview.3 → 0.4.0-preview.33
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 +20 -44
- 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;
|
|
@@ -4119,7 +4119,6 @@ declare module "libs/reach/ui/common/src/common/paging/useItemLoaderWithPreFetch
|
|
|
4119
4119
|
}
|
|
4120
4120
|
declare module "libs/reach/ui/common/src/common/pull-to-refresh/PullToRefresh" {
|
|
4121
4121
|
import { FC, ReactNode } from 'react';
|
|
4122
|
-
import './PullToRefresh.scss';
|
|
4123
4122
|
export const PullToRefreshContext: import("react").Context<{
|
|
4124
4123
|
refreshToken: string;
|
|
4125
4124
|
setEnabled: (enabled: boolean) => unknown;
|
|
@@ -5205,6 +5204,7 @@ declare module "libs/shared/util/authentication-services/src/msal/WebMsalService
|
|
|
5205
5204
|
getCurrentEmailInternal(): Promise<string>;
|
|
5206
5205
|
private tryGetMsalV1Token;
|
|
5207
5206
|
private removeMsalV1IdToken;
|
|
5207
|
+
private tryGetGuestTenantId;
|
|
5208
5208
|
private handleAuthClientCallback;
|
|
5209
5209
|
private handleAuthClientErrorCallback;
|
|
5210
5210
|
private ensureAuthority;
|
|
@@ -7437,7 +7437,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/NewsItemTile" {
|
|
|
7437
7437
|
dateLabelResourceKey?: string;
|
|
7438
7438
|
buttons?: ReactNode;
|
|
7439
7439
|
openTargetInNewWindow?: boolean;
|
|
7440
|
-
onClick?: (event: React.MouseEvent<unknown
|
|
7440
|
+
onClick?: (event: React.MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
|
|
7441
7441
|
styleDefinition?: StyleDefinition;
|
|
7442
7442
|
readOnly?: boolean;
|
|
7443
7443
|
className?: string;
|
|
@@ -8658,7 +8658,6 @@ declare module "libs/reach/feature/content/src/common/cards/CardBanner" {
|
|
|
8658
8658
|
}
|
|
8659
8659
|
declare module "libs/reach/feature/content/src/common/cards/Card" {
|
|
8660
8660
|
import { FC, ReactNode } from 'react';
|
|
8661
|
-
import './Card.scss';
|
|
8662
8661
|
import { PublishableItem } from "libs/reach/util/common/src/index";
|
|
8663
8662
|
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
8664
8663
|
import { CurrentUser } from "libs/reach/util/common/src/index";
|
|
@@ -8791,7 +8790,6 @@ declare module "libs/reach/feature/content/src/common/detail/pages/controls/Page
|
|
|
8791
8790
|
}
|
|
8792
8791
|
declare module "libs/reach/feature/content/src/common/language-selector/LanguageSelector" {
|
|
8793
8792
|
import { FC } from 'react';
|
|
8794
|
-
import './LanguageSelector.scss';
|
|
8795
8793
|
interface LanguageSelectorProps {
|
|
8796
8794
|
languages: string[];
|
|
8797
8795
|
selectedLanguage: string;
|
|
@@ -9147,7 +9145,6 @@ declare module "libs/reach/feature/content/src/forms/keyword-picker/KeywordPicke
|
|
|
9147
9145
|
declare module "libs/reach/feature/content/src/forms/keyword-picker/KeywordPicker" {
|
|
9148
9146
|
import { FC } from 'react';
|
|
9149
9147
|
import { Keyword } from "libs/reach/util/common/src/index";
|
|
9150
|
-
import './KeywordPicker.scss';
|
|
9151
9148
|
interface Props {
|
|
9152
9149
|
value?: Keyword[] | string[];
|
|
9153
9150
|
onChange: (keywords: Keyword[]) => void;
|
|
@@ -9181,7 +9178,6 @@ declare module "libs/reach/feature/content/src/forms/KeywordDialog" {
|
|
|
9181
9178
|
}
|
|
9182
9179
|
declare module "libs/reach/feature/content/src/forms/Textarea" {
|
|
9183
9180
|
import { FC, MutableRefObject } from 'react';
|
|
9184
|
-
import './Textarea.scss';
|
|
9185
9181
|
export interface TextareaProps {
|
|
9186
9182
|
rows?: number;
|
|
9187
9183
|
placeholder?: string;
|
|
@@ -9209,7 +9205,6 @@ declare module "libs/reach/feature/content/src/forms/Textarea" {
|
|
|
9209
9205
|
}
|
|
9210
9206
|
declare module "libs/reach/feature/content/src/forms/DateTimePicker" {
|
|
9211
9207
|
import { FC } from 'react';
|
|
9212
|
-
import './DateTimePicker.scss';
|
|
9213
9208
|
interface DateTimePickerProps {
|
|
9214
9209
|
date: string;
|
|
9215
9210
|
maxDate?: string;
|
|
@@ -9271,7 +9266,6 @@ declare module "libs/reach/feature/content/src/forms/DateRange" {
|
|
|
9271
9266
|
declare module "libs/reach/feature/content/src/forms/DateRangeSlider" {
|
|
9272
9267
|
import { FC } from 'react';
|
|
9273
9268
|
import { DateRange } from "libs/reach/feature/content/src/forms/DateRange";
|
|
9274
|
-
import './DateRangeSlider.scss';
|
|
9275
9269
|
export const DateRangeSlider: FC<{
|
|
9276
9270
|
value?: DateRange;
|
|
9277
9271
|
onChange: (range: DateRange) => unknown;
|
|
@@ -9358,9 +9352,8 @@ declare module "libs/reach/feature/content/src/news/list-view/NewsCard" {
|
|
|
9358
9352
|
export const NewsCard: FC<NewsCardProps>;
|
|
9359
9353
|
}
|
|
9360
9354
|
declare module "libs/reach/feature/content/src/news/list-view/EmptyChannelsView" {
|
|
9361
|
-
import
|
|
9362
|
-
|
|
9363
|
-
export const EmptyChannelsView: React.FC;
|
|
9355
|
+
import { FC } from 'react';
|
|
9356
|
+
export const EmptyChannelsView: FC;
|
|
9364
9357
|
}
|
|
9365
9358
|
declare module "libs/reach/feature/content/src/news/list-view/PromotedNewsItem" {
|
|
9366
9359
|
import { FC } from 'react';
|
|
@@ -9847,18 +9840,6 @@ declare module "apps/reach-app/src/app/admin/users/self-registration/SelfRegistr
|
|
|
9847
9840
|
import { FC } from 'react';
|
|
9848
9841
|
export const SelfRegistrationSettingsPage: FC;
|
|
9849
9842
|
}
|
|
9850
|
-
declare module "apps/reach-app/src/app/Intercom/Intercom" {
|
|
9851
|
-
export interface Intercom {
|
|
9852
|
-
(action: string, settings?: IntercomSettings): void;
|
|
9853
|
-
}
|
|
9854
|
-
export interface IntercomSettings {
|
|
9855
|
-
app_id: string;
|
|
9856
|
-
product_id: string;
|
|
9857
|
-
name?: string;
|
|
9858
|
-
email?: string;
|
|
9859
|
-
}
|
|
9860
|
-
export function create(settings: IntercomSettings): Intercom;
|
|
9861
|
-
}
|
|
9862
9843
|
declare module "apps/reach-app/src/app/AppLoader" {
|
|
9863
9844
|
import { FC } from 'react';
|
|
9864
9845
|
export const AppLoader: FC;
|
|
@@ -9904,21 +9885,16 @@ declare module "apps/reach-app/src/app/teams/TeamsContext" {
|
|
|
9904
9885
|
}>;
|
|
9905
9886
|
export const TeamsContextProvider: FC;
|
|
9906
9887
|
}
|
|
9907
|
-
declare module "apps/reach-app/src/app/
|
|
9908
|
-
export enum
|
|
9909
|
-
Authenticated = 0,
|
|
9910
|
-
UnAuthenticated = 1
|
|
9911
|
-
}
|
|
9912
|
-
export enum IntercomInitialState {
|
|
9888
|
+
declare module "apps/reach-app/src/app/Zendesk/useZendesk" {
|
|
9889
|
+
export enum ZendeskInitialState {
|
|
9913
9890
|
Minimized = 0,
|
|
9914
9891
|
MobileHidden = 1
|
|
9915
9892
|
}
|
|
9916
|
-
export function
|
|
9917
|
-
export
|
|
9918
|
-
|
|
9893
|
+
export function shutdownZendesk(): void;
|
|
9894
|
+
export function useZendesk(initialState?: ZendeskInitialState): {
|
|
9895
|
+
showZendeskChat: () => void;
|
|
9919
9896
|
toggleIcon: (show: boolean) => void;
|
|
9920
|
-
}
|
|
9921
|
-
export function useIntercom(area: IntercomArea, initialState?: IntercomInitialState): IntercomProps;
|
|
9897
|
+
};
|
|
9922
9898
|
}
|
|
9923
9899
|
declare module "apps/reach-app/src/app/admin/terms-and-conditions/TermsAndConditionsPage" {
|
|
9924
9900
|
import { FC } from 'react';
|