narraleaf-react 0.1.3 → 0.1.5
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/README.md +5 -33
- package/dist/game/nlcore/action/actionTypes.d.ts +3 -1
- package/dist/game/nlcore/action/actions/imageAction.d.ts +1 -0
- package/dist/game/nlcore/action/actions.d.ts +3 -0
- package/dist/game/nlcore/action/logicAction.d.ts +1 -1
- package/dist/game/nlcore/elements/image.d.ts +14 -10
- package/dist/game/nlcore/elements/scene.d.ts +2 -2
- package/dist/game/nlcore/gameTypes.d.ts +32 -0
- package/dist/game/player/elements/player/SizeUpdateAnnouncer.d.ts +4 -0
- package/dist/game/player/gameState.d.ts +2 -6
- package/dist/game/player/lib/ErrorBoundary.d.ts +1 -1
- package/dist/game/player/provider/ratio.d.ts +3 -0
- package/dist/main.js +4 -4
- package/dist/util/data.d.ts +3 -0
- package/package.json +2 -3
package/dist/util/data.d.ts
CHANGED
|
@@ -124,4 +124,7 @@ export declare class MultiLock {
|
|
|
124
124
|
}
|
|
125
125
|
export declare function onlyIf<T>(condition: boolean, value: T, fallback?: object): T | object;
|
|
126
126
|
export declare function debounce<T extends (...args: any[]) => any>(fn: T, delay: number): T;
|
|
127
|
+
export declare function entriesForEach<T extends object, V = undefined>(obj: T, handler: {
|
|
128
|
+
[K in keyof T]: (value: Exclude<T[K], V>, key: K) => void;
|
|
129
|
+
}, validate?: (value: any, key: string) => boolean): void;
|
|
127
130
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "narraleaf-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "A React visual novel player framework",
|
|
5
5
|
"main": "./dist/main.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
"postbuild": "tsc-alias -p tsconfig.json",
|
|
13
13
|
"lint": "eslint \"./src/**/*.{ts,tsx,js,jsx}\"",
|
|
14
14
|
"lint:fix": "eslint --fix \"./src/**/*.{ts,tsx,js,jsx}\"",
|
|
15
|
-
"
|
|
16
|
-
"publish": "npm publish",
|
|
15
|
+
"publish": "npm run lint && rimraf dist && webpack --config webpack.config.js && tsc-alias -p tsconfig.json && npm publish",
|
|
17
16
|
"typedoc": "typedoc src/index.ts --out doc",
|
|
18
17
|
"prepare": "husky"
|
|
19
18
|
},
|