@adobe/ccweb-add-on-sdk-types 1.5.1 → 1.6.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.1",
3
+ "version": "1.6.1",
4
4
  "author": "Adobe",
5
5
  "license": "MIT",
6
6
  "description": "Type definitions for Adobe Creative Cloud Web Add-on SDK.",
@@ -38,14 +38,14 @@
38
38
  "url": "https://github.com/adobe/create-ccweb-add-on"
39
39
  },
40
40
  "dependencies": {
41
- "tslib": "2.4.0",
41
+ "tslib": "2.6.2",
42
42
  "gl-matrix": "3.3.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@types/node": "16.11.62",
45
+ "@types/node": "16.18.36",
46
46
  "prettier": "2.8.0",
47
- "ts-node": "10.9.1",
48
- "typescript": "4.8.4"
47
+ "ts-node": "10.9.2",
48
+ "typescript": "5.4.5"
49
49
  },
50
50
  "scripts": {
51
51
  "clean": "",
@@ -22,6 +22,8 @@
22
22
  * SOFTWARE.
23
23
  ********************************************************************************/
24
24
 
25
+ /// <reference types="gl-matrix/index.js" />
26
+
25
27
  import { mat2d } from "gl-matrix";
26
28
 
27
29
  declare namespace ApiConstants {
package/ui/ui-sdk.d.ts CHANGED
@@ -252,6 +252,11 @@ export declare interface AppThemeChangeEventData {
252
252
  theme: UiTheme;
253
253
  }
254
254
 
255
+ /**
256
+ * Asset collection Id type.
257
+ */
258
+ export declare type AssetCollectionId = `urn:aaid:sc:VA6C2:${string}`;
259
+
255
260
  /**
256
261
  * Request parameters to authorize a user using OAuth 2.0 PKCE based authorization.
257
262
  */
@@ -474,6 +479,8 @@ declare namespace Constants {
474
479
  BleedUnit,
475
480
  VideoResolution,
476
481
  EditorPanel,
482
+ MediaTabs,
483
+ ElementsTabs,
477
484
  PanelActionType,
478
485
  AuthorizationStatus
479
486
  };
@@ -614,6 +621,7 @@ declare interface Document_2 {
614
621
  * Add audio to the current page
615
622
  */
616
623
  addAudio(blob: Blob, attributes: MediaAttributes): Promise<void>;
624
+
617
625
  /**
618
626
  * Create renditions
619
627
  */
@@ -679,6 +687,9 @@ export declare interface DragCompletionData {
679
687
 
680
688
  export declare type DragPreviewCallback = (element: HTMLElement) => URL;
681
689
 
690
+ /**
691
+ * Express editor panels.
692
+ */
682
693
  export declare enum EditorPanel {
683
694
  /**
684
695
  * Editor search panel
@@ -718,6 +729,32 @@ export declare enum EditorPanel {
718
729
  addOns = "addOns"
719
730
  }
720
731
 
732
+ /**
733
+ * Tabs in editor Elements panel.
734
+ */
735
+ export declare enum ElementsTabs {
736
+ /**
737
+ * Design assets tab.
738
+ */
739
+ designAssets = "designAssets",
740
+ /**
741
+ * Backgrounds tab.
742
+ */
743
+ backgrounds = "backgrounds",
744
+ /**
745
+ * Shapes assets tab.
746
+ */
747
+ shapes = "shapes",
748
+ /**
749
+ * Icons tab.
750
+ */
751
+ stockIcons = "stockIcons",
752
+ /**
753
+ * Charts tab.
754
+ */
755
+ charts = "charts"
756
+ }
757
+
721
758
  export declare interface Field {
722
759
  /**
723
760
  * Label
@@ -870,6 +907,28 @@ export declare interface MediaAttributes {
870
907
  * Media title
871
908
  */
872
909
  title: string;
910
+ /**
911
+ * Media author
912
+ */
913
+ author?: string;
914
+ }
915
+
916
+ /**
917
+ * Tabs in editor media panel.
918
+ */
919
+ export declare enum MediaTabs {
920
+ /**
921
+ * Video tab.
922
+ */
923
+ video = "video",
924
+ /**
925
+ * Audio tab.
926
+ */
927
+ audio = "audio",
928
+ /**
929
+ * Photos tab.
930
+ */
931
+ photos = "photos"
873
932
  }
874
933
 
875
934
  export declare interface Mp4RenditionOptions extends RenditionOptions {
@@ -887,6 +946,24 @@ export declare interface Mp4RenditionOptions extends RenditionOptions {
887
946
  customResolution?: number;
888
947
  }
889
948
 
949
+ /**
950
+ * Navigation action that can be performed on Editor panels.
951
+ */
952
+ export declare interface NavigateAction extends PanelAction {
953
+ /**
954
+ * Navigate to collection action type.
955
+ */
956
+ type: PanelActionType.navigate;
957
+ /**
958
+ *
959
+ */
960
+ tab?: ElementsTabs | MediaTabs;
961
+ /**
962
+ * collectionId of the asset collection to navigate to.
963
+ */
964
+ collectionId?: AssetCollectionId;
965
+ }
966
+
890
967
  /**
891
968
  * OAuth 2.0 middleware for handling user sign-in.
892
969
  */
@@ -982,11 +1059,18 @@ export declare interface PanelAction {
982
1059
  type: PanelActionType;
983
1060
  }
984
1061
 
1062
+ /**
1063
+ * Types of actions that can be performed on Editor panels.
1064
+ */
985
1065
  export declare enum PanelActionType {
986
1066
  /**
987
1067
  * Action type to perform search action on Editor panel.
988
1068
  */
989
- search = "search"
1069
+ search = "search",
1070
+ /**
1071
+ * Action type to perform navigation within Editor panel.
1072
+ */
1073
+ navigate = "navigate"
990
1074
  }
991
1075
 
992
1076
  /**