@livetiles/reach-plugin-types 0.4.0-preview.685 → 0.4.0-preview.686

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 +31 -20
  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[];
@@ -2898,7 +2897,6 @@ declare module "libs/reach/util/common/src/theme/ColorGenerator" {
2898
2897
  declare module "libs/reach/util/common/src/theme/ThemeService" {
2899
2898
  import { IPartialTheme } from 'office-ui-fabric-react';
2900
2899
  import { Theme } from "libs/reach/util/common/src/user/Subscription";
2901
- import * as wcag from 'wcag-contrast';
2902
2900
  export const defaultThemeColors: Theme;
2903
2901
  export const defaultPageBackgroundColor: string;
2904
2902
  export const defaultLightColor = "#ffffff";
@@ -2931,6 +2929,11 @@ declare module "libs/reach/util/common/src/theme/ThemeService" {
2931
2929
  neutralTertiary: string;
2932
2930
  neutralTertiaryAlt: string;
2933
2931
  neutralQuaternary: string;
2932
+ /**
2933
+ * Theme Service applies custom themes.
2934
+ * Accommodates overriding the custom UI Fabric default styles which
2935
+ * are not automatically applied (e.g. ms-bgColor-themePrimary) via load-themed-styles
2936
+ */
2934
2937
  neutralQuaternaryAlt: string;
2935
2938
  neutralLight: string;
2936
2939
  neutralLighter: string;
@@ -2998,7 +3001,7 @@ declare module "libs/reach/util/common/src/theme/ThemeService" {
2998
3001
  export function shouldUseDarkForegroundColor(bgColor: string): boolean;
2999
3002
  export function getContrastInfo(backgroundColor: string, foregroundColor: string): {
3000
3003
  contrast: string;
3001
- score: wcag.Score;
3004
+ score: import("wcag-contrast").Score;
3002
3005
  isGood: boolean;
3003
3006
  };
3004
3007
  }
@@ -4003,14 +4006,14 @@ declare module "libs/reach/ui/common/src/common/VerificationStatusIcon" {
4003
4006
  }>;
4004
4007
  }
4005
4008
  declare module "libs/reach/ui/common/src/common/animations/OpacityAnimation" {
4006
- import { CSSProperties } from 'react';
4009
+ import { CSSProperties, FC } from 'react';
4007
4010
  interface AnimationProps {
4008
4011
  enterDuration?: number;
4009
4012
  leaveDuration?: number;
4010
4013
  style?: CSSProperties;
4011
4014
  className?: string;
4012
4015
  }
4013
- export const OpacityAnimation: React.FC<AnimationProps>;
4016
+ export const OpacityAnimation: FC<AnimationProps>;
4014
4017
  }
4015
4018
  declare module "libs/reach/ui/common/src/common/buttons/AutoTranslateButton" {
4016
4019
  import { FC } from 'react';
@@ -4055,7 +4058,8 @@ declare module "libs/reach/ui/common/src/common/buttons/DefaultGoHomeButton" {
4055
4058
  export const DefaultGoHomeButton: FC;
4056
4059
  }
4057
4060
  declare module "libs/reach/ui/common/src/common/buttons/DefaultRefreshPageButton" {
4058
- export const DefaultRefreshPageButton: React.FC<{}>;
4061
+ import { FC } from 'react';
4062
+ export const DefaultRefreshPageButton: FC;
4059
4063
  }
4060
4064
  declare module "libs/reach/ui/common/src/common/buttons/DeleteAttachmentButton" {
4061
4065
  import { IconButton } from 'office-ui-fabric-react';
@@ -4069,13 +4073,14 @@ declare module "libs/reach/ui/common/src/common/buttons/ToggleAllButtons" {
4069
4073
  }>;
4070
4074
  }
4071
4075
  declare module "libs/reach/ui/common/src/common/buttons/TopActionButton" {
4076
+ import { FC } from 'react';
4072
4077
  import { NavLinkProps } from 'react-router-dom';
4073
4078
  interface Props extends NavLinkProps {
4074
4079
  iconName?: string;
4075
4080
  textKey?: string;
4076
4081
  className?: string;
4077
4082
  }
4078
- export const TopActionButton: import("styled-components").StyledComponent<import("react").FC<Props>, import("styled-components").DefaultTheme, {}, never>;
4083
+ export const TopActionButton: import("styled-components").StyledComponent<FC<Props>, import("styled-components").DefaultTheme, {}, never>;
4079
4084
  }
4080
4085
  declare module "libs/reach/ui/common/src/common/buttons/UnreadItemsToggler" {
4081
4086
  import { FC } from 'react';
@@ -4111,7 +4116,7 @@ declare module "libs/reach/ui/common/src/common/channels/ChannelTitle" {
4111
4116
  }
4112
4117
  declare module "libs/reach/ui/common/src/common/channels/ChannelItem" {
4113
4118
  import { UserChannelSubscription } from "libs/reach/util/common/src/index";
4114
- import { ReactNode } from 'react';
4119
+ import { FC, ReactNode } from 'react';
4115
4120
  export interface ChannelItemProps {
4116
4121
  channel: UserChannelSubscription;
4117
4122
  onRemove?: () => void;
@@ -4128,7 +4133,7 @@ declare module "libs/reach/ui/common/src/common/channels/ChannelItem" {
4128
4133
  unsubscribeTooltipResourceKey?: string;
4129
4134
  className?: string;
4130
4135
  }
4131
- export const ChannelItem: React.FC<ChannelItemProps>;
4136
+ export const ChannelItem: FC<ChannelItemProps>;
4132
4137
  }
4133
4138
  declare module "libs/reach/ui/common/src/common/channels/ChannelList" {
4134
4139
  import { FC } from 'react';
@@ -7270,13 +7275,14 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
7270
7275
  }>;
7271
7276
  }
7272
7277
  declare module "libs/reach/feature/content/src/common/banner/banner-image/BannerImage" {
7278
+ import { FC } from 'react';
7273
7279
  interface BannerImageProps {
7274
7280
  children?: any;
7275
7281
  className?: string;
7276
7282
  imageUrl: string;
7277
7283
  openImageUrl?: string;
7278
7284
  }
7279
- export const BannerImage: React.FC<BannerImageProps>;
7285
+ export const BannerImage: FC<BannerImageProps>;
7280
7286
  }
7281
7287
  declare module "libs/reach/feature/content/src/common/banner/ImageDetail" {
7282
7288
  import { Observable } from 'rxjs';
@@ -8390,6 +8396,7 @@ declare module "libs/reach/feature/content/src/common/cards/CardFooter" {
8390
8396
  export const CardFooterHost: import("styled-components").StyledComponent<"footer", import("styled-components").DefaultTheme, {}, never>;
8391
8397
  }
8392
8398
  declare module "libs/reach/feature/content/src/common/cards/CardBanner" {
8399
+ import { FC } from 'react';
8393
8400
  import { ItemResourceTypes } from "libs/reach/util/common/src/index";
8394
8401
  import { PublishableItem } from "libs/reach/util/common/src/index";
8395
8402
  interface Props {
@@ -8397,7 +8404,7 @@ declare module "libs/reach/feature/content/src/common/cards/CardBanner" {
8397
8404
  item: PublishableItem;
8398
8405
  itemResourceType: ItemResourceTypes;
8399
8406
  }
8400
- export const CardBanner: React.FC<Props>;
8407
+ export const CardBanner: FC<Props>;
8401
8408
  }
8402
8409
  declare module "libs/reach/feature/content/src/common/cards/Card" {
8403
8410
  import { FC, ReactNode } from 'react';
@@ -8629,6 +8636,7 @@ declare module "libs/reach/feature/content/src/pages/index" {
8629
8636
  export * from "libs/reach/feature/content/src/pages/utils";
8630
8637
  }
8631
8638
  declare module "libs/reach/feature/content/src/news/DateInfo" {
8639
+ import { FC } from 'react';
8632
8640
  import { PublishableItem } from "libs/reach/util/common/src/index";
8633
8641
  interface DateInfoProps {
8634
8642
  item: Partial<PublishableItem>;
@@ -8640,15 +8648,16 @@ declare module "libs/reach/feature/content/src/news/DateInfo" {
8640
8648
  Published = 0,
8641
8649
  Modified = 1
8642
8650
  }
8643
- export const DateInfo: React.FC<DateInfoProps>;
8651
+ export const DateInfo: FC<DateInfoProps>;
8644
8652
  }
8645
8653
  declare module "libs/reach/feature/content/src/news/ItemMetaInfo" {
8654
+ import { FC } from 'react';
8646
8655
  import { SchedulableItemChannel } from "libs/reach/util/common/src/index";
8647
8656
  import { DateMode } from "libs/reach/feature/content/src/news/DateInfo";
8648
8657
  import { Account } from "libs/reach/util/common/src/index";
8649
8658
  import { PublishableItem } from "libs/reach/util/common/src/index";
8650
8659
  export const getAuthor: (item: Partial<PublishableItem>) => Account;
8651
- export const ItemMetaInfo: React.FC<{
8660
+ export const ItemMetaInfo: FC<{
8652
8661
  item: Partial<PublishableItem>;
8653
8662
  className?: string;
8654
8663
  expiryDate?: string;
@@ -9448,8 +9457,8 @@ declare module "libs/reach/feature/content/src/common/detail/pages/controls/Page
9448
9457
  }
9449
9458
  declare module "libs/reach/feature/content/src/common/detail/pages/usePageDetailSearchHandler" {
9450
9459
  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): {
9460
+ import { History } from 'history';
9461
+ export function usePageDetailSearchHandler(baseRoute: string, page: PageItem, history: History): {
9453
9462
  showSearch: boolean;
9454
9463
  handleSearchTextChange: (searchText: string) => void;
9455
9464
  redirectToSearchPage: (searchText: string) => void;
@@ -9660,8 +9669,9 @@ declare module "libs/reach/feature/content/src/common/detail/controls/PageViewTr
9660
9669
  }>;
9661
9670
  }
9662
9671
  declare module "libs/reach/feature/content/src/common/StateIcon" {
9672
+ import { FC } from 'react';
9663
9673
  import { WorkflowStatus } from "libs/reach/util/common/src/index";
9664
- export const StateIcon: React.FC<{
9674
+ export const StateIcon: FC<{
9665
9675
  status: WorkflowStatus;
9666
9676
  isActive?: boolean;
9667
9677
  width?: number;
@@ -9896,7 +9906,7 @@ declare module "libs/reach/feature/content/src/forms/DateRangeSlider" {
9896
9906
  }
9897
9907
  declare module "libs/reach/feature/content/src/forms/PeoplePickerDialog" {
9898
9908
  import { FC } from 'react';
9899
- import * as ReactIntl from 'react-intl';
9909
+ import { WrappedComponentProps } from 'react-intl';
9900
9910
  import { SelectionMode } from 'office-ui-fabric-react';
9901
9911
  import { Account, AccountType } from "libs/reach/util/common/src/index";
9902
9912
  interface PeoplePickerDialogProps {
@@ -9904,7 +9914,7 @@ declare module "libs/reach/feature/content/src/forms/PeoplePickerDialog" {
9904
9914
  onChange: (items: Account[]) => void;
9905
9915
  onDismiss: () => void;
9906
9916
  titleResource: string;
9907
- intl?: ReactIntl.WrappedComponentProps;
9917
+ intl?: WrappedComponentProps;
9908
9918
  selectionMode?: SelectionMode;
9909
9919
  allowMailItems?: boolean;
9910
9920
  accountType: AccountType;
@@ -10009,6 +10019,7 @@ declare module "libs/reach/feature/content/src/posts/PostGroup" {
10009
10019
  export const Group: import("styled-components").StyledComponent<typeof NavLink, import("styled-components").DefaultTheme, {}, never>;
10010
10020
  }
10011
10021
  declare module "libs/reach/feature/content/src/posts/PostDisplay" {
10022
+ import { FC } from 'react';
10012
10023
  import { Post } from "libs/reach/feature/content/src/posts/utils";
10013
10024
  import { Comment, Keyword, PaginatedList } from "libs/reach/util/common/src/index";
10014
10025
  interface Props {
@@ -10031,7 +10042,7 @@ declare module "libs/reach/feature/content/src/posts/PostDisplay" {
10031
10042
  onBeforeDelete?: (id: string) => unknown;
10032
10043
  onAfterDelete?: (id: string) => unknown;
10033
10044
  }
10034
- export const PostDisplay: React.FC<Props>;
10045
+ export const PostDisplay: FC<Props>;
10035
10046
  }
10036
10047
  declare module "libs/reach/feature/content/src/posts/PostGroupsSelector" {
10037
10048
  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.685",
7
+ "version": "0.4.0-preview.686",
8
8
  "dependencies": {}
9
9
  }