@livetiles/reach-plugin-types 0.4.0-preview.901 → 0.4.0-preview.904

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 -73
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -4081,7 +4081,7 @@ declare module "libs/reach/ui/common/src/common/buttons/CommentActionMenu" {
4081
4081
  setContent: (content: string) => unknown;
4082
4082
  handleTranslate: (preferredContentLanguageCode: string) => Promise<string>;
4083
4083
  showAutoTranslate: boolean;
4084
- onReply?: (commentId: string, commentSender: Account) => void;
4084
+ onReply?: (comment: Comment, commentSender: Account) => void;
4085
4085
  disabled?: boolean;
4086
4086
  }>;
4087
4087
  }
@@ -6335,7 +6335,9 @@ declare module "apps/reach-app/src/app/admin/users/ExportUserButton" {
6335
6335
  }
6336
6336
  declare module "apps/reach-app/src/app/admin/users/GenerateApiKeyButton" {
6337
6337
  import { FC } from 'react';
6338
- export const GenerateApiKeyButton: FC;
6338
+ export const GenerateApiKeyButton: FC<{
6339
+ onApiKeyAdded: () => void;
6340
+ }>;
6339
6341
  }
6340
6342
  declare module "apps/reach-app/src/app/admin/users/UsersPage" {
6341
6343
  import { FC } from 'react';
@@ -6504,13 +6506,10 @@ declare module "libs/reach/feature/content/src/comments/CommentInput" {
6504
6506
  }
6505
6507
  declare module "libs/reach/feature/content/src/comments/DropInfo" {
6506
6508
  import { FC } from 'react';
6507
- export const DropTarget: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
6509
+ export const DropTargetOverlay: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
6508
6510
  isActive: boolean;
6509
- isLarge: boolean;
6510
6511
  }, never>;
6511
- export const DropInfo: FC<{
6512
- isLarge: boolean;
6513
- }>;
6512
+ export const DropInfo: FC;
6514
6513
  }
6515
6514
  declare module "libs/reach/feature/content/src/forms/videos/VideoUrlParser" {
6516
6515
  import { FeatureSet, VideoSource } from "libs/reach/util/common/src/index";
@@ -6951,8 +6950,10 @@ declare module "libs/reach/feature/content/src/comments/RichCommentInput" {
6951
6950
  } & import("react").RefAttributes<HTMLInputElement>>;
6952
6951
  }
6953
6952
  declare module "libs/reach/feature/content/src/comments/utils" {
6954
- import { Attachment } from "libs/reach/util/common/src/index";
6953
+ import { Comment, Attachment, CurrentUser } from "libs/reach/util/common/src/index";
6955
6954
  export function canSaveInput(allowSaveWithoutContent: boolean, attachments: Attachment[], content: string): boolean;
6955
+ export function canDelete(comment: Comment, user: CurrentUser, groupIds: string[]): boolean;
6956
+ export function canEdit(comment: Comment, user: CurrentUser): boolean;
6956
6957
  }
6957
6958
  declare module "libs/reach/feature/content/src/forms/videos/VideoElementGenerator" {
6958
6959
  import { VideoInfo } from "libs/reach/feature/content/src/forms/videos/InsertVideoDialog";
@@ -9046,6 +9047,46 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
9046
9047
  import { FC } from 'react';
9047
9048
  export const EventDetailViewCancelInformation: FC;
9048
9049
  }
