@cesdk/cesdk-js 1.67.0-nightly.20260104 → 1.67.0-nightly.20260106
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.67.0-nightly.20260104-IXF4GL7Q.wasm → cesdk-v1.67.0-nightly.20260106-DW6ZBGH5.wasm} +0 -0
- package/assets/core/{worker-host-v1.67.0-nightly.20260104.js → worker-host-v1.67.0-nightly.20260106.js} +1 -1
- package/cesdk.umd.js +1 -1
- package/index.d.ts +5 -2
- package/index.js +1 -1
- package/package.json +2 -2
- /package/assets/core/{cesdk-v1.67.0-nightly.20260104-44YCFRT6.data → cesdk-v1.67.0-nightly.20260106-44YCFRT6.data} +0 -0
package/index.d.ts
CHANGED
|
@@ -6978,9 +6978,9 @@ export declare class UtilsAPI {
|
|
|
6978
6978
|
returnType?: T;
|
|
6979
6979
|
}): Promise<T extends 'dataURL' ? string : T extends 'text' ? string : T extends 'blob' ? Blob : T extends 'arrayBuffer' ? ArrayBuffer : T extends 'objectURL' ? string : File>;
|
|
6980
6980
|
/**
|
|
6981
|
-
* Downloads a blob or
|
|
6981
|
+
* Downloads a blob, string, or OPFS path as a file to the user's device
|
|
6982
6982
|
*
|
|
6983
|
-
* @param file - The content to download (Blob or
|
|
6983
|
+
* @param file - The content to download (Blob, string content, or opfs:// path)
|
|
6984
6984
|
* @param mimeType - The MIME type of the content
|
|
6985
6985
|
*
|
|
6986
6986
|
* @example
|
|
@@ -6991,6 +6991,9 @@ export declare class UtilsAPI {
|
|
|
6991
6991
|
* // Download a blob
|
|
6992
6992
|
* const blob = new Blob(['content'], { type: 'text/plain' });
|
|
6993
6993
|
* await cesdk.utils.downloadFile(blob, 'text/plain');
|
|
6994
|
+
*
|
|
6995
|
+
* // Download from OPFS path
|
|
6996
|
+
* await cesdk.utils.downloadFile('opfs://cesdk/buffer/file.mp4', 'video/mp4');
|
|
6994
6997
|
* ```
|
|
6995
6998
|
* @public
|
|
6996
6999
|
*/
|