@sparkvault/sdk-js 15.0.0 → 15.1.1
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/index.cjs +522 -421
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +8 -2
- package/dist/index.mjs +522 -421
- package/dist/index.mjs.map +1 -1
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/dist/vaults/upload/renderer.d.ts +73 -6
- package/dist/vaults/upload/styles.d.ts +2 -2
- package/dist/vaults/upload/types.d.ts +18 -21
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3669,7 +3669,7 @@ interface UploadOptions {
|
|
|
3669
3669
|
target?: string | HTMLElement;
|
|
3670
3670
|
/** Override backdrop blur for this dialog (uses global config if omitted) */
|
|
3671
3671
|
backdropBlur?: boolean;
|
|
3672
|
-
/** Hide "Upload
|
|
3672
|
+
/** Hide the "Upload another file" button once a file is sent (for single-file flows) */
|
|
3673
3673
|
hideUploadAnother?: boolean;
|
|
3674
3674
|
/**
|
|
3675
3675
|
* Skip the success screen entirely. On completion the SDK fires onSuccess
|
|
@@ -3735,7 +3735,13 @@ interface UploadProgress {
|
|
|
3735
3735
|
bytesTotal: number;
|
|
3736
3736
|
/** Percentage (0-100) */
|
|
3737
3737
|
percentage: number;
|
|
3738
|
-
/**
|
|
3738
|
+
/**
|
|
3739
|
+
* Current phase: 'uploading' while the bytes move and while SparkVault
|
|
3740
|
+
* secures the file (percentage 100 once every byte is sent, before the save
|
|
3741
|
+
* is confirmed; an upload can still fail then). 'ceremony' once SparkVault
|
|
3742
|
+
* has confirmed the save, reported once, then 'complete' as the upload
|
|
3743
|
+
* ends. No phase runs on a timer.
|
|
3744
|
+
*/
|
|
3739
3745
|
phase: 'uploading' | 'ceremony' | 'complete';
|
|
3740
3746
|
}
|
|
3741
3747
|
/**
|