9050
+ declare module "libs/reach/feature/content/src/common/hooks/usePageViewTracker" {
9051
+ import { ItemResourceTypes } from "libs/reach/util/common/src/index";
9052
+ export enum PageViewType {
9053
+ PostsGroupView = "PostsGroupView"
9054
+ }
9055
+ export function usePageViewTracker(basePath: ItemResourceTypes | string, itemId: string, viewType?: PageViewType): void;
9056
+ }
9057
+ declare module "libs/reach/feature/content/src/comments/ThreadContext" {
9058
+ import { FC, Dispatch, SetStateAction } from 'react';
9059
+ export const ThreadContext: import("react").Context<{
9060
+ setActiveThreadId: (threadId: string) => unknown;
9061
+ activeThreadId: string;
9062
+ hasMoreUnreadReplies?: boolean;
9063
+ setHasMoreUnreadReplies?: Dispatch<SetStateAction<boolean>>;
9064
+ }>;
9065
+ export const ThreadContextProvider: FC;
9066
+ }
9067
+ declare module "libs/reach/feature/content/src/comments/CommentWithReplies" {
9068
+ import { Account, Comment, ConversationScope, ItemResourceTypes, PaginatedList } from "libs/reach/util/common/src/index";
9069
+ import { FC } from 'react';
9070
+ export const CommentWithReplies: FC<{
9071
+ comment: Comment;
9072
+ replies?: PaginatedList<Comment>;
9073
+ scope: ConversationScope;
9074
+ mentionSearchHandler: (text: string) => Promise<Account[]>;
9075
+ type: ItemResourceTypes;
9076
+ groupIds: string[];
9077
+ baseAttachmentPath: string;
9078
+ getHashtagFilterRoute?: (hashtag: string) => string;
9079
+ onReplyIconClick?: () => void;
9080
+ onReply?: (comment: Comment, commentSender?: Account) => void;
9081
+ onDeleteComment?: (comment?: Comment) => unknown;
9082
+ onDeleteReply?: (reply: Comment) => unknown;
9083
+ onReplyCountChange?: (newReplyCount: number) => void;
9084
+ readOnly?: boolean;
9085
+ trimContent?: boolean;
9086
+ showReplyBox?: boolean;
9087
+ className?: string;
9088
+ }>;
9089
+ }
9049
9090
  declare module "libs/reach/feature/content/src/comments/CommentList" {
9050
9091
  import { FC } from 'react';
9051
9092
  import { Comment, ConversationScope } from "libs/reach/util/common/src/index";
@@ -9062,7 +9103,7 @@ declare module "libs/reach/feature/content/src/comments/CommentList" {
9062
9103
  baseAttachmentPath: string;
9063
9104
  noItemsYetStringResourceKey: string;
9064
9105
  getHashtagFilterRoute?: (hashtag: string) => string;
9065
- onReply?: (commentId: string, commentSender: Account) => void;
9106
+ onReply?: (comment: Comment, commentSender?: Account) => void;
9066
9107
  readOnly?: boolean;
9067
9108
  trimContent?: boolean;
9068
9109
  className?: string;
@@ -9124,7 +9165,6 @@ declare module "libs/reach/feature/content/src/comments/PagedCommentsSection" {
9124
9165
  showReplyBox?: boolean;
9125
9166
  trimContent?: boolean;
9126
9167
  title?: ReactNode;
9127
- onThreadReply?: (threadId: string) => void;
9128
9168
  className?: string;
9129
9169
  };
9130
9170
  export const PagedCommentsSection: FC<Props>;
@@ -9156,7 +9196,6 @@ declare module "libs/reach/feature/content/src/comments/PublishableItemComments"
9156
9196
  readOnly?: boolean;
9157
9197
  loadInReadOnlyMode?: boolean;
9158
9198
  type: ItemResourceTypes;
9159
- onThreadReply?: (threadId: string) => void;
9160
9199
  hideProfileUrl?: boolean;
9161
9200
  disableLoginForPublicUser?: boolean;
9162
9201
  }>;
@@ -9182,13 +9221,6 @@ declare module "libs/reach/feature/content/src/feedback/buttons/FeedbackButtons"
9182
9221
  className?: string;
9183
9222
  }>;
9184
9223
  }
