@tachui/core 0.7.0-alpha1 → 0.7.1-alpha

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 (947) hide show
  1. package/README.md +195 -0
  2. package/dist/ScrollView-h-6wYMAm.js +515 -0
  3. package/dist/Spacer-BbteDQ9I.js +5337 -0
  4. package/dist/binding-CmdpowkI.js +2276 -0
  5. package/dist/bundles/minimal.d.ts +30 -4
  6. package/dist/bundles/minimal.d.ts.map +1 -1
  7. package/dist/common.js +825 -954
  8. package/dist/compiler/index.js +1386 -10
  9. package/dist/components/index.js +4166 -101
  10. package/dist/concatenated-component-DPcl2TEO.js +6779 -0
  11. package/dist/{runtime/context.js → context--zQFIImS.js} +65 -71
  12. package/dist/debug.js +0 -1
  13. package/dist/dom-bridge-Cx-s6Ihx.js +406 -0
  14. package/dist/effect-CytAc9em.js +66 -0
  15. package/dist/essential.js +825 -954
  16. package/dist/index-Nfi2SBQh.js +3268 -0
  17. package/dist/index.js +825 -954
  18. package/dist/minimal-prod.js +162 -191
  19. package/dist/minimal.js +183 -957
  20. package/dist/modifiers/responsive/index.d.ts +10 -9
  21. package/dist/modifiers/responsive/index.d.ts.map +1 -1
  22. package/dist/plugins/index.js +543 -32
  23. package/dist/reactive/index.js +490 -93
  24. package/dist/runtime/dom-bridge.js +12 -239
  25. package/dist/runtime/renderer.js +8 -388
  26. package/dist/scheduler-7SvC3a21.js +814 -0
  27. package/dist/validation/index.js +6614 -198
  28. package/dist/viewport/index.js +2002 -83
  29. package/package.json +3 -4
  30. package/dist/assets/Asset.cjs +0 -2
  31. package/dist/assets/Asset.cjs.map +0 -1
  32. package/dist/assets/Asset.js +0 -9
  33. package/dist/assets/Asset.js.map +0 -1
  34. package/dist/assets/AssetCollection.cjs +0 -2
  35. package/dist/assets/AssetCollection.cjs.map +0 -1
  36. package/dist/assets/AssetCollection.js +0 -44
  37. package/dist/assets/AssetCollection.js.map +0 -1
  38. package/dist/assets/ColorAsset.cjs +0 -2
  39. package/dist/assets/ColorAsset.cjs.map +0 -1
  40. package/dist/assets/ColorAsset.js +0 -114
  41. package/dist/assets/ColorAsset.js.map +0 -1
  42. package/dist/assets/FontAsset.cjs +0 -9
  43. package/dist/assets/FontAsset.cjs.map +0 -1
  44. package/dist/assets/FontAsset.js +0 -173
  45. package/dist/assets/FontAsset.js.map +0 -1
  46. package/dist/assets/ImageAsset.cjs +0 -2
  47. package/dist/assets/ImageAsset.cjs.map +0 -1
  48. package/dist/assets/ImageAsset.js +0 -39
  49. package/dist/assets/ImageAsset.js.map +0 -1
  50. package/dist/assets/index.cjs +0 -2
  51. package/dist/assets/index.cjs.map +0 -1
  52. package/dist/assets/index.js +0 -119
  53. package/dist/assets/index.js.map +0 -1
  54. package/dist/common.cjs +0 -2
  55. package/dist/common.cjs.map +0 -1
  56. package/dist/common.js.map +0 -1
  57. package/dist/compiler/advanced-parser.cjs +0 -5
  58. package/dist/compiler/advanced-parser.cjs.map +0 -1
  59. package/dist/compiler/advanced-parser.js +0 -440
  60. package/dist/compiler/advanced-parser.js.map +0 -1
  61. package/dist/compiler/codegen.cjs +0 -6
  62. package/dist/compiler/codegen.cjs.map +0 -1
  63. package/dist/compiler/codegen.js +0 -241
  64. package/dist/compiler/codegen.js.map +0 -1
  65. package/dist/compiler/enhanced-codegen.cjs +0 -6
  66. package/dist/compiler/enhanced-codegen.cjs.map +0 -1
  67. package/dist/compiler/enhanced-codegen.js +0 -347
  68. package/dist/compiler/enhanced-codegen.js.map +0 -1
  69. package/dist/compiler/index.cjs +0 -2
  70. package/dist/compiler/index.cjs.map +0 -1
  71. package/dist/compiler/index.js.map +0 -1
  72. package/dist/compiler/parser.cjs +0 -5
  73. package/dist/compiler/parser.cjs.map +0 -1
  74. package/dist/compiler/parser.js +0 -275
  75. package/dist/compiler/parser.js.map +0 -1
  76. package/dist/compiler/plugin.cjs +0 -33
  77. package/dist/compiler/plugin.cjs.map +0 -1
  78. package/dist/compiler/plugin.js +0 -103
  79. package/dist/compiler/plugin.js.map +0 -1
  80. package/dist/components/BasicInput.cjs +0 -2
  81. package/dist/components/BasicInput.cjs.map +0 -1
  82. package/dist/components/BasicInput.js +0 -182
  83. package/dist/components/BasicInput.js.map +0 -1
  84. package/dist/components/Button.cjs +0 -7
  85. package/dist/components/Button.cjs.map +0 -1
  86. package/dist/components/Button.js +0 -408
  87. package/dist/components/Button.js.map +0 -1
  88. package/dist/components/Divider.cjs +0 -2
  89. package/dist/components/Divider.cjs.map +0 -1
  90. package/dist/components/Divider.js +0 -187
  91. package/dist/components/Divider.js.map +0 -1
  92. package/dist/components/EnhancedLink.cjs +0 -2
  93. package/dist/components/EnhancedLink.cjs.map +0 -1
  94. package/dist/components/EnhancedLink.js +0 -345
  95. package/dist/components/EnhancedLink.js.map +0 -1
  96. package/dist/components/Form.cjs +0 -2
  97. package/dist/components/Form.cjs.map +0 -1
  98. package/dist/components/Form.js +0 -244
  99. package/dist/components/Form.js.map +0 -1
  100. package/dist/components/Grid.cjs +0 -2
  101. package/dist/components/Grid.cjs.map +0 -1
  102. package/dist/components/Grid.js +0 -1045
  103. package/dist/components/Grid.js.map +0 -1
  104. package/dist/components/GridResponsive.cjs +0 -2
  105. package/dist/components/GridResponsive.cjs.map +0 -1
  106. package/dist/components/GridResponsive.js +0 -382
  107. package/dist/components/GridResponsive.js.map +0 -1
  108. package/dist/components/Image.cjs +0 -2
  109. package/dist/components/Image.cjs.map +0 -1
  110. package/dist/components/Image.js +0 -212
  111. package/dist/components/Image.js.map +0 -1
  112. package/dist/components/List.cjs +0 -2
  113. package/dist/components/List.cjs.map +0 -1
  114. package/dist/components/List.js +0 -561
  115. package/dist/components/List.js.map +0 -1
  116. package/dist/components/Menu.cjs +0 -2
  117. package/dist/components/Menu.cjs.map +0 -1
  118. package/dist/components/Menu.js +0 -443
  119. package/dist/components/Menu.js.map +0 -1
  120. package/dist/components/Picker.cjs +0 -2
  121. package/dist/components/Picker.cjs.map +0 -1
  122. package/dist/components/Picker.js +0 -478
  123. package/dist/components/Picker.js.map +0 -1
  124. package/dist/components/ScrollView.cjs +0 -6
  125. package/dist/components/ScrollView.cjs.map +0 -1
  126. package/dist/components/ScrollView.js +0 -363
  127. package/dist/components/ScrollView.js.map +0 -1
  128. package/dist/components/Section.cjs +0 -2
  129. package/dist/components/Section.cjs.map +0 -1
  130. package/dist/components/Section.js +0 -323
  131. package/dist/components/Section.js.map +0 -1
  132. package/dist/components/Show.cjs +0 -2
  133. package/dist/components/Show.cjs.map +0 -1
  134. package/dist/components/Show.js +0 -112
  135. package/dist/components/Show.js.map +0 -1
  136. package/dist/components/Spacer.cjs +0 -2
  137. package/dist/components/Spacer.cjs.map +0 -1
  138. package/dist/components/Spacer.js +0 -53
  139. package/dist/components/Spacer.js.map +0 -1
  140. package/dist/components/Text.cjs +0 -2
  141. package/dist/components/Text.cjs.map +0 -1
  142. package/dist/components/Text.js +0 -193
  143. package/dist/components/Text.js.map +0 -1
  144. package/dist/components/Toggle.cjs +0 -2
  145. package/dist/components/Toggle.cjs.map +0 -1
  146. package/dist/components/Toggle.js +0 -477
  147. package/dist/components/Toggle.js.map +0 -1
  148. package/dist/components/index.cjs +0 -2
  149. package/dist/components/index.cjs.map +0 -1
  150. package/dist/components/index.js.map +0 -1
  151. package/dist/components/wrapper.cjs +0 -2
  152. package/dist/components/wrapper.cjs.map +0 -1
  153. package/dist/components/wrapper.js +0 -484
  154. package/dist/components/wrapper.js.map +0 -1
  155. package/dist/concatenation/concatenatable.cjs +0 -2
  156. package/dist/concatenation/concatenatable.cjs.map +0 -1
  157. package/dist/concatenation/concatenatable.js +0 -118
  158. package/dist/concatenation/concatenatable.js.map +0 -1
  159. package/dist/concatenation/concatenated-component.cjs +0 -2
  160. package/dist/concatenation/concatenated-component.cjs.map +0 -1
  161. package/dist/concatenation/concatenated-component.js +0 -276
  162. package/dist/concatenation/concatenated-component.js.map +0 -1
  163. package/dist/concatenation/text-optimizer.cjs +0 -2
  164. package/dist/concatenation/text-optimizer.cjs.map +0 -1
  165. package/dist/concatenation/text-optimizer.js +0 -236
  166. package/dist/concatenation/text-optimizer.js.map +0 -1
  167. package/dist/concatenation/types.cjs +0 -2
  168. package/dist/concatenation/types.cjs.map +0 -1
  169. package/dist/concatenation/types.js +0 -13
  170. package/dist/concatenation/types.js.map +0 -1
  171. package/dist/constants/frame-utils.cjs +0 -2
  172. package/dist/constants/frame-utils.cjs.map +0 -1
  173. package/dist/constants/frame-utils.js +0 -116
  174. package/dist/constants/frame-utils.js.map +0 -1
  175. package/dist/constants/layout.cjs +0 -2
  176. package/dist/constants/layout.cjs.map +0 -1
  177. package/dist/constants/layout.js +0 -46
  178. package/dist/constants/layout.js.map +0 -1
  179. package/dist/css-classes/component-base.cjs +0 -2
  180. package/dist/css-classes/component-base.cjs.map +0 -1
  181. package/dist/css-classes/component-base.js +0 -62
  182. package/dist/css-classes/component-base.js.map +0 -1
  183. package/dist/css-classes/css-class-manager.cjs +0 -2
  184. package/dist/css-classes/css-class-manager.cjs.map +0 -1
  185. package/dist/css-classes/css-class-manager.js +0 -209
  186. package/dist/css-classes/css-class-manager.js.map +0 -1
  187. package/dist/css-classes/dom-integration.cjs +0 -2
  188. package/dist/css-classes/dom-integration.cjs.map +0 -1
  189. package/dist/css-classes/dom-integration.js +0 -67
  190. package/dist/css-classes/dom-integration.js.map +0 -1
  191. package/dist/css-classes/enhanced-renderer.cjs +0 -2
  192. package/dist/css-classes/enhanced-renderer.cjs.map +0 -1
  193. package/dist/css-classes/enhanced-renderer.js +0 -73
  194. package/dist/css-classes/enhanced-renderer.js.map +0 -1
  195. package/dist/css-classes/utilities.cjs +0 -2
  196. package/dist/css-classes/utilities.cjs.map +0 -1
  197. package/dist/css-classes/utilities.js +0 -41
  198. package/dist/css-classes/utilities.js.map +0 -1
  199. package/dist/debug.cjs +0 -52
  200. package/dist/debug.cjs.map +0 -1
  201. package/dist/debug.js.map +0 -1
  202. package/dist/essential.cjs +0 -2
  203. package/dist/essential.cjs.map +0 -1
  204. package/dist/essential.js.map +0 -1
  205. package/dist/gradients/css-generator.cjs +0 -2
  206. package/dist/gradients/css-generator.cjs.map +0 -1
  207. package/dist/gradients/css-generator.js +0 -100
  208. package/dist/gradients/css-generator.js.map +0 -1
  209. package/dist/gradients/examples.cjs +0 -2
  210. package/dist/gradients/examples.cjs.map +0 -1
  211. package/dist/gradients/examples.js +0 -555
  212. package/dist/gradients/examples.js.map +0 -1
  213. package/dist/gradients/gradient-asset.cjs +0 -2
  214. package/dist/gradients/gradient-asset.cjs.map +0 -1
  215. package/dist/gradients/gradient-asset.js +0 -22
  216. package/dist/gradients/gradient-asset.js.map +0 -1
  217. package/dist/gradients/index.cjs +0 -2
  218. package/dist/gradients/index.cjs.map +0 -1
  219. package/dist/gradients/index.js +0 -78
  220. package/dist/gradients/index.js.map +0 -1
  221. package/dist/gradients/performance.cjs +0 -2
  222. package/dist/gradients/performance.cjs.map +0 -1
  223. package/dist/gradients/performance.js +0 -237
  224. package/dist/gradients/performance.js.map +0 -1
  225. package/dist/gradients/presets.cjs +0 -2
  226. package/dist/gradients/presets.cjs.map +0 -1
  227. package/dist/gradients/presets.js +0 -254
  228. package/dist/gradients/presets.js.map +0 -1
  229. package/dist/gradients/reactive.cjs +0 -2
  230. package/dist/gradients/reactive.cjs.map +0 -1
  231. package/dist/gradients/reactive.js +0 -239
  232. package/dist/gradients/reactive.js.map +0 -1
  233. package/dist/gradients/state-gradient-asset.cjs +0 -2
  234. package/dist/gradients/state-gradient-asset.cjs.map +0 -1
  235. package/dist/gradients/state-gradient-asset.js +0 -111
  236. package/dist/gradients/state-gradient-asset.js.map +0 -1
  237. package/dist/gradients/utils.cjs +0 -2
  238. package/dist/gradients/utils.cjs.map +0 -1
  239. package/dist/gradients/utils.js +0 -385
  240. package/dist/gradients/utils.js.map +0 -1
  241. package/dist/gradients/validation.cjs +0 -2
  242. package/dist/gradients/validation.cjs.map +0 -1
  243. package/dist/gradients/validation.js +0 -209
  244. package/dist/gradients/validation.js.map +0 -1
  245. package/dist/index.cjs +0 -2
  246. package/dist/index.cjs.map +0 -1
  247. package/dist/index.js.map +0 -1
  248. package/dist/index2.cjs +0 -2
  249. package/dist/index2.cjs.map +0 -1
  250. package/dist/index2.js +0 -293
  251. package/dist/index2.js.map +0 -1
  252. package/dist/lifecycle/hooks.cjs +0 -2
  253. package/dist/lifecycle/hooks.cjs.map +0 -1
  254. package/dist/lifecycle/hooks.js +0 -159
  255. package/dist/lifecycle/hooks.js.map +0 -1
  256. package/dist/minimal-prod.cjs +0 -2
  257. package/dist/minimal-prod.cjs.map +0 -1
  258. package/dist/minimal-prod.js.map +0 -1
  259. package/dist/minimal.cjs +0 -2
  260. package/dist/minimal.cjs.map +0 -1
  261. package/dist/minimal.js.map +0 -1
  262. package/dist/modifiers/as-html-validator.cjs +0 -2
  263. package/dist/modifiers/as-html-validator.cjs.map +0 -1
  264. package/dist/modifiers/as-html-validator.js +0 -47
  265. package/dist/modifiers/as-html-validator.js.map +0 -1
  266. package/dist/modifiers/as-html.cjs +0 -2
  267. package/dist/modifiers/as-html.cjs.map +0 -1
  268. package/dist/modifiers/as-html.js +0 -71
  269. package/dist/modifiers/as-html.js.map +0 -1
  270. package/dist/modifiers/attributes.cjs +0 -2
  271. package/dist/modifiers/attributes.cjs.map +0 -1
  272. package/dist/modifiers/attributes.js +0 -272
  273. package/dist/modifiers/attributes.js.map +0 -1
  274. package/dist/modifiers/backdrop.cjs +0 -2
  275. package/dist/modifiers/backdrop.cjs.map +0 -1
  276. package/dist/modifiers/backdrop.js +0 -109
  277. package/dist/modifiers/backdrop.js.map +0 -1
  278. package/dist/modifiers/background.cjs +0 -2
  279. package/dist/modifiers/background.cjs.map +0 -1
  280. package/dist/modifiers/background.js +0 -67
  281. package/dist/modifiers/background.js.map +0 -1
  282. package/dist/modifiers/base.cjs +0 -25
  283. package/dist/modifiers/base.cjs.map +0 -1
  284. package/dist/modifiers/base.js +0 -745
  285. package/dist/modifiers/base.js.map +0 -1
  286. package/dist/modifiers/basic-sanitizer.cjs +0 -2
  287. package/dist/modifiers/basic-sanitizer.cjs.map +0 -1
  288. package/dist/modifiers/basic-sanitizer.js +0 -162
  289. package/dist/modifiers/basic-sanitizer.js.map +0 -1
  290. package/dist/modifiers/border.cjs +0 -2
  291. package/dist/modifiers/border.cjs.map +0 -1
  292. package/dist/modifiers/border.js +0 -160
  293. package/dist/modifiers/border.js.map +0 -1
  294. package/dist/modifiers/builder.cjs +0 -2
  295. package/dist/modifiers/builder.cjs.map +0 -1
  296. package/dist/modifiers/builder.js +0 -930
  297. package/dist/modifiers/builder.js.map +0 -1
  298. package/dist/modifiers/core.cjs +0 -2
  299. package/dist/modifiers/core.cjs.map +0 -1
  300. package/dist/modifiers/core.js +0 -398
  301. package/dist/modifiers/core.js.map +0 -1
  302. package/dist/modifiers/css.cjs +0 -2
  303. package/dist/modifiers/css.cjs.map +0 -1
  304. package/dist/modifiers/css.js +0 -50
  305. package/dist/modifiers/css.js.map +0 -1
  306. package/dist/modifiers/effects.cjs +0 -2
  307. package/dist/modifiers/effects.cjs.map +0 -1
  308. package/dist/modifiers/effects.js +0 -178
  309. package/dist/modifiers/effects.js.map +0 -1
  310. package/dist/modifiers/elements.cjs +0 -2
  311. package/dist/modifiers/elements.cjs.map +0 -1
  312. package/dist/modifiers/elements.js +0 -216
  313. package/dist/modifiers/elements.js.map +0 -1
  314. package/dist/modifiers/filters.cjs +0 -2
  315. package/dist/modifiers/filters.cjs.map +0 -1
  316. package/dist/modifiers/filters.js +0 -223
  317. package/dist/modifiers/filters.js.map +0 -1
  318. package/dist/modifiers/flexbox.cjs +0 -2
  319. package/dist/modifiers/flexbox.cjs.map +0 -1
  320. package/dist/modifiers/flexbox.js +0 -56
  321. package/dist/modifiers/flexbox.js.map +0 -1
  322. package/dist/modifiers/font.cjs +0 -2
  323. package/dist/modifiers/font.cjs.map +0 -1
  324. package/dist/modifiers/font.js +0 -60
  325. package/dist/modifiers/font.js.map +0 -1
  326. package/dist/modifiers/grid.cjs +0 -2
  327. package/dist/modifiers/grid.cjs.map +0 -1
  328. package/dist/modifiers/grid.js +0 -92
  329. package/dist/modifiers/grid.js.map +0 -1
  330. package/dist/modifiers/margin.cjs +0 -2
  331. package/dist/modifiers/margin.cjs.map +0 -1
  332. package/dist/modifiers/margin.js +0 -65
  333. package/dist/modifiers/margin.js.map +0 -1
  334. package/dist/modifiers/padding.cjs +0 -2
  335. package/dist/modifiers/padding.cjs.map +0 -1
  336. package/dist/modifiers/padding.js +0 -109
  337. package/dist/modifiers/padding.js.map +0 -1
  338. package/dist/modifiers/registry.cjs +0 -2
  339. package/dist/modifiers/registry.cjs.map +0 -1
  340. package/dist/modifiers/registry.js +0 -163
  341. package/dist/modifiers/registry.js.map +0 -1
  342. package/dist/modifiers/responsive/advanced-utilities.cjs +0 -2
  343. package/dist/modifiers/responsive/advanced-utilities.cjs.map +0 -1
  344. package/dist/modifiers/responsive/advanced-utilities.js +0 -291
  345. package/dist/modifiers/responsive/advanced-utilities.js.map +0 -1
  346. package/dist/modifiers/responsive/breakpoints.cjs +0 -2
  347. package/dist/modifiers/responsive/breakpoints.cjs.map +0 -1
  348. package/dist/modifiers/responsive/breakpoints.js +0 -168
  349. package/dist/modifiers/responsive/breakpoints.js.map +0 -1
  350. package/dist/modifiers/responsive/css-generator.cjs +0 -5
  351. package/dist/modifiers/responsive/css-generator.cjs.map +0 -1
  352. package/dist/modifiers/responsive/css-generator.js +0 -261
  353. package/dist/modifiers/responsive/css-generator.js.map +0 -1
  354. package/dist/modifiers/responsive/dev-tools.cjs +0 -77
  355. package/dist/modifiers/responsive/dev-tools.cjs.map +0 -1
  356. package/dist/modifiers/responsive/dev-tools.js +0 -380
  357. package/dist/modifiers/responsive/dev-tools.js.map +0 -1
  358. package/dist/modifiers/responsive/layout-patterns.cjs +0 -2
  359. package/dist/modifiers/responsive/layout-patterns.cjs.map +0 -1
  360. package/dist/modifiers/responsive/layout-patterns.js +0 -254
  361. package/dist/modifiers/responsive/layout-patterns.js.map +0 -1
  362. package/dist/modifiers/responsive/performance.cjs +0 -3
  363. package/dist/modifiers/responsive/performance.cjs.map +0 -1
  364. package/dist/modifiers/responsive/performance.js +0 -212
  365. package/dist/modifiers/responsive/performance.js.map +0 -1
  366. package/dist/modifiers/responsive/responsive-builder.cjs +0 -2
  367. package/dist/modifiers/responsive/responsive-builder.cjs.map +0 -1
  368. package/dist/modifiers/responsive/responsive-builder.js +0 -272
  369. package/dist/modifiers/responsive/responsive-builder.js.map +0 -1
  370. package/dist/modifiers/responsive/responsive-modifier.cjs +0 -3
  371. package/dist/modifiers/responsive/responsive-modifier.cjs.map +0 -1
  372. package/dist/modifiers/responsive/responsive-modifier.js +0 -204
  373. package/dist/modifiers/responsive/responsive-modifier.js.map +0 -1
  374. package/dist/modifiers/responsive/types.cjs +0 -2
  375. package/dist/modifiers/responsive/types.cjs.map +0 -1
  376. package/dist/modifiers/responsive/types.js +0 -26
  377. package/dist/modifiers/responsive/types.js.map +0 -1
  378. package/dist/modifiers/responsive/utilities.cjs +0 -16
  379. package/dist/modifiers/responsive/utilities.cjs.map +0 -1
  380. package/dist/modifiers/responsive/utilities.js +0 -273
  381. package/dist/modifiers/responsive/utilities.js.map +0 -1
  382. package/dist/modifiers/scroll.cjs +0 -2
  383. package/dist/modifiers/scroll.cjs.map +0 -1
  384. package/dist/modifiers/scroll.js +0 -82
  385. package/dist/modifiers/scroll.js.map +0 -1
  386. package/dist/modifiers/shadows.cjs +0 -2
  387. package/dist/modifiers/shadows.cjs.map +0 -1
  388. package/dist/modifiers/shadows.js +0 -147
  389. package/dist/modifiers/shadows.js.map +0 -1
  390. package/dist/modifiers/size.cjs +0 -2
  391. package/dist/modifiers/size.cjs.map +0 -1
  392. package/dist/modifiers/size.js +0 -74
  393. package/dist/modifiers/size.js.map +0 -1
  394. package/dist/modifiers/text.cjs +0 -2
  395. package/dist/modifiers/text.cjs.map +0 -1
  396. package/dist/modifiers/text.js +0 -166
  397. package/dist/modifiers/text.js.map +0 -1
  398. package/dist/modifiers/transformations.cjs +0 -2
  399. package/dist/modifiers/transformations.cjs.map +0 -1
  400. package/dist/modifiers/transformations.js +0 -216
  401. package/dist/modifiers/transformations.js.map +0 -1
  402. package/dist/modifiers/transitions.cjs +0 -2
  403. package/dist/modifiers/transitions.cjs.map +0 -1
  404. package/dist/modifiers/transitions.js +0 -102
  405. package/dist/modifiers/transitions.js.map +0 -1
  406. package/dist/modifiers/types.cjs +0 -2
  407. package/dist/modifiers/types.cjs.map +0 -1
  408. package/dist/modifiers/types.js +0 -5
  409. package/dist/modifiers/types.js.map +0 -1
  410. package/dist/modifiers/typography.cjs +0 -2
  411. package/dist/modifiers/typography.cjs.map +0 -1
  412. package/dist/modifiers/typography.js +0 -76
  413. package/dist/modifiers/typography.js.map +0 -1
  414. package/dist/modifiers/utility.cjs +0 -2
  415. package/dist/modifiers/utility.cjs.map +0 -1
  416. package/dist/modifiers/utility.js +0 -71
  417. package/dist/modifiers/utility.js.map +0 -1
  418. package/dist/modifiers/utils.cjs +0 -2
  419. package/dist/modifiers/utils.cjs.map +0 -1
  420. package/dist/modifiers/utils.js +0 -250
  421. package/dist/modifiers/utils.js.map +0 -1
  422. package/dist/plugins/index.cjs +0 -2
  423. package/dist/plugins/index.cjs.map +0 -1
  424. package/dist/plugins/index.js.map +0 -1
  425. package/dist/plugins/legacy-adapter.cjs +0 -2
  426. package/dist/plugins/legacy-adapter.cjs.map +0 -1
  427. package/dist/plugins/legacy-adapter.js +0 -30
  428. package/dist/plugins/legacy-adapter.js.map +0 -1
  429. package/dist/plugins/simplified-component-registry.cjs +0 -2
  430. package/dist/plugins/simplified-component-registry.cjs.map +0 -1
  431. package/dist/plugins/simplified-component-registry.js +0 -71
  432. package/dist/plugins/simplified-component-registry.js.map +0 -1
  433. package/dist/plugins/simplified-error-handler.cjs +0 -2
  434. package/dist/plugins/simplified-error-handler.cjs.map +0 -1
  435. package/dist/plugins/simplified-error-handler.js +0 -154
  436. package/dist/plugins/simplified-error-handler.js.map +0 -1
  437. package/dist/plugins/simplified-lazy-loader.cjs +0 -2
  438. package/dist/plugins/simplified-lazy-loader.cjs.map +0 -1
  439. package/dist/plugins/simplified-lazy-loader.js +0 -129
  440. package/dist/plugins/simplified-lazy-loader.js.map +0 -1
  441. package/dist/plugins/simplified-plugin-manager.cjs +0 -2
  442. package/dist/plugins/simplified-plugin-manager.cjs.map +0 -1
  443. package/dist/plugins/simplified-plugin-manager.js +0 -51
  444. package/dist/plugins/simplified-plugin-manager.js.map +0 -1
  445. package/dist/plugins/simplified-tachui-instance.cjs +0 -2
  446. package/dist/plugins/simplified-tachui-instance.cjs.map +0 -1
  447. package/dist/plugins/simplified-tachui-instance.js +0 -88
  448. package/dist/plugins/simplified-tachui-instance.js.map +0 -1
  449. package/dist/plugins/simplified-types.cjs +0 -2
  450. package/dist/plugins/simplified-types.cjs.map +0 -1
  451. package/dist/plugins/simplified-types.js +0 -9
  452. package/dist/plugins/simplified-types.js.map +0 -1
  453. package/dist/plugins/simplified-utils.cjs +0 -2
  454. package/dist/plugins/simplified-utils.cjs.map +0 -1
  455. package/dist/plugins/simplified-utils.js +0 -40
  456. package/dist/plugins/simplified-utils.js.map +0 -1
  457. package/dist/reactive/cleanup.cjs +0 -2
  458. package/dist/reactive/cleanup.cjs.map +0 -1
  459. package/dist/reactive/cleanup.js +0 -62
  460. package/dist/reactive/cleanup.js.map +0 -1
  461. package/dist/reactive/computed.cjs +0 -2
  462. package/dist/reactive/computed.cjs.map +0 -1
  463. package/dist/reactive/computed.js +0 -121
  464. package/dist/reactive/computed.js.map +0 -1
  465. package/dist/reactive/context.cjs +0 -2
  466. package/dist/reactive/context.cjs.map +0 -1
  467. package/dist/reactive/context.js +0 -143
  468. package/dist/reactive/context.js.map +0 -1
  469. package/dist/reactive/effect.cjs +0 -2
  470. package/dist/reactive/effect.cjs.map +0 -1
  471. package/dist/reactive/effect.js +0 -67
  472. package/dist/reactive/effect.js.map +0 -1
  473. package/dist/reactive/enhanced-effect.cjs +0 -2
  474. package/dist/reactive/enhanced-effect.cjs.map +0 -1
  475. package/dist/reactive/enhanced-effect.js +0 -153
  476. package/dist/reactive/enhanced-effect.js.map +0 -1
  477. package/dist/reactive/enhanced-signal.cjs +0 -2
  478. package/dist/reactive/enhanced-signal.cjs.map +0 -1
  479. package/dist/reactive/enhanced-signal.js +0 -117
  480. package/dist/reactive/enhanced-signal.js.map +0 -1
  481. package/dist/reactive/equality.cjs +0 -2
  482. package/dist/reactive/equality.cjs.map +0 -1
  483. package/dist/reactive/equality.js +0 -66
  484. package/dist/reactive/equality.js.map +0 -1
  485. package/dist/reactive/index.cjs +0 -2
  486. package/dist/reactive/index.cjs.map +0 -1
  487. package/dist/reactive/index.js.map +0 -1
  488. package/dist/reactive/migration.cjs +0 -18
  489. package/dist/reactive/migration.cjs.map +0 -1
  490. package/dist/reactive/migration.js +0 -164
  491. package/dist/reactive/migration.js.map +0 -1
  492. package/dist/reactive/ownership.cjs +0 -2
  493. package/dist/reactive/ownership.cjs.map +0 -1
  494. package/dist/reactive/ownership.js +0 -34
  495. package/dist/reactive/ownership.js.map +0 -1
  496. package/dist/reactive/scheduler.cjs +0 -2
  497. package/dist/reactive/scheduler.cjs.map +0 -1
  498. package/dist/reactive/scheduler.js +0 -111
  499. package/dist/reactive/scheduler.js.map +0 -1
  500. package/dist/reactive/signal.cjs +0 -2
  501. package/dist/reactive/signal.cjs.map +0 -1
  502. package/dist/reactive/signal.js +0 -96
  503. package/dist/reactive/signal.js.map +0 -1
  504. package/dist/reactive/theme.cjs +0 -2
  505. package/dist/reactive/theme.cjs.map +0 -1
  506. package/dist/reactive/theme.js +0 -27
  507. package/dist/reactive/theme.js.map +0 -1
  508. package/dist/reactive/types.cjs +0 -2
  509. package/dist/reactive/types.cjs.map +0 -1
  510. package/dist/reactive/types.js +0 -5
  511. package/dist/reactive/types.js.map +0 -1
  512. package/dist/reactive/unified-scheduler.cjs +0 -2
  513. package/dist/reactive/unified-scheduler.cjs.map +0 -1
  514. package/dist/reactive/unified-scheduler.js +0 -219
  515. package/dist/reactive/unified-scheduler.js.map +0 -1
  516. package/dist/runtime/component-context.cjs +0 -2
  517. package/dist/runtime/component-context.cjs.map +0 -1
  518. package/dist/runtime/component-context.js +0 -177
  519. package/dist/runtime/component-context.js.map +0 -1
  520. package/dist/runtime/component.cjs +0 -2
  521. package/dist/runtime/component.cjs.map +0 -1
  522. package/dist/runtime/component.js +0 -238
  523. package/dist/runtime/component.js.map +0 -1
  524. package/dist/runtime/context.cjs +0 -2
  525. package/dist/runtime/context.cjs.map +0 -1
  526. package/dist/runtime/context.js.map +0 -1
  527. package/dist/runtime/dev-tools.cjs +0 -2
  528. package/dist/runtime/dev-tools.cjs.map +0 -1
  529. package/dist/runtime/dev-tools.js +0 -391
  530. package/dist/runtime/dev-tools.js.map +0 -1
  531. package/dist/runtime/development-warnings.cjs +0 -2
  532. package/dist/runtime/development-warnings.cjs.map +0 -1
  533. package/dist/runtime/development-warnings.js +0 -69
  534. package/dist/runtime/development-warnings.js.map +0 -1
  535. package/dist/runtime/dom-bridge.cjs +0 -2
  536. package/dist/runtime/dom-bridge.cjs.map +0 -1
  537. package/dist/runtime/dom-bridge.js.map +0 -1
  538. package/dist/runtime/element-override.cjs +0 -2
  539. package/dist/runtime/element-override.cjs.map +0 -1
  540. package/dist/runtime/element-override.js +0 -214
  541. package/dist/runtime/element-override.js.map +0 -1
  542. package/dist/runtime/error-boundary.cjs +0 -2
  543. package/dist/runtime/error-boundary.cjs.map +0 -1
  544. package/dist/runtime/error-boundary.js +0 -559
  545. package/dist/runtime/error-boundary.js.map +0 -1
  546. package/dist/runtime/error-recovery.cjs +0 -2
  547. package/dist/runtime/error-recovery.cjs.map +0 -1
  548. package/dist/runtime/error-recovery.js +0 -385
  549. package/dist/runtime/error-recovery.js.map +0 -1
  550. package/dist/runtime/error-reporting.cjs +0 -3
  551. package/dist/runtime/error-reporting.cjs.map +0 -1
  552. package/dist/runtime/error-reporting.js +0 -479
  553. package/dist/runtime/error-reporting.js.map +0 -1
  554. package/dist/runtime/error-utils.cjs +0 -3
  555. package/dist/runtime/error-utils.cjs.map +0 -1
  556. package/dist/runtime/error-utils.js +0 -352
  557. package/dist/runtime/error-utils.js.map +0 -1
  558. package/dist/runtime/lazy-component.cjs +0 -2
  559. package/dist/runtime/lazy-component.cjs.map +0 -1
  560. package/dist/runtime/lazy-component.js +0 -129
  561. package/dist/runtime/lazy-component.js.map +0 -1
  562. package/dist/runtime/lifecycle.cjs +0 -2
  563. package/dist/runtime/lifecycle.cjs.map +0 -1
  564. package/dist/runtime/lifecycle.js +0 -7
  565. package/dist/runtime/lifecycle.js.map +0 -1
  566. package/dist/runtime/mounting.cjs +0 -2
  567. package/dist/runtime/mounting.cjs.map +0 -1
  568. package/dist/runtime/mounting.js +0 -12
  569. package/dist/runtime/mounting.js.map +0 -1
  570. package/dist/runtime/optimization.cjs +0 -2
  571. package/dist/runtime/optimization.cjs.map +0 -1
  572. package/dist/runtime/optimization.js +0 -6
  573. package/dist/runtime/optimization.js.map +0 -1
  574. package/dist/runtime/performance.cjs +0 -2
  575. package/dist/runtime/performance.cjs.map +0 -1
  576. package/dist/runtime/performance.js +0 -399
  577. package/dist/runtime/performance.js.map +0 -1
  578. package/dist/runtime/props.cjs +0 -2
  579. package/dist/runtime/props.cjs.map +0 -1
  580. package/dist/runtime/props.js +0 -265
  581. package/dist/runtime/props.js.map +0 -1
  582. package/dist/runtime/renderer.cjs +0 -2
  583. package/dist/runtime/renderer.cjs.map +0 -1
  584. package/dist/runtime/renderer.js.map +0 -1
  585. package/dist/runtime/semantic-role-manager.cjs +0 -2
  586. package/dist/runtime/semantic-role-manager.cjs.map +0 -1
  587. package/dist/runtime/semantic-role-manager.js +0 -82
  588. package/dist/runtime/semantic-role-manager.js.map +0 -1
  589. package/dist/state/binding.cjs +0 -2
  590. package/dist/state/binding.cjs.map +0 -1
  591. package/dist/state/binding.js +0 -155
  592. package/dist/state/binding.js.map +0 -1
  593. package/dist/state/environment.cjs +0 -2
  594. package/dist/state/environment.cjs.map +0 -1
  595. package/dist/state/environment.js +0 -115
  596. package/dist/state/environment.js.map +0 -1
  597. package/dist/state/index.cjs +0 -2
  598. package/dist/state/index.cjs.map +0 -1
  599. package/dist/state/index.js +0 -63
  600. package/dist/state/index.js.map +0 -1
  601. package/dist/state/observed-object.cjs +0 -2
  602. package/dist/state/observed-object.cjs.map +0 -1
  603. package/dist/state/observed-object.js +0 -163
  604. package/dist/state/observed-object.js.map +0 -1
  605. package/dist/state/state-manager.cjs +0 -2
  606. package/dist/state/state-manager.cjs.map +0 -1
  607. package/dist/state/state-manager.js +0 -233
  608. package/dist/state/state-manager.js.map +0 -1
  609. package/dist/state/state.cjs +0 -2
  610. package/dist/state/state.cjs.map +0 -1
  611. package/dist/state/state.js +0 -159
  612. package/dist/state/state.js.map +0 -1
  613. package/dist/sui-compat.cjs +0 -2
  614. package/dist/sui-compat.cjs.map +0 -1
  615. package/dist/sui-compat.js +0 -88
  616. package/dist/sui-compat.js.map +0 -1
  617. package/dist/validation/advanced-debugging.cjs +0 -44
  618. package/dist/validation/advanced-debugging.cjs.map +0 -1
  619. package/dist/validation/advanced-debugging.js +0 -455
  620. package/dist/validation/advanced-debugging.js.map +0 -1
  621. package/dist/validation/build-time/detection.cjs +0 -2
  622. package/dist/validation/build-time/detection.cjs.map +0 -1
  623. package/dist/validation/build-time/detection.js +0 -199
  624. package/dist/validation/build-time/detection.js.map +0 -1
  625. package/dist/validation/build-time/index.cjs +0 -2
  626. package/dist/validation/build-time/index.cjs.map +0 -1
  627. package/dist/validation/build-time/index.js +0 -122
  628. package/dist/validation/build-time/index.js.map +0 -1
  629. package/dist/validation/build-time/plugins.cjs +0 -3
  630. package/dist/validation/build-time/plugins.cjs.map +0 -1
  631. package/dist/validation/build-time/plugins.js +0 -282
  632. package/dist/validation/build-time/plugins.js.map +0 -1
  633. package/dist/validation/build-time/rules.cjs +0 -2
  634. package/dist/validation/build-time/rules.cjs.map +0 -1
  635. package/dist/validation/build-time/rules.js +0 -576
  636. package/dist/validation/build-time/rules.js.map +0 -1
  637. package/dist/validation/build-time/transformer.cjs +0 -3
  638. package/dist/validation/build-time/transformer.cjs.map +0 -1
  639. package/dist/validation/build-time/transformer.js +0 -177
  640. package/dist/validation/build-time/transformer.js.map +0 -1
  641. package/dist/validation/comprehensive.cjs +0 -9
  642. package/dist/validation/comprehensive.cjs.map +0 -1
  643. package/dist/validation/comprehensive.js +0 -916
  644. package/dist/validation/comprehensive.js.map +0 -1
  645. package/dist/validation/debug-tools.cjs +0 -16
  646. package/dist/validation/debug-tools.cjs.map +0 -1
  647. package/dist/validation/debug-tools.js +0 -405
  648. package/dist/validation/debug-tools.js.map +0 -1
  649. package/dist/validation/developer-experience.cjs +0 -17
  650. package/dist/validation/developer-experience.cjs.map +0 -1
  651. package/dist/validation/developer-experience.js +0 -433
  652. package/dist/validation/developer-experience.js.map +0 -1
  653. package/dist/validation/documentation-integration.cjs +0 -7
  654. package/dist/validation/documentation-integration.cjs.map +0 -1
  655. package/dist/validation/documentation-integration.js +0 -440
  656. package/dist/validation/documentation-integration.js.map +0 -1
  657. package/dist/validation/enhanced-runtime.cjs +0 -6
  658. package/dist/validation/enhanced-runtime.cjs.map +0 -1
  659. package/dist/validation/enhanced-runtime.js +0 -465
  660. package/dist/validation/enhanced-runtime.js.map +0 -1
  661. package/dist/validation/error-reporting.cjs +0 -32
  662. package/dist/validation/error-reporting.cjs.map +0 -1
  663. package/dist/validation/error-reporting.js +0 -370
  664. package/dist/validation/error-reporting.js.map +0 -1
  665. package/dist/validation/ide-integration.cjs +0 -85
  666. package/dist/validation/ide-integration.cjs.map +0 -1
  667. package/dist/validation/ide-integration.js +0 -557
  668. package/dist/validation/ide-integration.js.map +0 -1
  669. package/dist/validation/index.cjs +0 -6
  670. package/dist/validation/index.cjs.map +0 -1
  671. package/dist/validation/index.js.map +0 -1
  672. package/dist/validation/lifecycle-validation.cjs +0 -2
  673. package/dist/validation/lifecycle-validation.cjs.map +0 -1
  674. package/dist/validation/lifecycle-validation.js +0 -314
  675. package/dist/validation/lifecycle-validation.js.map +0 -1
  676. package/dist/validation/performance-optimizer.cjs +0 -2
  677. package/dist/validation/performance-optimizer.cjs.map +0 -1
  678. package/dist/validation/performance-optimizer.js +0 -338
  679. package/dist/validation/performance-optimizer.js.map +0 -1
  680. package/dist/validation/plugin-registration.cjs +0 -2
  681. package/dist/validation/plugin-registration.cjs.map +0 -1
  682. package/dist/validation/plugin-registration.js +0 -126
  683. package/dist/validation/plugin-registration.js.map +0 -1
  684. package/dist/validation/production-bypass.cjs +0 -2
  685. package/dist/validation/production-bypass.cjs.map +0 -1
  686. package/dist/validation/production-bypass.js +0 -218
  687. package/dist/validation/production-bypass.js.map +0 -1
  688. package/dist/validation/simple.cjs +0 -9
  689. package/dist/validation/simple.cjs.map +0 -1
  690. package/dist/validation/simple.js +0 -146
  691. package/dist/validation/simple.js.map +0 -1
  692. package/dist/viewport/adapters/web-adapter.cjs +0 -70
  693. package/dist/viewport/adapters/web-adapter.cjs.map +0 -1
  694. package/dist/viewport/adapters/web-adapter.js +0 -823
  695. package/dist/viewport/adapters/web-adapter.js.map +0 -1
  696. package/dist/viewport/components.cjs +0 -2
  697. package/dist/viewport/components.cjs.map +0 -1
  698. package/dist/viewport/components.js +0 -298
  699. package/dist/viewport/components.js.map +0 -1
  700. package/dist/viewport/environment.cjs +0 -2
  701. package/dist/viewport/environment.cjs.map +0 -1
  702. package/dist/viewport/environment.js +0 -86
  703. package/dist/viewport/environment.js.map +0 -1
  704. package/dist/viewport/index.cjs +0 -2
  705. package/dist/viewport/index.cjs.map +0 -1
  706. package/dist/viewport/index.js.map +0 -1
  707. package/dist/viewport/platform-detection.cjs +0 -2
  708. package/dist/viewport/platform-detection.cjs.map +0 -1
  709. package/dist/viewport/platform-detection.js +0 -205
  710. package/dist/viewport/platform-detection.js.map +0 -1
  711. package/dist/viewport/types.cjs +0 -2
  712. package/dist/viewport/types.cjs.map +0 -1
  713. package/dist/viewport/types.js +0 -13
  714. package/dist/viewport/types.js.map +0 -1
  715. package/dist/viewport/viewport-manager.cjs +0 -2
  716. package/dist/viewport/viewport-manager.cjs.map +0 -1
  717. package/dist/viewport/viewport-manager.js +0 -524
  718. package/dist/viewport/viewport-manager.js.map +0 -1
  719. package/src/assets/Asset.ts +0 -11
  720. package/src/assets/AssetCollection.ts +0 -99
  721. package/src/assets/ColorAsset.ts +0 -210
  722. package/src/assets/FontAsset.ts +0 -380
  723. package/src/assets/ImageAsset.ts +0 -91
  724. package/src/assets/README.md +0 -190
  725. package/src/assets/index.ts +0 -175
  726. package/src/assets/test-assets.ts +0 -69
  727. package/src/assets/test-integration.ts +0 -46
  728. package/src/assets/test-simple.ts +0 -28
  729. package/src/assets/types.ts +0 -79
  730. package/src/bundles/common.ts +0 -30
  731. package/src/bundles/complete.ts +0 -29
  732. package/src/bundles/essential.ts +0 -26
  733. package/src/bundles/minimal.ts +0 -26
  734. package/src/bundles/production-minimal.ts +0 -67
  735. package/src/compiler/advanced-parser.ts +0 -871
  736. package/src/compiler/codegen.ts +0 -450
  737. package/src/compiler/enhanced-codegen.ts +0 -729
  738. package/src/compiler/index.ts +0 -25
  739. package/src/compiler/parser.ts +0 -461
  740. package/src/compiler/plugin.ts +0 -181
  741. package/src/compiler/types.ts +0 -177
  742. package/src/components/BasicInput.ts +0 -352
  743. package/src/components/Button.ts +0 -963
  744. package/src/components/Divider.ts +0 -341
  745. package/src/components/EnhancedLink.ts +0 -676
  746. package/src/components/Form.ts +0 -414
  747. package/src/components/Grid.ts +0 -2507
  748. package/src/components/GridResponsive.ts +0 -637
  749. package/src/components/Image.ts +0 -426
  750. package/src/components/List.ts +0 -1084
  751. package/src/components/Menu.ts +0 -807
  752. package/src/components/Picker.ts +0 -678
  753. package/src/components/ScrollView.ts +0 -725
  754. package/src/components/Section.ts +0 -472
  755. package/src/components/Show.ts +0 -205
  756. package/src/components/Spacer.ts +0 -93
  757. package/src/components/Text.ts +0 -447
  758. package/src/components/Toggle.ts +0 -700
  759. package/src/components/index.ts +0 -231
  760. package/src/components/wrapper.ts +0 -828
  761. package/src/concatenation/concatenatable.ts +0 -211
  762. package/src/concatenation/concatenated-component.ts +0 -471
  763. package/src/concatenation/index.ts +0 -41
  764. package/src/concatenation/styles.css +0 -120
  765. package/src/concatenation/text-optimizer.ts +0 -440
  766. package/src/concatenation/types.ts +0 -116
  767. package/src/constants/README.md +0 -339
  768. package/src/constants/__tests__/frame-utils.test.ts +0 -276
  769. package/src/constants/__tests__/layout.test.ts +0 -215
  770. package/src/constants/frame-utils.ts +0 -174
  771. package/src/constants/index.ts +0 -8
  772. package/src/constants/layout.ts +0 -120
  773. package/src/css-classes/component-base.ts +0 -117
  774. package/src/css-classes/css-class-manager.ts +0 -372
  775. package/src/css-classes/dom-integration.ts +0 -162
  776. package/src/css-classes/enhanced-renderer.ts +0 -166
  777. package/src/css-classes/index.ts +0 -45
  778. package/src/css-classes/types.ts +0 -73
  779. package/src/css-classes/utilities.ts +0 -175
  780. package/src/debug/index.ts +0 -267
  781. package/src/developer-experience/enhanced-errors.ts +0 -556
  782. package/src/developer-experience/enhanced-types.ts +0 -427
  783. package/src/developer-experience/index.ts +0 -220
  784. package/src/globals.d.ts +0 -43
  785. package/src/gradients/__tests__/angular-gradient.test.ts +0 -111
  786. package/src/gradients/__tests__/background-modifier.test.ts +0 -81
  787. package/src/gradients/__tests__/comprehensive-gradients.test.ts +0 -296
  788. package/src/gradients/__tests__/gradient-asset.test.ts +0 -144
  789. package/src/gradients/__tests__/linear-gradient.test.ts +0 -92
  790. package/src/gradients/__tests__/phase4-features.test.ts +0 -386
  791. package/src/gradients/__tests__/radial-gradient.test.ts +0 -110
  792. package/src/gradients/__tests__/repeating-gradients.test.ts +0 -125
  793. package/src/gradients/__tests__/state-background-modifier.test.ts +0 -340
  794. package/src/gradients/__tests__/state-gradient-asset.test.ts +0 -262
  795. package/src/gradients/__tests__/state-gradient-integration.test.ts +0 -277
  796. package/src/gradients/css-generator.ts +0 -158
  797. package/src/gradients/examples.ts +0 -632
  798. package/src/gradients/gradient-asset.ts +0 -30
  799. package/src/gradients/index.ts +0 -85
  800. package/src/gradients/performance.ts +0 -521
  801. package/src/gradients/presets.ts +0 -422
  802. package/src/gradients/reactive.ts +0 -470
  803. package/src/gradients/state-gradient-asset.ts +0 -179
  804. package/src/gradients/types.ts +0 -148
  805. package/src/gradients/utils.ts +0 -579
  806. package/src/gradients/validation.ts +0 -489
  807. package/src/index.ts +0 -168
  808. package/src/lifecycle/hooks.ts +0 -332
  809. package/src/modifiers/__tests__/as-html-integration.test.ts +0 -204
  810. package/src/modifiers/__tests__/as-html.test.ts +0 -437
  811. package/src/modifiers/__tests__/basic-sanitizer-security.test.ts +0 -294
  812. package/src/modifiers/__tests__/border.test.ts +0 -371
  813. package/src/modifiers/__tests__/margin-string-support.test.ts +0 -41
  814. package/src/modifiers/__tests__/padding-string-support.test.ts +0 -41
  815. package/src/modifiers/as-html-validator.ts +0 -68
  816. package/src/modifiers/as-html.ts +0 -216
  817. package/src/modifiers/attributes.ts +0 -574
  818. package/src/modifiers/backdrop.ts +0 -290
  819. package/src/modifiers/background.ts +0 -165
  820. package/src/modifiers/base.ts +0 -1815
  821. package/src/modifiers/basic-sanitizer.ts +0 -227
  822. package/src/modifiers/border.ts +0 -574
  823. package/src/modifiers/builder.ts +0 -1747
  824. package/src/modifiers/core.ts +0 -521
  825. package/src/modifiers/css.ts +0 -148
  826. package/src/modifiers/effects.ts +0 -412
  827. package/src/modifiers/elements.ts +0 -541
  828. package/src/modifiers/filters.ts +0 -501
  829. package/src/modifiers/flexbox.ts +0 -180
  830. package/src/modifiers/font.ts +0 -149
  831. package/src/modifiers/grid.ts +0 -238
  832. package/src/modifiers/index.ts +0 -481
  833. package/src/modifiers/margin.ts +0 -218
  834. package/src/modifiers/padding.ts +0 -318
  835. package/src/modifiers/registry.ts +0 -444
  836. package/src/modifiers/responsive/__tests__/advanced-media-queries.test.ts +0 -392
  837. package/src/modifiers/responsive/__tests__/advanced-utilities.test.ts +0 -368
  838. package/src/modifiers/responsive/__tests__/comprehensive-browser-tests.test.ts +0 -556
  839. package/src/modifiers/responsive/__tests__/layout-patterns.test.ts +0 -558
  840. package/src/modifiers/responsive/advanced-utilities.ts +0 -562
  841. package/src/modifiers/responsive/breakpoints.ts +0 -330
  842. package/src/modifiers/responsive/css-generator.ts +0 -432
  843. package/src/modifiers/responsive/dev-tools.ts +0 -650
  844. package/src/modifiers/responsive/index.ts +0 -119
  845. package/src/modifiers/responsive/layout-patterns.ts +0 -592
  846. package/src/modifiers/responsive/performance.ts +0 -385
  847. package/src/modifiers/responsive/responsive-builder.ts +0 -620
  848. package/src/modifiers/responsive/responsive-modifier.ts +0 -410
  849. package/src/modifiers/responsive/types.ts +0 -226
  850. package/src/modifiers/responsive/utilities.ts +0 -478
  851. package/src/modifiers/scroll.ts +0 -297
  852. package/src/modifiers/shadows.ts +0 -321
  853. package/src/modifiers/size.ts +0 -208
  854. package/src/modifiers/text.ts +0 -416
  855. package/src/modifiers/transformations.ts +0 -640
  856. package/src/modifiers/transitions.ts +0 -218
  857. package/src/modifiers/types.ts +0 -889
  858. package/src/modifiers/typography.ts +0 -341
  859. package/src/modifiers/utility.ts +0 -209
  860. package/src/modifiers/utils.ts +0 -413
  861. package/src/plugins/__tests__/simplified-plugin-system.test.ts +0 -190
  862. package/src/plugins/component-loader-registry.ts +0 -371
  863. package/src/plugins/index.ts +0 -61
  864. package/src/plugins/legacy-adapter.ts +0 -84
  865. package/src/plugins/simplified-component-registry.ts +0 -130
  866. package/src/plugins/simplified-error-handler.ts +0 -372
  867. package/src/plugins/simplified-index.ts +0 -61
  868. package/src/plugins/simplified-lazy-loader.ts +0 -242
  869. package/src/plugins/simplified-plugin-manager.ts +0 -93
  870. package/src/plugins/simplified-tachui-instance.ts +0 -142
  871. package/src/plugins/simplified-types.ts +0 -79
  872. package/src/plugins/simplified-utils.ts +0 -118
  873. package/src/reactive/cleanup.ts +0 -241
  874. package/src/reactive/computed.ts +0 -281
  875. package/src/reactive/context.ts +0 -287
  876. package/src/reactive/effect.ts +0 -194
  877. package/src/reactive/enhanced-effect.ts +0 -318
  878. package/src/reactive/enhanced-signal.ts +0 -227
  879. package/src/reactive/equality.ts +0 -188
  880. package/src/reactive/globals.d.ts +0 -5
  881. package/src/reactive/index.ts +0 -150
  882. package/src/reactive/migration.ts +0 -335
  883. package/src/reactive/ownership.ts +0 -182
  884. package/src/reactive/scheduler.ts +0 -300
  885. package/src/reactive/signal.ts +0 -201
  886. package/src/reactive/theme.ts +0 -49
  887. package/src/reactive/types.ts +0 -103
  888. package/src/reactive/unified-scheduler.ts +0 -357
  889. package/src/runtime/component-context.ts +0 -343
  890. package/src/runtime/component.ts +0 -499
  891. package/src/runtime/context.ts +0 -527
  892. package/src/runtime/dev-tools.ts +0 -752
  893. package/src/runtime/development-warnings.ts +0 -114
  894. package/src/runtime/dom-bridge.ts +0 -570
  895. package/src/runtime/element-override.ts +0 -282
  896. package/src/runtime/error-boundary.ts +0 -955
  897. package/src/runtime/error-recovery.ts +0 -638
  898. package/src/runtime/error-reporting.ts +0 -808
  899. package/src/runtime/error-utils.ts +0 -698
  900. package/src/runtime/index.ts +0 -202
  901. package/src/runtime/lazy-component.ts +0 -268
  902. package/src/runtime/lifecycle.ts +0 -10
  903. package/src/runtime/mounting.ts +0 -17
  904. package/src/runtime/optimization.ts +0 -13
  905. package/src/runtime/performance.ts +0 -693
  906. package/src/runtime/props.ts +0 -434
  907. package/src/runtime/refs.ts +0 -13
  908. package/src/runtime/renderer.ts +0 -674
  909. package/src/runtime/semantic-role-manager.ts +0 -140
  910. package/src/runtime/types.ts +0 -282
  911. package/src/state/binding.ts +0 -381
  912. package/src/state/environment-object.ts +0 -444
  913. package/src/state/environment.ts +0 -351
  914. package/src/state/index.ts +0 -179
  915. package/src/state/observed-object.ts +0 -405
  916. package/src/state/state-manager.ts +0 -366
  917. package/src/state/state.ts +0 -339
  918. package/src/state/types.ts +0 -192
  919. package/src/sui-compat.ts +0 -163
  920. package/src/validation/__tests__/phase-1d-integration.test.ts +0 -558
  921. package/src/validation/advanced-debugging.ts +0 -860
  922. package/src/validation/build-time/detection.ts +0 -373
  923. package/src/validation/build-time/index.ts +0 -222
  924. package/src/validation/build-time/plugins.ts +0 -515
  925. package/src/validation/build-time/rules.ts +0 -624
  926. package/src/validation/build-time/transformer.ts +0 -372
  927. package/src/validation/build-time/types.ts +0 -232
  928. package/src/validation/comprehensive.ts +0 -1272
  929. package/src/validation/debug-tools.ts +0 -724
  930. package/src/validation/developer-experience.ts +0 -712
  931. package/src/validation/documentation-integration.ts +0 -835
  932. package/src/validation/enhanced-runtime.ts +0 -765
  933. package/src/validation/error-reporting.ts +0 -587
  934. package/src/validation/ide-integration.ts +0 -845
  935. package/src/validation/index.ts +0 -353
  936. package/src/validation/lifecycle-validation.ts +0 -636
  937. package/src/validation/performance-optimizer.ts +0 -599
  938. package/src/validation/plugin-registration.ts +0 -249
  939. package/src/validation/production-bypass.ts +0 -466
  940. package/src/validation/simple.ts +0 -465
  941. package/src/viewport/adapters/web-adapter.ts +0 -1385
  942. package/src/viewport/components.ts +0 -505
  943. package/src/viewport/environment.ts +0 -173
  944. package/src/viewport/index.ts +0 -290
  945. package/src/viewport/platform-detection.ts +0 -431
  946. package/src/viewport/types.ts +0 -371
  947. package/src/viewport/viewport-manager.ts +0 -979
