@adobe/premierepro 26.5.0-beta.3 → 26.5.0-beta.8

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/premierepro",
3
- "version": "26.5.0-beta.3",
3
+ "version": "26.5.0-beta.8",
4
4
  "description": "The TypeScript definitions and declarations for UXP APIs in Premiere",
5
5
  "license": "Apache-2.0",
6
6
  "bugs": {
@@ -40,6 +40,7 @@ export declare type premierepro = {
40
40
  Marker: MarkerStatic;
41
41
  Markers: MarkersStatic;
42
42
  Media: Media;
43
+ MediaManager: MediaManagerStatic;
43
44
  Metadata: MetadataStatic;
44
45
  ObjectMaskUtils: ObjectMaskUtilsStatic;
45
46
  OpenProjectOptions: OpenProjectOptions;
@@ -837,7 +838,7 @@ export declare type ClipProjectItem = {
837
838
  changeMediaFilePath(newPath: string, overrideCompatibilityCheck?: boolean): Promise<boolean>;
838
839
 
839
840
  /**
840
- * Returns a deferred Action that creates a subclip when committed inside a transaction. hasHardBoundaries: if true, prevents trimming beyond the subclip boundaries. Accepts additional options (defaults to true): { takeVideo?: boolean, takeAudio?: boolean }.
841
+ * Returns a deferred Action that creates a subclip when committed inside a transaction. hasHardBoundaries: if true, prevents trimming beyond the subclip boundaries. Takes additional options (defaulting to true).
841
842
  *
842
843
  * @param name
843
844
  * @param startTime
@@ -850,7 +851,7 @@ export declare type ClipProjectItem = {
850
851
  startTime: TickTime,
851
852
  endTime: TickTime,
852
853
  hasHardBoundaries: boolean,
853
- options?: object
854
+ options?: { takeVideo?: boolean; takeAudio?: boolean }
854
855
  ): Action;
855
856
 
856
857
  /**
@@ -927,11 +928,13 @@ export declare type ClipProjectItem = {
927
928
  getMediaFilePath(): Promise<string>;
928
929
 
929
930
  /**
930
- * Get the media file path of the Project item.
931
+ * Get the component chain of the Project item for the given media type.
931
932
  *
932
- * @param mediaType Media type can be audio, video or data/caption
933
+ * @param mediaType Media type can be audio or video
933
934
  */
934
- getComponentChain(mediaType: Constants.MediaType): Promise<string>;
935
+ getComponentChain(
936
+ mediaType: Constants.MediaType
937
+ ): Promise<AudioComponentChain | VideoComponentChain | null>;
935
938
 
936
939
  /**
937
940
  * Returns an action which Sets the in point of the Project item
@@ -2042,6 +2045,15 @@ export declare type Media = {
2042
2045
  readonly duration: TickTime;
2043
2046
  };
2044
2047
 
2048
+ export declare type MediaManagerStatic = {
2049
+ /**
2050
+ * Flush the media cache.
2051
+ */
2052
+ purgeMediaCache(): Promise<boolean>;
2053
+ };
2054
+
2055
+ export declare type MediaManager = {};
2056
+
2045
2057
  export declare type MetadataStatic = {
2046
2058
  /**
2047
2059
  * Get project metadata