@livetiles/reach-plugin-types 0.5.0-preview.1114 → 0.5.0-preview.1116
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 +54 -36
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -11916,19 +11916,44 @@ declare module "libs/reach/feature/content/src/reach-2/buttons/ButtonWithMenu" {
|
|
|
11916
11916
|
const ButtonWithMenu: FC<ButtonWithMenuProps>;
|
|
11917
11917
|
export default ButtonWithMenu;
|
|
11918
11918
|
}
|
|
11919
|
-
declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/
|
|
11919
|
+
declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/like/components/LikersList" {
|
|
11920
|
+
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
11920
11921
|
import { FC } from 'react';
|
|
11922
|
+
interface ILikersListProps {
|
|
11923
|
+
className?: string;
|
|
11924
|
+
itemId: string;
|
|
11925
|
+
itemType: ItemResourceTypes;
|
|
11926
|
+
likersCount: number;
|
|
11927
|
+
}
|
|
11928
|
+
const LikersList: FC<ILikersListProps>;
|
|
11929
|
+
export default LikersList;
|
|
11930
|
+
}
|
|
11931
|
+
declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/like/components/InteractiveLikeCount" {
|
|
11921
11932
|
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
11922
|
-
|
|
11933
|
+
import { FC } from 'react';
|
|
11934
|
+
interface IInteractiveLikeCount {
|
|
11923
11935
|
itemId: string;
|
|
11924
11936
|
itemType: ItemResourceTypes;
|
|
11937
|
+
likeCount: number;
|
|
11938
|
+
likeCountText: string;
|
|
11939
|
+
}
|
|
11940
|
+
const InteractiveLikeCount: FC<IInteractiveLikeCount>;
|
|
11941
|
+
export default InteractiveLikeCount;
|
|
11942
|
+
}
|
|
11943
|
+
declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/like/LikeButton" {
|
|
11944
|
+
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
11945
|
+
import { FC } from 'react';
|
|
11946
|
+
interface ILikeButtonProps {
|
|
11947
|
+
className?: string;
|
|
11948
|
+
disabled?: boolean;
|
|
11925
11949
|
isLiked?: boolean;
|
|
11950
|
+
itemId: string;
|
|
11951
|
+
itemType: ItemResourceTypes;
|
|
11926
11952
|
likeCount?: number;
|
|
11927
|
-
disabled?: boolean;
|
|
11928
11953
|
onLike?: (isNowLiked: boolean) => void;
|
|
11929
|
-
|
|
11930
|
-
|
|
11931
|
-
|
|
11954
|
+
}
|
|
11955
|
+
const LikeButton: FC<ILikeButtonProps>;
|
|
11956
|
+
export default LikeButton;
|
|
11932
11957
|
}
|
|
11933
11958
|
declare module "libs/reach/feature/content/src/reach-2/common/feedback/ItemFeedbackMetadataContextProvider" {
|
|
11934
11959
|
import { FeedbackSettings, ItemResourceTypes, PublishableItem } from "libs/reach/util/common/src/index";
|
|
@@ -11948,19 +11973,31 @@ declare module "libs/reach/feature/content/src/reach-2/common/feedback/ItemFeedb
|
|
|
11948
11973
|
language: string;
|
|
11949
11974
|
}>;
|
|
11950
11975
|
}
|
|
11951
|
-
declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/
|
|
11976
|
+
declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/like/useLikeData" {
|
|
11977
|
+
import { BaseItem, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
11978
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
11979
|
+
export const useLikeData: (item: BaseItem, itemType: ItemResourceTypes) => {
|
|
11980
|
+
isLiked: boolean;
|
|
11981
|
+
isLoading: boolean;
|
|
11982
|
+
likeCount: number;
|
|
11983
|
+
setIsLiked: (isNowLiked: boolean) => void;
|
|
11984
|
+
setLikeCount: Dispatch<SetStateAction<number>>;
|
|
11985
|
+
};
|
|
11986
|
+
}
|
|
11987
|
+
declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/like/ItemLikeButton" {
|
|
11988
|
+
import { BaseItem, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
11952
11989
|
import { FC } from 'react';
|
|
11953
|
-
interface
|
|
11954
|
-
activeLabel?: string;
|
|
11990
|
+
interface IItemLikeButtonProps {
|
|
11955
11991
|
className?: string;
|
|
11956
|
-
|
|
11957
|
-
|
|
11958
|
-
isListItem?: boolean;
|
|
11959
|
-
label?: string;
|
|
11960
|
-
labelGap?: number;
|
|
11961
|
-
showText?: boolean;
|
|
11992
|
+
item: BaseItem;
|
|
11993
|
+
itemType: ItemResourceTypes;
|
|
11962
11994
|
}
|
|
11963
|
-
|
|
11995
|
+
const ItemLikeButton: FC<IItemLikeButtonProps>;
|
|
11996
|
+
export default ItemLikeButton;
|
|
11997
|
+
}
|
|
11998
|
+
declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/like/index" {
|
|
11999
|
+
export { default as ItemLikeButton } from "libs/reach/feature/content/src/reach-2/buttons/feedback/like/ItemLikeButton";
|
|
12000
|
+
export { default as LikeButton } from "libs/reach/feature/content/src/reach-2/buttons/feedback/like/LikeButton";
|
|
11964
12001
|
}
|
|
11965
12002
|
declare module "libs/reach/feature/content/src/reach-2/common/editor/common/UserDetails" {
|
|
11966
12003
|
import { FC } from 'react';
|
|
@@ -12592,16 +12629,6 @@ declare module "libs/reach/feature/content/src/reach-2/common/detail/DetailViewF
|
|
|
12592
12629
|
import { FC } from 'react';
|
|
12593
12630
|
export const DetailViewFooter: FC;
|
|
12594
12631
|
}
|
|
12595
|
-
declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/ItemLikeButton" {
|
|
12596
|
-
import { FC } from 'react';
|
|
12597
|
-
import { BaseItem, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
12598
|
-
export const ItemLikeButton: FC<{
|
|
12599
|
-
item: BaseItem;
|
|
12600
|
-
itemType: ItemResourceTypes;
|
|
12601
|
-
isVertical?: boolean;
|
|
12602
|
-
className?: string;
|
|
12603
|
-
}>;
|
|
12604
|
-
}
|
|
12605
12632
|
declare module "libs/reach/feature/content/src/reach-2/common/detail/DetailViewFeedbackButtons" {
|
|
12606
12633
|
import { FC } from 'react';
|
|
12607
12634
|
export const DetailViewFeedbackButtons: FC<{
|
|
@@ -12643,12 +12670,6 @@ declare module "libs/reach/feature/content/src/reach-2/common/detail/index" {
|
|
|
12643
12670
|
declare module "libs/reach/feature/content/src/reach-2/common/feedback/index" {
|
|
12644
12671
|
export * from "libs/reach/feature/content/src/reach-2/common/feedback/ItemFeedbackMetadataContextProvider";
|
|
12645
12672
|
}
|
|
12646
|
-
declare module "libs/reach/feature/content/src/reach-2/common/snippets/news/NewsCardContextMenu" {
|
|
12647
|
-
import { FC } from 'react';
|
|
12648
|
-
export const NewsCardContextMenu: FC<{
|
|
12649
|
-
itemId: string;
|
|
12650
|
-
}>;
|
|
12651
|
-
}
|
|
12652
12673
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/ImageAndTextResponsiveCard" {
|
|
12653
12674
|
import { ItemResourceTypes, PublishableItem } from "libs/reach/util/common/src/index";
|
|
12654
12675
|
import { ReactNode } from 'react';
|
|
@@ -12709,7 +12730,6 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/news/Imag
|
|
|
12709
12730
|
}>;
|
|
12710
12731
|
}
|
|
12711
12732
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/news/index" {
|
|
12712
|
-
export * from "libs/reach/feature/content/src/reach-2/common/snippets/news/NewsCardContextMenu";
|
|
12713
12733
|
export * from "libs/reach/feature/content/src/reach-2/common/snippets/news/ImageAndTextNewsItemCard";
|
|
12714
12734
|
}
|
|
12715
12735
|
declare module "libs/reach/feature/content/src/reach-2/comments/index" {
|
|
@@ -13033,10 +13053,8 @@ declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/ShareBut
|
|
|
13033
13053
|
export const ShareButton: import("react").ForwardRefExoticComponent<IShareButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
13034
13054
|
}
|
|
13035
13055
|
declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/index" {
|
|
13036
|
-
export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/
|
|
13037
|
-
export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/BookmarkButton";
|
|
13056
|
+
export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/like/index";
|
|
13038
13057
|
export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/CommentButton";
|
|
13039
|
-
export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/ItemLikeButton";
|
|
13040
13058
|
export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/ShareButton";
|
|
13041
13059
|
}
|
|
13042
13060
|
declare module "libs/reach/feature/content/src/reach-2/buttons/index" {
|