@cesdk/cesdk-js 1.69.0-rc.0 → 1.69.0-rc.2
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/README.md +1 -1
- package/assets/core/{cesdk-v1.69.0-rc.0-Z7VHXEOO.wasm → cesdk-v1.69.0-rc.2-7VYRBN2U.wasm} +0 -0
- package/assets/core/{worker-host-v1.69.0-rc.0.js → worker-host-v1.69.0-rc.2.js} +1 -1
- package/cesdk.umd.js +1 -1
- package/index.d.ts +79 -0
- package/index.html +1 -1
- package/index.js +1 -1
- package/integrations/react.d.ts +182 -0
- package/integrations/react.js +1 -0
- package/package.json +2 -2
- package/react/index.d.ts +2 -2
- package/vue/index.d.ts +2 -2
- /package/assets/core/{cesdk-v1.69.0-rc.0-MLEZSZ4D.data → cesdk-v1.69.0-rc.2-MLEZSZ4D.data} +0 -0
package/index.d.ts
CHANGED
|
@@ -2808,12 +2808,14 @@ declare class CreativeEditorSDK {
|
|
|
2808
2808
|
}>;
|
|
2809
2809
|
/**
|
|
2810
2810
|
* Create a scene with a single empty page with the given format.
|
|
2811
|
+
* @deprecated Use `cesdk.actions.run('scene.create', { mode: 'Design' })` instead.
|
|
2811
2812
|
* @category Scene Creation
|
|
2812
2813
|
* @param format - A `PageFormatDefinition` object specifying the page format to use.
|
|
2813
2814
|
*/
|
|
2814
2815
|
createDesignScene(format?: PageFormatDefinition): Promise<number>;
|
|
2815
2816
|
/**
|
|
2816
2817
|
* Create a scene with a single empty page with the given format.
|
|
2818
|
+
* @deprecated Use `cesdk.actions.run('scene.create', { mode: 'Video' })` instead.
|
|
2817
2819
|
* @category Scene Creation
|
|
2818
2820
|
* @param format - The page format to use. Can be either a string, identifying
|
|
2819
2821
|
* a page format that has been configured or a `PageFormatDefinition` object.
|
|
@@ -2914,6 +2916,22 @@ declare class CreativeEditorSDK {
|
|
|
2914
2916
|
* @category Configuration
|
|
2915
2917
|
*/
|
|
2916
2918
|
resetEditor(): void;
|
|
2919
|
+
/**
|
|
2920
|
+
* Re-applies the user's initial deprecated configuration that was passed to
|
|
2921
|
+
* `CreativeEditorSDK.create()`. This restores deprecated configuration
|
|
2922
|
+
* values that may have been cleared by `resetEditor()`.
|
|
2923
|
+
*
|
|
2924
|
+
* Config plugins should call this as the last step of their `initialize()`
|
|
2925
|
+
* method, after all features, UI, actions, and settings have been set up.
|
|
2926
|
+
*
|
|
2927
|
+
* @deprecated This method is an intermediate measure to preserve backward
|
|
2928
|
+
* compatibility while users migrate away from deprecated configuration
|
|
2929
|
+
* options. It will be removed once the deprecated configuration paths
|
|
2930
|
+
* are fully dropped.
|
|
2931
|
+
*
|
|
2932
|
+
* @category Configuration
|
|
2933
|
+
*/
|
|
2934
|
+
reapplyLegacyUserConfiguration(): void;
|
|
2917
2935
|
/**
|
|
2918
2936
|
* Save and return a scene as a base64 encoded string.
|
|
2919
2937
|
*
|
|
@@ -4809,6 +4827,26 @@ export declare interface OrderContext {
|
|
|
4809
4827
|
*/
|
|
4810
4828
|
export declare type OrderContextFor<A extends UIArea> = A extends 'ly.img.caption.panel' ? CaptionPanelOrderContext : OrderContext;
|
|
4811
4829
|
|
|
4830
|
+
/**
|
|
4831
|
+
* Reference to a page preset from an asset source.
|
|
4832
|
+
* @public
|
|
4833
|
+
*/
|
|
4834
|
+
export declare type PageAssetReference = {
|
|
4835
|
+
sourceId: string;
|
|
4836
|
+
assetId: string;
|
|
4837
|
+
};
|
|
4838
|
+
|
|
4839
|
+
/**
|
|
4840
|
+
* Direct page dimensions specification.
|
|
4841
|
+
* @public
|
|
4842
|
+
*/
|
|
4843
|
+
export declare type PageDimensions = {
|
|
4844
|
+
width: number;
|
|
4845
|
+
height: number;
|
|
4846
|
+
unit: DesignUnit;
|
|
4847
|
+
fixedOrientation?: boolean;
|
|
4848
|
+
};
|
|
4849
|
+
|
|
4812
4850
|
/**
|
|
4813
4851
|
* Represents the definition of a page format in the Creative Editor SDK.
|
|
4814
4852
|
* This interface defines the width, height, unit, and optional fixed orientation for a page format.
|
|
@@ -4823,6 +4861,13 @@ export declare type PageFormatDefinition = {
|
|
|
4823
4861
|
fixedOrientation?: boolean;
|
|
4824
4862
|
};
|
|
4825
4863
|
|
|
4864
|
+
/**
|
|
4865
|
+
* A page can be specified as direct dimensions, an asset source reference,
|
|
4866
|
+
* or an asset object (e.g., from engine.asset.fetchAsset()).
|
|
4867
|
+
* @public
|
|
4868
|
+
*/
|
|
4869
|
+
export declare type PageSpec = PageDimensions | PageAssetReference | Asset;
|
|
4870
|
+
|
|
4826
4871
|
export { PaletteColor }
|
|
4827
4872
|
|
|
4828
4873
|
/**
|
|
@@ -5099,6 +5144,11 @@ export declare interface RegisteredActions {
|
|
|
5099
5144
|
'video.decode.checkSupport': VideoDecodeCheckSupportAction;
|
|
5100
5145
|
/** Action for checking video encoding/export support */
|
|
5101
5146
|
'video.encode.checkSupport': VideoEncodeCheckSupportAction;
|
|
5147
|
+
/**
|
|
5148
|
+
* Scene creation action
|
|
5149
|
+
*/
|
|
5150
|
+
/** Action for creating a new scene with configurable mode and page sizes */
|
|
5151
|
+
'scene.create': SceneCreateAction;
|
|
5102
5152
|
}
|
|
5103
5153
|
|
|
5104
5154
|
/**
|
|
@@ -5183,6 +5233,35 @@ declare type ScaleFn = ({ containerWidth, isTouch }: {
|
|
|
5183
5233
|
|
|
5184
5234
|
export { SceneAPI }
|
|
5185
5235
|
|
|
5236
|
+
/**
|
|
5237
|
+
* Action for creating a new scene with configurable mode and page sizes.
|
|
5238
|
+
* Returns the scene block ID.
|
|
5239
|
+
* @public
|
|
5240
|
+
*/
|
|
5241
|
+
export declare type SceneCreateAction = (options?: SceneCreateOptions) => Promise<number>;
|
|
5242
|
+
|
|
5243
|
+
/**
|
|
5244
|
+
* Options for creating a new scene.
|
|
5245
|
+
* @public
|
|
5246
|
+
*/
|
|
5247
|
+
export declare type SceneCreateOptions = {
|
|
5248
|
+
/** Scene mode. Defaults to 'Design'. */
|
|
5249
|
+
mode?: SceneMode;
|
|
5250
|
+
/** Scene layout. Defaults to 'VerticalStack' for Design, ignored for Video. */
|
|
5251
|
+
layout?: SceneLayout;
|
|
5252
|
+
} & ({
|
|
5253
|
+
/** A single page spec repeated `pageCount` times. */
|
|
5254
|
+
page?: PageSpec;
|
|
5255
|
+
/** Number of pages to create. Defaults to 1. */
|
|
5256
|
+
pageCount?: number;
|
|
5257
|
+
pages?: never;
|
|
5258
|
+
} | {
|
|
5259
|
+
/** An array of page specs, one page per entry. */
|
|
5260
|
+
pages: PageSpec[];
|
|
5261
|
+
page?: never;
|
|
5262
|
+
pageCount?: never;
|
|
5263
|
+
});
|
|
5264
|
+
|
|
5186
5265
|
export { SceneLayout }
|
|
5187
5266
|
|
|
5188
5267
|
export { SceneMode }
|