@adobe/ccweb-add-on-sdk-types 1.17.0 → 1.18.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/package.json +1 -1
  2. package/ui/ui-sdk.d.ts +34 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/ccweb-add-on-sdk-types",
3
- "version": "1.17.0",
3
+ "version": "1.18.0",
4
4
  "author": "Adobe",
5
5
  "license": "MIT",
6
6
  "description": "Type definitions for Adobe Creative Cloud Web Add-on SDK.",
package/ui/ui-sdk.d.ts CHANGED
@@ -162,7 +162,11 @@ export declare enum AppEvent {
162
162
  /**
163
163
  * triggered when the document title is changed in the application.
164
164
  */
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"
166
170
  }
167
171
 
168
172
  export declare type AppEventHandlerType<Event extends AppEventType> = (data: AppEventsTypeMap[Event]) => void;
@@ -182,6 +186,7 @@ declare interface AppEventsTypeMap {
182
186
  [AppEvent.documentLinkAvailable]: DocumentLinkAvailableEventData;
183
187
  [AppEvent.documentPublishedLinkAvailable]: DocumentPublishedLinkAvailableEventData;
184
188
  [AppEvent.documentTitleChange]: DocumentTitleChangeEventData;
189
+ [AppEvent.documentExportAllowedChange]: DocumentExportAllowedChangeEventData;
185
190
  }
186
191
 
187
192
  export declare type AppEventType = keyof AppEventsTypeMap & string;
@@ -838,6 +843,10 @@ declare interface Document_2 {
838
843
  * Get document name/title
839
844
  */
840
845
  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>;
841
850
  /**
842
851
  * Import a Pdf to the document.
843
852
  */
@@ -854,6 +863,13 @@ declare interface Document_2 {
854
863
  }
855
864
  export { Document_2 as Document };
856
865
 
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
+
857
873
  /**
858
874
  * The payload data sent to the document id available event handler.
859
875
  */
@@ -909,7 +925,7 @@ export declare interface DragCompletionData {
909
925
  /**
910
926
  * Media info
911
927
  */
912
- attributes?: MediaAttributes;
928
+ attributes?: MediaAttributes & SourceMimeTypeInfo;
913
929
  }
914
930
 
915
931
  /**
@@ -1268,6 +1284,22 @@ export declare interface PageMetadata {
1268
1284
  * Whether page contains timelines
1269
1285
  */
1270
1286
  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;
1271
1303
  /**
1272
1304
  * Whether the page is blank
1273
1305
  */