@adobe/ccweb-add-on-sdk-types 1.5.0 → 1.5.1

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.5.0",
3
+ "version": "1.5.1",
4
4
  "author": "Adobe",
5
5
  "license": "MIT",
6
6
  "description": "Type definitions for Adobe Creative Cloud Web Add-on SDK.",
@@ -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 scenende is composited on top of the content rendered below it.
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 stroke is via `Editor.makeColorFill()`.
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.
@@ -467,6 +473,8 @@ declare namespace Constants {
467
473
  RuntimeType,
468
474
  BleedUnit,
469
475
  VideoResolution,
476
+ EditorPanel,
477
+ PanelActionType,
470
478
  AuthorizationStatus
471
479
  };
472
480
  }
@@ -671,6 +679,45 @@ export declare interface DragCompletionData {
671
679
 
672
680
  export declare type DragPreviewCallback = (element: HTMLElement) => URL;
673
681
 
682
+ export declare enum EditorPanel {
683
+ /**
684
+ * Editor search panel
685
+ */
686
+ search = "search",
687
+ /**
688
+ * Editor your stuff panel
689
+ */
690
+ yourStuff = "yourStuff",
691
+ /**
692
+ * Editor templates panel
693
+ */
694
+ templates = "templates",
695
+ /**
696
+ * Editor media panel
697
+ */
698
+ media = "media",
699
+ /**
700
+ * Editor text panel
701
+ */
702
+ text = "text",
703
+ /**
704
+ * Editor elements panel
705
+ */
706
+ elements = "elements",
707
+ /**
708
+ * Editor grids panel
709
+ */
710
+ grids = "grids",
711
+ /**
712
+ * Editor brands panel
713
+ */
714
+ brands = "brands",
715
+ /**
716
+ * Editor addOns panel
717
+ */
718
+ addOns = "addOns"
719
+ }
720
+
674
721
  export declare interface Field {
675
722
  /**
676
723
  * Label
@@ -925,6 +972,23 @@ export declare interface PageRendition extends Rendition {
925
972
  metadata: PageMetadata;
926
973
  }
927
974
 
975
+ /**
976
+ * Represents the action to be performed on opening an Editor panel.
977
+ */
978
+ export declare interface PanelAction {
979
+ /**
980
+ * Type of action to be performed on the Editor panel {@link PanelActionType}.
981
+ */
982
+ type: PanelActionType;
983
+ }
984
+
985
+ export declare enum PanelActionType {
986
+ /**
987
+ * Action type to perform search action on Editor panel.
988
+ */
989
+ search = "search"
990
+ }
991
+
928
992
  /**
929
993
  * Represents a PDF Page box
930
994
  */
@@ -1237,6 +1301,20 @@ export declare enum RuntimeType {
1237
1301
  documentSandbox = "documentSandbox"
1238
1302
  }
1239
1303
 
1304
+ /**
1305
+ * Search Action that can be performed on Editor Panel.
1306
+ */
1307
+ export declare interface SearchAction extends PanelAction {
1308
+ /**
1309
+ * Search action type.
1310
+ */
1311
+ type: PanelActionType.search;
1312
+ /**
1313
+ * Query used to perform search action.
1314
+ */
1315
+ searchString: string;
1316
+ }
1317
+
1240
1318
  export declare type SimpleDialogOptions = AlertDialogOptions | InputDialogOptions;
1241
1319
 
1242
1320
  /**
@@ -1255,6 +1333,13 @@ export declare interface UI {
1255
1333
  * Supported locales of the application
1256
1334
  */
1257
1335
  readonly locales: string[];
1336
+ /**
1337
+ * @experimental - Experimental API
1338
+ * Opens an Editor Panel
1339
+ * @param panel - one of {@link EditorPanel}
1340
+ * @param action - optional action to be performed on the panel {@link PanelAction}
1341
+ */
1342
+ openEditorPanel(panel: EditorPanel, action?: PanelAction): void;
1258
1343
  }
1259
1344
 
1260
1345
  declare type UiTheme = "light" | "dark" | "lightest" | "darkest";
@@ -1272,6 +1357,12 @@ declare type Unpromisify<P> = P extends Promise<infer T> ? T : P;
1272
1357
  */
1273
1358
  declare type UnproxyOrClone<T> = T extends RemoteObject<ProxyMarked> ? Local<T> : T;
1274
1359
 
1360
+ /**
1361
+ * @experimental - Experimental API
1362
+ * Callback to unregister iframe from the add-on SDK.
1363
+ */
1364
+ declare type UnregisterIframe = () => void;
1365
+
1275
1366
  /**
1276
1367
  * Types of dialog variants supported.
1277
1368
  */