@sparkvault/sdk 1.9.2 → 1.10.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/sparkvault.cjs.js +110 -22
- package/dist/sparkvault.cjs.js.map +1 -1
- package/dist/sparkvault.esm.js +110 -22
- package/dist/sparkvault.esm.js.map +1 -1
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/dist/utils/dom.d.ts +6 -0
- package/dist/vaults/upload/renderer.d.ts +4 -0
- package/package.json +1 -1
package/dist/utils/dom.d.ts
CHANGED
|
@@ -9,3 +9,9 @@
|
|
|
9
9
|
* Otherwise, waits for DOMContentLoaded.
|
|
10
10
|
*/
|
|
11
11
|
export declare function onDomReady(callback: () => void): void;
|
|
12
|
+
/**
|
|
13
|
+
* Execute a callback when document.body is available.
|
|
14
|
+
* Handles edge cases where body might not exist even after DOMContentLoaded
|
|
15
|
+
* (e.g., scripts with defer/async loading during parsing).
|
|
16
|
+
*/
|
|
17
|
+
export declare function onBodyReady(callback: () => void): void;
|
|
@@ -56,6 +56,10 @@ export declare class UploadRenderer {
|
|
|
56
56
|
private cleanupPasteHandler;
|
|
57
57
|
private startUpload;
|
|
58
58
|
private uploadWithTus;
|
|
59
|
+
/**
|
|
60
|
+
* Upload a single chunk using XMLHttpRequest for progress tracking
|
|
61
|
+
*/
|
|
62
|
+
private uploadChunkWithProgress;
|
|
59
63
|
private runCeremony;
|
|
60
64
|
private handleApiError;
|
|
61
65
|
private escapeHtml;
|