@livetiles/reach-plugin-types 0.4.0-preview.706 → 0.4.0-preview.709

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 +14 -0
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -4510,6 +4510,10 @@ declare module "libs/reach/ui/common/src/common/toolbar/ToolbarMarkAllAsReadButt
4510
4510
  }
4511
4511
  export const ToolbarMarkAllNewsAsReadButton: FC<ToolbarMarkAllItemsAsReadButtonProps>;
4512
4512
  export const ToolbarMarkAllEventsAsReadButton: FC<ToolbarMarkAllItemsAsReadButtonProps>;
4513
+ export const ToolbarMarkAllAsReadButton: FC<{
4514
+ handler: () => Promise<void>;
4515
+ disabled?: boolean;
4516
+ }>;
4513
4517
  }
4514
4518
  declare module "libs/reach/ui/common/src/common/toolbar/ToolbarUnreadItemsButton" {
4515
4519
  import { FC } from 'react';
@@ -11621,6 +11625,15 @@ declare module "libs/reach/feature/content/src/stream/useEventsStreamDataLoader"
11621
11625
  export function useEventsStreamDataLoader(filter?: EventFilterDefinition, searchText?: string): ItemLoader<EventStreamItem, number>;
11622
11626
  export const EVENTS_QUERY: (includeAllItems: boolean, whereConditions?: string, sortByAscending?: boolean) => import("@apollo/client").DocumentNode;
11623
11627
  }
11628
+ declare module "libs/reach/feature/content/src/stream/useMarkStreamItemsAsRead" {
11629
+ import { ItemResourceTypes } from "libs/reach/util/common/src/index";
11630
+ import { StreamFilterDefinition } from "libs/reach/feature/content/src/stream/useStreamItemsQuery";
11631
+ export interface onMarkAsReadHandlers {
11632
+ onStarted?: () => unknown;
11633
+ onFinished?: () => unknown;
11634
+ }
11635
+ export function useMarkSteamItemsAsRead(itemType: ItemResourceTypes, filter?: StreamFilterDefinition, searchText?: string, handlers?: onMarkAsReadHandlers, unreadCount?: number): () => Promise<void>;
11636
+ }
11624
11637
  declare module "libs/reach/feature/content/src/stream/index" {
11625
11638
  export * from "libs/reach/feature/content/src/stream/StreamList";
11626
11639
  export * from "libs/reach/feature/content/src/stream/streamUtils";
@@ -11630,6 +11643,7 @@ declare module "libs/reach/feature/content/src/stream/index" {
11630
11643
  export * from "libs/reach/feature/content/src/stream/StreamPostItemCard";
11631
11644
  export * from "libs/reach/feature/content/src/stream/useNewsStreamDataLoader";
11632
11645
  export * from "libs/reach/feature/content/src/stream/useEventsStreamDataLoader";
11646
+ export * from "libs/reach/feature/content/src/stream/useMarkStreamItemsAsRead";
11633
11647
  }
11634
11648
  declare module "libs/reach/feature/content/src/search/GlobalSearchButton" {
11635
11649
  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.706",
7
+ "version": "0.4.0-preview.709",
8
8
  "dependencies": {}
9
9
  }