hive-react-kit 0.8.5 → 0.8.7

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.
@@ -11,4 +11,12 @@
11
11
  * what images.hive.blog expects.
12
12
  */
13
13
  export type PostingSignMessageFn = (message: string) => Promise<string>;
14
- export declare function uploadToHiveImages(signMessage: PostingSignMessageFn, username: string, file: Blob, filename?: string): Promise<string>;
14
+ export interface UploadToHiveImagesOptions {
15
+ /** Fires immediately before the caller's signMessage runs (wallet approval begins). */
16
+ onSignStart?: () => void;
17
+ /** Fires after signMessage resolves/rejects (wallet approval ended). */
18
+ onSignEnd?: () => void;
19
+ /** Abort signal — aborts the upload fetch (the wallet sign step itself can't be cancelled). */
20
+ signal?: AbortSignal;
21
+ }
22
+ export declare function uploadToHiveImages(signMessage: PostingSignMessageFn, username: string, file: Blob, filename?: string, options?: UploadToHiveImagesOptions): Promise<string>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hive-react-kit",
3
3
  "private": false,
4
- "version": "0.8.5",
4
+ "version": "0.8.7",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.esm.js",