@livetiles/reach-plugin-types 0.5.0-preview.1076 → 0.5.0-preview.1078
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 +44 -11
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2685,6 +2685,7 @@ declare module "libs/reach/util/common/src/theme/theme2/radius" {
|
|
|
2685
2685
|
}
|
|
2686
2686
|
declare module "libs/reach/util/common/src/theme/theme2/shadows" {
|
|
2687
2687
|
const shadows: {
|
|
2688
|
+
readonly component: "0 3px 6px 0 rgba(15, 14, 14, 0.25)";
|
|
2688
2689
|
readonly drag: "0 1px 5px 0 rgba(15, 14, 14, 0.35)";
|
|
2689
2690
|
readonly focusButton: "0 0 0 2px #0F0E0E";
|
|
2690
2691
|
readonly hardFloat: "5px 4px 10px 0 rgba(15, 14, 14, 0.05)";
|
|
@@ -2903,6 +2904,7 @@ declare module "libs/reach/util/common/src/theme/theme2/index" {
|
|
|
2903
2904
|
readonly button: "32px";
|
|
2904
2905
|
};
|
|
2905
2906
|
shadows: {
|
|
2907
|
+
readonly component: "0 3px 6px 0 rgba(15, 14, 14, 0.25)";
|
|
2906
2908
|
readonly drag: "0 1px 5px 0 rgba(15, 14, 14, 0.35)";
|
|
2907
2909
|
readonly focusButton: "0 0 0 2px #0F0E0E";
|
|
2908
2910
|
readonly hardFloat: "5px 4px 10px 0 rgba(15, 14, 14, 0.05)";
|
|
@@ -3130,6 +3132,7 @@ declare module "libs/reach/util/common/src/theme/ThemeService" {
|
|
|
3130
3132
|
readonly button: "32px";
|
|
3131
3133
|
};
|
|
3132
3134
|
shadows: {
|
|
3135
|
+
readonly component: "0 3px 6px 0 rgba(15, 14, 14, 0.25)";
|
|
3133
3136
|
readonly drag: "0 1px 5px 0 rgba(15, 14, 14, 0.35)";
|
|
3134
3137
|
readonly focusButton: "0 0 0 2px #0F0E0E";
|
|
3135
3138
|
readonly hardFloat: "5px 4px 10px 0 rgba(15, 14, 14, 0.05)";
|
|
@@ -6171,6 +6174,7 @@ declare module "libs/reach/ui/common/src/reach-2/icons/Icons" {
|
|
|
6171
6174
|
export { ReactComponent as ChevronDownIcon } from './assets/chevronDown.svg';
|
|
6172
6175
|
export { ReactComponent as ChevronLeftIcon } from './assets/chevronLeft.svg';
|
|
6173
6176
|
export { ReactComponent as ChevronRightIcon } from './assets/chevronRight.svg';
|
|
6177
|
+
export { ReactComponent as CircleDividerIcon } from './assets/circle-divider.svg';
|
|
6174
6178
|
export { ReactComponent as CloseActiveIcon } from './assets/close-active.svg';
|
|
6175
6179
|
export { ReactComponent as CloseIcon } from './assets/close.svg';
|
|
6176
6180
|
export { ReactComponent as CollapseIcon } from './assets/collapse.svg';
|
|
@@ -12631,17 +12635,25 @@ declare module "libs/reach/feature/content/src/reach-2/comments/index" {
|
|
|
12631
12635
|
export * from "libs/reach/feature/content/src/reach-2/comments/CommentDisplay";
|
|
12632
12636
|
export * from "libs/reach/feature/content/src/reach-2/comments/CommentEditorOverlay";
|
|
12633
12637
|
export * from "libs/reach/feature/content/src/reach-2/comments/CommentFormattingToolbar";
|
|
12638
|
+
export * from "libs/reach/feature/content/src/reach-2/comments/CommentSkeletonListItem";
|
|
12634
12639
|
export * from "libs/reach/feature/content/src/reach-2/comments/CommentsList";
|
|
12635
12640
|
export * from "libs/reach/feature/content/src/reach-2/comments/useCommentsQuery";
|
|
12636
12641
|
export * from "libs/reach/feature/content/src/reach-2/comments/useTransformedCommentContent";
|
|
12637
12642
|
}
|
|
12638
12643
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/utils" {
|
|
12644
|
+
import { Comment } from "libs/reach/util/common/src/index";
|
|
12639
12645
|
export enum TextStylingOptions {
|
|
12640
12646
|
EmojiOverlay = 0,
|
|
12641
12647
|
MentionOverlay = 1,
|
|
12642
12648
|
None = 2,
|
|
12643
12649
|
TextFormatting = 3
|
|
12644
12650
|
}
|
|
12651
|
+
export type CommentType = Comment & {
|
|
12652
|
+
isNewComment?: boolean;
|
|
12653
|
+
};
|
|
12654
|
+
export type ReplyType = Comment & {
|
|
12655
|
+
isNewReply?: boolean;
|
|
12656
|
+
};
|
|
12645
12657
|
export const ExpandCollapseEffect: (isCollapsed: boolean, maxHeight: number) => import("styled-components").FlattenSimpleInterpolation;
|
|
12646
12658
|
}
|
|
12647
12659
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/CommentEditorFooter" {
|
|
@@ -12733,6 +12745,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
12733
12745
|
interface ICommentMetadataProps {
|
|
12734
12746
|
comment: Comment;
|
|
12735
12747
|
onReply: () => void;
|
|
12748
|
+
totalReplies: number;
|
|
12736
12749
|
}
|
|
12737
12750
|
const CommentMetadata: FC<ICommentMetadataProps>;
|
|
12738
12751
|
export default CommentMetadata;
|
|
@@ -12744,40 +12757,60 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
12744
12757
|
comment: Comment;
|
|
12745
12758
|
onEdit: () => void;
|
|
12746
12759
|
onDelete: () => void;
|
|
12747
|
-
onReply
|
|
12760
|
+
onReply?: () => void;
|
|
12761
|
+
totalReplies: number;
|
|
12748
12762
|
}
|
|
12749
12763
|
const CommentDisplay: FC<ICommentDisplayProps>;
|
|
12750
12764
|
export default CommentDisplay;
|
|
12751
12765
|
}
|
|
12766
|
+
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/CommentListItemReplies" {
|
|
12767
|
+
import { Comment, PaginatedList } from "libs/reach/util/common/src/index";
|
|
12768
|
+
import { FC } from 'react';
|
|
12769
|
+
interface ICommentListItemRepliesProps {
|
|
12770
|
+
initialReplies: PaginatedList<Comment>;
|
|
12771
|
+
isCollapsed: boolean;
|
|
12772
|
+
parentItemId: string;
|
|
12773
|
+
refetchComments: () => void;
|
|
12774
|
+
threadId: string;
|
|
12775
|
+
totalReplies: number;
|
|
12776
|
+
}
|
|
12777
|
+
const CommentListItemReplies: FC<ICommentListItemRepliesProps>;
|
|
12778
|
+
export default CommentListItemReplies;
|
|
12779
|
+
}
|
|
12752
12780
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/CommentListItem" {
|
|
12753
|
-
import {
|
|
12754
|
-
import { Comment } from "libs/reach/util/common/src/index";
|
|
12781
|
+
import { Comment, PaginatedList } from "libs/reach/util/common/src/index";
|
|
12755
12782
|
import { FC } from 'react';
|
|
12756
|
-
|
|
12783
|
+
import { CommentWithReplies } from "libs/reach/feature/content/src/reach-2/comments/index";
|
|
12784
|
+
interface ICommentListItemProps {
|
|
12757
12785
|
comment: CommentWithReplies;
|
|
12786
|
+
initialReplies: PaginatedList<Comment>;
|
|
12787
|
+
isCollapsed: boolean;
|
|
12758
12788
|
isEditMode: boolean;
|
|
12789
|
+
isReplyMode: boolean;
|
|
12759
12790
|
isSaving: boolean;
|
|
12760
12791
|
onCommentDeleted: (comment: Comment) => Promise<void>;
|
|
12761
12792
|
onCommentUpdated: (comment: Comment, newContent: {
|
|
12762
12793
|
content?: string;
|
|
12763
12794
|
formattedContent?: string;
|
|
12764
12795
|
}) => Promise<void>;
|
|
12765
|
-
onEdit: (isEditMode
|
|
12766
|
-
onReply: () => void;
|
|
12796
|
+
onEdit: (isEditMode: boolean) => void;
|
|
12797
|
+
onReply: (isReplyMode: boolean) => void;
|
|
12767
12798
|
parentItemId: string;
|
|
12799
|
+
refetchComments: () => void;
|
|
12800
|
+
totalReplies: number;
|
|
12768
12801
|
}
|
|
12769
|
-
const CommentListItem: FC<
|
|
12802
|
+
const CommentListItem: FC<ICommentListItemProps>;
|
|
12770
12803
|
export default CommentListItem;
|
|
12771
12804
|
}
|
|
12772
|
-
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/
|
|
12805
|
+
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/CommentList" {
|
|
12773
12806
|
import { FC } from 'react';
|
|
12774
|
-
interface
|
|
12807
|
+
interface ICommentListProps {
|
|
12775
12808
|
itemId: string;
|
|
12776
12809
|
refetchItem: (itemId: string) => Promise<void>;
|
|
12777
12810
|
totalComments: number;
|
|
12778
12811
|
}
|
|
12779
|
-
const
|
|
12780
|
-
export default
|
|
12812
|
+
const CommentList: FC<ICommentListProps>;
|
|
12813
|
+
export default CommentList;
|
|
12781
12814
|
}
|
|
12782
12815
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/Footer" {
|
|
12783
12816
|
import { PostStreamItem } from "libs/reach/feature/content/src/stream/index";
|