@livetiles/reach-plugin-types 0.4.0-preview.684 → 0.4.0-preview.687

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +39 -22
  2. 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/keywords/SubscriptionContext" {
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/keywords/SubscriptionContext";
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: React.FC<AnimationProps>;
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
- export const DefaultRefreshPageButton: React.FC<{}>;
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<import("react").FC<Props>, import("styled-components").DefaultTheme, {}, never>;
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: React.FC<ChannelItemProps>;
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';
@@ -7270,13 +7281,14 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
7270
7281
  }>;
7271
7282
  }
7272
7283
  declare module "libs/reach/feature/content/src/common/banner/banner-image/BannerImage" {
7284
+ import { FC } from 'react';
7273
7285
  interface BannerImageProps {
7274
7286
  children?: any;
7275
7287
  className?: string;
7276
7288
  imageUrl: string;
7277
7289
  openImageUrl?: string;
7278
7290
  }
7279
- export const BannerImage: React.FC<BannerImageProps>;
7291
+ export const BannerImage: FC<BannerImageProps>;
7280
7292
  }
7281
7293
  declare module "libs/reach/feature/content/src/common/banner/ImageDetail" {
7282
7294
  import { Observable } from 'rxjs';
@@ -8390,6 +8402,7 @@ declare module "libs/reach/feature/content/src/common/cards/CardFooter" {
8390
8402
  export const CardFooterHost: import("styled-components").StyledComponent<"footer", import("styled-components").DefaultTheme, {}, never>;
8391
8403
  }
8392
8404
  declare module "libs/reach/feature/content/src/common/cards/CardBanner" {
8405
+ import { FC } from 'react';
8393
8406
  import { ItemResourceTypes } from "libs/reach/util/common/src/index";
8394
8407
  import { PublishableItem } from "libs/reach/util/common/src/index";
8395
8408
  interface Props {
@@ -8397,7 +8410,7 @@ declare module "libs/reach/feature/content/src/common/cards/CardBanner" {
8397
8410
  item: PublishableItem;
8398
8411
  itemResourceType: ItemResourceTypes;
8399
8412
  }
8400
- export const CardBanner: React.FC<Props>;
8413
+ export const CardBanner: FC<Props>;
8401
8414
  }
8402
8415
  declare module "libs/reach/feature/content/src/common/cards/Card" {
8403
8416
  import { FC, ReactNode } from 'react';
@@ -8629,6 +8642,7 @@ declare module "libs/reach/feature/content/src/pages/index" {
8629
8642
  export * from "libs/reach/feature/content/src/pages/utils";
8630
8643
  }
8631
8644
  declare module "libs/reach/feature/content/src/news/DateInfo" {
8645
+ import { FC } from 'react';
8632
8646
  import { PublishableItem } from "libs/reach/util/common/src/index";
8633
8647
  interface DateInfoProps {
8634
8648
  item: Partial<PublishableItem>;
@@ -8640,15 +8654,16 @@ declare module "libs/reach/feature/content/src/news/DateInfo" {
8640
8654
  Published = 0,
8641
8655
  Modified = 1
8642
8656
  }
8643
- export const DateInfo: React.FC<DateInfoProps>;
8657
+ export const DateInfo: FC<DateInfoProps>;
8644
8658
  }
8645
8659
  declare module "libs/reach/feature/content/src/news/ItemMetaInfo" {
8660
+ import { FC } from 'react';
8646
8661
  import { SchedulableItemChannel } from "libs/reach/util/common/src/index";
8647
8662
  import { DateMode } from "libs/reach/feature/content/src/news/DateInfo";
8648
8663
  import { Account } from "libs/reach/util/common/src/index";
8649
8664
  import { PublishableItem } from "libs/reach/util/common/src/index";
8650
8665
  export const getAuthor: (item: Partial<PublishableItem>) => Account;
8651
- export const ItemMetaInfo: React.FC<{
8666
+ export const ItemMetaInfo: FC<{
8652
8667
  item: Partial<PublishableItem>;
8653
8668
  className?: string;
8654
8669
  expiryDate?: string;
@@ -9448,8 +9463,8 @@ declare module "libs/reach/feature/content/src/common/detail/pages/controls/Page
9448
9463
  }
9449
9464
  declare module "libs/reach/feature/content/src/common/detail/pages/usePageDetailSearchHandler" {
9450
9465
  import { PageItem } from "libs/reach/util/common/src/index";
9451
- import * as H from 'history';
9452
- export function usePageDetailSearchHandler(baseRoute: string, page: PageItem, history: H.History): {
9466
+ import { History } from 'history';
9467
+ export function usePageDetailSearchHandler(baseRoute: string, page: PageItem, history: History): {
9453
9468
  showSearch: boolean;
9454
9469
  handleSearchTextChange: (searchText: string) => void;
9455
9470
  redirectToSearchPage: (searchText: string) => void;
@@ -9660,8 +9675,9 @@ declare module "libs/reach/feature/content/src/common/detail/controls/PageViewTr
9660
9675
  }>;
9661
9676
  }
9662
9677
  declare module "libs/reach/feature/content/src/common/StateIcon" {
9678
+ import { FC } from 'react';
9663
9679
  import { WorkflowStatus } from "libs/reach/util/common/src/index";
9664
- export const StateIcon: React.FC<{
9680
+ export const StateIcon: FC<{
9665
9681
  status: WorkflowStatus;
9666
9682
  isActive?: boolean;
9667
9683
  width?: number;
@@ -9896,7 +9912,7 @@ declare module "libs/reach/feature/content/src/forms/DateRangeSlider" {
9896
9912
  }
9897
9913
  declare module "libs/reach/feature/content/src/forms/PeoplePickerDialog" {
9898
9914
  import { FC } from 'react';
9899
- import * as ReactIntl from 'react-intl';
9915
+ import { WrappedComponentProps } from 'react-intl';
9900
9916
  import { SelectionMode } from 'office-ui-fabric-react';
9901
9917
  import { Account, AccountType } from "libs/reach/util/common/src/index";
9902
9918
  interface PeoplePickerDialogProps {
@@ -9904,7 +9920,7 @@ declare module "libs/reach/feature/content/src/forms/PeoplePickerDialog" {
9904
9920
  onChange: (items: Account[]) => void;
9905
9921
  onDismiss: () => void;
9906
9922
  titleResource: string;
9907
- intl?: ReactIntl.WrappedComponentProps;
9923
+ intl?: WrappedComponentProps;
9908
9924
  selectionMode?: SelectionMode;
9909
9925
  allowMailItems?: boolean;
9910
9926
  accountType: AccountType;
@@ -10009,6 +10025,7 @@ declare module "libs/reach/feature/content/src/posts/PostGroup" {
10009
10025
  export const Group: import("styled-components").StyledComponent<typeof NavLink, import("styled-components").DefaultTheme, {}, never>;
10010
10026
  }
10011
10027
  declare module "libs/reach/feature/content/src/posts/PostDisplay" {
10028
+ import { FC } from 'react';
10012
10029
  import { Post } from "libs/reach/feature/content/src/posts/utils";
10013
10030
  import { Comment, Keyword, PaginatedList } from "libs/reach/util/common/src/index";
10014
10031
  interface Props {
@@ -10031,7 +10048,7 @@ declare module "libs/reach/feature/content/src/posts/PostDisplay" {
10031
10048
  onBeforeDelete?: (id: string) => unknown;
10032
10049
  onAfterDelete?: (id: string) => unknown;
10033
10050
  }
10034
- export const PostDisplay: React.FC<Props>;
10051
+ export const PostDisplay: FC<Props>;
10035
10052
  }
10036
10053
  declare module "libs/reach/feature/content/src/posts/PostGroupsSelector" {
10037
10054
  import { FC } from 'react';
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.4.0-preview.684",
7
+ "version": "0.4.0-preview.687",
8
8
  "dependencies": {}
9
9
  }