@@ -1,955 +0,0 @@
1
- /**
2
- * Error Boundary and Error Handling System (Phase 3.2.3)
3
- *
4
- * Comprehensive error handling system for TachUI applications.
5
- * Provides error boundaries, recovery mechanisms, and error reporting.
6
- */
7
-
8
- import { createEffect, createSignal } from '../reactive'
9
- import { globalDevTools } from './dev-tools'
10
- import { globalPerformanceMonitor } from './performance'
11
- import type { ComponentInstance, ComponentProps, DOMNode } from './types'
12
-
13
- /**
14
- * Error severity levels
15
- */
16
- export type ErrorSeverity = 'low' | 'medium' | 'high' | 'critical'
17
-
18
- /**
19
- * Error categories for classification
20
- */
21
- export type ErrorCategory =
22
- | 'component_error' // Component rendering/lifecycle errors
23
- | 'reactive_error' // Signal/computed/effect errors
24
- | 'render_error' // DOM rendering errors
25
- | 'lifecycle_error' // Component lifecycle errors
26
- | 'network_error' // Network/async operation errors
27
- | 'validation_error' // Props/data validation errors
28
- | 'unknown_error' // Uncategorized errors
29
-
30
- /**
31
- * Comprehensive error information
32
- */
33
- export interface TachUIError {
34
- id: string
35
- message: string
36
- stack?: string
37
- cause?: Error
38
- timestamp: number
39
- category: ErrorCategory
40
- severity: ErrorSeverity
41
- componentId?: string
42
- componentName?: string
43
- phase?: string
44
- context?: Record<string, any>
45
- userAgent?: string
46
- url?: string
47
- retryCount: number
48
- recovered: boolean
49
- }
50
-
51
- /**
52
- * Error boundary state
53
- */
54
- export interface ErrorBoundaryState {
55
- hasError: boolean
56
- error: TachUIError | null
57
- errorInfo: {
58
- componentStack?: string
59
- errorBoundary?: string
60
- retryAttempts: number
61
- }
62
- }
63
-
64
- /**
65
- * Error recovery strategies
66
- */
67
- export type ErrorRecoveryStrategy =
68
- | 'retry' // Retry the failed operation
69
- | 'fallback' // Show fallback content
70
- | 'reload' // Reload the component
71
- | 'redirect' // Navigate away
72
- | 'ignore' // Ignore the error
73
- | 'escalate' // Pass error to parent boundary
74
-
75
- /**
76
- * Error recovery configuration
77
- */
78
- export interface ErrorRecoveryConfig {
79
- strategy: ErrorRecoveryStrategy
80
- maxRetries?: number
81
- retryDelay?: number
82
- fallbackComponent?: ComponentInstance
83
- onRecovery?: (error: TachUIError) => void
84
- condition?: (error: TachUIError) => boolean
85
- }
86
-
87
- /**
88
- * Error boundary props
89
- */
90
- export interface ErrorBoundaryProps extends ComponentProps {
91
- fallback?: ComponentInstance | ((error: TachUIError, retry: () => void) => ComponentInstance)
92
- onError?: (error: TachUIError, errorInfo: ErrorBoundaryState['errorInfo']) => void
93
- recovery?: ErrorRecoveryConfig[]
94
- isolate?: boolean // Prevent error propagation to parent boundaries
95
- resetOnPropsChange?: boolean
96
- resetKeys?: string[] // Props that trigger error boundary reset
97
- }
98
-
99
- /**
100
- * Error reporter interface
101
- */
102
- export interface ErrorReporter {
103
- report(error: TachUIError): void | Promise<void>
104
- }
105
-
106
- /**
107
- * Error handler function type
108
- */
109
- export type ErrorHandler = (error: TachUIError) => void | Promise<void>
110
-
111
- /**
112
- * Global error handling configuration
113
- */
114
- export interface ErrorHandlingConfig {
115
- enabled: boolean
116
- captureConsoleErrors: boolean
117
- captureUnhandledPromises: boolean
118
- captureReactiveErrors: boolean
119
- captureComponentErrors: boolean
120
- maxErrorsPerSession: number
121
- maxErrorAge: number // milliseconds
122
- reportingThrottle: number // milliseconds
123
- enableStackTrace: boolean
124
- enableSourceMap: boolean
125
- development: boolean
126
- }
127
-
128
- /**
129
- * Error boundary component implementation
130
- */
131
- export class ErrorBoundary {
132
- private state: ErrorBoundaryState = {
133
- hasError: false,
134
- error: null,
135
- errorInfo: {
136
- retryAttempts: 0,
137
- },
138
- }
139
-
140
- private props: ErrorBoundaryProps
141
- private children: ComponentInstance[]
142
- private errorManager: ErrorManager
143
-
144
- // Reactive state
145
- private stateSignal: () => ErrorBoundaryState
146
- private setState: (value: ErrorBoundaryState) => void
147
-
148
- constructor(
149
- props: ErrorBoundaryProps,
150
- children: ComponentInstance[],
151
- errorManager: ErrorManager
152
- ) {
153
- this.props = props
154
- this.children = children
155
- this.errorManager = errorManager
156
-
157
- // Initialize reactive state
158
- const [stateSignal, setState] = createSignal<ErrorBoundaryState>(this.state)
159
- this.stateSignal = stateSignal
160
- this.setState = setState
161
-
162
- // Reset error boundary when specific props change
163
- if (props.resetOnPropsChange || props.resetKeys) {
164
- this.setupPropsWatcher()
165
- }
166
- }
167
-
168
- /**
169
- * Catch and handle errors in child components
170
- */
171
- componentDidCatch(error: Error, errorInfo: any): void {
172
- const tachUIError = this.errorManager.createTachUIError(error, {
173
- category: 'component_error',
174
- severity: 'high',
175
- componentId: this.props.id,
176
- componentName: 'ErrorBoundary',
177
- phase: 'render',
178
- context: errorInfo,
179
- })
180
-
181
- this.handleError(tachUIError, errorInfo)
182
- }
183
-
184
- /**
185
- * Handle error and determine recovery strategy
186
- */
187
- private handleError(error: TachUIError, errorInfo: any): void {
188
- const newState: ErrorBoundaryState = {
189
- hasError: true,
190
- error,
191
- errorInfo: {
192
- componentStack: errorInfo?.componentStack,
193
- errorBoundary: this.props.id || 'ErrorBoundary',
194
- retryAttempts: this.state.errorInfo.retryAttempts,
195
- },
196
- }
197
-
198
- this.state = newState
199
- this.setState(newState)
200
-
201
- // Report error
202
- if (this.props.onError) {
203
- this.props.onError(error, newState.errorInfo)
204
- }
205
-
206
- // Register with error manager
207
- this.errorManager.reportError(error)
208
-
209
- // Attempt recovery
210
- this.attemptRecovery(error)
211
-
212
- // Add to dev tools if enabled
213
- if (globalDevTools.isEnabled()) {
214
- const errorObj = new Error(error.message)
215
- errorObj.stack = error.stack
216
- globalDevTools.addError(error.componentId || 'unknown', errorObj)
217
- }
218
- }
219
-
220
- /**
221
- * Attempt error recovery based on configured strategies
222
- */
223
- private attemptRecovery(error: TachUIError): void {
224
- if (!this.props.recovery) return
225
-
226
- for (const config of this.props.recovery) {
227
- if (config.condition && !config.condition(error)) continue
228
-
229
- switch (config.strategy) {
230
- case 'retry':
231
- this.retryWithConfig(config)
232
- break
233
- case 'fallback':
234
- // Fallback is handled in render method
235
- break
236
- case 'reload':
237
- this.reloadComponent()
238
- break
239
- case 'ignore':
240
- this.resetErrorBoundary()
241
- break
242
- case 'escalate':
243
- if (!this.props.isolate) {
244
- throw error.cause || new Error(error.message)
245
- }
246
- break
247
- }
248
-
249
- if (config.onRecovery) {
250
- config.onRecovery(error)
251
- }
252
-
253
- break // Use first matching strategy
254
- }
255
- }
256
-
257
- /**
258
- * Retry failed operation with configuration
259
- */
260
- private retryWithConfig(config: ErrorRecoveryConfig): void {
261
- const maxRetries = config.maxRetries || 3
262
- const retryDelay = config.retryDelay || 1000
263
-
264
- if (this.state.errorInfo.retryAttempts >= maxRetries) {
265
- console.warn(`Max retry attempts (${maxRetries}) reached for error boundary`)
266
- return
267
- }
268
-
269
- setTimeout(() => {
270
- this.retry()
271
- }, retryDelay)
272
- }
273
-
274
- /**
275
- * Retry the failed operation
276
- */
277
- retry(): void {
278
- this.state.errorInfo.retryAttempts++
279
- this.resetErrorBoundary()
280
- }
281
-
282
- /**
283
- * Reset error boundary to normal state
284
- */
285
- resetErrorBoundary(): void {
286
- this.state = {
287
- hasError: false,
288
- error: null,
289
- errorInfo: {
290
- retryAttempts: this.state.errorInfo.retryAttempts,
291
- },
292
- }
293
- this.setState(this.state)
294
- }
295
-
296
- /**
297
- * Reload the component
298
- */
299
- private reloadComponent(): void {
300
- this.resetErrorBoundary()
301
- // Force re-render of children
302
- // This would need integration with the component system
303
- }
304
-
305
- /**
306
- * Setup props watcher for error boundary reset
307
- */
308
- private setupPropsWatcher(): void {
309
- if (this.props.resetKeys) {
310
- // Watch specific prop keys
311
- createEffect(() => {
312
- const currentProps = this.props
313
- if (this.state.hasError && this.shouldResetOnProps(currentProps)) {
314
- this.resetErrorBoundary()
315
- }
316
- })
317
- }
318
- }
319
-
320
- /**
321
- * Check if error boundary should reset based on props
322
- */
323
- private shouldResetOnProps(props: ErrorBoundaryProps): boolean {
324
- if (!this.props.resetKeys) return false
325
-
326
- // This is simplified - in real implementation would track previous props
327
- return this.props.resetKeys.some(
328
- (key) => key in props && props[key as keyof ErrorBoundaryProps] !== undefined
329
- )
330
- }
331
-
332
- /**
333
- * Render error boundary content
334
- */
335
- render(): DOMNode[] {
336
- if (this.state.hasError && this.state.error) {
337
- // Render fallback UI
338
- if (this.props.fallback) {
339
- if (typeof this.props.fallback === 'function') {
340
- const fallbackInstance = this.props.fallback(this.state.error, () => this.retry())
341
- const result = fallbackInstance.render ? fallbackInstance.render() : []
342
- return Array.isArray(result) ? result : [result]
343
- } else {
344
- const result = this.props.fallback.render ? this.props.fallback.render() : []
345
- return Array.isArray(result) ? result : [result]
346
- }
347
- }
348
-
349
- // Default error UI
350
- return this.renderDefaultErrorUI()
351
- }
352
-
353
- // Render children normally
354
- try {
355
- return this.children.flatMap((child) => {
356
- const result = child.render()
357
- return Array.isArray(result) ? result : [result]
358
- })
359
- } catch (error) {
360
- this.componentDidCatch(error as Error, { componentStack: 'children rendering' })
361
- return this.renderDefaultErrorUI()
362
- }
363
- }
364
-
365
- /**
366
- * Render default error UI
367
- */
368
- private renderDefaultErrorUI(): DOMNode[] {
369
- const error = this.state.error!
370
-
371
- return [
372
- {
373
- type: 'element',
374
- tag: 'div',
375
- props: {
376
- className: 'tachui-error-boundary',
377
- style: {
378
- padding: '20px',
379
- border: '2px solid #ff6b6b',
380
- borderRadius: '8px',
381
- backgroundColor: '#fff5f5',
382
- color: '#c92a2a',
383
- fontFamily: 'monospace',
384
- },
385
- },
386
- children: [
387
- {
388
- type: 'element',
389
- tag: 'h3',
390
- props: { style: { margin: '0 0 10px 0' } },
391
- children: [
392
- {
393
- type: 'text',
394
- text: '🚨 Something went wrong',
395
- },
396
- ],
397
- },
398
- {
399
- type: 'element',
400
- tag: 'p',
401
- props: { style: { margin: '0 0 15px 0' } },
402
- children: [
403
- {
404
- type: 'text',
405
- text: error.message,
406
- },
407
- ],
408
- },
409
- {
410
- type: 'element',
411
- tag: 'button',
412
- props: {
413
- onClick: () => this.retry(),
414
- style: {
415
- padding: '8px 16px',
416
- backgroundColor: '#4c6ef5',
417
- color: 'white',
418
- border: 'none',
419
- borderRadius: '4px',
420
- cursor: 'pointer',
421
- },
422
- },
423
- children: [
424
- {
425
- type: 'text',
426
- text: `Retry (${this.state.errorInfo.retryAttempts} attempts)`,
427
- },
428
- ],
429
- },
430
- ],
431
- },
432
- ]
433
- }
434
-
435
- /**
436
- * Get current error boundary state
437
- */
438
- getState(): ErrorBoundaryState {
439
- return this.state
440
- }
441
-
442
- /**
443
- * Get reactive state signal
444
- */
445
- getStateSignal(): () => ErrorBoundaryState {
446
- return this.stateSignal
447
- }
448
- }
449
-
450
- /**
451
- * Global error manager
452
- */
453
- export class ErrorManager {
454
- private static instance: ErrorManager
455
-
456
- private config: ErrorHandlingConfig = {
457
- enabled: true,
458
- captureConsoleErrors: true,
459
- captureUnhandledPromises: true,
460
- captureReactiveErrors: true,
461
- captureComponentErrors: true,
462
- maxErrorsPerSession: 100,
463
- maxErrorAge: 30 * 60 * 1000, // 30 minutes
464
- reportingThrottle: 1000, // 1 second
465
- enableStackTrace: true,
466
- enableSourceMap: false,
467
- development: false,
468
- }
469
-
470
- private errors: TachUIError[] = []
471
- private reporters: ErrorReporter[] = []
472
- private handlers: ErrorHandler[] = []
473
- private throttleMap = new Map<string, number>()
474
-
475
- // Reactive state
476
- private errorsSignal: () => TachUIError[]
477
- private setErrors: (value: TachUIError[]) => void
478
-
479
- constructor() {
480
- // Initialize reactive state
481
- const [errorsSignal, setErrors] = createSignal<TachUIError[]>([])
482
- this.errorsSignal = errorsSignal
483
- this.setErrors = setErrors
484
-
485
- this.setupGlobalErrorHandlers()
486
- }
487
-
488
- static getInstance(): ErrorManager {
489
- if (!ErrorManager.instance) {
490
- ErrorManager.instance = new ErrorManager()
491
- }
492
- return ErrorManager.instance
493
- }
494
-
495
- /**
496
- * Configure error handling
497
- */
498
- configure(config: Partial<ErrorHandlingConfig>): void {
499
- this.config = { ...this.config, ...config }
500
-
501
- if (config.development !== undefined) {
502
- globalDevTools.configure({ enableErrors: config.development })
503
- }
504
- }
505
-
506
- /**
507
- * Setup global error handlers
508
- */
509
- private setupGlobalErrorHandlers(): void {
510
- if (typeof window === 'undefined') return
511
-
512
- // Capture unhandled errors
513
- window.addEventListener('error', (event) => {
514
- if (!this.config.captureConsoleErrors) return
515
-
516
- const error = this.createTachUIError(event.error || new Error(event.message), {
517
- category: 'unknown_error',
518
- severity: 'medium',
519
- context: {
520
- filename: event.filename,
521
- lineno: event.lineno,
522
- colno: event.colno,
523
- },
524
- })
525
-
526
- this.reportError(error)
527
- })
528
-
529
- // Capture unhandled promise rejections
530
- window.addEventListener('unhandledrejection', (event) => {
531
- if (!this.config.captureUnhandledPromises) return
532
-
533
- const error = this.createTachUIError(
534
- event.reason instanceof Error ? event.reason : new Error(String(event.reason)),
535
- {
536
- category: 'network_error',
537
- severity: 'medium',
538
- context: { type: 'unhandled_promise_rejection' },
539
- }
540
- )
541
-
542
- this.reportError(error)
543
- })
544
- }
545
-
546
- /**
547
- * Create standardized TachUI error
548
- */
549
- createTachUIError(
550
- error: Error,
551
- options: {
552
- category?: ErrorCategory
553
- severity?: ErrorSeverity
554
- componentId?: string
555
- componentName?: string
556
- phase?: string
557
- context?: Record<string, any>
558
- } = {}
559
- ): TachUIError {
560
- return {
561
- id: `error_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`,
562
- message: error.message,
563
- stack: this.config.enableStackTrace ? error.stack : undefined,
564
- cause: error,
565
- timestamp: Date.now(),
566
- category: options.category || 'unknown_error',
567
- severity: options.severity || 'medium',
568
- componentId: options.componentId,
569
- componentName: options.componentName,
570
- phase: options.phase,
571
- context: options.context,
572
- userAgent: typeof window !== 'undefined' ? window.navigator.userAgent : undefined,
573
- url: typeof window !== 'undefined' ? window.location.href : undefined,
574
- retryCount: 0,
575
- recovered: false,
576
- }
577
- }
578
-
579
- /**
580
- * Report error to all registered reporters
581
- */
582
- reportError(error: TachUIError): void {
583
- if (!this.config.enabled) return
584
-
585
- // Throttle reporting to prevent spam
586
- const throttleKey = `${error.category}_${error.message}`
587
- const lastReport = this.throttleMap.get(throttleKey) || 0
588
- const now = Date.now()
589
-
590
- if (now - lastReport < this.config.reportingThrottle) {
591
- return
592
- }
593
-
594
- this.throttleMap.set(throttleKey, now)
595
-
596
- // Add to errors array
597
- this.errors.push(error)
598
-
599
- // Limit errors array size
600
- if (this.errors.length > this.config.maxErrorsPerSession) {
601
- this.errors.shift()
602
- }
603
-
604
- // Clean old errors
605
- this.cleanOldErrors()
606
-
607
- // Update reactive signal
608
- this.setErrors([...this.errors])
609
-
610
- // Track with performance monitor
611
- if (globalPerformanceMonitor.isEnabled()) {
612
- globalPerformanceMonitor.recordMetric({
613
- name: 'error_reported',
614
- value: 1,
615
- unit: 'count',
616
- timestamp: error.timestamp,
617
- category: 'component',
618
- componentId: error.componentId,
619
- })
620
- }
621
-
622
- // Call reporters
623
- this.reporters.forEach((reporter) => {
624
- try {
625
- reporter.report(error)
626
- } catch (reporterError) {
627
- console.error('Error reporter failed:', reporterError)
628
- }
629
- })
630
-
631
- // Call handlers
632
- this.handlers.forEach((handler) => {
633
- try {
634
- handler(error)
635
- } catch (handlerError) {
636
- console.error('Error handler failed:', handlerError)
637
- }
638
- })
639
-
640
- // Log to console in development
641
- if (this.config.development) {
642
- console.group(`🚨 TachUI Error [${error.category}]`)
643
- console.error(error.message)
644
- if (error.stack) console.error(error.stack)
645
- if (error.context) console.log('Context:', error.context)
646
- console.groupEnd()
647
- }
648
- }
649
-
650
- /**
651
- * Clean old errors based on max age
652
- */
653
- private cleanOldErrors(): void {
654
- const cutoff = Date.now() - this.config.maxErrorAge
655
- this.errors = this.errors.filter((error) => error.timestamp > cutoff)
656
- }
657
-
658
- /**
659
- * Add error reporter
660
- */
661
- addReporter(reporter: ErrorReporter): () => void {
662
- this.reporters.push(reporter)
663
-
664
- return () => {
665
- const index = this.reporters.indexOf(reporter)
666
- if (index !== -1) {
667
- this.reporters.splice(index, 1)
668
- }
669
- }
670
- }
671
-
672
- /**
673
- * Add error handler
674
- */
675
- addHandler(handler: ErrorHandler): () => void {
676
- this.handlers.push(handler)
677
-
678
- return () => {
679
- const index = this.handlers.indexOf(handler)
680
- if (index !== -1) {
681
- this.handlers.splice(index, 1)
682
- }
683
- }
684
- }
685
-
686
- /**
687
- * Get all errors
688
- */
689
- getErrors(): TachUIError[] {
690
- return [...this.errors]
691
- }
692
-
693
- /**
694
- * Get errors signal
695
- */
696
- getErrorsSignal(): () => TachUIError[] {
697
- return this.errorsSignal
698
- }
699
-
700
- /**
701
- * Get errors by category
702
- */
703
- getErrorsByCategory(category: ErrorCategory): TachUIError[] {
704
- return this.errors.filter((error) => error.category === category)
705
- }
706
-
707
- /**
708
- * Get errors by severity
709
- */
710
- getErrorsBySeverity(severity: ErrorSeverity): TachUIError[] {
711
- return this.errors.filter((error) => error.severity === severity)
712
- }
713
-
714
- /**
715
- * Get errors by component
716
- */
717
- getErrorsByComponent(componentId: string): TachUIError[] {
718
- return this.errors.filter((error) => error.componentId === componentId)
719
- }
720
-
721
- /**
722
- * Mark error as recovered
723
- */
724
- markErrorRecovered(errorId: string): void {
725
- const error = this.errors.find((e) => e.id === errorId)
726
- if (error) {
727
- error.recovered = true
728
- this.setErrors([...this.errors])
729
- }
730
- }
731
-
732
- /**
733
- * Clear all errors
734
- */
735
- clear(): void {
736
- this.errors.length = 0
737
- this.throttleMap.clear()
738
- this.setErrors([])
739
- }
740
-
741
- /**
742
- * Get error statistics
743
- */
744
- getStatistics(): {
745
- totalErrors: number
746
- errorsByCategory: Record<ErrorCategory, number>
747
- errorsBySeverity: Record<ErrorSeverity, number>
748
- recoveredErrors: number
749
- recentErrors: number
750
- } {
751
- const errorsByCategory = {} as Record<ErrorCategory, number>
752
- const errorsBySeverity = {} as Record<ErrorSeverity, number>
753
-
754
- for (const error of this.errors) {
755
- errorsByCategory[error.category] = (errorsByCategory[error.category] || 0) + 1
756
- errorsBySeverity[error.severity] = (errorsBySeverity[error.severity] || 0) + 1
757
- }
758
-
759
- const recoveredErrors = this.errors.filter((e) => e.recovered).length
760
- const recentErrors = this.errors.filter(
761
- (e) => Date.now() - e.timestamp < 5 * 60 * 1000 // Last 5 minutes
762
- ).length
763
-
764
- return {
765
- totalErrors: this.errors.length,
766
- errorsByCategory,
767
- errorsBySeverity,
768
- recoveredErrors,
769
- recentErrors,
770
- }
771
- }
772
- }
773
-
774
- /**
775
- * Global error manager instance
776
- */
777
- export const globalErrorManager = ErrorManager.getInstance()
778
-
779
- /**
780
- * Create error boundary component
781
- */
782
- export function createErrorBoundary(
783
- props: ErrorBoundaryProps,
784
- children: ComponentInstance[]
785
- ): ErrorBoundary {
786
- return new ErrorBoundary(props, children, globalErrorManager)
787
- }
788
-
789
- /**
790
- * Built-in error reporters
791
- */
792
- export const errorReporters = {
793
- /**
794
- * Console reporter
795
- */
796
- console: {
797
- report(error: TachUIError): void {
798
- console.error(`[${error.category}] ${error.message}`, error)
799
- },
800
- } as ErrorReporter,
801
-
802
- /**
803
- * Local storage reporter
804
- */
805
- localStorage: {
806
- report(error: TachUIError): void {
807
- try {
808
- const stored = JSON.parse(localStorage.getItem('tachui_errors') || '[]')
809
- stored.push(error)
810
-
811
- // Keep only last 50 errors
812
- if (stored.length > 50) {
813
- stored.splice(0, stored.length - 50)
814
- }
815
-
816
- localStorage.setItem('tachui_errors', JSON.stringify(stored))
817
- } catch (e) {
818
- console.error('Failed to store error in localStorage:', e)
819
- }
820
- },
821
- } as ErrorReporter,
822
-
823
- /**
824
- * Remote API reporter
825
- */
826
- createRemoteReporter(endpoint: string, apiKey?: string): ErrorReporter {
827
- return {
828
- async report(error: TachUIError): Promise<void> {
829
- try {
830
- const headers: HeadersInit = {
831
- 'Content-Type': 'application/json',
832
- }
833
-
834
- if (apiKey) {
835
- headers.Authorization = `Bearer ${apiKey}`
836
- }
837
-
838
- await fetch(endpoint, {
839
- method: 'POST',
840
- headers,
841
- body: JSON.stringify(error),
842
- })
843
- } catch (e) {
844
- console.error('Failed to report error to remote endpoint:', e)
845
- }
846
- },
847
- }
848
- },
849
- }
850
-
851
- /**
852
- * Error handling utilities
853
- */
854
- export const errorUtils = {
855
- /**
856
- * Wrap function with error handling
857
- */
858
- withErrorHandling<T extends (...args: any[]) => any>(
859
- fn: T,
860
- options: {
861
- category?: ErrorCategory
862
- onError?: (error: TachUIError) => void
863
- fallback?: ReturnType<T>
864
- } = {}
865
- ): T {
866
- return ((...args: Parameters<T>): ReturnType<T> => {
867
- try {
868
- return fn(...args)
869
- } catch (error) {
870
- const tachUIError = globalErrorManager.createTachUIError(error as Error, {
871
- category: options.category || 'unknown_error',
872
- })
873
-
874
- globalErrorManager.reportError(tachUIError)
875
-
876
- if (options.onError) {
877
- options.onError(tachUIError)
878
- }
879
-
880
- if (options.fallback !== undefined) {
881
- return options.fallback
882
- }
883
-
884
- throw error
885
- }
886
- }) as T
887
- },
888
-
889
- /**
890
- * Wrap async function with error handling
891
- */
892
- withAsyncErrorHandling<T extends (...args: any[]) => Promise<any>>(
893
- fn: T,
894
- options: {
895
- category?: ErrorCategory
896
- onError?: (error: TachUIError) => void
897
- fallback?: Awaited<ReturnType<T>>
898
- } = {}
899
- ): T {
900
- return (async (...args: Parameters<T>): Promise<Awaited<ReturnType<T>>> => {
901
- try {
902
- return await fn(...args)
903
- } catch (error) {
904
- const tachUIError = globalErrorManager.createTachUIError(error as Error, {
905
- category: options.category || 'network_error',
906
- })
907
-
908
- globalErrorManager.reportError(tachUIError)
909
-
910
- if (options.onError) {
911
- options.onError(tachUIError)
912
- }
913
-
914
- if (options.fallback !== undefined) {
915
- return options.fallback
916
- }
917
-
918
- throw error
919
- }
920
- }) as T
921
- },
922
-
923
- /**
924
- * Create error boundary with common configurations
925
- */
926
- createSimpleErrorBoundary(
927
- fallbackMessage: string = 'Something went wrong'
928
- ): (children: ComponentInstance[]) => ErrorBoundary {
929
- return (children: ComponentInstance[]) =>
930
- createErrorBoundary(
931
- {
932
- fallback: (_error, _retry) => ({
933
- type: 'component',
934
- id: 'error-fallback',
935
- props: {},
936
- render: () => [
937
- {
938
- type: 'element',
939
- tag: 'div',
940
- props: { className: 'simple-error-boundary' },
941
- children: [
942
- {
943
- type: 'text',
944
- text: fallbackMessage,
945
- },
946
- ],
947
- },
948
- ],
949
- }),
950
- recovery: [{ strategy: 'retry', maxRetries: 3, retryDelay: 1000 }],
951
- },
952
- children
953
- )
954
- },
955
- }