@zylem/behaviors 0.2.0 → 0.3.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.
- package/LICENSE +21 -0
- package/dist/chunk-7JJEIADR.js +2631 -0
- package/dist/chunk-7JJEIADR.js.map +1 -0
- package/dist/{chunk-POZER3MQ.js → chunk-ZPSAXX73.js} +100 -94
- package/dist/chunk-ZPSAXX73.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/particle-emitter/presets.d.ts +2 -2
- package/dist/particle-emitter/presets.js +1 -1
- package/dist/particle-emitter.d.ts +9 -4
- package/dist/particle-emitter.js +2 -2
- package/dist/spark-Dx3cJbTW.d.ts +356 -0
- package/package.json +159 -159
- package/dist/chunk-GYURWCIQ.js +0 -1985
- package/dist/chunk-GYURWCIQ.js.map +0 -1
- package/dist/chunk-POZER3MQ.js.map +0 -1
- package/dist/spark-DDlIg1nM.d.ts +0 -148
package/package.json
CHANGED
|
@@ -1,161 +1,161 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
2
|
+
"name": "@zylem/behaviors",
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Tree-shakable Zylem behavior descriptors, systems, coordinators, and runtime-agnostic behavior helpers.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+ssh://git@github.com/zylem-game-lib/behaviors.git"
|
|
10
|
+
},
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=22.12.0",
|
|
13
|
+
"pnpm": ">=10.32.1"
|
|
14
|
+
},
|
|
15
|
+
"sideEffects": false,
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"import": "./dist/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./core": {
|
|
25
|
+
"types": "./dist/core.d.ts",
|
|
26
|
+
"import": "./dist/core.js"
|
|
27
|
+
},
|
|
28
|
+
"./destructible-prebake": {
|
|
29
|
+
"types": "./dist/destructible-prebake.d.ts",
|
|
30
|
+
"import": "./dist/destructible-prebake.js"
|
|
31
|
+
},
|
|
32
|
+
"./cooldown": {
|
|
33
|
+
"types": "./dist/cooldown.d.ts",
|
|
34
|
+
"import": "./dist/cooldown.js"
|
|
35
|
+
},
|
|
36
|
+
"./destructible-3d": {
|
|
37
|
+
"types": "./dist/destructible-3d.d.ts",
|
|
38
|
+
"import": "./dist/destructible-3d.js"
|
|
39
|
+
},
|
|
40
|
+
"./first-person": {
|
|
41
|
+
"types": "./dist/first-person.d.ts",
|
|
42
|
+
"import": "./dist/first-person.js"
|
|
43
|
+
},
|
|
44
|
+
"./jumper-2d": {
|
|
45
|
+
"types": "./dist/jumper-2d.d.ts",
|
|
46
|
+
"import": "./dist/jumper-2d.js"
|
|
47
|
+
},
|
|
48
|
+
"./jumper-3d": {
|
|
49
|
+
"types": "./dist/jumper-3d.d.ts",
|
|
50
|
+
"import": "./dist/jumper-3d.js"
|
|
51
|
+
},
|
|
52
|
+
"./particle-emitter": {
|
|
53
|
+
"types": "./dist/particle-emitter.d.ts",
|
|
54
|
+
"import": "./dist/particle-emitter.js"
|
|
55
|
+
},
|
|
56
|
+
"./particle-emitter/presets": {
|
|
57
|
+
"types": "./dist/particle-emitter/presets.d.ts",
|
|
58
|
+
"import": "./dist/particle-emitter/presets.js"
|
|
59
|
+
},
|
|
60
|
+
"./platformer-3d": {
|
|
61
|
+
"types": "./dist/platformer-3d.d.ts",
|
|
62
|
+
"import": "./dist/platformer-3d.js"
|
|
63
|
+
},
|
|
64
|
+
"./ricochet-2d": {
|
|
65
|
+
"types": "./dist/ricochet-2d.d.ts",
|
|
66
|
+
"import": "./dist/ricochet-2d.js"
|
|
67
|
+
},
|
|
68
|
+
"./ricochet-3d": {
|
|
69
|
+
"types": "./dist/ricochet-3d.d.ts",
|
|
70
|
+
"import": "./dist/ricochet-3d.js"
|
|
71
|
+
},
|
|
72
|
+
"./runtime-2d": {
|
|
73
|
+
"types": "./dist/runtime-2d.d.ts",
|
|
74
|
+
"import": "./dist/runtime-2d.js"
|
|
75
|
+
},
|
|
76
|
+
"./runtime-pong": {
|
|
77
|
+
"types": "./dist/runtime-pong.d.ts",
|
|
78
|
+
"import": "./dist/runtime-pong.js"
|
|
79
|
+
},
|
|
80
|
+
"./screen-visibility": {
|
|
81
|
+
"types": "./dist/screen-visibility.d.ts",
|
|
82
|
+
"import": "./dist/screen-visibility.js"
|
|
83
|
+
},
|
|
84
|
+
"./screen-wrap": {
|
|
85
|
+
"types": "./dist/screen-wrap.d.ts",
|
|
86
|
+
"import": "./dist/screen-wrap.js"
|
|
87
|
+
},
|
|
88
|
+
"./shooter-2d": {
|
|
89
|
+
"types": "./dist/shooter-2d.d.ts",
|
|
90
|
+
"import": "./dist/shooter-2d.js"
|
|
91
|
+
},
|
|
92
|
+
"./thruster": {
|
|
93
|
+
"types": "./dist/thruster.d.ts",
|
|
94
|
+
"import": "./dist/thruster.js"
|
|
95
|
+
},
|
|
96
|
+
"./top-down-movement": {
|
|
97
|
+
"types": "./dist/top-down-movement.d.ts",
|
|
98
|
+
"import": "./dist/top-down-movement.js"
|
|
99
|
+
},
|
|
100
|
+
"./world-boundary-2d": {
|
|
101
|
+
"types": "./dist/world-boundary-2d.d.ts",
|
|
102
|
+
"import": "./dist/world-boundary-2d.js"
|
|
103
|
+
},
|
|
104
|
+
"./world-boundary-3d": {
|
|
105
|
+
"types": "./dist/world-boundary-3d.d.ts",
|
|
106
|
+
"import": "./dist/world-boundary-3d.js"
|
|
107
|
+
},
|
|
108
|
+
"./coordinators/boundary-ricochet": {
|
|
109
|
+
"types": "./dist/coordinators/boundary-ricochet.d.ts",
|
|
110
|
+
"import": "./dist/coordinators/boundary-ricochet.js"
|
|
111
|
+
},
|
|
112
|
+
"./coordinators/boundary-ricochet-3d": {
|
|
113
|
+
"types": "./dist/coordinators/boundary-ricochet-3d.d.ts",
|
|
114
|
+
"import": "./dist/coordinators/boundary-ricochet-3d.js"
|
|
115
|
+
},
|
|
116
|
+
"./coordinators/first-person-shooter": {
|
|
117
|
+
"types": "./dist/coordinators/first-person-shooter.d.ts",
|
|
118
|
+
"import": "./dist/coordinators/first-person-shooter.js"
|
|
119
|
+
},
|
|
120
|
+
"./coordinators/multidirectional-space-shooter": {
|
|
121
|
+
"types": "./dist/coordinators/multidirectional-space-shooter.d.ts",
|
|
122
|
+
"import": "./dist/coordinators/multidirectional-space-shooter.js"
|
|
123
|
+
},
|
|
124
|
+
"./coordinators/top-down-shooter": {
|
|
125
|
+
"types": "./dist/coordinators/top-down-shooter.d.ts",
|
|
126
|
+
"import": "./dist/coordinators/top-down-shooter.js"
|
|
127
|
+
},
|
|
128
|
+
"./package.json": "./package.json"
|
|
129
|
+
},
|
|
130
|
+
"scripts": {
|
|
131
|
+
"build": "tsup",
|
|
132
|
+
"dev": "tsup --watch",
|
|
133
|
+
"typecheck": "tsc --noEmit",
|
|
134
|
+
"test": "vitest --reporter=verbose",
|
|
135
|
+
"prepublishOnly": "pnpm run build && vitest run"
|
|
136
|
+
},
|
|
137
|
+
"dependencies": {
|
|
138
|
+
"@dgreenheck/three-pinata": "^2.0.1",
|
|
139
|
+
"comlink": "^4.4.2",
|
|
140
|
+
"typescript-fsm": "^1.6.0",
|
|
141
|
+
"valtio": "^2.1.7"
|
|
142
|
+
},
|
|
143
|
+
"peerDependencies": {
|
|
144
|
+
"@dimforge/rapier3d-compat": "^0.11.2",
|
|
145
|
+
"three": "^0.180.0"
|
|
146
|
+
},
|
|
147
|
+
"devDependencies": {
|
|
148
|
+
"@dimforge/rapier3d-compat": "^0.11.2",
|
|
149
|
+
"@types/node": "^20.19.13",
|
|
150
|
+
"@types/three": "0.171.0",
|
|
151
|
+
"happy-dom": "^18.0.1",
|
|
152
|
+
"tsup": "^8.5.1",
|
|
153
|
+
"typescript": "5.8.2",
|
|
154
|
+
"vitest": "^4.0.9"
|
|
155
|
+
},
|
|
156
|
+
"packageManager": "pnpm@10.33.0",
|
|
157
|
+
"publishConfig": {
|
|
158
|
+
"access": "public",
|
|
159
|
+
"registry": "https://registry.npmjs.org/"
|
|
160
|
+
}
|
|
161
161
|
}
|