UNPKG

@wordpress/upload-media

Version:
44 lines 1.67 kB
export declare const STORE_NAME = "core/upload-media"; /** * Default maximum number of concurrent uploads. */ export declare const DEFAULT_MAX_CONCURRENT_UPLOADS = 5; /** * Default maximum number of concurrent image processing operations. * * Image processing (VIPS WASM) is significantly more memory-intensive * than network uploads. Each operation can consume 50-100MB+ of memory * for large images. A lower limit prevents out-of-memory crashes when * uploading many images at once. */ export declare const DEFAULT_MAX_CONCURRENT_IMAGE_PROCESSING = 2; /** * Default automatic retry behavior for failed uploads. * * Four total attempts (initial + 3 retries) with exponential backoff: * ~1s, then ~2s, capped at 30s. The jitter factor adds randomness to * the delay so simultaneous failures do not retry in lockstep. */ export declare const DEFAULT_RETRY_SETTINGS: { readonly maxRetryAttempts: 3; readonly initialRetryDelayMs: 1000; readonly maxRetryDelayMs: 30000; readonly backoffMultiplier: 2; readonly retryJitter: 0.1; }; /** * MIME types supported by client-side media processing. * * These are the image formats that can be processed using * WebAssembly-based vips in the browser. */ export declare const CLIENT_SIDE_SUPPORTED_MIME_TYPES: readonly string[]; /** * HEIC/HEIF MIME types. * * These formats use the HEVC codec which has patent/licensing restrictions. * Instead of shipping our own decoder, the client falls back to the browser's * native createImageBitmap() which leverages OS/browser-licensed HEVC codecs. */ export declare const HEIC_MIME_TYPES: readonly string[]; //# sourceMappingURL=constants.d.ts.map