@cesdk/node 1.56.0-nightly.20250708 → 1.56.0-nightly.20250710
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.56.0-nightly.20250708-RDF4O4VA.wasm → cesdk-v1.56.0-nightly.20250710-IKGXXOSF.wasm} +0 -0
- package/index.d.ts +13 -2
- package/index.js +1 -1
- package/package.json +1 -1
- /package/assets/core/{cesdk-v1.56.0-nightly.20250708-44YCFRT6.data → cesdk-v1.56.0-nightly.20250710-44YCFRT6.data} +0 -0
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -304,6 +304,15 @@ export declare class AssetAPI {
|
|
|
304
304
|
* @returns Promise resolving to paginated search results.
|
|
305
305
|
*/
|
|
306
306
|
findAssets(sourceId: string, query: AssetQueryData): Promise<AssetsQueryResult<CompleteAssetResult>>;
|
|
307
|
+
/**
|
|
308
|
+
* Fetch a specific asset by ID from an asset source.
|
|
309
|
+
*
|
|
310
|
+
* @category Asset Discovery
|
|
311
|
+
* @param sourceId - The ID of the asset source to search in.
|
|
312
|
+
* @param assetId - The ID of the asset to fetch.
|
|
313
|
+
* @returns Promise resolving to the complete asset result, or undefined if not found.
|
|
314
|
+
*/
|
|
315
|
+
fetchAsset(sourceId: string, assetId: string): Promise<CompleteAssetResult | null>;
|
|
307
316
|
/**
|
|
308
317
|
* Get available asset groups from a source.
|
|
309
318
|
*
|
|
@@ -871,6 +880,8 @@ export declare interface AssetSource {
|
|
|
871
880
|
id: string;
|
|
872
881
|
/** Find all asset for the given type and the provided query data. */
|
|
873
882
|
findAssets(queryData: AssetQueryData): Promise<AssetsQueryResult | undefined>;
|
|
883
|
+
/** Fetch an asset by id. */
|
|
884
|
+
fetchAsset?: (id: string) => Promise<AssetResult | null>;
|
|
874
885
|
/** Return every available group */
|
|
875
886
|
getGroups?: () => Promise<string[]>;
|
|
876
887
|
/** Credits for the source/api */
|
|
@@ -5136,7 +5147,7 @@ declare class CreativeEngine {
|
|
|
5136
5147
|
* - `'ly.img.filter.duotone'` - Color effects of various kinds
|
|
5137
5148
|
*
|
|
5138
5149
|
* These assets are parsed from the IMG.LY CDN at \{\{base_url\}\}/<id>/content.json, where
|
|
5139
|
-
* `base_url` defaults to 'https://cdn.img.ly/assets/
|
|
5150
|
+
* `base_url` defaults to 'https://cdn.img.ly/assets/v4'.
|
|
5140
5151
|
* Each source is created via `addLocalSource` and populated with the parsed assets. To modify the available
|
|
5141
5152
|
* assets, you may either exclude certain IDs via `excludeAssetSourceIds` or alter the sources after creation.
|
|
5142
5153
|
*
|
|
@@ -5145,7 +5156,7 @@ declare class CreativeEngine {
|
|
|
5145
5156
|
* @returns A promise that resolves when all asset sources are loaded.
|
|
5146
5157
|
*/
|
|
5147
5158
|
addDefaultAssetSources({ baseURL, excludeAssetSourceIds }?: {
|
|
5148
|
-
/** The source of the asset definitions, must be absolute. Defaults to `'https://cdn.img.ly/assets/
|
|
5159
|
+
/** The source of the asset definitions, must be absolute. Defaults to `'https://cdn.img.ly/assets/v4'`. */
|
|
5149
5160
|
baseURL?: string;
|
|
5150
5161
|
/** A list of IDs, that will be ignored during load. */
|
|
5151
5162
|
excludeAssetSourceIds?: DefaultAssetSourceId[];
|