@cesdk/node 1.51.0-nightly.20250505 → 1.51.0-rc.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.
@@ -2025,3 +2025,30 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2025
2025
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2026
2026
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2027
2027
  SOFTWARE.
2028
+
2029
+ ---
2030
+
2031
+ ## Srtparser (https://github.com/saurabhshri/simple-yet-powerful-srt-subtitle-parser-cpp)
2032
+
2033
+ MIT License
2034
+
2035
+ Original work Copyright (c) 2017 Oleksii Maryshchenko
2036
+ Modified work Copyright (c) 2017 Saurabh Shrivastava
2037
+
2038
+ Permission is hereby granted, free of charge, to any person obtaining a copy
2039
+ of this software and associated documentation files (the "Software"), to deal
2040
+ in the Software without restriction, including without limitation the rights
2041
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2042
+ copies of the Software, and to permit persons to whom the Software is
2043
+ furnished to do so, subject to the following conditions:
2044
+
2045
+ The above copyright notice and this permission notice shall be included in all
2046
+ copies or substantial portions of the Software.
2047
+
2048
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2049
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2050
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2051
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2052
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2053
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2054
+ SOFTWARE.
package/index.d.ts CHANGED
@@ -661,6 +661,13 @@ export declare class BlockAPI {
661
661
  * @returns The created fill's handle.
662
662
  */
663
663
  createFill(type: FillType): DesignBlockId;
664
+ /**
665
+ * Creates new caption blocks from the given file.
666
+ * @param uri - The URI for the captions file to load. Supported file formats are: SRT and VTT.
667
+ * @param callback - synchronously called when the captions have been created. Returns a list of caption blocks on
668
+ * @returns The created fill's handle.
669
+ */
670
+ createCaptionsFromURI(uri: string): Promise<DesignBlockId[]>;
664
671
  /**
665
672
  * Get the type of the given block, fails if the block is invalid.
666
673
  * @param id - The block to query.
@@ -3296,7 +3303,7 @@ export declare type DefaultAssetSourceId = 'ly.img.sticker' | 'ly.img.vectorpath
3296
3303
  /**
3297
3304
  * @public
3298
3305
  */
3299
- export declare type DemoAssetSourceId = 'ly.img.template' | 'ly.img.image.upload' | 'ly.img.video.upload' | 'ly.img.audio.upload' | 'ly.img.image' | 'ly.img.video' | 'ly.img.video.template' | 'ly.img.audio';
3306
+ export declare type DemoAssetSourceId = 'ly.img.template' | 'ly.img.image.upload' | 'ly.img.video.upload' | 'ly.img.audio.upload' | 'ly.img.image' | 'ly.img.video' | 'ly.img.video.template' | 'ly.img.audio' | 'ly.img.textComponents';
3300
3307
 
3301
3308
  /**
3302
3309
  * A numerical identifier for a design block