@adobe/ccweb-add-on-sdk-types 1.11.0 → 1.13.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/ccweb-add-on-sdk-types",
3
- "version": "1.11.0",
3
+ "version": "1.13.0",
4
4
  "author": "Adobe",
5
5
  "license": "MIT",
6
6
  "description": "Type definitions for Adobe Creative Cloud Web Add-on SDK.",
@@ -30,61 +30,31 @@ import { mat2d } from "gl-matrix";
30
30
  */
31
31
  export declare class AddOnData {
32
32
  /**
33
- * <InlineAlert slots="text" variant="warning"/>
34
- *
35
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
36
- *
37
- * @experimental
38
33
  * Sets a private metadata entry on the node.
39
34
  * @param key - The key for the private metadata entry.
40
35
  * @param value - The value for the private metadata entry.
41
36
  */
42
37
  setItem(key: string, value: string): void;
43
38
  /**
44
- * <InlineAlert slots="text" variant="warning"/>
45
- *
46
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
47
- *
48
- * @experimental
49
39
  * Retrieves the private metadata value for the specified key on the node.
50
40
  * @param key - The key of the private metadata entry to retrieve.
51
41
  * @returns The value of the private metadata entry.
52
42
  */
53
43
  getItem(key: string): string | undefined;
54
44
  /**
55
- * <InlineAlert slots="text" variant="warning"/>
56
- *
57
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
58
- *
59
- * @experimental
60
45
  * Removes a single private metadata entry on the node.
61
46
  * @param key - The key of the private metadata entry to remove.
62
47
  */
63
48
  removeItem(key: string): void;
64
49
  /**
65
- * <InlineAlert slots="text" variant="warning"/>
66
- *
67
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
68
- *
69
- * @experimental
70
50
  * Clears all private metadata entries on the node.
71
51
  */
72
52
  clear(): void;
73
53
  /**
74
- * <InlineAlert slots="text" variant="warning"/>
75
- *
76
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
77
- *
78
- * @experimental
79
54
  * @returns an array of all keys for the private metadata entries on the node.
80
55
  */
81
56
  keys(): string[];
82
57
  /**
83
- * <InlineAlert slots="text" variant="warning"/>
84
- *
85
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
86
- *
87
- * @experimental
88
58
  * @returns an object with the remaining quota for private metadata on the node for this add-on.
89
59
  * The object contains the following properties:
90
60
  * - sizeInBytes: The remaining quota size in bytes (maximum 3KB).
@@ -113,7 +83,9 @@ declare namespace ApiConstants {
113
83
  TextAlignment,
114
84
  TextType,
115
85
  EditorEvent,
116
- VisualEffectType
86
+ VisualEffectType,
87
+ ParagraphListType,
88
+ OrderedListNumbering
117
89
  };
118
90
  }
119
91
 
@@ -134,7 +106,13 @@ declare interface ApiModuleExport {
134
106
  */
135
107
  export declare interface AreaTextLayout {
136
108
  type: TextType.area;
109
+ /**
110
+ * The width of the text node in pixels.
111
+ */
137
112
  width: number;
113
+ /**
114
+ * The height of the text node in pixels.
115
+ */
138
116
  height: number;
139
117
  }
140
118
 
@@ -177,7 +155,7 @@ export declare class ArtboardList extends RestrictedItemList<ArtboardNode> {
177
155
  * Artboards are always contained on a {@link PageNode}; when a page contains multiple artboards, the artboards represent
178
156
  * "scenes" in a linear timeline sequence.
179
157
  *
180
- * To create new artboards, see {@link ArtboardList.addArtboard}.
158
+ * To create a new artboard, see {@link ArtboardList.addArtboard}.
181
159
  *
182
160
  * Please note that creating and deleting an artboard in a single frame will crash the editor.
183
161
  */
@@ -223,6 +201,9 @@ export declare class ArtboardNode extends VisualNode implements IRectangularNode
223
201
  */
224
202
  export declare interface AutoHeightTextLayout {
225
203
  type: TextType.autoHeight;
204
+ /**
205
+ * The width of the text node in pixels.
206
+ */
226
207
  width: number;
227
208
  }
228
209
 
@@ -231,11 +212,6 @@ export declare interface AutoHeightTextLayout {
231
212
  */
232
213
  export declare class AvailableFont extends BaseFont {
233
214
  /**
234
- * <InlineAlert slots="text" variant="warning"/>
235
- *
236
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
237
- *
238
- * @experimental
239
215
  * Whether the font is a premium Adobe font.
240
216
  */
241
217
  get isPremium(): boolean;
@@ -243,11 +219,6 @@ export declare class AvailableFont extends BaseFont {
243
219
  }
244
220
 
245
221
  /**
246
- * <InlineAlert slots="text" variant="warning"/>
247
- *
248
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
249
- *
250
- * @experimental
251
222
  * Base character styles that can be applied to any range of characters.
252
223
  * Excludes font style, which differs between the getter-oriented {@link CharacterStyles} interface and the
253
224
  * setter-oriented {@link CharacterStylesInput}.
@@ -279,29 +250,14 @@ declare interface BaseCharacterStyles {
279
250
  */
280
251
  declare abstract class BaseFont {
281
252
  /**
282
- * <InlineAlert slots="text" variant="warning"/>
283
- *
284
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
285
- *
286
- * @experimental
287
253
  * The PostScript name of the font.
288
254
  */
289
255
  get postscriptName(): string;
290
256
  /**
291
- * <InlineAlert slots="text" variant="warning"/>
292
- *
293
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
294
- *
295
- * @experimental
296
257
  * The font family containing the font.
297
258
  */
298
259
  get family(): string;
299
260
  /**
300
- * <InlineAlert slots="text" variant="warning"/>
301
- *
302
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
303
- *
304
- * @experimental
305
261
  * The style of the font within the family.
306
262
  */
307
263
  get style(): string;
@@ -319,11 +275,6 @@ declare abstract class BaseFont {
319
275
  */
320
276
  export declare class BaseNode {
321
277
  /**
322
- * <InlineAlert slots="text" variant="warning"/>
323
- *
324
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
325
- *
326
- * @experimental
327
278
  * Get {@link AddOnData} reference for managing the private metadata on this node for this add-on.
328
279
  */
329
280
  get addOnData(): AddOnData;
@@ -367,6 +318,47 @@ export declare class BaseNode {
367
318
  removeFromParent(): void;
368
319
  }
369
320
 
321
+ /**
322
+ * <InlineAlert slots="text" variant="warning"/>
323
+ *
324
+ * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
325
+ *
326
+ * @experimental
327
+ * BaseParagraphListStyle interface represents common properties shared between ordered and unordered list types.
328
+ */
329
+ declare interface BaseParagraphListStyle {
330
+ /** A value from 0-8 that specifies indent/nesting level. Default is 0 if not provided. */
331
+ indentLevel?: number;
332
+ }
333
+
334
+ /**
335
+ * <InlineAlert slots="text" variant="warning"/>
336
+ *
337
+ * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
338
+ *
339
+ * @experimental
340
+ * Base paragraph styles that can be applied to an entire paragraph atomically.
341
+ * Excludes list style settings, which differ between the getter-oriented {@link ParagraphStyles} interface and the
342
+ * setter-oriented {@link ParagraphStylesRangeInput}.
343
+ */
344
+ declare interface BaseParagraphStyles {
345
+ /**
346
+ * Space before paragraph (in points). It does not affect the first paragraph. It is additive to previous paragraph's spaceAfter
347
+ * (adjacent spacing does not merge/collapse together).
348
+ */
349
+ spaceBefore: number;
350
+ /**
351
+ * Space after paragraph (in points). It does not affect the last paragraph. It is additive to the next paragraph's spaceBefore
352
+ * (adjacent spacing does not merge/collapse together).
353
+ */
354
+ spaceAfter: number;
355
+ /**
356
+ * Spacing between lines, aka leading, expressed as a multiple of the font size's default spacing - ex. 1.5 = 150% of normal.
357
+ * It only affects the space *between* lines, not the space above the first line or below the last line.
358
+ */
359
+ lineSpacing: number;
360
+ }
361
+
370
362
  /**
371
363
  * Represents a bitmap image resource. Use {@link Editor.loadBitmapImage} to create a BitmapImage, and then {@link Editor.createImageContainer}
372
364
  * to display it in the document by creating a MediaContainerNode structure.
@@ -428,11 +420,6 @@ declare enum BlendMode {
428
420
  }
429
421
 
430
422
  /**
431
- * <InlineAlert slots="text" variant="warning"/>
432
- *
433
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
434
- *
435
- * @experimental
436
423
  * Text styles that can be applied to any range of characters, even a short span like a single word. (Contrast with
437
424
  * ParagraphStyles, which must be applied to an entire paragraph atomically).
438
425
  */
@@ -441,11 +428,6 @@ export declare interface CharacterStyles extends BaseCharacterStyles {
441
428
  }
442
429
 
443
430
  /**
444
- * <InlineAlert slots="text" variant="warning"/>
445
- *
446
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
447
- *
448
- * @experimental
449
431
  * Variant of {@link CharacterStyles} with all style fields optional, used for applyCharacterStyles(). When using that API,
450
432
  * any fields not specified are left unchanged, preserving the text's existing styles.
451
433
  *
@@ -457,13 +439,7 @@ export declare interface CharacterStylesInput extends Partial<BaseCharacterStyle
457
439
  }
458
440
 
459
441
  /**
460
- * <InlineAlert slots="text" variant="warning"/>
461
- *
462
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
463
- *
464
- * @experimental
465
- * A set of {@link CharacterStyles} along with the range of characters they apply to. Seen in the characterStyleRanges
466
- * getter.
442
+ * A set of {@link CharacterStyles} along with the range of characters they apply to. Seen in the characterStyleRanges getter.
467
443
  *
468
444
  * Note that fonts returned by the getter are *not* guaranteed to be ones the user has rights to edit with, even though they
469
445
  * are visible in the document.
@@ -471,11 +447,6 @@ export declare interface CharacterStylesInput extends Partial<BaseCharacterStyle
471
447
  export declare interface CharacterStylesRange extends CharacterStyles, StyleRange {}
472
448
 
473
449
  /**
474
- * <InlineAlert slots="text" variant="warning"/>
475
- *
476
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
477
- *
478
- * @experimental
479
450
  * Variant of {@link CharacterStylesRange} with all style fields optional, along with the range of characters they apply to.
480
451
  * Used for the characterStyleRanges setter. When invoking the setter, any fields not specified are reset to their defaults.
481
452
  *
@@ -585,6 +556,22 @@ export declare interface ContainerNode extends VisualNode {
585
556
  * Contains the user's current selection state, indicating the content they are focused on.
586
557
  */
587
558
  export declare class Context {
559
+ /**
560
+ * Registers a handler for editor events such as selection change.
561
+ * The registered callback will be invoked when the specified event occurs.
562
+ * Note: Do not attempt to make changes to the document in response to a selection change callback because it may destabilize the application.
563
+ * @param eventName - an editor event name.
564
+ * @param callback - a callback to be registered for an editor event.
565
+ * @returns a unique ID for the registered event handler.
566
+ */
567
+ on(eventName: EditorEvent, callback: EditorEventHandler): EventHandlerId;
568
+ /**
569
+ * Unregisters handlers for editor events like selection change.
570
+ * @param eventName - an editor event name.
571
+ * @param handlerId - a unique ID returned by `editor.context.on` API.
572
+ * Callback that was previously registered will be removed and will no more be invoked when the event occurs.
573
+ */
574
+ off(eventName: EditorEvent, handlerId: EventHandlerId): void;
588
575
  /**
589
576
  * @returns the current selection. Nodes that are locked or otherwise non-editable are never included in the selection.
590
577
  */
@@ -620,32 +607,6 @@ export declare class Context {
620
607
  * @returns The currently viewed page.
621
608
  */
622
609
  get currentPage(): PageNode;
623
- /**
624
- * <InlineAlert slots="text" variant="warning"/>
625
- *
626
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
627
- *
628
- * @experimental
629
- * Registers a handler for editor events such as selection change.
630
- * The registered callback will be invoked when the specified event occurs.
631
- * Note: Do not attempt to make changes to the document in response to a selection change callback because it may destabilize the application.
632
- * @param eventName - an editor event name.
633
- * @param callback - a callback to be registered for an editor event.
634
- * @returns a unique ID for the registered event handler.
635
- */
636
- on(eventName: EditorEvent, callback: EditorEventHandler): EventHandlerId;
637
- /**
638
- * <InlineAlert slots="text" variant="warning"/>
639
- *
640
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
641
- *
642
- * @experimental
643
- * Unregisters handlers for editor events like selection change.
644
- * @param eventName - an editor event name.
645
- * @param handlerId - a unique ID returned by `editor.context.on` API.
646
- * Callback that was previously registered will be removed and will no more be invoked when the event occurs.
647
- */
648
- off(eventName: EditorEvent, handlerId: EventHandlerId): void;
649
610
  }
650
611
 
651
612
  /**
@@ -795,11 +756,6 @@ export declare class Editor {
795
756
  export declare const editor: ExpressEditor;
796
757
 
797
758
  /**
798
- * <InlineAlert slots="text" variant="warning"/>
799
- *
800
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
801
- *
802
- * @experimental
803
759
  * This enum represents the supported editor events.
804
760
  */
805
761
  export declare enum EditorEvent {
@@ -807,11 +763,6 @@ export declare enum EditorEvent {
807
763
  }
808
764
 
809
765
  /**
810
- * <InlineAlert slots="text" variant="warning"/>
811
- *
812
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
813
- *
814
- * @experimental
815
766
  * This type represents function signature for the editor event handler callback.
816
767
  */
817
768
  export declare type EditorEventHandler = () => void;
@@ -843,11 +794,6 @@ export declare class EllipseNode extends FillableNode {
843
794
  }
844
795
 
845
796
  /**
846
- * <InlineAlert slots="text" variant="warning"/>
847
- *
848
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
849
- *
850
- * @experimental
851
797
  * This type represents unique id of each event handler callback that is registered.
852
798
  */
853
799
  export declare type EventHandlerId = string;
@@ -871,7 +817,7 @@ declare class ExpressFonts extends Fonts {}
871
817
  export declare class ExpressRootNode extends BaseNode {
872
818
  /**
873
819
  * The pages of the document. All visual content is contained on artboards within the pages.
874
- * To create new pages, see {@link PageList.addPage}.
820
+ * To create a new page, see {@link PageList.addPage}.
875
821
  */
876
822
  get pages(): PageList;
877
823
  }
@@ -930,11 +876,6 @@ declare enum FillType {
930
876
  }
931
877
 
932
878
  /**
933
- * <InlineAlert slots="text" variant="warning"/>
934
- *
935
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
936
- *
937
- * @experimental
938
879
  * Represents a font in the document.
939
880
  *
940
881
  * Note: not every font encountered in the existing content is available for editing.
@@ -947,11 +888,6 @@ export declare type Font = AvailableFont | UnavailableFont;
947
888
  */
948
889
  export declare class Fonts {
949
890
  /**
950
- * <InlineAlert slots="text" variant="warning"/>
951
- *
952
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
953
- *
954
- * @experimental
955
891
  * Get an {@link AvailableFont} that exactly matches the given PostScript name, if any. Only fonts that the user has permission to use
956
892
  * for editing content are returned, so the result of this call is always safe to apply to a {@link TextContentModel}'s styles.
957
893
  *
@@ -1023,6 +959,9 @@ export declare class GroupNode extends Node implements ContainerNode {
1023
959
  */
1024
960
  set maskShape(mask: FillableNode | undefined);
1025
961
  /**
962
+ * {@inheritDoc VisualNode.boundsLocal}
963
+ *
964
+ * @returns
1026
965
  * Note: If this group has a maskShape, group's bounds are always identical to the maskShape's, regardless of the
1027
966
  * group's other content.
1028
967
  */
@@ -1126,7 +1065,7 @@ export declare class ItemList<T extends ListItem> extends RestrictedItemList<T>
1126
1065
  /**
1127
1066
  * A LineNode represents a simple vector line in the scenegraph – a single straight-line segment.
1128
1067
  *
1129
- * To create new lines, see {@link Editor.createLine}.
1068
+ * To create a new line, see {@link Editor.createLine}.
1130
1069
  */
1131
1070
  export declare class LineNode extends StrokableNode {
1132
1071
  static readonly DEFAULT_START_X = 0;
@@ -1313,7 +1252,9 @@ declare class Node extends VisualNode {
1313
1252
  get transformMatrix(): mat2d;
1314
1253
  /**
1315
1254
  * The node's lock/unlock state. Locked nodes are excluded from the selection (see {@link Context.selection}), and
1316
- * cannot be edited by the user unless they are unlocked first.
1255
+ * cannot be edited by the user in the UI unless they are unlocked first. Operations on locked nodes using the API
1256
+ * are permitted. However, please consider if modifying a locked node would align with user expectations
1257
+ * before using the API to make changes to locked nodes.
1317
1258
  */
1318
1259
  get locked(): boolean;
1319
1260
  set locked(locked: boolean);
@@ -1326,10 +1267,61 @@ declare class Node extends VisualNode {
1326
1267
  }
1327
1268
  export { Node as Node };
1328
1269
 
1270
+ /**
1271
+ * <InlineAlert slots="text" variant="warning"/>
1272
+ *
1273
+ * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
1274
+ *
1275
+ * @experimental
1276
+ * Numbering types used to display ordered lists: 1, A, a, I, i 01, 001.
1277
+ */
1278
+ export declare enum OrderedListNumbering {
1279
+ numeric = 1,
1280
+ uppercaseAlpha = 2,
1281
+ lowercaseAlpha = 3,
1282
+ uppercaseRomanNum = 4,
1283
+ lowercaseRomanNum = 5,
1284
+ singleZeroPrefixNumeric = 7,
1285
+ doubleZeroPrefixNumeric = 8
1286
+ }
1287
+
1288
+ /**
1289
+ * <InlineAlert slots="text" variant="warning"/>
1290
+ *
1291
+ * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
1292
+ *
1293
+ * @experimental
1294
+ * OrderedListStyle represents the style of an ordered list.
1295
+ */
1296
+ export declare type OrderedListStyle = Required<OrderedListStyleInput>;
1297
+
1298
+ /**
1299
+ * <InlineAlert slots="text" variant="warning"/>
1300
+ *
1301
+ * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
1302
+ *
1303
+ * @experimental
1304
+ * Interface for specifying an ordered list style, such as a numbered list.
1305
+ */
1306
+ export declare interface OrderedListStyleInput extends BaseParagraphListStyle {
1307
+ type: ParagraphListType.ordered;
1308
+ /**
1309
+ * The numbering style to use. If undefined, it defaults to a different type depending on the paragraph's indent level.
1310
+ * The defaults for increasing indent are 1, a, i, I, and then they repeat.
1311
+ * These markers and the prefix/postfix strings (if any) are displayed using the same font as the start of the
1312
+ * paragraph's text content.
1313
+ */
1314
+ numbering?: OrderedListNumbering;
1315
+ /** Additional string to display before each sequence number/letter, e.g. "(" */
1316
+ prefix?: string;
1317
+ /** Additional string to display after each sequence number/letter, e.g. ")" or "." */
1318
+ postfix?: string;
1319
+ }
1320
+
1329
1321
  /**
1330
1322
  * PageList represents an ordered list of PageNodes, all of which are children of the root node of the document's "scenegraph"
1331
1323
  * artwork tree (see {@link ExpressRootNode}). A page contains one or more artboards, representing "scenes" in a linear timeline
1332
- * sequence. Those artboards in turn contain all the visual content of the document.
1324
+ * sequence. Those artboards, in turn, contain all the visual content of the document.
1333
1325
  *
1334
1326
  * PageList also provides APIs for adding/removing pages from the document. PageList is never empty: it is illegal to
1335
1327
  * remove the last remaining page from the list.
@@ -1348,7 +1340,7 @@ export declare class PageList extends RestrictedItemList<PageNode> {
1348
1340
  /**
1349
1341
  * A PageNode represents a page in the document, a child of the root node of the document's "scenegraph" artwork tree
1350
1342
  * (see {@link ExpressRootNode}). A page contains one or more artboards, representing "scenes" in a linear timeline
1351
- * sequence. Those artboards in turn contain all the visual content of the document.
1343
+ * sequence. Those artboards, in turn, contain all the visual content of the document.
1352
1344
  *
1353
1345
  * To create new pages, see {@link PageList.addPage}.
1354
1346
  */
@@ -1384,6 +1376,69 @@ export declare class PageNode extends BaseNode implements Readonly<IRectangularN
1384
1376
  cloneInPlace(): PageNode;
1385
1377
  }
1386
1378
 
1379
+ /**
1380
+ * <InlineAlert slots="text" variant="warning"/>
1381
+ *
1382
+ * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
1383
+ *
1384
+ * @experimental
1385
+ * Indicates list type: see {@link UnorderedListStyleInput} and {@link OrderedListStyleInput}.
1386
+ */
1387
+ export declare enum ParagraphListType {
1388
+ unordered = 0,
1389
+ ordered = 1
1390
+ }
1391
+
1392
+ /**
1393
+ * <InlineAlert slots="text" variant="warning"/>
1394
+ *
1395
+ * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
1396
+ *
1397
+ * @experimental
1398
+ * Text styles that must be applied to an entire paragraph atomically. (Contrast with CharacterStyles which can be applied to
1399
+ * any range of characters, even a short span like one single word).
1400
+ */
1401
+ export declare interface ParagraphStyles extends BaseParagraphStyles {
1402
+ list?: OrderedListStyle | UnorderedListStyle;
1403
+ }
1404
+
1405
+ /**
1406
+ * <InlineAlert slots="text" variant="warning"/>
1407
+ *
1408
+ * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
1409
+ *
1410
+ * @experimental
1411
+ * The variant of {@link ParagraphStyles} with all optional style fields is used to apply ParagraphStyles(). When using that API,
1412
+ * any fields not specified are left unchanged, preserving the text's existing styles.
1413
+ */
1414
+ export declare interface ParagraphStylesInput extends Partial<BaseParagraphStyles> {
1415
+ list?: OrderedListStyleInput | UnorderedListStyleInput;
1416
+ }
1417
+
1418
+ /**
1419
+ * <InlineAlert slots="text" variant="warning"/>
1420
+ *
1421
+ * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
1422
+ *
1423
+ * @experimental
1424
+ * A set of {@link ParagraphStyles} and the text range they apply to. It is seen in the paragraphStyleRanges getter.
1425
+ */
1426
+ export declare interface ParagraphStylesRange extends ParagraphStyles, StyleRange {}
1427
+
1428
+ /**
1429
+ * <InlineAlert slots="text" variant="warning"/>
1430
+ *
1431
+ * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
1432
+ *
1433
+ * @experimental
1434
+ * A variant of {@link ParagraphStylesRange} with all style fields optional and the text range they apply to. Used for the
1435
+ * paragraphStyleRanges setter. When invoking the setter, any fields not specified are reset to their defaults.
1436
+ *
1437
+ * Paragraphs are separated by newline characters (`\n`). The ranges specified here should align with
1438
+ * those boundaries.
1439
+ */
1440
+ export declare interface ParagraphStylesRangeInput extends ParagraphStylesInput, StyleRange {}
1441
+
1387
1442
  /**
1388
1443
  * A PathNode represents a generic vector path shape in the scenegraph. Paths cannot be edited through this API
1389
1444
  * yet, only read.
@@ -1461,7 +1516,7 @@ export declare class ReadOnlyItemList<T extends ListItem> {
1461
1516
  /**
1462
1517
  * All items in the list, as a static array. Mutations that occur later are not reflected in an array returned earlier.
1463
1518
  */
1464
- toArray(): Readonly<T[]>;
1519
+ toArray(): readonly T[];
1465
1520
  }
1466
1521
 
1467
1522
  declare interface Rect {
@@ -1479,7 +1534,7 @@ export declare interface RectangleGeometry {
1479
1534
  /**
1480
1535
  * A RectangleNode represents a rectangle shape in the scenegraph.
1481
1536
  *
1482
- * To create new rectangles, see {@link Editor.createRectangle}.
1537
+ * To create a new rectangle, see {@link Editor.createRectangle}.
1483
1538
  */
1484
1539
  export declare class RectangleNode extends FillableNode implements IRectangularNode {
1485
1540
  /**
@@ -1770,11 +1825,6 @@ export declare class TextContentModel {
1770
1825
  */
1771
1826
  get id(): string;
1772
1827
  /**
1773
- * <InlineAlert slots="text" variant="warning"/>
1774
- *
1775
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
1776
- *
1777
- * @experimental
1778
1828
  * Get ordered list of all {@link TextNode}s that display this text content in the scenegraph. The text content
1779
1829
  * starts in the first {@link TextNode} "frame", and then flows into the second node once it has filled the first one. The ending of the
1780
1830
  * text content may not be visible at all, if the last {@link TextNode} "frame" is not large enough to accommodate it.
@@ -1788,12 +1838,7 @@ export declare class TextContentModel {
1788
1838
  get text(): string;
1789
1839
  set text(textContent: string);
1790
1840
  /**
1791
- * <InlineAlert slots="text" variant="warning"/>
1792
- *
1793
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
1794
- *
1795
- * @experimental
1796
- * The character styles applied to different ranges of this text content. When setting character styles, any style
1841
+ * The character styles are applied to different ranges of this text content. When setting character styles, any style
1797
1842
  * properties that are not provided are reset to their defaults (contrast to {@link applyCharacterStyles} which
1798
1843
  * preserves the text's existing styles for any fields not specified). When *getting* styles, all fields are always
1799
1844
  * provided.
@@ -1809,14 +1854,36 @@ export declare class TextContentModel {
1809
1854
  * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
1810
1855
  *
1811
1856
  * @experimental
1857
+ * The styles applied to different paragraphs of this text content.
1858
+ */
1859
+ get paragraphStyleRanges(): readonly ParagraphStylesRange[];
1860
+ /**
1861
+ * <InlineAlert slots="text" variant="warning"/>
1862
+ *
1863
+ * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
1864
+ *
1865
+ * @experimental
1866
+ * Apply styles to different paragraphs of this text content. Any style properties that are not provided are reset to their defaults.
1867
+ * When **getting** styles, all properties are always provided.
1868
+ *
1869
+ * Paragraphs are separated by newline characters (`\n`). The ranges specified here should align with
1870
+ * those boundaries. If multiple ranges provided overlap a single paragraph, the first one to overlap is applied to the
1871
+ * entire paragraph.
1872
+ *
1873
+ * @throws if the text content contains fonts unavailable to the current user and an ordered-list style is being applied.
1874
+ */
1875
+ set paragraphStyleRanges(styles: readonly ParagraphStylesRangeInput[]);
1876
+ /**
1812
1877
  * Apply one or more styles to the characters in the given range, leaving any style properties that were not specified
1813
1878
  * unchanged. Does not modify any styles in the text outside this range. Contrast to the {@link characterStyleRanges}
1814
1879
  * setter, which specifies new style range(s) for the entire text at once, and resets any unspecified properties back to
1815
1880
  * default styles.
1816
1881
 
1817
1882
  * @param styles - The styles to apply.
1818
- * @param range - The start and length of character sequence to which the styles should be applied.
1819
- * If not specified the styles will be applied to the entire piece of text content flow.
1883
+ * @param range -The start and length of the character sequence to which the styles should be applied.
1884
+ * The styles will be applied to the entire text content flow if not specified.
1885
+ * If the specified range doesn't align well with the paragraph boundaries, the range will be expanded to cover the
1886
+ * entire paragraphs, it overlaps.
1820
1887
  */
1821
1888
  applyCharacterStyles(
1822
1889
  styles: CharacterStylesInput,
@@ -1825,6 +1892,28 @@ export declare class TextContentModel {
1825
1892
  length: number;
1826
1893
  }
1827
1894
  ): void;
1895
+ /**
1896
+ * <InlineAlert slots="text" variant="warning"/>
1897
+ *
1898
+ * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
1899
+ *
1900
+ * @experimental
1901
+ * Apply one or more styles to the paragraphs in the given range, leaving any style properties that were not specified
1902
+ * unchanged. Does not modify any styles in the text outside this range. Contrast to the {@link paragraphStyleRanges}
1903
+ * setter, which specifies new style range(s) for the entire text at once, and resets any unspecified properties back to
1904
+ * default styles.
1905
+
1906
+ * @param styles - The styles to apply.
1907
+ * @param range - The start and length of character sequence to which the styles should be applied.
1908
+ * If not specified the styles will be applied to the entire piece of text content flow.
1909
+ */
1910
+ applyParagraphStyles(
1911
+ styles: ParagraphStylesInput,
1912
+ range?: {
1913
+ start: number;
1914
+ length: number;
1915
+ }
1916
+ ): void;
1828
1917
  }
1829
1918
 
1830
1919
  /**
@@ -1836,6 +1925,24 @@ export declare class TextContentModel {
1836
1925
  * multi-frame text flows.
1837
1926
  */
1838
1927
  export declare class TextNode extends Node {
1928
+ /**
1929
+ * {@inheritDoc VisualNode.centerPointLocal}
1930
+ *
1931
+ * @returns
1932
+ * Note: The center of the orphaned TextNode may be different from the center of the node placed on a page. It is
1933
+ * recommended to use this property only when the node is placed on a page.
1934
+ *
1935
+ */
1936
+ get centerPointLocal(): Readonly<Point>;
1937
+ /**
1938
+ * {@inheritDoc VisualNode.topLeftLocal}
1939
+ *
1940
+ * @returns
1941
+ * Note: The top-left of the orphaned TextNode may be different from the top-left of the node placed on a
1942
+ * page. It is recommended to use this property only when the node is placed on a page.
1943
+ *
1944
+ */
1945
+ get topLeftLocal(): Readonly<Point>;
1839
1946
  /**
1840
1947
  * The model containing the complete text string and its styles, only part of which may be visible within the bounds of
1841
1948
  * this specific TextNode "frame." The full text content flow may be split across multiple frames, and/or it may be clipped if a
@@ -1849,11 +1956,6 @@ export declare class TextNode extends Node {
1849
1956
  */
1850
1957
  get fullContent(): TextContentModel;
1851
1958
  /**
1852
- * <InlineAlert slots="text" variant="warning"/>
1853
- *
1854
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
1855
- *
1856
- * @experimental
1857
1959
  * The next TextNode that text overflowing this node will spill into, if any. If undefined and this TextNode is fixed size
1858
1960
  * ({@link AreaTextLayout}), any text content that does not fit within this node's area will be clipped.
1859
1961
  *
@@ -1880,11 +1982,6 @@ export declare class TextNode extends Node {
1880
1982
  get textAlignment(): TextAlignment;
1881
1983
  set textAlignment(alignment: TextAlignment);
1882
1984
  /**
1883
- * <InlineAlert slots="text" variant="warning"/>
1884
- *
1885
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
1886
- *
1887
- * @experimental
1888
1985
  * @returns The list of visual effects applied to the TextNode.
1889
1986
  */
1890
1987
  get visualEffects(): readonly VisualEffectType[];
@@ -1906,10 +2003,11 @@ export declare class TextNode extends Node {
1906
2003
  * Sets the layout mode of the TextNode "frame."
1907
2004
  *
1908
2005
  * If this TextNode is part of a multi-frame text content flow, it must be configured to use {@link AreaTextLayout}. Other
1909
- * layout modes are only available for single-frame text.
2006
+ * layout modes, except for {@link AreaTextLayout}, are only available for single-frame text.
1910
2007
  *
1911
2008
  * @throws if changing text layout to/from {@link TextType.magicFit} or {@link TextType.circular} layout when the text contains font(s) unavailable to the current user.
1912
- * @throws if TextNode is part of a multi-frame text content flow and the layout is not {@link AreaTextLayout}.
2009
+ * @throws if {@link TextNode} is part of a multi-frame text content flow and the layout is not {@link AreaTextLayout}.
2010
+ * @throws if {@link TextNode} is not a part of a multi-frame text content flow and the layout is {@link AreaTextLayout}.
1913
2011
  */
1914
2012
  set layout(layout: PointTextLayout | AutoHeightTextLayout | AreaTextLayout);
1915
2013
  }
@@ -1945,6 +2043,37 @@ export declare class UnavailableFont extends BaseFont {
1945
2043
  */
1946
2044
  export declare class UnknownNode extends Node {}
1947
2045
 
2046
+ /**
2047
+ * <InlineAlert slots="text" variant="warning"/>
2048
+ *
2049
+ * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
2050
+ *
2051
+ * @experimental
2052
+ * UnorderedListStyle represents the style of an unordered list.
2053
+ */
2054
+ export declare type UnorderedListStyle = Required<UnorderedListStyleInput>;
2055
+
2056
+ /**
2057
+ * <InlineAlert slots="text" variant="warning"/>
2058
+ *
2059
+ * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
2060
+ *
2061
+ * @experimental
2062
+ * Interface for specifying an unordered list style, such as a bullet list.
2063
+ */
2064
+ export declare interface UnorderedListStyleInput extends BaseParagraphListStyle {
2065
+ type: ParagraphListType.unordered;
2066
+ /**
2067
+ * Marker symbol to use. If undefined, it defaults to a different symbol depending on the paragraph's indent level.
2068
+ * The defaults for increasing indent are: •, ◦, ◼, ◻, and then they repeat.
2069
+ * Markers are always displayed using the default font (SourceSans3 Regular), regardless of the font(s) used in the
2070
+ * paragraph's text content. A default marker is used instead if the default font does not support the symbol.
2071
+ *
2072
+ * Text or Unicode glyphs are accepted to represent the list marker.
2073
+ */
2074
+ marker?: string;
2075
+ }
2076
+
1948
2077
  /**
1949
2078
  * <InlineAlert slots="text" variant="warning"/>
1950
2079
  *
@@ -1962,11 +2091,11 @@ export declare interface UnsupportedTextLayout {
1962
2091
  export declare class Viewport {
1963
2092
  /**
1964
2093
  * Adjusts the viewport to make the node's bounds visible on-screen, assuming all bounds are within the artboard bounds.
1965
- * Makes the node's {@link ArtboardNode} or {@link PageNode} visible if they were not already
1966
- * (which may result in {@link Context.selection} being cleared). It is strongly recomended
1967
- * to further draw user's attention to the node by setting it as the {@link Context.selection} following this call.
2094
+ * Makes the node's {@link ArtboardNode} or {@link PageNode} visible if they were not already visible
2095
+ * (which may result in {@link Context.selection} being cleared). It is strongly recommended
2096
+ * to further draw user's attention to the node, set it as the {@link Context.selection} following this call.
1968
2097
  *
1969
- * After this call, the value of {@link Context.insertionParent} will always be the node's containing {@link ArtboardNode}.
2098
+ * After this call, the value of {@link Context.insertionParent} will always be the node containing {@link ArtboardNode}.
1970
2099
  *
1971
2100
  * Note that the node might still not appear visible if:
1972
2101
  * - Its animation settings make it invisible at the beginning of the {@link ArtboardNode} "scene".
@@ -1979,11 +2108,6 @@ export declare class Viewport {
1979
2108
  export declare const viewport: ExpressViewport;
1980
2109
 
1981
2110
  /**
1982
- * <InlineAlert slots="text" variant="warning"/>
1983
- *
1984
- * **IMPORTANT:** This is currently ***experimental only*** and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the `experimentalApis` flag to `true` in the [`requirements`](../../../manifest/index.md#requirements) section of the `manifest.json`.
1985
- *
1986
- * @experimental
1987
2111
  * Visual effects that can be applied to a text node.
1988
2112
  */
1989
2113
  declare enum VisualEffectType {
@@ -2021,8 +2145,7 @@ export declare class VisualNode extends BaseNode {
2021
2145
  */
2022
2146
  get boundsLocal(): Readonly<Rect>;
2023
2147
  /**
2024
- * Position of the node's centerpoint in its own local coordinate space, i.e. the center of the boundsLocal
2025
- * box.
2148
+ * Position of the node's centerpoint in its own local coordinate space, i.e. the center of the boundsLocal box.
2026
2149
  */
2027
2150
  get centerPointLocal(): Readonly<Point>;
2028
2151
  /**
package/ui/ui-sdk.d.ts CHANGED
@@ -238,7 +238,6 @@ declare interface ApplicationBase {
238
238
  dragOptions?: DragOptions
239
239
  ): DisableDragToDocument;
240
240
  /**
241
- * @experimental - Experimental API
242
241
  * Register iframe with the add-on SDK.
243
242
  * @param element - HTMLIframeElement to be registered.
244
243
  * @returns UnregisterIframe - Callback to unregister iframe from the add-on SDK.
@@ -745,6 +744,11 @@ declare interface Document_2 {
745
744
  * Import a presentation to the document.
746
745
  */
747
746
  importPresentation(blob: Blob, attributes: MediaAttributes): void;
747
+ /**
748
+ * @experimental - Experimental API
749
+ * Run print quality check
750
+ */
751
+ runPrintQualityCheck(options: PrintQualityCheckOptions): void;
748
752
  }
749
753
  export { Document_2 as Document };
750
754
 
@@ -1133,6 +1137,10 @@ export declare interface PageMetadata {
1133
1137
  * Whether page contains timelines
1134
1138
  */
1135
1139
  hasTemporalContent: boolean;
1140
+ /**
1141
+ * Whether the page is blank
1142
+ */
1143
+ isBlank?: boolean;
1136
1144
  /**
1137
1145
  * Pixels per inch of the page
1138
1146
  */
@@ -1141,21 +1149,16 @@ export declare interface PageMetadata {
1141
1149
  * Whether page is ready to print
1142
1150
  */
1143
1151
  isPrintReady?: boolean;
1152
+ /**
1153
+ * Template details of the page
1154
+ */
1155
+ templateDetails?: TemplateDetails;
1144
1156
  }
1145
1157
 
1146
1158
  /**
1147
1159
  * Options for fetching page metadata
1148
1160
  */
1149
- export declare interface PageMetadataOptions {
1150
- /**
1151
- * Page range of the document to get the metadata
1152
- */
1153
- range: Range_2;
1154
- /**
1155
- * Ids of the pages (Only required if the range is "specificPages")
1156
- */
1157
- pageIds?: string[];
1158
- }
1161
+ export declare interface PageMetadataOptions extends RangeOptions {}
1159
1162
 
1160
1163
  export declare interface PageRendition extends Rendition {
1161
1164
  /**
@@ -1350,6 +1353,12 @@ export declare interface PngRenditionOptions extends RenditionOptions {
1350
1353
  };
1351
1354
  }
1352
1355
 
1356
+ /**
1357
+ * @experimental - Experimental API
1358
+ * Options for running print quality check
1359
+ */
1360
+ export declare interface PrintQualityCheckOptions extends RangeOptions {}
1361
+
1353
1362
  /**
1354
1363
  * Takes a type and wraps it in a Promise, if it not already is one.
1355
1364
  * This is to avoid `Promise<Promise<T>>`.
@@ -1392,6 +1401,20 @@ declare enum Range_2 {
1392
1401
  }
1393
1402
  export { Range_2 as Range };
1394
1403
 
1404
+ /**
1405
+ * Options for providing range of pages
1406
+ */
1407
+ export declare interface RangeOptions {
1408
+ /**
1409
+ * Page range of the document
1410
+ */
1411
+ range: Range_2;
1412
+ /**
1413
+ * Ids of the pages (Only required if the range is "specificPages")
1414
+ */
1415
+ pageIds?: string[];
1416
+ }
1417
+
1395
1418
  /**
1396
1419
  * Takes the raw type of a remote object or function in the other thread and returns the type as it is visible to
1397
1420
  * the local thread from the proxy return value of `Runtime.apiProxy()`.
@@ -1484,19 +1507,11 @@ export declare enum RenditionIntent {
1484
1507
  print = "print"
1485
1508
  }
1486
1509
 
1487
- export declare interface RenditionOptions {
1488
- /**
1489
- * Range of the document to get the rendition
1490
- */
1491
- range: Range_2;
1510
+ export declare interface RenditionOptions extends RangeOptions {
1492
1511
  /**
1493
1512
  * Format of the rendition
1494
1513
  */
1495
1514
  format: RenditionFormat;
1496
- /**
1497
- * Ids of the pages (Only required if the range is "specificPages")
1498
- */
1499
- pageIds?: string[];
1500
1515
  }
1501
1516
 
1502
1517
  /**
@@ -1584,6 +1599,20 @@ export declare interface SearchAction extends PanelAction {
1584
1599
 
1585
1600
  export declare type SimpleDialogOptions = AlertDialogOptions | InputDialogOptions;
1586
1601
 
1602
+ /**
1603
+ * Represents template data for a page
1604
+ */
1605
+ export declare interface TemplateDetails {
1606
+ /**
1607
+ * Unique id of the template
1608
+ */
1609
+ id: string;
1610
+ /**
1611
+ * Creative intent of the template
1612
+ */
1613
+ creativeIntent?: string;
1614
+ }
1615
+
1587
1616
  /**
1588
1617
  * Interface that contains methods and properties that are Application UI related.
1589
1618
  */
@@ -1605,7 +1634,6 @@ export declare interface UI {
1605
1634
  */
1606
1635
  readonly locales: string[];
1607
1636
  /**
1608
- * @experimental - Experimental API
1609
1637
  * Opens an Editor Panel
1610
1638
  * @param panel - one of {@link EditorPanel}
1611
1639
  * @param action - optional action to be performed on the panel {@link PanelAction}
@@ -1629,7 +1657,6 @@ declare type Unpromisify<P> = P extends Promise<infer T> ? T : P;
1629
1657
  declare type UnproxyOrClone<T> = T extends RemoteObject<ProxyMarked> ? Local<T> : T;
1630
1658
 
1631
1659
  /**
1632
- * @experimental - Experimental API
1633
1660
  * Callback to unregister iframe from the add-on SDK.
1634
1661
  */
1635
1662
  declare type UnregisterIframe = () => void;