narraleaf-react 0.9.0-beta.5 → 0.9.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/action/actionTypes.d.ts +11 -2
- package/dist/game/nlcore/action/actions/controlAction.d.ts +1 -0
- package/dist/game/nlcore/action/actions/sceneAction.d.ts +7 -2
- package/dist/game/nlcore/action/stackModel.d.ts +1 -1
- package/dist/game/nlcore/common/elements.d.ts +2 -1
- package/dist/game/nlcore/elements/control.d.ts +15 -0
- package/dist/game/nlcore/elements/nvl.d.ts +41 -0
- package/dist/game/nlcore/elements/scene.d.ts +27 -0
- package/dist/game/nlcore/gameTypes.d.ts +6 -1
- package/dist/game/player/elements/elements.d.ts +2 -0
- package/dist/game/player/elements/nvl/DefaultNvlContainer.d.ts +4 -0
- package/dist/game/player/elements/nvl/NvlContainer.d.ts +5 -0
- package/dist/game/player/elements/nvl/NvlContext.d.ts +13 -0
- package/dist/game/player/elements/nvl/NvlDialogList.d.ts +7 -0
- package/dist/game/player/elements/nvl/type.d.ts +49 -0
- package/dist/game/player/elements/nvl/useNvlDialogState.d.ts +14 -0
- package/dist/game/player/elements/player/StageClickAnnouncer.d.ts +1 -0
- package/dist/game/player/elements/say/Nametag.d.ts +8 -1
- package/dist/game/player/elements/say/Sentence.d.ts +9 -1
- package/dist/game/player/elements/type.d.ts +4 -0
- package/dist/game/player/gameState.d.ts +131 -0
- package/dist/game/player/libElements.d.ts +5 -1
- package/dist/main.js +43 -43
- package/package.json +107 -107
package/package.json
CHANGED
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "narraleaf-react",
|
|
3
|
-
"version": "0.9.0
|
|
4
|
-
"description": "A React visual novel player framework",
|
|
5
|
-
"main": "./dist/main.js",
|
|
6
|
-
"types": "./dist/index.d.ts",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"import": "./dist/main.js",
|
|
10
|
-
"require": "./dist/main.js",
|
|
11
|
-
"types": "./dist/index.d.ts"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
"scripts": {
|
|
15
|
-
"prebuild": "rimraf dist",
|
|
16
|
-
"build": "cross-env NODE_ENV=production node esbuild.config.js",
|
|
17
|
-
"build:dev": "rimraf dist && cross-env NODE_ENV=development node esbuild.config.js && tsc --emitDeclarationOnly && tsc-alias -p tsconfig.json && node project/postbuild.js",
|
|
18
|
-
"postbuild": "tsc --emitDeclarationOnly && tsc-alias -p tsconfig.json",
|
|
19
|
-
"lint": "eslint \"./src/**/*.{ts,tsx,js,jsx}\"",
|
|
20
|
-
"lint:fix": "eslint --fix \"./src/**/*.{ts,tsx,js,jsx}\"",
|
|
21
|
-
"prepublishOnly": "npm run lint && rimraf dist && cross-env NODE_ENV=production node esbuild.config.js && tsc --emitDeclarationOnly && tsc-alias -p tsconfig.json",
|
|
22
|
-
"typedoc": "typedoc src/index.ts --out doc",
|
|
23
|
-
"prepare": "husky",
|
|
24
|
-
"test": "vitest"
|
|
25
|
-
},
|
|
26
|
-
"devDependencies": {
|
|
27
|
-
"@eslint/eslintrc": "^3.1.0",
|
|
28
|
-
"@eslint/js": "^9.10.0",
|
|
29
|
-
"@tailwindcss/postcss": "^4.1.5",
|
|
30
|
-
"@tailwindcss/postcss7-compat": "^2.2.17",
|
|
31
|
-
"@types/fs-extra": "^11.0.4",
|
|
32
|
-
"@types/howler": "^2.2.11",
|
|
33
|
-
"@types/lodash": "^4.17.7",
|
|
34
|
-
"@types/node": "^22.15.3",
|
|
35
|
-
"@types/react": ">=19",
|
|
36
|
-
"@types/react-dom": ">=19",
|
|
37
|
-
"@typescript-eslint/eslint-plugin": "^8.5.0",
|
|
38
|
-
"@typescript-eslint/parser": "^8.5.0",
|
|
39
|
-
"autoprefixer": "^10.4.21",
|
|
40
|
-
"cross-env": "^7.0.3",
|
|
41
|
-
"cssnano": "^7.0.6",
|
|
42
|
-
"esbuild": "^0.25.3",
|
|
43
|
-
"esbuild-css-modules-plugin": "^3.1.4",
|
|
44
|
-
"esbuild-plugin-alias": "^0.2.1",
|
|
45
|
-
"esbuild-plugin-postcss2": "^0.1.2",
|
|
46
|
-
"esbuild-postcss": "^0.0.4",
|
|
47
|
-
"eslint": "^9.10.0",
|
|
48
|
-
"eslint-plugin-react": "^7.35.2",
|
|
49
|
-
"fs-extra": "^11.3.0",
|
|
50
|
-
"globals": "^15.9.0",
|
|
51
|
-
"husky": "^9.1.6",
|
|
52
|
-
"motion": "
|
|
53
|
-
"postcss": "^8.5.3",
|
|
54
|
-
"postcss-cli": "^11.0.1",
|
|
55
|
-
"postcss-import": "^16.1.0",
|
|
56
|
-
"postcss-loader": "^8.1.1",
|
|
57
|
-
"postcss-preset-env": "^10.1.6",
|
|
58
|
-
"react": "^19.0.0",
|
|
59
|
-
"react-dom": "^19.0.0",
|
|
60
|
-
"rimraf": "^6.0.1",
|
|
61
|
-
"tailwindcss": "^4.1.5",
|
|
62
|
-
"tsc-alias": "^1.8.10",
|
|
63
|
-
"typedoc": "^0.26.7",
|
|
64
|
-
"typescript": "5.7.2",
|
|
65
|
-
"vitest": "^3.2.4"
|
|
66
|
-
},
|
|
67
|
-
"peerDependencies": {
|
|
68
|
-
"@emotion/is-prop-valid": "*",
|
|
69
|
-
"motion": "
|
|
70
|
-
"react": ">=19",
|
|
71
|
-
"react-dom": ">=19"
|
|
72
|
-
},
|
|
73
|
-
"peerDependenciesMeta": {
|
|
74
|
-
"react": {
|
|
75
|
-
"optional": false
|
|
76
|
-
},
|
|
77
|
-
"react-dom": {
|
|
78
|
-
"optional": false
|
|
79
|
-
},
|
|
80
|
-
"motion": {
|
|
81
|
-
"optional": false
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
"files": [
|
|
85
|
-
"dist",
|
|
86
|
-
"!dist/**/*.map"
|
|
87
|
-
],
|
|
88
|
-
"keywords": [
|
|
89
|
-
"react",
|
|
90
|
-
"visual-novel",
|
|
91
|
-
"typescript",
|
|
92
|
-
"component",
|
|
93
|
-
"narraleaf",
|
|
94
|
-
"nvl"
|
|
95
|
-
],
|
|
96
|
-
"author": "helloyork@icloud.com",
|
|
97
|
-
"license": "MPL-2.0",
|
|
98
|
-
"dependencies": {
|
|
99
|
-
"@narraleaf/sound": "0.1.0",
|
|
100
|
-
"client-only": "^0.0.1",
|
|
101
|
-
"clsx": "^2.1.1",
|
|
102
|
-
"howler": "^2.2.4",
|
|
103
|
-
"html-to-image": "^1.11.11",
|
|
104
|
-
"prop-types": "^15.8.1"
|
|
105
|
-
},
|
|
106
|
-
"packageManager": "yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"
|
|
107
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "narraleaf-react",
|
|
3
|
+
"version": "0.9.0",
|
|
4
|
+
"description": "A React visual novel player framework",
|
|
5
|
+
"main": "./dist/main.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./dist/main.js",
|
|
10
|
+
"require": "./dist/main.js",
|
|
11
|
+
"types": "./dist/index.d.ts"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"prebuild": "rimraf dist",
|
|
16
|
+
"build": "cross-env NODE_ENV=production node esbuild.config.js",
|
|
17
|
+
"build:dev": "rimraf dist && cross-env NODE_ENV=development node esbuild.config.js && tsc --emitDeclarationOnly && tsc-alias -p tsconfig.json && node project/postbuild.js",
|
|
18
|
+
"postbuild": "tsc --emitDeclarationOnly && tsc-alias -p tsconfig.json",
|
|
19
|
+
"lint": "eslint \"./src/**/*.{ts,tsx,js,jsx}\"",
|
|
20
|
+
"lint:fix": "eslint --fix \"./src/**/*.{ts,tsx,js,jsx}\"",
|
|
21
|
+
"prepublishOnly": "npm run lint && rimraf dist && cross-env NODE_ENV=production node esbuild.config.js && tsc --emitDeclarationOnly && tsc-alias -p tsconfig.json",
|
|
22
|
+
"typedoc": "typedoc src/index.ts --out doc",
|
|
23
|
+
"prepare": "husky",
|
|
24
|
+
"test": "vitest"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@eslint/eslintrc": "^3.1.0",
|
|
28
|
+
"@eslint/js": "^9.10.0",
|
|
29
|
+
"@tailwindcss/postcss": "^4.1.5",
|
|
30
|
+
"@tailwindcss/postcss7-compat": "^2.2.17",
|
|
31
|
+
"@types/fs-extra": "^11.0.4",
|
|
32
|
+
"@types/howler": "^2.2.11",
|
|
33
|
+
"@types/lodash": "^4.17.7",
|
|
34
|
+
"@types/node": "^22.15.3",
|
|
35
|
+
"@types/react": ">=19",
|
|
36
|
+
"@types/react-dom": ">=19",
|
|
37
|
+
"@typescript-eslint/eslint-plugin": "^8.5.0",
|
|
38
|
+
"@typescript-eslint/parser": "^8.5.0",
|
|
39
|
+
"autoprefixer": "^10.4.21",
|
|
40
|
+
"cross-env": "^7.0.3",
|
|
41
|
+
"cssnano": "^7.0.6",
|
|
42
|
+
"esbuild": "^0.25.3",
|
|
43
|
+
"esbuild-css-modules-plugin": "^3.1.4",
|
|
44
|
+
"esbuild-plugin-alias": "^0.2.1",
|
|
45
|
+
"esbuild-plugin-postcss2": "^0.1.2",
|
|
46
|
+
"esbuild-postcss": "^0.0.4",
|
|
47
|
+
"eslint": "^9.10.0",
|
|
48
|
+
"eslint-plugin-react": "^7.35.2",
|
|
49
|
+
"fs-extra": "^11.3.0",
|
|
50
|
+
"globals": "^15.9.0",
|
|
51
|
+
"husky": "^9.1.6",
|
|
52
|
+
"motion": ">=11 <12",
|
|
53
|
+
"postcss": "^8.5.3",
|
|
54
|
+
"postcss-cli": "^11.0.1",
|
|
55
|
+
"postcss-import": "^16.1.0",
|
|
56
|
+
"postcss-loader": "^8.1.1",
|
|
57
|
+
"postcss-preset-env": "^10.1.6",
|
|
58
|
+
"react": "^19.0.0",
|
|
59
|
+
"react-dom": "^19.0.0",
|
|
60
|
+
"rimraf": "^6.0.1",
|
|
61
|
+
"tailwindcss": "^4.1.5",
|
|
62
|
+
"tsc-alias": "^1.8.10",
|
|
63
|
+
"typedoc": "^0.26.7",
|
|
64
|
+
"typescript": "5.7.2",
|
|
65
|
+
"vitest": "^3.2.4"
|
|
66
|
+
},
|
|
67
|
+
"peerDependencies": {
|
|
68
|
+
"@emotion/is-prop-valid": "*",
|
|
69
|
+
"motion": ">=11 <12",
|
|
70
|
+
"react": ">=19",
|
|
71
|
+
"react-dom": ">=19"
|
|
72
|
+
},
|
|
73
|
+
"peerDependenciesMeta": {
|
|
74
|
+
"react": {
|
|
75
|
+
"optional": false
|
|
76
|
+
},
|
|
77
|
+
"react-dom": {
|
|
78
|
+
"optional": false
|
|
79
|
+
},
|
|
80
|
+
"motion": {
|
|
81
|
+
"optional": false
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"files": [
|
|
85
|
+
"dist",
|
|
86
|
+
"!dist/**/*.map"
|
|
87
|
+
],
|
|
88
|
+
"keywords": [
|
|
89
|
+
"react",
|
|
90
|
+
"visual-novel",
|
|
91
|
+
"typescript",
|
|
92
|
+
"component",
|
|
93
|
+
"narraleaf",
|
|
94
|
+
"nvl"
|
|
95
|
+
],
|
|
96
|
+
"author": "helloyork@icloud.com",
|
|
97
|
+
"license": "MPL-2.0",
|
|
98
|
+
"dependencies": {
|
|
99
|
+
"@narraleaf/sound": "0.1.0",
|
|
100
|
+
"client-only": "^0.0.1",
|
|
101
|
+
"clsx": "^2.1.1",
|
|
102
|
+
"howler": "^2.2.4",
|
|
103
|
+
"html-to-image": "^1.11.11",
|
|
104
|
+
"prop-types": "^15.8.1"
|
|
105
|
+
},
|
|
106
|
+
"packageManager": "yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"
|
|
107
|
+
}
|