From f5086373d6408c597d1dec7992e803386cc42323 Mon Sep 17 00:00:00 2001 From: parthg Date: Fri, 25 Jul 2025 14:33:46 +0530 Subject: [PATCH 1/5] Release 20250725 --- common/config/rush/pnpm-lock.yaml | 14 ++- packages/wxp-sdk-types/.gitignore | 1 - packages/wxp-sdk-types/package.json | 4 +- packages/wxp-sdk-types/ui/ui-sdk.d.ts | 141 +++++++++++++++++++++++++- 4 files changed, 154 insertions(+), 6 deletions(-) delete mode 100644 packages/wxp-sdk-types/.gitignore diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 49e729b..1fc44dc 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -574,8 +574,8 @@ importers: ../../packages/wxp-sdk-types: dependencies: '@swc/helpers': - specifier: 0.5.12 - version: 0.5.12 + specifier: 0.5.17 + version: 0.5.17 gl-matrix: specifier: 3.3.0 version: 3.3.0 @@ -2292,6 +2292,12 @@ packages: tslib: 2.7.0 dev: false + /@swc/helpers@0.5.17: + resolution: {integrity: sha512-5IKx/Y13RsYd+sauPb2x+U/xZikHjolzfuDgTAl/Tdf3Q8rslRvC19NKDLgAJQ6wsqADk10ntlv08nPFw/gO/A==} + dependencies: + tslib: 2.8.1 + dev: false + /@szmarczak/http-timer@5.0.1: resolution: {integrity: sha512-+PmQX0PiAYPMeVYe237LJAYvOMYW1j2rH5YROyS3b4CTVJum34HfRvKvAzozHAQG0TnHNdUfY9nCeUyRAs//cw==} engines: {node: '>=14.16'} @@ -4735,6 +4741,10 @@ packages: /tslib@2.7.0: resolution: {integrity: sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==} + /tslib@2.8.1: + resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} + dev: false + /tunnel-agent@0.6.0: resolution: {integrity: sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==} dependencies: diff --git a/packages/wxp-sdk-types/.gitignore b/packages/wxp-sdk-types/.gitignore deleted file mode 100644 index 7e4dac7..0000000 --- a/packages/wxp-sdk-types/.gitignore +++ /dev/null @@ -1 +0,0 @@ -!BUILD.bazel diff --git a/packages/wxp-sdk-types/package.json b/packages/wxp-sdk-types/package.json index 970d342..67da02a 100644 --- a/packages/wxp-sdk-types/package.json +++ b/packages/wxp-sdk-types/package.json @@ -1,6 +1,6 @@ { "name": "@adobe/ccweb-add-on-sdk-types", - "version": "1.19.0", + "version": "1.0.0", "author": "Adobe", "license": "MIT", "description": "Type definitions for Adobe Creative Cloud Web Add-on SDK.", @@ -47,7 +47,7 @@ "dependencies": { "tslib": "2.7.0", "gl-matrix": "3.3.0", - "@swc/helpers": "0.5.12" + "@swc/helpers": "0.5.17" }, "devDependencies": { "@types/node": "18.18.2", diff --git a/packages/wxp-sdk-types/ui/ui-sdk.d.ts b/packages/wxp-sdk-types/ui/ui-sdk.d.ts index 9cb812b..71daff2 100644 --- a/packages/wxp-sdk-types/ui/ui-sdk.d.ts +++ b/packages/wxp-sdk-types/ui/ui-sdk.d.ts @@ -215,6 +215,11 @@ export declare interface Application extends ApplicationBase { * Represents the active document of the host application */ readonly document: Document_2; + /** + * @experimental - Experimental API + * Invoke command/actions in an add-on and handle response. + */ + readonly command: Command; /** * OAuth 2.0 middleware for handling user authorization. */ @@ -451,6 +456,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. @@ -621,6 +660,25 @@ export declare enum ColorPickerPlacement { right = "right" } +/** + * @experimental - Experimental API + * Provides APIs to handle command execution in the add-on. + */ +export declare interface Command { + /** + * @experimental - Experimental API + * Register a handler for handling command execution in the add-on. + * + * _Note:_ This is similar to a JavaScript event handler. + * If there are multiple handlers registered for a command, + * each will be invoked when the host application triggers the command. + * In most of the cases, one handler per command is the way to go. + * @param command - Command triggered from the host application. + * @param handler - Handler for command execution. + */ + register(command: string, handler: (params: Record) => unknown): void; +} + declare namespace Constants { export { Range_2 as Range, @@ -635,6 +693,8 @@ declare namespace Constants { RuntimeType, BleedUnit, VideoResolution, + FrameRate, + BitRate, EditorPanel, MediaTabs, ElementsTabs, @@ -643,6 +703,7 @@ declare namespace Constants { DeviceClass, PlatformType, ColorPickerPlacement, + FileSizeLimitUnit, AuthorizationStatus }; } @@ -1025,6 +1086,10 @@ export declare enum EntrypointType { * Widget entrypoint type. */ WIDGET = "widget", + /** + * Command entrypoint type. + */ + COMMAND = "command", /** * Script entrypoint type. * add-ons with script entrypoint type can use only the document sandbox APIs. @@ -1101,6 +1166,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. */ @@ -1276,6 +1385,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; } /** @@ -1578,6 +1696,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; } /** @@ -1807,7 +1934,11 @@ export declare enum RuntimeType { /** * Add-On's document model sandbox - JS runtime that hosts add-on code that has direct access to the full model. */ - documentSandbox = "documentSandbox" + documentSandbox = "documentSandbox", + /** + * Runtime that hosts the add-on command logic. + */ + command = "command" } /** @@ -1953,6 +2084,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 */ From 2915748389dd822ab66ebc969a99cf33bed22e36 Mon Sep 17 00:00:00 2001 From: parthg Date: Fri, 25 Jul 2025 15:36:59 +0530 Subject: [PATCH 2/5] changes --- common/config/rush/pnpm-lock.yaml | 14 ++------------ packages/wxp-sdk-types/.gitignore | 1 + packages/wxp-sdk-types/package.json | 2 +- 3 files changed, 4 insertions(+), 13 deletions(-) create mode 100644 packages/wxp-sdk-types/.gitignore diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 1fc44dc..49e729b 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -574,8 +574,8 @@ importers: ../../packages/wxp-sdk-types: dependencies: '@swc/helpers': - specifier: 0.5.17 - version: 0.5.17 + specifier: 0.5.12 + version: 0.5.12 gl-matrix: specifier: 3.3.0 version: 3.3.0 @@ -2292,12 +2292,6 @@ packages: tslib: 2.7.0 dev: false - /@swc/helpers@0.5.17: - resolution: {integrity: sha512-5IKx/Y13RsYd+sauPb2x+U/xZikHjolzfuDgTAl/Tdf3Q8rslRvC19NKDLgAJQ6wsqADk10ntlv08nPFw/gO/A==} - dependencies: - tslib: 2.8.1 - dev: false - /@szmarczak/http-timer@5.0.1: resolution: {integrity: sha512-+PmQX0PiAYPMeVYe237LJAYvOMYW1j2rH5YROyS3b4CTVJum34HfRvKvAzozHAQG0TnHNdUfY9nCeUyRAs//cw==} engines: {node: '>=14.16'} @@ -4741,10 +4735,6 @@ packages: /tslib@2.7.0: resolution: {integrity: sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==} - /tslib@2.8.1: - resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} - dev: false - /tunnel-agent@0.6.0: resolution: {integrity: sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==} dependencies: diff --git a/packages/wxp-sdk-types/.gitignore b/packages/wxp-sdk-types/.gitignore new file mode 100644 index 0000000..7e4dac7 --- /dev/null +++ b/packages/wxp-sdk-types/.gitignore @@ -0,0 +1 @@ +!BUILD.bazel diff --git a/packages/wxp-sdk-types/package.json b/packages/wxp-sdk-types/package.json index 67da02a..7da1f3e 100644 --- a/packages/wxp-sdk-types/package.json +++ b/packages/wxp-sdk-types/package.json @@ -47,7 +47,7 @@ "dependencies": { "tslib": "2.7.0", "gl-matrix": "3.3.0", - "@swc/helpers": "0.5.17" + "@swc/helpers": "0.5.12" }, "devDependencies": { "@types/node": "18.18.2", From 521cea6155849993d74ae92b285d6af2864c65b8 Mon Sep 17 00:00:00 2001 From: parthg Date: Fri, 25 Jul 2025 15:38:58 +0530 Subject: [PATCH 3/5] Bump package.json versions --- packages/wxp-sdk-types/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/wxp-sdk-types/package.json b/packages/wxp-sdk-types/package.json index 7da1f3e..3bcbc3a 100644 --- a/packages/wxp-sdk-types/package.json +++ b/packages/wxp-sdk-types/package.json @@ -1,6 +1,6 @@ { "name": "@adobe/ccweb-add-on-sdk-types", - "version": "1.0.0", + "version": "1.20.0", "author": "Adobe", "license": "MIT", "description": "Type definitions for Adobe Creative Cloud Web Add-on SDK.", From 9d3eb3c26e37156eaabaade1dd73e3ae7826a680 Mon Sep 17 00:00:00 2001 From: parthg Date: Fri, 25 Jul 2025 15:41:39 +0530 Subject: [PATCH 4/5] Add release notes --- .../release-20250725_2025-07-25-10-11.json | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 common/changes/@adobe/ccweb-add-on-sdk-types/release-20250725_2025-07-25-10-11.json diff --git a/common/changes/@adobe/ccweb-add-on-sdk-types/release-20250725_2025-07-25-10-11.json b/common/changes/@adobe/ccweb-add-on-sdk-types/release-20250725_2025-07-25-10-11.json new file mode 100644 index 0000000..b1a3b80 --- /dev/null +++ b/common/changes/@adobe/ccweb-add-on-sdk-types/release-20250725_2025-07-25-10-11.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@adobe/ccweb-add-on-sdk-types", + "comment": "Support for command actions, 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" +} \ No newline at end of file From 7b5c58897d4f3898ec84aea7ab4dbc9b9027e63a Mon Sep 17 00:00:00 2001 From: parthg Date: Fri, 25 Jul 2025 15:59:19 +0530 Subject: [PATCH 5/5] Removed command changes --- .../release-20250725_2025-07-25-10-11.json | 2 +- packages/wxp-sdk-types/ui/ui-sdk.d.ts | 34 +------------------ 2 files changed, 2 insertions(+), 34 deletions(-) diff --git a/common/changes/@adobe/ccweb-add-on-sdk-types/release-20250725_2025-07-25-10-11.json b/common/changes/@adobe/ccweb-add-on-sdk-types/release-20250725_2025-07-25-10-11.json index b1a3b80..6a9a80d 100644 --- a/common/changes/@adobe/ccweb-add-on-sdk-types/release-20250725_2025-07-25-10-11.json +++ b/common/changes/@adobe/ccweb-add-on-sdk-types/release-20250725_2025-07-25-10-11.json @@ -2,7 +2,7 @@ "changes": [ { "packageName": "@adobe/ccweb-add-on-sdk-types", - "comment": "Support for command actions, Frame Rate and Bit Rate options in Video Export, Higher Resolution Support in Video Export, File Size Limit in PNG Export", + "comment": "Frame Rate and Bit Rate options in Video Export, Higher Resolution Support in Video Export, File Size Limit in PNG Export", "type": "major" } ], diff --git a/packages/wxp-sdk-types/ui/ui-sdk.d.ts b/packages/wxp-sdk-types/ui/ui-sdk.d.ts index 71daff2..af34f25 100644 --- a/packages/wxp-sdk-types/ui/ui-sdk.d.ts +++ b/packages/wxp-sdk-types/ui/ui-sdk.d.ts @@ -215,11 +215,6 @@ export declare interface Application extends ApplicationBase { * Represents the active document of the host application */ readonly document: Document_2; - /** - * @experimental - Experimental API - * Invoke command/actions in an add-on and handle response. - */ - readonly command: Command; /** * OAuth 2.0 middleware for handling user authorization. */ @@ -660,25 +655,6 @@ export declare enum ColorPickerPlacement { right = "right" } -/** - * @experimental - Experimental API - * Provides APIs to handle command execution in the add-on. - */ -export declare interface Command { - /** - * @experimental - Experimental API - * Register a handler for handling command execution in the add-on. - * - * _Note:_ This is similar to a JavaScript event handler. - * If there are multiple handlers registered for a command, - * each will be invoked when the host application triggers the command. - * In most of the cases, one handler per command is the way to go. - * @param command - Command triggered from the host application. - * @param handler - Handler for command execution. - */ - register(command: string, handler: (params: Record) => unknown): void; -} - declare namespace Constants { export { Range_2 as Range, @@ -1086,10 +1062,6 @@ export declare enum EntrypointType { * Widget entrypoint type. */ WIDGET = "widget", - /** - * Command entrypoint type. - */ - COMMAND = "command", /** * Script entrypoint type. * add-ons with script entrypoint type can use only the document sandbox APIs. @@ -1934,11 +1906,7 @@ export declare enum RuntimeType { /** * Add-On's document model sandbox - JS runtime that hosts add-on code that has direct access to the full model. */ - documentSandbox = "documentSandbox", - /** - * Runtime that hosts the add-on command logic. - */ - command = "command" + documentSandbox = "documentSandbox" } /**