@adobe/ccweb-add-on-sdk-types 1.21.0 → 1.22.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.21.0",
3
+ "version": "1.22.0",
4
4
  "author": "Adobe",
5
5
  "license": "MIT",
6
6
  "description": "Type definitions for Adobe Creative Cloud Web Add-on SDK.",
@@ -22,7 +22,7 @@
22
22
  * SOFTWARE.
23
23
  ********************************************************************************/
24
24
 
25
- import { mat2d } from "gl-matrix";
25
+ import type { mat2d } from "gl-matrix";
26
26
 
27
27
  /**
28
28
  * AddOnData class provides APIs to read, write, remove private metadata to a Node.
@@ -968,7 +968,7 @@ export declare class GridLayoutNode extends Node implements IRectangularNode {
968
968
  * Grid Cells are ordered by the y and then x position of their top left corner, i.e. left to right and top to bottom.
969
969
  * The children cannot be added or removed.
970
970
  */
971
- get allChildren(): Readonly<Iterable<Node>>;
971
+ get allChildren(): Readonly<Iterable<GridCellNode>>;
972
972
  /**
973
973
  * The background fill of the GridLayout.
974
974
  */
@@ -1864,7 +1864,7 @@ export declare type SolidColorStrokeWithOptionalType = Omit<SolidColorStroke, "t
1864
1864
 
1865
1865
  /**
1866
1866
  * A StandaloneTextNode represents a text display frame in the scenegraph. It displays an entire piece of text.
1867
- * The StandaloneTextNode does not directly hold the text content and styles – instead it refers to a {@link TextContentModel}.
1867
+ * The StandaloneTextNode does not directly hold the text content and styles – instead it refers to a {@link TextNodeContentModel}.
1868
1868
  *
1869
1869
  * To create new a single-frame piece of text, see {@link Editor.createText}.
1870
1870
  */
@@ -1975,11 +1975,10 @@ declare enum TextAlignment {
1975
1975
  }
1976
1976
 
1977
1977
  /**
1978
- * Represents a complete piece of text content, which may be contained within a single {@link StandaloneTextNode} *or*
1979
- * split across multiple {@link ThreadedTextNode} frames for display.
1978
+ * TextContentModel is an abstract base class representing a complete piece of text content.
1980
1979
  * Use this model to get or modify the text string and the style ranges applied to it.
1981
1980
  */
