@cesdk/cesdk-js 1.62.0-rc.1 → 1.62.0

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
@@ -5587,12 +5587,36 @@ export declare class UserInterfaceAPI {
5587
5587
  *
5588
5588
  * @category Asset Library
5589
5589
  * @param id - The ID of the asset library entry to update.
5590
- * @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.
5590
+ * @param assetLibraryEntry - Partial entry properties to merge with the existing entry, or a function that receives the current entry and returns the updated properties.
5591
+ *
5592
+ * @example
5593
+ * ```typescript
5594
+ * // Simple static update
5595
+ * cesdk.ui.updateAssetLibraryEntry('ly.img.colors', {
5596
+ * sourceIds: ['my-custom-colors']
5597
+ * });
5598
+ *
5599
+ * // Update other properties using callback with entry
5600
+ * cesdk.ui.updateAssetLibraryEntry('ly.img.pagePresets', (entry) => ({
5601
+ * title: entry?.title ? `${entry.title} (Custom)` : 'Page Formats',
5602
+ * icon: { name: 'format-icon' }
5603
+ * }));
5604
+ *
5605
+ * // Extend sourceIds with lazy resolution (preserves dynamic behavior)
5606
+ * cesdk.ui.updateAssetLibraryEntry('ly.img.typefaces', {
5607
+ * sourceIds: ({ currentIds }) => [...currentIds, 'my-custom-fonts']
5608
+ * });
5609
+ * ```
5591
5610
  */
5592
- updateAssetLibraryEntry(id: AssetEntryId, assetLibraryEntry: Partial<Omit<AssetLibraryEntry, 'id'>> | ((context: {
5593
- entry: AssetLibraryEntry;
5594
- sourceIds: string[];
5595
- }) => Partial<Omit<AssetLibraryEntry, 'id'>>)): void;
5611
+ updateAssetLibraryEntry(id: AssetEntryId, assetLibraryEntry: Partial<Omit<AssetLibraryEntry, 'id' | 'sourceIds'> & {
5612
+ sourceIds: string[] | ((context: AssetEntrySourceIdsContext & {
5613
+ currentIds: string[];
5614
+ }) => string[]);
5615
+ }> | ((entry: AssetLibraryEntry | undefined) => Partial<Omit<AssetLibraryEntry, 'id' | 'sourceIds'> & {
5616
+ sourceIds: string[] | ((context: AssetEntrySourceIdsContext & {
5617
+ currentIds: string[];
5618
+ }) => string[]);
5619
+ }>)): void;
5596
5620
  /**
5597
5621
  * Removes an asset library entry from the available entries.
5598
5622
  *