@livetiles/reach-plugin-types 0.4.0-preview.705 → 0.4.0-preview.708

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 +19 -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';
@@ -10052,6 +10056,7 @@ declare module "libs/reach/feature/content/src/posts/PostDisplay" {
10052
10056
  import { Comment, Keyword, PaginatedList } from "libs/reach/util/common/src/index";
10053
10057
  interface Props {
10054
10058
  post: Post;
10059
+ targetUrl: string;
10055
10060
  className?: string;
10056
10061
  threadId?: string;
10057
10062
  onCustomPostDelete?: () => void;
@@ -10069,6 +10074,8 @@ declare module "libs/reach/feature/content/src/posts/PostDisplay" {
10069
10074
  showGroup?: boolean;
10070
10075
  onBeforeDelete?: (id: string) => unknown;
10071
10076
  onAfterDelete?: (id: string) => unknown;
10077
+ onItemClick?: (postId: string) => unknown;
10078
+ openTargetInNewWindow?: boolean;
10072
10079
  }
10073
10080
  export const PostDisplay: FC<Props>;
10074
10081
  }
@@ -10118,6 +10125,8 @@ declare module "libs/reach/feature/content/src/posts/PostWithSelfThreadHandling"
10118
10125
  showGroup: boolean;
10119
10126
  onBeforeDelete?: (id: string) => unknown;
10120
10127
  onAfterDelete?: (id: string) => unknown;
10128
+ onItemClick?: (postId: string) => unknown;
10129
+ targetUrl?: string;
10121
10130
  }>;
10122
10131
  }
10123
10132
  declare module "libs/reach/feature/content/src/stream/streamUtils" {
@@ -11616,6 +11625,15 @@ declare module "libs/reach/feature/content/src/stream/useEventsStreamDataLoader"
11616
11625
  export function useEventsStreamDataLoader(filter?: EventFilterDefinition, searchText?: string): ItemLoader<EventStreamItem, number>;
11617
11626
  export const EVENTS_QUERY: (includeAllItems: boolean, whereConditions?: string, sortByAscending?: boolean) => import("@apollo/client").DocumentNode;
11618
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
+ }
11619
11637
  declare module "libs/reach/feature/content/src/stream/index" {
11620
11638
  export * from "libs/reach/feature/content/src/stream/StreamList";
11621
11639
  export * from "libs/reach/feature/content/src/stream/streamUtils";
@@ -11625,6 +11643,7 @@ declare module "libs/reach/feature/content/src/stream/index" {
11625
11643
  export * from "libs/reach/feature/content/src/stream/StreamPostItemCard";
11626
11644
  export * from "libs/reach/feature/content/src/stream/useNewsStreamDataLoader";
11627
11645
  export * from "libs/reach/feature/content/src/stream/useEventsStreamDataLoader";
11646
+ export * from "libs/reach/feature/content/src/stream/useMarkStreamItemsAsRead";
11628
11647
  }
11629
11648
  declare module "libs/reach/feature/content/src/search/GlobalSearchButton" {
11630
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.705",
7
+ "version": "0.4.0-preview.708",
8
8
  "dependencies": {}
9
9
  }