@livetiles/reach-plugin-types 0.4.0-preview.681 → 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 +36 -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';
@@ -8013,6 +8019,11 @@ declare module "libs/reach/feature/content/src/common/item-tile/EmbeddedObjectTi
8013
8019
  groupIds?: string[];
8014
8020
  className?: string;
8015
8021
  }>;
8022
+ export const EmbeddedObjectAccessDeniedTile: FC<{
8023
+ backgroundColor?: string;
8024
+ buttons?: ReactNode;
8025
+ className?: string;
8026
+ }>;
8016
8027
  }
8017
8028
  declare module "libs/reach/feature/content/src/common/EmbeddedObjectList" {
8018
8029
  import { FC } from 'react';
@@ -8385,6 +8396,7 @@ declare module "libs/reach/feature/content/src/common/cards/CardFooter" {
8385
8396
  export const CardFooterHost: import("styled-components").StyledComponent<"footer", import("styled-components").DefaultTheme, {}, never>;
8386
8397
  }
8387
8398
  declare module "libs/reach/feature/content/src/common/cards/CardBanner" {
8399
+ import { FC } from 'react';
8388
8400
  import { ItemResourceTypes } from "libs/reach/util/common/src/index";
8389
8401
  import { PublishableItem } from "libs/reach/util/common/src/index";
8390
8402
  interface Props {
@@ -8392,7 +8404,7 @@ declare module "libs/reach/feature/content/src/common/cards/CardBanner" {
8392
8404
  item: PublishableItem;
8393
8405
  itemResourceType: ItemResourceTypes;
8394
8406
  }
8395
- export const CardBanner: React.FC<Props>;
8407
+ export const CardBanner: FC<Props>;
8396
8408
  }
8397
8409
  declare module "libs/reach/feature/content/src/common/cards/Card" {
8398
8410
  import { FC, ReactNode } from 'react';
@@ -8624,6 +8636,7 @@ declare module "libs/reach/feature/content/src/pages/index" {
8624
8636
  export * from "libs/reach/feature/content/src/pages/utils";
8625
8637
  }
8626
8638
  declare module "libs/reach/feature/content/src/news/DateInfo" {
8639
+ import { FC } from 'react';
8627
8640
  import { PublishableItem } from "libs/reach/util/common/src/index";
8628
8641
  interface DateInfoProps {
8629
8642
  item: Partial<PublishableItem>;
@@ -8635,15 +8648,16 @@ declare module "libs/reach/feature/content/src/news/DateInfo" {
8635
8648
  Published = 0,
8636
8649
  Modified = 1
8637
8650
  }
8638
- export const DateInfo: React.FC<DateInfoProps>;
8651
+ export const DateInfo: FC<DateInfoProps>;
8639
8652
  }
8640
8653
  declare module "libs/reach/feature/content/src/news/ItemMetaInfo" {
8654
+ import { FC } from 'react';
8641
8655
  import { SchedulableItemChannel } from "libs/reach/util/common/src/index";
8642
8656
  import { DateMode } from "libs/reach/feature/content/src/news/DateInfo";
8643
8657
  import { Account } from "libs/reach/util/common/src/index";
8644
8658
  import { PublishableItem } from "libs/reach/util/common/src/index";
8645
8659
  export const getAuthor: (item: Partial<PublishableItem>) => Account;
8646
- export const ItemMetaInfo: React.FC<{
8660
+ export const ItemMetaInfo: FC<{
8647
8661
  item: Partial<PublishableItem>;
8648
8662
  className?: string;
8649
8663
  expiryDate?: string;
@@ -9443,8 +9457,8 @@ declare module "libs/reach/feature/content/src/common/detail/pages/controls/Page
9443
9457
  }
9444
9458
  declare module "libs/reach/feature/content/src/common/detail/pages/usePageDetailSearchHandler" {
9445
9459
  import { PageItem } from "libs/reach/util/common/src/index";
9446
- import * as H from 'history';
9447
- 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): {
9448
9462
  showSearch: boolean;
9449
9463
  handleSearchTextChange: (searchText: string) => void;
9450
9464
  redirectToSearchPage: (searchText: string) => void;
@@ -9655,8 +9669,9 @@ declare module "libs/reach/feature/content/src/common/detail/controls/PageViewTr
9655
9669
  }>;
9656
9670
  }
9657
9671
  declare module "libs/reach/feature/content/src/common/StateIcon" {
9672
+ import { FC } from 'react';
9658
9673
  import { WorkflowStatus } from "libs/reach/util/common/src/index";
9659
- export const StateIcon: React.FC<{
9674
+ export const StateIcon: FC<{
9660
9675
  status: WorkflowStatus;
9661
9676
  isActive?: boolean;
9662
9677
  width?: number;
@@ -9891,7 +9906,7 @@ declare module "libs/reach/feature/content/src/forms/DateRangeSlider" {
9891
9906
  }
9892
9907
  declare module "libs/reach/feature/content/src/forms/PeoplePickerDialog" {
9893
9908
  import { FC } from 'react';
9894
- import * as ReactIntl from 'react-intl';
9909
+ import { WrappedComponentProps } from 'react-intl';
9895
9910
  import { SelectionMode } from 'office-ui-fabric-react';
9896
9911
  import { Account, AccountType } from "libs/reach/util/common/src/index";
9897
9912
  interface PeoplePickerDialogProps {
@@ -9899,7 +9914,7 @@ declare module "libs/reach/feature/content/src/forms/PeoplePickerDialog" {
9899
9914
  onChange: (items: Account[]) => void;
9900
9915
  onDismiss: () => void;
9901
9916
  titleResource: string;
9902
- intl?: ReactIntl.WrappedComponentProps;
9917
+ intl?: WrappedComponentProps;
9903
9918
  selectionMode?: SelectionMode;
9904
9919
  allowMailItems?: boolean;
9905
9920
  accountType: AccountType;
@@ -10004,6 +10019,7 @@ declare module "libs/reach/feature/content/src/posts/PostGroup" {
10004
10019
  export const Group: import("styled-components").StyledComponent<typeof NavLink, import("styled-components").DefaultTheme, {}, never>;
10005
10020
  }
10006
10021
  declare module "libs/reach/feature/content/src/posts/PostDisplay" {
10022
+ import { FC } from 'react';
10007
10023
  import { Post } from "libs/reach/feature/content/src/posts/utils";
10008
10024
  import { Comment, Keyword, PaginatedList } from "libs/reach/util/common/src/index";
10009
10025
  interface Props {
@@ -10026,7 +10042,7 @@ declare module "libs/reach/feature/content/src/posts/PostDisplay" {
10026
10042
  onBeforeDelete?: (id: string) => unknown;
10027
10043
  onAfterDelete?: (id: string) => unknown;
10028
10044
  }
10029
- export const PostDisplay: React.FC<Props>;
10045
+ export const PostDisplay: FC<Props>;
10030
10046
  }
10031
10047
  declare module "libs/reach/feature/content/src/posts/PostGroupsSelector" {
10032
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.681",
7
+ "version": "0.4.0-preview.686",
8
8
  "dependencies": {}
9
9
  }