ugcinc 2.46.0 → 2.47.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.
Files changed (2) hide show
  1. package/dist/types.d.ts +18 -0
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -350,11 +350,29 @@ export interface VideoEditorConfig extends BaseEditorConfig {
350
350
  segments: EditorSegment[];
351
351
  }>;
352
352
  }
353
+ export interface CropBoundary {
354
+ elementId?: string;
355
+ inputRef?: string;
356
+ }
357
+ export interface CropAxisConfig {
358
+ enabled: boolean;
359
+ mode: 'all-elements' | 'between-elements';
360
+ startBoundary?: CropBoundary;
361
+ endBoundary?: CropBoundary;
362
+ paddingStart?: number;
363
+ paddingEnd?: number;
364
+ minSize?: number;
365
+ }
366
+ export interface DynamicCropConfig {
367
+ vertical?: CropAxisConfig;
368
+ horizontal?: CropAxisConfig;
369
+ }
353
370
  export interface ImageEditorConfig extends BaseEditorConfig {
354
371
  channels: Array<{
355
372
  id: string;
356
373
  segments: StaticSegment[];
357
374
  }>;
375
+ dynamicCrop?: DynamicCropConfig;
358
376
  }
359
377
  export interface EditorConfig extends BaseEditorConfig {
360
378
  channels: Array<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "2.46.0",
3
+ "version": "2.47.0",
4
4
  "description": "TypeScript/JavaScript client for the UGC Inc API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",