hive-react-kit 0.9.5 → 0.9.6
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/dist/components/HiveDetailPost.d.ts +8 -1
- package/dist/components/actionButtons/PostActionButton.d.ts +3 -1
- package/dist/components/comments/AddCommentInput.d.ts +6 -2
- package/dist/components/comments/CommentsModal.d.ts +3 -1
- package/dist/components/composer/VideoUploader.d.ts +3 -0
- package/dist/components/inlineComments/InlineCommentItem.d.ts +3 -1
- package/dist/components/inlineComments/InlineCommentSection.d.ts +3 -1
- package/dist/components/user/PollListItem.d.ts +2 -0
- package/dist/components/user/UserDetailProfile.d.ts +3 -0
- package/dist/index.cjs.js +44 -44
- package/dist/index.esm.js +4441 -4421
- package/package.json +1 -1
|
@@ -40,6 +40,13 @@ export interface HiveDetailPostProps {
|
|
|
40
40
|
* upvote-on-publish slider in the comment composer. Default 0.25.
|
|
41
41
|
*/
|
|
42
42
|
voteWeightStep?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Allow landscape (horizontal) videos in the embedded comment composer's
|
|
45
|
+
* video uploader. Default false — only portrait clips, matching the
|
|
46
|
+
* hSnaps Moments contract. Set true for apps where horizontal video is
|
|
47
|
+
* acceptable (e.g. hivesuite).
|
|
48
|
+
*/
|
|
49
|
+
allowLandscapeVideos?: boolean;
|
|
43
50
|
/**
|
|
44
51
|
* Override the Hive content renderer's link-generating functions so the
|
|
45
52
|
* rendered `<a>` URLs route into your app instead of an external Hive
|
|
@@ -100,5 +107,5 @@ export interface HiveDetailPostProps {
|
|
|
100
107
|
/** Called when user clicks "View parent post" — navigate to the parent post. */
|
|
101
108
|
onNavigateToPost?: (author: string, permlink: string) => void;
|
|
102
109
|
}
|
|
103
|
-
export declare function HiveDetailPost({ author, permlink, currentUser, onUpvote, onSubmitComment, onClickCommentUpvote, onReblog, onShare, onTip, onReport, onShareComment, onTipComment, onReportComment, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, reportedAuthors, reportedPosts, hiveIconUrl, backgroundColor, onBack, onUserClick, onNavigateToPost, onVotePoll, showVoteButton, processBody, defaultReward, defaultVotePercent, voteWeightStep, renderOptions, }: HiveDetailPostProps): import("react/jsx-runtime").JSX.Element;
|
|
110
|
+
export declare function HiveDetailPost({ author, permlink, currentUser, onUpvote, onSubmitComment, onClickCommentUpvote, onReblog, onShare, onTip, onReport, onShareComment, onTipComment, onReportComment, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, reportedAuthors, reportedPosts, hiveIconUrl, backgroundColor, onBack, onUserClick, onNavigateToPost, onVotePoll, showVoteButton, processBody, defaultReward, defaultVotePercent, voteWeightStep, allowLandscapeVideos, renderOptions, }: HiveDetailPostProps): import("react/jsx-runtime").JSX.Element;
|
|
104
111
|
export default HiveDetailPost;
|
|
@@ -33,6 +33,8 @@ export interface PostActionButtonProps {
|
|
|
33
33
|
/** Slider precision used by both the post upvote slider AND the comment composer's
|
|
34
34
|
* "upvote-on-publish" slider. Use 0.25, 0.5, or 1. Default 0.25 (back-compat). */
|
|
35
35
|
voteWeightStep?: number;
|
|
36
|
+
/** Allow landscape videos in the embedded comment composer's uploader. Default false. */
|
|
37
|
+
allowLandscapeVideos?: boolean;
|
|
36
38
|
/** Called when comment button is clicked (e.g. open comments). */
|
|
37
39
|
onComments?: () => void;
|
|
38
40
|
/** Called when reblog is clicked (when logged in). */
|
|
@@ -58,5 +60,5 @@ export interface PostActionButtonProps {
|
|
|
58
60
|
/** When true, clicking the comment icon calls onComments instead of opening the CommentsModal popup */
|
|
59
61
|
disableCommentsModal?: boolean;
|
|
60
62
|
}
|
|
61
|
-
export declare function PostActionButton({ author, permlink, currentUser: currentUserProp, hiveValue, hiveIconUrl, payoutTooltip, initialVotes, initialCommentsCount, onUpvote, onSubmitComment, onComments, onReblog, onShare, onTip, onReport, onClickCommentUpvote, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, disableCommentsModal, showVoteButton, parentTags, defaultReward, defaultVotePercent, voteWeightStep, }: PostActionButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
export declare function PostActionButton({ author, permlink, currentUser: currentUserProp, hiveValue, hiveIconUrl, payoutTooltip, initialVotes, initialCommentsCount, onUpvote, onSubmitComment, onComments, onReblog, onShare, onTip, onReport, onClickCommentUpvote, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, disableCommentsModal, showVoteButton, parentTags, defaultReward, defaultVotePercent, voteWeightStep, allowLandscapeVideos, }: PostActionButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
62
64
|
export default PostActionButton;
|
|
@@ -73,6 +73,10 @@ export interface PostComposerProps {
|
|
|
73
73
|
/** Slider precision for the upvote-on-publish slider. Use 0.25, 0.5, or 1.
|
|
74
74
|
* Default 0.25 (back-compat). */
|
|
75
75
|
voteWeightStep?: number;
|
|
76
|
+
/** Allow landscape (horizontal) videos in the embedded VideoUploader.
|
|
77
|
+
* Default false — only portrait clips, matching the hSnaps Moments contract.
|
|
78
|
+
* Set true on apps where horizontal video is acceptable (e.g. hivesuite). */
|
|
79
|
+
allowLandscapeVideos?: boolean;
|
|
76
80
|
/**
|
|
77
81
|
* Called whenever the upvote-on-publish toggle or percent changes.
|
|
78
82
|
* `enabled=false` => consumer should post a plain comment.
|
|
@@ -118,8 +122,8 @@ export interface PostComposerProps {
|
|
|
118
122
|
}
|
|
119
123
|
/** @deprecated Use PostComposerProps instead */
|
|
120
124
|
export type AddCommentInputProps = PostComposerProps;
|
|
121
|
-
declare const PostComposer: ({ onSubmit, onCancel, currentUser, placeholder, parentAuthor, parentPermlink, ecencyToken, onSignMessage, signingUsername, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, hideBold, hideItalic, hideLink, hideImage, hideAudio, hideVideo, hideEmoji, hideGif, hideCode, hideMention, hideTemplate, hidePreview, hidePoll, onPollChange, defaultTags, maxTags, onTagsChange, hideTags, reward, defaultReward, onRewardChange, hideReward, showVoteButton, defaultVoteEnabled, defaultVotePercent, voteWeightStep, onVoteChange, voteLabel, showCancel, submitLabel, title, defaultPreviewOn, value, onChange, disabled, hideSubmitArea, submitRef, hideUserHeader, bgColor, borderColor, disableAutoFocus, walletApprovalLabel, awaitingWalletApproval, }: PostComposerProps) => import("react/jsx-runtime").JSX.Element;
|
|
125
|
+
declare const PostComposer: ({ onSubmit, onCancel, currentUser, placeholder, parentAuthor, parentPermlink, ecencyToken, onSignMessage, signingUsername, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, hideBold, hideItalic, hideLink, hideImage, hideAudio, hideVideo, hideEmoji, hideGif, hideCode, hideMention, hideTemplate, hidePreview, hidePoll, onPollChange, defaultTags, maxTags, onTagsChange, hideTags, reward, defaultReward, onRewardChange, hideReward, showVoteButton, defaultVoteEnabled, defaultVotePercent, voteWeightStep, allowLandscapeVideos, onVoteChange, voteLabel, showCancel, submitLabel, title, defaultPreviewOn, value, onChange, disabled, hideSubmitArea, submitRef, hideUserHeader, bgColor, borderColor, disableAutoFocus, walletApprovalLabel, awaitingWalletApproval, }: PostComposerProps) => import("react/jsx-runtime").JSX.Element;
|
|
122
126
|
/** @deprecated Use PostComposer instead */
|
|
123
|
-
declare const AddCommentInput: ({ onSubmit, onCancel, currentUser, placeholder, parentAuthor, parentPermlink, ecencyToken, onSignMessage, signingUsername, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, hideBold, hideItalic, hideLink, hideImage, hideAudio, hideVideo, hideEmoji, hideGif, hideCode, hideMention, hideTemplate, hidePreview, hidePoll, onPollChange, defaultTags, maxTags, onTagsChange, hideTags, reward, defaultReward, onRewardChange, hideReward, showVoteButton, defaultVoteEnabled, defaultVotePercent, voteWeightStep, onVoteChange, voteLabel, showCancel, submitLabel, title, defaultPreviewOn, value, onChange, disabled, hideSubmitArea, submitRef, hideUserHeader, bgColor, borderColor, disableAutoFocus, walletApprovalLabel, awaitingWalletApproval, }: PostComposerProps) => import("react/jsx-runtime").JSX.Element;
|
|
127
|
+
declare const AddCommentInput: ({ onSubmit, onCancel, currentUser, placeholder, parentAuthor, parentPermlink, ecencyToken, onSignMessage, signingUsername, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, hideBold, hideItalic, hideLink, hideImage, hideAudio, hideVideo, hideEmoji, hideGif, hideCode, hideMention, hideTemplate, hidePreview, hidePoll, onPollChange, defaultTags, maxTags, onTagsChange, hideTags, reward, defaultReward, onRewardChange, hideReward, showVoteButton, defaultVoteEnabled, defaultVotePercent, voteWeightStep, allowLandscapeVideos, onVoteChange, voteLabel, showCancel, submitLabel, title, defaultPreviewOn, value, onChange, disabled, hideSubmitArea, submitRef, hideUserHeader, bgColor, borderColor, disableAutoFocus, walletApprovalLabel, awaitingWalletApproval, }: PostComposerProps) => import("react/jsx-runtime").JSX.Element;
|
|
124
128
|
export { PostComposer };
|
|
125
129
|
export default AddCommentInput;
|
|
@@ -34,6 +34,8 @@ interface CommentsModalProps {
|
|
|
34
34
|
defaultVotePercent?: number;
|
|
35
35
|
/** Slider precision for the composer's "upvote on publish" slider (0.25, 0.5, or 1). Default 0.25. */
|
|
36
36
|
voteWeightStep?: number;
|
|
37
|
+
/** Allow landscape videos in the comment composer. Default false. */
|
|
38
|
+
allowLandscapeVideos?: boolean;
|
|
37
39
|
}
|
|
38
|
-
declare const CommentsModal: ({ author, permlink, onClose, currentUser, token, onClickCommentUpvote, onClickCommentReply, onClickUpvoteButton, onSubmitComment, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, showVoteButton, parentTags, defaultReward, defaultVotePercent, voteWeightStep }: CommentsModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
declare const CommentsModal: ({ author, permlink, onClose, currentUser, token, onClickCommentUpvote, onClickCommentReply, onClickUpvoteButton, onSubmitComment, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, showVoteButton, parentTags, defaultReward, defaultVotePercent, voteWeightStep, allowLandscapeVideos }: CommentsModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
41
|
export default CommentsModal;
|
|
@@ -12,6 +12,9 @@ export interface VideoUploaderProps {
|
|
|
12
12
|
/** 3Speak API key. Falls back to demo key if not provided. */
|
|
13
13
|
threeSpeakApiKey?: string;
|
|
14
14
|
disabled?: boolean;
|
|
15
|
+
/** When true, accept landscape videos too. Default false — only portrait
|
|
16
|
+
* (vertical) clips are accepted, matching the hSnaps Moments contract. */
|
|
17
|
+
allowLandscape?: boolean;
|
|
15
18
|
}
|
|
16
19
|
declare const VideoUploader: React.FC<VideoUploaderProps>;
|
|
17
20
|
export default VideoUploader;
|
|
@@ -34,6 +34,8 @@ interface InlineCommentItemProps {
|
|
|
34
34
|
defaultVotePercent?: number;
|
|
35
35
|
/** Slider precision (0.25, 0.5, or 1) used by both sliders. Default 0.25. */
|
|
36
36
|
voteWeightStep?: number;
|
|
37
|
+
/** Allow landscape videos in this comment's reply composer. Default false. */
|
|
38
|
+
allowLandscapeVideos?: boolean;
|
|
37
39
|
/** Renderer URL overrides applied to the comment body. */
|
|
38
40
|
renderOptions?: {
|
|
39
41
|
userLinkUrlFn?: (username: string) => string;
|
|
@@ -42,5 +44,5 @@ interface InlineCommentItemProps {
|
|
|
42
44
|
ipfsGateway?: string;
|
|
43
45
|
};
|
|
44
46
|
}
|
|
45
|
-
export default function InlineCommentItem({ comment, allComments, onReply, onCancelReply, onCommentSubmit, activeReplyKey, currentUser, token, depth, onVotedRefresh, onClickCommentUpvote, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, hiveIconUrl, onShareComment, onTipComment, onReportComment, onNavigateToPost, onUserClick, defaultReward, defaultVotePercent, voteWeightStep, renderOptions, }: InlineCommentItemProps): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
export default function InlineCommentItem({ comment, allComments, onReply, onCancelReply, onCommentSubmit, activeReplyKey, currentUser, token, depth, onVotedRefresh, onClickCommentUpvote, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, hiveIconUrl, onShareComment, onTipComment, onReportComment, onNavigateToPost, onUserClick, defaultReward, defaultVotePercent, voteWeightStep, allowLandscapeVideos, renderOptions, }: InlineCommentItemProps): import("react/jsx-runtime").JSX.Element;
|
|
46
48
|
export {};
|
|
@@ -19,6 +19,8 @@ interface InlineCommentSectionProps {
|
|
|
19
19
|
defaultVotePercent?: number;
|
|
20
20
|
/** Slider precision (0.25, 0.5, or 1) used by every reply composer. Default 0.25. */
|
|
21
21
|
voteWeightStep?: number;
|
|
22
|
+
/** Allow landscape videos in every reply composer's video uploader. Default false. */
|
|
23
|
+
allowLandscapeVideos?: boolean;
|
|
22
24
|
/** Renderer URL overrides applied to every comment body in this section. */
|
|
23
25
|
renderOptions?: {
|
|
24
26
|
userLinkUrlFn?: (username: string) => string;
|
|
@@ -47,5 +49,5 @@ interface InlineCommentSectionProps {
|
|
|
47
49
|
/** Intercept intra-body Hive profile links in comment bodies. */
|
|
48
50
|
onUserClick?: (username: string) => void;
|
|
49
51
|
}
|
|
50
|
-
export default function InlineCommentSection({ author, permlink, currentUser, token, onSubmitComment, onClickCommentUpvote, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, reportedAuthors, reportedPosts, hiveIconUrl, onShareComment, onTipComment, onReportComment, onNavigateToPost, onUserClick, showVoteButton, alreadyVoted, parentTags, defaultReward, defaultVotePercent, voteWeightStep, renderOptions, }: InlineCommentSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
export default function InlineCommentSection({ author, permlink, currentUser, token, onSubmitComment, onClickCommentUpvote, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, reportedAuthors, reportedPosts, hiveIconUrl, onShareComment, onTipComment, onReportComment, onNavigateToPost, onUserClick, showVoteButton, alreadyVoted, parentTags, defaultReward, defaultVotePercent, voteWeightStep, allowLandscapeVideos, renderOptions, }: InlineCommentSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
51
53
|
export {};
|
|
@@ -36,6 +36,8 @@ export interface PollListItemProps {
|
|
|
36
36
|
defaultVotePercent?: number;
|
|
37
37
|
/** Slider precision (0.25 / 0.5 / 1) used by the poll's upvote slider. Default 0.25. */
|
|
38
38
|
voteWeightStep?: number;
|
|
39
|
+
/** Allow landscape videos in the poll's comment composer uploader. Default false. */
|
|
40
|
+
allowLandscapeVideos?: boolean;
|
|
39
41
|
}
|
|
40
42
|
declare const PollListItem: React.FC<PollListItemProps>;
|
|
41
43
|
export default PollListItem;
|
|
@@ -73,6 +73,9 @@ export interface UserDetailProfileProps {
|
|
|
73
73
|
/** Slider precision (0.25, 0.5, or 1) for every upvote slider on this page.
|
|
74
74
|
* Default 0.25. */
|
|
75
75
|
voteWeightStep?: number;
|
|
76
|
+
/** Allow landscape videos in every embedded comment composer on this profile.
|
|
77
|
+
* Default false (portrait-only, matches hSnaps Moments contract). */
|
|
78
|
+
allowLandscapeVideos?: boolean;
|
|
76
79
|
}
|
|
77
80
|
type TabType = "blogs" | "posts" | "snaps" | "polls" | "comments" | "replies" | "activities" | "authorRewards" | "curationRewards" | "followers" | "following" | "wallet" | "votingPower" | "badges" | "witnessVotes" | "growth";
|
|
78
81
|
declare const UserDetailProfile: React.FC<UserDetailProfileProps>;
|