jamespot-react-components 1.3.129 → 1.3.130

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.
@@ -1,4 +1,4 @@
1
- export declare function fileSend(file: File, token: string | undefined, name: string): Promise<{
1
+ export declare function fileSend(file: File, token: string | undefined, name: string, signal?: AbortSignal): Promise<{
2
2
  result: import('jamespot-user-api').jFileLittle;
3
3
  token: string;
4
4
  }>;
@@ -1,9 +1,8 @@
1
1
  import { jFileLittle } from 'jamespot-user-api';
2
2
  import { FileWithId } from '../JRCInputFileAdvanced/types';
3
- export declare const File: ({ file, index, token, step, attrName, onUploadSuccess, onUploadError, onDeleteSuccess, }: {
3
+ export declare const File: ({ file, token, isActive, attrName, onUploadSuccess, onUploadError, onDeleteSuccess, }: {
4
4
  file: FileWithId;
5
- index: number;
6
- step: number;
5
+ isActive: boolean;
7
6
  token: string | undefined;
8
7
  attrName: string;
9
8
  onUploadSuccess?: (response: jFileLittle, token: string) => void;
@@ -17,6 +17,8 @@ export interface JRCInputFileAdavancedProps extends ComponentPropsWithoutRef<'in
17
17
  onUploadStart?: (count?: number) => void;
18
18
  /** Fired once per file whose upload failed, so callers can stop waiting on it. */
19
19
  onUploadError?: () => void;
20
+ /** Fired whenever the count of files still pending upload changes from/to zero. */
21
+ onUploadingStateChange?: (isUploading: boolean) => void;
20
22
  existingFiles?: Array<jFileLittle>;
21
23
  deleteFile?: (id: number) => Promise<void>;
22
24
  activeDrives?: DriveOrFilebank[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.3.129",
3
+ "version": "1.3.130",
4
4
  "description": "",
5
5
  "main": "dist/jamespot-react-components.cjs",
6
6
  "module": "dist/jamespot-react-components.js",
@@ -60,8 +60,8 @@
60
60
  "eslint-plugin-storybook": "10.3.6",
61
61
  "globals": "^16.5.0",
62
62
  "html2canvas": "^1.4.1",
63
- "jamespot-front-business": "^1.3.129",
64
- "jamespot-user-api": "^1.3.129",
63
+ "jamespot-front-business": "^1.3.130",
64
+ "jamespot-user-api": "^1.3.130",
65
65
  "jsdom": "^26.1.0",
66
66
  "knip": "^5.88.1",
67
67
  "lint-staged": "^16.4.0",