@cesdk/node 1.58.0-nightly.20250730 → 1.58.0-nightly.20250807
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.20250730-VXMJF7R5.wasm → cesdk-v1.58.0-nightly.20250807-XUMPARPM.wasm} +0 -0
- package/index.d.ts +17 -63
- package/index.js +1 -1
- package/package.json +1 -1
- /package/assets/core/{cesdk-v1.58.0-nightly.20250730-44YCFRT6.data → cesdk-v1.58.0-nightly.20250807-44YCFRT6.data} +0 -0
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -1018,7 +1018,6 @@ export declare type AssetTransformPreset = AssetFixedAspectRatio | AssetFreeAspe
|
|
|
1018
1018
|
/**
|
|
1019
1019
|
* Represents the options for exporting audio.
|
|
1020
1020
|
*
|
|
1021
|
-
* @categoryDescription Audio Export Options
|
|
1022
1021
|
* Defines the possible options for exporting audio.
|
|
1023
1022
|
* - 'mimeType': The MIME type of the output audio file.
|
|
1024
1023
|
* - 'onProgress': A callback which reports on the progress of the export.
|
|
@@ -1391,6 +1390,10 @@ export declare class BlockAPI {
|
|
|
1391
1390
|
* @category Block Lifecycle
|
|
1392
1391
|
* @param blocks - The blocks to save.
|
|
1393
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.
|
|
1394
1397
|
* @returns A promise that resolves to a string representing the blocks or an error.
|
|
1395
1398
|
* @example
|
|
1396
1399
|
* ```typescript
|
|
@@ -1403,7 +1406,7 @@ export declare class BlockAPI {
|
|
|
1403
1406
|
* const serialized = await engine.block.saveToString([page]);
|
|
1404
1407
|
* ```
|
|
1405
1408
|
*/
|
|
1406
|
-
saveToString(blocks: DesignBlockId[], allowedResourceSchemes?: string[]): Promise<string>;
|
|
1409
|
+
saveToString(blocks: DesignBlockId[], allowedResourceSchemes?: string[], onDisallowedResourceScheme?: (url: string, dataHash: string) => Promise<string>): Promise<string>;
|
|
1407
1410
|
/**
|
|
1408
1411
|
* Saves the given blocks and their assets to a zip archive.
|
|
1409
1412
|
*
|
|
@@ -5018,9 +5021,6 @@ export declare class BlockAPI {
|
|
|
5018
5021
|
* The `BlockEvent` interface provides a set of properties that describe an event related to
|
|
5019
5022
|
* a design block, including the block ID and the type of event.
|
|
5020
5023
|
*
|
|
5021
|
-
* @categoryDescription BlockEvent
|
|
5022
|
-
* Methods for working with events related to design blocks.
|
|
5023
|
-
*
|
|
5024
5024
|
* @public
|
|
5025
5025
|
*/
|
|
5026
5026
|
export declare interface BlockEvent {
|
|
@@ -5047,9 +5047,6 @@ export declare type BlockState = BlockStateError | BlockStatePending | BlockStat
|
|
|
5047
5047
|
* The `BlockStateError` interface provides a set of properties that describe an error state
|
|
5048
5048
|
* for a design block, including the type of error and a description of the error.
|
|
5049
5049
|
*
|
|
5050
|
-
* @categoryDescription BlockStateError
|
|
5051
|
-
* Methods for working with error states for design blocks.
|
|
5052
|
-
*
|
|
5053
5050
|
* @public
|
|
5054
5051
|
*/
|
|
5055
5052
|
export declare interface BlockStateError {
|
|
@@ -5063,9 +5060,6 @@ export declare interface BlockStateError {
|
|
|
5063
5060
|
* The `BlockStatePending` interface provides a set of properties that describe a pending
|
|
5064
5061
|
* state for a design block, including the type of state and the progress of the operation.
|
|
5065
5062
|
*
|
|
5066
|
-
* @categoryDescription BlockStatePending
|
|
5067
|
-
* Methods for working with pending states for design blocks.
|
|
5068
|
-
*
|
|
5069
5063
|
* @public
|
|
5070
5064
|
*/
|
|
5071
5065
|
export declare interface BlockStatePending {
|
|
@@ -5080,9 +5074,6 @@ export declare interface BlockStatePending {
|
|
|
5080
5074
|
* The `BlockStateReady` interface provides a set of properties that describe a ready state
|
|
5081
5075
|
* for a design block, including the type of state.
|
|
5082
5076
|
*
|
|
5083
|
-
* @categoryDescription BlockStateReady
|
|
5084
|
-
* Methods for working with ready states for design blocks.
|
|
5085
|
-
*
|
|
5086
5077
|
* @public
|
|
5087
5078
|
*/
|
|
5088
5079
|
export declare interface BlockStateReady {
|
|
@@ -5114,7 +5105,6 @@ export declare type BlurTypeShorthand = 'uniform' | 'linear' | 'mirrored' | 'rad
|
|
|
5114
5105
|
/**
|
|
5115
5106
|
* Represents the names of boolean operations.
|
|
5116
5107
|
*
|
|
5117
|
-
* @categoryDescription Boolean Operation
|
|
5118
5108
|
* Defines the possible boolean operations.
|
|
5119
5109
|
* - 'Difference': The difference between two shapes.
|
|
5120
5110
|
* - 'Intersection': The intersection of two shapes.
|
|
@@ -5131,9 +5121,6 @@ export declare type BooleanOperation = 'Difference' | 'Intersection' | 'Union' |
|
|
|
5131
5121
|
* The `Buffer` interface provides a set of properties that describe a buffer of data,
|
|
5132
5122
|
* including a handle and the buffer itself.
|
|
5133
5123
|
*
|
|
5134
|
-
* @categoryDescription Buffer
|
|
5135
|
-
* Methods for working with buffers of data.
|
|
5136
|
-
*
|
|
5137
5124
|
* @public
|
|
5138
5125
|
*/
|
|
5139
5126
|
declare interface Buffer_2 {
|
|
@@ -5158,7 +5145,6 @@ export declare type CMYK = [c: number, m: number, y: number, k: number];
|
|
|
5158
5145
|
/**
|
|
5159
5146
|
* Represents a CMYK color value.
|
|
5160
5147
|
*
|
|
5161
|
-
* @categoryDescription CMYK Color
|
|
5162
5148
|
* Defines a CMYK color value with components between 0 and 1.
|
|
5163
5149
|
* - 'c': The cyan component.
|
|
5164
5150
|
* - 'm': The magenta component.
|
|
@@ -5233,9 +5219,6 @@ export declare interface CompleteAssetResult extends AssetResult {
|
|
|
5233
5219
|
* user ID, core settings, logger, feature flags, presets, force WebGL1, audio output,
|
|
5234
5220
|
* and role.
|
|
5235
5221
|
*
|
|
5236
|
-
* @categoryDescription Configuration
|
|
5237
|
-
* Methods for configuring the settings of the Creative Editor SDK.
|
|
5238
|
-
*
|
|
5239
5222
|
* @public
|
|
5240
5223
|
*/
|
|
5241
5224
|
export declare interface Configuration {
|
|
@@ -5315,15 +5298,6 @@ export declare type CreateSceneOptions = {
|
|
|
5315
5298
|
* It provides APIs to directly interact with assets, blocks, scenes, and variables. These APIs can be used in a headless environment
|
|
5316
5299
|
* to build and manipulate designs programmatically, or in a browser to create interactive applications.
|
|
5317
5300
|
*
|
|
5318
|
-
* @categoryDescription Core APIs
|
|
5319
|
-
* Primary interfaces for working with assets, blocks, scenes, variables, editing, and events.
|
|
5320
|
-
*
|
|
5321
|
-
* @categoryDescription Engine Management
|
|
5322
|
-
* Methods for initializing, configuring, and managing the engine lifecycle.
|
|
5323
|
-
*
|
|
5324
|
-
* @categoryDescription Asset Sources
|
|
5325
|
-
* Methods for adding default and demo asset sources to the engine.
|
|
5326
|
-
*
|
|
5327
5301
|
* @public
|
|
5328
5302
|
*/
|
|
5329
5303
|
declare class CreativeEngine {
|
|
@@ -6343,7 +6317,6 @@ export declare type EffectTypeShorthand = 'adjustments' | 'cross_cut' | 'dot_pat
|
|
|
6343
6317
|
/**
|
|
6344
6318
|
* Represents an engine plugin.
|
|
6345
6319
|
*
|
|
6346
|
-
* @categoryDescription Engine Plugin
|
|
6347
6320
|
* Defines the structure of an engine plugin, including its name, version, and initialization function.
|
|
6348
6321
|
* - 'name': The name of the plugin.
|
|
6349
6322
|
* - 'version': The version of the plugin.
|
|
@@ -6360,7 +6333,6 @@ export declare interface EnginePlugin {
|
|
|
6360
6333
|
/**
|
|
6361
6334
|
* Represents the context for an engine plugin.
|
|
6362
6335
|
*
|
|
6363
|
-
* @categoryDescription Engine Plugin Context
|
|
6364
6336
|
* Defines the context provided to an engine plugin, including APIs for assets, blocks, scenes, editor, events, and variables.
|
|
6365
6337
|
* - 'engine': The engine instance containing APIs for asset, block, scene, editor, event, and variable management.
|
|
6366
6338
|
*
|
|
@@ -6422,7 +6394,6 @@ declare interface ExportAudioOptions {
|
|
|
6422
6394
|
/**
|
|
6423
6395
|
* Represents the options for exporting a design block.
|
|
6424
6396
|
*
|
|
6425
|
-
* @categoryDescription Export Options
|
|
6426
6397
|
* Defines the possible options for exporting a design block.
|
|
6427
6398
|
* - 'mimeType': The MIME type of the output file.
|
|
6428
6399
|
* - 'pngCompressionLevel': The PNG compression level to use, when exporting to PNG.
|
|
@@ -6516,9 +6487,6 @@ export declare type ExportOptions = {
|
|
|
6516
6487
|
* for JPEG, WebP, PNG, and PDF exports, as well as options for resizing and
|
|
6517
6488
|
* adding underlayers.
|
|
6518
6489
|
*
|
|
6519
|
-
* @categoryDescription Export Options
|
|
6520
|
-
* Methods for configuring export settings for design blocks.
|
|
6521
|
-
*
|
|
6522
6490
|
* @public
|
|
6523
6491
|
*/
|
|
6524
6492
|
declare interface ExportOptions_2 {
|
|
@@ -6627,9 +6595,6 @@ declare interface Flip {
|
|
|
6627
6595
|
* The Font interface defines the structure of a font within the Creative Editor SDK.
|
|
6628
6596
|
* It includes properties for the uri, subFamily, weight, and style.
|
|
6629
6597
|
*
|
|
6630
|
-
* @categoryDescription Fonts
|
|
6631
|
-
* Methods for managing fonts within the editor.
|
|
6632
|
-
*
|
|
6633
6598
|
* @public
|
|
6634
6599
|
*/
|
|
6635
6600
|
export declare interface Font {
|
|
@@ -6645,9 +6610,6 @@ export declare interface Font {
|
|
|
6645
6610
|
* The FontStyle type defines the possible styles of a font within the Creative Editor SDK.
|
|
6646
6611
|
* Each style corresponds to a different appearance, allowing for flexibility in how fonts are styled.
|
|
6647
6612
|
*
|
|
6648
|
-
* @categoryDescription Fonts
|
|
6649
|
-
* Methods for managing font styles within the editor.
|
|
6650
|
-
*
|
|
6651
6613
|
* @public
|
|
6652
6614
|
*/
|
|
6653
6615
|
export declare type FontStyle = 'normal' | 'italic';
|
|
@@ -6658,9 +6620,6 @@ export declare type FontStyle = 'normal' | 'italic';
|
|
|
6658
6620
|
* The FontWeight type defines the possible weights of a font within the Creative Editor SDK.
|
|
6659
6621
|
* Each weight corresponds to a different thickness, allowing for flexibility in how fonts are styled.
|
|
6660
6622
|
*
|
|
6661
|
-
* @categoryDescription Fonts
|
|
6662
|
-
* Methods for managing font weights within the editor.
|
|
6663
|
-
*
|
|
6664
6623
|
* @public
|
|
6665
6624
|
*/
|
|
6666
6625
|
export declare type FontWeight = 'thin' | 'extraLight' | 'light' | 'normal' | 'medium' | 'semiBold' | 'bold' | 'extraBold' | 'heavy';
|
|
@@ -6668,7 +6627,6 @@ export declare type FontWeight = 'thin' | 'extraLight' | 'light' | 'normal' | 'm
|
|
|
6668
6627
|
/**
|
|
6669
6628
|
* Represents a gradient color stop.
|
|
6670
6629
|
*
|
|
6671
|
-
* @categoryDescription Gradient Color Stop
|
|
6672
6630
|
* Defines a gradient color stop with a color and a stop position.
|
|
6673
6631
|
* - 'color': The color value.
|
|
6674
6632
|
* - 'stop': The relative position of the color within the gradient in the range [0, 1].
|
|
@@ -6989,7 +6947,6 @@ export declare type RGBA = [r: number, g: number, b: number, a: number];
|
|
|
6989
6947
|
/**
|
|
6990
6948
|
* Represents an RGBA color value.
|
|
6991
6949
|
*
|
|
6992
|
-
* @categoryDescription RGBA Color
|
|
6993
6950
|
* Defines an RGBA color value with components between 0 and 1.
|
|
6994
6951
|
* - 'r': The red component.
|
|
6995
6952
|
* - 'g': The green component.
|
|
@@ -7012,7 +6969,6 @@ export declare interface RGBAColor {
|
|
|
7012
6969
|
/**
|
|
7013
6970
|
* Represents an RGB color value.
|
|
7014
6971
|
*
|
|
7015
|
-
* @categoryDescription RGB Color
|
|
7016
6972
|
* Defines an RGB color value with components between 0 and 1.
|
|
7017
6973
|
* - 'r': The red component.
|
|
7018
6974
|
* - 'g': The green component.
|
|
@@ -7091,9 +7047,10 @@ export declare class SceneAPI {
|
|
|
7091
7047
|
*
|
|
7092
7048
|
* @category Scene Loading
|
|
7093
7049
|
* @param sceneContent - The scene file contents, a base64 string.
|
|
7050
|
+
* @param overrideEditorConfig - Whether to override editor configuration with settings and data from the scene file. Defaults to false.
|
|
7094
7051
|
* @returns A handle to the loaded scene.
|
|
7095
7052
|
*/
|
|
7096
|
-
loadFromString(sceneContent: string): Promise<DesignBlockId>;
|
|
7053
|
+
loadFromString(sceneContent: string, overrideEditorConfig?: boolean): Promise<DesignBlockId>;
|
|
7097
7054
|
/**
|
|
7098
7055
|
* Load a scene from the URL to the scene file.
|
|
7099
7056
|
*
|
|
@@ -7106,9 +7063,10 @@ export declare class SceneAPI {
|
|
|
7106
7063
|
*
|
|
7107
7064
|
* @category Scene Loading
|
|
7108
7065
|
* @param url - The URL of the scene file.
|
|
7066
|
+
* @param overrideEditorConfig - Whether to override editor configuration with settings and data from the scene file. Defaults to false.
|
|
7109
7067
|
* @returns scene A promise that resolves once the scene was loaded or rejects with an error otherwise.
|
|
7110
7068
|
*/
|
|
7111
|
-
loadFromURL(url: string): Promise<DesignBlockId>;
|
|
7069
|
+
loadFromURL(url: string, overrideEditorConfig?: boolean): Promise<DesignBlockId>;
|
|
7112
7070
|
/**
|
|
7113
7071
|
* Load a previously archived scene from the URL to the scene file.
|
|
7114
7072
|
*
|
|
@@ -7117,16 +7075,22 @@ export declare class SceneAPI {
|
|
|
7117
7075
|
*
|
|
7118
7076
|
* @category Scene Loading
|
|
7119
7077
|
* @param url - The URL of the scene file.
|
|
7078
|
+
* @param overrideEditorConfig - Whether to override editor configuration with settings and data from the scene file. Defaults to false.
|
|
7120
7079
|
* @returns scene A promise that resolves once the scene was loaded or rejects with an error otherwise.
|
|
7121
7080
|
*/
|
|
7122
|
-
loadFromArchiveURL(url: string): Promise<DesignBlockId>;
|
|
7081
|
+
loadFromArchiveURL(url: string, overrideEditorConfig?: boolean): Promise<DesignBlockId>;
|
|
7123
7082
|
/**
|
|
7124
7083
|
* Serializes the current scene into a string. Selection is discarded.
|
|
7125
7084
|
*
|
|
7126
7085
|
* @category Scene Saving
|
|
7086
|
+
* @param allowedResourceSchemes - The resource schemes to allow in the saved string. Defaults to ['blob', 'bundle', 'file', 'http', 'https', 'opfs'].
|
|
7087
|
+
* @param onDisallowedResourceScheme - An optional callback that is called for each resource URL that has a scheme absent from
|
|
7088
|
+
* `resourceSchemesAllowed`. The `url` parameter is the resource URL and the `dataHash` parameter is the hash of the
|
|
7089
|
+
* resource's data. The callback should return a new URL for the resource, which will be used in the serialized
|
|
7090
|
+
* scene. The callback is expected to return the original URL if no persistence is needed.
|
|
7127
7091
|
* @returns A promise that resolves with a string on success or an error on failure.
|
|
7128
7092
|
*/
|
|
7129
|
-
saveToString(allowedResourceSchemes?: string[]): Promise<string>;
|
|
7093
|
+
saveToString(allowedResourceSchemes?: string[], onDisallowedResourceScheme?: (url: string, dataHash: string) => Promise<string>): Promise<string>;
|
|
7130
7094
|
/**
|
|
7131
7095
|
* Saves the current scene and all of its referenced assets into an archive.
|
|
7132
7096
|
*
|
|
@@ -7714,7 +7678,6 @@ export declare type SettingsColorRGBA = SettingsColor;
|
|
|
7714
7678
|
/**
|
|
7715
7679
|
* Represents the enum settings available in the editor.
|
|
7716
7680
|
*
|
|
7717
|
-
* @categoryDescription Enum Settings
|
|
7718
7681
|
* Defines the possible enum settings in the editor.
|
|
7719
7682
|
* - 'doubleClickSelectionMode': The mode for double-click selection.
|
|
7720
7683
|
* - 'touch/pinchAction': The action for pinch gestures.
|
|
@@ -7838,7 +7801,6 @@ export declare interface Source {
|
|
|
7838
7801
|
/**
|
|
7839
7802
|
* Represents a spot color value.
|
|
7840
7803
|
*
|
|
7841
|
-
* @categoryDescription Spot Color
|
|
7842
7804
|
* Defines a spot color value with a name, tint, and external reference.
|
|
7843
7805
|
* - 'name': The name of the spot color.
|
|
7844
7806
|
* - 'tint': The tint factor.
|
|
@@ -7926,9 +7888,6 @@ export declare type TextCase = 'Normal' | 'Uppercase' | 'Lowercase' | 'Titlecase
|
|
|
7926
7888
|
* The `TransientResource` interface provides a set of properties that describe a transient
|
|
7927
7889
|
* resource, including a URI and the size of the resource.
|
|
7928
7890
|
*
|
|
7929
|
-
* @categoryDescription TransientResource
|
|
7930
|
-
* Methods for working with transient resources.
|
|
7931
|
-
*
|
|
7932
7891
|
* @public
|
|
7933
7892
|
*/
|
|
7934
7893
|
export declare interface TransientResource {
|
|
@@ -7942,9 +7901,6 @@ export declare interface TransientResource {
|
|
|
7942
7901
|
* The Typeface interface defines the structure of a typeface within the Creative Editor SDK.
|
|
7943
7902
|
* It includes properties for the name and fonts.
|
|
7944
7903
|
*
|
|
7945
|
-
* @categoryDescription Fonts
|
|
7946
|
-
* Methods for managing typefaces within the editor.
|
|
7947
|
-
*
|
|
7948
7904
|
* @public
|
|
7949
7905
|
*/
|
|
7950
7906
|
export declare interface Typeface {
|
|
@@ -7959,7 +7915,6 @@ export declare interface Typeface {
|
|
|
7959
7915
|
*
|
|
7960
7916
|
* @deprecated This type definition is not used anymore and will be removed.
|
|
7961
7917
|
*
|
|
7962
|
-
* @categoryDescription Typeface Definition
|
|
7963
7918
|
* Defines the structure of a typeface definition, including metadata, family name, and font details.
|
|
7964
7919
|
* - 'meta': Optional metadata for the typeface, including default status, library, and categories.
|
|
7965
7920
|
* - 'family': The name of the typeface family.
|
|
@@ -8071,7 +8026,6 @@ export declare type VerticalTextAlignment = 'Top' | 'Bottom' | 'Center';
|
|
|
8071
8026
|
/**
|
|
8072
8027
|
* Represents the options for exporting a video.
|
|
8073
8028
|
*
|
|
8074
|
-
* @categoryDescription Video Export Options
|
|
8075
8029
|
* Defines the possible options for exporting a video.
|
|
8076
8030
|
* - 'mimeType': The MIME type of the output video file.
|
|
8077
8031
|
* - 'onProgress': A callback which reports on the progress of the export.
|