@livetiles/reach-plugin-types 0.5.0-preview.1115 → 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 +75 -35
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -11916,20 +11916,89 @@ 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
|
-
|
|
11954
|
+
}
|
|
11955
|
+
const LikeButton: FC<ILikeButtonProps>;
|
|
11956
|
+
export default LikeButton;
|
|
11957
|
+
}
|
|
11958
|
+
declare module "libs/reach/feature/content/src/reach-2/common/feedback/ItemFeedbackMetadataContextProvider" {
|
|
11959
|
+
import { FeedbackSettings, ItemResourceTypes, PublishableItem } from "libs/reach/util/common/src/index";
|
|
11960
|
+
import { FC } from 'react';
|
|
11961
|
+
import { ItemStatisticsContextProps } from "libs/reach/feature/content/src/feedback/ItemStatisticsContext";
|
|
11962
|
+
interface ItemFeedbackMetadataContextProps {
|
|
11963
|
+
isLiked: boolean;
|
|
11964
|
+
setIsLiked: (isNowLiked: boolean) => void;
|
|
11965
|
+
isBookmarked: boolean;
|
|
11966
|
+
setIsBookmarked: (isNowBookmarked: boolean) => void;
|
|
11967
|
+
}
|
|
11968
|
+
export function useItemFeedbackMetadataWithStatisticsContext(): ItemStatisticsContextProps & ItemFeedbackMetadataContextProps;
|
|
11969
|
+
export const ItemFeedbackMetadataContextProvider: FC<{
|
|
11970
|
+
resourceType: ItemResourceTypes;
|
|
11971
|
+
item: PublishableItem;
|
|
11972
|
+
feedbackSettings: FeedbackSettings;
|
|
11973
|
+
language: string;
|
|
11931
11974
|
}>;
|
|
11932
11975
|
}
|
|
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";
|
|
11989
|
+
import { FC } from 'react';
|
|
11990
|
+
interface IItemLikeButtonProps {
|
|
11991
|
+
className?: string;
|
|
11992
|
+
item: BaseItem;
|
|
11993
|
+
itemType: ItemResourceTypes;
|
|
11994
|
+
}
|
|
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";
|
|
12001
|
+
}
|
|
11933
12002
|
declare module "libs/reach/feature/content/src/reach-2/common/editor/common/UserDetails" {
|
|
11934
12003
|
import { FC } from 'react';
|
|
11935
12004
|
interface IUserDetailsProps {
|
|
@@ -12560,34 +12629,6 @@ declare module "libs/reach/feature/content/src/reach-2/common/detail/DetailViewF
|
|
|
12560
12629
|
import { FC } from 'react';
|
|
12561
12630
|
export const DetailViewFooter: FC;
|
|
12562
12631
|
}
|
|
12563
|
-
declare module "libs/reach/feature/content/src/reach-2/common/feedback/ItemFeedbackMetadataContextProvider" {
|
|
12564
|
-
import { FeedbackSettings, ItemResourceTypes, PublishableItem } from "libs/reach/util/common/src/index";
|
|
12565
|
-
import { FC } from 'react';
|
|
12566
|
-
import { ItemStatisticsContextProps } from "libs/reach/feature/content/src/feedback/ItemStatisticsContext";
|
|
12567
|
-
interface ItemFeedbackMetadataContextProps {
|
|
12568
|
-
isLiked: boolean;
|
|
12569
|
-
setIsLiked: (isNowLiked: boolean) => void;
|
|
12570
|
-
isBookmarked: boolean;
|
|
12571
|
-
setIsBookmarked: (isNowBookmarked: boolean) => void;
|
|
12572
|
-
}
|
|
12573
|
-
export function useItemFeedbackMetadataWithStatisticsContext(): ItemStatisticsContextProps & ItemFeedbackMetadataContextProps;
|
|
12574
|
-
export const ItemFeedbackMetadataContextProvider: FC<{
|
|
12575
|
-
resourceType: ItemResourceTypes;
|
|
12576
|
-
item: PublishableItem;
|
|
12577
|
-
feedbackSettings: FeedbackSettings;
|
|
12578
|
-
language: string;
|
|
12579
|
-
}>;
|
|
12580
|
-
}
|
|
12581
|
-
declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/ItemLikeButton" {
|
|
12582
|
-
import { FC } from 'react';
|
|
12583
|
-
import { BaseItem, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
12584
|
-
export const ItemLikeButton: FC<{
|
|
12585
|
-
item: BaseItem;
|
|
12586
|
-
itemType: ItemResourceTypes;
|
|
12587
|
-
isVertical?: boolean;
|
|
12588
|
-
className?: string;
|
|
12589
|
-
}>;
|
|
12590
|
-
}
|
|
12591
12632
|
declare module "libs/reach/feature/content/src/reach-2/common/detail/DetailViewFeedbackButtons" {
|
|
12592
12633
|
import { FC } from 'react';
|
|
12593
12634
|
export const DetailViewFeedbackButtons: FC<{
|
|
@@ -13012,9 +13053,8 @@ declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/ShareBut
|
|
|
13012
13053
|
export const ShareButton: import("react").ForwardRefExoticComponent<IShareButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
13013
13054
|
}
|
|
13014
13055
|
declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/index" {
|
|
13015
|
-
export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/
|
|
13056
|
+
export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/like/index";
|
|
13016
13057
|
export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/CommentButton";
|
|
13017
|
-
export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/ItemLikeButton";
|
|
13018
13058
|
export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/ShareButton";
|
|
13019
13059
|
}
|
|
13020
13060
|
declare module "libs/reach/feature/content/src/reach-2/buttons/index" {
|