@cesdk/cesdk-js 1.62.0-rc.2 → 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/assets/core/{cesdk-v1.62.0-rc.2-G5XFDOBE.wasm → cesdk-v1.62.0-6GBJYZBC.wasm} +0 -0
- package/assets/core/{worker-host-v1.62.0-rc.2.js → worker-host-v1.62.0.js} +1 -1
- package/cesdk.umd.js +1 -1
- package/index.d.ts +29 -5
- package/index.js +1 -1
- package/package.json +2 -2
- /package/assets/core/{cesdk-v1.62.0-rc.2-44YCFRT6.data → cesdk-v1.62.0-44YCFRT6.data} +0 -0
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
|
|
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'
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
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
|
*
|