@spiffcommerce/core 21.11.0-alpha.0 → 21.11.0-alpha.2

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/dist/index.d.ts CHANGED
@@ -369,6 +369,7 @@ declare class AssetService implements AssetManager {
369
369
  * Allows for retrieving an asset, returns the option from a cache if possible.
370
370
  */
371
371
  getLocalOrFromServer(assetKey: string): Promise<Asset>;
372
+ keyFromURL(url: string): string | undefined;
372
373
  /**
373
374
  * Caches an asset if it doesn't already exist.
374
375
  */
@@ -392,6 +393,8 @@ declare class AssetService implements AssetManager {
392
393
  removeBackgroundFromAsset(asset: Asset): Promise<Asset>;
393
394
  removePersistedAsset(assetKey: string): void;
394
395
  getPersistedAssets(): PersistedAsset[];
396
+ registerPersistedAssetListener(callback: () => void): void;
397
+ unRegisterPersistedAssetListener(callback: () => void): void;
395
398
  /**
396
399
  * Convert a File object for an image into a FileInfo.
397
400
  */