narraleaf-react 0.44.0 → 0.45.1

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.
@@ -257,9 +257,14 @@ export declare function moveElementInArray<T>(arr: T[], element: T, newIndex: nu
257
257
  *
258
258
  * The caller owns the URL and MUST call {@link URL.revokeObjectURL} when it stops using it -
259
259
  * an object URL pins its blob for the lifetime of the document otherwise. {@link ImageCacheManager}
260
- * is the only caller and revokes on every path that drops an entry.
260
+ * is the only caller and revokes on every path that drops an entry. The blob's size comes back
261
+ * with the url because that is what the caller is holding for as long as it keeps the url, and
262
+ * the cache keeps a budget of it.
261
263
  */
262
- export declare function getImageObjectUrl(src: string, options?: RequestInit): Promise<string>;
264
+ export declare function getImageObjectUrl(src: string, options?: RequestInit): Promise<{
265
+ url: string;
266
+ bytes: number;
267
+ }>;
263
268
  export declare class TaskPool {
264
269
  private readonly concurrency;
265
270
  private readonly delay;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "narraleaf-react",
3
- "version": "0.44.0",
3
+ "version": "0.45.1",
4
4
  "description": "A React visual novel player framework",
5
5
  "type": "module",
6
6
  "main": "./dist/main.js",
@@ -103,7 +103,7 @@
103
103
  "author": "helloyork@icloud.com",
104
104
  "license": "MPL-2.0",
105
105
  "dependencies": {
106
- "@narraleaf/sound": "0.1.0",
106
+ "@narraleaf/sound": "^0.2.0",
107
107
  "@types/howler": "^2.2.11",
108
108
  "client-only": "^0.0.1",
109
109
  "clsx": "^2.1.1",