aot-ui 0.2.4 → 0.2.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.
@@ -165,6 +165,7 @@ export * from './modules/toast';
165
165
  export * from './modules/tooltip';
166
166
  export * from './modules/tour';
167
167
  export * from './modules/transfer';
168
+ export * from './modules/transfer-rate';
168
169
  export * from './modules/transition';
169
170
  export * from './modules/travel-home';
170
171
  export * from './modules/tree';
@@ -17,6 +17,10 @@ export type DownloadItem = {
17
17
  /** Resumed from a previous session checkpoint. */
18
18
  resumed?: boolean;
19
19
  error?: string;
20
+ /** Instantaneous download speed (bytes/sec); optional UI hint */
21
+ speedBps?: number;
22
+ /** Estimated remaining seconds; null when unknown */
23
+ etaSeconds?: number | null;
20
24
  };
21
25
  export type DownloadTaskInput = {
22
26
  name: string;
@@ -0,0 +1 @@
1
+ export { TransferMeter, formatEta, formatSpeed, formatTransferLine, type TransferSample, } from '../../shared/transferRate';
@@ -21,6 +21,10 @@ export type UploadFile = {
21
21
  raw?: UploadRawFile;
22
22
  /** 断点续传标记(库扩展) */
23
23
  resumed?: boolean;
24
+ /** Instantaneous upload speed (bytes/sec); optional UI hint */
25
+ speedBps?: number;
26
+ /** Estimated remaining seconds; null when unknown */
27
+ etaSeconds?: number | null;
24
28
  };
25
29
  export type UploadUserFile = Omit<UploadFile, "status" | "uid"> & Partial<Pick<UploadFile, "status" | "uid">>;
26
30
  export type UploadProgressEvent = ProgressEvent & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aot-ui",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "AOT React UI component kit",
5
5
  "type": "module",
6
6
  "main": "./dist-lib/aot-ui.js",