@flightdev/ui 2.0.1 → 4.0.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/README.md +283 -68
- package/dist/{chunk-XTDK7ME5.js → chunk-S4DTUQII.js} +246 -19
- package/dist/chunk-S4DTUQII.js.map +1 -0
- package/dist/core/index.d.ts +423 -3
- package/dist/core/index.js +23 -2
- package/dist/core/index.js.map +1 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +29 -5
- package/dist/index.js.map +1 -0
- package/package.json +7 -183
- package/.turbo/turbo-build.log +0 -81
- package/.turbo/turbo-lint.log +0 -40
- package/.turbo/turbo-typecheck.log +0 -4
- package/TESTING.md +0 -124
- package/dist/adapter-MMD-iHNx.d.ts +0 -424
- package/dist/adapters/tier-1/angular.d.ts +0 -60
- package/dist/adapters/tier-1/angular.js +0 -2
- package/dist/adapters/tier-1/index.d.ts +0 -7
- package/dist/adapters/tier-1/index.js +0 -7
- package/dist/adapters/tier-1/qwik.d.ts +0 -55
- package/dist/adapters/tier-1/qwik.js +0 -2
- package/dist/adapters/tier-1/react.d.ts +0 -67
- package/dist/adapters/tier-1/react.js +0 -2
- package/dist/adapters/tier-1/solid.d.ts +0 -45
- package/dist/adapters/tier-1/solid.js +0 -2
- package/dist/adapters/tier-1/svelte.d.ts +0 -48
- package/dist/adapters/tier-1/svelte.js +0 -2
- package/dist/adapters/tier-1/vue.d.ts +0 -47
- package/dist/adapters/tier-1/vue.js +0 -2
- package/dist/adapters/tier-2/index.d.ts +0 -7
- package/dist/adapters/tier-2/index.js +0 -7
- package/dist/adapters/tier-2/inferno.d.ts +0 -31
- package/dist/adapters/tier-2/inferno.js +0 -2
- package/dist/adapters/tier-2/lit.d.ts +0 -34
- package/dist/adapters/tier-2/lit.js +0 -2
- package/dist/adapters/tier-2/marko.d.ts +0 -59
- package/dist/adapters/tier-2/marko.js +0 -2
- package/dist/adapters/tier-2/mithril.d.ts +0 -31
- package/dist/adapters/tier-2/mithril.js +0 -2
- package/dist/adapters/tier-2/preact.d.ts +0 -33
- package/dist/adapters/tier-2/preact.js +0 -2
- package/dist/adapters/tier-2/stencil.d.ts +0 -52
- package/dist/adapters/tier-2/stencil.js +0 -2
- package/dist/adapters/tier-3/alpine.d.ts +0 -73
- package/dist/adapters/tier-3/alpine.js +0 -2
- package/dist/adapters/tier-3/hotwire.d.ts +0 -71
- package/dist/adapters/tier-3/hotwire.js +0 -2
- package/dist/adapters/tier-3/htmx.d.ts +0 -88
- package/dist/adapters/tier-3/htmx.js +0 -2
- package/dist/adapters/tier-3/index.d.ts +0 -7
- package/dist/adapters/tier-3/index.js +0 -7
- package/dist/adapters/tier-3/petite-vue.d.ts +0 -56
- package/dist/adapters/tier-3/petite-vue.js +0 -2
- package/dist/adapters/tier-3/stimulus.d.ts +0 -63
- package/dist/adapters/tier-3/stimulus.js +0 -2
- package/dist/adapters/tier-3/vanilla.d.ts +0 -63
- package/dist/adapters/tier-3/vanilla.js +0 -2
- package/dist/chunk-2SNQ6PTM.js +0 -217
- package/dist/chunk-3D4XMIZI.js +0 -136
- package/dist/chunk-3HU6GSQ4.js +0 -125
- package/dist/chunk-4PZDNFL7.js +0 -148
- package/dist/chunk-5IBLFTYL.js +0 -114
- package/dist/chunk-64JZJ7OK.js +0 -142
- package/dist/chunk-7ZJI3QU2.js +0 -132
- package/dist/chunk-CE4FJHQJ.js +0 -133
- package/dist/chunk-DTCAUBH5.js +0 -87
- package/dist/chunk-NTASPOHG.js +0 -106
- package/dist/chunk-OI2AMQLG.js +0 -152
- package/dist/chunk-Q7HUE44H.js +0 -106
- package/dist/chunk-QH3LOWXU.js +0 -155
- package/dist/chunk-QIVAK6BH.js +0 -103
- package/dist/chunk-V34XPVGK.js +0 -103
- package/dist/chunk-VK7ZPMO7.js +0 -221
- package/dist/chunk-X6CNUW6T.js +0 -136
- package/dist/chunk-YFGSHW5S.js +0 -121
- package/dist/chunk-ZAJVSE7J.js +0 -90
- package/docs/ADAPTERS.md +0 -946
- package/docs/PATTERNS.md +0 -836
- package/src/adapters/tier-1/angular.ts +0 -223
- package/src/adapters/tier-1/index.ts +0 -12
- package/src/adapters/tier-1/qwik.ts +0 -177
- package/src/adapters/tier-1/react.ts +0 -330
- package/src/adapters/tier-1/solid.ts +0 -222
- package/src/adapters/tier-1/svelte.ts +0 -211
- package/src/adapters/tier-1/vue.ts +0 -234
- package/src/adapters/tier-2/index.ts +0 -12
- package/src/adapters/tier-2/inferno.ts +0 -149
- package/src/adapters/tier-2/lit.ts +0 -191
- package/src/adapters/tier-2/marko.ts +0 -199
- package/src/adapters/tier-2/mithril.ts +0 -152
- package/src/adapters/tier-2/preact.ts +0 -133
- package/src/adapters/tier-2/stencil.ts +0 -214
- package/src/adapters/tier-3/alpine.ts +0 -218
- package/src/adapters/tier-3/hotwire.ts +0 -254
- package/src/adapters/tier-3/htmx.ts +0 -263
- package/src/adapters/tier-3/index.ts +0 -12
- package/src/adapters/tier-3/petite-vue.ts +0 -163
- package/src/adapters/tier-3/stimulus.ts +0 -233
- package/src/adapters/tier-3/vanilla.ts +0 -252
- package/src/ambient.d.ts +0 -310
- package/src/core/adapter.ts +0 -366
- package/src/core/index.ts +0 -56
- package/src/core/registry.ts +0 -518
- package/src/core/types.ts +0 -461
- package/src/htmx.ts +0 -134
- package/src/index.ts +0 -263
- package/test/__mocks__/stencil-core.ts +0 -19
- package/test/__mocks__/stencil-hydrate.ts +0 -15
- package/test/adapters/tier-1.test.ts +0 -206
- package/test/adapters/tier-2.test.ts +0 -175
- package/test/adapters/tier-3.test.ts +0 -284
- package/test/contracts/adapter.contract.ts +0 -293
- package/test/core/core.test.ts +0 -310
- package/test/errors/error-handling.test.ts +0 -454
- package/test/integration/htmx.integration.test.ts +0 -246
- package/test/integration/react.integration.test.ts +0 -271
- package/test/integration/registry.integration.test.ts +0 -308
- package/tsconfig.json +0 -22
- package/tsup.config.ts +0 -93
- package/vitest.config.ts +0 -101
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flightdev/ui",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Flight Universal UI
|
|
3
|
+
"version": "4.0.0",
|
|
4
|
+
"description": "Flight Universal UI Core - Base types, adapters, and registry for 18+ UI frameworks",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -14,92 +14,11 @@
|
|
|
14
14
|
"./core": {
|
|
15
15
|
"types": "./dist/core/index.d.ts",
|
|
16
16
|
"import": "./dist/core/index.js"
|
|
17
|
-
},
|
|
18
|
-
"./react": {
|
|
19
|
-
"types": "./dist/adapters/tier-1/react.d.ts",
|
|
20
|
-
"import": "./dist/adapters/tier-1/react.js"
|
|
21
|
-
},
|
|
22
|
-
"./vue": {
|
|
23
|
-
"types": "./dist/adapters/tier-1/vue.d.ts",
|
|
24
|
-
"import": "./dist/adapters/tier-1/vue.js"
|
|
25
|
-
},
|
|
26
|
-
"./angular": {
|
|
27
|
-
"types": "./dist/adapters/tier-1/angular.d.ts",
|
|
28
|
-
"import": "./dist/adapters/tier-1/angular.js"
|
|
29
|
-
},
|
|
30
|
-
"./svelte": {
|
|
31
|
-
"types": "./dist/adapters/tier-1/svelte.d.ts",
|
|
32
|
-
"import": "./dist/adapters/tier-1/svelte.js"
|
|
33
|
-
},
|
|
34
|
-
"./solid": {
|
|
35
|
-
"types": "./dist/adapters/tier-1/solid.d.ts",
|
|
36
|
-
"import": "./dist/adapters/tier-1/solid.js"
|
|
37
|
-
},
|
|
38
|
-
"./qwik": {
|
|
39
|
-
"types": "./dist/adapters/tier-1/qwik.d.ts",
|
|
40
|
-
"import": "./dist/adapters/tier-1/qwik.js"
|
|
41
|
-
},
|
|
42
|
-
"./preact": {
|
|
43
|
-
"types": "./dist/adapters/tier-2/preact.d.ts",
|
|
44
|
-
"import": "./dist/adapters/tier-2/preact.js"
|
|
45
|
-
},
|
|
46
|
-
"./lit": {
|
|
47
|
-
"types": "./dist/adapters/tier-2/lit.d.ts",
|
|
48
|
-
"import": "./dist/adapters/tier-2/lit.js"
|
|
49
|
-
},
|
|
50
|
-
"./marko": {
|
|
51
|
-
"types": "./dist/adapters/tier-2/marko.d.ts",
|
|
52
|
-
"import": "./dist/adapters/tier-2/marko.js"
|
|
53
|
-
},
|
|
54
|
-
"./stencil": {
|
|
55
|
-
"types": "./dist/adapters/tier-2/stencil.d.ts",
|
|
56
|
-
"import": "./dist/adapters/tier-2/stencil.js"
|
|
57
|
-
},
|
|
58
|
-
"./mithril": {
|
|
59
|
-
"types": "./dist/adapters/tier-2/mithril.d.ts",
|
|
60
|
-
"import": "./dist/adapters/tier-2/mithril.js"
|
|
61
|
-
},
|
|
62
|
-
"./inferno": {
|
|
63
|
-
"types": "./dist/adapters/tier-2/inferno.d.ts",
|
|
64
|
-
"import": "./dist/adapters/tier-2/inferno.js"
|
|
65
|
-
},
|
|
66
|
-
"./htmx": {
|
|
67
|
-
"types": "./dist/adapters/tier-3/htmx.d.ts",
|
|
68
|
-
"import": "./dist/adapters/tier-3/htmx.js"
|
|
69
|
-
},
|
|
70
|
-
"./alpine": {
|
|
71
|
-
"types": "./dist/adapters/tier-3/alpine.d.ts",
|
|
72
|
-
"import": "./dist/adapters/tier-3/alpine.js"
|
|
73
|
-
},
|
|
74
|
-
"./hotwire": {
|
|
75
|
-
"types": "./dist/adapters/tier-3/hotwire.d.ts",
|
|
76
|
-
"import": "./dist/adapters/tier-3/hotwire.js"
|
|
77
|
-
},
|
|
78
|
-
"./stimulus": {
|
|
79
|
-
"types": "./dist/adapters/tier-3/stimulus.d.ts",
|
|
80
|
-
"import": "./dist/adapters/tier-3/stimulus.js"
|
|
81
|
-
},
|
|
82
|
-
"./petite-vue": {
|
|
83
|
-
"types": "./dist/adapters/tier-3/petite-vue.d.ts",
|
|
84
|
-
"import": "./dist/adapters/tier-3/petite-vue.js"
|
|
85
|
-
},
|
|
86
|
-
"./vanilla": {
|
|
87
|
-
"types": "./dist/adapters/tier-3/vanilla.d.ts",
|
|
88
|
-
"import": "./dist/adapters/tier-3/vanilla.js"
|
|
89
|
-
},
|
|
90
|
-
"./tier-1": {
|
|
91
|
-
"types": "./dist/adapters/tier-1/index.d.ts",
|
|
92
|
-
"import": "./dist/adapters/tier-1/index.js"
|
|
93
|
-
},
|
|
94
|
-
"./tier-2": {
|
|
95
|
-
"types": "./dist/adapters/tier-2/index.d.ts",
|
|
96
|
-
"import": "./dist/adapters/tier-2/index.js"
|
|
97
|
-
},
|
|
98
|
-
"./tier-3": {
|
|
99
|
-
"types": "./dist/adapters/tier-3/index.d.ts",
|
|
100
|
-
"import": "./dist/adapters/tier-3/index.js"
|
|
101
17
|
}
|
|
102
18
|
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist"
|
|
21
|
+
],
|
|
103
22
|
"keywords": [
|
|
104
23
|
"flight",
|
|
105
24
|
"ui",
|
|
@@ -107,21 +26,6 @@
|
|
|
107
26
|
"hydration",
|
|
108
27
|
"streaming",
|
|
109
28
|
"islands",
|
|
110
|
-
"react",
|
|
111
|
-
"vue",
|
|
112
|
-
"angular",
|
|
113
|
-
"svelte",
|
|
114
|
-
"solid",
|
|
115
|
-
"qwik",
|
|
116
|
-
"preact",
|
|
117
|
-
"lit",
|
|
118
|
-
"marko",
|
|
119
|
-
"stencil",
|
|
120
|
-
"htmx",
|
|
121
|
-
"alpine",
|
|
122
|
-
"hotwire",
|
|
123
|
-
"stimulus",
|
|
124
|
-
"web-components",
|
|
125
29
|
"universal",
|
|
126
30
|
"framework-agnostic"
|
|
127
31
|
],
|
|
@@ -134,94 +38,14 @@
|
|
|
134
38
|
"typescript": "^5.7.0",
|
|
135
39
|
"vitest": "^2.0.0"
|
|
136
40
|
},
|
|
137
|
-
"peerDependencies": {
|
|
138
|
-
"react": ">=18.0.0",
|
|
139
|
-
"react-dom": ">=18.0.0",
|
|
140
|
-
"vue": ">=3.0.0",
|
|
141
|
-
"@angular/core": ">=17.0.0",
|
|
142
|
-
"@angular/platform-server": ">=17.0.0",
|
|
143
|
-
"@angular/platform-browser": ">=17.0.0",
|
|
144
|
-
"svelte": ">=4.0.0",
|
|
145
|
-
"solid-js": ">=1.0.0",
|
|
146
|
-
"@builder.io/qwik": ">=1.0.0",
|
|
147
|
-
"preact": ">=10.0.0",
|
|
148
|
-
"lit": ">=3.0.0",
|
|
149
|
-
"@lit-labs/ssr": ">=3.0.0",
|
|
150
|
-
"marko": ">=5.0.0",
|
|
151
|
-
"@stencil/core": ">=4.0.0",
|
|
152
|
-
"mithril": ">=2.0.0",
|
|
153
|
-
"inferno": ">=8.0.0",
|
|
154
|
-
"@hotwired/turbo": ">=8.0.0",
|
|
155
|
-
"@hotwired/stimulus": ">=3.0.0",
|
|
156
|
-
"petite-vue": ">=0.4.0"
|
|
157
|
-
},
|
|
158
|
-
"peerDependenciesMeta": {
|
|
159
|
-
"react": {
|
|
160
|
-
"optional": true
|
|
161
|
-
},
|
|
162
|
-
"react-dom": {
|
|
163
|
-
"optional": true
|
|
164
|
-
},
|
|
165
|
-
"vue": {
|
|
166
|
-
"optional": true
|
|
167
|
-
},
|
|
168
|
-
"@angular/core": {
|
|
169
|
-
"optional": true
|
|
170
|
-
},
|
|
171
|
-
"@angular/platform-server": {
|
|
172
|
-
"optional": true
|
|
173
|
-
},
|
|
174
|
-
"@angular/platform-browser": {
|
|
175
|
-
"optional": true
|
|
176
|
-
},
|
|
177
|
-
"svelte": {
|
|
178
|
-
"optional": true
|
|
179
|
-
},
|
|
180
|
-
"solid-js": {
|
|
181
|
-
"optional": true
|
|
182
|
-
},
|
|
183
|
-
"@builder.io/qwik": {
|
|
184
|
-
"optional": true
|
|
185
|
-
},
|
|
186
|
-
"preact": {
|
|
187
|
-
"optional": true
|
|
188
|
-
},
|
|
189
|
-
"lit": {
|
|
190
|
-
"optional": true
|
|
191
|
-
},
|
|
192
|
-
"@lit-labs/ssr": {
|
|
193
|
-
"optional": true
|
|
194
|
-
},
|
|
195
|
-
"marko": {
|
|
196
|
-
"optional": true
|
|
197
|
-
},
|
|
198
|
-
"@stencil/core": {
|
|
199
|
-
"optional": true
|
|
200
|
-
},
|
|
201
|
-
"mithril": {
|
|
202
|
-
"optional": true
|
|
203
|
-
},
|
|
204
|
-
"inferno": {
|
|
205
|
-
"optional": true
|
|
206
|
-
},
|
|
207
|
-
"@hotwired/turbo": {
|
|
208
|
-
"optional": true
|
|
209
|
-
},
|
|
210
|
-
"@hotwired/stimulus": {
|
|
211
|
-
"optional": true
|
|
212
|
-
},
|
|
213
|
-
"petite-vue": {
|
|
214
|
-
"optional": true
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
41
|
"engines": {
|
|
218
42
|
"node": ">=20.0.0"
|
|
219
43
|
},
|
|
220
44
|
"homepage": "https://github.com/EliosLT/FlightDev",
|
|
221
45
|
"repository": {
|
|
46
|
+
"type": "git",
|
|
222
47
|
"url": "https://github.com/EliosLT/FlightDev.git",
|
|
223
|
-
"directory": "packages/ui"
|
|
224
|
-
"type": "git"
|
|
48
|
+
"directory": "packages/ui"
|
|
225
49
|
},
|
|
226
50
|
"scripts": {
|
|
227
51
|
"build": "tsup",
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @flightdev/ui@2.0.1 build E:\testear framework\Flight\packages\ui
|
|
3
|
-
> tsup
|
|
4
|
-
|
|
5
|
-
[34mCLI[39m Building entry: src/index.ts, src/core/index.ts, src/adapters/tier-1/angular.ts, src/adapters/tier-1/index.ts, src/adapters/tier-1/qwik.ts, src/adapters/tier-1/react.ts, src/adapters/tier-1/solid.ts, src/adapters/tier-1/svelte.ts, src/adapters/tier-1/vue.ts, src/adapters/tier-2/index.ts, src/adapters/tier-2/inferno.ts, src/adapters/tier-2/lit.ts, src/adapters/tier-2/marko.ts, src/adapters/tier-2/mithril.ts, src/adapters/tier-2/preact.ts, src/adapters/tier-2/stencil.ts, src/adapters/tier-3/alpine.ts, src/adapters/tier-3/hotwire.ts, src/adapters/tier-3/htmx.ts, src/adapters/tier-3/index.ts, src/adapters/tier-3/petite-vue.ts, src/adapters/tier-3/stimulus.ts, src/adapters/tier-3/vanilla.ts
|
|
6
|
-
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
|
-
[34mCLI[39m tsup v8.5.1
|
|
8
|
-
[34mCLI[39m Using tsup config: E:\testear framework\Flight\packages\ui\tsup.config.ts
|
|
9
|
-
[34mCLI[39m Target: node20
|
|
10
|
-
[34mCLI[39m Cleaning output folder
|
|
11
|
-
[34mESM[39m Build start
|
|
12
|
-
[34mDTS[39m Build start
|
|
13
|
-
[32mESM[39m [1mdist\adapters\tier-3\alpine.js [22m[32m156.00 B[39m
|
|
14
|
-
[32mESM[39m [1mdist\adapters\tier-3\htmx.js [22m[32m164.00 B[39m
|
|
15
|
-
[32mESM[39m [1mdist\adapters\tier-3\hotwire.js [22m[32m174.00 B[39m
|
|
16
|
-
[32mESM[39m [1mdist\chunk-Q7HUE44H.js [22m[32m3.03 KB[39m
|
|
17
|
-
[32mESM[39m [1mdist\adapters\tier-3\index.js [22m[32m638.00 B[39m
|
|
18
|
-
[32mESM[39m [1mdist\adapters\tier-3\petite-vue.js [22m[32m155.00 B[39m
|
|
19
|
-
[32mESM[39m [1mdist\adapters\tier-1\vue.js [22m[32m117.00 B[39m
|
|
20
|
-
[32mESM[39m [1mdist\chunk-4PZDNFL7.js [22m[32m4.15 KB[39m
|
|
21
|
-
[32mESM[39m [1mdist\chunk-ZAJVSE7J.js [22m[32m2.42 KB[39m
|
|
22
|
-
[32mESM[39m [1mdist\adapters\tier-2\index.js [22m[32m422.00 B[39m
|
|
23
|
-
[32mESM[39m [1mdist\chunk-CE4FJHQJ.js [22m[32m3.75 KB[39m
|
|
24
|
-
[32mESM[39m [1mdist\adapters\tier-2\inferno.js [22m[32m129.00 B[39m
|
|
25
|
-
[32mESM[39m [1mdist\chunk-OI2AMQLG.js [22m[32m4.29 KB[39m
|
|
26
|
-
[32mESM[39m [1mdist\chunk-QIVAK6BH.js [22m[32m2.83 KB[39m
|
|
27
|
-
[32mESM[39m [1mdist\adapters\tier-2\lit.js [22m[32m117.00 B[39m
|
|
28
|
-
[32mESM[39m [1mdist\adapters\tier-2\marko.js [22m[32m123.00 B[39m
|
|
29
|
-
[32mESM[39m [1mdist\adapters\tier-2\mithril.js [22m[32m129.00 B[39m
|
|
30
|
-
[32mESM[39m [1mdist\chunk-YFGSHW5S.js [22m[32m3.68 KB[39m
|
|
31
|
-
[32mESM[39m [1mdist\adapters\tier-2\stencil.js [22m[32m129.00 B[39m
|
|
32
|
-
[32mESM[39m [1mdist\chunk-7ZJI3QU2.js [22m[32m3.72 KB[39m
|
|
33
|
-
[32mESM[39m [1mdist\core\index.js [22m[32m228.00 B[39m
|
|
34
|
-
[32mESM[39m [1mdist\chunk-V34XPVGK.js [22m[32m2.76 KB[39m
|
|
35
|
-
[32mESM[39m [1mdist\chunk-5IBLFTYL.js [22m[32m2.80 KB[39m
|
|
36
|
-
[32mESM[39m [1mdist\chunk-DTCAUBH5.js [22m[32m2.21 KB[39m
|
|
37
|
-
[32mESM[39m [1mdist\adapters\tier-1\angular.js [22m[32m129.00 B[39m
|
|
38
|
-
[32mESM[39m [1mdist\chunk-3HU6GSQ4.js [22m[32m3.89 KB[39m
|
|
39
|
-
[32mESM[39m [1mdist\adapters\tier-1\qwik.js [22m[32m120.00 B[39m
|
|
40
|
-
[32mESM[39m [1mdist\adapters\tier-1\index.js [22m[32m412.00 B[39m
|
|
41
|
-
[32mESM[39m [1mdist\adapters\tier-2\preact.js [22m[32m126.00 B[39m
|
|
42
|
-
[32mESM[39m [1mdist\adapters\tier-3\stimulus.js [22m[32m160.00 B[39m
|
|
43
|
-
[32mESM[39m [1mdist\adapters\tier-1\solid.js [22m[32m123.00 B[39m
|
|
44
|
-
[32mESM[39m [1mdist\adapters\tier-3\vanilla.js [22m[32m167.00 B[39m
|
|
45
|
-
[32mESM[39m [1mdist\adapters\tier-1\react.js [22m[32m123.00 B[39m
|
|
46
|
-
[32mESM[39m [1mdist\chunk-3D4XMIZI.js [22m[32m3.82 KB[39m
|
|
47
|
-
[32mESM[39m [1mdist\index.js [22m[32m2.47 KB[39m
|
|
48
|
-
[32mESM[39m [1mdist\chunk-QH3LOWXU.js [22m[32m3.96 KB[39m
|
|
49
|
-
[32mESM[39m [1mdist\adapters\tier-1\svelte.js [22m[32m126.00 B[39m
|
|
50
|
-
[32mESM[39m [1mdist\chunk-XTDK7ME5.js [22m[32m10.12 KB[39m
|
|
51
|
-
[32mESM[39m [1mdist\chunk-64JZJ7OK.js [22m[32m3.82 KB[39m
|
|
52
|
-
[32mESM[39m [1mdist\chunk-VK7ZPMO7.js [22m[32m6.50 KB[39m
|
|
53
|
-
[32mESM[39m [1mdist\chunk-NTASPOHG.js [22m[32m2.95 KB[39m
|
|
54
|
-
[32mESM[39m [1mdist\chunk-X6CNUW6T.js [22m[32m3.56 KB[39m
|
|
55
|
-
[32mESM[39m [1mdist\chunk-2SNQ6PTM.js [22m[32m5.54 KB[39m
|
|
56
|
-
[32mESM[39m ⚡️ Build success in 986ms
|
|
57
|
-
[32mDTS[39m ⚡️ Build success in 13519ms
|
|
58
|
-
[32mDTS[39m [1mdist\adapters\tier-1\index.d.ts [22m[32m548.00 B[39m
|
|
59
|
-
[32mDTS[39m [1mdist\adapters\tier-2\index.d.ts [22m[32m563.00 B[39m
|
|
60
|
-
[32mDTS[39m [1mdist\adapters\tier-3\index.d.ts [22m[32m806.00 B[39m
|
|
61
|
-
[32mDTS[39m [1mdist\index.d.ts [22m[32m3.26 KB[39m
|
|
62
|
-
[32mDTS[39m [1mdist\adapters\tier-1\angular.d.ts [22m[32m1.87 KB[39m
|
|
63
|
-
[32mDTS[39m [1mdist\adapters\tier-1\qwik.d.ts [22m[32m1.67 KB[39m
|
|
64
|
-
[32mDTS[39m [1mdist\adapters\tier-1\react.d.ts [22m[32m2.27 KB[39m
|
|
65
|
-
[32mDTS[39m [1mdist\adapters\tier-1\solid.d.ts [22m[32m1.50 KB[39m
|
|
66
|
-
[32mDTS[39m [1mdist\adapters\tier-1\svelte.d.ts [22m[32m1.41 KB[39m
|
|
67
|
-
[32mDTS[39m [1mdist\adapters\tier-1\vue.d.ts [22m[32m1.57 KB[39m
|
|
68
|
-
[32mDTS[39m [1mdist\adapters\tier-2\inferno.d.ts [22m[32m1.06 KB[39m
|
|
69
|
-
[32mDTS[39m [1mdist\adapters\tier-2\lit.d.ts [22m[32m1.19 KB[39m
|
|
70
|
-
[32mDTS[39m [1mdist\adapters\tier-2\marko.d.ts [22m[32m2.01 KB[39m
|
|
71
|
-
[32mDTS[39m [1mdist\adapters\tier-2\mithril.d.ts [22m[32m1.05 KB[39m
|
|
72
|
-
[32mDTS[39m [1mdist\adapters\tier-2\preact.d.ts [22m[32m1.11 KB[39m
|
|
73
|
-
[32mDTS[39m [1mdist\adapters\tier-2\stencil.d.ts [22m[32m1.65 KB[39m
|
|
74
|
-
[32mDTS[39m [1mdist\adapters\tier-3\alpine.d.ts [22m[32m2.23 KB[39m
|
|
75
|
-
[32mDTS[39m [1mdist\adapters\tier-3\hotwire.d.ts [22m[32m2.24 KB[39m
|
|
76
|
-
[32mDTS[39m [1mdist\adapters\tier-3\htmx.d.ts [22m[32m2.59 KB[39m
|
|
77
|
-
[32mDTS[39m [1mdist\adapters\tier-3\petite-vue.d.ts [22m[32m1.73 KB[39m
|
|
78
|
-
[32mDTS[39m [1mdist\adapters\tier-3\stimulus.d.ts [22m[32m1.95 KB[39m
|
|
79
|
-
[32mDTS[39m [1mdist\adapters\tier-3\vanilla.d.ts [22m[32m2.06 KB[39m
|
|
80
|
-
[32mDTS[39m [1mdist\core\index.d.ts [22m[32m4.54 KB[39m
|
|
81
|
-
[32mDTS[39m [1mdist\adapter-MMD-iHNx.d.ts [22m[32m12.96 KB[39m
|
package/.turbo/turbo-lint.log
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @flight-framework/ui@2.0.0 lint E:\testear framework\Flight\packages\ui
|
|
3
|
-
> eslint src test
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
E:\testear framework\Flight\packages\ui\src\adapters\tier-1\angular.ts
|
|
7
|
-
78:21 warning 'provideClientHydration' is assigned a value but never used @typescript-eslint/no-unused-vars
|
|
8
|
-
|
|
9
|
-
E:\testear framework\Flight\packages\ui\src\adapters\tier-1\solid.ts
|
|
10
|
-
69:15 warning 'App' is assigned a value but never used @typescript-eslint/no-unused-vars
|
|
11
|
-
103:27 warning 'App' is assigned a value but never used @typescript-eslint/no-unused-vars
|
|
12
|
-
|
|
13
|
-
E:\testear framework\Flight\packages\ui\src\adapters\tier-3\hotwire.ts
|
|
14
|
-
95:13 warning 'turboFrames' is assigned a value but never used @typescript-eslint/no-unused-vars
|
|
15
|
-
96:13 warning 'turboStreams' is assigned a value but never used @typescript-eslint/no-unused-vars
|
|
16
|
-
|
|
17
|
-
E:\testear framework\Flight\packages\ui\src\core\adapter.ts
|
|
18
|
-
23:5 warning 'DEFAULT_CAPABILITIES' is defined but never used @typescript-eslint/no-unused-vars
|
|
19
|
-
|
|
20
|
-
E:\testear framework\Flight\packages\ui\test\__mocks__\stencil-core.ts
|
|
21
|
-
8:28 warning 'target' is defined but never used. Allowed unused args must match /^_/u @typescript-eslint/no-unused-vars
|
|
22
|
-
8:45 warning 'key' is defined but never used. Allowed unused args must match /^_/u @typescript-eslint/no-unused-vars
|
|
23
|
-
|
|
24
|
-
E:\testear framework\Flight\packages\ui\test\adapters\tier-1.test.ts
|
|
25
|
-
8:32 warning 'vi' is defined but never used @typescript-eslint/no-unused-vars
|
|
26
|
-
|
|
27
|
-
E:\testear framework\Flight\packages\ui\test\core\core.test.ts
|
|
28
|
-
13:15 warning 'AdapterCapabilities' is defined but never used @typescript-eslint/no-unused-vars
|
|
29
|
-
|
|
30
|
-
E:\testear framework\Flight\packages\ui\test\errors\error-handling.test.ts
|
|
31
|
-
10:44 warning 'vi' is defined but never used @typescript-eslint/no-unused-vars
|
|
32
|
-
|
|
33
|
-
E:\testear framework\Flight\packages\ui\test\integration\react.integration.test.ts
|
|
34
|
-
12:40 warning 'RenderContext' is defined but never used @typescript-eslint/no-unused-vars
|
|
35
|
-
|
|
36
|
-
E:\testear framework\Flight\packages\ui\test\integration\registry.integration.test.ts
|
|
37
|
-
10:32 warning 'beforeEach' is defined but never used @typescript-eslint/no-unused-vars
|
|
38
|
-
|
|
39
|
-
✖ 13 problems (0 errors, 13 warnings)
|
|
40
|
-
|
package/TESTING.md
DELETED
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
# @flightdev/ui Testing Guide
|
|
2
|
-
|
|
3
|
-
This document describes how to run tests, add new tests, and maintain coverage for the UI package.
|
|
4
|
-
|
|
5
|
-
## Quick Start
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
# Run all tests
|
|
9
|
-
pnpm --filter @flightdev/ui test
|
|
10
|
-
|
|
11
|
-
# Run with coverage
|
|
12
|
-
pnpm --filter @flightdev/ui test:coverage
|
|
13
|
-
|
|
14
|
-
# Run specific test file
|
|
15
|
-
pnpm --filter @flightdev/ui test -- --testPathPattern="react"
|
|
16
|
-
|
|
17
|
-
# Watch mode (development)
|
|
18
|
-
pnpm --filter @flightdev/ui test:watch
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Test Structure
|
|
22
|
-
|
|
23
|
-
```
|
|
24
|
-
packages/ui/test/
|
|
25
|
-
├── __mocks__/ # Framework mocks
|
|
26
|
-
├── adapters/ # Framework-specific adapter tests
|
|
27
|
-
├── contracts/ # Interface contract tests
|
|
28
|
-
├── core/ # Core functionality tests
|
|
29
|
-
├── errors/ # Error handling tests
|
|
30
|
-
└── integration/ # Integration tests
|
|
31
|
-
├── react.integration.test.ts
|
|
32
|
-
├── htmx.integration.test.ts
|
|
33
|
-
└── registry.integration.test.ts
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
## Coverage Requirements
|
|
37
|
-
|
|
38
|
-
| Metric | Threshold |
|
|
39
|
-
|--------|-----------|
|
|
40
|
-
| Statements | 60% |
|
|
41
|
-
| Branches | 50% |
|
|
42
|
-
| Functions | 60% |
|
|
43
|
-
| Lines | 60% |
|
|
44
|
-
|
|
45
|
-
Tests will fail if coverage drops below these thresholds.
|
|
46
|
-
|
|
47
|
-
## Adding New Adapter Tests
|
|
48
|
-
|
|
49
|
-
When creating a new adapter, add tests in `test/adapters/`:
|
|
50
|
-
|
|
51
|
-
```typescript
|
|
52
|
-
// test/adapters/my-framework.test.ts
|
|
53
|
-
import { describe, it, expect } from 'vitest';
|
|
54
|
-
import { myFramework } from '../../src/adapters/my-framework.js';
|
|
55
|
-
|
|
56
|
-
describe('MyFramework Adapter', () => {
|
|
57
|
-
it('has correct identity', () => {
|
|
58
|
-
const adapter = myFramework();
|
|
59
|
-
expect(adapter.id).toBe('my-framework');
|
|
60
|
-
expect(adapter.tier).toBe('tier-2');
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
it('renders to string', async () => {
|
|
64
|
-
const adapter = myFramework();
|
|
65
|
-
const result = await adapter.renderToString({
|
|
66
|
-
component: () => '<div>Test</div>',
|
|
67
|
-
props: {},
|
|
68
|
-
});
|
|
69
|
-
expect(result.html).toContain('Test');
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
## Integration Tests
|
|
75
|
-
|
|
76
|
-
Integration tests verify real-world scenarios across the adapter system:
|
|
77
|
-
|
|
78
|
-
- **React**: SSR, hydration, streaming, islands
|
|
79
|
-
- **HTMX**: HTML-first rendering, hx-* attributes
|
|
80
|
-
- **Registry**: Dynamic loading, capability queries, tier filtering
|
|
81
|
-
|
|
82
|
-
## CI/CD Integration
|
|
83
|
-
|
|
84
|
-
Tests run automatically on:
|
|
85
|
-
- Push to `main` or `develop`
|
|
86
|
-
- Pull requests affecting `packages/ui/**`
|
|
87
|
-
|
|
88
|
-
Coverage reports upload to Codecov on Node 20 builds.
|
|
89
|
-
|
|
90
|
-
## Mocking Framework Dependencies
|
|
91
|
-
|
|
92
|
-
External frameworks are mocked to avoid installation:
|
|
93
|
-
|
|
94
|
-
```typescript
|
|
95
|
-
// vitest.config.ts
|
|
96
|
-
build: {
|
|
97
|
-
rollupOptions: {
|
|
98
|
-
external: ['react', 'vue', 'svelte', ...]
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
Add mocks in `test/__mocks__/` for frameworks that need custom mock behavior.
|
|
104
|
-
|
|
105
|
-
## Common Commands
|
|
106
|
-
|
|
107
|
-
| Command | Description |
|
|
108
|
-
|---------|-------------|
|
|
109
|
-
| `pnpm test` | Run all tests once |
|
|
110
|
-
| `pnpm test:coverage` | Run with coverage report |
|
|
111
|
-
| `pnpm test:watch` | Watch mode for development |
|
|
112
|
-
| `pnpm test -- --reporter=verbose` | Verbose output |
|
|
113
|
-
|
|
114
|
-
## Troubleshooting
|
|
115
|
-
|
|
116
|
-
**Tests hanging**: Check for unhandled async operations or increase timeout:
|
|
117
|
-
```typescript
|
|
118
|
-
// vitest.config.ts
|
|
119
|
-
testTimeout: 15000 // 15 seconds
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
**Coverage too low**: Focus on untested branches and edge cases in `src/core/` and `src/adapters/`.
|
|
123
|
-
|
|
124
|
-
**Mock issues**: Ensure framework mocks return expected structure per `UIAdapterV2` interface.
|