hive-react-kit 1.7.2 → 1.7.3
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/community/CommunityDetail.d.ts +9 -1
- package/dist/index.cjs.js +104 -104
- package/dist/index.esm.js +9881 -9795
- package/package.json +1 -1
|
@@ -93,6 +93,14 @@ export interface CommunityDetailProps {
|
|
|
93
93
|
/** Show a spinner on the button — set this true while a broadcast is
|
|
94
94
|
* in flight on the host. */
|
|
95
95
|
subscribePending?: boolean;
|
|
96
|
+
/** When true (current user is owner/admin), the header swaps the
|
|
97
|
+
* Subscribe button for an "Actions" dropdown (Unsubscribe + Roles &
|
|
98
|
+
* Titles). The host gates this by role. */
|
|
99
|
+
canManage?: boolean;
|
|
100
|
+
/** Opens the host's Roles & Titles management UI. */
|
|
101
|
+
onManageRoles?: () => void;
|
|
102
|
+
/** Opens the host's Community Settings UI. */
|
|
103
|
+
onOpenSettings?: () => void;
|
|
96
104
|
/** Controlled top-level tab. Pass alongside `onActiveTabChange` to
|
|
97
105
|
* drive the tab from the URL or any other external store. When
|
|
98
106
|
* omitted, the component manages tab state internally (default
|
|
@@ -110,5 +118,5 @@ export interface CommunityDetailProps {
|
|
|
110
118
|
* the view starts at the top, matching forward navigation. */
|
|
111
119
|
shouldRestoreScroll?: boolean;
|
|
112
120
|
}
|
|
113
|
-
declare const CommunityDetail: ({ communityId, currentUser, onBack, onUserClick, onPostClick, getPostUrl, getUserUrl, getTagUrl, getCommunityUrl, onCommentClick, onUpvote, onSubmitComment, onClickCommentUpvote, onReblog, onTip, onSharePost, onReportPost, onToggleBookmark, isPostBookmarked, onToggleCommunityBookmark, isCommunityBookmarked, onDeletePost, canPin, onPinPost, onUnpinPost, onVotePoll, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, defaultVotePercent, voteWeightStep, allowLandscapeVideos, awaitingWalletApproval, defaultReward, actionsAsMenu, onShare, onRss, isSubscribed: controlledIsSubscribed, onToggleSubscribe, subscribePending, loadCommunitySnaps: _loadCommunitySnaps, reportedAuthors, reportedPosts, activeTab: controlledActiveTab, onActiveTabChange, postSort: controlledPostSort, onPostSortChange, shouldRestoreScroll, }: CommunityDetailProps) => import("react/jsx-runtime").JSX.Element;
|
|
121
|
+
declare const CommunityDetail: ({ communityId, currentUser, onBack, onUserClick, onPostClick, getPostUrl, getUserUrl, getTagUrl, getCommunityUrl, onCommentClick, onUpvote, onSubmitComment, onClickCommentUpvote, onReblog, onTip, onSharePost, onReportPost, onToggleBookmark, isPostBookmarked, onToggleCommunityBookmark, isCommunityBookmarked, onDeletePost, canPin, onPinPost, onUnpinPost, onVotePoll, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, defaultVotePercent, voteWeightStep, allowLandscapeVideos, awaitingWalletApproval, defaultReward, actionsAsMenu, onShare, onRss, isSubscribed: controlledIsSubscribed, onToggleSubscribe, subscribePending, canManage, onManageRoles, onOpenSettings, loadCommunitySnaps: _loadCommunitySnaps, reportedAuthors, reportedPosts, activeTab: controlledActiveTab, onActiveTabChange, postSort: controlledPostSort, onPostSortChange, shouldRestoreScroll, }: CommunityDetailProps) => import("react/jsx-runtime").JSX.Element;
|
|
114
122
|
export default CommunityDetail;
|