@cesdk/node 1.58.0-nightly.20250801 → 1.58.0-nightly.20250808
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.58.0-nightly.20250801-M47XASEH.wasm → cesdk-v1.58.0-nightly.20250808-WWFEDVSJ.wasm} +0 -0
- package/index.d.ts +22 -7
- package/index.js +1 -1
- package/package.json +1 -1
- /package/assets/core/{cesdk-v1.58.0-nightly.20250801-44YCFRT6.data → cesdk-v1.58.0-nightly.20250808-44YCFRT6.data} +0 -0
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -1390,6 +1390,10 @@ export declare class BlockAPI {
|
|
|
1390
1390
|
* @category Block Lifecycle
|
|
1391
1391
|
* @param blocks - The blocks to save.
|
|
1392
1392
|
* @param allowedResourceSchemes - The resource schemes to allow in the saved string. Defaults to ['buffer', 'http', 'https'].
|
|
1393
|
+
* @param onDisallowedResourceScheme - An optional callback that is called for each resource URL that has a scheme absent from
|
|
1394
|
+
* `resourceSchemesAllowed`. The `url` parameter is the resource URL and the `dataHash` parameter is the hash of the
|
|
1395
|
+
* resource's data. The callback should return a new URL for the resource, which will be used in the serialized
|
|
1396
|
+
* scene. The callback is expected to return the original URL if no persistence is needed.
|
|
1393
1397
|
* @returns A promise that resolves to a string representing the blocks or an error.
|
|
1394
1398
|
* @example
|
|
1395
1399
|
* ```typescript
|
|
@@ -1402,7 +1406,7 @@ export declare class BlockAPI {
|
|
|
1402
1406
|
* const serialized = await engine.block.saveToString([page]);
|
|
1403
1407
|
* ```
|
|
1404
1408
|
*/
|
|
1405
|
-
saveToString(blocks: DesignBlockId[], allowedResourceSchemes?: string[]): Promise<string>;
|
|
1409
|
+
saveToString(blocks: DesignBlockId[], allowedResourceSchemes?: string[], onDisallowedResourceScheme?: (url: string, dataHash: string) => Promise<string>): Promise<string>;
|
|
1406
1410
|
/**
|
|
1407
1411
|
* Saves the given blocks and their assets to a zip archive.
|
|
1408
1412
|
*
|
|
@@ -5573,12 +5577,15 @@ export declare class EditorAPI {
|
|
|
5573
5577
|
*
|
|
5574
5578
|
* ```javascript
|
|
5575
5579
|
* engine.editor.setEditMode('Crop');
|
|
5580
|
+
* // With a base mode
|
|
5581
|
+
* engine.editor.setEditMode('CustomMode', 'Crop');
|
|
5576
5582
|
* ```
|
|
5577
5583
|
*
|
|
5578
5584
|
* @category Edit Mode Management
|
|
5579
5585
|
* @param mode - "Transform", "Crop", "Text", "Playback", "Trim" or a custom value.
|
|
5586
|
+
* @param baseMode - Optional base mode from which the custom mode will inherit the settings.
|
|
5580
5587
|
*/
|
|
5581
|
-
setEditMode(mode: EditMode): void;
|
|
5588
|
+
setEditMode(mode: EditMode, baseMode?: string): void;
|
|
5582
5589
|
/**
|
|
5583
5590
|
* Get the editor's current edit mode.
|
|
5584
5591
|
*
|
|
@@ -7043,9 +7050,10 @@ export declare class SceneAPI {
|
|
|
7043
7050
|
*
|
|
7044
7051
|
* @category Scene Loading
|
|
7045
7052
|
* @param sceneContent - The scene file contents, a base64 string.
|
|
7053
|
+
* @param overrideEditorConfig - Whether to override editor configuration with settings and data from the scene file. Defaults to false.
|
|
7046
7054
|
* @returns A handle to the loaded scene.
|
|
7047
7055
|
*/
|
|
7048
|
-
loadFromString(sceneContent: string): Promise<DesignBlockId>;
|
|
7056
|
+
loadFromString(sceneContent: string, overrideEditorConfig?: boolean): Promise<DesignBlockId>;
|
|
7049
7057
|
/**
|
|
7050
7058
|
* Load a scene from the URL to the scene file.
|
|
7051
7059
|
*
|
|
@@ -7058,9 +7066,10 @@ export declare class SceneAPI {
|
|
|
7058
7066
|
*
|
|
7059
7067
|
* @category Scene Loading
|
|
7060
7068
|
* @param url - The URL of the scene file.
|
|
7069
|
+
* @param overrideEditorConfig - Whether to override editor configuration with settings and data from the scene file. Defaults to false.
|
|
7061
7070
|
* @returns scene A promise that resolves once the scene was loaded or rejects with an error otherwise.
|
|
7062
7071
|
*/
|
|
7063
|
-
loadFromURL(url: string): Promise<DesignBlockId>;
|
|
7072
|
+
loadFromURL(url: string, overrideEditorConfig?: boolean): Promise<DesignBlockId>;
|
|
7064
7073
|
/**
|
|
7065
7074
|
* Load a previously archived scene from the URL to the scene file.
|
|
7066
7075
|
*
|
|
@@ -7069,16 +7078,22 @@ export declare class SceneAPI {
|
|
|
7069
7078
|
*
|
|
7070
7079
|
* @category Scene Loading
|
|
7071
7080
|
* @param url - The URL of the scene file.
|
|
7081
|
+
* @param overrideEditorConfig - Whether to override editor configuration with settings and data from the scene file. Defaults to false.
|
|
7072
7082
|
* @returns scene A promise that resolves once the scene was loaded or rejects with an error otherwise.
|
|
7073
7083
|
*/
|
|
7074
|
-
loadFromArchiveURL(url: string): Promise<DesignBlockId>;
|
|
7084
|
+
loadFromArchiveURL(url: string, overrideEditorConfig?: boolean): Promise<DesignBlockId>;
|
|
7075
7085
|
/**
|
|
7076
7086
|
* Serializes the current scene into a string. Selection is discarded.
|
|
7077
7087
|
*
|
|
7078
7088
|
* @category Scene Saving
|
|
7089
|
+
* @param allowedResourceSchemes - The resource schemes to allow in the saved string. Defaults to ['blob', 'bundle', 'file', 'http', 'https', 'opfs'].
|
|
7090
|
+
* @param onDisallowedResourceScheme - An optional callback that is called for each resource URL that has a scheme absent from
|
|
7091
|
+
* `resourceSchemesAllowed`. The `url` parameter is the resource URL and the `dataHash` parameter is the hash of the
|
|
7092
|
+
* resource's data. The callback should return a new URL for the resource, which will be used in the serialized
|
|
7093
|
+
* scene. The callback is expected to return the original URL if no persistence is needed.
|
|
7079
7094
|
* @returns A promise that resolves with a string on success or an error on failure.
|
|
7080
7095
|
*/
|
|
7081
|
-
saveToString(allowedResourceSchemes?: string[]): Promise<string>;
|
|
7096
|
+
saveToString(allowedResourceSchemes?: string[], onDisallowedResourceScheme?: (url: string, dataHash: string) => Promise<string>): Promise<string>;
|
|
7082
7097
|
/**
|
|
7083
7098
|
* Saves the current scene and all of its referenced assets into an archive.
|
|
7084
7099
|
*
|
|
@@ -7606,7 +7621,7 @@ export declare type Scope = 'text/edit' | 'text/character' | 'fill/change' | 'fi
|
|
|
7606
7621
|
*
|
|
7607
7622
|
* @public
|
|
7608
7623
|
*/
|
|
7609
|
-
export declare type SettingsBool = 'controlGizmo/showCropHandles' | 'controlGizmo/showCropScaleHandles' | 'controlGizmo/showMoveHandles' | 'controlGizmo/showResizeHandles' | 'controlGizmo/showRotateHandles' | 'controlGizmo/showScaleHandles' | 'doubleClickToCropEnabled' | 'features/singlePageModeEnabled' | 'features/pageCarouselEnabled' | 'features/transformEditsRetainCoverMode' | 'mouse/enableScroll' | 'mouse/enableZoom' | 'page/allowCropInteraction' | 'page/allowMoveInteraction' | 'page/allowResizeInteraction' | 'page/allowRotateInteraction' | 'page/dimOutOfPageAreas' | 'page/restrictResizeInteractionToFixedAspectRatio' | 'page/moveChildrenWhenCroppingFill' | 'page/
|
|
7624
|
+
export declare type SettingsBool = 'controlGizmo/showCropHandles' | 'controlGizmo/showCropScaleHandles' | 'controlGizmo/showMoveHandles' | 'controlGizmo/showResizeHandles' | 'controlGizmo/showRotateHandles' | 'controlGizmo/showScaleHandles' | 'doubleClickToCropEnabled' | 'features/singlePageModeEnabled' | 'features/pageCarouselEnabled' | 'features/transformEditsRetainCoverMode' | 'mouse/enableScroll' | 'mouse/enableZoom' | 'page/allowCropInteraction' | 'page/allowMoveInteraction' | 'page/allowResizeInteraction' | 'page/allowRotateInteraction' | 'page/dimOutOfPageAreas' | 'page/restrictResizeInteractionToFixedAspectRatio' | 'page/moveChildrenWhenCroppingFill' | 'page/title/appendPageName' | 'page/title/show' | 'page/title/showOnSinglePage' | 'page/title/showPageTitleTemplate' | 'placeholderControls/showButton' | 'placeholderControls/showOverlay' | 'blockAnimations/enabled' | 'showBuildVersion' | 'touch/dragStartCanSelect' | 'touch/singlePointPanning' | 'useSystemFontFallback' | 'forceSystemEmojis';
|
|
7610
7625
|
|
|
7611
7626
|
/**
|
|
7612
7627
|
* Represents the color settings available in the editor.
|