@cesdk/cesdk-js 1.64.0-nightly.20251105 → 1.64.0-nightly.20251106
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/assets/core/{cesdk-v1.64.0-nightly.20251105-IH2WJZOE.wasm → cesdk-v1.64.0-nightly.20251106-L7MTKIH3.wasm} +0 -0
- package/assets/core/{worker-host-v1.64.0-nightly.20251105.js → worker-host-v1.64.0-nightly.20251106.js} +1 -1
- package/cesdk.umd.js +1 -1
- package/index.d.ts +10 -2
- package/index.js +1 -1
- package/package.json +2 -2
- /package/assets/core/{cesdk-v1.64.0-nightly.20251105-44YCFRT6.data → cesdk-v1.64.0-nightly.20251106-44YCFRT6.data} +0 -0
package/index.d.ts
CHANGED
|
@@ -6873,13 +6873,21 @@ export declare class UtilsAPI {
|
|
|
6873
6873
|
* accept: 'image/*',
|
|
6874
6874
|
* returnType: 'blob'
|
|
6875
6875
|
* });
|
|
6876
|
+
*
|
|
6877
|
+
* // Load a file as object URL (blob URL)
|
|
6878
|
+
* const objectURL = await cesdk.utils.loadFile({
|
|
6879
|
+
* accept: '.zip',
|
|
6880
|
+
* returnType: 'objectURL'
|
|
6881
|
+
* });
|
|
6882
|
+
* // Remember to revoke the object URL when done
|
|
6883
|
+
* URL.revokeObjectURL(objectURL);
|
|
6876
6884
|
* ```
|
|
6877
6885
|
* @public
|
|
6878
6886
|
*/
|
|
6879
|
-
loadFile<T extends 'dataURL' | 'text' | 'blob' | 'arrayBuffer' | 'File'>({ accept, returnType }: {
|
|
6887
|
+
loadFile<T extends 'dataURL' | 'text' | 'blob' | 'arrayBuffer' | 'File' | 'objectURL'>({ accept, returnType }: {
|
|
6880
6888
|
accept: string;
|
|
6881
6889
|
returnType?: T;
|
|
6882
|
-
}): Promise<T extends 'dataURL' ? string : T extends 'text' ? string : T extends 'blob' ? Blob : T extends 'arrayBuffer' ? ArrayBuffer : File>;
|
|
6890
|
+
}): Promise<T extends 'dataURL' ? string : T extends 'text' ? string : T extends 'blob' ? Blob : T extends 'arrayBuffer' ? ArrayBuffer : T extends 'objectURL' ? string : File>;
|
|
6883
6891
|
/**
|
|
6884
6892
|
* Downloads a blob or string as a file to the user's device
|
|
6885
6893
|
*
|