@cesdk/cesdk-js 1.62.0-nightly.20251010 → 1.63.0-nightly.20251014

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/index.d.ts CHANGED
@@ -46,12 +46,11 @@ import { BlurTypeShorthand } from '@cesdk/engine';
46
46
  import { BooleanOperation } from '@cesdk/engine';
47
47
  import { Buffer } from '@cesdk/engine';
48
48
  import { Canvas } from '@cesdk/engine';
49
- import { _ChannelSync } from '@cesdk/engine';
50
49
  import { checkVideoExportSupport } from '@cesdk/engine';
51
50
  import { checkVideoSupport } from '@cesdk/engine';
52
51
  import { CMYK } from '@cesdk/engine';
53
52
  import { CMYKColor } from '@cesdk/engine';
54
- import { Color } from '@cesdk/engine';
53
+ import type { Color } from '@cesdk/engine';
55
54
  import { ColorSpace } from '@cesdk/engine';
56
55
  import { CompleteAssetResult } from '@cesdk/engine';
57
56
  import { ContentFillMode } from '@cesdk/engine';
@@ -90,7 +89,6 @@ import { GradientstopRGBA } from '@cesdk/engine';
90
89
  import { HexColorString } from '@cesdk/engine';
91
90
  import { HistoryId } from '@cesdk/engine';
92
91
  import { HorizontalBlockAlignment } from '@cesdk/engine';
93
- import { HorizontalTextAlignment } from '@cesdk/engine';
94
92
  import { HTMLCreativeEngineCanvasElement } from '@cesdk/engine';
95
93
  import type { i18n } from 'i18next';
96
94
  import { ImageMimeType } from '@cesdk/engine';
@@ -102,13 +100,10 @@ import { ObjectType } from '@cesdk/engine';
102
100
  import { ObjectTypeLonghand } from '@cesdk/engine';
103
101
  import { ObjectTypeShorthand } from '@cesdk/engine';
104
102
  import { OffscreenCanvas as OffscreenCanvas_2 } from '@cesdk/engine';
105
- import { PageDuration } from '@cesdk/engine';
106
103
  import { PaletteColor } from '@cesdk/engine';
107
104
  import { PositionMode } from '@cesdk/engine';
108
105
  import { PropertyType } from '@cesdk/engine';
109
106
  import { Range as Range_2 } from '@cesdk/engine';
110
- import { _ReadOnlyChannelSync } from '@cesdk/engine';
111
- import { _ReadWriteChannelSync } from '@cesdk/engine';
112
107
  import { RGBA } from '@cesdk/engine';
113
108
  import { RGBAColor } from '@cesdk/engine';
114
109
  import { RGBColor } from '@cesdk/engine';
@@ -132,7 +127,6 @@ import { Size2 } from '@cesdk/engine';
132
127
  import { SizeMode } from '@cesdk/engine';
133
128
  import { SortingOrder } from '@cesdk/engine';
134
129
  import { Source } from '@cesdk/engine';
135
- import { _Source } from '@cesdk/engine';
136
130
  import { SplitOptions } from '@cesdk/engine';
137
131
  import { SpotColor } from '@cesdk/engine';
138
132
  import { StrokeCornerGeometry } from '@cesdk/engine';
@@ -147,9 +141,7 @@ import { TransientResource } from '@cesdk/engine';
147
141
  import { Typeface } from '@cesdk/engine';
148
142
  import { TypefaceDefinition } from '@cesdk/engine';
149
143
  import { VariableAPI } from '@cesdk/engine';
150
- import { Vec2 } from '@cesdk/engine';
151
144
  import { VerticalBlockAlignment } from '@cesdk/engine';
152
- import { VerticalTextAlignment } from '@cesdk/engine';
153
145
  import { VideoExportOptions } from '@cesdk/engine';
154
146
  import { VideoMimeType } from '@cesdk/engine';
155
147
  import { XYWH } from '@cesdk/engine';
@@ -315,6 +307,24 @@ export { AssetColorProperty }
315
307
 
316
308
  export { AssetDefinition }
317
309
 