1982
- export declare class TextContentModel {
1981
+ export declare abstract class TextContentModel {
1983
1982
  /**
1984
1983
  * <InlineAlert slots="text" variant="warning"/>
1985
1984
  *
@@ -1994,14 +1993,6 @@ export declare class TextContentModel {
1994
1993
  * Comparing two models using `===` will always fail.
1995
1994
  */
1996
1995
  get id(): string;
1997
- /**
1998
- * Get ordered list of all {@link TextNode}s that display this text content in the scenegraph. The text content
1999
- * starts in the first {@link ThreadedTextNode} "frame", and then flows into the second node once it has filled the first one. The ending of the
2000
- * text content may not be visible at all, if the last {@link ThreadedTextNode} "frame" is not large enough to accommodate it.
2001
- *
2002
- * If there are multiple {@link ThreadedTextNode}s, all of them must be configured to use {@link AreaTextLayout}.
2003
- */
2004
- get allTextNodes(): Readonly<Iterable<TextNode>>;
2005
1996
  /**
2006
1997
  * The complete text string, which may span multiple {@link ThreadedTextNode} "frames" in the scenegraph.
2007
1998
  */
@@ -2126,7 +2117,7 @@ declare enum TextLayout {
2126
2117
  /**
2127
2118
  * TextNode is an abstract base class representing text displayed in the scenegraph, regardless of whether it's a fully
2128
2119
  * self-contained {@link StandaloneTextNode} or one {@link ThreadedTextNode} "frame" of multiple in a larger flow. The
2129
- * APIs on TextNode and its {@link TextContentModel} allow you to generically work with text without needing to know
2120
+ * APIs on TextNode and its {@link TextNodeContentModel} allow you to generically work with text without needing to know
2130
2121
  * which of those subtypes you are dealing with.
2131
2122
  */
2132
2123
  export declare abstract class TextNode extends Node {
@@ -2179,12 +2170,12 @@ export declare abstract class TextNode extends Node {
2179
2170
  * fixed-size frame using {@link AreaTextLayout} does not fit all the (remaining) text.
2180
2171
  *
2181
2172
  * Note: When traversing the scenegraph in search of text content, bear in mind that multiple TextNodes may refer to the
2182
- * same single {@link TextContentModel}; this can give the impression that the same text is duplicated multiple times when it is
2183
- * not. Use {@link TextContentModel}.id to determine whether a given piece of text content is unique or if it's already been
2173
+ * same single {@link TextNodeContentModel}; this can give the impression that the same text is duplicated multiple times when it is
2174
+ * not. Use {@link TextNodeContentModel}.id to determine whether a given piece of text content is unique or if it's already been
2184
2175
  * encountered before.
2185
2176
  *
2186
2177
  */
2187
- get fullContent(): TextContentModel;
2178
+ get fullContent(): TextNodeContentModel;
2188
2179
  /**
2189
2180
  * Helper method to determine if the text is standalone.
2190
2181
  */
@@ -2204,14 +2195,14 @@ export declare abstract class TextNode extends Node {
2204
2195
  * The text string content which is partially *or* fully displayed in this TextNode "frame."
2205
2196
  * WARNING: If a piece of text content flows across several TextNodes, *each* TextNode's `text` getter will return
2206
2197
  * the *entire* text content string.
2207
- * @deprecated - Use the text getter on {@link TextContentModel} instead. Access it via `TextNode.fullContent.text`.
2198
+ * @deprecated - Use the text getter on {@link TextNodeContentModel} instead. Access it via `TextNode.fullContent.text`.
2208
2199
  */
2209
2200
  get text(): string;
2210
2201
  /**
2211
2202
  * Sets the text content of the TextNode.
2212
2203
  * WARNING: If a piece of text content flows across several TextNodes,
2213
2204
  * *each* TextNode's `text` setter will sets the *entire* text content string.
2214
- * @deprecated - Use the text setter on {@link TextContentModel} instead. Access it via `TextNode.fullContent.text`.
2205
+ * @deprecated - Use the text setter on {@link TextNodeContentModel} instead. Access it via `TextNode.fullContent.text`.
2215
2206
  */
2216
2207
  set text(textContent: string);
2217
2208
  /**
@@ -2234,6 +2225,22 @@ export declare abstract class TextNode extends Node {
2234
2225
  get layout(): Readonly<AutoWidthTextLayout | AutoHeightTextLayout | AreaTextLayout | UnsupportedTextLayout>;
2235
2226
  }
2236
2227
 
2228
+ /**
2229
+ * Represents a complete piece of text content, which may be contained within a single {@link StandaloneTextNode} *or*
2230
+ * split across multiple {@link ThreadedTextNode} frames for display.
2231
+ * Use this model to get or modify the text string and the style ranges applied to it.
2232
+ */
2233
+ export declare class TextNodeContentModel extends TextContentModel {
2234
+ /**
2235
+ * Get ordered list of all {@link TextNode}s that display this text content in the scenegraph. The text content
2236
+ * starts in the first {@link ThreadedTextNode} "frame", and then flows into the second node once it has filled the first one. The ending of the
2237
+ * text content may not be visible at all, if the last {@link ThreadedTextNode} "frame" is not large enough to accommodate it.
2238
+ *
2239
+ * If there are multiple {@link ThreadedTextNode}s, all of them must be configured to use {@link AreaTextLayout}.
2240
+ */
2241
+ get allTextNodes(): Readonly<Iterable<TextNode>>;
2242
+ }
2243
+
2237
2244
  /**
2238
2245
  * A range of text in a {@link TextContentModel}.
2239
2246
  */
@@ -2257,7 +2264,7 @@ export declare enum TextScriptStyle {
2257
2264
  /**
2258
2265
  * A ThreadedTextNode represents a text display frame in the scenegraph. It is a subset of longer text that flows across
2259
2266
  * multiple TextNode "frames". Because of this, the TextNode does not directly hold the text content and styles –
2260
- * instead it refers to a {@link TextContentModel}, which may be shared across multiple ThreadedTextNode frames.
2267
+ * instead it refers to a {@link TextNodeContentModel}, which may be shared across multiple ThreadedTextNode frames.
2261
2268
  *
2262
2269
  * APIs are not yet available to create multi-frame text flows.
2263
2270
  */
@@ -23,6 +23,6 @@
23
23
  ********************************************************************************/
24
24
 
25
25
  export * from "./express-document-sdk.js";
26
- export * from "./global.js";
26
+ export type * from "./global.js";
27
27
  export * from "./add-on-sdk-document-sandbox.js";
28
28
  export { default } from "./add-on-sdk-document-sandbox.js";
package/ui/ui-sdk.d.ts CHANGED
@@ -947,7 +947,7 @@ declare interface Document_2 {
947
947
  */
948
948
  runPrintQualityCheck(options: PrintQualityCheckOptions): void;
949
949
  }
950
- export { Document_2 as Document };
950
+ export type { Document_2 as Document };
951
951
 
952
952
  /**
953
953
  * The payload data sent when the document's export permission status changes in review and approval workflow.
@@ -1741,6 +1741,13 @@ export declare interface PngRenditionOptions extends RenditionOptions {
1741
1741
  fileSizeLimitUnit?: FileSizeLimitUnit;
1742
1742
  }
1743
1743
 
1744
+ export declare interface PptxRenditionOptions extends RenditionOptions {
1745
+ /**
1746
+ * PPTX rendition format
1747
+ */
1748
+ format: RenditionFormat.pptx;
1749
+ }
1750
+
1744
1751
  /**
1745
1752
  * @experimental - Experimental API
1746
1753
  * Options for running print quality check
@@ -1874,7 +1881,11 @@ export declare enum RenditionFormat {
1874
1881
  /**
1875
1882
  * PDF format
1876
1883
  */
1877
- pdf = "application/pdf"
1884
+ pdf = "application/pdf",
1885
+ /**
1886
+ * PPTX format
1887
+ */
1888
+ pptx = "application/vnd.openxmlformats-officedocument.presentationml.presentation"
1878
1889
  }
1879
1890
 
1880
1891
  /**