@tachui/core 0.7.0-alpha1 → 0.8.0-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 (1172) hide show
  1. package/README.md +195 -0
  2. package/dist/bundles/common.d.ts +1 -1
  3. package/dist/bundles/common.d.ts.map +1 -1
  4. package/dist/bundles/minimal.d.ts +17 -5
  5. package/dist/bundles/minimal.d.ts.map +1 -1
  6. package/dist/bundles/production-minimal.d.ts +2 -16
  7. package/dist/bundles/production-minimal.d.ts.map +1 -1
  8. package/dist/common.js +402 -955
  9. package/dist/compiler/advanced-parser.d.ts.map +1 -1
  10. package/dist/compiler/index.js +1392 -10
  11. package/dist/component-XAzF1xqs.js +487 -0
  12. package/dist/component-base-x2XmHFjy.js +255 -0
  13. package/dist/components/index.d.ts +4 -38
  14. package/dist/components/index.d.ts.map +1 -1
  15. package/dist/components/index.js +7 -102
  16. package/dist/components/wrapper.d.ts +5 -152
  17. package/dist/components/wrapper.d.ts.map +1 -1
  18. package/dist/concatenated-component-ByPl3_FF.js +2933 -0
  19. package/dist/constants/index.d.ts +1 -1
  20. package/dist/constants/layout.d.ts +47 -4
  21. package/dist/constants/layout.d.ts.map +1 -1
  22. package/dist/constants/layout.js +52 -14
  23. package/dist/css-classes/index.js +176 -0
  24. package/dist/dom-bridge-CAa1N2zX.js +406 -0
  25. package/dist/effect-B9Knft0b.js +66 -0
  26. package/dist/essential.js +394 -953
  27. package/dist/index-DCPJFUm9.js +1407 -0
  28. package/dist/index-DIvMCJQO.js +268 -0
  29. package/dist/index-vdsiw6gQ.js +777 -0
  30. package/dist/index.d.ts +9 -9
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +394 -953
  33. package/dist/minimal-prod.js +107 -190
  34. package/dist/minimal.js +115 -955
  35. package/dist/modifiers/background.d.ts +41 -11
  36. package/dist/modifiers/background.d.ts.map +1 -1
  37. package/dist/modifiers/base.d.ts +6 -33
  38. package/dist/modifiers/base.d.ts.map +1 -1
  39. package/dist/modifiers/base.js +275 -533
  40. package/dist/modifiers/builder.d.ts +103 -195
  41. package/dist/modifiers/builder.d.ts.map +1 -1
  42. package/dist/modifiers/builder.js +7 -928
  43. package/dist/modifiers/core.d.ts +9 -401
  44. package/dist/modifiers/core.d.ts.map +1 -1
  45. package/dist/modifiers/{utils.d.ts → factories.d.ts} +18 -5
  46. package/dist/modifiers/factories.d.ts.map +1 -0
  47. package/dist/modifiers/index.d.ts +8 -52
  48. package/dist/modifiers/index.d.ts.map +1 -1
  49. package/dist/modifiers/index.js +38 -0
  50. package/dist/modifiers/presets.d.ts +368 -0
  51. package/dist/modifiers/presets.d.ts.map +1 -0
  52. package/dist/modifiers/registry.js +8 -161
  53. package/dist/modifiers/types.d.ts +39 -211
  54. package/dist/modifiers/types.d.ts.map +1 -1
  55. package/dist/modifiers/types.js +0 -1
  56. package/dist/performance-optimizer-stub-CtfXUwl4.js +38 -0
  57. package/dist/plugins/index.d.ts +5 -6
  58. package/dist/plugins/index.d.ts.map +1 -1
  59. package/dist/plugins/index.js +393 -32
  60. package/dist/plugins/simplified-index.d.ts +5 -6
  61. package/dist/plugins/simplified-index.d.ts.map +1 -1
  62. package/dist/production-minimal-BY_gMc-l.js +2532 -0
  63. package/dist/reactive/index.js +489 -91
  64. package/dist/reactive/types.js +0 -1
  65. package/dist/runtime/dom-bridge.js +12 -239
  66. package/dist/runtime/element-override.d.ts.map +1 -1
  67. package/dist/runtime/index.d.ts +0 -7
  68. package/dist/runtime/index.d.ts.map +1 -1
  69. package/dist/runtime/renderer.d.ts.map +1 -1
  70. package/dist/runtime/renderer.js +7 -388
  71. package/dist/runtime/semantic-role-manager.d.ts.map +1 -1
  72. package/dist/runtime/types.js +1 -0
  73. package/dist/scheduler-BKeqwrYE.js +814 -0
  74. package/dist/validation/build-time-stub.d.ts +33 -0
  75. package/dist/validation/build-time-stub.d.ts.map +1 -0
  76. package/dist/validation/debug-tools-stub.d.ts +67 -0
  77. package/dist/validation/debug-tools-stub.d.ts.map +1 -0
  78. package/dist/validation/index.d.ts +23 -78
  79. package/dist/validation/index.d.ts.map +1 -1
  80. package/dist/validation/index.js +788 -233
  81. package/dist/validation/lifecycle-validation.d.ts.map +1 -1
  82. package/dist/validation/performance-optimizer-stub.d.ts +50 -0
  83. package/dist/validation/performance-optimizer-stub.d.ts.map +1 -0
  84. package/dist/validation/plugin-registration.d.ts +5 -1
  85. package/dist/validation/plugin-registration.d.ts.map +1 -1
  86. package/dist/validation/production-bypass-core.d.ts +69 -0
  87. package/dist/validation/production-bypass-core.d.ts.map +1 -0
  88. package/package.json +43 -8
  89. package/dist/assets/Asset.cjs +0 -2
  90. package/dist/assets/Asset.cjs.map +0 -1
  91. package/dist/assets/Asset.js +0 -9
  92. package/dist/assets/Asset.js.map +0 -1
  93. package/dist/assets/AssetCollection.cjs +0 -2
  94. package/dist/assets/AssetCollection.cjs.map +0 -1
  95. package/dist/assets/AssetCollection.js +0 -44
  96. package/dist/assets/AssetCollection.js.map +0 -1
  97. package/dist/assets/ColorAsset.cjs +0 -2
  98. package/dist/assets/ColorAsset.cjs.map +0 -1
  99. package/dist/assets/ColorAsset.js +0 -114
  100. package/dist/assets/ColorAsset.js.map +0 -1
  101. package/dist/assets/FontAsset.cjs +0 -9
  102. package/dist/assets/FontAsset.cjs.map +0 -1
  103. package/dist/assets/FontAsset.js +0 -173
  104. package/dist/assets/FontAsset.js.map +0 -1
  105. package/dist/assets/ImageAsset.cjs +0 -2
  106. package/dist/assets/ImageAsset.cjs.map +0 -1
  107. package/dist/assets/ImageAsset.js +0 -39
  108. package/dist/assets/ImageAsset.js.map +0 -1
  109. package/dist/assets/index.cjs +0 -2
  110. package/dist/assets/index.cjs.map +0 -1
  111. package/dist/assets/index.js +0 -119
  112. package/dist/assets/index.js.map +0 -1
  113. package/dist/common.cjs +0 -2
  114. package/dist/common.cjs.map +0 -1
  115. package/dist/common.js.map +0 -1
  116. package/dist/compiler/advanced-parser.cjs +0 -5
  117. package/dist/compiler/advanced-parser.cjs.map +0 -1
  118. package/dist/compiler/advanced-parser.js +0 -440
  119. package/dist/compiler/advanced-parser.js.map +0 -1
  120. package/dist/compiler/codegen.cjs +0 -6
  121. package/dist/compiler/codegen.cjs.map +0 -1
  122. package/dist/compiler/codegen.js +0 -241
  123. package/dist/compiler/codegen.js.map +0 -1
  124. package/dist/compiler/enhanced-codegen.cjs +0 -6
  125. package/dist/compiler/enhanced-codegen.cjs.map +0 -1
  126. package/dist/compiler/enhanced-codegen.js +0 -347
  127. package/dist/compiler/enhanced-codegen.js.map +0 -1
  128. package/dist/compiler/index.cjs +0 -2
  129. package/dist/compiler/index.cjs.map +0 -1
  130. package/dist/compiler/index.js.map +0 -1
  131. package/dist/compiler/parser.cjs +0 -5
  132. package/dist/compiler/parser.cjs.map +0 -1
  133. package/dist/compiler/parser.js +0 -275
  134. package/dist/compiler/parser.js.map +0 -1
  135. package/dist/compiler/plugin.cjs +0 -33
  136. package/dist/compiler/plugin.cjs.map +0 -1
  137. package/dist/compiler/plugin.js +0 -103
  138. package/dist/compiler/plugin.js.map +0 -1
  139. package/dist/components/BasicInput.cjs +0 -2
  140. package/dist/components/BasicInput.cjs.map +0 -1
  141. package/dist/components/BasicInput.d.ts +0 -116
  142. package/dist/components/BasicInput.d.ts.map +0 -1
  143. package/dist/components/BasicInput.js +0 -182
  144. package/dist/components/BasicInput.js.map +0 -1
  145. package/dist/components/Button.cjs +0 -7
  146. package/dist/components/Button.cjs.map +0 -1
  147. package/dist/components/Button.d.ts +0 -252
  148. package/dist/components/Button.d.ts.map +0 -1
  149. package/dist/components/Button.js +0 -408
  150. package/dist/components/Button.js.map +0 -1
  151. package/dist/components/Divider.cjs +0 -2
  152. package/dist/components/Divider.cjs.map +0 -1
  153. package/dist/components/Divider.d.ts +0 -141
  154. package/dist/components/Divider.d.ts.map +0 -1
  155. package/dist/components/Divider.js +0 -187
  156. package/dist/components/Divider.js.map +0 -1
  157. package/dist/components/EnhancedLink.cjs +0 -2
  158. package/dist/components/EnhancedLink.cjs.map +0 -1
  159. package/dist/components/EnhancedLink.d.ts +0 -365
  160. package/dist/components/EnhancedLink.d.ts.map +0 -1
  161. package/dist/components/EnhancedLink.js +0 -345
  162. package/dist/components/EnhancedLink.js.map +0 -1
  163. package/dist/components/Form.cjs +0 -2
  164. package/dist/components/Form.cjs.map +0 -1
  165. package/dist/components/Form.d.ts +0 -141
  166. package/dist/components/Form.d.ts.map +0 -1
  167. package/dist/components/Form.js +0 -244
  168. package/dist/components/Form.js.map +0 -1
  169. package/dist/components/Grid.cjs +0 -2
  170. package/dist/components/Grid.cjs.map +0 -1
  171. package/dist/components/Grid.d.ts +0 -698
  172. package/dist/components/Grid.d.ts.map +0 -1
  173. package/dist/components/Grid.js +0 -1045
  174. package/dist/components/Grid.js.map +0 -1
  175. package/dist/components/GridResponsive.cjs +0 -2
  176. package/dist/components/GridResponsive.cjs.map +0 -1
  177. package/dist/components/GridResponsive.d.ts +0 -214
  178. package/dist/components/GridResponsive.d.ts.map +0 -1
  179. package/dist/components/GridResponsive.js +0 -382
  180. package/dist/components/GridResponsive.js.map +0 -1
  181. package/dist/components/Image.cjs +0 -2
  182. package/dist/components/Image.cjs.map +0 -1
  183. package/dist/components/Image.d.ts +0 -162
  184. package/dist/components/Image.d.ts.map +0 -1
  185. package/dist/components/Image.js +0 -212
  186. package/dist/components/Image.js.map +0 -1
  187. package/dist/components/List.cjs +0 -2
  188. package/dist/components/List.cjs.map +0 -1
  189. package/dist/components/List.d.ts +0 -287
  190. package/dist/components/List.d.ts.map +0 -1
  191. package/dist/components/List.js +0 -561
  192. package/dist/components/List.js.map +0 -1
  193. package/dist/components/Menu.cjs +0 -2
  194. package/dist/components/Menu.cjs.map +0 -1
  195. package/dist/components/Menu.d.ts +0 -159
  196. package/dist/components/Menu.d.ts.map +0 -1
  197. package/dist/components/Menu.js +0 -443
  198. package/dist/components/Menu.js.map +0 -1
  199. package/dist/components/Picker.cjs +0 -2
  200. package/dist/components/Picker.cjs.map +0 -1
  201. package/dist/components/Picker.d.ts +0 -153
  202. package/dist/components/Picker.d.ts.map +0 -1
  203. package/dist/components/Picker.js +0 -478
  204. package/dist/components/Picker.js.map +0 -1
  205. package/dist/components/ScrollView.cjs +0 -6
  206. package/dist/components/ScrollView.cjs.map +0 -1
  207. package/dist/components/ScrollView.d.ts +0 -222
  208. package/dist/components/ScrollView.d.ts.map +0 -1
  209. package/dist/components/ScrollView.js +0 -363
  210. package/dist/components/ScrollView.js.map +0 -1
  211. package/dist/components/Section.cjs +0 -2
  212. package/dist/components/Section.cjs.map +0 -1
  213. package/dist/components/Section.d.ts +0 -153
  214. package/dist/components/Section.d.ts.map +0 -1
  215. package/dist/components/Section.js +0 -323
  216. package/dist/components/Section.js.map +0 -1
  217. package/dist/components/Show.cjs +0 -2
  218. package/dist/components/Show.cjs.map +0 -1
  219. package/dist/components/Show.d.ts +0 -64
  220. package/dist/components/Show.d.ts.map +0 -1
  221. package/dist/components/Show.js +0 -112
  222. package/dist/components/Show.js.map +0 -1
  223. package/dist/components/Spacer.cjs +0 -2
  224. package/dist/components/Spacer.cjs.map +0 -1
  225. package/dist/components/Spacer.d.ts +0 -35
  226. package/dist/components/Spacer.d.ts.map +0 -1
  227. package/dist/components/Spacer.js +0 -53
  228. package/dist/components/Spacer.js.map +0 -1
  229. package/dist/components/Text.cjs +0 -2
  230. package/dist/components/Text.cjs.map +0 -1
  231. package/dist/components/Text.d.ts +0 -242
  232. package/dist/components/Text.d.ts.map +0 -1
  233. package/dist/components/Text.js +0 -193
  234. package/dist/components/Text.js.map +0 -1
  235. package/dist/components/Toggle.cjs +0 -2
  236. package/dist/components/Toggle.cjs.map +0 -1
  237. package/dist/components/Toggle.d.ts +0 -207
  238. package/dist/components/Toggle.d.ts.map +0 -1
  239. package/dist/components/Toggle.js +0 -477
  240. package/dist/components/Toggle.js.map +0 -1
  241. package/dist/components/index.cjs +0 -2
  242. package/dist/components/index.cjs.map +0 -1
  243. package/dist/components/index.js.map +0 -1
  244. package/dist/components/wrapper.cjs +0 -2
  245. package/dist/components/wrapper.cjs.map +0 -1
  246. package/dist/components/wrapper.js +0 -484
  247. package/dist/components/wrapper.js.map +0 -1
  248. package/dist/concatenation/concatenatable.cjs +0 -2
  249. package/dist/concatenation/concatenatable.cjs.map +0 -1
  250. package/dist/concatenation/concatenatable.js +0 -118
  251. package/dist/concatenation/concatenatable.js.map +0 -1
  252. package/dist/concatenation/concatenated-component.cjs +0 -2
  253. package/dist/concatenation/concatenated-component.cjs.map +0 -1
  254. package/dist/concatenation/concatenated-component.js +0 -276
  255. package/dist/concatenation/concatenated-component.js.map +0 -1
  256. package/dist/concatenation/text-optimizer.cjs +0 -2
  257. package/dist/concatenation/text-optimizer.cjs.map +0 -1
  258. package/dist/concatenation/text-optimizer.js +0 -236
  259. package/dist/concatenation/text-optimizer.js.map +0 -1
  260. package/dist/concatenation/types.cjs +0 -2
  261. package/dist/concatenation/types.cjs.map +0 -1
  262. package/dist/concatenation/types.js +0 -13
  263. package/dist/concatenation/types.js.map +0 -1
  264. package/dist/constants/frame-utils.cjs +0 -2
  265. package/dist/constants/frame-utils.cjs.map +0 -1
  266. package/dist/constants/frame-utils.js +0 -116
  267. package/dist/constants/frame-utils.js.map +0 -1
  268. package/dist/constants/layout.cjs +0 -2
  269. package/dist/constants/layout.cjs.map +0 -1
  270. package/dist/constants/layout.js.map +0 -1
  271. package/dist/css-classes/component-base.cjs +0 -2
  272. package/dist/css-classes/component-base.cjs.map +0 -1
  273. package/dist/css-classes/component-base.js +0 -62
  274. package/dist/css-classes/component-base.js.map +0 -1
  275. package/dist/css-classes/css-class-manager.cjs +0 -2
  276. package/dist/css-classes/css-class-manager.cjs.map +0 -1
  277. package/dist/css-classes/css-class-manager.js +0 -209
  278. package/dist/css-classes/css-class-manager.js.map +0 -1
  279. package/dist/css-classes/dom-integration.cjs +0 -2
  280. package/dist/css-classes/dom-integration.cjs.map +0 -1
  281. package/dist/css-classes/dom-integration.js +0 -67
  282. package/dist/css-classes/dom-integration.js.map +0 -1
  283. package/dist/css-classes/enhanced-renderer.cjs +0 -2
  284. package/dist/css-classes/enhanced-renderer.cjs.map +0 -1
  285. package/dist/css-classes/enhanced-renderer.js +0 -73
  286. package/dist/css-classes/enhanced-renderer.js.map +0 -1
  287. package/dist/css-classes/utilities.cjs +0 -2
  288. package/dist/css-classes/utilities.cjs.map +0 -1
  289. package/dist/css-classes/utilities.js +0 -41
  290. package/dist/css-classes/utilities.js.map +0 -1
  291. package/dist/debug/index.d.ts +0 -61
  292. package/dist/debug/index.d.ts.map +0 -1
  293. package/dist/debug.cjs +0 -52
  294. package/dist/debug.cjs.map +0 -1
  295. package/dist/debug.js +0 -179
  296. package/dist/debug.js.map +0 -1
  297. package/dist/developer-experience/enhanced-errors.d.ts +0 -128
  298. package/dist/developer-experience/enhanced-errors.d.ts.map +0 -1
  299. package/dist/developer-experience/enhanced-types.d.ts +0 -281
  300. package/dist/developer-experience/enhanced-types.d.ts.map +0 -1
  301. package/dist/developer-experience/index.d.ts +0 -44
  302. package/dist/developer-experience/index.d.ts.map +0 -1
  303. package/dist/essential.cjs +0 -2
  304. package/dist/essential.cjs.map +0 -1
  305. package/dist/essential.js.map +0 -1
  306. package/dist/gradients/css-generator.cjs +0 -2
  307. package/dist/gradients/css-generator.cjs.map +0 -1
  308. package/dist/gradients/css-generator.js +0 -100
  309. package/dist/gradients/css-generator.js.map +0 -1
  310. package/dist/gradients/examples.cjs +0 -2
  311. package/dist/gradients/examples.cjs.map +0 -1
  312. package/dist/gradients/examples.js +0 -555
  313. package/dist/gradients/examples.js.map +0 -1
  314. package/dist/gradients/gradient-asset.cjs +0 -2
  315. package/dist/gradients/gradient-asset.cjs.map +0 -1
  316. package/dist/gradients/gradient-asset.js +0 -22
  317. package/dist/gradients/gradient-asset.js.map +0 -1
  318. package/dist/gradients/index.cjs +0 -2
  319. package/dist/gradients/index.cjs.map +0 -1
  320. package/dist/gradients/index.js +0 -78
  321. package/dist/gradients/index.js.map +0 -1
  322. package/dist/gradients/performance.cjs +0 -2
  323. package/dist/gradients/performance.cjs.map +0 -1
  324. package/dist/gradients/performance.js +0 -237
  325. package/dist/gradients/performance.js.map +0 -1
  326. package/dist/gradients/presets.cjs +0 -2
  327. package/dist/gradients/presets.cjs.map +0 -1
  328. package/dist/gradients/presets.js +0 -254
  329. package/dist/gradients/presets.js.map +0 -1
  330. package/dist/gradients/reactive.cjs +0 -2
  331. package/dist/gradients/reactive.cjs.map +0 -1
  332. package/dist/gradients/reactive.js +0 -239
  333. package/dist/gradients/reactive.js.map +0 -1
  334. package/dist/gradients/state-gradient-asset.cjs +0 -2
  335. package/dist/gradients/state-gradient-asset.cjs.map +0 -1
  336. package/dist/gradients/state-gradient-asset.js +0 -111
  337. package/dist/gradients/state-gradient-asset.js.map +0 -1
  338. package/dist/gradients/utils.cjs +0 -2
  339. package/dist/gradients/utils.cjs.map +0 -1
  340. package/dist/gradients/utils.js +0 -385
  341. package/dist/gradients/utils.js.map +0 -1
  342. package/dist/gradients/validation.cjs +0 -2
  343. package/dist/gradients/validation.cjs.map +0 -1
  344. package/dist/gradients/validation.js +0 -209
  345. package/dist/gradients/validation.js.map +0 -1
  346. package/dist/index.cjs +0 -2
  347. package/dist/index.cjs.map +0 -1
  348. package/dist/index.js.map +0 -1
  349. package/dist/index2.cjs +0 -2
  350. package/dist/index2.cjs.map +0 -1
  351. package/dist/index2.js +0 -293
  352. package/dist/index2.js.map +0 -1
  353. package/dist/lifecycle/hooks.cjs +0 -2
  354. package/dist/lifecycle/hooks.cjs.map +0 -1
  355. package/dist/lifecycle/hooks.js +0 -159
  356. package/dist/lifecycle/hooks.js.map +0 -1
  357. package/dist/minimal-prod.cjs +0 -2
  358. package/dist/minimal-prod.cjs.map +0 -1
  359. package/dist/minimal-prod.js.map +0 -1
  360. package/dist/minimal.cjs +0 -2
  361. package/dist/minimal.cjs.map +0 -1
  362. package/dist/minimal.js.map +0 -1
  363. package/dist/modifiers/as-html-validator.cjs +0 -2
  364. package/dist/modifiers/as-html-validator.cjs.map +0 -1
  365. package/dist/modifiers/as-html-validator.js +0 -47
  366. package/dist/modifiers/as-html-validator.js.map +0 -1
  367. package/dist/modifiers/as-html.cjs +0 -2
  368. package/dist/modifiers/as-html.cjs.map +0 -1
  369. package/dist/modifiers/as-html.js +0 -71
  370. package/dist/modifiers/as-html.js.map +0 -1
  371. package/dist/modifiers/attributes.cjs +0 -2
  372. package/dist/modifiers/attributes.cjs.map +0 -1
  373. package/dist/modifiers/attributes.d.ts +0 -203
  374. package/dist/modifiers/attributes.d.ts.map +0 -1
  375. package/dist/modifiers/attributes.js +0 -272
  376. package/dist/modifiers/attributes.js.map +0 -1
  377. package/dist/modifiers/backdrop.cjs +0 -2
  378. package/dist/modifiers/backdrop.cjs.map +0 -1
  379. package/dist/modifiers/backdrop.d.ts +0 -59
  380. package/dist/modifiers/backdrop.d.ts.map +0 -1
  381. package/dist/modifiers/backdrop.js +0 -109
  382. package/dist/modifiers/backdrop.js.map +0 -1
  383. package/dist/modifiers/background.cjs +0 -2
  384. package/dist/modifiers/background.cjs.map +0 -1
  385. package/dist/modifiers/background.js +0 -67
  386. package/dist/modifiers/background.js.map +0 -1
  387. package/dist/modifiers/base.cjs +0 -25
  388. package/dist/modifiers/base.cjs.map +0 -1
  389. package/dist/modifiers/base.js.map +0 -1
  390. package/dist/modifiers/basic-sanitizer.cjs +0 -2
  391. package/dist/modifiers/basic-sanitizer.cjs.map +0 -1
  392. package/dist/modifiers/basic-sanitizer.js +0 -162
  393. package/dist/modifiers/basic-sanitizer.js.map +0 -1
  394. package/dist/modifiers/border.cjs +0 -2
  395. package/dist/modifiers/border.cjs.map +0 -1
  396. package/dist/modifiers/border.d.ts +0 -217
  397. package/dist/modifiers/border.d.ts.map +0 -1
  398. package/dist/modifiers/border.js +0 -160
  399. package/dist/modifiers/border.js.map +0 -1
  400. package/dist/modifiers/builder.cjs +0 -2
  401. package/dist/modifiers/builder.cjs.map +0 -1
  402. package/dist/modifiers/builder.js.map +0 -1
  403. package/dist/modifiers/core.cjs +0 -2
  404. package/dist/modifiers/core.cjs.map +0 -1
  405. package/dist/modifiers/core.js +0 -398
  406. package/dist/modifiers/core.js.map +0 -1
  407. package/dist/modifiers/css.cjs +0 -2
  408. package/dist/modifiers/css.cjs.map +0 -1
  409. package/dist/modifiers/css.js +0 -50
  410. package/dist/modifiers/css.js.map +0 -1
  411. package/dist/modifiers/effects.cjs +0 -2
  412. package/dist/modifiers/effects.cjs.map +0 -1
  413. package/dist/modifiers/effects.d.ts +0 -159
  414. package/dist/modifiers/effects.d.ts.map +0 -1
  415. package/dist/modifiers/effects.js +0 -178
  416. package/dist/modifiers/effects.js.map +0 -1
  417. package/dist/modifiers/elements.cjs +0 -2
  418. package/dist/modifiers/elements.cjs.map +0 -1
  419. package/dist/modifiers/elements.d.ts +0 -240
  420. package/dist/modifiers/elements.d.ts.map +0 -1
  421. package/dist/modifiers/elements.js +0 -216
  422. package/dist/modifiers/elements.js.map +0 -1
  423. package/dist/modifiers/filters.cjs +0 -2
  424. package/dist/modifiers/filters.cjs.map +0 -1
  425. package/dist/modifiers/filters.d.ts +0 -275
  426. package/dist/modifiers/filters.d.ts.map +0 -1
  427. package/dist/modifiers/filters.js +0 -223
  428. package/dist/modifiers/filters.js.map +0 -1
  429. package/dist/modifiers/flexbox.cjs +0 -2
  430. package/dist/modifiers/flexbox.cjs.map +0 -1
  431. package/dist/modifiers/flexbox.d.ts +0 -82
  432. package/dist/modifiers/flexbox.d.ts.map +0 -1
  433. package/dist/modifiers/flexbox.js +0 -56
  434. package/dist/modifiers/flexbox.js.map +0 -1
  435. package/dist/modifiers/font.cjs +0 -2
  436. package/dist/modifiers/font.cjs.map +0 -1
  437. package/dist/modifiers/font.d.ts +0 -71
  438. package/dist/modifiers/font.d.ts.map +0 -1
  439. package/dist/modifiers/font.js +0 -60
  440. package/dist/modifiers/font.js.map +0 -1
  441. package/dist/modifiers/grid.cjs +0 -2
  442. package/dist/modifiers/grid.cjs.map +0 -1
  443. package/dist/modifiers/grid.d.ts +0 -92
  444. package/dist/modifiers/grid.d.ts.map +0 -1
  445. package/dist/modifiers/grid.js +0 -92
  446. package/dist/modifiers/grid.js.map +0 -1
  447. package/dist/modifiers/margin.cjs +0 -2
  448. package/dist/modifiers/margin.cjs.map +0 -1
  449. package/dist/modifiers/margin.d.ts +0 -128
  450. package/dist/modifiers/margin.d.ts.map +0 -1
  451. package/dist/modifiers/margin.js +0 -65
  452. package/dist/modifiers/margin.js.map +0 -1
  453. package/dist/modifiers/padding.cjs +0 -2
  454. package/dist/modifiers/padding.cjs.map +0 -1
  455. package/dist/modifiers/padding.d.ts +0 -204
  456. package/dist/modifiers/padding.d.ts.map +0 -1
  457. package/dist/modifiers/padding.js +0 -109
  458. package/dist/modifiers/padding.js.map +0 -1
  459. package/dist/modifiers/registry.cjs +0 -2
  460. package/dist/modifiers/registry.cjs.map +0 -1
  461. package/dist/modifiers/registry.js.map +0 -1
  462. package/dist/modifiers/responsive/advanced-utilities.cjs +0 -2
  463. package/dist/modifiers/responsive/advanced-utilities.cjs.map +0 -1
  464. package/dist/modifiers/responsive/advanced-utilities.d.ts +0 -118
  465. package/dist/modifiers/responsive/advanced-utilities.d.ts.map +0 -1
  466. package/dist/modifiers/responsive/advanced-utilities.js +0 -291
  467. package/dist/modifiers/responsive/advanced-utilities.js.map +0 -1
  468. package/dist/modifiers/responsive/breakpoints.cjs +0 -2
  469. package/dist/modifiers/responsive/breakpoints.cjs.map +0 -1
  470. package/dist/modifiers/responsive/breakpoints.d.ts +0 -81
  471. package/dist/modifiers/responsive/breakpoints.d.ts.map +0 -1
  472. package/dist/modifiers/responsive/breakpoints.js +0 -168
  473. package/dist/modifiers/responsive/breakpoints.js.map +0 -1
  474. package/dist/modifiers/responsive/css-generator.cjs +0 -5
  475. package/dist/modifiers/responsive/css-generator.cjs.map +0 -1
  476. package/dist/modifiers/responsive/css-generator.d.ts +0 -100
  477. package/dist/modifiers/responsive/css-generator.d.ts.map +0 -1
  478. package/dist/modifiers/responsive/css-generator.js +0 -261
  479. package/dist/modifiers/responsive/css-generator.js.map +0 -1
  480. package/dist/modifiers/responsive/dev-tools.cjs +0 -77
  481. package/dist/modifiers/responsive/dev-tools.cjs.map +0 -1
  482. package/dist/modifiers/responsive/dev-tools.d.ts +0 -107
  483. package/dist/modifiers/responsive/dev-tools.d.ts.map +0 -1
  484. package/dist/modifiers/responsive/dev-tools.js +0 -380
  485. package/dist/modifiers/responsive/dev-tools.js.map +0 -1
  486. package/dist/modifiers/responsive/index.d.ts +0 -28
  487. package/dist/modifiers/responsive/index.d.ts.map +0 -1
  488. package/dist/modifiers/responsive/layout-patterns.cjs +0 -2
  489. package/dist/modifiers/responsive/layout-patterns.cjs.map +0 -1
  490. package/dist/modifiers/responsive/layout-patterns.d.ts +0 -230
  491. package/dist/modifiers/responsive/layout-patterns.d.ts.map +0 -1
  492. package/dist/modifiers/responsive/layout-patterns.js +0 -254
  493. package/dist/modifiers/responsive/layout-patterns.js.map +0 -1
  494. package/dist/modifiers/responsive/performance.cjs +0 -3
  495. package/dist/modifiers/responsive/performance.cjs.map +0 -1
  496. package/dist/modifiers/responsive/performance.d.ts +0 -130
  497. package/dist/modifiers/responsive/performance.d.ts.map +0 -1
  498. package/dist/modifiers/responsive/performance.js +0 -212
  499. package/dist/modifiers/responsive/performance.js.map +0 -1
  500. package/dist/modifiers/responsive/responsive-builder.cjs +0 -2
  501. package/dist/modifiers/responsive/responsive-builder.cjs.map +0 -1
  502. package/dist/modifiers/responsive/responsive-builder.d.ts +0 -133
  503. package/dist/modifiers/responsive/responsive-builder.d.ts.map +0 -1
  504. package/dist/modifiers/responsive/responsive-builder.js +0 -272
  505. package/dist/modifiers/responsive/responsive-builder.js.map +0 -1
  506. package/dist/modifiers/responsive/responsive-modifier.cjs +0 -3
  507. package/dist/modifiers/responsive/responsive-modifier.cjs.map +0 -1
  508. package/dist/modifiers/responsive/responsive-modifier.d.ts +0 -123
  509. package/dist/modifiers/responsive/responsive-modifier.d.ts.map +0 -1
  510. package/dist/modifiers/responsive/responsive-modifier.js +0 -204
  511. package/dist/modifiers/responsive/responsive-modifier.js.map +0 -1
  512. package/dist/modifiers/responsive/types.cjs +0 -2
  513. package/dist/modifiers/responsive/types.cjs.map +0 -1
  514. package/dist/modifiers/responsive/types.d.ts +0 -183
  515. package/dist/modifiers/responsive/types.d.ts.map +0 -1
  516. package/dist/modifiers/responsive/types.js +0 -26
  517. package/dist/modifiers/responsive/types.js.map +0 -1
  518. package/dist/modifiers/responsive/utilities.cjs +0 -16
  519. package/dist/modifiers/responsive/utilities.cjs.map +0 -1
  520. package/dist/modifiers/responsive/utilities.d.ts +0 -149
  521. package/dist/modifiers/responsive/utilities.d.ts.map +0 -1
  522. package/dist/modifiers/responsive/utilities.js +0 -273
  523. package/dist/modifiers/responsive/utilities.js.map +0 -1
  524. package/dist/modifiers/scroll.cjs +0 -2
  525. package/dist/modifiers/scroll.cjs.map +0 -1
  526. package/dist/modifiers/scroll.d.ts +0 -143
  527. package/dist/modifiers/scroll.d.ts.map +0 -1
  528. package/dist/modifiers/scroll.js +0 -82
  529. package/dist/modifiers/scroll.js.map +0 -1
  530. package/dist/modifiers/shadows.cjs +0 -2
  531. package/dist/modifiers/shadows.cjs.map +0 -1
  532. package/dist/modifiers/shadows.d.ts +0 -114
  533. package/dist/modifiers/shadows.d.ts.map +0 -1
  534. package/dist/modifiers/shadows.js +0 -147
  535. package/dist/modifiers/shadows.js.map +0 -1
  536. package/dist/modifiers/size.cjs +0 -2
  537. package/dist/modifiers/size.cjs.map +0 -1
  538. package/dist/modifiers/size.d.ts +0 -113
  539. package/dist/modifiers/size.d.ts.map +0 -1
  540. package/dist/modifiers/size.js +0 -74
  541. package/dist/modifiers/size.js.map +0 -1
  542. package/dist/modifiers/text.cjs +0 -2
  543. package/dist/modifiers/text.cjs.map +0 -1
  544. package/dist/modifiers/text.d.ts +0 -147
  545. package/dist/modifiers/text.d.ts.map +0 -1
  546. package/dist/modifiers/text.js +0 -166
  547. package/dist/modifiers/text.js.map +0 -1
  548. package/dist/modifiers/transformations.cjs +0 -2
  549. package/dist/modifiers/transformations.cjs.map +0 -1
  550. package/dist/modifiers/transformations.d.ts +0 -329
  551. package/dist/modifiers/transformations.d.ts.map +0 -1
  552. package/dist/modifiers/transformations.js +0 -216
  553. package/dist/modifiers/transformations.js.map +0 -1
  554. package/dist/modifiers/transitions.cjs +0 -2
  555. package/dist/modifiers/transitions.cjs.map +0 -1
  556. package/dist/modifiers/transitions.d.ts +0 -98
  557. package/dist/modifiers/transitions.d.ts.map +0 -1
  558. package/dist/modifiers/transitions.js +0 -102
  559. package/dist/modifiers/transitions.js.map +0 -1
  560. package/dist/modifiers/types.cjs +0 -2
  561. package/dist/modifiers/types.cjs.map +0 -1
  562. package/dist/modifiers/types.js.map +0 -1
  563. package/dist/modifiers/typography.cjs +0 -2
  564. package/dist/modifiers/typography.cjs.map +0 -1
  565. package/dist/modifiers/typography.d.ts +0 -192
  566. package/dist/modifiers/typography.d.ts.map +0 -1
  567. package/dist/modifiers/typography.js +0 -76
  568. package/dist/modifiers/typography.js.map +0 -1
  569. package/dist/modifiers/utility.cjs +0 -2
  570. package/dist/modifiers/utility.cjs.map +0 -1
  571. package/dist/modifiers/utility.d.ts +0 -69
  572. package/dist/modifiers/utility.d.ts.map +0 -1
  573. package/dist/modifiers/utility.js +0 -71
  574. package/dist/modifiers/utility.js.map +0 -1
  575. package/dist/modifiers/utils.cjs +0 -2
  576. package/dist/modifiers/utils.cjs.map +0 -1
  577. package/dist/modifiers/utils.d.ts.map +0 -1
  578. package/dist/modifiers/utils.js +0 -250
  579. package/dist/modifiers/utils.js.map +0 -1
  580. package/dist/plugins/index.cjs +0 -2
  581. package/dist/plugins/index.cjs.map +0 -1
  582. package/dist/plugins/index.js.map +0 -1
  583. package/dist/plugins/legacy-adapter.cjs +0 -2
  584. package/dist/plugins/legacy-adapter.cjs.map +0 -1
  585. package/dist/plugins/legacy-adapter.js +0 -30
  586. package/dist/plugins/legacy-adapter.js.map +0 -1
  587. package/dist/plugins/simplified-component-registry.cjs +0 -2
  588. package/dist/plugins/simplified-component-registry.cjs.map +0 -1
  589. package/dist/plugins/simplified-component-registry.js +0 -71
  590. package/dist/plugins/simplified-component-registry.js.map +0 -1
  591. package/dist/plugins/simplified-error-handler.cjs +0 -2
  592. package/dist/plugins/simplified-error-handler.cjs.map +0 -1
  593. package/dist/plugins/simplified-error-handler.d.ts +0 -83
  594. package/dist/plugins/simplified-error-handler.d.ts.map +0 -1
  595. package/dist/plugins/simplified-error-handler.js +0 -154
  596. package/dist/plugins/simplified-error-handler.js.map +0 -1
  597. package/dist/plugins/simplified-lazy-loader.cjs +0 -2
  598. package/dist/plugins/simplified-lazy-loader.cjs.map +0 -1
  599. package/dist/plugins/simplified-lazy-loader.js +0 -129
  600. package/dist/plugins/simplified-lazy-loader.js.map +0 -1
  601. package/dist/plugins/simplified-plugin-manager.cjs +0 -2
  602. package/dist/plugins/simplified-plugin-manager.cjs.map +0 -1
  603. package/dist/plugins/simplified-plugin-manager.js +0 -51
  604. package/dist/plugins/simplified-plugin-manager.js.map +0 -1
  605. package/dist/plugins/simplified-tachui-instance.cjs +0 -2
  606. package/dist/plugins/simplified-tachui-instance.cjs.map +0 -1
  607. package/dist/plugins/simplified-tachui-instance.js +0 -88
  608. package/dist/plugins/simplified-tachui-instance.js.map +0 -1
  609. package/dist/plugins/simplified-types.cjs +0 -2
  610. package/dist/plugins/simplified-types.cjs.map +0 -1
  611. package/dist/plugins/simplified-types.js +0 -9
  612. package/dist/plugins/simplified-types.js.map +0 -1
  613. package/dist/plugins/simplified-utils.cjs +0 -2
  614. package/dist/plugins/simplified-utils.cjs.map +0 -1
  615. package/dist/plugins/simplified-utils.js +0 -40
  616. package/dist/plugins/simplified-utils.js.map +0 -1
  617. package/dist/reactive/cleanup.cjs +0 -2
  618. package/dist/reactive/cleanup.cjs.map +0 -1
  619. package/dist/reactive/cleanup.js +0 -62
  620. package/dist/reactive/cleanup.js.map +0 -1
  621. package/dist/reactive/computed.cjs +0 -2
  622. package/dist/reactive/computed.cjs.map +0 -1
  623. package/dist/reactive/computed.js +0 -121
  624. package/dist/reactive/computed.js.map +0 -1
  625. package/dist/reactive/context.cjs +0 -2
  626. package/dist/reactive/context.cjs.map +0 -1
  627. package/dist/reactive/context.js +0 -143
  628. package/dist/reactive/context.js.map +0 -1
  629. package/dist/reactive/effect.cjs +0 -2
  630. package/dist/reactive/effect.cjs.map +0 -1
  631. package/dist/reactive/effect.js +0 -67
  632. package/dist/reactive/effect.js.map +0 -1
  633. package/dist/reactive/enhanced-effect.cjs +0 -2
  634. package/dist/reactive/enhanced-effect.cjs.map +0 -1
  635. package/dist/reactive/enhanced-effect.js +0 -153
  636. package/dist/reactive/enhanced-effect.js.map +0 -1
  637. package/dist/reactive/enhanced-signal.cjs +0 -2
  638. package/dist/reactive/enhanced-signal.cjs.map +0 -1
  639. package/dist/reactive/enhanced-signal.js +0 -117
  640. package/dist/reactive/enhanced-signal.js.map +0 -1
  641. package/dist/reactive/equality.cjs +0 -2
  642. package/dist/reactive/equality.cjs.map +0 -1
  643. package/dist/reactive/equality.js +0 -66
  644. package/dist/reactive/equality.js.map +0 -1
  645. package/dist/reactive/index.cjs +0 -2
  646. package/dist/reactive/index.cjs.map +0 -1
  647. package/dist/reactive/index.js.map +0 -1
  648. package/dist/reactive/migration.cjs +0 -18
  649. package/dist/reactive/migration.cjs.map +0 -1
  650. package/dist/reactive/migration.js +0 -164
  651. package/dist/reactive/migration.js.map +0 -1
  652. package/dist/reactive/ownership.cjs +0 -2
  653. package/dist/reactive/ownership.cjs.map +0 -1
  654. package/dist/reactive/ownership.js +0 -34
  655. package/dist/reactive/ownership.js.map +0 -1
  656. package/dist/reactive/scheduler.cjs +0 -2
  657. package/dist/reactive/scheduler.cjs.map +0 -1
  658. package/dist/reactive/scheduler.js +0 -111
  659. package/dist/reactive/scheduler.js.map +0 -1
  660. package/dist/reactive/signal.cjs +0 -2
  661. package/dist/reactive/signal.cjs.map +0 -1
  662. package/dist/reactive/signal.js +0 -96
  663. package/dist/reactive/signal.js.map +0 -1
  664. package/dist/reactive/theme.cjs +0 -2
  665. package/dist/reactive/theme.cjs.map +0 -1
  666. package/dist/reactive/theme.js +0 -27
  667. package/dist/reactive/theme.js.map +0 -1
  668. package/dist/reactive/types.cjs +0 -2
  669. package/dist/reactive/types.cjs.map +0 -1
  670. package/dist/reactive/types.js.map +0 -1
  671. package/dist/reactive/unified-scheduler.cjs +0 -2
  672. package/dist/reactive/unified-scheduler.cjs.map +0 -1
  673. package/dist/reactive/unified-scheduler.js +0 -219
  674. package/dist/reactive/unified-scheduler.js.map +0 -1
  675. package/dist/runtime/component-context.cjs +0 -2
  676. package/dist/runtime/component-context.cjs.map +0 -1
  677. package/dist/runtime/component-context.js +0 -177
  678. package/dist/runtime/component-context.js.map +0 -1
  679. package/dist/runtime/component.cjs +0 -2
  680. package/dist/runtime/component.cjs.map +0 -1
  681. package/dist/runtime/component.js +0 -238
  682. package/dist/runtime/component.js.map +0 -1
  683. package/dist/runtime/context.cjs +0 -2
  684. package/dist/runtime/context.cjs.map +0 -1
  685. package/dist/runtime/context.js +0 -289
  686. package/dist/runtime/context.js.map +0 -1
  687. package/dist/runtime/dev-tools.cjs +0 -2
  688. package/dist/runtime/dev-tools.cjs.map +0 -1
  689. package/dist/runtime/dev-tools.d.ts +0 -240
  690. package/dist/runtime/dev-tools.d.ts.map +0 -1
  691. package/dist/runtime/dev-tools.js +0 -391
  692. package/dist/runtime/dev-tools.js.map +0 -1
  693. package/dist/runtime/development-warnings.cjs +0 -2
  694. package/dist/runtime/development-warnings.cjs.map +0 -1
  695. package/dist/runtime/development-warnings.d.ts +0 -42
  696. package/dist/runtime/development-warnings.d.ts.map +0 -1
  697. package/dist/runtime/development-warnings.js +0 -69
  698. package/dist/runtime/development-warnings.js.map +0 -1
  699. package/dist/runtime/dom-bridge.cjs +0 -2
  700. package/dist/runtime/dom-bridge.cjs.map +0 -1
  701. package/dist/runtime/dom-bridge.js.map +0 -1
  702. package/dist/runtime/element-override.cjs +0 -2
  703. package/dist/runtime/element-override.cjs.map +0 -1
  704. package/dist/runtime/element-override.js +0 -214
  705. package/dist/runtime/element-override.js.map +0 -1
  706. package/dist/runtime/error-boundary.cjs +0 -2
  707. package/dist/runtime/error-boundary.cjs.map +0 -1
  708. package/dist/runtime/error-boundary.d.ts +0 -302
  709. package/dist/runtime/error-boundary.d.ts.map +0 -1
  710. package/dist/runtime/error-boundary.js +0 -559
  711. package/dist/runtime/error-boundary.js.map +0 -1
  712. package/dist/runtime/error-recovery.cjs +0 -2
  713. package/dist/runtime/error-recovery.cjs.map +0 -1
  714. package/dist/runtime/error-recovery.d.ts +0 -267
  715. package/dist/runtime/error-recovery.d.ts.map +0 -1
  716. package/dist/runtime/error-recovery.js +0 -385
  717. package/dist/runtime/error-recovery.js.map +0 -1
  718. package/dist/runtime/error-reporting.cjs +0 -3
  719. package/dist/runtime/error-reporting.cjs.map +0 -1
  720. package/dist/runtime/error-reporting.d.ts +0 -287
  721. package/dist/runtime/error-reporting.d.ts.map +0 -1
  722. package/dist/runtime/error-reporting.js +0 -479
  723. package/dist/runtime/error-reporting.js.map +0 -1
  724. package/dist/runtime/error-utils.cjs +0 -3
  725. package/dist/runtime/error-utils.cjs.map +0 -1
  726. package/dist/runtime/error-utils.d.ts +0 -204
  727. package/dist/runtime/error-utils.d.ts.map +0 -1
  728. package/dist/runtime/error-utils.js +0 -352
  729. package/dist/runtime/error-utils.js.map +0 -1
  730. package/dist/runtime/lazy-component.cjs +0 -2
  731. package/dist/runtime/lazy-component.cjs.map +0 -1
  732. package/dist/runtime/lazy-component.js +0 -129
  733. package/dist/runtime/lazy-component.js.map +0 -1
  734. package/dist/runtime/lifecycle.cjs +0 -2
  735. package/dist/runtime/lifecycle.cjs.map +0 -1
  736. package/dist/runtime/lifecycle.js +0 -7
  737. package/dist/runtime/lifecycle.js.map +0 -1
  738. package/dist/runtime/mounting.cjs +0 -2
  739. package/dist/runtime/mounting.cjs.map +0 -1
  740. package/dist/runtime/mounting.js +0 -12
  741. package/dist/runtime/mounting.js.map +0 -1
  742. package/dist/runtime/optimization.cjs +0 -2
  743. package/dist/runtime/optimization.cjs.map +0 -1
  744. package/dist/runtime/optimization.js +0 -6
  745. package/dist/runtime/optimization.js.map +0 -1
  746. package/dist/runtime/performance.cjs +0 -2
  747. package/dist/runtime/performance.cjs.map +0 -1
  748. package/dist/runtime/performance.d.ts +0 -217
  749. package/dist/runtime/performance.d.ts.map +0 -1
  750. package/dist/runtime/performance.js +0 -399
  751. package/dist/runtime/performance.js.map +0 -1
  752. package/dist/runtime/props.cjs +0 -2
  753. package/dist/runtime/props.cjs.map +0 -1
  754. package/dist/runtime/props.js +0 -265
  755. package/dist/runtime/props.js.map +0 -1
  756. package/dist/runtime/renderer.cjs +0 -2
  757. package/dist/runtime/renderer.cjs.map +0 -1
  758. package/dist/runtime/renderer.js.map +0 -1
  759. package/dist/runtime/semantic-role-manager.cjs +0 -2
  760. package/dist/runtime/semantic-role-manager.cjs.map +0 -1
  761. package/dist/runtime/semantic-role-manager.js +0 -82
  762. package/dist/runtime/semantic-role-manager.js.map +0 -1
  763. package/dist/state/binding.cjs +0 -2
  764. package/dist/state/binding.cjs.map +0 -1
  765. package/dist/state/binding.js +0 -155
  766. package/dist/state/binding.js.map +0 -1
  767. package/dist/state/environment.cjs +0 -2
  768. package/dist/state/environment.cjs.map +0 -1
  769. package/dist/state/environment.js +0 -115
  770. package/dist/state/environment.js.map +0 -1
  771. package/dist/state/index.cjs +0 -2
  772. package/dist/state/index.cjs.map +0 -1
  773. package/dist/state/index.js +0 -63
  774. package/dist/state/index.js.map +0 -1
  775. package/dist/state/observed-object.cjs +0 -2
  776. package/dist/state/observed-object.cjs.map +0 -1
  777. package/dist/state/observed-object.js +0 -163
  778. package/dist/state/observed-object.js.map +0 -1
  779. package/dist/state/state-manager.cjs +0 -2
  780. package/dist/state/state-manager.cjs.map +0 -1
  781. package/dist/state/state-manager.js +0 -233
  782. package/dist/state/state-manager.js.map +0 -1
  783. package/dist/state/state.cjs +0 -2
  784. package/dist/state/state.cjs.map +0 -1
  785. package/dist/state/state.js +0 -159
  786. package/dist/state/state.js.map +0 -1
  787. package/dist/sui-compat.cjs +0 -2
  788. package/dist/sui-compat.cjs.map +0 -1
  789. package/dist/sui-compat.d.ts +0 -110
  790. package/dist/sui-compat.d.ts.map +0 -1
  791. package/dist/sui-compat.js +0 -88
  792. package/dist/sui-compat.js.map +0 -1
  793. package/dist/validation/advanced-debugging.cjs +0 -44
  794. package/dist/validation/advanced-debugging.cjs.map +0 -1
  795. package/dist/validation/advanced-debugging.d.ts +0 -319
  796. package/dist/validation/advanced-debugging.d.ts.map +0 -1
  797. package/dist/validation/advanced-debugging.js +0 -455
  798. package/dist/validation/advanced-debugging.js.map +0 -1
  799. package/dist/validation/build-time/detection.cjs +0 -2
  800. package/dist/validation/build-time/detection.cjs.map +0 -1
  801. package/dist/validation/build-time/detection.d.ts +0 -32
  802. package/dist/validation/build-time/detection.d.ts.map +0 -1
  803. package/dist/validation/build-time/detection.js +0 -199
  804. package/dist/validation/build-time/detection.js.map +0 -1
  805. package/dist/validation/build-time/index.cjs +0 -2
  806. package/dist/validation/build-time/index.cjs.map +0 -1
  807. package/dist/validation/build-time/index.d.ts +0 -84
  808. package/dist/validation/build-time/index.d.ts.map +0 -1
  809. package/dist/validation/build-time/index.js +0 -122
  810. package/dist/validation/build-time/index.js.map +0 -1
  811. package/dist/validation/build-time/plugins.cjs +0 -3
  812. package/dist/validation/build-time/plugins.cjs.map +0 -1
  813. package/dist/validation/build-time/plugins.d.ts +0 -75
  814. package/dist/validation/build-time/plugins.d.ts.map +0 -1
  815. package/dist/validation/build-time/plugins.js +0 -282
  816. package/dist/validation/build-time/plugins.js.map +0 -1
  817. package/dist/validation/build-time/rules.cjs +0 -2
  818. package/dist/validation/build-time/rules.cjs.map +0 -1
  819. package/dist/validation/build-time/rules.d.ts +0 -73
  820. package/dist/validation/build-time/rules.d.ts.map +0 -1
  821. package/dist/validation/build-time/rules.js +0 -576
  822. package/dist/validation/build-time/rules.js.map +0 -1
  823. package/dist/validation/build-time/transformer.cjs +0 -3
  824. package/dist/validation/build-time/transformer.cjs.map +0 -1
  825. package/dist/validation/build-time/transformer.d.ts +0 -23
  826. package/dist/validation/build-time/transformer.d.ts.map +0 -1
  827. package/dist/validation/build-time/transformer.js +0 -177
  828. package/dist/validation/build-time/transformer.js.map +0 -1
  829. package/dist/validation/build-time/types.d.ts +0 -212
  830. package/dist/validation/build-time/types.d.ts.map +0 -1
  831. package/dist/validation/comprehensive.cjs +0 -9
  832. package/dist/validation/comprehensive.cjs.map +0 -1
  833. package/dist/validation/comprehensive.d.ts +0 -160
  834. package/dist/validation/comprehensive.d.ts.map +0 -1
  835. package/dist/validation/comprehensive.js +0 -916
  836. package/dist/validation/comprehensive.js.map +0 -1
  837. package/dist/validation/debug-tools.cjs +0 -16
  838. package/dist/validation/debug-tools.cjs.map +0 -1
  839. package/dist/validation/debug-tools.d.ts +0 -251
  840. package/dist/validation/debug-tools.d.ts.map +0 -1
  841. package/dist/validation/debug-tools.js +0 -405
  842. package/dist/validation/debug-tools.js.map +0 -1
  843. package/dist/validation/developer-experience.cjs +0 -17
  844. package/dist/validation/developer-experience.cjs.map +0 -1
  845. package/dist/validation/developer-experience.d.ts +0 -243
  846. package/dist/validation/developer-experience.d.ts.map +0 -1
  847. package/dist/validation/developer-experience.js +0 -433
  848. package/dist/validation/developer-experience.js.map +0 -1
  849. package/dist/validation/documentation-integration.cjs +0 -7
  850. package/dist/validation/documentation-integration.cjs.map +0 -1
  851. package/dist/validation/documentation-integration.d.ts +0 -269
  852. package/dist/validation/documentation-integration.d.ts.map +0 -1
  853. package/dist/validation/documentation-integration.js +0 -440
  854. package/dist/validation/documentation-integration.js.map +0 -1
  855. package/dist/validation/enhanced-runtime.cjs +0 -6
  856. package/dist/validation/enhanced-runtime.cjs.map +0 -1
  857. package/dist/validation/enhanced-runtime.d.ts +0 -279
  858. package/dist/validation/enhanced-runtime.d.ts.map +0 -1
  859. package/dist/validation/enhanced-runtime.js +0 -465
  860. package/dist/validation/enhanced-runtime.js.map +0 -1
  861. package/dist/validation/error-reporting.cjs +0 -32
  862. package/dist/validation/error-reporting.cjs.map +0 -1
  863. package/dist/validation/error-reporting.d.ts +0 -186
  864. package/dist/validation/error-reporting.d.ts.map +0 -1
  865. package/dist/validation/error-reporting.js +0 -370
  866. package/dist/validation/error-reporting.js.map +0 -1
  867. package/dist/validation/ide-integration.cjs +0 -85
  868. package/dist/validation/ide-integration.cjs.map +0 -1
  869. package/dist/validation/ide-integration.d.ts +0 -328
  870. package/dist/validation/ide-integration.d.ts.map +0 -1
  871. package/dist/validation/ide-integration.js +0 -557
  872. package/dist/validation/ide-integration.js.map +0 -1
  873. package/dist/validation/index.cjs +0 -6
  874. package/dist/validation/index.cjs.map +0 -1
  875. package/dist/validation/index.js.map +0 -1
  876. package/dist/validation/lifecycle-validation.cjs +0 -2
  877. package/dist/validation/lifecycle-validation.cjs.map +0 -1
  878. package/dist/validation/lifecycle-validation.js +0 -314
  879. package/dist/validation/lifecycle-validation.js.map +0 -1
  880. package/dist/validation/performance-optimizer.cjs +0 -2
  881. package/dist/validation/performance-optimizer.cjs.map +0 -1
  882. package/dist/validation/performance-optimizer.d.ts +0 -218
  883. package/dist/validation/performance-optimizer.d.ts.map +0 -1
  884. package/dist/validation/performance-optimizer.js +0 -338
  885. package/dist/validation/performance-optimizer.js.map +0 -1
  886. package/dist/validation/plugin-registration.cjs +0 -2
  887. package/dist/validation/plugin-registration.cjs.map +0 -1
  888. package/dist/validation/plugin-registration.js +0 -126
  889. package/dist/validation/plugin-registration.js.map +0 -1
  890. package/dist/validation/production-bypass.cjs +0 -2
  891. package/dist/validation/production-bypass.cjs.map +0 -1
  892. package/dist/validation/production-bypass.d.ts +0 -175
  893. package/dist/validation/production-bypass.d.ts.map +0 -1
  894. package/dist/validation/production-bypass.js +0 -218
  895. package/dist/validation/production-bypass.js.map +0 -1
  896. package/dist/validation/simple.cjs +0 -9
  897. package/dist/validation/simple.cjs.map +0 -1
  898. package/dist/validation/simple.d.ts +0 -111
  899. package/dist/validation/simple.d.ts.map +0 -1
  900. package/dist/validation/simple.js +0 -146
  901. package/dist/validation/simple.js.map +0 -1
  902. package/dist/viewport/adapters/web-adapter.cjs +0 -70
  903. package/dist/viewport/adapters/web-adapter.cjs.map +0 -1
  904. package/dist/viewport/adapters/web-adapter.d.ts +0 -227
  905. package/dist/viewport/adapters/web-adapter.d.ts.map +0 -1
  906. package/dist/viewport/adapters/web-adapter.js +0 -823
  907. package/dist/viewport/adapters/web-adapter.js.map +0 -1
  908. package/dist/viewport/components.cjs +0 -2
  909. package/dist/viewport/components.cjs.map +0 -1
  910. package/dist/viewport/components.d.ts +0 -131
  911. package/dist/viewport/components.d.ts.map +0 -1
  912. package/dist/viewport/components.js +0 -298
  913. package/dist/viewport/components.js.map +0 -1
  914. package/dist/viewport/environment.cjs +0 -2
  915. package/dist/viewport/environment.cjs.map +0 -1
  916. package/dist/viewport/environment.d.ts +0 -75
  917. package/dist/viewport/environment.d.ts.map +0 -1
  918. package/dist/viewport/environment.js +0 -86
  919. package/dist/viewport/environment.js.map +0 -1
  920. package/dist/viewport/index.cjs +0 -2
  921. package/dist/viewport/index.cjs.map +0 -1
  922. package/dist/viewport/index.d.ts +0 -138
  923. package/dist/viewport/index.d.ts.map +0 -1
  924. package/dist/viewport/index.js +0 -166
  925. package/dist/viewport/index.js.map +0 -1
  926. package/dist/viewport/platform-detection.cjs +0 -2
  927. package/dist/viewport/platform-detection.cjs.map +0 -1
  928. package/dist/viewport/platform-detection.d.ts +0 -59
  929. package/dist/viewport/platform-detection.d.ts.map +0 -1
  930. package/dist/viewport/platform-detection.js +0 -205
  931. package/dist/viewport/platform-detection.js.map +0 -1
  932. package/dist/viewport/types.cjs +0 -2
  933. package/dist/viewport/types.cjs.map +0 -1
  934. package/dist/viewport/types.d.ts +0 -301
  935. package/dist/viewport/types.d.ts.map +0 -1
  936. package/dist/viewport/types.js +0 -13
  937. package/dist/viewport/types.js.map +0 -1
  938. package/dist/viewport/viewport-manager.cjs +0 -2
  939. package/dist/viewport/viewport-manager.cjs.map +0 -1
  940. package/dist/viewport/viewport-manager.d.ts +0 -118
  941. package/dist/viewport/viewport-manager.d.ts.map +0 -1
  942. package/dist/viewport/viewport-manager.js +0 -524
  943. package/dist/viewport/viewport-manager.js.map +0 -1
  944. package/src/assets/Asset.ts +0 -11
  945. package/src/assets/AssetCollection.ts +0 -99
  946. package/src/assets/ColorAsset.ts +0 -210
  947. package/src/assets/FontAsset.ts +0 -380
  948. package/src/assets/ImageAsset.ts +0 -91
  949. package/src/assets/README.md +0 -190
  950. package/src/assets/index.ts +0 -175
  951. package/src/assets/test-assets.ts +0 -69
  952. package/src/assets/test-integration.ts +0 -46
  953. package/src/assets/test-simple.ts +0 -28
  954. package/src/assets/types.ts +0 -79
  955. package/src/bundles/common.ts +0 -30
  956. package/src/bundles/complete.ts +0 -29
  957. package/src/bundles/essential.ts +0 -26
  958. package/src/bundles/minimal.ts +0 -26
  959. package/src/bundles/production-minimal.ts +0 -67
  960. package/src/compiler/advanced-parser.ts +0 -871
  961. package/src/compiler/codegen.ts +0 -450
  962. package/src/compiler/enhanced-codegen.ts +0 -729
  963. package/src/compiler/index.ts +0 -25
  964. package/src/compiler/parser.ts +0 -461
  965. package/src/compiler/plugin.ts +0 -181
  966. package/src/compiler/types.ts +0 -177
  967. package/src/components/BasicInput.ts +0 -352
  968. package/src/components/Button.ts +0 -963
  969. package/src/components/Divider.ts +0 -341
  970. package/src/components/EnhancedLink.ts +0 -676
  971. package/src/components/Form.ts +0 -414
  972. package/src/components/Grid.ts +0 -2507
  973. package/src/components/GridResponsive.ts +0 -637
  974. package/src/components/Image.ts +0 -426
  975. package/src/components/List.ts +0 -1084
  976. package/src/components/Menu.ts +0 -807
  977. package/src/components/Picker.ts +0 -678
  978. package/src/components/ScrollView.ts +0 -725
  979. package/src/components/Section.ts +0 -472
  980. package/src/components/Show.ts +0 -205
  981. package/src/components/Spacer.ts +0 -93
  982. package/src/components/Text.ts +0 -447
  983. package/src/components/Toggle.ts +0 -700
  984. package/src/components/index.ts +0 -231
  985. package/src/components/wrapper.ts +0 -828
  986. package/src/concatenation/concatenatable.ts +0 -211
  987. package/src/concatenation/concatenated-component.ts +0 -471
  988. package/src/concatenation/index.ts +0 -41
  989. package/src/concatenation/styles.css +0 -120
  990. package/src/concatenation/text-optimizer.ts +0 -440
  991. package/src/concatenation/types.ts +0 -116
  992. package/src/constants/README.md +0 -339
  993. package/src/constants/__tests__/frame-utils.test.ts +0 -276
  994. package/src/constants/__tests__/layout.test.ts +0 -215
  995. package/src/constants/frame-utils.ts +0 -174
  996. package/src/constants/index.ts +0 -8
  997. package/src/constants/layout.ts +0 -120
  998. package/src/css-classes/component-base.ts +0 -117
  999. package/src/css-classes/css-class-manager.ts +0 -372
  1000. package/src/css-classes/dom-integration.ts +0 -162
  1001. package/src/css-classes/enhanced-renderer.ts +0 -166
  1002. package/src/css-classes/index.ts +0 -45
  1003. package/src/css-classes/types.ts +0 -73
  1004. package/src/css-classes/utilities.ts +0 -175
  1005. package/src/debug/index.ts +0 -267
  1006. package/src/developer-experience/enhanced-errors.ts +0 -556
  1007. package/src/developer-experience/enhanced-types.ts +0 -427
  1008. package/src/developer-experience/index.ts +0 -220
  1009. package/src/globals.d.ts +0 -43
  1010. package/src/gradients/__tests__/angular-gradient.test.ts +0 -111
  1011. package/src/gradients/__tests__/background-modifier.test.ts +0 -81
  1012. package/src/gradients/__tests__/comprehensive-gradients.test.ts +0 -296
  1013. package/src/gradients/__tests__/gradient-asset.test.ts +0 -144
  1014. package/src/gradients/__tests__/linear-gradient.test.ts +0 -92
  1015. package/src/gradients/__tests__/phase4-features.test.ts +0 -386
  1016. package/src/gradients/__tests__/radial-gradient.test.ts +0 -110
  1017. package/src/gradients/__tests__/repeating-gradients.test.ts +0 -125
  1018. package/src/gradients/__tests__/state-background-modifier.test.ts +0 -340
  1019. package/src/gradients/__tests__/state-gradient-asset.test.ts +0 -262
  1020. package/src/gradients/__tests__/state-gradient-integration.test.ts +0 -277
  1021. package/src/gradients/css-generator.ts +0 -158
  1022. package/src/gradients/examples.ts +0 -632
  1023. package/src/gradients/gradient-asset.ts +0 -30
  1024. package/src/gradients/index.ts +0 -85
  1025. package/src/gradients/performance.ts +0 -521
  1026. package/src/gradients/presets.ts +0 -422
  1027. package/src/gradients/reactive.ts +0 -470
  1028. package/src/gradients/state-gradient-asset.ts +0 -179
  1029. package/src/gradients/types.ts +0 -148
  1030. package/src/gradients/utils.ts +0 -579
  1031. package/src/gradients/validation.ts +0 -489
  1032. package/src/index.ts +0 -168
  1033. package/src/lifecycle/hooks.ts +0 -332
  1034. package/src/modifiers/__tests__/as-html-integration.test.ts +0 -204
  1035. package/src/modifiers/__tests__/as-html.test.ts +0 -437
  1036. package/src/modifiers/__tests__/basic-sanitizer-security.test.ts +0 -294
  1037. package/src/modifiers/__tests__/border.test.ts +0 -371
  1038. package/src/modifiers/__tests__/margin-string-support.test.ts +0 -41
  1039. package/src/modifiers/__tests__/padding-string-support.test.ts +0 -41
  1040. package/src/modifiers/as-html-validator.ts +0 -68
  1041. package/src/modifiers/as-html.ts +0 -216
  1042. package/src/modifiers/attributes.ts +0 -574
  1043. package/src/modifiers/backdrop.ts +0 -290
  1044. package/src/modifiers/background.ts +0 -165
  1045. package/src/modifiers/base.ts +0 -1815
  1046. package/src/modifiers/basic-sanitizer.ts +0 -227
  1047. package/src/modifiers/border.ts +0 -574
  1048. package/src/modifiers/builder.ts +0 -1747
  1049. package/src/modifiers/core.ts +0 -521
  1050. package/src/modifiers/css.ts +0 -148
  1051. package/src/modifiers/effects.ts +0 -412
  1052. package/src/modifiers/elements.ts +0 -541
  1053. package/src/modifiers/filters.ts +0 -501
  1054. package/src/modifiers/flexbox.ts +0 -180
  1055. package/src/modifiers/font.ts +0 -149
  1056. package/src/modifiers/grid.ts +0 -238
  1057. package/src/modifiers/index.ts +0 -481
  1058. package/src/modifiers/margin.ts +0 -218
  1059. package/src/modifiers/padding.ts +0 -318
  1060. package/src/modifiers/registry.ts +0 -444
  1061. package/src/modifiers/responsive/__tests__/advanced-media-queries.test.ts +0 -392
  1062. package/src/modifiers/responsive/__tests__/advanced-utilities.test.ts +0 -368
  1063. package/src/modifiers/responsive/__tests__/comprehensive-browser-tests.test.ts +0 -556
  1064. package/src/modifiers/responsive/__tests__/layout-patterns.test.ts +0 -558
  1065. package/src/modifiers/responsive/advanced-utilities.ts +0 -562
  1066. package/src/modifiers/responsive/breakpoints.ts +0 -330
  1067. package/src/modifiers/responsive/css-generator.ts +0 -432
  1068. package/src/modifiers/responsive/dev-tools.ts +0 -650
  1069. package/src/modifiers/responsive/index.ts +0 -119
  1070. package/src/modifiers/responsive/layout-patterns.ts +0 -592
  1071. package/src/modifiers/responsive/performance.ts +0 -385
  1072. package/src/modifiers/responsive/responsive-builder.ts +0 -620
  1073. package/src/modifiers/responsive/responsive-modifier.ts +0 -410
  1074. package/src/modifiers/responsive/types.ts +0 -226
  1075. package/src/modifiers/responsive/utilities.ts +0 -478
  1076. package/src/modifiers/scroll.ts +0 -297
  1077. package/src/modifiers/shadows.ts +0 -321
  1078. package/src/modifiers/size.ts +0 -208
  1079. package/src/modifiers/text.ts +0 -416
  1080. package/src/modifiers/transformations.ts +0 -640
  1081. package/src/modifiers/transitions.ts +0 -218
  1082. package/src/modifiers/types.ts +0 -889
  1083. package/src/modifiers/typography.ts +0 -341
  1084. package/src/modifiers/utility.ts +0 -209
  1085. package/src/modifiers/utils.ts +0 -413
  1086. package/src/plugins/__tests__/simplified-plugin-system.test.ts +0 -190
  1087. package/src/plugins/component-loader-registry.ts +0 -371
  1088. package/src/plugins/index.ts +0 -61
  1089. package/src/plugins/legacy-adapter.ts +0 -84
  1090. package/src/plugins/simplified-component-registry.ts +0 -130
  1091. package/src/plugins/simplified-error-handler.ts +0 -372
  1092. package/src/plugins/simplified-index.ts +0 -61
  1093. package/src/plugins/simplified-lazy-loader.ts +0 -242
  1094. package/src/plugins/simplified-plugin-manager.ts +0 -93
  1095. package/src/plugins/simplified-tachui-instance.ts +0 -142
  1096. package/src/plugins/simplified-types.ts +0 -79
  1097. package/src/plugins/simplified-utils.ts +0 -118
  1098. package/src/reactive/cleanup.ts +0 -241
  1099. package/src/reactive/computed.ts +0 -281
  1100. package/src/reactive/context.ts +0 -287
  1101. package/src/reactive/effect.ts +0 -194
  1102. package/src/reactive/enhanced-effect.ts +0 -318
  1103. package/src/reactive/enhanced-signal.ts +0 -227
  1104. package/src/reactive/equality.ts +0 -188
  1105. package/src/reactive/globals.d.ts +0 -5
  1106. package/src/reactive/index.ts +0 -150
  1107. package/src/reactive/migration.ts +0 -335
  1108. package/src/reactive/ownership.ts +0 -182
  1109. package/src/reactive/scheduler.ts +0 -300
  1110. package/src/reactive/signal.ts +0 -201
  1111. package/src/reactive/theme.ts +0 -49
  1112. package/src/reactive/types.ts +0 -103
  1113. package/src/reactive/unified-scheduler.ts +0 -357
  1114. package/src/runtime/component-context.ts +0 -343
  1115. package/src/runtime/component.ts +0 -499
  1116. package/src/runtime/context.ts +0 -527
  1117. package/src/runtime/dev-tools.ts +0 -752
  1118. package/src/runtime/development-warnings.ts +0 -114
  1119. package/src/runtime/dom-bridge.ts +0 -570
  1120. package/src/runtime/element-override.ts +0 -282
  1121. package/src/runtime/error-boundary.ts +0 -955
  1122. package/src/runtime/error-recovery.ts +0 -638
  1123. package/src/runtime/error-reporting.ts +0 -808
  1124. package/src/runtime/error-utils.ts +0 -698
  1125. package/src/runtime/index.ts +0 -202
  1126. package/src/runtime/lazy-component.ts +0 -268
  1127. package/src/runtime/lifecycle.ts +0 -10
  1128. package/src/runtime/mounting.ts +0 -17
  1129. package/src/runtime/optimization.ts +0 -13
  1130. package/src/runtime/performance.ts +0 -693
  1131. package/src/runtime/props.ts +0 -434
  1132. package/src/runtime/refs.ts +0 -13
  1133. package/src/runtime/renderer.ts +0 -674
  1134. package/src/runtime/semantic-role-manager.ts +0 -140
  1135. package/src/runtime/types.ts +0 -282
  1136. package/src/state/binding.ts +0 -381
  1137. package/src/state/environment-object.ts +0 -444
  1138. package/src/state/environment.ts +0 -351
  1139. package/src/state/index.ts +0 -179
  1140. package/src/state/observed-object.ts +0 -405
  1141. package/src/state/state-manager.ts +0 -366
  1142. package/src/state/state.ts +0 -339
  1143. package/src/state/types.ts +0 -192
  1144. package/src/sui-compat.ts +0 -163
  1145. package/src/validation/__tests__/phase-1d-integration.test.ts +0 -558
  1146. package/src/validation/advanced-debugging.ts +0 -860
  1147. package/src/validation/build-time/detection.ts +0 -373
  1148. package/src/validation/build-time/index.ts +0 -222
  1149. package/src/validation/build-time/plugins.ts +0 -515
  1150. package/src/validation/build-time/rules.ts +0 -624
  1151. package/src/validation/build-time/transformer.ts +0 -372
  1152. package/src/validation/build-time/types.ts +0 -232
  1153. package/src/validation/comprehensive.ts +0 -1272
  1154. package/src/validation/debug-tools.ts +0 -724
  1155. package/src/validation/developer-experience.ts +0 -712
  1156. package/src/validation/documentation-integration.ts +0 -835
  1157. package/src/validation/enhanced-runtime.ts +0 -765
  1158. package/src/validation/error-reporting.ts +0 -587
  1159. package/src/validation/ide-integration.ts +0 -845
  1160. package/src/validation/index.ts +0 -353
  1161. package/src/validation/lifecycle-validation.ts +0 -636
  1162. package/src/validation/performance-optimizer.ts +0 -599
  1163. package/src/validation/plugin-registration.ts +0 -249
  1164. package/src/validation/production-bypass.ts +0 -466
  1165. package/src/validation/simple.ts +0 -465
  1166. package/src/viewport/adapters/web-adapter.ts +0 -1385
  1167. package/src/viewport/components.ts +0 -505
  1168. package/src/viewport/environment.ts +0 -173
  1169. package/src/viewport/index.ts +0 -290
  1170. package/src/viewport/platform-detection.ts +0 -431
  1171. package/src/viewport/types.ts +0 -371
  1172. package/src/viewport/viewport-manager.ts +0 -979
