@cesdk/cesdk-js 1.63.0-nightly.20251021 → 1.63.0-nightly.20251022
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.63.0-nightly.20251021-KQRP6RZQ.wasm → cesdk-v1.63.0-nightly.20251022-4432L3PG.wasm} +0 -0
- package/assets/core/{worker-host-v1.63.0-nightly.20251021.js → worker-host-v1.63.0-nightly.20251022.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.63.0-nightly.20251021-44YCFRT6.data → cesdk-v1.63.0-nightly.20251022-44YCFRT6.data} +0 -0
package/index.d.ts
CHANGED
|
@@ -5781,12 +5781,36 @@ export declare class UserInterfaceAPI {
|
|
|
5781
5781
|
*
|
|
5782
5782
|
* @category Asset Library
|
|
5783
5783
|
* @param id - The ID of the asset library entry to update.
|
|
5784
|
-
* @param assetLibraryEntry - Partial entry properties to merge with the existing entry, or a function that receives the current entry and
|
|
5784
|
+
* @param assetLibraryEntry - Partial entry properties to merge with the existing entry, or a function that receives the current entry and returns the updated properties.
|
|
5785
|
+
*
|
|
5786
|
+
* @example
|
|
5787
|
+
* ```typescript
|
|
5788
|
+
* // Simple static update
|
|
5789
|
+
* cesdk.ui.updateAssetLibraryEntry('ly.img.colors', {
|
|
5790
|
+
* sourceIds: ['my-custom-colors']
|
|
5791
|
+
* });
|
|
5792
|
+
*
|
|
5793
|
+
* // Update other properties using callback with entry
|
|
5794
|
+
* cesdk.ui.updateAssetLibraryEntry('ly.img.pagePresets', (entry) => ({
|
|
5795
|
+
* title: entry?.title ? `${entry.title} (Custom)` : 'Page Formats',
|
|
5796
|
+
* icon: { name: 'format-icon' }
|
|
5797
|
+
* }));
|
|
5798
|
+
*
|
|
5799
|
+
* // Extend sourceIds with lazy resolution (preserves dynamic behavior)
|
|
5800
|
+
* cesdk.ui.updateAssetLibraryEntry('ly.img.typefaces', {
|
|
5801
|
+
* sourceIds: ({ currentIds }) => [...currentIds, 'my-custom-fonts']
|
|
5802
|
+
* });
|
|
5803
|
+
* ```
|
|
5785
5804
|
*/
|
|
5786
|
-
updateAssetLibraryEntry(id: AssetEntryId, assetLibraryEntry: Partial<Omit<AssetLibraryEntry, 'id'
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5805
|
+
updateAssetLibraryEntry(id: AssetEntryId, assetLibraryEntry: Partial<Omit<AssetLibraryEntry, 'id' | 'sourceIds'> & {
|
|
5806
|
+
sourceIds: string[] | ((context: AssetEntrySourceIdsContext & {
|
|
5807
|
+
currentIds: string[];
|
|
5808
|
+
}) => string[]);
|
|
5809
|
+
}> | ((entry: AssetLibraryEntry | undefined) => Partial<Omit<AssetLibraryEntry, 'id' | 'sourceIds'> & {
|
|
5810
|
+
sourceIds: string[] | ((context: AssetEntrySourceIdsContext & {
|
|
5811
|
+
currentIds: string[];
|
|
5812
|
+
}) => string[]);
|
|
5813
|
+
}>)): void;
|
|
5790
5814
|
/**
|
|
5791
5815
|
* Removes an asset library entry from the available entries.
|
|
5792
5816
|
*
|