@cesdk/node 1.67.0-nightly.20260105 → 1.67.0-nightly.20260107
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/assets/core/{cesdk-v1.67.0-nightly.20260105-JHQHC4GC.wasm → cesdk-v1.67.0-nightly.20260107-U2TL62KE.wasm} +0 -0
- package/index.d.ts +24 -3
- package/index.js +1 -1
- package/package.json +1 -1
- /package/assets/core/{cesdk-v1.67.0-nightly.20260105-44YCFRT6.data → cesdk-v1.67.0-nightly.20260107-44YCFRT6.data} +0 -0
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -434,13 +434,13 @@ export declare class AssetAPI {
|
|
|
434
434
|
* ```javascript
|
|
435
435
|
* // Load all audio assets from IMG.LY's CDN
|
|
436
436
|
* const sourceId = await engine.asset.addLocalAssetSourceFromJSONURI(
|
|
437
|
-
* 'https://cdn.img.ly/assets/demo/
|
|
437
|
+
* 'https://cdn.img.ly/assets/demo/v3/ly.img.audio/content.json'
|
|
438
438
|
* );
|
|
439
439
|
* console.log('Loaded asset source:', sourceId); // "ly.img.audio"
|
|
440
440
|
*
|
|
441
441
|
* // Load only assets matching one of the patterns
|
|
442
442
|
* const sourceId2 = await engine.asset.addLocalAssetSourceFromJSONURI(
|
|
443
|
-
* 'https://cdn.img.ly/assets/demo/
|
|
443
|
+
* 'https://cdn.img.ly/assets/demo/v3/ly.img.image/content.json',
|
|
444
444
|
* { matcher: ['image-portrait-*', 'image-landscape-*'] }
|
|
445
445
|
* );
|
|
446
446
|
* ```
|
|
@@ -1598,6 +1598,25 @@ export declare class BlockAPI {
|
|
|
1598
1598
|
* ```
|
|
1599
1599
|
*/
|
|
1600
1600
|
loadFromArchiveURL(url: string): Promise<DesignBlockId[]>;
|
|
1601
|
+
/**
|
|
1602
|
+
* Loads blocks from a URL.
|
|
1603
|
+
*
|
|
1604
|
+
* The URL should point to a blocks file within an unzipped archive directory previously saved with `block.saveToArchive`.
|
|
1605
|
+
* The blocks are not attached by default and won't be visible until attached to a page or the scene.
|
|
1606
|
+
* The UUID of the loaded blocks is replaced with a new one.
|
|
1607
|
+
*
|
|
1608
|
+
* @category Block Lifecycle
|
|
1609
|
+
* @param url - The URL to the blocks file
|
|
1610
|
+
* @returns A promise that resolves with a list of block handles
|
|
1611
|
+
* @example
|
|
1612
|
+
* ```typescript
|
|
1613
|
+
* // Load blocks from a URL
|
|
1614
|
+
* const loadedBlocks = await engine.block.loadFromURL('https://example.com/blocks.blocks');
|
|
1615
|
+
* // Attach the first loaded block to the scene
|
|
1616
|
+
* engine.block.appendChild(sceneBlockId, loadedBlocks[0]);
|
|
1617
|
+
* ```
|
|
1618
|
+
*/
|
|
1619
|
+
loadFromURL(url: string): Promise<DesignBlockId[]>;
|
|
1601
1620
|
/**
|
|
1602
1621
|
* Saves the given blocks to a serialized string.
|
|
1603
1622
|
*
|
|
@@ -1655,7 +1674,7 @@ export declare class BlockAPI {
|
|
|
1655
1674
|
* const video = engine.block.create('graphic');
|
|
1656
1675
|
* engine.block.setShape(video, engine.block.createShape('rect'));
|
|
1657
1676
|
* const videoFill = engine.block.createFill('video');
|
|
1658
|
-
* engine.block.setString(videoFill, 'fill/video/fileURI', 'https://cdn.img.ly/assets/demo/
|
|
1677
|
+
* engine.block.setString(videoFill, 'fill/video/fileURI', 'https://cdn.img.ly/assets/demo/v3/ly.img.video/videos/pexels-drone-footage-of-a-surfer-barrelling-a-wave-12715991.mp4');
|
|
1659
1678
|
* engine.block.setFill(video, videoFill);
|
|
1660
1679
|
* engine.block.appendChild(page, video);
|
|
1661
1680
|
* ```
|
|
@@ -8282,6 +8301,8 @@ export declare interface Settings {
|
|
|
8282
8301
|
doubleClickToCropEnabled: boolean;
|
|
8283
8302
|
/** Enable single page mode where only one page is shown at a time. */
|
|
8284
8303
|
'features/singlePageModeEnabled': boolean;
|
|
8304
|
+
/** Enable file system usage, that allows the engine to use the file system to store files for local uploads. */
|
|
8305
|
+
'features/fileSystemUsageEnabled': boolean;
|
|
8285
8306
|
/** Enable the page carousel for navigating between pages. */
|
|
8286
8307
|
'features/pageCarouselEnabled': boolean;
|
|
8287
8308
|
/** Whether transform edits should retain the cover mode of the content. */
|