@livetiles/reach-plugin-types 0.4.0-preview.685 → 0.4.0-preview.688
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 -22
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -22,9 +22,8 @@ declare module "libs/shared/util/common/src/IdGenerator" {
|
|
|
22
22
|
export function createId(seed?: string): string;
|
|
23
23
|
}
|
|
24
24
|
declare module "libs/shared/util/common/src/browserInfo" {
|
|
25
|
-
import * as browser from 'detect-browser';
|
|
26
25
|
export const browserInfo: {
|
|
27
|
-
name: browser.Browser | "bot" | "node";
|
|
26
|
+
name: import("detect-browser").Browser | "bot" | "node";
|
|
28
27
|
version: string;
|
|
29
28
|
};
|
|
30
29
|
export function getBrowserInfoClassnames(): string[];
|
|
@@ -2432,6 +2431,7 @@ declare module "libs/reach/util/common/src/content/index" {
|
|
|
2432
2431
|
}
|
|
2433
2432
|
declare module "libs/reach/util/common/src/AccessDeniedIntercept" {
|
|
2434
2433
|
export function accessDeniedIntercept(error: any): Promise<boolean>;
|
|
2434
|
+
export function genericAccessDeniedIntercept(error: any): Promise<boolean>;
|
|
2435
2435
|
}
|
|
2436
2436
|
declare module "libs/reach/util/common/src/user/useManageCurrentUserApi" {
|
|
2437
2437
|
import { CurrentUser, GroupNotificationSettings, NotificationTypeSettings, UserContact } from "libs/reach/util/common/src/user/User";
|
|
@@ -2898,7 +2898,6 @@ declare module "libs/reach/util/common/src/theme/ColorGenerator" {
|
|
|
2898
2898
|
declare module "libs/reach/util/common/src/theme/ThemeService" {
|
|
2899
2899
|
import { IPartialTheme } from 'office-ui-fabric-react';
|
|
2900
2900
|
import { Theme } from "libs/reach/util/common/src/user/Subscription";
|
|
2901
|
-
import * as wcag from 'wcag-contrast';
|
|
2902
2901
|
export const defaultThemeColors: Theme;
|
|
2903
2902
|
export const defaultPageBackgroundColor: string;
|
|
2904
2903
|
export const defaultLightColor = "#ffffff";
|
|
@@ -2931,6 +2930,11 @@ declare module "libs/reach/util/common/src/theme/ThemeService" {
|
|
|
2931
2930
|
neutralTertiary: string;
|
|
2932
2931
|
neutralTertiaryAlt: string;
|
|
2933
2932
|
neutralQuaternary: string;
|
|
2933
|
+
/**
|
|
2934
|
+
* Theme Service applies custom themes.
|
|
2935
|
+
* Accommodates overriding the custom UI Fabric default styles which
|
|
2936
|
+
* are not automatically applied (e.g. ms-bgColor-themePrimary) via load-themed-styles
|
|
2937
|
+
*/
|
|
2934
2938
|
neutralQuaternaryAlt: string;
|
|
2935
2939
|
neutralLight: string;
|
|
2936
2940
|
neutralLighter: string;
|
|
@@ -2998,7 +3002,7 @@ declare module "libs/reach/util/common/src/theme/ThemeService" {
|
|
|
2998
3002
|
export function shouldUseDarkForegroundColor(bgColor: string): boolean;
|
|
2999
3003
|
export function getContrastInfo(backgroundColor: string, foregroundColor: string): {
|
|
3000
3004
|
contrast: string;
|
|
3001
|
-
score: wcag.Score;
|
|
3005
|
+
score: import("wcag-contrast").Score;
|
|
3002
3006
|
isGood: boolean;
|
|
3003
3007
|
};
|
|
3004
3008
|
}
|
|
@@ -3129,7 +3133,7 @@ declare module "libs/reach/util/common/src/notification/index" {
|
|
|
3129
3133
|
export * from "libs/reach/util/common/src/notification/NotificationContext";
|
|
3130
3134
|
export * from "libs/reach/util/common/src/notification/ToastNotificationHost";
|
|
3131
3135
|
}
|
|
3132
|
-
declare module "libs/reach/util/common/src/
|
|
3136
|
+
declare module "libs/reach/util/common/src/subscription/SubscriptionContext" {
|
|
3133
3137
|
import { FC } from 'react';
|
|
3134
3138
|
import { Keyword, KeywordGroup } from "libs/reach/util/common/src/content/KeywordGroup";
|
|
3135
3139
|
import { Channel } from "libs/reach/util/common/src/user/Channel";
|
|
@@ -3227,6 +3231,11 @@ declare module "libs/reach/util/common/src/ForbiddenErrorTriggerAction" {
|
|
|
3227
3231
|
type: string;
|
|
3228
3232
|
static create(): ForbiddenErrorTriggerAction;
|
|
3229
3233
|
}
|
|
3234
|
+
export class GenericAccessDeniedTriggerAction implements AppTriggerAction {
|
|
3235
|
+
static type: string;
|
|
3236
|
+
type: string;
|
|
3237
|
+
static create(): GenericAccessDeniedTriggerAction;
|
|
3238
|
+
}
|
|
3230
3239
|
}
|
|
3231
3240
|
declare module "libs/reach/util/common/src/index" {
|
|
3232
3241
|
export { initializeIcons } from 'office-ui-fabric-react';
|
|
@@ -3244,7 +3253,7 @@ declare module "libs/reach/util/common/src/index" {
|
|
|
3244
3253
|
export * from "libs/reach/util/common/src/notification/index";
|
|
3245
3254
|
export * from "libs/reach/util/common/src/Variables";
|
|
3246
3255
|
export * from "libs/reach/util/common/src/keywords/useKeywordsApi";
|
|
3247
|
-
export * from "libs/reach/util/common/src/
|
|
3256
|
+
export * from "libs/reach/util/common/src/subscription/SubscriptionContext";
|
|
3248
3257
|
export * from "libs/reach/util/common/src/subscription/useSubscriptionApi";
|
|
3249
3258
|
export * from "libs/reach/util/common/src/AppTrigger";
|
|
3250
3259
|
export * from "libs/reach/util/common/src/BackbuttonListenerUtil";
|
|
@@ -4003,14 +4012,14 @@ declare module "libs/reach/ui/common/src/common/VerificationStatusIcon" {
|
|
|
4003
4012
|
}>;
|
|
4004
4013
|
}
|
|
4005
4014
|
declare module "libs/reach/ui/common/src/common/animations/OpacityAnimation" {
|
|
4006
|
-
import { CSSProperties } from 'react';
|
|
4015
|
+
import { CSSProperties, FC } from 'react';
|
|
4007
4016
|
interface AnimationProps {
|
|
4008
4017
|
enterDuration?: number;
|
|
4009
4018
|
leaveDuration?: number;
|
|
4010
4019
|
style?: CSSProperties;
|
|
4011
4020
|
className?: string;
|
|
4012
4021
|
}
|
|
4013
|
-
export const OpacityAnimation:
|
|
4022
|
+
export const OpacityAnimation: FC<AnimationProps>;
|
|
4014
4023
|
}
|
|
4015
4024
|
declare module "libs/reach/ui/common/src/common/buttons/AutoTranslateButton" {
|
|
4016
4025
|
import { FC } from 'react';
|
|
@@ -4055,7 +4064,8 @@ declare module "libs/reach/ui/common/src/common/buttons/DefaultGoHomeButton" {
|
|
|
4055
4064
|
export const DefaultGoHomeButton: FC;
|
|
4056
4065
|
}
|
|
4057
4066
|
declare module "libs/reach/ui/common/src/common/buttons/DefaultRefreshPageButton" {
|
|
4058
|
-
|
|
4067
|
+
import { FC } from 'react';
|
|
4068
|
+
export const DefaultRefreshPageButton: FC;
|
|
4059
4069
|
}
|
|
4060
4070
|
declare module "libs/reach/ui/common/src/common/buttons/DeleteAttachmentButton" {
|
|
4061
4071
|
import { IconButton } from 'office-ui-fabric-react';
|
|
@@ -4069,13 +4079,14 @@ declare module "libs/reach/ui/common/src/common/buttons/ToggleAllButtons" {
|
|
|
4069
4079
|
}>;
|
|
4070
4080
|
}
|
|
4071
4081
|
declare module "libs/reach/ui/common/src/common/buttons/TopActionButton" {
|
|
4082
|
+
import { FC } from 'react';
|
|
4072
4083
|
import { NavLinkProps } from 'react-router-dom';
|
|
4073
4084
|
interface Props extends NavLinkProps {
|
|
4074
4085
|
iconName?: string;
|
|
4075
4086
|
textKey?: string;
|
|
4076
4087
|
className?: string;
|
|
4077
4088
|
}
|
|
4078
|
-
export const TopActionButton: import("styled-components").StyledComponent<
|
|
4089
|
+
export const TopActionButton: import("styled-components").StyledComponent<FC<Props>, import("styled-components").DefaultTheme, {}, never>;
|
|
4079
4090
|
}
|
|
4080
4091
|
declare module "libs/reach/ui/common/src/common/buttons/UnreadItemsToggler" {
|
|
4081
4092
|
import { FC } from 'react';
|
|
@@ -4111,7 +4122,7 @@ declare module "libs/reach/ui/common/src/common/channels/ChannelTitle" {
|
|
|
4111
4122
|
}
|
|
4112
4123
|
declare module "libs/reach/ui/common/src/common/channels/ChannelItem" {
|
|
4113
4124
|
import { UserChannelSubscription } from "libs/reach/util/common/src/index";
|
|
4114
|
-
import { ReactNode } from 'react';
|
|
4125
|
+
import { FC, ReactNode } from 'react';
|
|
4115
4126
|
export interface ChannelItemProps {
|
|
4116
4127
|
channel: UserChannelSubscription;
|
|
4117
4128
|
onRemove?: () => void;
|
|
@@ -4128,7 +4139,7 @@ declare module "libs/reach/ui/common/src/common/channels/ChannelItem" {
|
|
|
4128
4139
|
unsubscribeTooltipResourceKey?: string;
|
|
4129
4140
|
className?: string;
|
|
4130
4141
|
}
|
|
4131
|
-
export const ChannelItem:
|
|
4142
|
+
export const ChannelItem: FC<ChannelItemProps>;
|
|
4132
4143
|
}
|
|
4133
4144
|
declare module "libs/reach/ui/common/src/common/channels/ChannelList" {
|
|
4134
4145
|
import { FC } from 'react';
|
|
@@ -7209,6 +7220,15 @@ declare module "libs/reach/feature/content/src/news/NewsService" {
|
|
|
7209
7220
|
static getUserPreferredLanguage(languages: string[], user: CurrentUser): string;
|
|
7210
7221
|
}
|
|
7211
7222
|
}
|
|
7223
|
+
declare module "libs/reach/feature/content/src/common/TargetLinkOverrideContext" {
|
|
7224
|
+
import { FC } from 'react';
|
|
7225
|
+
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7226
|
+
interface TargetLinkOverrideContextProps {
|
|
7227
|
+
onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
7228
|
+
}
|
|
7229
|
+
export const TargetLinkOverrideContext: import("react").Context<TargetLinkOverrideContextProps>;
|
|
7230
|
+
export const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
|
|
7231
|
+
}
|
|
7212
7232
|
declare module "libs/reach/feature/content/src/common/cards/ClickableOverlay" {
|
|
7213
7233
|
import { FC, MouseEvent } from 'react';
|
|
7214
7234
|
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
@@ -7270,13 +7290,14 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
|
|
|
7270
7290
|
}>;
|
|
7271
7291
|
}
|
|
7272
7292
|
declare module "libs/reach/feature/content/src/common/banner/banner-image/BannerImage" {
|
|
7293
|
+
import { FC } from 'react';
|
|
7273
7294
|
interface BannerImageProps {
|
|
7274
7295
|
children?: any;
|
|
7275
7296
|
className?: string;
|
|
7276
7297
|
imageUrl: string;
|
|
7277
7298
|
openImageUrl?: string;
|
|
7278
7299
|
}
|
|
7279
|
-
export const BannerImage:
|
|
7300
|
+
export const BannerImage: FC<BannerImageProps>;
|
|
7280
7301
|
}
|
|
7281
7302
|
declare module "libs/reach/feature/content/src/common/banner/ImageDetail" {
|
|
7282
7303
|
import { Observable } from 'rxjs';
|
|
@@ -7858,6 +7879,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/Title" {
|
|
|
7858
7879
|
resourceKey?: string;
|
|
7859
7880
|
resourceValues?: string;
|
|
7860
7881
|
className?: string;
|
|
7882
|
+
isOverrideLink: boolean;
|
|
7861
7883
|
}>;
|
|
7862
7884
|
}
|
|
7863
7885
|
declare module "libs/reach/feature/content/src/common/breadcrumb/utils" {
|
|
@@ -8390,6 +8412,7 @@ declare module "libs/reach/feature/content/src/common/cards/CardFooter" {
|
|
|
8390
8412
|
export const CardFooterHost: import("styled-components").StyledComponent<"footer", import("styled-components").DefaultTheme, {}, never>;
|
|
8391
8413
|
}
|
|
8392
8414
|
declare module "libs/reach/feature/content/src/common/cards/CardBanner" {
|
|
8415
|
+
import { FC } from 'react';
|
|
8393
8416
|
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
8394
8417
|
import { PublishableItem } from "libs/reach/util/common/src/index";
|
|
8395
8418
|
interface Props {
|
|
@@ -8397,7 +8420,7 @@ declare module "libs/reach/feature/content/src/common/cards/CardBanner" {
|
|
|
8397
8420
|
item: PublishableItem;
|
|
8398
8421
|
itemResourceType: ItemResourceTypes;
|
|
8399
8422
|
}
|
|
8400
|
-
export const CardBanner:
|
|
8423
|
+
export const CardBanner: FC<Props>;
|
|
8401
8424
|
}
|
|
8402
8425
|
declare module "libs/reach/feature/content/src/common/cards/Card" {
|
|
8403
8426
|
import { FC, ReactNode } from 'react';
|
|
@@ -8629,6 +8652,7 @@ declare module "libs/reach/feature/content/src/pages/index" {
|
|
|
8629
8652
|
export * from "libs/reach/feature/content/src/pages/utils";
|
|
8630
8653
|
}
|
|
8631
8654
|
declare module "libs/reach/feature/content/src/news/DateInfo" {
|
|
8655
|
+
import { FC } from 'react';
|
|
8632
8656
|
import { PublishableItem } from "libs/reach/util/common/src/index";
|
|
8633
8657
|
interface DateInfoProps {
|
|
8634
8658
|
item: Partial<PublishableItem>;
|
|
@@ -8640,15 +8664,16 @@ declare module "libs/reach/feature/content/src/news/DateInfo" {
|
|
|
8640
8664
|
Published = 0,
|
|
8641
8665
|
Modified = 1
|
|
8642
8666
|
}
|
|
8643
|
-
export const DateInfo:
|
|
8667
|
+
export const DateInfo: FC<DateInfoProps>;
|
|
8644
8668
|
}
|
|
8645
8669
|
declare module "libs/reach/feature/content/src/news/ItemMetaInfo" {
|
|
8670
|
+
import { FC } from 'react';
|
|
8646
8671
|
import { SchedulableItemChannel } from "libs/reach/util/common/src/index";
|
|
8647
8672
|
import { DateMode } from "libs/reach/feature/content/src/news/DateInfo";
|
|
8648
8673
|
import { Account } from "libs/reach/util/common/src/index";
|
|
8649
8674
|
import { PublishableItem } from "libs/reach/util/common/src/index";
|
|
8650
8675
|
export const getAuthor: (item: Partial<PublishableItem>) => Account;
|
|
8651
|
-
export const ItemMetaInfo:
|
|
8676
|
+
export const ItemMetaInfo: FC<{
|
|
8652
8677
|
item: Partial<PublishableItem>;
|
|
8653
8678
|
className?: string;
|
|
8654
8679
|
expiryDate?: string;
|
|
@@ -9448,8 +9473,8 @@ declare module "libs/reach/feature/content/src/common/detail/pages/controls/Page
|
|
|
9448
9473
|
}
|
|
9449
9474
|
declare module "libs/reach/feature/content/src/common/detail/pages/usePageDetailSearchHandler" {
|
|
9450
9475
|
import { PageItem } from "libs/reach/util/common/src/index";
|
|
9451
|
-
import
|
|
9452
|
-
export function usePageDetailSearchHandler(baseRoute: string, page: PageItem, history:
|
|
9476
|
+
import { History } from 'history';
|
|
9477
|
+
export function usePageDetailSearchHandler(baseRoute: string, page: PageItem, history: History): {
|
|
9453
9478
|
showSearch: boolean;
|
|
9454
9479
|
handleSearchTextChange: (searchText: string) => void;
|
|
9455
9480
|
redirectToSearchPage: (searchText: string) => void;
|
|
@@ -9660,8 +9685,9 @@ declare module "libs/reach/feature/content/src/common/detail/controls/PageViewTr
|
|
|
9660
9685
|
}>;
|
|
9661
9686
|
}
|
|
9662
9687
|
declare module "libs/reach/feature/content/src/common/StateIcon" {
|
|
9688
|
+
import { FC } from 'react';
|
|
9663
9689
|
import { WorkflowStatus } from "libs/reach/util/common/src/index";
|
|
9664
|
-
export const StateIcon:
|
|
9690
|
+
export const StateIcon: FC<{
|
|
9665
9691
|
status: WorkflowStatus;
|
|
9666
9692
|
isActive?: boolean;
|
|
9667
9693
|
width?: number;
|
|
@@ -9768,6 +9794,7 @@ declare module "libs/reach/feature/content/src/common/index" {
|
|
|
9768
9794
|
export * from "libs/reach/feature/content/src/common/hooks/useExternalContentHandler";
|
|
9769
9795
|
export * from "libs/reach/feature/content/src/common/hooks/useCommonEditorApi";
|
|
9770
9796
|
export * from "libs/reach/feature/content/src/common/hooks/usePageViewTracker";
|
|
9797
|
+
export * from "libs/reach/feature/content/src/common/TargetLinkOverrideContext";
|
|
9771
9798
|
}
|
|
9772
9799
|
declare module "libs/reach/feature/content/src/feedback/index" {
|
|
9773
9800
|
export * from "libs/reach/feature/content/src/feedback/ConfirmationSection";
|
|
@@ -9896,7 +9923,7 @@ declare module "libs/reach/feature/content/src/forms/DateRangeSlider" {
|
|
|
9896
9923
|
}
|
|
9897
9924
|
declare module "libs/reach/feature/content/src/forms/PeoplePickerDialog" {
|
|
9898
9925
|
import { FC } from 'react';
|
|
9899
|
-
import
|
|
9926
|
+
import { WrappedComponentProps } from 'react-intl';
|
|
9900
9927
|
import { SelectionMode } from 'office-ui-fabric-react';
|
|
9901
9928
|
import { Account, AccountType } from "libs/reach/util/common/src/index";
|
|
9902
9929
|
interface PeoplePickerDialogProps {
|
|
@@ -9904,7 +9931,7 @@ declare module "libs/reach/feature/content/src/forms/PeoplePickerDialog" {
|
|
|
9904
9931
|
onChange: (items: Account[]) => void;
|
|
9905
9932
|
onDismiss: () => void;
|
|
9906
9933
|
titleResource: string;
|
|
9907
|
-
intl?:
|
|
9934
|
+
intl?: WrappedComponentProps;
|
|
9908
9935
|
selectionMode?: SelectionMode;
|
|
9909
9936
|
allowMailItems?: boolean;
|
|
9910
9937
|
accountType: AccountType;
|
|
@@ -10009,6 +10036,7 @@ declare module "libs/reach/feature/content/src/posts/PostGroup" {
|
|
|
10009
10036
|
export const Group: import("styled-components").StyledComponent<typeof NavLink, import("styled-components").DefaultTheme, {}, never>;
|
|
10010
10037
|
}
|
|
10011
10038
|
declare module "libs/reach/feature/content/src/posts/PostDisplay" {
|
|
10039
|
+
import { FC } from 'react';
|
|
10012
10040
|
import { Post } from "libs/reach/feature/content/src/posts/utils";
|
|
10013
10041
|
import { Comment, Keyword, PaginatedList } from "libs/reach/util/common/src/index";
|
|
10014
10042
|
interface Props {
|
|
@@ -10031,7 +10059,7 @@ declare module "libs/reach/feature/content/src/posts/PostDisplay" {
|
|
|
10031
10059
|
onBeforeDelete?: (id: string) => unknown;
|
|
10032
10060
|
onAfterDelete?: (id: string) => unknown;
|
|
10033
10061
|
}
|
|
10034
|
-
export const PostDisplay:
|
|
10062
|
+
export const PostDisplay: FC<Props>;
|
|
10035
10063
|
}
|
|
10036
10064
|
declare module "libs/reach/feature/content/src/posts/PostGroupsSelector" {
|
|
10037
10065
|
import { FC } from 'react';
|