@@ -1,67 +0,0 @@
1
- import { ComputationImpl as f, getCurrentOwner as a } from "./context.js";
2
- function i(e, n = {}) {
3
- const u = a();
4
- let r, t = !0;
5
- const o = () => {
6
- const s = e(r);
7
- return t && (t = !1), r = s, s;
8
- }, c = new f(o, u);
9
- return n.name && Object.defineProperty(c, "name", {
10
- value: n.name,
11
- enumerable: !1
12
- }), c.execute(), c;
13
- }
14
- function d(e, n = {}) {
15
- const u = a();
16
- let r, t = !1;
17
- const o = () => {
18
- if (!t)
19
- return t = !0, e(r);
20
- const s = e(r);
21
- return r = s, s;
22
- }, c = new f(o, u);
23
- return n.name && Object.defineProperty(c, "name", {
24
- value: n.name,
25
- enumerable: !1
26
- }), c.execute(), c;
27
- }
28
- function p(e, n = {}) {
29
- const u = a(), r = () => {
30
- const o = e(void 0);
31
- return t.dispose(), o;
32
- }, t = new f(r, u);
33
- return n.name && Object.defineProperty(t, "name", {
34
- value: `${n.name}(once)`,
35
- enumerable: !1
36
- }), t.execute(), t;
37
- }
38
- function b(e, n = {}) {
39
- return i(e, { ...n, name: `${n.name || "sync"}(sync)` });
40
- }
41
- function v(e) {
42
- e.dispose();
43
- }
44
- function l(e) {
45
- return e.state === 3;
46
- }
47
- function y(e) {
48
- return {
49
- id: e.id,
50
- name: e.name || "anonymous",
51
- state: e.state,
52
- sourceCount: e.sources.size,
53
- observerCount: e.observers.size,
54
- disposed: l(e),
55
- type: "Effect"
56
- };
57
- }
58
- export {
59
- i as createEffect,
60
- p as createOnceEffect,
61
- d as createRenderEffect,
62
- b as createSyncEffect,
63
- v as disposeEffect,
64
- y as getEffectInfo,
65
- l as isEffectDisposed
66
- };
67
- //# sourceMappingURL=effect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"effect.js","sources":["../../src/reactive/effect.ts"],"sourcesContent":["/**\n * Effect implementation for side effects in reactive system\n *\n * Effects run when their dependencies change, enabling reactive\n * side effects like DOM updates, logging, API calls, etc.\n */\n\nimport { ComputationImpl, getCurrentOwner } from './context'\nimport type { EffectFunction, EffectOptions } from './types'\n\n/**\n * Effect function type\n */\nexport type Effect = ComputationImpl\n\n/**\n * Create a reactive effect that runs when dependencies change\n *\n * @param fn The effect function to run\n * @param options Effect configuration options\n * @returns The effect computation\n *\n * @example\n * ```typescript\n * const [count, setCount] = createSignal(0)\n *\n * createEffect(() => {\n * console.log('Count changed:', count())\n * })\n *\n * setCount(5) // Logs: \"Count changed: 5\"\n * ```\n */\nexport function createEffect<T>(fn: EffectFunction<T>, options: EffectOptions = {}): Effect {\n const owner = getCurrentOwner()\n\n let previousValue: T | undefined\n let isFirst = true\n\n const effectFn = () => {\n const nextValue = fn(previousValue)\n\n if (!isFirst) {\n previousValue = nextValue\n } else {\n isFirst = false\n previousValue = nextValue\n }\n\n return nextValue\n }\n\n // Create the computation\n const effect = new ComputationImpl(effectFn, owner)\n\n // Add debug name if provided\n if (options.name) {\n Object.defineProperty(effect, 'name', {\n value: options.name,\n enumerable: false,\n })\n }\n\n // Execute immediately to establish dependencies\n effect.execute()\n\n return effect\n}\n\n/**\n * Create an effect that only runs after dependencies change (not on first run)\n *\n * @param fn The effect function to run\n * @param options Effect configuration options\n * @returns The effect computation\n *\n * @example\n * ```typescript\n * const [count, setCount] = createSignal(0)\n *\n * createRenderEffect(() => {\n * // This won't run immediately, only when count changes\n * document.title = `Count: ${count()}`\n * })\n * ```\n */\nexport function createRenderEffect<T>(fn: EffectFunction<T>, options: EffectOptions = {}): Effect {\n const owner = getCurrentOwner()\n\n let previousValue: T | undefined\n let hasRun = false\n\n const effectFn = () => {\n if (!hasRun) {\n hasRun = true\n // Track dependencies but don't run the effect\n return fn(previousValue)\n }\n\n const nextValue = fn(previousValue)\n previousValue = nextValue\n return nextValue\n }\n\n const effect = new ComputationImpl(effectFn, owner)\n\n if (options.name) {\n Object.defineProperty(effect, 'name', {\n value: options.name,\n enumerable: false,\n })\n }\n\n // Execute to establish dependencies but not run the actual effect\n effect.execute()\n\n return effect\n}\n\n/**\n * Create a one-time effect that disposes itself after first execution\n *\n * @param fn The effect function to run once\n * @param options Effect configuration options\n * @returns The effect computation\n */\nexport function createOnceEffect<T>(fn: EffectFunction<T>, options: EffectOptions = {}): Effect {\n const owner = getCurrentOwner()\n\n const effectFn = () => {\n const result = fn(undefined)\n // Dispose the effect after first run\n effect.dispose()\n return result\n }\n\n const effect = new ComputationImpl(effectFn, owner)\n\n if (options.name) {\n Object.defineProperty(effect, 'name', {\n value: `${options.name}(once)`,\n enumerable: false,\n })\n }\n\n effect.execute()\n\n return effect\n}\n\n/**\n * Create an effect that runs synchronously (not batched)\n *\n * @param fn The effect function to run\n * @param options Effect configuration options\n * @returns The effect computation\n */\nexport function createSyncEffect<T>(fn: EffectFunction<T>, options: EffectOptions = {}): Effect {\n // TODO: Implement synchronous execution\n // For now, use regular effect\n return createEffect(fn, { ...options, name: `${options.name || 'sync'}(sync)` })\n}\n\n/**\n * Dispose an effect\n */\nexport function disposeEffect(effect: Effect): void {\n effect.dispose()\n}\n\n/**\n * Check if an effect is disposed\n */\nexport function isEffectDisposed(effect: Effect): boolean {\n return effect.state === 3 // ComputationState.Disposed\n}\n\n/**\n * Get effect debug information\n */\nexport function getEffectInfo(effect: Effect): object {\n return {\n id: effect.id,\n name: (effect as any).name || 'anonymous',\n state: effect.state,\n sourceCount: effect.sources.size,\n observerCount: effect.observers.size,\n disposed: isEffectDisposed(effect),\n type: 'Effect',\n }\n}\n\n// Re-export types\nexport type { EffectFunction, EffectOptions }\n"],"names":["createEffect","fn","options","owner","getCurrentOwner","previousValue","isFirst","effectFn","nextValue","effect","ComputationImpl","createRenderEffect","hasRun","createOnceEffect","result","createSyncEffect","disposeEffect","isEffectDisposed","getEffectInfo"],"mappings":";AAiCO,SAASA,EAAgBC,GAAuBC,IAAyB,IAAY;AAC1F,QAAMC,IAAQC,EAAA;AAEd,MAAIC,GACAC,IAAU;AAEd,QAAMC,IAAW,MAAM;AACrB,UAAMC,IAAYP,EAAGI,CAAa;AAElC,WAAKC,MAGHA,IAAU,KACVD,IAAgBG,GAGXA;AAAA,EACT,GAGMC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C1B;AAKO,SAASS,EAAcT,GAAwB;AACpD,SAAO;AAAA,IACL,IAAIA,EAAO;AAAA,IACX,MAAOA,EAAe,QAAQ;AAAA,IAC9B,OAAOA,EAAO;AAAA,IACd,aAAaA,EAAO,QAAQ;AAAA,IAC5B,eAAeA,EAAO,UAAU;AAAA,IAChC,UAAUQ,EAAiBR,CAAM;AAAA,IACjC,MAAM;AAAA,EAAA;AAEV;"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./context.cjs"),n=require("./unified-scheduler.cjs");var l=Object.defineProperty,p=(r,e,i)=>e in r?l(r,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[e]=i,s=(r,e,i)=>p(r,typeof e!="symbol"?e+"":e,i);let d=0;class h{constructor(e,i={}){this.effectFn=e,s(this,"id",++d),s(this,"type","effect"),s(this,"priority"),s(this,"sources",new Set),s(this,"observers",new Set),s(this,"isDisposed",!1),s(this,"cleanupFn"),s(this,"options"),s(this,"owner"),this.priority=i.priority??n.UpdatePriority.Normal,this.options=i,this.owner=f.getCurrentOwner(),i.fireImmediately!==!1&&this.execute()}notify(){this.isDisposed||this.execute()}execute(){if(this.isDisposed)return;if(this.cleanupFn){try{this.cleanupFn()}catch(t){console.error("Effect cleanup error:",t)}this.cleanupFn=void 0}for(const t of this.sources)"removeObserver"in t&&typeof t.removeObserver=="function"?t.removeObserver(this):"observers"in t&&t.observers instanceof Set&&t.observers.delete(this);this.sources.clear();const e=f.getCurrentComputation(),i=this.setCurrentComputation||(()=>{});i(this);try{const t=this.effectFn();typeof t=="function"&&(this.cleanupFn=t)}catch(t){if(this.options.onError)try{this.options.onError(t)}catch(o){throw console.error("Effect error handler threw error:",o),t}else throw console.error(`Effect ${this.options.debugName||this.id} threw error:`,t),t}finally{i(e)}}cleanup(){if(this.isDisposed=!0,this.cleanupFn){try{this.cleanupFn()}catch(e){console.error("Effect cleanup error:",e)}this.cleanupFn=void 0}for(const e of this.sources)"removeObserver"in e&&typeof e.removeObserver=="function"?e.removeObserver(this):"observers"in e&&e.observers instanceof Set&&e.observers.delete(this);if(this.sources.clear(),this.owner?.cleanups){const e=this.owner.cleanups.indexOf(this.cleanup.bind(this));e>=0&&this.owner.cleanups.splice(e,1)}}dispose(){this.cleanup()}get disposed(){return this.isDisposed}[Symbol.for("tachui.debug")](){return{id:this.id,type:this.type,priority:n.UpdatePriority[this.priority],debugName:this.options.debugName,disposed:this.isDisposed,sourceCount:this.sources.size,hasCleanup:!!this.cleanupFn}}toString(){return`Effect(${this.options.debugName||this.id})`}}function c(r,e){const i=new h(r,e),t=f.getCurrentOwner();return t&&t.cleanups.push(()=>i.cleanup()),()=>i.cleanup()}function m(r,e){return c(r,{...e,priority:n.UpdatePriority.High})}function y(r,e){return c(r,{...e,priority:n.UpdatePriority.Low})}function b(r,e){return c(r,{...e,fireImmediately:!1})}function E(r,e,i=3,t){let o=0;const u=()=>{try{return r()}catch(a){if(o++,e&&o<=i&&e(a,o)){setTimeout(()=>u(),o*100);return}else throw a}};return c(u,{...t,debugName:`${t?.debugName||"effect"}(resilient)`})}function v(r){const e=r.map(({fn:i,options:t})=>c(i,t));return()=>{e.forEach(i=>i())}}function g(){return n.ReactiveScheduler.getInstance().getPerformanceMetrics()}function w(){n.ReactiveScheduler.getInstance().flushSync()}exports.EffectImpl=h;exports.createEffectBatch=v;exports.createEnhancedEffect=c;exports.createHighPriorityEffect=m;exports.createLowPriorityEffect=y;exports.createResilientEffect=E;exports.createWatchEffect=b;exports.flushEffectUpdates=w;exports.getEffectPerformanceMetrics=g;
2
- //# sourceMappingURL=enhanced-effect.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enhanced-effect.cjs","sources":["../../src/reactive/enhanced-effect.ts"],"sourcesContent":["/**\n * Enhanced Effect System v2.0\n *\n * Provides proper error propagation and integrates with the unified scheduler\n * to fix silent error suppression and incomplete cleanup issues.\n */\n\nimport { getCurrentComputation, getCurrentOwner } from './context'\nimport type { Owner } from './types'\nimport { type ReactiveNode, ReactiveScheduler, UpdatePriority } from './unified-scheduler'\n\nlet effectIdCounter = 0\n\nexport interface EffectOptions {\n priority?: UpdatePriority\n debugName?: string\n onError?: (error: Error) => void\n fireImmediately?: boolean\n}\n\n/**\n * Enhanced effect implementation with proper error propagation\n */\nexport class EffectImpl implements ReactiveNode {\n readonly id = ++effectIdCounter\n readonly type = 'effect' as const\n readonly priority: UpdatePriority\n readonly sources = new Set<any>()\n readonly observers = new Set<never>() // Effects don't have observers\n\n private isDisposed = false\n private cleanupFn?: () => void\n private options: EffectOptions\n private owner: Owner | null\n\n constructor(\n private effectFn: () => undefined | (() => void),\n options: EffectOptions = {}\n ) {\n this.priority = options.priority ?? UpdatePriority.Normal\n this.options = options\n this.owner = getCurrentOwner()\n\n if (options.fireImmediately !== false) {\n this.execute()\n }\n }\n\n /**\n * Notify method called by unified scheduler\n */\n notify(): void {\n if (this.isDisposed) return\n\n this.execute()\n }\n\n /**\n * Execute the effect with proper error handling\n */\n private execute(): void {\n if (this.isDisposed) return\n\n // Cleanup previous effect run\n if (this.cleanupFn) {\n try {\n this.cleanupFn()\n } catch (error) {\n console.error('Effect cleanup error:', error)\n }\n this.cleanupFn = undefined\n }\n\n // Clear existing dependencies\n for (const source of this.sources) {\n if ('removeObserver' in source && typeof source.removeObserver === 'function') {\n source.removeObserver(this)\n } else if ('observers' in source && source.observers instanceof Set) {\n source.observers.delete(this)\n }\n }\n this.sources.clear()\n\n // Execute effect with dependency tracking\n const previousComputation = getCurrentComputation()\n // We need to set this as the current computation for dependency tracking\n const setCurrentComputation = (this as any).setCurrentComputation || (() => {})\n setCurrentComputation(this)\n\n try {\n const result = this.effectFn()\n\n // Store cleanup function if returned\n if (typeof result === 'function') {\n this.cleanupFn = result\n }\n } catch (error) {\n if (this.options.onError) {\n try {\n this.options.onError(error as Error)\n } catch (handlerError) {\n console.error('Effect error handler threw error:', handlerError)\n // Re-throw the original error since handler failed\n throw error\n }\n } else {\n // Don't suppress errors like the old implementation - re-throw them\n console.error(`Effect ${this.options.debugName || this.id} threw error:`, error)\n throw error\n }\n } finally {\n setCurrentComputation(previousComputation)\n }\n }\n\n /**\n * Complete cleanup for memory management\n */\n cleanup(): void {\n this.isDisposed = true\n\n // Cleanup effect function\n if (this.cleanupFn) {\n try {\n this.cleanupFn()\n } catch (error) {\n console.error('Effect cleanup error:', error)\n }\n this.cleanupFn = undefined\n }\n\n // Remove from all sources\n for (const source of this.sources) {\n if ('removeObserver' in source && typeof source.removeObserver === 'function') {\n source.removeObserver(this)\n } else if ('observers' in source && source.observers instanceof Set) {\n source.observers.delete(this)\n }\n }\n this.sources.clear()\n\n // Remove from owner cleanup\n if (this.owner?.cleanups) {\n const index = this.owner.cleanups.indexOf(this.cleanup.bind(this))\n if (index >= 0) {\n this.owner.cleanups.splice(index, 1)\n }\n }\n }\n\n /**\n * Dispose the effect (alias for cleanup)\n */\n dispose(): void {\n this.cleanup()\n }\n\n /**\n * Check if effect is disposed\n */\n get disposed(): boolean {\n return this.isDisposed\n }\n\n /**\n * Debug information\n */\n [Symbol.for('tachui.debug')](): object {\n return {\n id: this.id,\n type: this.type,\n priority: UpdatePriority[this.priority],\n debugName: this.options.debugName,\n disposed: this.isDisposed,\n sourceCount: this.sources.size,\n hasCleanup: !!this.cleanupFn,\n }\n }\n\n toString(): string {\n return `Effect(${this.options.debugName || this.id})`\n }\n}\n\n/**\n * Create a reactive effect with proper error handling\n *\n * @param effectFn The effect function to run\n * @param options Effect configuration options\n * @returns Cleanup function to dispose the effect\n *\n * @example\n * ```typescript\n * const [count, setCount] = createSignal(0)\n *\n * const cleanup = createEnhancedEffect(() => {\n * console.log('Count changed:', count())\n * }, {\n * debugName: 'countLogger',\n * onError: (error) => {\n * console.error('Effect failed:', error)\n * }\n * })\n *\n * // Later, cleanup when no longer needed\n * cleanup()\n * ```\n */\nexport function createEnhancedEffect(\n effectFn: () => undefined | (() => void),\n options?: EffectOptions\n): () => void {\n const effect = new EffectImpl(effectFn, options)\n\n // Register cleanup with owner if available\n const owner = getCurrentOwner()\n if (owner) {\n owner.cleanups.push(() => effect.cleanup())\n }\n\n return () => effect.cleanup()\n}\n\n/**\n * Create an effect with high priority for user interactions\n */\nexport function createHighPriorityEffect(\n effectFn: () => undefined | (() => void),\n options?: Omit<EffectOptions, 'priority'>\n): () => void {\n return createEnhancedEffect(effectFn, { ...options, priority: UpdatePriority.High })\n}\n\n/**\n * Create an effect with low priority for background tasks\n */\nexport function createLowPriorityEffect(\n effectFn: () => undefined | (() => void),\n options?: Omit<EffectOptions, 'priority'>\n): () => void {\n return createEnhancedEffect(effectFn, { ...options, priority: UpdatePriority.Low })\n}\n\n/**\n * Create an effect that only runs when dependencies change (not immediately)\n */\nexport function createWatchEffect(\n effectFn: () => undefined | (() => void),\n options?: Omit<EffectOptions, 'fireImmediately'>\n): () => void {\n return createEnhancedEffect(effectFn, { ...options, fireImmediately: false })\n}\n\n/**\n * Create an effect with automatic error recovery\n */\nexport function createResilientEffect(\n effectFn: () => undefined | (() => void),\n onError?: (error: Error, attempt: number) => boolean, // return true to retry\n maxRetries = 3,\n options?: EffectOptions\n): () => void {\n let attempt = 0\n\n const resilientFn = () => {\n try {\n return effectFn()\n } catch (error) {\n attempt++\n\n if (onError && attempt <= maxRetries && onError(error as Error, attempt)) {\n // Retry after a short delay\n setTimeout(() => resilientFn(), attempt * 100)\n return\n } else {\n // Give up and re-throw\n throw error\n }\n }\n }\n\n return createEnhancedEffect(resilientFn, {\n ...options,\n debugName: `${options?.debugName || 'effect'}(resilient)`,\n })\n}\n\n/**\n * Batch multiple effect creations for performance\n */\nexport function createEffectBatch(\n effects: Array<{\n fn: () => undefined | (() => void)\n options?: EffectOptions\n }>\n): () => void {\n const cleanups = effects.map(({ fn, options }) => createEnhancedEffect(fn, options))\n\n return () => {\n cleanups.forEach((cleanup) => cleanup())\n }\n}\n\n/**\n * Get performance metrics for all effects\n */\nexport function getEffectPerformanceMetrics() {\n const scheduler = ReactiveScheduler.getInstance()\n return scheduler.getPerformanceMetrics()\n}\n\n/**\n * Flush all pending effect updates synchronously\n */\nexport function flushEffectUpdates(): void {\n const scheduler = ReactiveScheduler.getInstance()\n scheduler.flushSync()\n}\n"],"names":["effectIdCounter","EffectImpl","effectFn","options","__publicField","UpdatePriority","getCurrentOwner","error","source","previousComputation","getCurrentComputation","setCurrentComputation","result","handlerError","index","createEnhancedEffect","effect","owner","createHighPriorityEffect","createLowPriorityEffect","createWatchEffect","createResilientEffect","onError","maxRetries","attempt","resilientFn","createEffectBatch","effects","cleanups","fn","cleanup","getEffectPerformanceMetrics","ReactiveScheduler","flushEffectUpdates"],"mappings":"kTAWA,IAAIA,EAAkB,EAYf,MAAMC,CAAmC,CAY9C,YACUC,EACRC,EAAyB,GACzB,CAFQ,KAAA,SAAAD,EAZVE,EAAA,KAAS,KAAK,EAAEJ,CAAA,EAChBI,EAAA,KAAS,OAAO,QAAA,EAChBA,EAAA,KAAS,UAAA,EACTA,EAAA,KAAS,cAAc,GAAS,EAChCA,EAAA,KAAS,gBAAgB,GAAW,EAEpCA,EAAA,KAAQ,aAAa,EAAA,EACrBA,EAAA,KAAQ,WAAA,EACRA,EAAA,KAAQ,SAAA,EACRA,EAAA,KAAQ,OAAA,EAMN,KAAK,SAAWD,EAAQ,UAAYE,EAAAA,eAAe,OACnD,KAAK,QAAUF,EACf,KAAK,MAAQG,kBAAA,EAETH,EAAQ,kBAAoB,IAC9B,KAAK,QAAA,CAET,CAKA,QAAe,CACT,KAAK,YAET,KAAK,QAAA,CACP,CAKQ,SAAgB,CACtB,GAAI,KAAK,WAAY,OAGrB,GAAI,KAAK,UAAW,CAClB,GAAI,CACF,KAAK,UAAA,CACP,OAASI,EAAO,CACd,QAAQ,MAAM,wBAAyBA,CAAK,CAC9C,CACA,KAAK,UAAY,MACnB,CAGA,UAAWC,KAAU,KAAK,QACpB,mBAAoBA,GAAU,OAAOA,EAAO,gBAAmB,WACjEA,EAAO,eAAe,IAAI,EACjB,cAA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AcY,EAAqBc,EAAI1B,CAAO,CAAC,EAEnF,MAAO,IAAM,CACXyB,EAAS,QAASE,GAAYA,EAAA,CAAS,CACzC,CACF,CAKO,SAASC,GAA8B,CAE5C,OADkBC,EAAAA,kBAAkB,YAAA,EACnB,sBAAA,CACnB,CAKO,SAASC,GAA2B,CACvBD,EAAAA,kBAAkB,YAAA,EAC1B,UAAA,CACZ"}
@@ -1,153 +0,0 @@
1
- import { getCurrentOwner as h, getCurrentComputation as p } from "./context.js";
2
- import { UpdatePriority as c, ReactiveScheduler as a } from "./unified-scheduler.js";
3
- var l = Object.defineProperty, d = (r, e, s) => e in r ? l(r, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : r[e] = s, i = (r, e, s) => d(r, typeof e != "symbol" ? e + "" : e, s);
4
- let m = 0;
5
- class b {
6
- constructor(e, s = {}) {
7
- this.effectFn = e, i(this, "id", ++m), i(this, "type", "effect"), i(this, "priority"), i(this, "sources", /* @__PURE__ */ new Set()), i(this, "observers", /* @__PURE__ */ new Set()), i(this, "isDisposed", !1), i(this, "cleanupFn"), i(this, "options"), i(this, "owner"), this.priority = s.priority ?? c.Normal, this.options = s, this.owner = h(), s.fireImmediately !== !1 && this.execute();
8
- }
9
- /**
10
- * Notify method called by unified scheduler
11
- */
12
- notify() {
13
- this.isDisposed || this.execute();
14
- }
15
- /**
16
- * Execute the effect with proper error handling
17
- */
18
- execute() {
19
- if (this.isDisposed) return;
20
- if (this.cleanupFn) {
21
- try {
22
- this.cleanupFn();
23
- } catch (t) {
24
- console.error("Effect cleanup error:", t);
25
- }
26
- this.cleanupFn = void 0;
27
- }
28
- for (const t of this.sources)
29
- "removeObserver" in t && typeof t.removeObserver == "function" ? t.removeObserver(this) : "observers" in t && t.observers instanceof Set && t.observers.delete(this);
30
- this.sources.clear();
31
- const e = p(), s = this.setCurrentComputation || (() => {
32
- });
33
- s(this);
34
- try {
35
- const t = this.effectFn();
36
- typeof t == "function" && (this.cleanupFn = t);
37
- } catch (t) {
38
- if (this.options.onError)
39
- try {
40
- this.options.onError(t);
41
- } catch (o) {
42
- throw console.error("Effect error handler threw error:", o), t;
43
- }
44
- else
45
- throw console.error(`Effect ${this.options.debugName || this.id} threw error:`, t), t;
46
- } finally {
47
- s(e);
48
- }
49
- }
50
- /**
51
- * Complete cleanup for memory management
52
- */
53
- cleanup() {
54
- if (this.isDisposed = !0, this.cleanupFn) {
55
- try {
56
- this.cleanupFn();
57
- } catch (e) {
58
- console.error("Effect cleanup error:", e);
59
- }
60
- this.cleanupFn = void 0;
61
- }
62
- for (const e of this.sources)
63
- "removeObserver" in e && typeof e.removeObserver == "function" ? e.removeObserver(this) : "observers" in e && e.observers instanceof Set && e.observers.delete(this);
64
- if (this.sources.clear(), this.owner?.cleanups) {
65
- const e = this.owner.cleanups.indexOf(this.cleanup.bind(this));
66
- e >= 0 && this.owner.cleanups.splice(e, 1);
67
- }
68
- }
69
- /**
70
- * Dispose the effect (alias for cleanup)
71
- */
72
- dispose() {
73
- this.cleanup();
74
- }
75
- /**
76
- * Check if effect is disposed
77
- */
78
- get disposed() {
79
- return this.isDisposed;
80
- }
81
- /**
82
- * Debug information
83
- */
84
- [Symbol.for("tachui.debug")]() {
85
- return {
86
- id: this.id,
87
- type: this.type,
88
- priority: c[this.priority],
89
- debugName: this.options.debugName,
90
- disposed: this.isDisposed,
91
- sourceCount: this.sources.size,
92
- hasCleanup: !!this.cleanupFn
93
- };
94
- }
95
- toString() {
96
- return `Effect(${this.options.debugName || this.id})`;
97
- }
98
- }
99
- function n(r, e) {
100
- const s = new b(r, e), t = h();
101
- return t && t.cleanups.push(() => s.cleanup()), () => s.cleanup();
102
- }
103
- function g(r, e) {
104
- return n(r, { ...e, priority: c.High });
105
- }
106
- function w(r, e) {
107
- return n(r, { ...e, priority: c.Low });
108
- }
109
- function E(r, e) {
110
- return n(r, { ...e, fireImmediately: !1 });
111
- }
112
- function F(r, e, s = 3, t) {
113
- let o = 0;
114
- const f = () => {
115
- try {
116
- return r();
117
- } catch (u) {
118
- if (o++, e && o <= s && e(u, o)) {
119
- setTimeout(() => f(), o * 100);
120
- return;
121
- } else
122
- throw u;
123
- }
124
- };
125
- return n(f, {
126
- ...t,
127
- debugName: `${t?.debugName || "effect"}(resilient)`
128
- });
129
- }
130
- function C(r) {
131
- const e = r.map(({ fn: s, options: t }) => n(s, t));
132
- return () => {
133
- e.forEach((s) => s());
134
- };
135
- }
136
- function O() {
137
- return a.getInstance().getPerformanceMetrics();
138
- }
139
- function N() {
140
- a.getInstance().flushSync();
141
- }
142
- export {
143
- b as EffectImpl,
144
- C as createEffectBatch,
145
- n as createEnhancedEffect,
146
- g as createHighPriorityEffect,
147
- w as createLowPriorityEffect,
148
- F as createResilientEffect,
149
- E as createWatchEffect,
150
- N as flushEffectUpdates,
151
- O as getEffectPerformanceMetrics
152
- };
153
- //# sourceMappingURL=enhanced-effect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enhanced-effect.js","sources":["../../src/reactive/enhanced-effect.ts"],"sourcesContent":["/**\n * Enhanced Effect System v2.0\n *\n * Provides proper error propagation and integrates with the unified scheduler\n * to fix silent error suppression and incomplete cleanup issues.\n */\n\nimport { getCurrentComputation, getCurrentOwner } from './context'\nimport type { Owner } from './types'\nimport { type ReactiveNode, ReactiveScheduler, UpdatePriority } from './unified-scheduler'\n\nlet effectIdCounter = 0\n\nexport interface EffectOptions {\n priority?: UpdatePriority\n debugName?: string\n onError?: (error: Error) => void\n fireImmediately?: boolean\n}\n\n/**\n * Enhanced effect implementation with proper error propagation\n */\nexport class EffectImpl implements ReactiveNode {\n readonly id = ++effectIdCounter\n readonly type = 'effect' as const\n readonly priority: UpdatePriority\n readonly sources = new Set<any>()\n readonly observers = new Set<never>() // Effects don't have observers\n\n private isDisposed = false\n private cleanupFn?: () => void\n private options: EffectOptions\n private owner: Owner | null\n\n constructor(\n private effectFn: () => undefined | (() => void),\n options: EffectOptions = {}\n ) {\n this.priority = options.priority ?? UpdatePriority.Normal\n this.options = options\n this.owner = getCurrentOwner()\n\n if (options.fireImmediately !== false) {\n this.execute()\n }\n }\n\n /**\n * Notify method called by unified scheduler\n */\n notify(): void {\n if (this.isDisposed) return\n\n this.execute()\n }\n\n /**\n * Execute the effect with proper error handling\n */\n private execute(): void {\n if (this.isDisposed) return\n\n // Cleanup previous effect run\n if (this.cleanupFn) {\n try {\n this.cleanupFn()\n } catch (error) {\n console.error('Effect cleanup error:', error)\n }\n this.cleanupFn = undefined\n }\n\n // Clear existing dependencies\n for (const source of this.sources) {\n if ('removeObserver' in source && typeof source.removeObserver === 'function') {\n source.removeObserver(this)\n } else if ('observers' in source && source.observers instanceof Set) {\n source.observers.delete(this)\n }\n }\n this.sources.clear()\n\n // Execute effect with dependency tracking\n const previousComputation = getCurrentComputation()\n // We need to set this as the current computation for dependency tracking\n const setCurrentComputation = (this as any).setCurrentComputation || (() => {})\n setCurrentComputation(this)\n\n try {\n const result = this.effectFn()\n\n // Store cleanup function if returned\n if (typeof result === 'function') {\n this.cleanupFn = result\n }\n } catch (error) {\n if (this.options.onError) {\n try {\n this.options.onError(error as Error)\n } catch (handlerError) {\n console.error('Effect error handler threw error:', handlerError)\n // Re-throw the original error since handler failed\n throw error\n }\n } else {\n // Don't suppress errors like the old implementation - re-throw them\n console.error(`Effect ${this.options.debugName || this.id} threw error:`, error)\n throw error\n }\n } finally {\n setCurrentComputation(previousComputation)\n }\n }\n\n /**\n * Complete cleanup for memory management\n */\n cleanup(): void {\n this.isDisposed = true\n\n // Cleanup effect function\n if (this.cleanupFn) {\n try {\n this.cleanupFn()\n } catch (error) {\n console.error('Effect cleanup error:', error)\n }\n this.cleanupFn = undefined\n }\n\n // Remove from all sources\n for (const source of this.sources) {\n if ('removeObserver' in source && typeof source.removeObserver === 'function') {\n source.removeObserver(this)\n } else if ('observers' in source && source.observers instanceof Set) {\n source.observers.delete(this)\n }\n }\n this.sources.clear()\n\n // Remove from owner cleanup\n if (this.owner?.cleanups) {\n const index = this.owner.cleanups.indexOf(this.cleanup.bind(this))\n if (index >= 0) {\n this.owner.cleanups.splice(index, 1)\n }\n }\n }\n\n /**\n * Dispose the effect (alias for cleanup)\n */\n dispose(): void {\n this.cleanup()\n }\n\n /**\n * Check if effect is disposed\n */\n get disposed(): boolean {\n return this.isDisposed\n }\n\n /**\n * Debug information\n */\n [Symbol.for('tachui.debug')](): object {\n return {\n id: this.id,\n type: this.type,\n priority: UpdatePriority[this.priority],\n debugName: this.options.debugName,\n disposed: this.isDisposed,\n sourceCount: this.sources.size,\n hasCleanup: !!this.cleanupFn,\n }\n }\n\n toString(): string {\n return `Effect(${this.options.debugName || this.id})`\n }\n}\n\n/**\n * Create a reactive effect with proper error handling\n *\n * @param effectFn The effect function to run\n * @param options Effect configuration options\n * @returns Cleanup function to dispose the effect\n *\n * @example\n * ```typescript\n * const [count, setCount] = createSignal(0)\n *\n * const cleanup = createEnhancedEffect(() => {\n * console.log('Count changed:', count())\n * }, {\n * debugName: 'countLogger',\n * onError: (error) => {\n * console.error('Effect failed:', error)\n * }\n * })\n *\n * // Later, cleanup when no longer needed\n * cleanup()\n * ```\n */\nexport function createEnhancedEffect(\n effectFn: () => undefined | (() => void),\n options?: EffectOptions\n): () => void {\n const effect = new EffectImpl(effectFn, options)\n\n // Register cleanup with owner if available\n const owner = getCurrentOwner()\n if (owner) {\n owner.cleanups.push(() => effect.cleanup())\n }\n\n return () => effect.cleanup()\n}\n\n/**\n * Create an effect with high priority for user interactions\n */\nexport function createHighPriorityEffect(\n effectFn: () => undefined | (() => void),\n options?: Omit<EffectOptions, 'priority'>\n): () => void {\n return createEnhancedEffect(effectFn, { ...options, priority: UpdatePriority.High })\n}\n\n/**\n * Create an effect with low priority for background tasks\n */\nexport function createLowPriorityEffect(\n effectFn: () => undefined | (() => void),\n options?: Omit<EffectOptions, 'priority'>\n): () => void {\n return createEnhancedEffect(effectFn, { ...options, priority: UpdatePriority.Low })\n}\n\n/**\n * Create an effect that only runs when dependencies change (not immediately)\n */\nexport function createWatchEffect(\n effectFn: () => undefined | (() => void),\n options?: Omit<EffectOptions, 'fireImmediately'>\n): () => void {\n return createEnhancedEffect(effectFn, { ...options, fireImmediately: false })\n}\n\n/**\n * Create an effect with automatic error recovery\n */\nexport function createResilientEffect(\n effectFn: () => undefined | (() => void),\n onError?: (error: Error, attempt: number) => boolean, // return true to retry\n maxRetries = 3,\n options?: EffectOptions\n): () => void {\n let attempt = 0\n\n const resilientFn = () => {\n try {\n return effectFn()\n } catch (error) {\n attempt++\n\n if (onError && attempt <= maxRetries && onError(error as Error, attempt)) {\n // Retry after a short delay\n setTimeout(() => resilientFn(), attempt * 100)\n return\n } else {\n // Give up and re-throw\n throw error\n }\n }\n }\n\n return createEnhancedEffect(resilientFn, {\n ...options,\n debugName: `${options?.debugName || 'effect'}(resilient)`,\n })\n}\n\n/**\n * Batch multiple effect creations for performance\n */\nexport function createEffectBatch(\n effects: Array<{\n fn: () => undefined | (() => void)\n options?: EffectOptions\n }>\n): () => void {\n const cleanups = effects.map(({ fn, options }) => createEnhancedEffect(fn, options))\n\n return () => {\n cleanups.forEach((cleanup) => cleanup())\n }\n}\n\n/**\n * Get performance metrics for all effects\n */\nexport function getEffectPerformanceMetrics() {\n const scheduler = ReactiveScheduler.getInstance()\n return scheduler.getPerformanceMetrics()\n}\n\n/**\n * Flush all pending effect updates synchronously\n */\nexport function flushEffectUpdates(): void {\n const scheduler = ReactiveScheduler.getInstance()\n scheduler.flushSync()\n}\n"],"names":["effectIdCounter","EffectImpl","effectFn","options","__publicField","UpdatePriority","getCurrentOwner","error","source","previousComputation","getCurrentComputation","setCurrentComputation","result","handlerError","index","createEnhancedEffect","effect","owner","createHighPriorityEffect","createLowPriorityEffect","createWatchEffect","createResilientEffect","onError","maxRetries","attempt","resilientFn","createEffectBatch","effects","cleanups","fn","cleanup","getEffectPerformanceMetrics","ReactiveScheduler","flushEffectUpdates"],"mappings":";;;AAWA,IAAIA,IAAkB;AAYf,MAAMC,EAAmC;AAAA,EAY9C,YACUC,GACRC,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E,MAAYA,EAAA,CAAS;AAAA,EACzC;AACF;AAKO,SAASC,IAA8B;AAE5C,SADkBC,EAAkB,YAAA,EACnB,sBAAA;AACnB;AAKO,SAASC,IAA2B;AAEzC,EADkBD,EAAkB,YAAA,EAC1B,UAAA;AACZ;"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./context.cjs"),u=require("./equality.cjs"),a=require("./types.cjs"),n=require("./unified-scheduler.cjs");var d=Object.defineProperty,g=(i,e,t)=>e in i?d(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,s=(i,e,t)=>g(i,typeof e!="symbol"?e+"":e,t);let p=0;class o{constructor(e,t={}){s(this,"id",++p),s(this,"type","signal"),s(this,"priority"),s(this,"observers",new Set),s(this,"_value"),s(this,"scheduler",n.ReactiveScheduler.getInstance()),s(this,"equalsFn"),s(this,"debugName"),s(this,"options"),this._value=e,this.options=t,this.priority=t.priority??n.UpdatePriority.Normal,this.equalsFn=t.equals??u.defaultEquals,this.debugName=t.debugName}getValue(){const e=h.getCurrentComputation();return e&&e.state!==a.ComputationState.Disposed&&(this.observers.add(e),e.sources.add(this)),this._value}peek(){return this._value}setValue(e){const t=typeof e=="function"?e(this._value):e;if(!this.equalsFn(t,this._value)){const r=this._value;this._value=t,process.env.NODE_ENV==="development"&&this.debugName&&console.debug(`[Signal:${this.debugName}] ${r} -> ${t}`),this.scheduler.schedule(this)}return t}notify(){for(const e of this.observers)e.state!==a.ComputationState.Disposed&&(e.state=a.ComputationState.Dirty,"type"in e&&"priority"in e&&this.scheduler.schedule(e))}removeObserver(e){this.observers.delete(e)}cleanup(){for(const e of this.observers)e.sources.delete(this);this.observers.clear()}[Symbol.for("tachui.debug")](){return{id:this.id,type:this.type,value:this._value,observerCount:this.observers.size,priority:n.UpdatePriority[this.priority],debugName:this.debugName,equalsFn:this.equalsFn.name||"anonymous"}}toString(){return`Signal(${this.options.debugName||this.id}): ${this._value}`}}function l(i,e){const t=new o(i,e),r=t.getValue.bind(t);r.peek=t.peek.bind(t);const c=t.setValue.bind(t);return Object.defineProperty(r,Symbol.for("tachui.signal"),{value:t,enumerable:!1}),[r,c]}function f(i,e){return l(i,{...e,equals:u.deepEquals})}function b(i,e){return l(i,{...e,equals:u.shallowEquals})}function S(i){return i[Symbol.for("tachui.signal")]||null}function m(i){return typeof i=="function"&&Symbol.for("tachui.signal")in i}function v(){n.ReactiveScheduler.getInstance().flushSync()}function y(){return n.ReactiveScheduler.getInstance().getPerformanceMetrics()}exports.EnhancedSignalImpl=o;exports.createDeepSignal=f;exports.createEnhancedSignal=l;exports.createShallowSignal=b;exports.flushSignalUpdates=v;exports.getEnhancedSignalImpl=S;exports.getSignalPerformanceMetrics=y;exports.isEnhancedSignal=m;
2
- //# sourceMappingURL=enhanced-signal.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enhanced-signal.cjs","sources":["../../src/reactive/enhanced-signal.ts"],"sourcesContent":["/**\n * Enhanced Signal Implementation v2.0\n *\n * Integrates with the unified scheduler and provides custom equality functions\n * to fix signal update detection bugs and eliminate race conditions.\n */\n\nimport { getCurrentComputation } from './context'\nimport { defaultEquals, deepEquals, shallowEquals, type EqualityFunction } from './equality'\nimport type { Computation } from './types'\nimport { ComputationState } from './types'\nimport { type ReactiveNode, ReactiveScheduler, UpdatePriority } from './unified-scheduler'\n\nlet signalIdCounter = 0\n\nexport interface SignalOptions<T> {\n equals?: EqualityFunction<T>\n priority?: UpdatePriority\n debugName?: string\n}\n\n/**\n * Enhanced signal implementation with unified scheduler integration\n */\nexport class EnhancedSignalImpl<T> implements ReactiveNode {\n readonly id = ++signalIdCounter\n readonly type = 'signal' as const\n readonly priority: UpdatePriority\n readonly observers = new Set<Computation>()\n\n private _value: T\n private scheduler = ReactiveScheduler.getInstance()\n private equalsFn: EqualityFunction<T>\n private debugName?: string\n private options: SignalOptions<T>\n\n constructor(initialValue: T, options: SignalOptions<T> = {}) {\n this._value = initialValue\n this.options = options\n this.priority = options.priority ?? UpdatePriority.Normal\n this.equalsFn = options.equals ?? defaultEquals\n this.debugName = options.debugName\n }\n\n /**\n * Get the current value and track dependency\n */\n getValue(): T {\n const computation = getCurrentComputation()\n if (computation && computation.state !== ComputationState.Disposed) {\n // Establish bidirectional relationship\n this.observers.add(computation)\n computation.sources.add(this)\n }\n return this._value\n }\n\n /**\n * Get the current value without tracking dependency\n */\n peek(): T {\n return this._value\n }\n\n /**\n * Set a new value using custom equality function\n */\n setValue(newValue: T | ((prev: T) => T)): T {\n const value =\n typeof newValue === 'function' ? (newValue as (prev: T) => T)(this._value) : newValue\n\n // Use custom equality function instead of simple !== check\n if (!this.equalsFn(value, this._value)) {\n const oldValue = this._value\n this._value = value\n\n if (process.env.NODE_ENV === 'development' && this.debugName) {\n console.debug(`[Signal:${this.debugName}] ${oldValue} -> ${value}`)\n }\n\n // Schedule update through unified scheduler\n this.scheduler.schedule(this)\n }\n\n return value\n }\n\n /**\n * Notify all observers (called by scheduler)\n */\n notify(): void {\n // Mark all observers as dirty and schedule them\n for (const observer of this.observers) {\n if (observer.state !== ComputationState.Disposed) {\n observer.state = ComputationState.Dirty\n\n // Schedule observer if it's also a ReactiveNode\n if ('type' in observer && 'priority' in observer) {\n this.scheduler.schedule(observer as any)\n }\n }\n }\n }\n\n /**\n * Remove an observer (cleanup)\n */\n removeObserver(computation: Computation): void {\n this.observers.delete(computation)\n }\n\n /**\n * Complete cleanup for memory management\n */\n cleanup(): void {\n // Complete bidirectional cleanup to prevent memory leaks\n for (const observer of this.observers) {\n observer.sources.delete(this)\n }\n this.observers.clear()\n }\n\n /**\n * Get debug information about this signal\n */\n [Symbol.for('tachui.debug')](): object {\n return {\n id: this.id,\n type: this.type,\n value: this._value,\n observerCount: this.observers.size,\n priority: UpdatePriority[this.priority],\n debugName: this.debugName,\n equalsFn: this.equalsFn.name || 'anonymous',\n }\n }\n\n toString(): string {\n return `Signal(${this.options.debugName || this.id}): ${this._value}`\n }\n}\n\n/**\n * Signal setter function type\n */\nexport type SignalSetter<T> = (value: T | ((prev: T) => T)) => T\n\n/**\n * Create a new enhanced reactive signal with custom equality\n */\nexport function createEnhancedSignal<T>(\n initialValue: T,\n options?: SignalOptions<T>\n): [() => T, SignalSetter<T>] {\n const signal = new EnhancedSignalImpl(initialValue, options)\n\n const getter = signal.getValue.bind(signal) as (() => T) & { peek: () => T }\n getter.peek = signal.peek.bind(signal)\n\n const setter: SignalSetter<T> = signal.setValue.bind(signal)\n\n // Add debug information for compatibility\n Object.defineProperty(getter, Symbol.for('tachui.signal'), {\n value: signal,\n enumerable: false,\n })\n\n return [getter, setter]\n}\n\n/**\n * Create a signal with deep equality comparison\n */\nexport function createDeepSignal<T>(\n initialValue: T,\n options?: Omit<SignalOptions<T>, 'equals'>\n): [() => T, SignalSetter<T>] {\n return createEnhancedSignal(initialValue, {\n ...options,\n equals: deepEquals,\n })\n}\n\n/**\n * Create a signal with shallow equality comparison\n */\nexport function createShallowSignal<T>(\n initialValue: T,\n options?: Omit<SignalOptions<T>, 'equals'>\n): [() => T, SignalSetter<T>] {\n return createEnhancedSignal(initialValue, {\n ...options,\n equals: shallowEquals,\n })\n}\n\n/**\n * Get the underlying signal implementation for debugging\n */\nexport function getEnhancedSignalImpl<T>(\n signal: (() => T) & { peek: () => T }\n): EnhancedSignalImpl<T> | null {\n return (signal as any)[Symbol.for('tachui.signal')] || null\n}\n\n/**\n * Type guard to check if a value is an enhanced signal\n */\nexport function isEnhancedSignal<T = any>(value: any): value is (() => T) & { peek: () => T } {\n return typeof value === 'function' && Symbol.for('tachui.signal') in value\n}\n\n/**\n * Flush all pending signal updates synchronously\n */\nexport function flushSignalUpdates(): void {\n const scheduler = ReactiveScheduler.getInstance()\n scheduler.flushSync()\n}\n\n/**\n * Get performance metrics for all signals\n */\nexport function getSignalPerformanceMetrics() {\n const scheduler = ReactiveScheduler.getInstance()\n return scheduler.getPerformanceMetrics()\n}\n"],"names":["signalIdCounter","EnhancedSignalImpl","initialValue","options","__publicField","ReactiveScheduler","UpdatePriority","defaultEquals","computation","getCurrentComputation","ComputationState","newValue","value","oldValue","observer","createEnhancedSignal","signal","getter","setter","createDeepSignal","deepEquals","createShallowSignal","shallowEquals","getEnhancedSignalImpl","isEnhancedSignal","flushSignalUpdates","getSignalPerformanceMetrics"],"mappings":"uWAaA,IAAIA,EAAkB,EAWf,MAAMC,CAA8C,CAYzD,YAAYC,EAAiBC,EAA4B,GAAI,CAX7DC,EAAA,KAAS,KAAK,EAAEJ,CAAA,EAChBI,EAAA,KAAS,OAAO,QAAA,EAChBA,EAAA,KAAS,UAAA,EACTA,EAAA,KAAS,gBAAgB,GAAiB,EAE1CA,EAAA,KAAQ,QAAA,EACRA,EAAA,KAAQ,YAAYC,EAAAA,kBAAkB,YAAA,CAAY,EAClDD,EAAA,KAAQ,UAAA,EACRA,EAAA,KAAQ,WAAA,EACRA,EAAA,KAAQ,SAAA,EAGN,KAAK,OAASF,EACd,KAAK,QAAUC,EACf,KAAK,SAAWA,EAAQ,UAAYG,EAAAA,eAAe,OACnD,KAAK,SAAWH,EAAQ,QAAUI,EAAAA,cAClC,KAAK,UAAYJ,EAAQ,SAC3B,CAKA,UAAc,CACZ,MAAMK,EAAcC,EAAAA,sBAAA,EACpB,OAAID,GAAeA,EAAY,QAAUE,EAAAA,iBAAiB,WAExD,KAAK,UAAU,IAAIF,CAAW,EAC9BA,EAAY,QAAQ,IAAI,IAAI,GAEvB,KAAK,MACd,CAKA,MAAU,CACR,OAAO,KAAK,MACd,CAKA,SAASG,EAAmC,CAC1C,MAAMC,EACJ,OAAOD,GAAa,WAAcA,EAA4B,KAAK,MAAM,EAAIA,EAG/E,GAAI,CAAC,KAAK,SAASC,EAAO,KAAK,MAAM,EAAG,CACtC,MAAMC,EAAW,KAAK,OACtB,KAAK,OAASD,EAEV,QAAQ,IAAI,WAAa,eAAiB,KAAK,WACjD,QAAQ,MAAM,WAAW,KAAK,SAAS,KAAKC,CAAQ,OAAOD,CAAK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C,GAAGC,EACH,OAAQmB,EAAAA,aAAA,CACT,CACH,CAKO,SAASC,EACdP,EAC8B,CAC9B,OAAQA,EAAe,OAAO,IAAI,eAAe,CAAC,GAAK,IACzD,CAKO,SAASQ,EAA0BZ,EAAoD,CAC5F,OAAO,OAAOA,GAAU,YAAc,OAAO,IAAI,eAAe,IAAKA,CACvE,CAKO,SAASa,GAA2B,CACvBpB,EAAAA,kBAAkB,YAAA,EAC1B,UAAA,CACZ,CAKO,SAASqB,GAA8B,CAE5C,OADkBrB,EAAAA,kBAAkB,YAAA,EACnB,sBAAA,CACnB"}
@@ -1,117 +0,0 @@
1
- import { getCurrentComputation as h } from "./context.js";
2
- import { shallowEquals as c, defaultEquals as d, deepEquals as f } from "./equality.js";
3
- import { ComputationState as n } from "./types.js";
4
- import { ReactiveScheduler as a, UpdatePriority as o } from "./unified-scheduler.js";
5
- var p = Object.defineProperty, g = (s, e, t) => e in s ? p(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, i = (s, e, t) => g(s, typeof e != "symbol" ? e + "" : e, t);
6
- let m = 0;
7
- class b {
8
- constructor(e, t = {}) {
9
- i(this, "id", ++m), i(this, "type", "signal"), i(this, "priority"), i(this, "observers", /* @__PURE__ */ new Set()), i(this, "_value"), i(this, "scheduler", a.getInstance()), i(this, "equalsFn"), i(this, "debugName"), i(this, "options"), this._value = e, this.options = t, this.priority = t.priority ?? o.Normal, this.equalsFn = t.equals ?? d, this.debugName = t.debugName;
10
- }
11
- /**
12
- * Get the current value and track dependency
13
- */
14
- getValue() {
15
- const e = h();
16
- return e && e.state !== n.Disposed && (this.observers.add(e), e.sources.add(this)), this._value;
17
- }
18
- /**
19
- * Get the current value without tracking dependency
20
- */
21
- peek() {
22
- return this._value;
23
- }
24
- /**
25
- * Set a new value using custom equality function
26
- */
27
- setValue(e) {
28
- const t = typeof e == "function" ? e(this._value) : e;
29
- if (!this.equalsFn(t, this._value)) {
30
- const r = this._value;
31
- this._value = t, process.env.NODE_ENV === "development" && this.debugName && console.debug(`[Signal:${this.debugName}] ${r} -> ${t}`), this.scheduler.schedule(this);
32
- }
33
- return t;
34
- }
35
- /**
36
- * Notify all observers (called by scheduler)
37
- */
38
- notify() {
39
- for (const e of this.observers)
40
- e.state !== n.Disposed && (e.state = n.Dirty, "type" in e && "priority" in e && this.scheduler.schedule(e));
41
- }
42
- /**
43
- * Remove an observer (cleanup)
44
- */
45
- removeObserver(e) {
46
- this.observers.delete(e);
47
- }
48
- /**
49
- * Complete cleanup for memory management
50
- */
51
- cleanup() {
52
- for (const e of this.observers)
53
- e.sources.delete(this);
54
- this.observers.clear();
55
- }
56
- /**
57
- * Get debug information about this signal
58
- */
59
- [Symbol.for("tachui.debug")]() {
60
- return {
61
- id: this.id,
62
- type: this.type,
63
- value: this._value,
64
- observerCount: this.observers.size,
65
- priority: o[this.priority],
66
- debugName: this.debugName,
67
- equalsFn: this.equalsFn.name || "anonymous"
68
- };
69
- }
70
- toString() {
71
- return `Signal(${this.options.debugName || this.id}): ${this._value}`;
72
- }
73
- }
74
- function u(s, e) {
75
- const t = new b(s, e), r = t.getValue.bind(t);
76
- r.peek = t.peek.bind(t);
77
- const l = t.setValue.bind(t);
78
- return Object.defineProperty(r, Symbol.for("tachui.signal"), {
79
- value: t,
80
- enumerable: !1
81
- }), [r, l];
82
- }
83
- function N(s, e) {
84
- return u(s, {
85
- ...e,
86
- equals: f
87
- });
88
- }
89
- function q(s, e) {
90
- return u(s, {
91
- ...e,
92
- equals: c
93
- });
94
- }
95
- function E(s) {
96
- return s[Symbol.for("tachui.signal")] || null;
97
- }
98
- function P(s) {
99
- return typeof s == "function" && Symbol.for("tachui.signal") in s;
100
- }
101
- function F() {
102
- a.getInstance().flushSync();
103
- }
104
- function I() {
105
- return a.getInstance().getPerformanceMetrics();
106
- }
107
- export {
108
- b as EnhancedSignalImpl,
109
- N as createDeepSignal,
110
- u as createEnhancedSignal,
111
- q as createShallowSignal,
112
- F as flushSignalUpdates,
113
- E as getEnhancedSignalImpl,
114
- I as getSignalPerformanceMetrics,
115
- P as isEnhancedSignal
116
- };
117
- //# sourceMappingURL=enhanced-signal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enhanced-signal.js","sources":["../../src/reactive/enhanced-signal.ts"],"sourcesContent":["/**\n * Enhanced Signal Implementation v2.0\n *\n * Integrates with the unified scheduler and provides custom equality functions\n * to fix signal update detection bugs and eliminate race conditions.\n */\n\nimport { getCurrentComputation } from './context'\nimport { defaultEquals, deepEquals, shallowEquals, type EqualityFunction } from './equality'\nimport type { Computation } from './types'\nimport { ComputationState } from './types'\nimport { type ReactiveNode, ReactiveScheduler, UpdatePriority } from './unified-scheduler'\n\nlet signalIdCounter = 0\n\nexport interface SignalOptions<T> {\n equals?: EqualityFunction<T>\n priority?: UpdatePriority\n debugName?: string\n}\n\n/**\n * Enhanced signal implementation with unified scheduler integration\n */\nexport class EnhancedSignalImpl<T> implements ReactiveNode {\n readonly id = ++signalIdCounter\n readonly type = 'signal' as const\n readonly priority: UpdatePriority\n readonly observers = new Set<Computation>()\n\n private _value: T\n private scheduler = ReactiveScheduler.getInstance()\n private equalsFn: EqualityFunction<T>\n private debugName?: string\n private options: SignalOptions<T>\n\n constructor(initialValue: T, options: SignalOptions<T> = {}) {\n this._value = initialValue\n this.options = options\n this.priority = options.priority ?? UpdatePriority.Normal\n this.equalsFn = options.equals ?? defaultEquals\n this.debugName = options.debugName\n }\n\n /**\n * Get the current value and track dependency\n */\n getValue(): T {\n const computation = getCurrentComputation()\n if (computation && computation.state !== ComputationState.Disposed) {\n // Establish bidirectional relationship\n this.observers.add(computation)\n computation.sources.add(this)\n }\n return this._value\n }\n\n /**\n * Get the current value without tracking dependency\n */\n peek(): T {\n return this._value\n }\n\n /**\n * Set a new value using custom equality function\n */\n setValue(newValue: T | ((prev: T) => T)): T {\n const value =\n typeof newValue === 'function' ? (newValue as (prev: T) => T)(this._value) : newValue\n\n // Use custom equality function instead of simple !== check\n if (!this.equalsFn(value, this._value)) {\n const oldValue = this._value\n this._value = value\n\n if (process.env.NODE_ENV === 'development' && this.debugName) {\n console.debug(`[Signal:${this.debugName}] ${oldValue} -> ${value}`)\n }\n\n // Schedule update through unified scheduler\n this.scheduler.schedule(this)\n }\n\n return value\n }\n\n /**\n * Notify all observers (called by scheduler)\n */\n notify(): void {\n // Mark all observers as dirty and schedule them\n for (const observer of this.observers) {\n if (observer.state !== ComputationState.Disposed) {\n observer.state = ComputationState.Dirty\n\n // Schedule observer if it's also a ReactiveNode\n if ('type' in observer && 'priority' in observer) {\n this.scheduler.schedule(observer as any)\n }\n }\n }\n }\n\n /**\n * Remove an observer (cleanup)\n */\n removeObserver(computation: Computation): void {\n this.observers.delete(computation)\n }\n\n /**\n * Complete cleanup for memory management\n */\n cleanup(): void {\n // Complete bidirectional cleanup to prevent memory leaks\n for (const observer of this.observers) {\n observer.sources.delete(this)\n }\n this.observers.clear()\n }\n\n /**\n * Get debug information about this signal\n */\n [Symbol.for('tachui.debug')](): object {\n return {\n id: this.id,\n type: this.type,\n value: this._value,\n observerCount: this.observers.size,\n priority: UpdatePriority[this.priority],\n debugName: this.debugName,\n equalsFn: this.equalsFn.name || 'anonymous',\n }\n }\n\n toString(): string {\n return `Signal(${this.options.debugName || this.id}): ${this._value}`\n }\n}\n\n/**\n * Signal setter function type\n */\nexport type SignalSetter<T> = (value: T | ((prev: T) => T)) => T\n\n/**\n * Create a new enhanced reactive signal with custom equality\n */\nexport function createEnhancedSignal<T>(\n initialValue: T,\n options?: SignalOptions<T>\n): [() => T, SignalSetter<T>] {\n const signal = new EnhancedSignalImpl(initialValue, options)\n\n const getter = signal.getValue.bind(signal) as (() => T) & { peek: () => T }\n getter.peek = signal.peek.bind(signal)\n\n const setter: SignalSetter<T> = signal.setValue.bind(signal)\n\n // Add debug information for compatibility\n Object.defineProperty(getter, Symbol.for('tachui.signal'), {\n value: signal,\n enumerable: false,\n })\n\n return [getter, setter]\n}\n\n/**\n * Create a signal with deep equality comparison\n */\nexport function createDeepSignal<T>(\n initialValue: T,\n options?: Omit<SignalOptions<T>, 'equals'>\n): [() => T, SignalSetter<T>] {\n return createEnhancedSignal(initialValue, {\n ...options,\n equals: deepEquals,\n })\n}\n\n/**\n * Create a signal with shallow equality comparison\n */\nexport function createShallowSignal<T>(\n initialValue: T,\n options?: Omit<SignalOptions<T>, 'equals'>\n): [() => T, SignalSetter<T>] {\n return createEnhancedSignal(initialValue, {\n ...options,\n equals: shallowEquals,\n })\n}\n\n/**\n * Get the underlying signal implementation for debugging\n */\nexport function getEnhancedSignalImpl<T>(\n signal: (() => T) & { peek: () => T }\n): EnhancedSignalImpl<T> | null {\n return (signal as any)[Symbol.for('tachui.signal')] || null\n}\n\n/**\n * Type guard to check if a value is an enhanced signal\n */\nexport function isEnhancedSignal<T = any>(value: any): value is (() => T) & { peek: () => T } {\n return typeof value === 'function' && Symbol.for('tachui.signal') in value\n}\n\n/**\n * Flush all pending signal updates synchronously\n */\nexport function flushSignalUpdates(): void {\n const scheduler = ReactiveScheduler.getInstance()\n scheduler.flushSync()\n}\n\n/**\n * Get performance metrics for all signals\n */\nexport function getSignalPerformanceMetrics() {\n const scheduler = ReactiveScheduler.getInstance()\n return scheduler.getPerformanceMetrics()\n}\n"],"names":["signalIdCounter","EnhancedSignalImpl","initialValue","options","__publicField","ReactiveScheduler","UpdatePriority","defaultEquals","computation","getCurrentComputation","ComputationState","newValue","value","oldValue","observer","createEnhancedSignal","signal","getter","setter","createDeepSignal","deepEquals","createShallowSignal","shallowEquals","getEnhancedSignalImpl","isEnhancedSignal","flushSignalUpdates","getSignalPerformanceMetrics"],"mappings":";;;;;AAaA,IAAIA,IAAkB;AAWf,MAAMC,EAA8C;AAAA,EAYzD,YAAYC,GAAiBC,IAA4B,IAAI;AAX7D,IAAAC,EAAA,MAAS,MAAK,EAAEJ,CAAA,GAChBI,EAAA,MAAS,QAAO,QAAA,GAChBA,EAAA,MAAS,UAAA,GACTA,EAAA,MAAS,iCAAgB,IAAA,CA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O,SAASQ,EAA0BZ,GAAoD;AAC5F,SAAO,OAAOA,KAAU,cAAc,OAAO,IAAI,eAAe,KAAKA;AACvE;AAKO,SAASa,IAA2B;AAEzC,EADkBpB,EAAkB,YAAA,EAC1B,UAAA;AACZ;AAKO,SAASqB,IAA8B;AAE5C,SADkBrB,EAAkB,YAAA,EACnB,sBAAA;AACnB;"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=(t,e)=>t===e,o=(t,e)=>{if(t===e)return!0;if(t==null||e==null||typeof t!=typeof e)return!1;if(typeof t=="object"){if(Array.isArray(t)!==Array.isArray(e))return!1;if(Array.isArray(t)){const u=t,c=e;return u.length!==c.length?!1:u.every((i,a)=>o(i,c[a]))}const r=t,n=e,s=Object.keys(r),l=Object.keys(n);return s.length!==l.length?!1:s.every(u=>o(r[u],n[u]))}return!1},y=(t,e)=>{if(t===e)return!0;if(typeof t!="object"||typeof e!="object"||t==null||e==null)return!1;const r=t,n=e,s=Object.keys(r),l=Object.keys(n);return s.length!==l.length?!1:s.every(u=>r[u]===n[u])},g=(t,e)=>{if(t===e)return!0;if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(t instanceof RegExp&&e instanceof RegExp)return t.toString()===e.toString();if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(const[r,n]of t)if(!e.has(r)||e.get(r)!==n)return!1;return!0}return o(t,e)},E=(t,e)=>{if(t===e)return!0;try{return JSON.stringify(t)===JSON.stringify(e)}catch{return t===e}},q=(t,e=f)=>(r,n)=>e(t(r),t(n)),j=(t=f)=>(e,r)=>e===r?!0:e.length!==r.length?!1:e.every((n,s)=>t(n,r[s])),h=(t=f)=>(e,r)=>{if(e===r)return!0;if(e==null||r==null)return!1;const n=Object.keys(e),s=Object.keys(r);return n.length!==s.length?!1:n.every(l=>t(e[l],r[l]))},p=(...t)=>(e,r)=>t.every(n=>n(e,r)),A=(t,e)=>(r,n)=>{const s=t(r,n);return process.env.NODE_ENV==="development"&&console.log(`[${e||"equals"}]`,{a:r,b:n,equal:s}),s};exports.combineEquals=p;exports.createArrayEquals=j;exports.createObjectEquals=h;exports.createSelectorEquals=q;exports.debugEquals=A;exports.deepEquals=o;exports.defaultEquals=f;exports.jsonEquals=E;exports.shallowEquals=y;exports.structuralEquals=g;
2
- //# sourceMappingURL=equality.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"equality.cjs","sources":["../../src/reactive/equality.ts"],"sourcesContent":["/**\n * Equality Functions for Reactive System\n *\n * Provides various equality comparison functions for signal updates\n * including deep, shallow, and custom equality checking.\n */\n\nexport type EqualityFunction<T> = (a: T, b: T) => boolean\n\n/**\n * Default reference equality (===)\n */\nexport const defaultEquals = <T>(a: T, b: T): boolean => a === b\n\n/**\n * Deep equality comparison for objects and arrays\n * Recursively compares all properties and array elements\n */\nexport const deepEquals = <T>(a: T, b: T): boolean => {\n if (a === b) return true\n if (a == null || b == null) return false\n if (typeof a !== typeof b) return false\n\n if (typeof a === 'object') {\n if (Array.isArray(a) !== Array.isArray(b)) return false\n\n if (Array.isArray(a)) {\n const arrayA = a as unknown as any[]\n const arrayB = b as unknown as any[]\n if (arrayA.length !== arrayB.length) return false\n return arrayA.every((item, index) => deepEquals(item, arrayB[index]))\n }\n\n const objA = a as Record<string, any>\n const objB = b as Record<string, any>\n\n const keysA = Object.keys(objA)\n const keysB = Object.keys(objB)\n if (keysA.length !== keysB.length) return false\n\n return keysA.every((key) => deepEquals(objA[key], objB[key]))\n }\n\n return false\n}\n\n/**\n * Shallow equality comparison for objects\n * Compares only the top-level properties with reference equality\n */\nexport const shallowEquals = <T>(a: T, b: T): boolean => {\n if (a === b) return true\n if (typeof a !== 'object' || typeof b !== 'object') return false\n if (a == null || b == null) return false\n\n const objA = a as Record<string, any>\n const objB = b as Record<string, any>\n\n const keysA = Object.keys(objA)\n const keysB = Object.keys(objB)\n if (keysA.length !== keysB.length) return false\n\n return keysA.every((key) => objA[key] === objB[key])\n}\n\n/**\n * Structural equality for specific data types\n */\nexport const structuralEquals = <T>(a: T, b: T): boolean => {\n if (a === b) return true\n\n // Handle Date objects\n if (a instanceof Date && b instanceof Date) {\n return a.getTime() === b.getTime()\n }\n\n // Handle RegExp objects\n if (a instanceof RegExp && b instanceof RegExp) {\n return a.toString() === b.toString()\n }\n\n // Handle Set objects\n if (a instanceof Set && b instanceof Set) {\n if (a.size !== b.size) return false\n for (const item of a) {\n if (!b.has(item)) return false\n }\n return true\n }\n\n // Handle Map objects\n if (a instanceof Map && b instanceof Map) {\n if (a.size !== b.size) return false\n for (const [key, value] of a) {\n if (!b.has(key) || b.get(key) !== value) return false\n }\n return true\n }\n\n // Fall back to deep equals for other objects\n return deepEquals(a, b)\n}\n\n/**\n * JSON-based equality (serializes and compares)\n * Useful for complex nested structures but slower\n */\nexport const jsonEquals = <T>(a: T, b: T): boolean => {\n if (a === b) return true\n\n try {\n return JSON.stringify(a) === JSON.stringify(b)\n } catch {\n // If serialization fails, fall back to reference equality\n return a === b\n }\n}\n\n/**\n * Create a custom equality function based on a selector\n */\nexport const createSelectorEquals = <T, K>(\n selector: (value: T) => K,\n equalsFn: EqualityFunction<K> = defaultEquals\n): EqualityFunction<T> => {\n return (a: T, b: T): boolean => {\n return equalsFn(selector(a), selector(b))\n }\n}\n\n/**\n * Create an array equality function with custom element comparison\n */\nexport const createArrayEquals = <T>(\n elementEquals: EqualityFunction<T> = defaultEquals\n): EqualityFunction<T[]> => {\n return (a: T[], b: T[]): boolean => {\n if (a === b) return true\n if (a.length !== b.length) return false\n\n return a.every((item, index) => elementEquals(item, b[index]))\n }\n}\n\n/**\n * Create an object equality function with custom property comparison\n */\nexport const createObjectEquals = <T extends Record<string, any>>(\n propertyEquals: EqualityFunction<any> = defaultEquals\n): EqualityFunction<T> => {\n return (a: T, b: T): boolean => {\n if (a === b) return true\n if (a == null || b == null) return false\n\n const keysA = Object.keys(a)\n const keysB = Object.keys(b)\n if (keysA.length !== keysB.length) return false\n\n return keysA.every((key) => propertyEquals(a[key], b[key]))\n }\n}\n\n/**\n * Combine multiple equality functions with AND logic\n */\nexport const combineEquals = <T>(\n ...equalsFunctions: EqualityFunction<T>[]\n): EqualityFunction<T> => {\n return (a: T, b: T): boolean => {\n return equalsFunctions.every((equals) => equals(a, b))\n }\n}\n\n/**\n * Utility to wrap an equality function with debugging\n */\nexport const debugEquals = <T>(\n equalsFn: EqualityFunction<T>,\n debugName?: string\n): EqualityFunction<T> => {\n return (a: T, b: T): boolean => {\n const result = equalsFn(a, b)\n if (process.env.NODE_ENV === 'development') {\n console.log(`[${debugName || 'equals'}]`, { a, b, equal: result })\n }\n return result\n }\n}\n"],"names":["defaultEquals","a","b","deepEquals","arrayA","arrayB","item","index","objA","objB","keysA","keysB","key","shallowEquals","structuralEquals","value","jsonEquals","createSelectorEquals","selector","equalsFn","createArrayEquals","elementEquals","createObjectEquals","propertyEquals","combineEquals","equalsFunctions","equals","debugEquals","debugName","result"],"mappings":"gFAYO,MAAMA,EAAgB,CAAIC,EAAMC,IAAkBD,IAAMC,EAMlDC,EAAa,CAAIF,EAAMC,IAAkB,CACpD,GAAID,IAAMC,EAAG,MAAO,GAEpB,GADID,GAAK,MAAQC,GAAK,MAClB,OAAOD,GAAM,OAAOC,EAAG,MAAO,GAElC,GAAI,OAAOD,GAAM,SAAU,CACzB,GAAI,MAAM,QAAQA,CAAC,IAAM,MAAM,QAAQC,CAAC,EAAG,MAAO,GAElD,GAAI,MAAM,QAAQD,CAAC,EAAG,CACpB,MAAMG,EAASH,EACTI,EAASH,EACf,OAAIE,EAAO,SAAWC,EAAO,OAAe,GACrCD,EAAO,MAAM,CAACE,EAAMC,IAAUJ,EAAWG,EAAMD,EAAOE,CAAK,CAAC,CAAC,CACtE,CAEA,MAAMC,EAAOP,EACPQ,EAAOP,EAEPQ,EAAQ,OAAO,KAAKF,CAAI,EAC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(typeof t == "object") {
5
- if (Array.isArray(t) !== Array.isArray(e)) return !1;
6
- if (Array.isArray(t)) {
7
- const u = t, i = e;
8
- return u.length !== i.length ? !1 : u.every((c, y) => o(c, i[y]));
9
- }
10
- const r = t, n = e, s = Object.keys(r), f = Object.keys(n);
11
- return s.length !== f.length ? !1 : s.every((u) => o(r[u], n[u]));
12
- }
13
- return !1;
14
- }, a = (t, e) => {
15
- if (t === e) return !0;
16
- if (typeof t != "object" || typeof e != "object" || t == null || e == null) return !1;
17
- const r = t, n = e, s = Object.keys(r), f = Object.keys(n);
18
- return s.length !== f.length ? !1 : s.every((u) => r[u] === n[u]);
19
- }, g = (t, e) => {
20
- if (t === e) return !0;
21
- if (t instanceof Date && e instanceof Date)
22
- return t.getTime() === e.getTime();
23
- if (t instanceof RegExp && e instanceof RegExp)
24
- return t.toString() === e.toString();
25
- if (t instanceof Set && e instanceof Set) {
26
- if (t.size !== e.size) return !1;
27
- for (const r of t)
28
- if (!e.has(r)) return !1;
29
- return !0;
30
- }
31
- if (t instanceof Map && e instanceof Map) {
32
- if (t.size !== e.size) return !1;
33
- for (const [r, n] of t)
34
- if (!e.has(r) || e.get(r) !== n) return !1;
35
- return !0;
36
- }
37
- return o(t, e);
38
- }, j = (t, e) => {
39
- if (t === e) return !0;
40
- try {
41
- return JSON.stringify(t) === JSON.stringify(e);
42
- } catch {
43
- return t === e;
44
- }
45
- }, h = (t, e = l) => (r, n) => e(t(r), t(n)), E = (t = l) => (e, r) => e === r ? !0 : e.length !== r.length ? !1 : e.every((n, s) => t(n, r[s])), p = (t = l) => (e, r) => {
46
- if (e === r) return !0;
47
- if (e == null || r == null) return !1;
48
- const n = Object.keys(e), s = Object.keys(r);
49
- return n.length !== s.length ? !1 : n.every((f) => t(e[f], r[f]));
50
- }, A = (...t) => (e, r) => t.every((n) => n(e, r)), q = (t, e) => (r, n) => {
51
- const s = t(r, n);
52
- return process.env.NODE_ENV === "development" && console.log(`[${e || "equals"}]`, { a: r, b: n, equal: s }), s;
53
- };
54
- export {
55
- A as combineEquals,
56
- E as createArrayEquals,
57
- p as createObjectEquals,
58
- h as createSelectorEquals,
59
- q as debugEquals,
60
- o as deepEquals,
61
- l as defaultEquals,
62
- j as jsonEquals,
63
- a as shallowEquals,
64
- g as structuralEquals
65
- };
66
- //# sourceMappingURL=equality.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"equality.js","sources":["../../src/reactive/equality.ts"],"sourcesContent":["/**\n * Equality Functions for Reactive System\n *\n * Provides various equality comparison functions for signal updates\n * including deep, shallow, and custom equality checking.\n */\n\nexport type EqualityFunction<T> = (a: T, b: T) => boolean\n\n/**\n * Default reference equality (===)\n */\nexport const defaultEquals = <T>(a: T, b: T): boolean => a === b\n\n/**\n * Deep equality comparison for objects and arrays\n * Recursively compares all properties and array elements\n */\nexport const deepEquals = <T>(a: T, b: T): boolean => {\n if (a === b) return true\n if (a == null || b == null) return false\n if (typeof a !== typeof b) return false\n\n if (typeof a === 'object') {\n if (Array.isArray(a) !== Array.isArray(b)) return false\n\n if (Array.isArray(a)) {\n const arrayA = a as unknown as any[]\n const arrayB = b as unknown as any[]\n if (arrayA.length !== arrayB.length) return false\n return arrayA.every((item, index) => deepEquals(item, arrayB[index]))\n }\n\n const objA = a as Record<string, any>\n const objB = b as Record<string, any>\n\n const keysA = Object.keys(objA)\n const keysB = Object.keys(objB)\n if (keysA.length !== keysB.length) return false\n\n return keysA.every((key) => deepEquals(objA[key], objB[key]))\n }\n\n return false\n}\n\n/**\n * Shallow equality comparison for objects\n * Compares only the top-level properties with reference equality\n */\nexport const shallowEquals = <T>(a: T, b: T): boolean => {\n if (a === b) return true\n if (typeof a !== 'object' || typeof b !== 'object') return false\n if (a == null || b == null) return false\n\n const objA = a as Record<string, any>\n const objB = b as Record<string, any>\n\n const keysA = Object.keys(objA)\n const keysB = Object.keys(objB)\n if (keysA.length !== keysB.length) return false\n\n return keysA.every((key) => objA[key] === objB[key])\n}\n\n/**\n * Structural equality for specific data types\n */\nexport const structuralEquals = <T>(a: T, b: T): boolean => {\n if (a === b) return true\n\n // Handle Date objects\n if (a instanceof Date && b instanceof Date) {\n return a.getTime() === b.getTime()\n }\n\n // Handle RegExp objects\n if (a instanceof RegExp && b instanceof RegExp) {\n return a.toString() === b.toString()\n }\n\n // Handle Set objects\n if (a instanceof Set && b instanceof Set) {\n if (a.size !== b.size) return false\n for (const item of a) {\n if (!b.has(item)) return false\n }\n return true\n }\n\n // Handle Map objects\n if (a instanceof Map && b instanceof Map) {\n if (a.size !== b.size) return false\n for (const [key, value] of a) {\n if (!b.has(key) || b.get(key) !== value) return false\n }\n return true\n }\n\n // Fall back to deep equals for other objects\n return deepEquals(a, b)\n}\n\n/**\n * JSON-based equality (serializes and compares)\n * Useful for complex nested structures but slower\n */\nexport const jsonEquals = <T>(a: T, b: T): boolean => {\n if (a === b) return true\n\n try {\n return JSON.stringify(a) === JSON.stringify(b)\n } catch {\n // If serialization fails, fall back to reference equality\n return a === b\n }\n}\n\n/**\n * Create a custom equality function based on a selector\n */\nexport const createSelectorEquals = <T, K>(\n selector: (value: T) => K,\n equalsFn: EqualityFunction<K> = defaultEquals\n): EqualityFunction<T> => {\n return (a: T, b: T): boolean => {\n return equalsFn(selector(a), selector(b))\n }\n}\n\n/**\n * Create an array equality function with custom element comparison\n */\nexport const createArrayEquals = <T>(\n elementEquals: EqualityFunction<T> = defaultEquals\n): EqualityFunction<T[]> => {\n return (a: T[], b: T[]): boolean => {\n if (a === b) return true\n if (a.length !== b.length) return false\n\n return a.every((item, index) => elementEquals(item, b[index]))\n }\n}\n\n/**\n * Create an object equality function with custom property comparison\n */\nexport const createObjectEquals = <T extends Record<string, any>>(\n propertyEquals: EqualityFunction<any> = defaultEquals\n): EqualityFunction<T> => {\n return (a: T, b: T): boolean => {\n if (a === b) return true\n if (a == null || b == null) return false\n\n const keysA = Object.keys(a)\n const keysB = Object.keys(b)\n if (keysA.length !== keysB.length) return false\n\n return keysA.every((key) => propertyEquals(a[key], b[key]))\n }\n}\n\n/**\n * Combine multiple equality functions with AND logic\n */\nexport const combineEquals = <T>(\n ...equalsFunctions: EqualityFunction<T>[]\n): EqualityFunction<T> => {\n return (a: T, b: T): boolean => {\n return equalsFunctions.every((equals) => equals(a, b))\n }\n}\n\n/**\n * Utility to wrap an equality function with debugging\n */\nexport const debugEquals = <T>(\n equalsFn: EqualityFunction<T>,\n debugName?: string\n): EqualityFunction<T> => {\n return (a: T, b: T): boolean => {\n const result = equalsFn(a, b)\n if (process.env.NODE_ENV === 'development') {\n console.log(`[${debugName || 'equals'}]`, { a, b, equal: result })\n }\n return result\n }\n}\n"],"names":["defaultEquals","a","b","deepEquals","arrayA","arrayB","item","index","objA","objB","keysA","keysB","key","shallowEquals","structuralEquals","value","jsonEquals","createSelectorEquals","selector","equalsFn","createArrayEquals","elementEquals","createObjectEquals","propertyEquals","combineEquals","equalsFunctions","equals","debugEquals","debugName","result"],"mappings":"AAYO,MAAMA,IAAgB,CAAIC,GAAMC,MAAkBD,MAAMC,GAMlDC,IAAa,CAAIF,GAAMC,MAAkB;AACpD,MAAID,MAAMC,EAAG,QAAO;AAEpB,MADID,KAAK,QAAQC,KAAK,QAClB,OAAOD,KAAM,OAAOC,EAAG,QAAO;AAElC,MAAI,OAAOD,KAAM,UAAU;AACzB,QAAI,MAAM,QAAQA,CAAC,MAAM,MAAM,QAAQC,CAAC,EAAG,QAAO;AAElD,QAAI,MAAM,QAAQD,CAAC,GAAG;AACpB,YAAMG,IAASH,GACTI,IAASH;AACf,aAAIE,EAAO,WAAWC,EAAO,SAAe,KACrCD,EAAO,MAAM,CAACE,GAAMC,MAAUJ,EAAWG,GAAMD,EAAOE,CAAK,CAAC,CAAC;AAAA,IACtE;AAEA,UAAMC,IAAOP,GACPQ,IAAOP,GAEPQ,IAAQ,OAAO,KAAKF,CAAI,GACxBG,IAAQ,OAAO,KAAKF,CAAI;AAC9B,WAAIC,EAAM,WAAWC,EAAM,SAAe,KAEnCD,EAAM,MAAM,CAACE,M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KAAK,UAAUC,CAAC;AAAA,EAC/C,QAAQ;AAEN,WAAOD,MAAMC;AAAA,EACf;AACF,GAKae,IAAuB,CAClCC,GACAC,IAAgCnB,MAEzB,CAACC,GAAMC,MACLiB,EAASD,EAASjB,CAAC,GAAGiB,EAAShB,CAAC,CAAC,GAO/BkB,IAAoB,CAC/BC,IAAqCrB,MAE9B,CAACC,GAAQC,MACVD,MAAMC,IAAU,KAChBD,EAAE,WAAWC,EAAE,SAAe,KAE3BD,EAAE,MAAM,CAACK,GAAMC,MAAUc,EAAcf,GAAMJ,EAAEK,CAAK,CAAC,CAAC,GAOpDe,IAAqB,CAChCC,IAAwCvB,MAEjC,CAACC,GAAMC,MAAkB;AAC9B,MAAID,MAAMC,EAAG,QAAO;AACpB,MAAID,KAAK,QAAQC,KAAK,KAAM,QAAO;AAEnC,QAAMQ,IAAQ,OAAO,KAAKT,CAAC,GACrBU,IAAQ,OAAO,KAAKT,CAAC;AAC3B,SAAIQ,EAAM,WAAWC,EAAM,SAAe,KAEnCD,EAAM,MAAM,CAACE,MAAQW,EAAetB,EAAEW,CAAG,GAAGV,EAAEU,CAAG,CAAC,CAAC;AAC5D,GAMWY,IAAgB,IACxBC,MAEI,CAACxB,GAAMC,MACLuB,EAAgB,MAAM,CAACC,MAAWA,EAAOzB,GAAGC,CAAC,CAAC,GAO5CyB,IAAc,CACzBR,GACAS,MAEO,CAAC3B,GAAMC,MAAkB;AAC9B,QAAM2B,IAASV,EAASlB,GAAGC,CAAC;AAC5B,SAAI,QAAQ,IAAI,aAAa,iBAC3B,QAAQ,IAAI,IAAI0B,KAAa,QAAQ,KAAK,EAAE,GAAA3B,GAAG,GAAAC,GAAG,OAAO2B,EAAA,CAAQ,GAE5DA;AACT;"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./cleanup.cjs"),g=require("./computed.cjs"),i=require("./context.cjs"),s=require("./effect.cjs"),a=require("./enhanced-effect.cjs"),c=require("./enhanced-signal.cjs"),t=require("./equality.cjs"),e=require("./migration.cjs"),l=require("./ownership.cjs"),n=require("./scheduler.cjs"),o=require("./signal.cjs"),u=require("./theme.cjs"),f=require("./unified-scheduler.cjs");exports.createCleanupGroup=r.createCleanupGroup;exports.createEventListener=r.createEventListener;exports.createInterval=r.createInterval;exports.createResource=r.createResource;exports.createTimeout=r.createTimeout;exports.dispose=r.dispose;exports.onCleanup=r.onCleanup;exports.createComputed=g.createComputed;exports.createMemo=g.createMemo;exports.isComputed=g.isComputed;exports.batch=i.batch;exports.createRoot=i.createRoot;exports.getOwner=i.getOwner;exports.getReactiveContext=i.getReactiveContext;exports.runWithOwner=i.runWithOwner;exports.untrack=i.untrack;exports.createEffect=s.createEffect;exports.createOnceEffect=s.createOnceEffect;exports.createRenderEffect=s.createRenderEffect;exports.createSyncEffect=s.createSyncEffect;exports.createEffectBatch=a.createEffectBatch;exports.createEnhancedEffect=a.createEnhancedEffect;exports.createHighPriorityEffect=a.createHighPriorityEffect;exports.createLowPriorityEffect=a.createLowPriorityEffect;exports.createResilientEffect=a.createResilientEffect;exports.createWatchEffect=a.createWatchEffect;exports.flushEffectUpdates=a.flushEffectUpdates;exports.getEffectPerformanceMetrics=a.getEffectPerformanceMetrics;exports.createDeepSignal=c.createDeepSignal;exports.createEnhancedSignal=c.createEnhancedSignal;exports.createShallowSignal=c.createShallowSignal;exports.flushSignalUpdates=c.flushSignalUpdates;exports.getEnhancedSignalImpl=c.getEnhancedSignalImpl;exports.getSignalPerformanceMetrics=c.getSignalPerformanceMetrics;exports.isEnhancedSignal=c.isEnhancedSignal;exports.combineEquals=t.combineEquals;exports.createArrayEquals=t.createArrayEquals;exports.createObjectEquals=t.createObjectEquals;exports.createSelectorEquals=t.createSelectorEquals;exports.debugEquals=t.debugEquals;exports.deepEquals=t.deepEquals;exports.defaultEquals=t.defaultEquals;exports.jsonEquals=t.jsonEquals;exports.shallowEquals=t.shallowEquals;exports.structuralEquals=t.structuralEquals;exports.analyzeReactivePerformance=e.analyzeReactivePerformance;exports.analyzeSignalUsage=e.analyzeSignalUsage;exports.createLegacySignal=e.createLegacySignal;exports.createMigrationReport=e.createMigrationReport;exports.enableReactiveDebugging=e.enableReactiveDebugging;exports.getMigrationStats=e.getMigrationStats;exports.migrateBatch=e.migrateBatch;exports.migrateReactiveCode=e.migrateReactiveCode;exports.migrateToEnhancedSignal=e.migrateToEnhancedSignal;exports.resetMigrationStats=e.resetMigrationStats;exports.setMigrationWarnings=e.setMigrationWarnings;exports.createDetachedRoot=l.createDetachedRoot;exports.getOwnerChain=l.getOwnerChain;exports.getRootOwner=l.getRootOwner;exports.isReactiveContext=l.isReactiveContext;exports.runOutsideReactiveContext=l.runOutsideReactiveContext;exports.TaskPriority=n.TaskPriority;exports.enableScheduling=n.enableScheduling;exports.getScheduler=n.getScheduler;exports.scheduleIdle=n.scheduleIdle;exports.scheduleUpdate=n.scheduleUpdate;exports.scheduleWithPriority=n.scheduleWithPriority;exports.setScheduler=n.setScheduler;exports.createSignal=o.createSignal;exports.flushSync=o.flushSync;exports.getSignalImpl=o.getSignalImpl;exports.isSignal=o.isSignal;exports.detectSystemTheme=u.detectSystemTheme;exports.getCurrentTheme=u.getCurrentTheme;exports.getThemeSignal=u.getThemeSignal;exports.setTheme=u.setTheme;exports.ReactiveError=f.ReactiveError;exports.ReactiveScheduler=f.ReactiveScheduler;exports.UpdatePriority=f.UpdatePriority;
2
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}