@livetiles/reach-plugin-types 0.4.0-preview.105 → 0.4.0-preview.106

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 +52 -14
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -2720,6 +2720,16 @@ declare module "libs/reach/util/common/src/content/useClearUnreadItems" {
2720
2720
  }
2721
2721
  export function useClearUnreadItems(itemType: ItemResourceTypes, handlers?: onMarkAsReadHandlers): () => Promise<void>;
2722
2722
  }
2723
+ declare module "libs/reach/util/common/src/content/useClearUnreadOnlyFilter" {
2724
+ export function useClearUnreadOnlyFilter(): {
2725
+ clearUnreadOnlyFilter: () => void;
2726
+ };
2727
+ }
2728
+ declare module "libs/reach/util/common/src/content/useUnreadItemsTogglerHandler" {
2729
+ export function useUnreadItemsTogglerHandler(): {
2730
+ toggleUnreadItems: () => void;
2731
+ };
2732
+ }
2723
2733
  declare module "libs/reach/util/common/src/content/index" {
2724
2734
  export * from "libs/reach/util/common/src/content/Attachment";
2725
2735
  export * from "libs/reach/util/common/src/content/GraphQLAttachmentType";
@@ -2743,6 +2753,8 @@ declare module "libs/reach/util/common/src/content/index" {
2743
2753
  export * from "libs/reach/util/common/src/content/useFileApi";
2744
2754
  export * from "libs/reach/util/common/src/content/content-keyword-utils";
2745
2755
  export * from "libs/reach/util/common/src/content/useClearUnreadItems";
2756
+ export * from "libs/reach/util/common/src/content/useClearUnreadOnlyFilter";
2757
+ export * from "libs/reach/util/common/src/content/useUnreadItemsTogglerHandler";
2746
2758
  }
2747
2759
  declare module "libs/reach/util/common/src/Variables" {
2748
2760
  export const maxContentWidth = 985;
@@ -3515,18 +3527,6 @@ declare module "libs/reach/ui/common/src/common/GroupedByDateTitles" {
3515
3527
  date: string;
3516
3528
  }>;
3517
3529
  }
3518
- declare module "libs/reach/ui/common/src/common/IconHeaderButton" {
3519
- import { FC } from 'react';
3520
- export const IconHeaderButton: FC<{
3521
- icon: string;
3522
- isActive?: boolean;
3523
- disabled?: boolean;
3524
- tooltipResourceKey?: string;
3525
- onClick?: (ref: React.RefObject<Element>) => unknown;
3526
- link?: string;
3527
- className?: string;
3528
- }>;
3529
- }
3530
3530
  declare module "libs/reach/ui/common/src/common/IconLabel" {
3531
3531
  import { FC, ReactNode } from 'react';
3532
3532
  export const IconLabel: FC<{
@@ -3641,6 +3641,18 @@ declare module "libs/reach/ui/common/src/common/Prompt" {
3641
3641
  }
3642
3642
  export const Prompt: FC<Props>;
3643
3643
  }
3644
+ declare module "libs/reach/ui/common/src/common/buttons/IconHeaderButton" {
3645
+ import { FC } from 'react';
3646
+ export const IconHeaderButton: FC<{
3647
+ icon: string;
3648
+ isActive?: boolean;
3649
+ disabled?: boolean;
3650
+ tooltipResourceKey?: string;
3651
+ onClick?: (ref: React.RefObject<Element>) => unknown;
3652
+ link?: string;
3653
+ className?: string;
3654
+ }>;
3655
+ }
3644
3656
  declare module "libs/reach/ui/common/src/common/toolbar/ToolbarIconButtonWithToolTip" {
3645
3657
  import { FC } from 'react';
3646
3658
  export interface ToolbarIconButtonProps {
@@ -3675,6 +3687,7 @@ declare module "libs/reach/ui/common/src/common/Search" {
3675
3687
  onSearchTextChange?: (text: string) => void;
3676
3688
  onExecuteSearch?: (text: string) => void;
3677
3689
  searchText?: string;
3690
+ showSearchBoxInput?: boolean;
3678
3691
  }
3679
3692
  export const SearchBox: FC<SearchBoxProps & {
3680
3693
  onSearchInputFieldVisibilityChanged?: (isVisible: boolean) => void;
@@ -3800,6 +3813,21 @@ declare module "libs/reach/ui/common/src/common/buttons/TopActionButton" {
3800
3813
  }
3801
3814
  export const TopActionButton: import("styled-components").StyledComponent<import("react").FC<Props>, import("styled-components").DefaultTheme, {}, never>;
3802
3815
  }
3816
+ declare module "libs/reach/ui/common/src/common/buttons/UnreadItemsToggler" {
3817
+ import { FC } from 'react';
3818
+ export const UnreadItemsToggler: FC<{
3819
+ disabled: boolean;
3820
+ className?: string;
3821
+ }>;
3822
+ }
3823
+ declare module "libs/reach/ui/common/src/common/buttons/HeaderMenuButton" {
3824
+ import { FC } from 'react';
3825
+ import { IContextualMenuItem } from 'office-ui-fabric-react';
3826
+ export const HeaderMenuButton: FC<{
3827
+ items: IContextualMenuItem[];
3828
+ className?: string;
3829
+ }>;
3830
+ }
3803
3831
  declare module "libs/reach/ui/common/src/common/channels/ChannelTitle" {
3804
3832
  import { FC } from 'react';
3805
3833
  import { Channel } from "libs/reach/util/common/src/index";
@@ -4371,7 +4399,6 @@ declare module "libs/reach/ui/common/src/common/index" {
4371
4399
  export * from "libs/reach/ui/common/src/common/FloatingActionButton";
4372
4400
  export * from "libs/reach/ui/common/src/common/FormattedMessageWithStyle";
4373
4401
  export * from "libs/reach/ui/common/src/common/GroupedByDateTitles";
4374
- export * from "libs/reach/ui/common/src/common/IconHeaderButton";
4375
4402
  export * from "libs/reach/ui/common/src/common/IconLabel";
4376
4403
  export * from "libs/reach/ui/common/src/common/ItemStatisticsCache";
4377
4404
  export * from "libs/reach/ui/common/src/common/KeywordTitle";
@@ -4402,6 +4429,9 @@ declare module "libs/reach/ui/common/src/common/index" {
4402
4429
  export * from "libs/reach/ui/common/src/common/buttons/DeleteAttachmentButton";
4403
4430
  export * from "libs/reach/ui/common/src/common/buttons/ToggleAllButtons";
4404
4431
  export * from "libs/reach/ui/common/src/common/buttons/TopActionButton";
4432
+ export * from "libs/reach/ui/common/src/common/buttons/UnreadItemsToggler";
4433
+ export * from "libs/reach/ui/common/src/common/buttons/IconHeaderButton";
4434
+ export * from "libs/reach/ui/common/src/common/buttons/HeaderMenuButton";
4405
4435
  export * from "libs/reach/ui/common/src/common/channels/ChannelItem";
4406
4436
  export * from "libs/reach/ui/common/src/common/channels/ChannelList";
4407
4437
  export * from "libs/reach/ui/common/src/common/channels/ChannelSelector";
@@ -4510,7 +4540,7 @@ declare module "apps/reach-app/src/app/chrome/CloseButton" {
4510
4540
  export function useEscapeOnClose(onClose: Function): void;
4511
4541
  }
4512
4542
  declare module "apps/reach-app/src/app/chrome/Header" {
4513
- import { FC, ReactNode } from 'react';
4543
+ import { FC, Dispatch, SetStateAction, ReactNode } from 'react';
4514
4544
  import './Header.scss';
4515
4545
  import { SearchBoxProps } from "libs/reach/ui/common/src/index";
4516
4546
  interface Props extends React.HTMLProps<HTMLElement>, SearchBoxProps {
@@ -4529,6 +4559,14 @@ declare module "apps/reach-app/src/app/chrome/Header" {
4529
4559
  disableGoBack?: boolean;
4530
4560
  route?: string;
4531
4561
  }
4562
+ export interface HeaderContextType {
4563
+ setIsSearchInputFieldVisible: Dispatch<SetStateAction<boolean>>;
4564
+ isSearchInputFieldVisible: boolean;
4565
+ }
4566
+ export const HeaderContext: import("react").Context<HeaderContextType>;
4567
+ export const HeaderContextProvider: FC<{
4568
+ children: ReactNode;
4569
+ }>;
4532
4570
  export const Header: FC<Props>;
4533
4571
  }
4534
4572
  declare module "apps/reach-app/src/app/chrome/FloatingPageActions" {
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.105",
7
+ "version": "0.4.0-preview.106",
8
8
  "dependencies": {}
9
9
  }