@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.
Files changed (120) hide show
  1. package/README.md +283 -68
  2. package/dist/{chunk-XTDK7ME5.js → chunk-S4DTUQII.js} +246 -19
  3. package/dist/chunk-S4DTUQII.js.map +1 -0
  4. package/dist/core/index.d.ts +423 -3
  5. package/dist/core/index.js +23 -2
  6. package/dist/core/index.js.map +1 -0
  7. package/dist/index.d.ts +2 -3
  8. package/dist/index.js +29 -5
  9. package/dist/index.js.map +1 -0
  10. package/package.json +7 -183
  11. package/.turbo/turbo-build.log +0 -81
  12. package/.turbo/turbo-lint.log +0 -40
  13. package/.turbo/turbo-typecheck.log +0 -4
  14. package/TESTING.md +0 -124
  15. package/dist/adapter-MMD-iHNx.d.ts +0 -424
  16. package/dist/adapters/tier-1/angular.d.ts +0 -60
  17. package/dist/adapters/tier-1/angular.js +0 -2
  18. package/dist/adapters/tier-1/index.d.ts +0 -7
  19. package/dist/adapters/tier-1/index.js +0 -7
  20. package/dist/adapters/tier-1/qwik.d.ts +0 -55
  21. package/dist/adapters/tier-1/qwik.js +0 -2
  22. package/dist/adapters/tier-1/react.d.ts +0 -67
  23. package/dist/adapters/tier-1/react.js +0 -2
  24. package/dist/adapters/tier-1/solid.d.ts +0 -45
  25. package/dist/adapters/tier-1/solid.js +0 -2
  26. package/dist/adapters/tier-1/svelte.d.ts +0 -48
  27. package/dist/adapters/tier-1/svelte.js +0 -2
  28. package/dist/adapters/tier-1/vue.d.ts +0 -47
  29. package/dist/adapters/tier-1/vue.js +0 -2
  30. package/dist/adapters/tier-2/index.d.ts +0 -7
  31. package/dist/adapters/tier-2/index.js +0 -7
  32. package/dist/adapters/tier-2/inferno.d.ts +0 -31
  33. package/dist/adapters/tier-2/inferno.js +0 -2
  34. package/dist/adapters/tier-2/lit.d.ts +0 -34
  35. package/dist/adapters/tier-2/lit.js +0 -2
  36. package/dist/adapters/tier-2/marko.d.ts +0 -59
  37. package/dist/adapters/tier-2/marko.js +0 -2
  38. package/dist/adapters/tier-2/mithril.d.ts +0 -31
  39. package/dist/adapters/tier-2/mithril.js +0 -2
  40. package/dist/adapters/tier-2/preact.d.ts +0 -33
  41. package/dist/adapters/tier-2/preact.js +0 -2
  42. package/dist/adapters/tier-2/stencil.d.ts +0 -52
  43. package/dist/adapters/tier-2/stencil.js +0 -2
  44. package/dist/adapters/tier-3/alpine.d.ts +0 -73
  45. package/dist/adapters/tier-3/alpine.js +0 -2
  46. package/dist/adapters/tier-3/hotwire.d.ts +0 -71
  47. package/dist/adapters/tier-3/hotwire.js +0 -2
  48. package/dist/adapters/tier-3/htmx.d.ts +0 -88
  49. package/dist/adapters/tier-3/htmx.js +0 -2
  50. package/dist/adapters/tier-3/index.d.ts +0 -7
  51. package/dist/adapters/tier-3/index.js +0 -7
  52. package/dist/adapters/tier-3/petite-vue.d.ts +0 -56
  53. package/dist/adapters/tier-3/petite-vue.js +0 -2
  54. package/dist/adapters/tier-3/stimulus.d.ts +0 -63
  55. package/dist/adapters/tier-3/stimulus.js +0 -2
  56. package/dist/adapters/tier-3/vanilla.d.ts +0 -63
  57. package/dist/adapters/tier-3/vanilla.js +0 -2
  58. package/dist/chunk-2SNQ6PTM.js +0 -217
  59. package/dist/chunk-3D4XMIZI.js +0 -136
  60. package/dist/chunk-3HU6GSQ4.js +0 -125
  61. package/dist/chunk-4PZDNFL7.js +0 -148
  62. package/dist/chunk-5IBLFTYL.js +0 -114
  63. package/dist/chunk-64JZJ7OK.js +0 -142
  64. package/dist/chunk-7ZJI3QU2.js +0 -132
  65. package/dist/chunk-CE4FJHQJ.js +0 -133
  66. package/dist/chunk-DTCAUBH5.js +0 -87
  67. package/dist/chunk-NTASPOHG.js +0 -106
  68. package/dist/chunk-OI2AMQLG.js +0 -152
  69. package/dist/chunk-Q7HUE44H.js +0 -106
  70. package/dist/chunk-QH3LOWXU.js +0 -155
  71. package/dist/chunk-QIVAK6BH.js +0 -103
  72. package/dist/chunk-V34XPVGK.js +0 -103
  73. package/dist/chunk-VK7ZPMO7.js +0 -221
  74. package/dist/chunk-X6CNUW6T.js +0 -136
  75. package/dist/chunk-YFGSHW5S.js +0 -121
  76. package/dist/chunk-ZAJVSE7J.js +0 -90
  77. package/docs/ADAPTERS.md +0 -946
  78. package/docs/PATTERNS.md +0 -836
  79. package/src/adapters/tier-1/angular.ts +0 -223
  80. package/src/adapters/tier-1/index.ts +0 -12
  81. package/src/adapters/tier-1/qwik.ts +0 -177
  82. package/src/adapters/tier-1/react.ts +0 -330
  83. package/src/adapters/tier-1/solid.ts +0 -222
  84. package/src/adapters/tier-1/svelte.ts +0 -211
  85. package/src/adapters/tier-1/vue.ts +0 -234
  86. package/src/adapters/tier-2/index.ts +0 -12
  87. package/src/adapters/tier-2/inferno.ts +0 -149
  88. package/src/adapters/tier-2/lit.ts +0 -191
  89. package/src/adapters/tier-2/marko.ts +0 -199
  90. package/src/adapters/tier-2/mithril.ts +0 -152
  91. package/src/adapters/tier-2/preact.ts +0 -133
  92. package/src/adapters/tier-2/stencil.ts +0 -214
  93. package/src/adapters/tier-3/alpine.ts +0 -218
  94. package/src/adapters/tier-3/hotwire.ts +0 -254
  95. package/src/adapters/tier-3/htmx.ts +0 -263
  96. package/src/adapters/tier-3/index.ts +0 -12
  97. package/src/adapters/tier-3/petite-vue.ts +0 -163
  98. package/src/adapters/tier-3/stimulus.ts +0 -233
  99. package/src/adapters/tier-3/vanilla.ts +0 -252
  100. package/src/ambient.d.ts +0 -310
  101. package/src/core/adapter.ts +0 -366
  102. package/src/core/index.ts +0 -56
  103. package/src/core/registry.ts +0 -518
  104. package/src/core/types.ts +0 -461
  105. package/src/htmx.ts +0 -134
  106. package/src/index.ts +0 -263
  107. package/test/__mocks__/stencil-core.ts +0 -19
  108. package/test/__mocks__/stencil-hydrate.ts +0 -15
  109. package/test/adapters/tier-1.test.ts +0 -206
  110. package/test/adapters/tier-2.test.ts +0 -175
  111. package/test/adapters/tier-3.test.ts +0 -284
  112. package/test/contracts/adapter.contract.ts +0 -293
  113. package/test/core/core.test.ts +0 -310
  114. package/test/errors/error-handling.test.ts +0 -454
  115. package/test/integration/htmx.integration.test.ts +0 -246
  116. package/test/integration/react.integration.test.ts +0 -271
  117. package/test/integration/registry.integration.test.ts +0 -308
  118. package/tsconfig.json +0 -22
  119. package/tsup.config.ts +0 -93
  120. package/vitest.config.ts +0 -101
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@flightdev/ui",
3
- "version": "2.0.1",
4
- "description": "Flight Universal UI Adapters - SSR/hydration for 18+ frameworks: React, Vue, Angular, Svelte, Solid, Qwik, Marko, Lit, HTMX, Alpine.js, Stencil, and more",
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",
@@ -1,81 +0,0 @@
1
-
2
- > @flightdev/ui@2.0.1 build E:\testear framework\Flight\packages\ui
3
- > tsup
4
-
5
- CLI 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
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.5.1
8
- CLI Using tsup config: E:\testear framework\Flight\packages\ui\tsup.config.ts
9
- CLI Target: node20
10
- CLI Cleaning output folder
11
- ESM Build start
12
- DTS Build start
13
- ESM dist\adapters\tier-3\alpine.js 156.00 B
14
- ESM dist\adapters\tier-3\htmx.js 164.00 B
15
- ESM dist\adapters\tier-3\hotwire.js 174.00 B
16
- ESM dist\chunk-Q7HUE44H.js 3.03 KB
17
- ESM dist\adapters\tier-3\index.js 638.00 B
18
- ESM dist\adapters\tier-3\petite-vue.js 155.00 B
19
- ESM dist\adapters\tier-1\vue.js 117.00 B
20
- ESM dist\chunk-4PZDNFL7.js 4.15 KB
21
- ESM dist\chunk-ZAJVSE7J.js 2.42 KB
22
- ESM dist\adapters\tier-2\index.js 422.00 B
23
- ESM dist\chunk-CE4FJHQJ.js 3.75 KB
24
- ESM dist\adapters\tier-2\inferno.js 129.00 B
25
- ESM dist\chunk-OI2AMQLG.js 4.29 KB
26
- ESM dist\chunk-QIVAK6BH.js 2.83 KB
27
- ESM dist\adapters\tier-2\lit.js 117.00 B
28
- ESM dist\adapters\tier-2\marko.js 123.00 B
29
- ESM dist\adapters\tier-2\mithril.js 129.00 B
30
- ESM dist\chunk-YFGSHW5S.js 3.68 KB
31
- ESM dist\adapters\tier-2\stencil.js 129.00 B
32
- ESM dist\chunk-7ZJI3QU2.js 3.72 KB
33
- ESM dist\core\index.js 228.00 B
34
- ESM dist\chunk-V34XPVGK.js 2.76 KB
35
- ESM dist\chunk-5IBLFTYL.js 2.80 KB
36
- ESM dist\chunk-DTCAUBH5.js 2.21 KB
37
- ESM dist\adapters\tier-1\angular.js 129.00 B
38
- ESM dist\chunk-3HU6GSQ4.js 3.89 KB
39
- ESM dist\adapters\tier-1\qwik.js 120.00 B
40
- ESM dist\adapters\tier-1\index.js 412.00 B
41
- ESM dist\adapters\tier-2\preact.js 126.00 B
42
- ESM dist\adapters\tier-3\stimulus.js 160.00 B
43
- ESM dist\adapters\tier-1\solid.js 123.00 B
44
- ESM dist\adapters\tier-3\vanilla.js 167.00 B
45
- ESM dist\adapters\tier-1\react.js 123.00 B
46
- ESM dist\chunk-3D4XMIZI.js 3.82 KB
47
- ESM dist\index.js 2.47 KB
48
- ESM dist\chunk-QH3LOWXU.js 3.96 KB
49
- ESM dist\adapters\tier-1\svelte.js 126.00 B
50
- ESM dist\chunk-XTDK7ME5.js 10.12 KB
51
- ESM dist\chunk-64JZJ7OK.js 3.82 KB
52
- ESM dist\chunk-VK7ZPMO7.js 6.50 KB
53
- ESM dist\chunk-NTASPOHG.js 2.95 KB
54
- ESM dist\chunk-X6CNUW6T.js 3.56 KB
55
- ESM dist\chunk-2SNQ6PTM.js 5.54 KB
56
- ESM ⚡️ Build success in 986ms
57
- DTS ⚡️ Build success in 13519ms
58
- DTS dist\adapters\tier-1\index.d.ts 548.00 B
59
- DTS dist\adapters\tier-2\index.d.ts 563.00 B
60
- DTS dist\adapters\tier-3\index.d.ts 806.00 B
61
- DTS dist\index.d.ts 3.26 KB
62
- DTS dist\adapters\tier-1\angular.d.ts 1.87 KB
63
- DTS dist\adapters\tier-1\qwik.d.ts 1.67 KB
64
- DTS dist\adapters\tier-1\react.d.ts 2.27 KB
65
- DTS dist\adapters\tier-1\solid.d.ts 1.50 KB
66
- DTS dist\adapters\tier-1\svelte.d.ts 1.41 KB
67
- DTS dist\adapters\tier-1\vue.d.ts 1.57 KB
68
- DTS dist\adapters\tier-2\inferno.d.ts 1.06 KB
69
- DTS dist\adapters\tier-2\lit.d.ts 1.19 KB
70
- DTS dist\adapters\tier-2\marko.d.ts 2.01 KB
71
- DTS dist\adapters\tier-2\mithril.d.ts 1.05 KB
72
- DTS dist\adapters\tier-2\preact.d.ts 1.11 KB
73
- DTS dist\adapters\tier-2\stencil.d.ts 1.65 KB
74
- DTS dist\adapters\tier-3\alpine.d.ts 2.23 KB
75
- DTS dist\adapters\tier-3\hotwire.d.ts 2.24 KB
76
- DTS dist\adapters\tier-3\htmx.d.ts 2.59 KB
77
- DTS dist\adapters\tier-3\petite-vue.d.ts 1.73 KB
78
- DTS dist\adapters\tier-3\stimulus.d.ts 1.95 KB
79
- DTS dist\adapters\tier-3\vanilla.d.ts 2.06 KB
80
- DTS dist\core\index.d.ts 4.54 KB
81
- DTS dist\adapter-MMD-iHNx.d.ts 12.96 KB
@@ -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
-
@@ -1,4 +0,0 @@
1
-
2
- > @flight-framework/ui@2.0.0 typecheck E:\testear framework\Flight\packages\ui
3
- > tsc --noEmit
4
-
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.