@livetiles/reach-plugin-types 0.4.0-preview.104 → 0.4.0-preview.108

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 +54 -15
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -1707,6 +1707,7 @@ declare module "libs/reach/util/common/src/content/VideoSource" {
1707
1707
  GenericUrl = 3,
1708
1708
  Kaltura = 4
1709
1709
  }
1710
+ export function convertStringToVideoSource(videoSource: string): VideoSource;
1710
1711
  }
1711
1712
  declare module "libs/reach/util/common/src/content/BaseItem" {
1712
1713
  import { ItemStatistics } from "libs/reach/util/common/src/content/ItemStatistics";
@@ -2719,6 +2720,16 @@ declare module "libs/reach/util/common/src/content/useClearUnreadItems" {
2719
2720
  }
2720
2721
  export function useClearUnreadItems(itemType: ItemResourceTypes, handlers?: onMarkAsReadHandlers): () => Promise<void>;
2721
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
+ }
2722
2733
  declare module "libs/reach/util/common/src/content/index" {
2723
2734
  export * from "libs/reach/util/common/src/content/Attachment";
2724
2735
  export * from "libs/reach/util/common/src/content/GraphQLAttachmentType";
@@ -2742,6 +2753,8 @@ declare module "libs/reach/util/common/src/content/index" {
2742
2753
  export * from "libs/reach/util/common/src/content/useFileApi";
2743
2754
  export * from "libs/reach/util/common/src/content/content-keyword-utils";
2744
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";
2745
2758
  }
2746
2759
  declare module "libs/reach/util/common/src/Variables" {
2747
2760
  export const maxContentWidth = 985;
@@ -3514,18 +3527,6 @@ declare module "libs/reach/ui/common/src/common/GroupedByDateTitles" {
3514
3527
  date: string;
3515
3528
  }>;
3516
3529
  }
3517
- declare module "libs/reach/ui/common/src/common/IconHeaderButton" {
3518
- import { FC } from 'react';
3519
- export const IconHeaderButton: FC<{
3520
- icon: string;
3521
- isActive?: boolean;
3522
- disabled?: boolean;
3523
- tooltipResourceKey?: string;
3524
- onClick?: (ref: React.RefObject<Element>) => unknown;
3525
- link?: string;
3526
- className?: string;
3527
- }>;
3528
- }
3529
3530
  declare module "libs/reach/ui/common/src/common/IconLabel" {
3530
3531
  import { FC, ReactNode } from 'react';
3531
3532
  export const IconLabel: FC<{
@@ -3640,6 +3641,18 @@ declare module "libs/reach/ui/common/src/common/Prompt" {
3640
3641
  }
3641
3642
  export const Prompt: FC<Props>;
3642
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
+ }
3643
3656
  declare module "libs/reach/ui/common/src/common/toolbar/ToolbarIconButtonWithToolTip" {
3644
3657
  import { FC } from 'react';
3645
3658
  export interface ToolbarIconButtonProps {
@@ -3674,6 +3687,7 @@ declare module "libs/reach/ui/common/src/common/Search" {
3674
3687
  onSearchTextChange?: (text: string) => void;
3675
3688
  onExecuteSearch?: (text: string) => void;
3676
3689
  searchText?: string;
3690
+ showSearchBoxInput?: boolean;
3677
3691
  }
3678
3692
  export const SearchBox: FC<SearchBoxProps & {
3679
3693
  onSearchInputFieldVisibilityChanged?: (isVisible: boolean) => void;
@@ -3799,6 +3813,21 @@ declare module "libs/reach/ui/common/src/common/buttons/TopActionButton" {
3799
3813
  }
3800
3814
  export const TopActionButton: import("styled-components").StyledComponent<import("react").FC<Props>, import("styled-components").DefaultTheme, {}, never>;
3801
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
+ }
3802
3831
  declare module "libs/reach/ui/common/src/common/channels/ChannelTitle" {
3803
3832
  import { FC } from 'react';
3804
3833
  import { Channel } from "libs/reach/util/common/src/index";
@@ -4370,7 +4399,6 @@ declare module "libs/reach/ui/common/src/common/index" {
4370
4399
  export * from "libs/reach/ui/common/src/common/FloatingActionButton";
4371
4400
  export * from "libs/reach/ui/common/src/common/FormattedMessageWithStyle";
4372
4401
  export * from "libs/reach/ui/common/src/common/GroupedByDateTitles";
4373
- export * from "libs/reach/ui/common/src/common/IconHeaderButton";
4374
4402
  export * from "libs/reach/ui/common/src/common/IconLabel";
4375
4403
  export * from "libs/reach/ui/common/src/common/ItemStatisticsCache";
4376
4404
  export * from "libs/reach/ui/common/src/common/KeywordTitle";
@@ -4401,6 +4429,9 @@ declare module "libs/reach/ui/common/src/common/index" {
4401
4429
  export * from "libs/reach/ui/common/src/common/buttons/DeleteAttachmentButton";
4402
4430
  export * from "libs/reach/ui/common/src/common/buttons/ToggleAllButtons";
4403
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";
4404
4435
  export * from "libs/reach/ui/common/src/common/channels/ChannelItem";
4405
4436
  export * from "libs/reach/ui/common/src/common/channels/ChannelList";
4406
4437
  export * from "libs/reach/ui/common/src/common/channels/ChannelSelector";
@@ -4509,10 +4540,10 @@ declare module "apps/reach-app/src/app/chrome/CloseButton" {
4509
4540
  export function useEscapeOnClose(onClose: Function): void;
4510
4541
  }
4511
4542
  declare module "apps/reach-app/src/app/chrome/Header" {
4512
- import { FC, ReactNode } from 'react';
4543
+ import { FC, Dispatch, SetStateAction, ReactNode, HTMLProps } from 'react';
4513
4544
  import './Header.scss';
4514
4545
  import { SearchBoxProps } from "libs/reach/ui/common/src/index";
4515
- interface Props extends React.HTMLProps<HTMLElement>, SearchBoxProps {
4546
+ interface Props extends HTMLProps<HTMLElement>, SearchBoxProps {
4516
4547
  iconLeft?: string;
4517
4548
  onToggleLeft?: () => void;
4518
4549
  onToggleRight?: () => void;
@@ -4528,6 +4559,14 @@ declare module "apps/reach-app/src/app/chrome/Header" {
4528
4559
  disableGoBack?: boolean;
4529
4560
  route?: string;
4530
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
+ }>;
4531
4570
  export const Header: FC<Props>;
4532
4571
  }
4533
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.104",
7
+ "version": "0.4.0-preview.108",
8
8
  "dependencies": {}
9
9
  }