Skip to content

Commit 2efe392

Browse files
authored
Release 20250605
Release 20250605
2 parents a6fb544 + 9bd2cbd commit 2efe392

File tree

3 files changed

+45
-3
lines changed

3 files changed

+45
-3
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@adobe/ccweb-add-on-sdk-types",
5+
"comment": "Added new exportAllowed iframe API and documentExportAllowedChange event which is triggered when the document's export permission status changes in review and approval workflow. Also added properties in pageMetaData to determine whether tha page contains audio/video content and duration of the exported video",
6+
"type": "major"
7+
}
8+
],
9+
"packageName": "@adobe/ccweb-add-on-sdk-types"
10+
}

packages/wxp-sdk-types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@adobe/ccweb-add-on-sdk-types",
3-
"version": "1.17.0",
3+
"version": "1.18.0",
44
"author": "Adobe",
55
"license": "MIT",
66
"description": "Type definitions for Adobe Creative Cloud Web Add-on SDK.",

packages/wxp-sdk-types/ui/ui-sdk.d.ts

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,11 @@ export declare enum AppEvent {
162162
/**
163163
* triggered when the document title is changed in the application.
164164
*/
165-
documentTitleChange = "documentTitleChange"
165+
documentTitleChange = "documentTitleChange",
166+
/**
167+
* triggered when the document's export permission status changes in review and approval workflow.
168+
*/
169+
documentExportAllowedChange = "documentExportAllowedChange"
166170
}
167171

168172
export declare type AppEventHandlerType<Event extends AppEventType> = (data: AppEventsTypeMap[Event]) => void;
@@ -182,6 +186,7 @@ declare interface AppEventsTypeMap {
182186
[AppEvent.documentLinkAvailable]: DocumentLinkAvailableEventData;
183187
[AppEvent.documentPublishedLinkAvailable]: DocumentPublishedLinkAvailableEventData;
184188
[AppEvent.documentTitleChange]: DocumentTitleChangeEventData;
189+
[AppEvent.documentExportAllowedChange]: DocumentExportAllowedChangeEventData;
185190
}
186191

187192
export declare type AppEventType = keyof AppEventsTypeMap & string;
@@ -838,6 +843,10 @@ declare interface Document_2 {
838843
* Get document name/title
839844
*/
840845
title(): Promise<string>;
846+
/**
847+
* Returns whether the document can be exported based on its review status in the review and approval workflow.
848+
*/
849+
exportAllowed(): Promise<boolean>;
841850
/**
842851
* Import a Pdf to the document.
843852
*/
@@ -854,6 +863,13 @@ declare interface Document_2 {
854863
}
855864
export { Document_2 as Document };
856865

866+
/**
867+
* The payload data sent when the document's export permission status changes in review and approval workflow.
868+
*/
869+
export declare interface DocumentExportAllowedChangeEventData {
870+
documentExportAllowed: boolean;
871+
}
872+
857873
/**
858874
* The payload data sent to the document id available event handler.
859875
*/
@@ -909,7 +925,7 @@ export declare interface DragCompletionData {
909925
/**
910926
* Media info
911927
*/
912-
attributes?: MediaAttributes;
928+
attributes?: MediaAttributes & SourceMimeTypeInfo;
913929
}
914930

915931
/**
@@ -1268,6 +1284,22 @@ export declare interface PageMetadata {
12681284
* Whether page contains timelines
12691285
*/
12701286
hasTemporalContent: boolean;
1287+
/**
1288+
* Duration of the temporal content in seconds. Applicable only if hasTemporalContent is true.
1289+
*/
1290+
temporalContentDuration?: number;
1291+
/**
1292+
* Whether the page contains audio content
1293+
*/
1294+
hasAudioContent: boolean;
1295+
/**
1296+
* Whether the page contains video content
1297+
*/
1298+
hasVideoContent: boolean;
1299+
/**
1300+
* Whether the page contains animated content
1301+
*/
1302+
hasAnimatedContent: boolean;
12711303
/**
12721304
* Whether the page is blank
12731305
*/

0 commit comments

Comments
 (0)