9185
- declare module "libs/reach/feature/content/src/common/hooks/usePageViewTracker" {
9186
- import { ItemResourceTypes } from "libs/reach/util/common/src/index";
9187
- export enum PageViewType {
9188
- PostsGroupView = "PostsGroupView"
9189
- }
9190
- export function usePageViewTracker(basePath: ItemResourceTypes | string, itemId: string, viewType?: PageViewType): void;
9191
- }
9192
9224
  declare module "libs/reach/feature/content/src/comments/ThreadView" {
9193
9225
  import { FC } from 'react';
9194
9226
  import { Comment, ConversationScope } from "libs/reach/util/common/src/index";
@@ -9787,8 +9819,9 @@ declare module "libs/reach/feature/content/src/comments/CommentDisplay" {
9787
9819
  getHashtagFilterRoute?: (hashtag: string) => string;
9788
9820
  highlight?: boolean;
9789
9821
  isInitialLiked?: boolean;
9822
+ hasUnreadReplies?: boolean;
9790
9823
  onReplyIconClick?: () => void;
9791
- onReply?: (commentId: string, commentSender?: Account) => void;
9824
+ onReply?: (comment: Comment, commentSender?: Account) => void;
9792
9825
  replyCount?: number;
9793
9826
  readOnly?: boolean;
9794
9827
  trimContent?: boolean;
@@ -10015,9 +10048,9 @@ declare module "libs/reach/feature/content/src/posts/PostReplies" {
10015
10048
  initialPageSize?: number;
10016
10049
  comments?: PaginatedList<Comment>;
10017
10050
  autoFocusReplyField?: boolean;
10051
+ showReplyBox?: boolean;
10018
10052
  onReplyAdded: () => void;
10019
10053
  onReplyDeleted: () => void;
10020
- onThreadReply?: (threadId: string) => void;
10021
10054
  trimContent?: boolean;
10022
10055
  }
10023
10056
  export const PostReplies: FC<Props>;
@@ -10062,14 +10095,12 @@ declare module "libs/reach/feature/content/src/posts/PostDisplay" {
10062
10095
  import { Comment, Keyword, PaginatedList } from "libs/reach/util/common/src/index";
10063
10096
  interface Props {
10064
10097
  post: Post;
10065
- targetUrl: string;
10098
+ targetUrl?: string;
10066
10099
  className?: string;
10067
10100
  threadId?: string;
10068
10101
  onCustomPostDelete?: () => void;
10069
10102
  comments?: PaginatedList<Comment>;
10070
10103
  initialCommentsPageSize?: number;
10071
- onEditActiveChange?: (isEditMode: boolean) => void;
10072
- onShowCommentsChange?: (showComments: boolean) => void;
10073
10104
  onThreadCommentDelete?: () => void;
10074
10105
  onThreadReply?: (threadId: string) => void;
10075
10106
  keywordSettings?: {
@@ -10106,54 +10137,6 @@ declare module "libs/reach/feature/content/src/posts/PostGroupSelector" {
10106
10137
  className?: string;
10107
10138
  }>;
10108
10139
  }
10109
- declare module "libs/reach/feature/content/src/posts/PostListItem" {
10110
- import { FC } from 'react';
10111
- import { Post } from "libs/reach/feature/content/src/posts/utils";
10112
- import { Keyword } from "libs/reach/util/common/src/index";
10113
- interface Props {
10114
- post: Post;
10115
- onEditActiveChange?: (isEditMode: boolean) => void;
10116
- onShowCommentsChange?: (showComments: boolean) => void;
10117
- keywordSettings?: {
10118
- availableKeywords?: Keyword[];
10119
- defaultKeywords?: Keyword[];
10120
- mandatoryKeywords?: Keyword[];
10121
- };
10122
- showGroup: boolean;
10123
- onBeforeDelete?: (id: string) => unknown;
10124
- onAfterDelete?: (id: string) => unknown;
10125
- trimContent?: boolean;
10126
- targetUrl?: string;
10127
- postGroupTargetUrl?: string;
10128
- onKeywordClick?: (keywordId: string) => void;
10129
- baseTargetUrl?: string;
10130
- }
10131
- export const PostListItem: FC<Props>;
10132
- }
10133
- declare module "libs/reach/feature/content/src/posts/PostWithSelfThreadHandling" {
10134
- import { FC } from 'react';
10135
- import { Post } from "libs/reach/feature/content/src/index";
10136
- import { Keyword } from "libs/reach/util/common/src/index";
10137
- export const PostWithSelfThreadHandling: FC<{
10138
- post: Post;
10139
- onEditActiveChange?: (isEditMode: boolean) => void;
10140
- onShowCommentsChange?: (showComments: boolean) => void;
10141
- keywordSettings?: {
10142
- availableKeywords?: Keyword[];
10143
- defaultKeywords?: Keyword[];
10144
- mandatoryKeywords?: Keyword[];
10145
- };
10146
- showGroup: boolean;
10147
- onBeforeDelete?: (id: string) => unknown;
10148
- onAfterDelete?: (id: string) => unknown;
10149
- onItemClick?: (postId: string) => unknown;
10150
- targetUrl?: string;
10151
- postGroupTargetUrl?: string;
10152
- trimContent?: boolean;
10153
- onKeywordClick?: (keywordId: string) => void;
10154
- baseTargetUrl?: string;
10155
- }>;
10156
- }
10157
10140
  declare module "libs/reach/feature/content/src/stream/streamUtils" {
10158
10141
  import { AttachmentType, BaseAttachment, Channel, Comment, ConversationScope, CurrentUser, EventCancelInformation, EventItem, EventResponse, GraphQLAttachmentType, Keyword, KnownNewsState, NewsItem, PageItem, PageNavigationContext, PageNavigationNode, PageType, PaginatedList } from "libs/reach/util/common/src/index";
10159
10142
  import { Post } from "libs/reach/feature/content/src/posts/index";
@@ -11890,8 +11873,6 @@ declare module "libs/reach/feature/content/src/posts/index" {
11890
11873
  export * from "libs/reach/feature/content/src/posts/PostDisplay";
11891
11874
  export * from "libs/reach/feature/content/src/posts/PostGroupsPicker";
11892
11875
  export * from "libs/reach/feature/content/src/posts/PostGroupSelector";
11893
- export * from "libs/reach/feature/content/src/posts/PostListItem";
11894
- export * from "libs/reach/feature/content/src/posts/PostWithSelfThreadHandling";
11895
11876
  export * from "libs/reach/feature/content/src/posts/useAttachmentUploader";
11896
11877
  export * from "libs/reach/feature/content/src/posts/useMarkPostsAndCommentsAsRead";
11897
11878
  export * from "libs/reach/feature/content/src/posts/usePostKeywordSettings";
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.901",
7
+ "version": "0.4.0-preview.904",
8
8
  "dependencies": {}
9
9
  }