Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@adobe/ccweb-add-on-sdk-types",
"comment": "Frame Rate and Bit Rate options in Video Export, Higher Resolution Support in Video Export, File Size Limit in PNG Export",
"type": "major"
}
],
"packageName": "@adobe/ccweb-add-on-sdk-types"
}
2 changes: 1 addition & 1 deletion packages/wxp-sdk-types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adobe/ccweb-add-on-sdk-types",
"version": "1.19.0",
"version": "1.20.0",
"author": "Adobe",
"license": "MIT",
"description": "Type definitions for Adobe Creative Cloud Web Add-on SDK.",
Expand Down
107 changes: 107 additions & 0 deletions packages/wxp-sdk-types/ui/ui-sdk.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,40 @@ export declare type AuthorizeWithOwnRedirectRequest = AuthorizationRequest & {
state: string;
};

/**
* Bit rate in bits per second
*/
export declare enum BitRate {
/**
* 4 Mbps
*/
mbps4 = 4000000,
/**
* 8 Mbps
*/
mbps8 = 8000000,
/**
* 10 Mbps
*/
mbps10 = 10000000,
/**
* 12 Mbps
*/
mbps12 = 12000000,
/**
* 15 Mbps
*/
mbps15 = 15000000,
/**
* 25 Mbps
*/
mbps25 = 25000000,
/**
* 50 Mbps
*/
mbps50 = 50000000
}

/**
* Bleed for the page.
* In printing, bleed is printing that goes beyond the edge of where the sheet will be trimmed.
Expand Down Expand Up @@ -635,6 +669,8 @@ declare namespace Constants {
RuntimeType,
BleedUnit,
VideoResolution,
FrameRate,
BitRate,
EditorPanel,
MediaTabs,
ElementsTabs,
Expand All @@ -643,6 +679,7 @@ declare namespace Constants {
DeviceClass,
PlatformType,
ColorPickerPlacement,
FileSizeLimitUnit,
AuthorizationStatus
};
}
Expand Down Expand Up @@ -1101,6 +1138,50 @@ export declare enum FieldType {
text = "text"
}

/**
* Units for the file size limit.
*/
export declare enum FileSizeLimitUnit {
/**
* Kilobyte
*/
KB = "KB",
/**
* Megabyte
*/
MB = "MB"
}

/**
* Frame rate in frames per second
*/
export declare enum FrameRate {
/**
* 23.976 frames per second
*/
fps23_976 = 23.976,
/**
* 24 frames per second
*/
fps24 = 24,
/**
* 25 frames per second
*/
fps25 = 25,
/**
* 29.97 frames per second
*/
fps29_97 = 29.97,
/**
* 30 frames per second
*/
fps30 = 30,
/**
* 60 frames per second
*/
fps60 = 60
}

/**
* Type of input dialog data passed from the add-on.
*/
Expand Down Expand Up @@ -1276,6 +1357,15 @@ export declare interface Mp4RenditionOptions extends RenditionOptions {
* Custom Resolution (in pixel)
*/
customResolution?: number;

/**
* Frame rate in frames per second
*/
frameRate?: FrameRate;
/**
* Bit rate in mbps
*/
bitRate?: BitRate;
}

/**
Expand Down Expand Up @@ -1578,6 +1668,15 @@ export declare interface PngRenditionOptions extends RenditionOptions {
width?: number;
height?: number;
};

/**
* File size limit for the rendition
*/
fileSizeLimit?: number;
/**
* Unit of the file size limit
*/
fileSizeLimitUnit?: FileSizeLimitUnit;
}

/**
Expand Down Expand Up @@ -1953,6 +2052,14 @@ export declare enum VideoResolution {
* FHD 1080p video resolution
*/
fhd1080p = "1080p",
/**
* QHD 1440p video resolution
*/
qhd1440p = "1440p",
/**
* UHD 4K video resolution
*/
uhd2160p = "2160p",
/**
* Custom video resolution
*/
Expand Down