@adobe/ccweb-add-on-sdk-types 1.14.0 → 1.15.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 +1 -1
- package/sandbox/express-document-sdk.d.ts +30 -21
- package/ui/ui-sdk.d.ts +29 -0
package/package.json
CHANGED
|
@@ -175,6 +175,7 @@ export declare class ArtboardNode extends VisualNode implements IRectangularNode
|
|
|
175
175
|
get children(): ItemList<Node>;
|
|
176
176
|
/**
|
|
177
177
|
* The background fill of the artboard. Artboards must always have a fill.
|
|
178
|
+
*
|
|
178
179
|
*/
|
|
179
180
|
set fill(fill: Fill);
|
|
180
181
|
get fill(): Readonly<Fill>;
|
|
@@ -1885,13 +1886,7 @@ export declare class TextContentModel {
|
|
|
1885
1886
|
* If the specified range doesn't align well with the paragraph boundaries, the range will be expanded to cover the
|
|
1886
1887
|
* entire paragraphs, it overlaps.
|
|
1887
1888
|
*/
|
|
1888
|
-
applyCharacterStyles(
|
|
1889
|
-
styles: CharacterStylesInput,
|
|
1890
|
-
range?: {
|
|
1891
|
-
start: number;
|
|
1892
|
-
length: number;
|
|
1893
|
-
}
|
|
1894
|
-
): void;
|
|
1889
|
+
applyCharacterStyles(styles: CharacterStylesInput, range?: TextRange): void;
|
|
1895
1890
|
/**
|
|
1896
1891
|
* <InlineAlert slots="text" variant="warning"/>
|
|
1897
1892
|
*
|
|
@@ -1907,13 +1902,19 @@ export declare class TextContentModel {
|
|
|
1907
1902
|
* @param range - The start and length of character sequence to which the styles should be applied.
|
|
1908
1903
|
* If not specified the styles will be applied to the entire piece of text content flow.
|
|
1909
1904
|
*/
|
|
1910
|
-
applyParagraphStyles(
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1905
|
+
applyParagraphStyles(styles: ParagraphStylesInput, range?: TextRange): void;
|
|
1906
|
+
/**
|
|
1907
|
+
* <InlineAlert slots="text" variant="warning"/>
|
|
1908
|
+
*
|
|
1909
|
+
* **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`.
|
|
1910
|
+
*
|
|
1911
|
+
* @experimental
|
|
1912
|
+
* Returns true if this text contains any fonts unavailable to the current user.
|
|
1913
|
+
* Currently, if any unavailable fonts are present, the text content cannot be modified and
|
|
1914
|
+
* certain styling changes are limited as well. To remove these restrictions, you must modify
|
|
1915
|
+
* the character styles to use only AvailableFonts.
|
|
1916
|
+
*/
|
|
1917
|
+
hasUnavailableFonts(): boolean;
|
|
1917
1918
|
}
|
|
1918
1919
|
|
|
1919
1920
|
/**
|
|
@@ -2012,23 +2013,31 @@ export declare class TextNode extends Node {
|
|
|
2012
2013
|
set layout(layout: PointTextLayout | AutoHeightTextLayout | AreaTextLayout);
|
|
2013
2014
|
}
|
|
2014
2015
|
|
|
2016
|
+
/**
|
|
2017
|
+
* A range of text in a {@link TextContentModel}.
|
|
2018
|
+
*/
|
|
2019
|
+
declare interface TextRange {
|
|
2020
|
+
start: number;
|
|
2021
|
+
length: number;
|
|
2022
|
+
}
|
|
2023
|
+
|
|
2015
2024
|
/**
|
|
2016
2025
|
* <InlineAlert slots="text" variant="warning"/>
|
|
2017
2026
|
*
|
|
2018
2027
|
* *Do not depend on the literal numeric values of these constants*, as they may change. Always reference the enum identifiers in your code.
|
|
2019
2028
|
*/
|
|
2020
2029
|
declare enum TextType {
|
|
2030
|
+
area = 1,
|
|
2021
2031
|
/**
|
|
2022
|
-
*
|
|
2032
|
+
* Soft bottom
|
|
2023
2033
|
*/
|
|
2024
|
-
|
|
2034
|
+
autoHeight = 2,
|
|
2025
2035
|
/**
|
|
2026
|
-
*
|
|
2036
|
+
* Point text
|
|
2027
2037
|
*/
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
magicFit =
|
|
2031
|
-
circular = 4
|
|
2038
|
+
autoWidth = 3,
|
|
2039
|
+
circular = 4,
|
|
2040
|
+
magicFit = 5
|
|
2032
2041
|
}
|
|
2033
2042
|
|
|
2034
2043
|
/**
|
package/ui/ui-sdk.d.ts
CHANGED
|
@@ -151,6 +151,10 @@ export declare enum AppEvent {
|
|
|
151
151
|
* triggered when the document id is available in the application.
|
|
152
152
|
*/
|
|
153
153
|
documentIdAvailable = "documentIdAvailable",
|
|
154
|
+
/**
|
|
155
|
+
* triggered when the document link is available in the application.
|
|
156
|
+
*/
|
|
157
|
+
documentLinkAvailable = "documentLinkAvailable",
|
|
154
158
|
/**
|
|
155
159
|
* triggered when the document title is changed in the application.
|
|
156
160
|
*/
|
|
@@ -171,6 +175,7 @@ declare interface AppEventsTypeMap {
|
|
|
171
175
|
[AppEvent.dragend]: AppDragEndEventData;
|
|
172
176
|
|
|
173
177
|
[AppEvent.documentIdAvailable]: DocumentIdAvailableEventData;
|
|
178
|
+
[AppEvent.documentLinkAvailable]: DocumentLinkAvailableEventData;
|
|
174
179
|
[AppEvent.documentTitleChange]: DocumentTitleChangeEventData;
|
|
175
180
|
}
|
|
176
181
|
|
|
@@ -607,6 +612,7 @@ export declare enum ColorPickerPlacement {
|
|
|
607
612
|
declare namespace Constants {
|
|
608
613
|
export {
|
|
609
614
|
Range_2 as Range,
|
|
615
|
+
LinkOptions,
|
|
610
616
|
RenditionFormat,
|
|
611
617
|
RenditionType,
|
|
612
618
|
RenditionIntent,
|
|
@@ -822,6 +828,11 @@ declare interface Document_2 {
|
|
|
822
828
|
* Get document id
|
|
823
829
|
*/
|
|
824
830
|
id(): Promise<string | undefined>;
|
|
831
|
+
/**
|
|
832
|
+
* @experimental - Experimental API
|
|
833
|
+
* Get document Link
|
|
834
|
+
*/
|
|
835
|
+
link(options: LinkOptions): Promise<string | undefined>;
|
|
825
836
|
/**
|
|
826
837
|
* Get document name/title
|
|
827
838
|
*/
|
|
@@ -849,6 +860,13 @@ declare interface DocumentIdAvailableEventData {
|
|
|
849
860
|
documentId: string | undefined;
|
|
850
861
|
}
|
|
851
862
|
|
|
863
|
+
/**
|
|
864
|
+
* The payload data sent to the document link available event handler.
|
|
865
|
+
*/
|
|
866
|
+
declare interface DocumentLinkAvailableEventData {
|
|
867
|
+
documentLink: string | undefined;
|
|
868
|
+
}
|
|
869
|
+
|
|
852
870
|
/**
|
|
853
871
|
* The payload data sent to the document title change event handler.
|
|
854
872
|
*/
|
|
@@ -1052,6 +1070,17 @@ export declare interface JpgRenditionOptions extends RenditionOptions {
|
|
|
1052
1070
|
};
|
|
1053
1071
|
}
|
|
1054
1072
|
|
|
1073
|
+
/**
|
|
1074
|
+
* @experimental - Experimental API
|
|
1075
|
+
* Link options for document link
|
|
1076
|
+
*/
|
|
1077
|
+
export declare enum LinkOptions {
|
|
1078
|
+
/**
|
|
1079
|
+
* Link to the current document
|
|
1080
|
+
*/
|
|
1081
|
+
document = "document"
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1055
1084
|
/**
|
|
1056
1085
|
* Takes the raw type of a remote object or function as a remote thread would see it through a proxy (e.g. when
|
|
1057
1086
|
* passed in as a function argument) and returns the type the local thread has to supply.
|