@cesdk/engine 1.62.0-rc.1 → 1.62.0

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
@@ -1132,6 +1132,7 @@ export declare type AssetTransformPreset = AssetFixedAspectRatio | AssetFreeAspe
1132
1132
  * - 'duration': The duration in seconds of the final audio.
1133
1133
  * - 'sampleRate': The sample rate of the exported audio.
1134
1134
  * - 'numberOfChannels': The number of channels of the exported audio.
1135
+ * - 'skipEncoding': Skip encoding (audio data will be returned immediately even if not compatible with target MIME type).
1135
1136
  *
1136
1137
  * @public
1137
1138
  */
@@ -1170,6 +1171,16 @@ export declare type AudioExportOptions = {
1170
1171
  * @defaultValue 2
1171
1172
  */
1172
1173
  numberOfChannels?: number;
1174
+ /**
1175
+ * Skip encoding (audio data will be returned immediately even if not compatible with target MIME type).
1176
+ *
1177
+ * @defaultValue false
1178
+ */
1179
+ skipEncoding?: boolean;
1180
+ /**
1181
+ * An AbortSignal that can be used to cancel the audio export operation.
1182
+ */
1183
+ abortSignal?: AbortSignal;
1173
1184
  };
1174
1185
 
1175
1186
  /**
@@ -1178,10 +1189,11 @@ export declare type AudioExportOptions = {
1178
1189
  * @categoryDescription Audio MIME Type
1179
1190
  * Defines the possible audio MIME types used in the editor.
1180
1191
  * - 'audio/wav': WAV audio format.
1192
+ * - 'audio/mp4': MP4 audio format.
1181
1193
  *
1182
1194
  * @public
1183
1195
  */
1184
- export declare type AudioMimeType = Extract<MimeType_2, 'audio/wav'>;
1196
+ export declare type AudioMimeType = Extract<MimeType_2, 'audio/wav' | 'audio/mp4'>;
1185
1197
 
1186
1198
  /**
1187
1199
  * Information about a single audio track from a video.
@@ -1475,10 +1487,10 @@ export declare class BlockAPI {
1475
1487
  * console.log(`Audio export progress: ${Math.round((encodedFrames / totalFrames) * 100)}%`);
1476
1488
  * };
1477
1489
  * const audioOptions = { duration: 10 };
1478
- * const audioBlob = await engine.block.unstable_exportAudio(audioBlock, MimeType.Wav, progressTracker, audioOptions);
1490
+ * const audioBlob = await engine.block.exportAudio(audioBlock, MimeType.Wav, progressTracker, audioOptions);
1479
1491
  * ```
1480
1492
  */
1481
- unstable_exportAudio(handle: DesignBlockId, options?: AudioExportOptions): Promise<Blob>;
1493
+ exportAudio(handle: DesignBlockId, options?: AudioExportOptions): Promise<Blob>;
1482
1494
  /**
1483
1495
  * Loads blocks from a serialized string.
1484
1496
  *
@@ -7257,6 +7269,7 @@ export declare const LogLevel: {
7257
7269
  * - 'image/webp': WebP image format.
7258
7270
  * - 'image/x-tga': TGA image format.
7259
7271
  * - 'audio/wav': WAV audio format.
7272
+ * - 'audio/mp4': MP4 audio format.
7260
7273
  * - 'video/mp4': MP4 video format.
7261
7274
  * - 'video/quicktime': QuickTime video format.
7262
7275
  * - 'application/octet-stream': Binary data format.
@@ -7272,6 +7285,7 @@ declare const MimeType_2: {
7272
7285
  readonly WebP: "image/webp";
7273
7286
  readonly Tga: "image/x-tga";
7274
7287
  readonly Wav: "audio/wav";
7288
+ readonly Mp4Audio: "audio/mp4";
7275
7289
  readonly Mp4: "video/mp4";
7276
7290
  readonly QuickTime: "video/quicktime";
7277
7291
  readonly Binary: "application/octet-stream";
@@ -7289,6 +7303,7 @@ declare const MimeType_2: {
7289
7303
  * - 'image/webp': WebP image format.
7290
7304
  * - 'image/x-tga': TGA image format.
7291
7305
  * - 'audio/wav': WAV audio format.
7306
+ * - 'audio/mp4': MP4 audio format.
7292
7307
  * - 'video/mp4': MP4 video format.
7293
7308
  * - 'video/quicktime': QuickTime video format.
7294
7309
  * - 'application/octet-stream': Binary data format.
@@ -8234,6 +8249,14 @@ export declare interface Settings {
8234
8249
  fallbackFontUri: string;
8235
8250
  /** The supported MIME types for file uploads. */
8236
8251
  'upload/supportedMimeTypes': string;
8252
+ /**
8253
+ * Web-only: Credentials mode for cross-origin fetch requests.
8254
+ * - "omit": Never send cookies
8255
+ * - "same-origin": Send cookies only for same-origin requests (default)
8256
+ * - "include": Always send cookies, even for cross-origin requests
8257
+ * Note: Only affects web platform. Ignored on native platforms.
8258
+ */
8259
+ 'web/fetchCredentials': 'omit' | 'same-origin' | 'include';
8237
8260
  /** Scale-down limit for blocks in screen pixels when scaling with gizmos or touch gestures. */
8238
8261
  'controlGizmo/blockScaleDownLimit': number;
8239
8262
  /** The threshold distance in pixels for position snapping. */
@@ -8668,6 +8691,7 @@ export declare type TypefaceDefinition = {
8668
8691
  export declare interface _UBQExportAudioOptions {
8669
8692
  sampleRate: number;
8670
8693
  numberOfChannels: number;
8694
+ skipEncoding?: boolean;
8671
8695
  }
8672
8696
 
8673
8697
  /**