310
+ /**
311
+ * @public
312
+ * Asset library entry IDs that can be used with asset library APIs.
313
+ * Includes built-in entry IDs registered by the SDK, and allows custom entry IDs.
314
+ */
315
+ export declare type AssetEntryId = 'ly.img.colors' | 'ly.img.typefaces' | 'ly.img.pagePresets' | 'ly.img.cropPresets' | 'ly.img.library.captionPresets' | 'ly.img.animations' | 'ly.img.textAnimations' | (string & {});
316
+
317
+ /**
318
+ * @public
319
+ * Context provided to the sourceIds callback function.
320
+ * - `cesdk`: The CreativeEditorSDK instance.
321
+ * - `engine`: The CreativeEngine instance.
322
+ */
323
+ declare interface AssetEntrySourceIdsContext {
324
+ cesdk: CreativeEditorSDK;
325
+ engine: CreativeEngine_2;
326
+ }
327
+
318
328
  export { AssetEnumProperty }
319
329
 
320
330
  export { AssetFixedAspectRatio }
@@ -364,7 +374,7 @@ export declare interface AssetLibraryEntry extends AssetLibraryEntryData, AssetL
364
374
  * @public
365
375
  * Interface representing the data configuration for an asset library entry.
366
376
  * - `id`: The unique identifier for the asset library entry.
367
- * - `sourceIds`: An array of source IDs associated with the asset library entry.
377
+ * - `sourceIds`: An array of source IDs associated with the asset library entry, or a function that returns an array of source IDs.
368
378
  * - `sceneMode`: Optional configuration for the scene mode, which can be a `SceneMode`, 'All', or a function returning a `SceneMode` or 'All'.
369
379
  * - `excludeGroups`: Optional array of group IDs to exclude from the asset library entry.
370
380
  * - `includeGroups`: Optional array of group IDs to include in the asset library entry.
@@ -374,7 +384,7 @@ export declare interface AssetLibraryEntry extends AssetLibraryEntryData, AssetL
374
384
  */
