hive-react-kit 1.7.4 → 1.7.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/build.css +3 -0
- package/dist/components/HiveDetailPost.d.ts +5 -1
- package/dist/components/composer/ParentPostComposer.d.ts +4 -0
- package/dist/components/composer/PostTemplatesPanel.d.ts +5 -1
- package/dist/components/user/UserDetailProfile.d.ts +4 -0
- package/dist/index.cjs.js +186 -186
- package/dist/index.esm.js +20237 -20147
- package/package.json +1 -1
package/dist/build.css
CHANGED
|
@@ -164,6 +164,10 @@ export interface HiveDetailPostProps {
|
|
|
164
164
|
/** Background color for the component. Pass a single color string for a solid background, or an array of colors for a gradient (e.g. `["#0f172a", "#1e293b"]` or `["#1a1a2e", "#16213e", "#0f3460"]`). Defaults to gray-900. */
|
|
165
165
|
backgroundColor?: string | string[];
|
|
166
166
|
onBack?: () => void;
|
|
167
|
+
/** Opens the host app's navigation (left) drawer. When set, a hamburger
|
|
168
|
+
* button appears at the far left of the header so the drawer is reachable
|
|
169
|
+
* from this full-screen page. */
|
|
170
|
+
onOpenMenu?: () => void;
|
|
167
171
|
onUserClick?: (username: string) => void;
|
|
168
172
|
/** Called when user clicks "View parent post" — navigate to the parent post. */
|
|
169
173
|
onNavigateToPost?: (author: string, permlink: string) => void;
|
|
@@ -212,5 +216,5 @@ export interface HiveDetailPostProps {
|
|
|
212
216
|
* page will then re-render with the new language. */
|
|
213
217
|
onSelectLanguage?: (code: string) => void;
|
|
214
218
|
}
|
|
215
|
-
export declare function HiveDetailPost({ author, permlink, currentUser, onUpvote, onSubmitComment, onClickCommentUpvote, onReblog, onShare, onTip, onReport, onEdit, onDelete, onShareComment, onTipComment, onReportComment, onToggleCommentBookmark, isCommentBookmarked, onEditComment, onDeleteComment, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, reportedAuthors, reportedPosts, hiveIconUrl, backgroundColor, onBack, onUserClick, onCommunityClick, getUserUrl, getCommunityUrl, onNavigateToPost, isBookmarked, onToggleBookmark, onHeaderShare, onHeaderReport, language, onSelectLanguage, onVotePoll, showVoteButton, processBody, defaultReward, defaultBeneficiaries, beneficiaryFavorites, defaultVotePercent, voteWeightStep, allowLandscapeVideos, renderOptions, awaitingWalletApproval, }: HiveDetailPostProps): import("react/jsx-runtime").JSX.Element;
|
|
219
|
+
export declare function HiveDetailPost({ author, permlink, currentUser, onUpvote, onSubmitComment, onClickCommentUpvote, onReblog, onShare, onTip, onReport, onEdit, onDelete, onShareComment, onTipComment, onReportComment, onToggleCommentBookmark, isCommentBookmarked, onEditComment, onDeleteComment, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, reportedAuthors, reportedPosts, hiveIconUrl, backgroundColor, onBack, onOpenMenu, onUserClick, onCommunityClick, getUserUrl, getCommunityUrl, onNavigateToPost, isBookmarked, onToggleBookmark, onHeaderShare, onHeaderReport, language, onSelectLanguage, onVotePoll, showVoteButton, processBody, defaultReward, defaultBeneficiaries, beneficiaryFavorites, defaultVotePercent, voteWeightStep, allowLandscapeVideos, renderOptions, awaitingWalletApproval, }: HiveDetailPostProps): import("react/jsx-runtime").JSX.Element;
|
|
216
220
|
export default HiveDetailPost;
|
|
@@ -233,6 +233,10 @@ export interface ParentPostComposerProps {
|
|
|
233
233
|
submitLabelWithVideo?: string;
|
|
234
234
|
/** Page title shown in the sticky header (default "Create post"). */
|
|
235
235
|
title?: string;
|
|
236
|
+
/** Add a top safe-area inset to the sticky header so its buttons clear
|
|
237
|
+
* the device status bar / notch. Enable on full-screen routes; leave
|
|
238
|
+
* off inside modals/sheets that already sit below the notch. */
|
|
239
|
+
safeAreaTop?: boolean;
|
|
236
240
|
/** Hint shown when the wallet is awaiting approval during the broadcast. */
|
|
237
241
|
walletApprovalLabel?: string;
|
|
238
242
|
/** When true, the composer renders a blinking "approve in wallet" banner. */
|
|
@@ -69,6 +69,10 @@ export interface PostTemplatesPanelProps {
|
|
|
69
69
|
* state via the existing `applyTemplate` ref (or by remounting the
|
|
70
70
|
* composer). */
|
|
71
71
|
onApplyTemplate: (template: PostTemplate) => void;
|
|
72
|
+
/** Which view to show when the panel opens — `'list'` (load a template)
|
|
73
|
+
* or `'save'` (save the current post as a new template). Defaults to
|
|
74
|
+
* `'list'`. */
|
|
75
|
+
initialView?: 'list' | 'save';
|
|
72
76
|
}
|
|
73
|
-
declare function PostTemplatesPanel({ isOpen, onClose, templates, currentPayload, busy, onSaveTemplate, onDeleteTemplate, onApplyTemplate, }: PostTemplatesPanelProps): React.JSX.Element | null;
|
|
77
|
+
declare function PostTemplatesPanel({ isOpen, onClose, templates, currentPayload, busy, onSaveTemplate, onDeleteTemplate, onApplyTemplate, initialView, }: PostTemplatesPanelProps): React.JSX.Element | null;
|
|
74
78
|
export default PostTemplatesPanel;
|
|
@@ -4,6 +4,10 @@ export interface UserDetailProfileProps {
|
|
|
4
4
|
username: string;
|
|
5
5
|
currentUsername?: string;
|
|
6
6
|
onBack?: () => void;
|
|
7
|
+
/** Opens the host app's navigation (left) drawer. When set, a hamburger
|
|
8
|
+
* button appears at the far left of the header so the drawer stays
|
|
9
|
+
* reachable from this full-screen profile page. */
|
|
10
|
+
onOpenMenu?: () => void;
|
|
7
11
|
showBackButton?: boolean;
|
|
8
12
|
/**
|
|
9
13
|
* Controls which tabs are shown and their order.
|