@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.
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sparkvault/sdk",
3
- "version": "1.9.2",
3
+ "version": "1.10.1",
4
4
  "description": "SparkVault JavaScript SDK - Identity Verification and Encrypted Vaults",
5
5
  "type": "module",
6
6
  "main": "dist/sparkvault.cjs.js",