@adobe/ccweb-add-on-sdk-types 1.5.0 → 1.6.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 +2 -2
- package/ui/ui-sdk.d.ts +172 -1
package/package.json
CHANGED
|
@@ -170,7 +170,7 @@ export declare interface BitmapImage {
|
|
|
170
170
|
* <InlineAlert slots="text" variant="warning"/>
|
|
171
171
|
* *Do not depend on the literal numeric values of these constants*, as they may change. Always reference the enum identifiers in your code.
|
|
172
172
|
*
|
|
173
|
-
* Determines how a
|
|
173
|
+
* Determines how a scenenode is composited on top of the content rendered below it.
|
|
174
174
|
*
|
|
175
175
|
* If a node is inside a container whose blend mode anything other than {@link passThrough}, then the node's blend mode only
|
|
176
176
|
* interacts with other siblings within the same container. See documentation below for details.
|
|
@@ -235,7 +235,7 @@ export declare interface Color {
|
|
|
235
235
|
/**
|
|
236
236
|
* Represents a solid-color fill.
|
|
237
237
|
*
|
|
238
|
-
* The most convenient way to create a
|
|
238
|
+
* The most convenient way to create a fill is via `Editor.makeColorFill()`.
|
|
239
239
|
*/
|
|
240
240
|
export declare interface ColorFill extends Fill {
|
|
241
241
|
/**
|
package/ui/ui-sdk.d.ts
CHANGED
|
@@ -215,7 +215,13 @@ declare interface ApplicationBase {
|
|
|
215
215
|
* @returns DisableDragToDocument - Callback to undo the changes made by enableDragToDocument
|
|
216
216
|
*/
|
|
217
217
|
enableDragToDocument(element: HTMLElement, dragCallbacks: DragCallbacks): DisableDragToDocument;
|
|
218
|
-
|
|
218
|
+
/**
|
|
219
|
+
* @experimental - Experimental API
|
|
220
|
+
* Register iframe with the add-on SDK.
|
|
221
|
+
* @param element - HTMLIframeElement to be registered.
|
|
222
|
+
* @returns UnregisterIframe - Callback to unregister iframe from the add-on SDK.
|
|
223
|
+
*/
|
|
224
|
+
registerIframe(element: HTMLIFrameElement): UnregisterIframe;
|
|
219
225
|
/**
|
|
220
226
|
* Show a modal dialog
|
|
221
227
|
* @param dialogOptions - dialog options such as title, description, etc.
|
|
@@ -246,6 +252,11 @@ export declare interface AppThemeChangeEventData {
|
|
|
246
252
|
theme: UiTheme;
|
|
247
253
|
}
|
|
248
254
|
|
|
255
|
+
/**
|
|
256
|
+
* Asset collection Id type.
|
|
257
|
+
*/
|
|
258
|
+
export declare type AssetCollectionId = `urn:aaid:sc:VA6C2:${string}`;
|
|
259
|
+
|
|
249
260
|
/**
|
|
250
261
|
* Request parameters to authorize a user using OAuth 2.0 PKCE based authorization.
|
|
251
262
|
*/
|
|
@@ -467,6 +478,10 @@ declare namespace Constants {
|
|
|
467
478
|
RuntimeType,
|
|
468
479
|
BleedUnit,
|
|
469
480
|
VideoResolution,
|
|
481
|
+
EditorPanel,
|
|
482
|
+
MediaTabs,
|
|
483
|
+
ElementsTabs,
|
|
484
|
+
PanelActionType,
|
|
470
485
|
AuthorizationStatus
|
|
471
486
|
};
|
|
472
487
|
}
|
|
@@ -671,6 +686,74 @@ export declare interface DragCompletionData {
|
|
|
671
686
|
|
|
672
687
|
export declare type DragPreviewCallback = (element: HTMLElement) => URL;
|
|
673
688
|
|
|
689
|
+
/**
|
|
690
|
+
* Express editor panels.
|
|
691
|
+
*/
|
|
692
|
+
export declare enum EditorPanel {
|
|
693
|
+
/**
|
|
694
|
+
* Editor search panel
|
|
695
|
+
*/
|
|
696
|
+
search = "search",
|
|
697
|
+
/**
|
|
698
|
+
* Editor your stuff panel
|
|
699
|
+
*/
|
|
700
|
+
yourStuff = "yourStuff",
|
|
701
|
+
/**
|
|
702
|
+
* Editor templates panel
|
|
703
|
+
*/
|
|
704
|
+
templates = "templates",
|
|
705
|
+
/**
|
|
706
|
+
* Editor media panel
|
|
707
|
+
*/
|
|
708
|
+
media = "media",
|
|
709
|
+
/**
|
|
710
|
+
* Editor text panel
|
|
711
|
+
*/
|
|
712
|
+
text = "text",
|
|
713
|
+
/**
|
|
714
|
+
* Editor elements panel
|
|
715
|
+
*/
|
|
716
|
+
elements = "elements",
|
|
717
|
+
/**
|
|
718
|
+
* Editor grids panel
|
|
719
|
+
*/
|
|
720
|
+
grids = "grids",
|
|
721
|
+
/**
|
|
722
|
+
* Editor brands panel
|
|
723
|
+
*/
|
|
724
|
+
brands = "brands",
|
|
725
|
+
/**
|
|
726
|
+
* Editor addOns panel
|
|
727
|
+
*/
|
|
728
|
+
addOns = "addOns"
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* Tabs in editor Elements panel.
|
|
733
|
+
*/
|
|
734
|
+
export declare enum ElementsTabs {
|
|
735
|
+
/**
|
|
736
|
+
* Design assets tab.
|
|
737
|
+
*/
|
|
738
|
+
designAssets = "designAssets",
|
|
739
|
+
/**
|
|
740
|
+
* Backgrounds tab.
|
|
741
|
+
*/
|
|
742
|
+
backgrounds = "backgrounds",
|
|
743
|
+
/**
|
|
744
|
+
* Shapes assets tab.
|
|
745
|
+
*/
|
|
746
|
+
shapes = "shapes",
|
|
747
|
+
/**
|
|
748
|
+
* Icons tab.
|
|
749
|
+
*/
|
|
750
|
+
stockIcons = "stockIcons",
|
|
751
|
+
/**
|
|
752
|
+
* Charts tab.
|
|
753
|
+
*/
|
|
754
|
+
charts = "charts"
|
|
755
|
+
}
|
|
756
|
+
|
|
674
757
|
export declare interface Field {
|
|
675
758
|
/**
|
|
676
759
|
* Label
|
|
@@ -825,6 +908,24 @@ export declare interface MediaAttributes {
|
|
|
825
908
|
title: string;
|
|
826
909
|
}
|
|
827
910
|
|
|
911
|
+
/**
|
|
912
|
+
* Tabs in editor media panel.
|
|
913
|
+
*/
|
|
914
|
+
export declare enum MediaTabs {
|
|
915
|
+
/**
|
|
916
|
+
* Video tab.
|
|
917
|
+
*/
|
|
918
|
+
video = "video",
|
|
919
|
+
/**
|
|
920
|
+
* Audio tab.
|
|
921
|
+
*/
|
|
922
|
+
audio = "audio",
|
|
923
|
+
/**
|
|
924
|
+
* Photos tab.
|
|
925
|
+
*/
|
|
926
|
+
photos = "photos"
|
|
927
|
+
}
|
|
928
|
+
|
|
828
929
|
export declare interface Mp4RenditionOptions extends RenditionOptions {
|
|
829
930
|
/**
|
|
830
931
|
* mp4 rendition format
|
|
@@ -840,6 +941,24 @@ export declare interface Mp4RenditionOptions extends RenditionOptions {
|
|
|
840
941
|
customResolution?: number;
|
|
841
942
|
}
|
|
842
943
|
|
|
944
|
+
/**
|
|
945
|
+
* Navigation action that can be performed on Editor panels.
|
|
946
|
+
*/
|
|
947
|
+
export declare interface NavigateAction extends PanelAction {
|
|
948
|
+
/**
|
|
949
|
+
* Navigate to collection action type.
|
|
950
|
+
*/
|
|
951
|
+
type: PanelActionType.navigate;
|
|
952
|
+
/**
|
|
953
|
+
*
|
|
954
|
+
*/
|
|
955
|
+
tab?: ElementsTabs | MediaTabs;
|
|
956
|
+
/**
|
|
957
|
+
* collectionId of the asset collection to navigate to.
|
|
958
|
+
*/
|
|
959
|
+
collectionId?: AssetCollectionId;
|
|
960
|
+
}
|
|
961
|
+
|
|
843
962
|
/**
|
|
844
963
|
* OAuth 2.0 middleware for handling user sign-in.
|
|
845
964
|
*/
|
|
@@ -925,6 +1044,30 @@ export declare interface PageRendition extends Rendition {
|
|
|
925
1044
|
metadata: PageMetadata;
|
|
926
1045
|
}
|
|
927
1046
|
|
|
1047
|
+
/**
|
|
1048
|
+
* Represents the action to be performed on opening an Editor panel.
|
|
1049
|
+
*/
|
|
1050
|
+
export declare interface PanelAction {
|
|
1051
|
+
/**
|
|
1052
|
+
* Type of action to be performed on the Editor panel {@link PanelActionType}.
|
|
1053
|
+
*/
|
|
1054
|
+
type: PanelActionType;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
/**
|
|
1058
|
+
* Types of actions that can be performed on Editor panels.
|
|
1059
|
+
*/
|
|
1060
|
+
export declare enum PanelActionType {
|
|
1061
|
+
/**
|
|
1062
|
+
* Action type to perform search action on Editor panel.
|
|
1063
|
+
*/
|
|
1064
|
+
search = "search",
|
|
1065
|
+
/**
|
|
1066
|
+
* Action type to perform navigation within Editor panel.
|
|
1067
|
+
*/
|
|
1068
|
+
navigate = "navigate"
|
|
1069
|
+
}
|
|
1070
|
+
|
|
928
1071
|
/**
|
|
929
1072
|
* Represents a PDF Page box
|
|
930
1073
|
*/
|
|
@@ -1237,6 +1380,20 @@ export declare enum RuntimeType {
|
|
|
1237
1380
|
documentSandbox = "documentSandbox"
|
|
1238
1381
|
}
|
|
1239
1382
|
|
|
1383
|
+
/**
|
|
1384
|
+
* Search Action that can be performed on Editor Panel.
|
|
1385
|
+
*/
|
|
1386
|
+
export declare interface SearchAction extends PanelAction {
|
|
1387
|
+
/**
|
|
1388
|
+
* Search action type.
|
|
1389
|
+
*/
|
|
1390
|
+
type: PanelActionType.search;
|
|
1391
|
+
/**
|
|
1392
|
+
* Query used to perform search action.
|
|
1393
|
+
*/
|
|
1394
|
+
searchString: string;
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1240
1397
|
export declare type SimpleDialogOptions = AlertDialogOptions | InputDialogOptions;
|
|
1241
1398
|
|
|
1242
1399
|
/**
|
|
@@ -1255,6 +1412,13 @@ export declare interface UI {
|
|
|
1255
1412
|
* Supported locales of the application
|
|
1256
1413
|
*/
|
|
1257
1414
|
readonly locales: string[];
|
|
1415
|
+
/**
|
|
1416
|
+
* @experimental - Experimental API
|
|
1417
|
+
* Opens an Editor Panel
|
|
1418
|
+
* @param panel - one of {@link EditorPanel}
|
|
1419
|
+
* @param action - optional action to be performed on the panel {@link PanelAction}
|
|
1420
|
+
*/
|
|
1421
|
+
openEditorPanel(panel: EditorPanel, action?: PanelAction): void;
|
|
1258
1422
|
}
|
|
1259
1423
|
|
|
1260
1424
|
declare type UiTheme = "light" | "dark" | "lightest" | "darkest";
|
|
@@ -1272,6 +1436,12 @@ declare type Unpromisify<P> = P extends Promise<infer T> ? T : P;
|
|
|
1272
1436
|
*/
|
|
1273
1437
|
declare type UnproxyOrClone<T> = T extends RemoteObject<ProxyMarked> ? Local<T> : T;
|
|
1274
1438
|
|
|
1439
|
+
/**
|
|
1440
|
+
* @experimental - Experimental API
|
|
1441
|
+
* Callback to unregister iframe from the add-on SDK.
|
|
1442
|
+
*/
|
|
1443
|
+
declare type UnregisterIframe = () => void;
|
|
1444
|
+
|
|
1275
1445
|
/**
|
|
1276
1446
|
* Types of dialog variants supported.
|
|
1277
1447
|
*/
|
|
@@ -1329,3 +1499,4 @@ export declare enum VideoResolution {
|
|
|
1329
1499
|
}
|
|
1330
1500
|
|
|
1331
1501
|
export {};
|
|
1502
|
+
|