@cesdk/cesdk-js 1.65.0-rc.0 → 1.66.0-nightly.20251126

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/index.d.ts CHANGED
@@ -6920,7 +6920,9 @@ export declare class UtilsAPI {
6920
6920
  * Opens a file picker dialog for the user to select a file
6921
6921
  *
6922
6922
  * @param options - Options for the file load operation
6923
- * @returns The loaded file content in the requested format
6923
+ * @returns The loaded file content in the requested format. For dataURL return type,
6924
+ * if the file is eligible for OPFS storage and the feature is enabled, returns the
6925
+ * OPFS URL (opfs://...) instead of a data URL.
6924
6926
  *
6925
6927
  * @example
6926
6928
  * ```typescript
@@ -6936,6 +6938,13 @@ export declare class UtilsAPI {
6936
6938
  * returnType: 'blob'
6937
6939
  * });
6938
6940
  *
6941
+ * // Load a file with OPFS support (returns opfs:// URL for eligible files)
6942
+ * const url = await cesdk.utils.loadFile({
6943
+ * accept: 'video/*',
6944
+ * returnType: 'dataURL'
6945
+ * });
6946
+ * // For eligible files: "opfs://cesdk-1234567890-video.mp4"
6947
+ * // For non-eligible files: "data:video/mp4;base64,..."
6939
6948
  * // Load a file as object URL (blob URL)
6940
6949
  * const objectURL = await cesdk.utils.loadFile({
6941
6950
  * accept: '.zip',