@livetiles/reach-plugin-types 0.4.0-preview.902 → 0.4.0-preview.905
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.
- package/lib/index.d.ts +51 -72
- 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?: (
|
|
4084
|
+
onReply?: (comment: Comment, commentSender: Account) => void;
|
|
4085
4085
|
disabled?: boolean;
|
|
4086
4086
|
}>;
|
|
4087
4087
|
}
|
|
@@ -6506,13 +6506,10 @@ declare module "libs/reach/feature/content/src/comments/CommentInput" {
|
|
|
6506
6506
|
}
|
|
6507
6507
|
declare module "libs/reach/feature/content/src/comments/DropInfo" {
|
|
6508
6508
|
import { FC } from 'react';
|
|
6509
|
-
export const
|
|
6509
|
+
export const DropTargetOverlay: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
6510
6510
|
isActive: boolean;
|
|
6511
|
-
isLarge: boolean;
|
|
6512
6511
|
}, never>;
|
|
6513
|
-
export const DropInfo: FC
|
|
6514
|
-
isLarge: boolean;
|
|
6515
|
-
}>;
|
|
6512
|
+
export const DropInfo: FC;
|
|
6516
6513
|
}
|
|
6517
6514
|
declare module "libs/reach/feature/content/src/forms/videos/VideoUrlParser" {
|
|
6518
6515
|
import { FeatureSet, VideoSource } from "libs/reach/util/common/src/index";
|
|
@@ -6953,8 +6950,10 @@ declare module "libs/reach/feature/content/src/comments/RichCommentInput" {
|
|
|
6953
6950
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
6954
6951
|
}
|
|
6955
6952
|
declare module "libs/reach/feature/content/src/comments/utils" {
|
|
6956
|
-
import { Attachment } from "libs/reach/util/common/src/index";
|
|
6953
|
+
import { Comment, Attachment, CurrentUser } from "libs/reach/util/common/src/index";
|
|
6957
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;
|
|
6958
6957
|
}
|
|
6959
6958
|
declare module "libs/reach/feature/content/src/forms/videos/VideoElementGenerator" {
|
|
6960
6959
|
import { VideoInfo } from "libs/reach/feature/content/src/forms/videos/InsertVideoDialog";
|
|
@@ -9048,6 +9047,46 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
|
|
|
9048
9047
|
import { FC } from 'react';
|
|
9049
9048
|
export const EventDetailViewCancelInformation: FC;
|
|
9050
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
|
+
}
|
|
9051
9090
|
declare module "libs/reach/feature/content/src/comments/CommentList" {
|
|
9052
9091
|
import { FC } from 'react';
|
|
9053
9092
|
import { Comment, ConversationScope } from "libs/reach/util/common/src/index";
|
|
@@ -9064,7 +9103,7 @@ declare module "libs/reach/feature/content/src/comments/CommentList" {
|
|
|
9064
9103
|
baseAttachmentPath: string;
|
|
9065
9104
|
noItemsYetStringResourceKey: string;
|
|
9066
9105
|
getHashtagFilterRoute?: (hashtag: string) => string;
|
|
9067
|
-
onReply?: (
|
|
9106
|
+
onReply?: (comment: Comment, commentSender?: Account) => void;
|
|
9068
9107
|
readOnly?: boolean;
|
|
9069
9108
|
trimContent?: boolean;
|
|
9070
9109
|
className?: string;
|
|
@@ -9126,7 +9165,6 @@ declare module "libs/reach/feature/content/src/comments/PagedCommentsSection" {
|
|
|
9126
9165
|
showReplyBox?: boolean;
|
|
9127
9166
|
trimContent?: boolean;
|
|
9128
9167
|
title?: ReactNode;
|
|
9129
|
-
onThreadReply?: (threadId: string) => void;
|
|
9130
9168
|
className?: string;
|
|
9131
9169
|
};
|
|
9132
9170
|
export const PagedCommentsSection: FC<Props>;
|
|
@@ -9158,7 +9196,6 @@ declare module "libs/reach/feature/content/src/comments/PublishableItemComments"
|
|
|
9158
9196
|
readOnly?: boolean;
|
|
9159
9197
|
loadInReadOnlyMode?: boolean;
|
|
9160
9198
|
type: ItemResourceTypes;
|
|
9161
|
-
onThreadReply?: (threadId: string) => void;
|
|
9162
9199
|
hideProfileUrl?: boolean;
|
|
9163
9200
|
disableLoginForPublicUser?: boolean;
|
|
9164
9201
|
}>;
|
|
@@ -9184,13 +9221,6 @@ declare module "libs/reach/feature/content/src/feedback/buttons/FeedbackButtons"
|
|
|
9184
9221
|
className?: string;
|
|
9185
9222
|
}>;
|
|
9186
9223
|
}
|
|
9187
|
-
declare module "libs/reach/feature/content/src/common/hooks/usePageViewTracker" {
|
|
9188
|
-
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
9189
|
-
export enum PageViewType {
|
|
9190
|
-
PostsGroupView = "PostsGroupView"
|
|
9191
|
-
}
|
|
9192
|
-
export function usePageViewTracker(basePath: ItemResourceTypes | string, itemId: string, viewType?: PageViewType): void;
|
|
9193
|
-
}
|
|
9194
9224
|
declare module "libs/reach/feature/content/src/comments/ThreadView" {
|
|
9195
9225
|
import { FC } from 'react';
|
|
9196
9226
|
import { Comment, ConversationScope } from "libs/reach/util/common/src/index";
|
|
@@ -9789,8 +9819,9 @@ declare module "libs/reach/feature/content/src/comments/CommentDisplay" {
|
|
|
9789
9819
|
getHashtagFilterRoute?: (hashtag: string) => string;
|
|
9790
9820
|
highlight?: boolean;
|
|
9791
9821
|
isInitialLiked?: boolean;
|
|
9822
|
+
hasUnreadReplies?: boolean;
|
|
9792
9823
|
onReplyIconClick?: () => void;
|
|
9793
|
-
onReply?: (
|
|
9824
|
+
onReply?: (comment: Comment, commentSender?: Account) => void;
|
|
9794
9825
|
replyCount?: number;
|
|
9795
9826
|
readOnly?: boolean;
|
|
9796
9827
|
trimContent?: boolean;
|
|
@@ -10017,9 +10048,9 @@ declare module "libs/reach/feature/content/src/posts/PostReplies" {
|
|
|
10017
10048
|
initialPageSize?: number;
|
|
10018
10049
|
comments?: PaginatedList<Comment>;
|
|
10019
10050
|
autoFocusReplyField?: boolean;
|
|
10051
|
+
showReplyBox?: boolean;
|
|
10020
10052
|
onReplyAdded: () => void;
|
|
10021
10053
|
onReplyDeleted: () => void;
|
|
10022
|
-
onThreadReply?: (threadId: string) => void;
|
|
10023
10054
|
trimContent?: boolean;
|
|
10024
10055
|
}
|
|
10025
10056
|
export const PostReplies: FC<Props>;
|
|
@@ -10064,14 +10095,12 @@ declare module "libs/reach/feature/content/src/posts/PostDisplay" {
|
|
|
10064
10095
|
import { Comment, Keyword, PaginatedList } from "libs/reach/util/common/src/index";
|
|
10065
10096
|
interface Props {
|
|
10066
10097
|
post: Post;
|
|
10067
|
-
targetUrl
|
|
10098
|
+
targetUrl?: string;
|
|
10068
10099
|
className?: string;
|
|
10069
10100
|
threadId?: string;
|
|
10070
10101
|
onCustomPostDelete?: () => void;
|
|
10071
10102
|
comments?: PaginatedList<Comment>;
|
|
10072
10103
|
initialCommentsPageSize?: number;
|
|
10073
|
-
onEditActiveChange?: (isEditMode: boolean) => void;
|
|
10074
|
-
onShowCommentsChange?: (showComments: boolean) => void;
|
|
10075
10104
|
onThreadCommentDelete?: () => void;
|
|
10076
10105
|
onThreadReply?: (threadId: string) => void;
|
|
10077
10106
|
keywordSettings?: {
|
|
@@ -10108,54 +10137,6 @@ declare module "libs/reach/feature/content/src/posts/PostGroupSelector" {
|
|
|
10108
10137
|
className?: string;
|
|
10109
10138
|
}>;
|
|
10110
10139
|
}
|
|
10111
|
-
declare module "libs/reach/feature/content/src/posts/PostListItem" {
|
|
10112
|
-
import { FC } from 'react';
|
|
10113
|
-
import { Post } from "libs/reach/feature/content/src/posts/utils";
|
|
10114
|
-
import { Keyword } from "libs/reach/util/common/src/index";
|
|
10115
|
-
interface Props {
|
|
10116
|
-
post: Post;
|
|
10117
|
-
onEditActiveChange?: (isEditMode: boolean) => void;
|
|
10118
|
-
onShowCommentsChange?: (showComments: boolean) => void;
|
|
10119
|
-
keywordSettings?: {
|
|
10120
|
-
availableKeywords?: Keyword[];
|
|
10121
|
-
defaultKeywords?: Keyword[];
|
|
10122
|
-
mandatoryKeywords?: Keyword[];
|
|
10123
|
-
};
|
|
10124
|
-
showGroup: boolean;
|
|
10125
|
-
onBeforeDelete?: (id: string) => unknown;
|
|
10126
|
-
onAfterDelete?: (id: string) => unknown;
|
|
10127
|
-
trimContent?: boolean;
|
|
10128
|
-
targetUrl?: string;
|
|
10129
|
-
postGroupTargetUrl?: string;
|
|
10130
|
-
onKeywordClick?: (keywordId: string) => void;
|
|
10131
|
-
baseTargetUrl?: string;
|
|
10132
|
-
}
|
|
10133
|
-
export const PostListItem: FC<Props>;
|
|
10134
|
-
}
|
|
10135
|
-
declare module "libs/reach/feature/content/src/posts/PostWithSelfThreadHandling" {
|
|
10136
|
-
import { FC } from 'react';
|
|
10137
|
-
import { Post } from "libs/reach/feature/content/src/index";
|
|
10138
|
-
import { Keyword } from "libs/reach/util/common/src/index";
|
|
10139
|
-
export const PostWithSelfThreadHandling: FC<{
|
|
10140
|
-
post: Post;
|
|
10141
|
-
onEditActiveChange?: (isEditMode: boolean) => void;
|
|
10142
|
-
onShowCommentsChange?: (showComments: boolean) => void;
|
|
10143
|
-
keywordSettings?: {
|
|
10144
|
-
availableKeywords?: Keyword[];
|
|
10145
|
-
defaultKeywords?: Keyword[];
|
|
10146
|
-
mandatoryKeywords?: Keyword[];
|
|
10147
|
-
};
|
|
10148
|
-
showGroup: boolean;
|
|
10149
|
-
onBeforeDelete?: (id: string) => unknown;
|
|
10150
|
-
onAfterDelete?: (id: string) => unknown;
|
|
10151
|
-
onItemClick?: (postId: string) => unknown;
|
|
10152
|
-
targetUrl?: string;
|
|
10153
|
-
postGroupTargetUrl?: string;
|
|
10154
|
-
trimContent?: boolean;
|
|
10155
|
-
onKeywordClick?: (keywordId: string) => void;
|
|
10156
|
-
baseTargetUrl?: string;
|
|
10157
|
-
}>;
|
|
10158
|
-
}
|
|
10159
10140
|
declare module "libs/reach/feature/content/src/stream/streamUtils" {
|
|
10160
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";
|
|
10161
10142
|
import { Post } from "libs/reach/feature/content/src/posts/index";
|
|
@@ -11892,8 +11873,6 @@ declare module "libs/reach/feature/content/src/posts/index" {
|
|
|
11892
11873
|
export * from "libs/reach/feature/content/src/posts/PostDisplay";
|
|
11893
11874
|
export * from "libs/reach/feature/content/src/posts/PostGroupsPicker";
|
|
11894
11875
|
export * from "libs/reach/feature/content/src/posts/PostGroupSelector";
|
|
11895
|
-
export * from "libs/reach/feature/content/src/posts/PostListItem";
|
|
11896
|
-
export * from "libs/reach/feature/content/src/posts/PostWithSelfThreadHandling";
|
|
11897
11876
|
export * from "libs/reach/feature/content/src/posts/useAttachmentUploader";
|
|
11898
11877
|
export * from "libs/reach/feature/content/src/posts/useMarkPostsAndCommentsAsRead";
|
|
11899
11878
|
export * from "libs/reach/feature/content/src/posts/usePostKeywordSettings";
|