hive-react-kit 0.8.2 → 0.8.5

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 CHANGED
@@ -560,6 +560,9 @@
560
560
  .mb-12 {
561
561
  margin-bottom: calc(var(--spacing) * 12);
562
562
  }
563
+ .-ml-2 {
564
+ margin-left: calc(var(--spacing) * -2);
565
+ }
563
566
  .ml-0\.5 {
564
567
  margin-left: calc(var(--spacing) * 0.5);
565
568
  }
@@ -1346,6 +1349,12 @@
1346
1349
  border-color: color-mix(in oklab, var(--color-green-800) 40%, transparent);
1347
1350
  }
1348
1351
  }
1352
+ .border-purple-700\/60 {
1353
+ border-color: color-mix(in srgb, oklch(49.6% 0.265 301.924) 60%, transparent);
1354
+ @supports (color: color-mix(in lab, red, red)) {
1355
+ border-color: color-mix(in oklab, var(--color-purple-700) 60%, transparent);
1356
+ }
1357
+ }
1349
1358
  .border-red-200 {
1350
1359
  border-color: var(--color-red-200);
1351
1360
  }
@@ -1673,6 +1682,12 @@
1673
1682
  .bg-purple-600 {
1674
1683
  background-color: var(--color-purple-600);
1675
1684
  }
1685
+ .bg-purple-900\/60 {
1686
+ background-color: color-mix(in srgb, oklch(38.1% 0.176 304.987) 60%, transparent);
1687
+ @supports (color: color-mix(in lab, red, red)) {
1688
+ background-color: color-mix(in oklab, var(--color-purple-900) 60%, transparent);
1689
+ }
1690
+ }
1676
1691
  .bg-red-50 {
1677
1692
  background-color: var(--color-red-50);
1678
1693
  }
@@ -2219,6 +2234,9 @@
2219
2234
  .text-orange-400 {
2220
2235
  color: var(--color-orange-400);
2221
2236
  }
2237
+ .text-purple-200 {
2238
+ color: var(--color-purple-200);
2239
+ }
2222
2240
  .text-purple-300 {
2223
2241
  color: var(--color-purple-300);
2224
2242
  }
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { type PostingSignMessageFn } from '../../services/hiveImageUpload';
2
3
  export interface PostComposerProps {
3
4
  onSubmit: (body: string) => void | boolean | Promise<void | boolean>;
4
5
  onCancel?: () => void;
@@ -8,6 +9,10 @@ export interface PostComposerProps {
8
9
  parentPermlink?: string;
9
10
  /** Ecency image hosting token — enables image/video thumbnail upload and paste/drag upload */
10
11
  ecencyToken?: string;
12
+ /** Optional signer used when Ecency image uploads fail. Signs a posting-key message for images.hive.blog. */
13
+ onSignMessage?: PostingSignMessageFn;
14
+ /** Hive username used for the signed images.hive.blog fallback upload. */
15
+ signingUsername?: string;
11
16
  /** 3Speak API key — enables audio and video upload */
12
17
  threeSpeakApiKey?: string;
13
18
  /** GIPHY API key — enables GIF search */
@@ -65,8 +70,8 @@ export interface PostComposerProps {
65
70
  }
66
71
  /** @deprecated Use PostComposerProps instead */
67
72
  export type AddCommentInputProps = PostComposerProps;
68
- declare const PostComposer: ({ onSubmit, onCancel, currentUser, placeholder, parentAuthor, parentPermlink, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, hideBold, hideItalic, hideLink, hideImage, hideAudio, hideVideo, hideEmoji, hideGif, hideCode, hideMention, hideTemplate, hidePreview, hidePoll, onPollChange, showCancel, submitLabel, title, defaultPreviewOn, value, onChange, disabled, hideSubmitArea, submitRef, hideUserHeader, bgColor, borderColor, disableAutoFocus, }: PostComposerProps) => import("react/jsx-runtime").JSX.Element;
73
+ 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, showCancel, submitLabel, title, defaultPreviewOn, value, onChange, disabled, hideSubmitArea, submitRef, hideUserHeader, bgColor, borderColor, disableAutoFocus, }: PostComposerProps) => import("react/jsx-runtime").JSX.Element;
69
74
  /** @deprecated Use PostComposer instead */
70
- declare const AddCommentInput: ({ onSubmit, onCancel, currentUser, placeholder, parentAuthor, parentPermlink, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, hideBold, hideItalic, hideLink, hideImage, hideAudio, hideVideo, hideEmoji, hideGif, hideCode, hideMention, hideTemplate, hidePreview, hidePoll, onPollChange, showCancel, submitLabel, title, defaultPreviewOn, value, onChange, disabled, hideSubmitArea, submitRef, hideUserHeader, bgColor, borderColor, disableAutoFocus, }: PostComposerProps) => import("react/jsx-runtime").JSX.Element;
75
+ 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, showCancel, submitLabel, title, defaultPreviewOn, value, onChange, disabled, hideSubmitArea, submitRef, hideUserHeader, bgColor, borderColor, disableAutoFocus, }: PostComposerProps) => import("react/jsx-runtime").JSX.Element;
71
76
  export { PostComposer };
72
77
  export default AddCommentInput;
@@ -1,9 +1,14 @@
1
1
  import React from "react";
2
+ import { type PostingSignMessageFn } from "../../services/hiveImageUpload";
2
3
  export interface ImageUploaderProps {
3
4
  /** Called with the uploaded image URL */
4
5
  onImageUploaded: (imageUrl: string) => void;
5
6
  /** Ecency image hosting token for upload authentication */
6
7
  ecencyToken?: string;
8
+ /** Optional signer used when the Ecency upload fails. Signs a posting-key message. */
9
+ onSignMessage?: PostingSignMessageFn;
10
+ /** Hive username used for the signed images.hive.blog fallback upload. */
11
+ signingUsername?: string;
7
12
  disabled?: boolean;
8
13
  }
9
14
  declare const ImageUploader: React.FC<ImageUploaderProps>;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { type PostingSignMessageFn } from '../../services/hiveImageUpload';
2
3
  export interface VideoUploaderProps {
3
4
  /** Called with embed URL, upload URL, aspect ratio, and optional local file for preview */
4
5
  onVideoUploaded: (videoEmbedUrl: string, uploadUrl: string, aspectRatio: string, localPreviewFile?: File) => void;
@@ -6,6 +7,8 @@ export interface VideoUploaderProps {
6
7
  username?: string;
7
8
  /** Ecency image hosting token for thumbnail upload */
8
9
  ecencyToken?: string;
10
+ /** Optional signer used when the Ecency thumbnail upload fails. */
11
+ onSignMessage?: PostingSignMessageFn;
9
12
  /** 3Speak API key. Falls back to demo key if not provided. */
10
13
  threeSpeakApiKey?: string;
11
14
  disabled?: boolean;