@adobe/ccweb-add-on-sdk-types 1.1.1 → 1.2.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.
package/package.json
CHANGED
|
@@ -183,8 +183,7 @@ export declare class Runtime {
|
|
|
183
183
|
* Exposes the concrete object/function of type T,
|
|
184
184
|
* which can be accessed into different runtime part of this AddOn e.g., "panel" (iframe) runtime.
|
|
185
185
|
* Note that only concrete objects / class instances are supported. We can't expose entire class
|
|
186
|
-
* from one runtime and create instance of that class in another runtime. Trying to do
|
|
187
|
-
* so may result in undefined behaviour.
|
|
186
|
+
* from one runtime and create instance of that class in another runtime. Trying to do so will throw an exception.
|
|
188
187
|
* @param obj - the concrete object to expose to other runtimes
|
|
189
188
|
* Note: This method call is allowed only once. Subsequent calls are ignored.
|
|
190
189
|
*/
|
package/ui/ui-sdk.d.ts
CHANGED
|
@@ -219,6 +219,13 @@ declare interface ApplicationBase {
|
|
|
219
219
|
showModalDialog(dialogOptions: AlertDialogOptions): Promise<AlertDialogResult>;
|
|
220
220
|
showModalDialog(dialogOptions: InputDialogOptions): Promise<InputDialogResult>;
|
|
221
221
|
showModalDialog(dialogOptions: CustomDialogOptions): Promise<CustomDialogResult>;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* @experimental - Experimental API
|
|
225
|
+
* Triggers/Starts the in-app monetization upgrade flow
|
|
226
|
+
* @returns if the user is premium user or not
|
|
227
|
+
*/
|
|
228
|
+
startPremiumUpgradeIfFreeUser(): Promise<boolean>;
|
|
222
229
|
}
|
|
223
230
|
|
|
224
231
|
/**
|
|
@@ -344,6 +351,36 @@ export declare type AuthorizeWithOwnRedirectRequest = AuthorizationRequest & {
|
|
|
344
351
|
state: string;
|
|
345
352
|
};
|
|
346
353
|
|
|
354
|
+
/**
|
|
355
|
+
* Bleed for the page.
|
|
356
|
+
* In printing, bleed is printing that goes beyond the edge of where the sheet will be trimmed.
|
|
357
|
+
* In other words, the bleed is the area to be trimmed off.
|
|
358
|
+
*/
|
|
359
|
+
export declare interface Bleed {
|
|
360
|
+
/**
|
|
361
|
+
* The amount for the bleed
|
|
362
|
+
*/
|
|
363
|
+
amount: number;
|
|
364
|
+
/**
|
|
365
|
+
* The unit in which the bleed amount is expressed
|
|
366
|
+
*/
|
|
367
|
+
unit: BleedUnit;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Units for the page bleed.
|
|
372
|
+
*/
|
|
373
|
+
export declare enum BleedUnit {
|
|
374
|
+
/**
|
|
375
|
+
* Inch
|
|
376
|
+
*/
|
|
377
|
+
Inch = "in",
|
|
378
|
+
/**
|
|
379
|
+
* Millimeter
|
|
380
|
+
*/
|
|
381
|
+
Millimeter = "mm"
|
|
382
|
+
}
|
|
383
|
+
|
|
347
384
|
export declare interface ButtonLabels {
|
|
348
385
|
/**
|
|
349
386
|
* Primary action label
|
|
@@ -424,6 +461,7 @@ declare namespace Constants {
|
|
|
424
461
|
DialogResultType,
|
|
425
462
|
ButtonType,
|
|
426
463
|
RuntimeType,
|
|
464
|
+
BleedUnit,
|
|
427
465
|
AuthorizationStatus
|
|
428
466
|
};
|
|
429
467
|
}
|
|
@@ -437,6 +475,12 @@ export declare interface CurrentUser {
|
|
|
437
475
|
* Get user Id
|
|
438
476
|
*/
|
|
439
477
|
userId(): Promise<string>;
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* @experimental - Experimental API
|
|
481
|
+
* @returns if the current user is a premium user
|
|
482
|
+
*/
|
|
483
|
+
isPremiumUser(): Promise<boolean>;
|
|
440
484
|
}
|
|
441
485
|
|
|
442
486
|
/**
|
|
@@ -563,6 +607,7 @@ declare interface Document_2 {
|
|
|
563
607
|
*/
|
|
564
608
|
createRenditions(renditionOptions: RenditionOptions, renditionIntent?: RenditionIntent): Promise<Rendition[]>;
|
|
565
609
|
/**
|
|
610
|
+
* @experimental - Experimental API
|
|
566
611
|
* Get metadata of all or range of pages of the document
|
|
567
612
|
*/
|
|
568
613
|
getPagesMetadata(options: PageMetadataOptions): Promise<PageMetadata[]>;
|
|
@@ -827,6 +872,10 @@ export declare interface PageMetadata {
|
|
|
827
872
|
* Pixels per inch of the page
|
|
828
873
|
*/
|
|
829
874
|
pixelsPerInch?: number;
|
|
875
|
+
/**
|
|
876
|
+
* Whether page is ready to print
|
|
877
|
+
*/
|
|
878
|
+
isPrintReady?: boolean;
|
|
830
879
|
}
|
|
831
880
|
|
|
832
881
|
/**
|
|
@@ -858,6 +907,17 @@ export declare interface PageRendition extends Rendition {
|
|
|
858
907
|
metadata: PageMetadata;
|
|
859
908
|
}
|
|
860
909
|
|
|
910
|
+
export declare interface PdfRenditionOptions extends RenditionOptions {
|
|
911
|
+
/**
|
|
912
|
+
* PDF rendition format
|
|
913
|
+
*/
|
|
914
|
+
format: RenditionFormat.pdf;
|
|
915
|
+
/**
|
|
916
|
+
* Bleed for the page. If undefined, then no bleed (zero).
|
|
917
|
+
*/
|
|
918
|
+
bleed?: Bleed;
|
|
919
|
+
}
|
|
920
|
+
|
|
861
921
|
export declare interface PngRenditionOptions extends RenditionOptions {
|
|
862
922
|
/**
|
|
863
923
|
* PNG rendition format
|
|
@@ -1046,8 +1106,7 @@ export declare interface Runtime {
|
|
|
1046
1106
|
* Exposes the concrete object/function of type T,
|
|
1047
1107
|
* which can be accessed into different runtime part of this AddOn e.g., "document model sandbox" runtime.
|
|
1048
1108
|
* Note that only concrete objects / class instances are supported. We can't expose entire class
|
|
1049
|
-
* from one runtime and create instance of that class in another runtime. Trying to do
|
|
1050
|
-
* so may result in undefined behaviour.
|
|
1109
|
+
* from one runtime and create instance of that class in another runtime. Trying to do so will throw an exception.
|
|
1051
1110
|
* @param apiObj - the concrete object to expose to other runtimes
|
|
1052
1111
|
*
|
|
1053
1112
|
* Notes:
|