375
385
  declare interface AssetLibraryEntryData {
376
386
  id: string;
377
- sourceIds: string[];
387
+ sourceIds: string[] | ((context: AssetEntrySourceIdsContext) => string[]);
378
388
  /**
379
389
  * Marks for what scene mode this entry is fitting. Not setting this
380
390
  * will make the entry available for all scene modes.
@@ -2489,6 +2499,27 @@ declare class CreativeEditorSDK {
2489
2499
 
2490
2500
 
2491
2501
 
2502
+ /**
2503
+ * Registers a callback function to be executed when resetEditor is called.
2504
+ *
2505
+ * @param callback - Function to be called with the cesdk instance when reset occurs
2506
+ * @returns Function to remove the callback from the registry
2507
+ *
2508
+ * @example
2509
+ * ```typescript
2510
+ * const removeCallback = cesdk.onReset((cesdk) => {
2511
+ * console.log('Editor is being reset');
2512
+ * // Custom cleanup/reinitialization logic
2513
+ * });
2514
+ *
2515
+ * // Later, to remove the callback:
2516
+ * removeCallback();
2517
+ * ```
2518
+ *
2519
+ * @category Configuration
2520
+ * @public
2521
+ */
2522
+ onReset(callback: (cesdk: CreativeEditorSDK) => void): () => void;
2492
2523
  /**
2493
2524
  * Convenience function to register a set of our default asset sources.
2494
2525
  *
@@ -2615,6 +2646,23 @@ declare class CreativeEditorSDK {
2615
2646
  * ```
2616
2647
  */
2617
2648
  getBaseURL(): string;
2649
+ /**
2650
+ * Resets the editor to a clean state by disabling all features, clearing UI configurations,
2651
+ * and removing asset sources.
2652
+ *
2653
+ * @example
2654
+ * ```typescript
2655
+ * // Reset the editor to clean state
2656
+ * cesdk.resetEditor();
2657
+ *
2658
+ * // Reconfigure as needed
2659
+ * cesdk.feature.enable('ly.img.navigationBar', true);
2660
+ * cesdk.addDefaultAssetSources();
2661
+ * ```
2662
+ *
2663
+ * @category Configuration
2664
+ */
2665
+ resetEditor(): void;
2618
2666
  /**
2619
2667
  * Save and return a scene as a base64 encoded string.
2620
2668
  *
@@ -4480,13 +4528,214 @@ export declare interface UserInterface {
4480
4528
  hide?: boolean;
4481
4529
  smallViewportOptimization?: boolean;
4482
4530
  /**
4483
- * @deprecated The configuration options `ui.colorPalette` has been deprecated. Please use `ui.colorLibraries` and asset sources instead.
4531
+ * @deprecated Add a local asset source using `cesdk.engine.asset.addLocalSource()` and populate it with color assets,
4532
+ * then use `cesdk.ui.updateAssetLibraryEntry('ly.img.colors', { sourceIds: [...] })` to configure which sources to display.
4533
+ *
4534
+ * @example
4535
+ * ```typescript
4536
+ * // Before (deprecated):
4537
+ * const config = {
4538
+ * ui: {
4539
+ * colorPalette: ['#FF0000', '#00FF00', '#0000FF']
4540
+ * }
4541
+ * };
4542
+ *
4543
+ * // After (recommended):
4544
+ * // Add a local source for custom colors
4545
+ * engine.asset.addLocalSource('my.custom.colors');
4546
+ * engine.asset.addAssetToSource('my.custom.colors', {
4547
+ * id: 'red',
4548
+ * label: { en: 'Red' },
4549
+ * payload: {
4550
+ * color: {
4551
+ * colorSpace: 'sRGB',
4552
+ * r: 1.0,
4553
+ * g: 0.0,
4554
+ * b: 0.0,
4555
+ * a: 1.0
4556
+ * }
4557
+ * }
4558
+ * });
4559
+ * // ... add more colors
4560
+ *
4561
+ * // Update the asset library entry to use your custom source
4562
+ * cesdk.ui.updateAssetLibraryEntry('ly.img.colors', {
4563
+ * sourceIds: ['ly.img.colors.documentColors', 'my.custom.colors']
4564
+ * });
4565
+ * ```
4484
4566
  */
4485
4567
  colorPalette?: PaletteColor[];
4568
+ /**
4569
+ * @deprecated Add asset sources using `cesdk.engine.asset.addAssetSource()` or `cesdk.engine.asset.addLocalSource()`,
4570
+ * then use `cesdk.ui.updateAssetLibraryEntry('ly.img.colors', { sourceIds: [...] })` to configure which sources to display.
4571
+ *
4572
+ * @example
4573
+ * ```typescript
4574
+ * // Before (deprecated):
4575
+ * const config = {
4576
+ * ui: {
4577
+ * colorLibraries: ['ly.img.colors.defaultPalette', 'my.custom.colors']
4578
+ * }
4579
+ * };
4580
+ *
4581
+ * // After (recommended):
4582
+ * // Add a local source for custom colors
4583
+ * engine.asset.addLocalSource('my.custom.colors');
4584
+ * // Add color assets to the source
4585
+ * engine.asset.addAssetToSource('my.custom.colors', {
4586
+ * id: 'custom-color-1',
4587
+ * payload: { color: { colorSpace: 'sRGB', r: 1.0, g: 0.0, b: 0.0 } }
4588
+ * });
4589
+ *
4590
+ * // Update the library entry to use your sources
4591
+ * cesdk.ui.updateAssetLibraryEntry('ly.img.colors', {
4592
+ * sourceIds: ['ly.img.colors.defaultPalette', 'my.custom.colors']
4593
+ * });
4594
+ * ```
4595
+ */
4486
4596
  colorLibraries?: string[];
4597
+ /**
4598
+ * @deprecated Add asset sources using `cesdk.engine.asset.addAssetSource()` or `cesdk.engine.asset.addLocalSource()`,
4599
+ * then use `cesdk.ui.updateAssetLibraryEntry('ly.img.typefaces', { sourceIds: [...] })` to configure which sources to display.
4600
+ *
4601
+ * @example
4602
+ * ```typescript
4603
+ * // Before (deprecated):
4604
+ * const config = {
4605
+ * ui: {
4606
+ * typefaceLibraries: ['ly.img.typeface', 'my.custom.fonts']
4607
+ * }
4608
+ * };
4609
+ *
4610
+ * // After (recommended):
4611
+ * // Add a local source for custom typefaces
4612
+ * engine.asset.addLocalSource('my.custom.fonts');
4613
+ * // Add typeface assets to the source
4614
+ * engine.asset.addAssetToSource('my.custom.fonts', {
4615
+ * id: 'custom-font-1',
4616
+ * meta: { uri: 'https://example.com/font.ttf' }
4617
+ * });
4618
+ *
4619
+ * // Update the library entry to use your sources
4620
+ * cesdk.ui.updateAssetLibraryEntry('ly.img.typefaces', {
4621
+ * sourceIds: ['ly.img.typeface', 'my.custom.fonts']
4622
+ * });
4623
+ * ```
4624
+ */
4487
4625
  typefaceLibraries?: string[];
4626
+ /**
4627
+ * @deprecated Add asset sources using `cesdk.engine.asset.addAssetSource()` or `cesdk.engine.asset.addLocalSource()`,
4628
+ * then use `cesdk.ui.updateAssetLibraryEntry('ly.img.pagePresets', { sourceIds: ... })` to configure which sources to display.
4629
+ *
4630
+ * For dynamic source IDs, use a callback function with the new API: `{ sourceIds: ({ engine }) => [...] }`
4631
+ *
4632
+ * @example
4633
+ * ```typescript
4634
+ * // Before (deprecated):
4635
+ * const config = {
4636
+ * ui: {
4637
+ * pagePresetsLibraries: (engine) => {
4638
+ * const sceneMode = engine.scene.getMode();
4639
+ * return sceneMode === 'Video'
4640
+ * ? ['ly.img.page.presets.video']
4641
+ * : ['ly.img.page.presets'];
4642
+ * }
4643
+ * }
4644
+ * };
4645
+ *
4646
+ * // After (recommended):
4647
+ * // Add a local source for custom page presets
4648
+ * engine.asset.addLocalSource('my.custom.pagePresets');
4649
+ * // Add page preset assets to the source
4650
+ * engine.asset.addAssetToSource('my.custom.pagePresets', {
4651
+ * id: 'custom-preset-1',
4652
+ * payload: { transformPreset: { type: 'FixedSize', width: 800, height: 600 } }
4653
+ * });
4654
+ *
4655
+ * // Update the library entry with dynamic sourceIds
4656
+ * cesdk.ui.updateAssetLibraryEntry('ly.img.pagePresets', {
4657
+ * sourceIds: ({ engine }) => {
4658
+ * const sceneMode = engine.scene.getMode();
4659
+ * return sceneMode === 'Video'
4660
+ * ? ['ly.img.page.presets.video', 'my.custom.pagePresets']
4661
+ * : ['ly.img.page.presets', 'my.custom.pagePresets'];
4662
+ * }
4663
+ * });
4664
+ * ```
4665
+ */
4488
4666
  pagePresetsLibraries?: string[] | ((engine: CreativeEngine_2) => string[]);
4667
+ /**
4668
+ * @deprecated Add asset sources using `cesdk.engine.asset.addAssetSource()` or `cesdk.engine.asset.addLocalSource()`,
4669
+ * then use `cesdk.ui.updateAssetLibraryEntry('ly.img.cropPresets', { sourceIds: ... })` to configure which sources to display.
4670
+ *
4671
+ * For dynamic source IDs, use a callback function with the new API: `{ sourceIds: ({ engine }) => [...] }`
4672
+ *
4673
+ * @example
4674
+ * ```typescript
4675
+ * // Before (deprecated):
4676
+ * const config = {
4677
+ * ui: {
4678
+ * cropPresetsLibraries: ['ly.img.crop.presets']
4679
+ * }
4680
+ * };
4681
+ *
4682
+ * // After (recommended):
4683
+ * // Add a local source for custom crop presets
4684
+ * engine.asset.addLocalSource('my.custom.cropPresets');
4685
+ * // Add crop preset assets to the source
4686
+ * engine.asset.addAssetToSource('my.custom.cropPresets', {
4687
+ * id: 'custom-crop-1',
4688
+ * payload: { transformPreset: { type: 'FixedAspectRatio', width: 16, height: 9 } }
4689
+ * });
4690
+ *
4691
+ * // Update the library entry to use your sources
4692
+ * cesdk.ui.updateAssetLibraryEntry('ly.img.cropPresets', {
4693
+ * sourceIds: ['ly.img.crop.presets', 'my.custom.cropPresets']
4694
+ * });
4695
+ * ```
4696
+ */
4489
4697
  cropPresetsLibraries?: string[] | ((engine: CreativeEngine_2) => string[]);
4698
+ /**
4699
+ * @deprecated Add a local asset source using `cesdk.engine.asset.addLocalSource()` and populate it with page format assets,
4700
+ * then use `cesdk.ui.updateAssetLibraryEntry('ly.img.pagePresets', { sourceIds: [...] })` to configure which sources to display.
4701
+ *
4702
+ * @example
4703
+ * ```typescript
4704
+ * // Before (deprecated):
4705
+ * const config = {
4706
+ * ui: {
4707
+ * pageFormats: {
4708
+ * 'custom-format': {
4709
+ * width: 800,
4710
+ * height: 600,
4711
+ * unit: 'Pixel'
4712
+ * }
4713
+ * }
4714
+ * }
4715
+ * };
4716
+ *
4717
+ * // After (recommended):
4718
+ * // Add a local source for custom page formats
4719
+ * engine.asset.addLocalSource('my.custom.pageFormats');
4720
+ * engine.asset.addAssetToSource('my.custom.pageFormats', {
4721
+ * id: 'custom-format',
4722
+ * label: { en: 'Custom Format' },
4723
+ * payload: {
4724
+ * transformPreset: {
4725
+ * type: 'FixedSize',
4726
+ * width: 800,
4727
+ * height: 600,
4728
+ * designUnit: 'Pixel'
4729
+ * }
4730
+ * }
4731
+ * });
4732
+ *
4733
+ * // Update the asset library entry to use your custom source
4734
+ * cesdk.ui.updateAssetLibraryEntry('ly.img.pagePresets', {
4735
+ * sourceIds: ['my.custom.pageFormats']
4736
+ * });
4737
+ * ```
4738
+ */
4490
4739
  pageFormats?: {
4491
4740
  [id: string]: PageFormatDefinition;
4492
4741
  };
@@ -4953,22 +5202,7 @@ export declare class UserInterfaceAPI {
4953
5202
  */
4954
5203
  removeDockOrderComponent(matcher: OrderComponentMatcher<OrderComponent<DockOrderComponentId>>, orderContext?: OrderContext): {
4955
5204
  removed: number;
4956
- order: DockOrderComponent[]; /**
4957
- * Inserts a component into the render order of the dock area.
4958
- *
4959
- * This method inserts a new dock order component before, after, or to replace a component matching
4960
- * the provided matcher. The matcher can be a function or an object describing the component to match.
4961
- * The location can be 'before', 'after', or 'replace'.
4962
- *
4963
- * The insert API can be used in different contexts (such as edit modes).
4964
- *
4965
- * @category UI Layout
4966
- * @param component - The component ID or configuration to insert.
4967
- * @param matcher - Function or object to match the component to insert relative to.
4968
- * @param location - Where to insert the new component relative to the matched component ('before' or 'after').
4969
- * @param orderContext - Optional context specifying which order to update.
4970
- * @returns The updated dock order array.
4971
- */
5205
+ order: DockOrderComponent[];
4972
5206
  };
4973
5207
  /**
4974
5208
  * Inserts a component into the render order of the dock area.
@@ -5054,22 +5288,7 @@ export declare class UserInterfaceAPI {
5054
5288
  */
5055
5289
  removeInspectorBarOrderComponent(matcher: OrderComponentMatcher<OrderComponent<InspectorBarComponentId>>, orderContext?: OrderContext): {
5056
5290
  removed: number;
5057
- order: OrderComponent<InspectorBarComponentId>[]; /**
5058
- * Inserts a component into the render order of the dock area.
5059
- *
5060
- * This method inserts a new dock order component before, after, or to replace a component matching
5061
- * the provided matcher. The matcher can be a function or an object describing the component to match.
5062
- * The location can be 'before', 'after', or 'replace'.
5063
- *
5064
- * The insert API can be used in different contexts (such as edit modes).
5065
- *
5066
- * @category UI Layout
5067
- * @param component - The component ID or configuration to insert.
5068
- * @param matcher - Function or object to match the component to insert relative to.
5069
- * @param location - Where to insert the new component relative to the matched component ('before' or 'after').
5070
- * @param orderContext - Optional context specifying which order to update.
5071
- * @returns The updated dock order array.
5072
- */
5291
+ order: OrderComponent<InspectorBarComponentId>[];
5073
5292
  };
5074
5293
  /**
5075
5294
  * Inserts a component into the render order of the inspector bar.
@@ -5151,22 +5370,7 @@ export declare class UserInterfaceAPI {
5151
5370
  */
5152
5371
  removeCanvasMenuOrderComponent(matcher: OrderComponentMatcher<OrderComponent<CanvasMenuComponentId>>, orderContext?: OrderContext): {
5153
5372
  removed: number;
5154
- order: OrderComponent<CanvasMenuComponentId>[]; /**
5155
- * Inserts a component into the render order of the dock area.
5156
- *
5157
- * This method inserts a new dock order component before, after, or to replace a component matching
5158
- * the provided matcher. The matcher can be a function or an object describing the component to match.
5159
- * The location can be 'before', 'after', or 'replace'.
5160
- *
5161
- * The insert API can be used in different contexts (such as edit modes).
5162
- *
5163
- * @category UI Layout
5164
- * @param component - The component ID or configuration to insert.
5165
- * @param matcher - Function or object to match the component to insert relative to.
5166
- * @param location - Where to insert the new component relative to the matched component ('before' or 'after').
5167
- * @param orderContext - Optional context specifying which order to update.
5168
- * @returns The updated dock order array.
5169
- */
5373
+ order: OrderComponent<CanvasMenuComponentId>[];
5170
5374
  };
5171
5375
  /**
5172
5376
  * Inserts a component into the render order of the canvas menu.
@@ -5335,22 +5539,7 @@ export declare class UserInterfaceAPI {
5335
5539
  */
5336
5540
  removeCanvasBarOrderComponent(matcher: OrderComponentMatcher<OrderComponent<CanvasBarComponentId>>, position: 'top' | 'bottom', orderContext?: OrderContext): {
5337
5541
  removed: number;
5338
- order: OrderComponent<CanvasBarComponentId>[]; /**
5339
- * Inserts a component into the render order of the dock area.
5340
- *
5341
- * This method inserts a new dock order component before, after, or to replace a component matching
5342
- * the provided matcher. The matcher can be a function or an object describing the component to match.
5343
- * The location can be 'before', 'after', or 'replace'.
5344
- *
5345
- * The insert API can be used in different contexts (such as edit modes).
5346
- *
5347
- * @category UI Layout
5348
- * @param component - The component ID or configuration to insert.
5349
- * @param matcher - Function or object to match the component to insert relative to.
5350
- * @param location - Where to insert the new component relative to the matched component ('before' or 'after').
5351
- * @param orderContext - Optional context specifying which order to update.
5352
- * @returns The updated dock order array.
5353
- */
5542
+ order: OrderComponent<CanvasBarComponentId>[];
5354
5543
  };
5355
5544
  /**
5356
5545
  * Inserts a component into the render order of the canvas bar.
@@ -5390,16 +5579,19 @@ export declare class UserInterfaceAPI {
5390
5579
  *
5391
5580
  * @category Asset Library
5392
5581
  * @param id - The ID of the asset library entry to update.
5393
- * @param assetLibraryEntry - Partial entry properties to merge with the existing entry.
5582
+ * @param assetLibraryEntry - Partial entry properties to merge with the existing entry, or a function that receives the current entry and pre-normalized sourceIds and returns the updated properties.
5394
5583
  */
5395
- updateAssetLibraryEntry(id: string, assetLibraryEntry: Partial<Omit<AssetLibraryEntry, 'id'>>): void;
5584
+ updateAssetLibraryEntry(id: AssetEntryId, assetLibraryEntry: Partial<Omit<AssetLibraryEntry, 'id'>> | ((context: {
5585
+ entry: AssetLibraryEntry;
5586
+ sourceIds: string[];
5587
+ }) => Partial<Omit<AssetLibraryEntry, 'id'>>)): void;
5396
5588
  /**
5397
5589
  * Removes an asset library entry from the available entries.
5398
5590
  *
5399
5591
  * @category Asset Library
5400
5592
  * @param id - The ID of the asset library entry to remove.
5401
5593
  */
5402
- removeAssetLibraryEntry(id: string): void;
5594
+ removeAssetLibraryEntry(id: AssetEntryId): void;
5403
5595
  /**
5404
5596
  * Gets a specific asset library entry by its ID.
5405
5597
  *
@@ -5407,14 +5599,14 @@ export declare class UserInterfaceAPI {
5407
5599
  * @param id - The ID of the asset library entry to retrieve.
5408
5600
  * @returns The asset library entry configuration, or undefined if not found.
5409
5601
  */
5410
- getAssetLibraryEntry(id: string): AssetLibraryEntry | undefined;
5602
+ getAssetLibraryEntry(id: AssetEntryId): AssetLibraryEntry | undefined;
5411
5603
  /**
5412
5604
  * Gets all currently registered asset library entry IDs.
5413
5605
  *
5414
5606
  * @category Asset Library
5415
5607
  * @returns Array of asset library entry IDs.
5416
5608
  */
5417
- findAllAssetLibraryEntries(): string[];
5609
+ findAllAssetLibraryEntries(): AssetEntryId[];
5418
5610
  /**
5419
5611
  * Sets the asset library entries to use for the background track in video scenes.
5420
5612
  *
@@ -5437,7 +5629,7 @@ export declare class UserInterfaceAPI {
5437
5629
  * });
5438
5630
  * ```
5439
5631
  */
5440
- setBackgroundTrackAssetLibraryEntries(backgroundTrackAssetLibraryEntries: string[]): void;
5632
+ setBackgroundTrackAssetLibraryEntries(backgroundTrackAssetLibraryEntries: AssetEntryId[]): void;
5441
5633
  /**
5442
5634
  * Gets the asset library entries configured for the background track in video scenes.
5443
5635
  *
@@ -5447,7 +5639,7 @@ export declare class UserInterfaceAPI {
5447
5639
  * @returns Array of asset library entry IDs configured for the background track.
5448
5640
  * @deprecated The background track entries are now defined via the cesdk.actions API.
5449
5641
  */
5450
- getBackgroundTrackAssetLibraryEntries(): string[];
5642
+ getBackgroundTrackAssetLibraryEntries(): AssetEntryId[];
5451
5643
  /**
5452
5644
  * Sets a function that determines which asset library entries to use for replacement operations.
5453
5645
  *
@@ -5457,7 +5649,7 @@ export declare class UserInterfaceAPI {
5457
5649
  * @category Asset Library
5458
5650
  * @param replaceAssetLibraryEntries - Function that receives context and returns an array of asset library entry IDs for replacement.
5459
5651
  */
5460
- setReplaceAssetLibraryEntries(replaceAssetLibraryEntries: (context: ReplaceAssetLibraryEntriesContext) => string[]): void;
5652
+ setReplaceAssetLibraryEntries(replaceAssetLibraryEntries: (context: ReplaceAssetLibraryEntriesContext) => AssetEntryId[]): void;
5461
5653
  /**
5462
5654
  * Gets the current view style of the editor interface.
5463
5655
  *
@@ -5585,6 +5777,8 @@ declare namespace UserInterfaceElements {
5585
5777
  CustomCardSvgVectorPathBackground,
5586
5778
  CustomCardBackground,
5587
5779
  AssetLibraryEntryView,
5780
+ AssetEntrySourceIdsContext,
5781
+ AssetEntryId,
5588
5782
  AssetLibraryEntryData,
5589
5783
  AssetLibraryEntry,
5590
5784
  AssetLibraryEntries,
@@ -5961,6 +6155,16 @@ declare interface UserInterfaceSettings extends UserInterfaceElement {
5961
6155
  export declare class UtilsAPI {
5962
6156
  #private;
5963
6157
 
6158
+ /**
6159
+ * Generates the automatic, localized fallback name for a design block. When
6160
+ * the block does not have an explicit name set, this mirrors the naming shown
6161
+ * in the UI panels.
6162
+ *
6163
+ * @param blockId - The block ID to generate a fallback name for
6164
+ * @returns The localized fallback name for the block
6165
+ * @public
6166
+ */
6167
+ generateBlockName(blockId: number): string;
5964
6168
  /**
5965
6169
  * Shows and manages a loading dialog with progress tracking
5966
6170
  *