narraleaf-react 0.43.1 → 0.45.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/dist/game/nlcore/common/player.d.ts +1 -0
- package/dist/game/nlcore/elements/sound.d.ts +12 -3
- package/dist/game/nlcore/gameTypes.d.ts +84 -16
- package/dist/game/player/gameState.d.ts +10 -0
- package/dist/game/player/lib/AudioManager.d.ts +85 -34
- package/dist/game/player/lib/ImageCacheManager.d.ts +159 -22
- package/dist/game/player/lib/useHoldImageSrc.d.ts +19 -0
- package/dist/main.js +50 -50
- package/dist/util/data.d.ts +7 -2
- package/package.json +2 -2
package/dist/util/data.d.ts
CHANGED
|
@@ -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<
|
|
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.
|
|
3
|
+
"version": "0.45.0",
|
|
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.
|
|
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",
|