@bleedingdev/tanstack-redact 0.0.0-bootstrap → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (476) hide show
  1. package/LICENSE +1 -1
  2. package/dist/cloudflare/index.d.ts +6 -0
  3. package/dist/cloudflare/index.js +39 -0
  4. package/dist/cloudflare/index.js.map +7 -0
  5. package/dist/core/attributes.d.ts +4 -0
  6. package/dist/core/attributes.js +30 -0
  7. package/dist/core/attributes.js.map +7 -0
  8. package/dist/core/browser.d.ts +9 -0
  9. package/dist/core/browser.js +32 -0
  10. package/dist/core/browser.js.map +7 -0
  11. package/dist/core/class-props.d.ts +1 -0
  12. package/dist/core/class-props.js +15 -0
  13. package/dist/core/class-props.js.map +7 -0
  14. package/dist/core/devtools.d.ts +26 -0
  15. package/dist/core/devtools.js +70 -0
  16. package/dist/core/devtools.js.map +7 -0
  17. package/dist/core/functions.d.ts +6 -0
  18. package/dist/core/functions.js +14 -0
  19. package/dist/core/functions.js.map +7 -0
  20. package/dist/core/index.d.ts +2 -0
  21. package/dist/core/index.js +3 -0
  22. package/dist/core/index.js.map +7 -0
  23. package/dist/core/internal.d.ts +103 -0
  24. package/dist/core/internal.js +43 -0
  25. package/dist/core/internal.js.map +7 -0
  26. package/dist/core/resource-hints.d.ts +7 -0
  27. package/dist/core/resource-hints.js +20 -0
  28. package/dist/core/resource-hints.js.map +7 -0
  29. package/dist/core/types.d.ts +23 -0
  30. package/dist/core/types.js +8 -0
  31. package/dist/core/types.js.map +7 -0
  32. package/dist/core/unitless-style.d.ts +1 -0
  33. package/dist/core/unitless-style.js +5 -0
  34. package/dist/core/unitless-style.js.map +7 -0
  35. package/dist/dom/_all.d.ts +27 -0
  36. package/dist/dom/_all.js +51 -0
  37. package/dist/dom/_all.js.map +7 -0
  38. package/dist/dom/client.d.ts +9 -0
  39. package/dist/dom/client.js +13 -0
  40. package/dist/dom/client.js.map +7 -0
  41. package/dist/dom/commit.d.ts +27 -0
  42. package/dist/dom/commit.js +237 -0
  43. package/dist/dom/commit.js.map +7 -0
  44. package/dist/dom/devtools-effects.d.ts +8 -0
  45. package/dist/dom/devtools-effects.js +80 -0
  46. package/dist/dom/devtools-effects.js.map +7 -0
  47. package/dist/dom/devtools.d.ts +33 -0
  48. package/dist/dom/devtools.js +635 -0
  49. package/dist/dom/devtools.js.map +7 -0
  50. package/dist/dom/dispatcher.d.ts +4 -0
  51. package/dist/dom/dispatcher.js +437 -0
  52. package/dist/dom/dispatcher.js.map +7 -0
  53. package/dist/dom/document-metadata.d.ts +7 -0
  54. package/dist/dom/document-metadata.js +44 -0
  55. package/dist/dom/document-metadata.js.map +7 -0
  56. package/dist/dom/dom.d.ts +11 -0
  57. package/dist/dom/dom.js +165 -0
  58. package/dist/dom/dom.js.map +7 -0
  59. package/dist/dom/error-info.d.ts +2 -0
  60. package/dist/dom/error-info.js +19 -0
  61. package/dist/dom/error-info.js.map +7 -0
  62. package/dist/dom/event-replay.d.ts +13 -0
  63. package/dist/dom/event-replay.js +24 -0
  64. package/dist/dom/event-replay.js.map +7 -0
  65. package/dist/dom/features/activity/full.d.ts +1 -0
  66. package/dist/dom/features/activity/full.js +140 -0
  67. package/dist/dom/features/activity/full.js.map +7 -0
  68. package/dist/dom/features/activity/index.d.ts +1 -0
  69. package/dist/dom/features/activity/index.js +2 -0
  70. package/dist/dom/features/activity/index.js.map +7 -0
  71. package/dist/dom/features/activity/stub.d.ts +1 -0
  72. package/dist/dom/features/activity/stub.js +10 -0
  73. package/dist/dom/features/activity/stub.js.map +7 -0
  74. package/dist/dom/features/class/full.d.ts +1 -0
  75. package/dist/dom/features/class/full.js +208 -0
  76. package/dist/dom/features/class/full.js.map +7 -0
  77. package/dist/dom/features/class/index.d.ts +1 -0
  78. package/dist/dom/features/class/index.js +2 -0
  79. package/dist/dom/features/class/index.js.map +7 -0
  80. package/dist/dom/features/class/stub.d.ts +1 -0
  81. package/dist/dom/features/class/stub.js +46 -0
  82. package/dist/dom/features/class/stub.js.map +7 -0
  83. package/dist/dom/features/context/full.d.ts +4 -0
  84. package/dist/dom/features/context/full.js +103 -0
  85. package/dist/dom/features/context/full.js.map +7 -0
  86. package/dist/dom/features/context/index.d.ts +1 -0
  87. package/dist/dom/features/context/index.js +2 -0
  88. package/dist/dom/features/context/index.js.map +7 -0
  89. package/dist/dom/features/context/stub.d.ts +4 -0
  90. package/dist/dom/features/context/stub.js +21 -0
  91. package/dist/dom/features/context/stub.js.map +7 -0
  92. package/dist/dom/features/forward-ref/full.d.ts +1 -0
  93. package/dist/dom/features/forward-ref/full.js +9 -0
  94. package/dist/dom/features/forward-ref/full.js.map +7 -0
  95. package/dist/dom/features/forward-ref/index.d.ts +1 -0
  96. package/dist/dom/features/forward-ref/index.js +2 -0
  97. package/dist/dom/features/forward-ref/index.js.map +7 -0
  98. package/dist/dom/features/forward-ref/stub.d.ts +1 -0
  99. package/dist/dom/features/forward-ref/stub.js +9 -0
  100. package/dist/dom/features/forward-ref/stub.js.map +7 -0
  101. package/dist/dom/features/fragment-refs/index.d.ts +1 -0
  102. package/dist/dom/features/fragment-refs/index.js +9 -0
  103. package/dist/dom/features/fragment-refs/index.js.map +7 -0
  104. package/dist/dom/features/fragment-refs/stub.d.ts +5 -0
  105. package/dist/dom/features/fragment-refs/stub.js +17 -0
  106. package/dist/dom/features/fragment-refs/stub.js.map +7 -0
  107. package/dist/dom/features/hydration/full.d.ts +68 -0
  108. package/dist/dom/features/hydration/full.js +493 -0
  109. package/dist/dom/features/hydration/full.js.map +7 -0
  110. package/dist/dom/features/hydration/index.d.ts +1 -0
  111. package/dist/dom/features/hydration/index.js +2 -0
  112. package/dist/dom/features/hydration/index.js.map +7 -0
  113. package/dist/dom/features/hydration/stub.d.ts +36 -0
  114. package/dist/dom/features/hydration/stub.js +80 -0
  115. package/dist/dom/features/hydration/stub.js.map +7 -0
  116. package/dist/dom/features/index.d.ts +8 -0
  117. package/dist/dom/features/index.js +9 -0
  118. package/dist/dom/features/index.js.map +7 -0
  119. package/dist/dom/features/lazy/full.d.ts +1 -0
  120. package/dist/dom/features/lazy/full.js +23 -0
  121. package/dist/dom/features/lazy/full.js.map +7 -0
  122. package/dist/dom/features/lazy/index.d.ts +1 -0
  123. package/dist/dom/features/lazy/index.js +2 -0
  124. package/dist/dom/features/lazy/index.js.map +7 -0
  125. package/dist/dom/features/lazy/stub.d.ts +1 -0
  126. package/dist/dom/features/lazy/stub.js +19 -0
  127. package/dist/dom/features/lazy/stub.js.map +7 -0
  128. package/dist/dom/features/memo/full.d.ts +1 -0
  129. package/dist/dom/features/memo/full.js +34 -0
  130. package/dist/dom/features/memo/full.js.map +7 -0
  131. package/dist/dom/features/memo/index.d.ts +1 -0
  132. package/dist/dom/features/memo/index.js +2 -0
  133. package/dist/dom/features/memo/index.js.map +7 -0
  134. package/dist/dom/features/memo/stub.d.ts +1 -0
  135. package/dist/dom/features/memo/stub.js +9 -0
  136. package/dist/dom/features/memo/stub.js.map +7 -0
  137. package/dist/dom/features/portal/full.d.ts +1 -0
  138. package/dist/dom/features/portal/full.js +11 -0
  139. package/dist/dom/features/portal/full.js.map +7 -0
  140. package/dist/dom/features/portal/index.d.ts +1 -0
  141. package/dist/dom/features/portal/index.js +2 -0
  142. package/dist/dom/features/portal/index.js.map +7 -0
  143. package/dist/dom/features/portal/stub.d.ts +1 -0
  144. package/dist/dom/features/portal/stub.js +5 -0
  145. package/dist/dom/features/portal/stub.js.map +7 -0
  146. package/dist/dom/features/suspense/full.d.ts +1 -0
  147. package/dist/dom/features/suspense/full.js +389 -0
  148. package/dist/dom/features/suspense/full.js.map +7 -0
  149. package/dist/dom/features/suspense/index.d.ts +1 -0
  150. package/dist/dom/features/suspense/index.js +2 -0
  151. package/dist/dom/features/suspense/index.js.map +7 -0
  152. package/dist/dom/features/suspense/stub.d.ts +1 -0
  153. package/dist/dom/features/suspense/stub.js +4 -0
  154. package/dist/dom/features/suspense/stub.js.map +7 -0
  155. package/dist/dom/features/suspense-runtime/index.d.ts +1 -0
  156. package/dist/dom/features/suspense-runtime/index.js +2 -0
  157. package/dist/dom/features/suspense-runtime/index.js.map +7 -0
  158. package/dist/dom/features/suspense-runtime/stub.d.ts +1 -0
  159. package/dist/dom/features/suspense-runtime/stub.js +11 -0
  160. package/dist/dom/features/suspense-runtime/stub.js.map +7 -0
  161. package/dist/dom/features/view-transition/full.d.ts +7 -0
  162. package/dist/dom/features/view-transition/full.js +324 -0
  163. package/dist/dom/features/view-transition/full.js.map +7 -0
  164. package/dist/dom/features/view-transition/index.d.ts +1 -0
  165. package/dist/dom/features/view-transition/index.js +2 -0
  166. package/dist/dom/features/view-transition/index.js.map +7 -0
  167. package/dist/dom/features/view-transition/resources.d.ts +11 -0
  168. package/dist/dom/features/view-transition/resources.js +117 -0
  169. package/dist/dom/features/view-transition/resources.js.map +7 -0
  170. package/dist/dom/features/view-transition/stub.d.ts +7 -0
  171. package/dist/dom/features/view-transition/stub.js +21 -0
  172. package/dist/dom/features/view-transition/stub.js.map +7 -0
  173. package/dist/dom/features/view-transition/visual.d.ts +14 -0
  174. package/dist/dom/features/view-transition/visual.js +404 -0
  175. package/dist/dom/features/view-transition/visual.js.map +7 -0
  176. package/dist/dom/form-actions.d.ts +4 -0
  177. package/dist/dom/form-actions.js +74 -0
  178. package/dist/dom/form-actions.js.map +7 -0
  179. package/dist/dom/form-controls.d.ts +3 -0
  180. package/dist/dom/form-controls.js +91 -0
  181. package/dist/dom/form-controls.js.map +7 -0
  182. package/dist/dom/fragment-instance.d.ts +33 -0
  183. package/dist/dom/fragment-instance.js +449 -0
  184. package/dist/dom/fragment-instance.js.map +7 -0
  185. package/dist/dom/index.d.ts +61 -0
  186. package/dist/dom/index.js +71 -0
  187. package/dist/dom/index.js.map +7 -0
  188. package/dist/dom/portal.d.ts +2 -0
  189. package/dist/dom/portal.js +14 -0
  190. package/dist/dom/portal.js.map +7 -0
  191. package/dist/dom/react-ids.d.ts +6 -0
  192. package/dist/dom/react-ids.js +38 -0
  193. package/dist/dom/react-ids.js.map +7 -0
  194. package/dist/dom/reconcile.d.ts +86 -0
  195. package/dist/dom/reconcile.js +1305 -0
  196. package/dist/dom/reconcile.js.map +7 -0
  197. package/dist/dom/refresh.d.ts +12 -0
  198. package/dist/dom/refresh.js +174 -0
  199. package/dist/dom/refresh.js.map +7 -0
  200. package/dist/dom/resource-hints.d.ts +6 -0
  201. package/dist/dom/resource-hints.js +107 -0
  202. package/dist/dom/resource-hints.js.map +7 -0
  203. package/dist/dom/resource-store.d.ts +13 -0
  204. package/dist/dom/resource-store.js +47 -0
  205. package/dist/dom/resource-store.js.map +7 -0
  206. package/dist/dom/resources.d.ts +1 -0
  207. package/dist/dom/resources.js +46 -0
  208. package/dist/dom/resources.js.map +7 -0
  209. package/dist/dom/retained-effects.d.ts +6 -0
  210. package/dist/dom/retained-effects.js +67 -0
  211. package/dist/dom/retained-effects.js.map +7 -0
  212. package/dist/dom/root-internal.d.ts +11 -0
  213. package/dist/dom/root-internal.js +35 -0
  214. package/dist/dom/root-internal.js.map +7 -0
  215. package/dist/dom/root.d.ts +17 -0
  216. package/dist/dom/root.js +38 -0
  217. package/dist/dom/root.js.map +7 -0
  218. package/dist/dom/synthetic-event.d.ts +1 -0
  219. package/dist/dom/synthetic-event.js +35 -0
  220. package/dist/dom/synthetic-event.js.map +7 -0
  221. package/dist/dom/test-utils.d.ts +1 -0
  222. package/dist/dom/test-utils.js +5 -0
  223. package/dist/dom/test-utils.js.map +7 -0
  224. package/dist/dom/transitions.d.ts +9 -0
  225. package/dist/dom/transitions.js +147 -0
  226. package/dist/dom/transitions.js.map +7 -0
  227. package/dist/dom/tree.d.ts +5 -0
  228. package/dist/dom/tree.js +62 -0
  229. package/dist/dom/tree.js.map +7 -0
  230. package/dist/dom/walk.d.ts +2 -0
  231. package/dist/dom/walk.js +14 -0
  232. package/dist/dom/walk.js.map +7 -0
  233. package/dist/next/client.d.ts +9 -0
  234. package/dist/next/client.js +14 -0
  235. package/dist/next/client.js.map +7 -0
  236. package/dist/next/dev-cache-loader.cjs +13 -0
  237. package/dist/next/index.d.ts +2 -0
  238. package/dist/next/index.js +97 -0
  239. package/dist/next/index.js.map +7 -0
  240. package/dist/next/loader.cjs +10 -0
  241. package/dist/next/react.d.ts +71 -0
  242. package/dist/next/react.js +9 -0
  243. package/dist/next/react.js.map +7 -0
  244. package/dist/react/act.d.ts +3 -0
  245. package/dist/react/act.js +124 -0
  246. package/dist/react/act.js.map +7 -0
  247. package/dist/react/action-scope.d.ts +17 -0
  248. package/dist/react/action-scope.js +60 -0
  249. package/dist/react/action-scope.js.map +7 -0
  250. package/dist/react/activity.d.ts +7 -0
  251. package/dist/react/activity.js +7 -0
  252. package/dist/react/activity.js.map +7 -0
  253. package/dist/react/children.d.ts +8 -0
  254. package/dist/react/children.js +76 -0
  255. package/dist/react/children.js.map +7 -0
  256. package/dist/react/class.d.ts +36 -0
  257. package/dist/react/class.js +39 -0
  258. package/dist/react/class.js.map +7 -0
  259. package/dist/react/compiler-runtime.d.ts +1 -0
  260. package/dist/react/compiler-runtime.js +9 -0
  261. package/dist/react/compiler-runtime.js.map +7 -0
  262. package/dist/react/context.d.ts +32 -0
  263. package/dist/react/context.js +25 -0
  264. package/dist/react/context.js.map +7 -0
  265. package/dist/react/element.d.ts +13 -0
  266. package/dist/react/element.js +70 -0
  267. package/dist/react/element.js.map +7 -0
  268. package/dist/react/form-state.d.ts +26 -0
  269. package/dist/react/form-state.js +30 -0
  270. package/dist/react/form-state.js.map +7 -0
  271. package/dist/react/hooks.d.ts +67 -0
  272. package/dist/react/hooks.js +165 -0
  273. package/dist/react/hooks.js.map +7 -0
  274. package/dist/react/index.d.ts +99 -0
  275. package/dist/react/index.js +143 -0
  276. package/dist/react/index.js.map +7 -0
  277. package/dist/react/jsx-runtime.d.ts +24 -0
  278. package/dist/react/jsx-runtime.js +37 -0
  279. package/dist/react/jsx-runtime.js.map +7 -0
  280. package/dist/react/memo.d.ts +20 -0
  281. package/dist/react/memo.js +27 -0
  282. package/dist/react/memo.js.map +7 -0
  283. package/dist/react/portal.d.ts +1 -0
  284. package/dist/react/portal.js +5 -0
  285. package/dist/react/portal.js.map +7 -0
  286. package/dist/react/shared-internals.d.ts +52 -0
  287. package/dist/react/shared-internals.js +22 -0
  288. package/dist/react/shared-internals.js.map +7 -0
  289. package/dist/react/suspense.d.ts +15 -0
  290. package/dist/react/suspense.js +15 -0
  291. package/dist/react/suspense.js.map +7 -0
  292. package/dist/react/thenable.d.ts +1 -0
  293. package/dist/react/thenable.js +25 -0
  294. package/dist/react/thenable.js.map +7 -0
  295. package/dist/react/view-transition.d.ts +32 -0
  296. package/dist/react/view-transition.js +12 -0
  297. package/dist/react/view-transition.js.map +7 -0
  298. package/dist/scheduler/index.d.ts +44 -0
  299. package/dist/scheduler/index.js +109 -0
  300. package/dist/scheduler/index.js.map +7 -0
  301. package/dist/server/bootstrap-script.d.ts +3 -0
  302. package/dist/server/bootstrap-script.js +17 -0
  303. package/dist/server/bootstrap-script.js.map +7 -0
  304. package/dist/server/dispatcher.d.ts +57 -0
  305. package/dist/server/dispatcher.js +157 -0
  306. package/dist/server/dispatcher.js.map +7 -0
  307. package/dist/server/escape.d.ts +6 -0
  308. package/dist/server/escape.js +75 -0
  309. package/dist/server/escape.js.map +7 -0
  310. package/dist/server/index.d.ts +16 -0
  311. package/dist/server/index.js +25 -0
  312. package/dist/server/index.js.map +7 -0
  313. package/dist/server/insertion-context.d.ts +3 -0
  314. package/dist/server/insertion-context.js +32 -0
  315. package/dist/server/renderToString.d.ts +7 -0
  316. package/dist/server/renderToString.js +33 -0
  317. package/dist/server/renderToString.js.map +7 -0
  318. package/dist/server/resource-hints.d.ts +22 -0
  319. package/dist/server/resource-hints.js +168 -0
  320. package/dist/server/resource-hints.js.map +7 -0
  321. package/dist/server/stream-ids.d.ts +3 -0
  322. package/dist/server/stream-ids.js +8 -0
  323. package/dist/server/stream.d.ts +61 -0
  324. package/dist/server/stream.js +418 -0
  325. package/dist/server/stream.js.map +7 -0
  326. package/dist/server/walk.d.ts +58 -0
  327. package/dist/server/walk.js +378 -0
  328. package/dist/server/walk.js.map +7 -0
  329. package/dist/vinext/compatibility.d.ts +23 -0
  330. package/dist/vinext/compatibility.js +127 -0
  331. package/dist/vinext/compatibility.js.map +7 -0
  332. package/dist/vinext/flight-timing.d.ts +1 -0
  333. package/dist/vinext/flight-timing.js +46 -0
  334. package/dist/vinext/flight-timing.js.map +7 -0
  335. package/dist/vinext/index.d.ts +5 -0
  336. package/dist/vinext/index.js +50 -0
  337. package/dist/vinext/index.js.map +7 -0
  338. package/dist/vite/index.d.ts +102 -0
  339. package/dist/vite/index.js +291 -0
  340. package/dist/vite/index.js.map +7 -0
  341. package/dist/vite/react18.d.ts +4 -0
  342. package/dist/vite/react18.js +74 -0
  343. package/dist/vite/react18.js.map +7 -0
  344. package/package.json +113 -8
  345. package/src/cloudflare/index.ts +44 -0
  346. package/src/core/attributes.ts +20 -0
  347. package/src/core/browser.ts +34 -0
  348. package/src/core/class-props.ts +12 -0
  349. package/src/core/devtools.ts +69 -0
  350. package/src/core/functions.ts +11 -0
  351. package/src/core/index.ts +2 -0
  352. package/src/core/internal.ts +123 -0
  353. package/src/core/resource-hints.ts +39 -0
  354. package/src/core/types.ts +39 -0
  355. package/src/core/unitless-style.ts +1 -0
  356. package/src/dom/_all.ts +46 -0
  357. package/src/dom/client.ts +17 -0
  358. package/src/dom/commit.ts +223 -0
  359. package/src/dom/devtools-effects.ts +78 -0
  360. package/src/dom/devtools.ts +527 -0
  361. package/src/dom/dispatcher.ts +476 -0
  362. package/src/dom/document-metadata.ts +41 -0
  363. package/src/dom/dom.ts +181 -0
  364. package/src/dom/error-info.ts +20 -0
  365. package/src/dom/event-replay.ts +39 -0
  366. package/src/dom/features/activity/full.ts +150 -0
  367. package/src/dom/features/activity/index.ts +1 -0
  368. package/src/dom/features/activity/stub.ts +12 -0
  369. package/src/dom/features/class/full.ts +202 -0
  370. package/src/dom/features/class/index.ts +1 -0
  371. package/src/dom/features/class/stub.ts +58 -0
  372. package/src/dom/features/context/full.ts +107 -0
  373. package/src/dom/features/context/index.ts +1 -0
  374. package/src/dom/features/context/stub.ts +26 -0
  375. package/src/dom/features/forward-ref/full.ts +9 -0
  376. package/src/dom/features/forward-ref/index.ts +1 -0
  377. package/src/dom/features/forward-ref/stub.ts +15 -0
  378. package/src/dom/features/fragment-refs/index.ts +1 -0
  379. package/src/dom/features/fragment-refs/stub.ts +6 -0
  380. package/src/dom/features/hydration/full.ts +563 -0
  381. package/src/dom/features/hydration/index.ts +1 -0
  382. package/src/dom/features/hydration/stub.ts +86 -0
  383. package/src/dom/features/index.ts +12 -0
  384. package/src/dom/features/lazy/full.ts +27 -0
  385. package/src/dom/features/lazy/index.ts +1 -0
  386. package/src/dom/features/lazy/stub.ts +24 -0
  387. package/src/dom/features/memo/full.ts +39 -0
  388. package/src/dom/features/memo/index.ts +1 -0
  389. package/src/dom/features/memo/stub.ts +13 -0
  390. package/src/dom/features/portal/full.ts +14 -0
  391. package/src/dom/features/portal/index.ts +1 -0
  392. package/src/dom/features/portal/stub.ts +11 -0
  393. package/src/dom/features/suspense/full.ts +469 -0
  394. package/src/dom/features/suspense/index.ts +1 -0
  395. package/src/dom/features/suspense/stub.ts +13 -0
  396. package/src/dom/features/suspense-runtime/index.ts +1 -0
  397. package/src/dom/features/suspense-runtime/stub.ts +1 -0
  398. package/src/dom/features/view-transition/full.ts +292 -0
  399. package/src/dom/features/view-transition/index.ts +1 -0
  400. package/src/dom/features/view-transition/resources.ts +123 -0
  401. package/src/dom/features/view-transition/stub.ts +8 -0
  402. package/src/dom/features/view-transition/visual.ts +454 -0
  403. package/src/dom/form-actions.ts +69 -0
  404. package/src/dom/form-controls.ts +91 -0
  405. package/src/dom/fragment-instance.ts +462 -0
  406. package/src/dom/index.ts +49 -0
  407. package/src/dom/portal.ts +16 -0
  408. package/src/dom/react-ids.ts +36 -0
  409. package/src/dom/reconcile.ts +1423 -0
  410. package/src/dom/refresh.ts +171 -0
  411. package/src/dom/resource-hints.ts +104 -0
  412. package/src/dom/resource-store.ts +50 -0
  413. package/src/dom/resources.ts +47 -0
  414. package/src/dom/retained-effects.ts +57 -0
  415. package/src/dom/root-internal.ts +37 -0
  416. package/src/dom/root.ts +59 -0
  417. package/src/dom/synthetic-event.ts +22 -0
  418. package/src/dom/test-utils.ts +1 -0
  419. package/src/dom/transitions.ts +141 -0
  420. package/src/dom/tree.ts +56 -0
  421. package/src/dom/walk.ts +8 -0
  422. package/src/next/client.ts +10 -0
  423. package/src/next/dev-cache-loader.cjs +13 -0
  424. package/src/next/index.ts +95 -0
  425. package/src/next/loader.cjs +10 -0
  426. package/src/next/react.ts +7 -0
  427. package/src/react/act.ts +105 -0
  428. package/src/react/action-scope.ts +57 -0
  429. package/src/react/activity.ts +10 -0
  430. package/src/react/children.ts +86 -0
  431. package/src/react/class.ts +66 -0
  432. package/src/react/compiler-runtime.ts +8 -0
  433. package/src/react/context.ts +46 -0
  434. package/src/react/element.ts +82 -0
  435. package/src/react/form-state.ts +35 -0
  436. package/src/react/hooks.ts +214 -0
  437. package/src/react/index.ts +91 -0
  438. package/src/react/jsx-runtime.ts +50 -0
  439. package/src/react/memo.ts +42 -0
  440. package/src/react/portal.ts +1 -0
  441. package/src/react/shared-internals.ts +80 -0
  442. package/src/react/suspense.ts +18 -0
  443. package/src/react/thenable.ts +21 -0
  444. package/src/react/view-transition.ts +41 -0
  445. package/src/scheduler/index.ts +124 -0
  446. package/src/server/bootstrap-script.ts +92 -0
  447. package/src/server/dispatcher.ts +168 -0
  448. package/src/server/escape.ts +102 -0
  449. package/src/server/index.ts +26 -0
  450. package/src/server/insertion-context.ts +28 -0
  451. package/src/server/renderToString.ts +35 -0
  452. package/src/server/resource-hints.ts +166 -0
  453. package/src/server/stream-ids.ts +5 -0
  454. package/src/server/stream.ts +525 -0
  455. package/src/server/walk.ts +555 -0
  456. package/src/vinext/compatibility.ts +122 -0
  457. package/src/vinext/flight-timing.ts +37 -0
  458. package/src/vinext/index.ts +47 -0
  459. package/src/vite/index.ts +476 -0
  460. package/src/vite/react18.ts +74 -0
  461. package/vendor/cloudflare-vite-plugin/LICENSE +25 -0
  462. package/vendor/cloudflare-vite-plugin/README.md +9 -0
  463. package/vendor/cloudflare-vite-plugin/dist/chunk-U6NEESU5-BmLHqeIt.mjs +43 -0
  464. package/vendor/cloudflare-vite-plugin/dist/index.d.mts +155 -0
  465. package/vendor/cloudflare-vite-plugin/dist/index.mjs +94700 -0
  466. package/vendor/cloudflare-vite-plugin/dist/open-PCXX3ZDZ-DYH87NhH.mjs +530 -0
  467. package/vendor/cloudflare-vite-plugin/dist/package-4cnqy5mM.mjs +84 -0
  468. package/vendor/cloudflare-vite-plugin/dist/workers/asset-worker/index.js +5996 -0
  469. package/vendor/cloudflare-vite-plugin/dist/workers/router-worker/index.js +6414 -0
  470. package/vendor/cloudflare-vite-plugin/dist/workers/runner-worker/index.js +457 -0
  471. package/vendor/cloudflare-vite-plugin/dist/workers/runner-worker/module-runner-legacy.js +1129 -0
  472. package/vendor/cloudflare-vite-plugin/dist/workers/runner-worker/module-runner.js +1259 -0
  473. package/vendor/cloudflare-vite-plugin/dist/workers/vite-proxy-worker/index.js +31 -0
  474. package/vendor/cloudflare-vite-plugin/package.json +90 -0
  475. package/vendor/cloudflare-vite-plugin/provenance.json +26 -0
  476. package/README.md +0 -3
@@ -0,0 +1,46 @@
1
+ // Unified entry exposing both top-level public API (createRoot, hydrateRoot,
2
+ // createPortal, …) and the registration primitives that custom features and
3
+ // custom bundler plugins need to hook into the reconciler. Reachable as
4
+ // `@tanstack/redact/_all` via the package's subpath exports. Single-instance
5
+ // state for things like the hydration CLAIMED WeakSet, scheduler queue,
6
+ // dispatcher H slot, etc. is preserved because every public entry funnels
7
+ // through this module.
8
+ // Side-effect import: registers all opt-in features (renderers, type matchers,
9
+ // element markers) with the reconciler. A vite plugin may alias individual
10
+ // feature modules to ./features/<name>/stub to strip them from the bundle.
11
+ import './features';
12
+ // Top-level public API (mirrors the surface of /, /dom, /dom-client).
13
+ export { flushSync, batchedUpdates as unstable_batchedUpdates } from './root';
14
+ export { createRoot, hydrateRoot } from './root';
15
+ export type { Root, RootOptions } from './root';
16
+ export { createPortal } from './portal';
17
+ export { act } from './test-utils';
18
+ export { preconnect, prefetchDNS, preload, preinit, preloadModule, preinitModule } from './resource-hints';
19
+ export const version = '19.2.3';
20
+ // Registration primitives — needed by custom features
21
+ // (`installRenderer`, `registerTypeMatcher`, `registerElementMarker`) and by
22
+ // anything that wants to override a cross-cutting concern like Suspense's
23
+ // `handleSuspended` or Context's `readContext` (`installCapability`). The
24
+ // built-in features in `./features/*/{full,stub}.ts` use these via relative
25
+ // imports; external authors reach them through this entry. Order-of-
26
+ // registration matters: later calls overwrite earlier ones.
27
+ export { registerTypeMatcher, registerElementMarker, reconcileChildren, childrenToArray, } from './reconcile';
28
+ export type { TypeMatcher, } from './reconcile';
29
+ import { installCapability as install, type Capabilities as InternalCapabilities } from './reconcile';
30
+ const capabilityKeys = {
31
+ handleSuspended: 'h', readContext: 'c', isActivityHidden: 'i',
32
+ activityIsDisconnected: 'd', prepareActivityFiber: 'p', syncActivity: 's',
33
+ } as const;
34
+ export type Capabilities = {
35
+ [K in keyof typeof capabilityKeys]: InternalCapabilities[(typeof capabilityKeys)[K]];
36
+ };
37
+ // Keep extension names stable while ordinary bundles use compact private keys.
38
+ export function installCapability<K extends keyof Capabilities>(name: K, fn: Capabilities[K]): void {
39
+ install(capabilityKeys[name], fn as InternalCapabilities[(typeof capabilityKeys)[K]]);
40
+ }
41
+ // Core types most custom features need.
42
+ export { FiberTag } from '../core';
43
+ export type { Fiber, FiberRoot, ReactNode, ReactElement } from '../core';
44
+ import { installRenderer, getHostParent, getAnchor } from "./reconcile";
45
+ export type RenderFn = (fiber: import("../core").Fiber, parent: Node, anchor: Node | null) => void;
46
+ export function registerRenderer(tag: import("../core").FiberTag, fn: RenderFn): void { installRenderer(tag, fiber => { const parent = getHostParent(fiber); fn(fiber, parent, getAnchor(fiber, parent)); }); }
@@ -0,0 +1,17 @@
1
+ export type { Root, RootOptions } from './root'
2
+
3
+ export { createRoot, hydrateRoot } from './root'
4
+
5
+ import './features'
6
+
7
+ import { createRoot, hydrateRoot } from './root'
8
+
9
+ // Default export — real React's `react-dom/client` is named-only too, but
10
+ // bundlers synthesize a default from the CJS `module.exports` object.
11
+ // Redact ships pure ESM, so without an explicit default, strict bundlers
12
+ // (rolldown, modern Vite) reject `import ReactDOM from 'react-dom/client'`.
13
+
14
+ export default {
15
+ createRoot,
16
+ hydrateRoot,
17
+ }
@@ -0,0 +1,223 @@
1
+ import { walkRetained } from './walk';
2
+ import { isString } from "../core/functions";
3
+ import { isFunction } from '../core/functions';
4
+ import { setProp } from './dom';
5
+ export interface CommitPlan {
6
+ q: any[][]; // Before-mutation, mutation, effect, rollback, failure, and placement queues.
7
+ c: number[][]; // Queue lengths saved at each rollback checkpoint.
8
+ b: number; // Next before-mutation callback, including reentrant commits.
9
+ m: boolean; // Mutation phase has started, preventing duplicate commits.
10
+ }
11
+ export let currentCommit: CommitPlan | null = null;
12
+ let activeCommit: CommitPlan | null = null;
13
+ let reusableCommit: CommitPlan | undefined;
14
+ let checkpointHook: (() => void) | undefined;
15
+ let placementHook: (parents: Iterable<Fiber>) => void;
16
+ const createCommit = (): CommitPlan => ({ q: [[], [], [], [], [], []], c: [], b: 0, m: false });
17
+ function clearCommit(plan: CommitPlan): void {
18
+ for (const queue of plan.q)
19
+ queue.length = 0;
20
+ plan.c.length = 0;
21
+ }
22
+ export function setCommitPlacementHook(hook: typeof placementHook): void { placementHook = hook; }
23
+ export function checkpointCommit(fiber?: Fiber): number {
24
+ if (!currentCommit)
25
+ return -1;
26
+ const checkpoint = currentCommit.c.length;
27
+ currentCommit.c.push(currentCommit.q.map(queue => queue.length));
28
+ if (fiber)
29
+ walkRetained(fiber, rememberFiber);
30
+ checkpointHook?.();
31
+ return checkpoint;
32
+ }
33
+ export function commitBeforeMutation(plan: CommitPlan): void {
34
+ const queue = plan.q[0]!;
35
+ while (plan.b < queue.length)
36
+ queue[plan.b++]!();
37
+ }
38
+ export function queueBeforeMutation(work: () => void): void {
39
+ if (currentCommit)
40
+ currentCommit.q[0]!.push(work);
41
+ else
42
+ work();
43
+ }
44
+ export function onCommitFailure(work: () => void): void {
45
+ if (currentCommit)
46
+ currentCommit.q[4]!.push(work);
47
+ else
48
+ work();
49
+ }
50
+ export function setCommitCheckpointHook(hook: () => void): void {
51
+ checkpointHook = hook;
52
+ }
53
+ export function queueText(node: Text, value: string): void {
54
+ if (currentCommit)
55
+ currentCommit.q[1]!.push(value, node);
56
+ else
57
+ node.data = value;
58
+ }
59
+ export function queueProp(node: Element, key: string, value: any, previous: any, svg: boolean): void {
60
+ if (currentCommit)
61
+ currentCommit.q[1]!.push(node, key, value, previous, svg);
62
+ else
63
+ setProp(node, key, value, previous, svg);
64
+ }
65
+ export function queueMutation(work: () => void): void {
66
+ if (!currentCommit) {
67
+ work();
68
+ return;
69
+ }
70
+ currentCommit.q[1]!.push(work);
71
+ }
72
+ export function rewindCommit(checkpoint: number): void {
73
+ if (!currentCommit || checkpoint < 0)
74
+ return;
75
+ const lengths = currentCommit.c[checkpoint]!;
76
+ const undo = currentCommit.q[3]!;
77
+ for (let index = undo.length - 1; index >= lengths[3]!; index--)
78
+ undo[index]!();
79
+ currentCommit.q.forEach((queue, index) => { queue.length = lengths[index]!; });
80
+ currentCommit.c.length = checkpoint;
81
+ }
82
+ export function queuePlacement(parent: Fiber): void {
83
+ if (!currentCommit) {
84
+ placementHook([parent]);
85
+ return;
86
+ }
87
+ currentCommit.q[5]!.push(parent);
88
+ }
89
+ export function onCommitRollback(work: () => void): void {
90
+ currentCommit?.q[3]!.push(work);
91
+ }
92
+ export function commitMutation(plan: CommitPlan): void {
93
+ if (plan.m)
94
+ return;
95
+ commitBeforeMutation(plan);
96
+ if (plan.m)
97
+ return;
98
+ plan.m = true;
99
+ const previous = activeCommit;
100
+ activeCommit = plan;
101
+ try {
102
+ const mutations = plan.q[1]!;
103
+ for (let index = 0; index < mutations.length; index++) {
104
+ const work = mutations[index];
105
+ if (isFunction(work))
106
+ work();
107
+ else if (isString(work))
108
+ mutations[++index].data = work;
109
+ else
110
+ setProp(work, mutations[++index], mutations[++index], mutations[++index], mutations[++index]);
111
+ }
112
+ placementHook?.(plan.q[5]!);
113
+ for (const work of plan.q[2]!)
114
+ work();
115
+ }
116
+ finally {
117
+ activeCommit = previous;
118
+ clearCommit(plan);
119
+ }
120
+ }
121
+ export function queueCommitEffects(work: () => void): void {
122
+ const plan = currentCommit || activeCommit;
123
+ if (plan)
124
+ plan.q[2]!.push(work);
125
+ else
126
+ work();
127
+ }
128
+ export function commitSynchronously(render: () => void): void {
129
+ if (currentCommit) {
130
+ render();
131
+ return;
132
+ }
133
+ const plan = reusableCommit || createCommit();
134
+ reusableCommit = undefined;
135
+ plan.b = 0;
136
+ plan.m = false;
137
+ try {
138
+ commitMutation(prepareCommit(render, plan));
139
+ }
140
+ finally {
141
+ // Failed preparation must not leave work for a later synchronous root.
142
+ if (!plan.m) {
143
+ clearCommit(plan);
144
+ }
145
+ reusableCommit = plan;
146
+ }
147
+ }
148
+ import { FiberTag, type Fiber, type Hook } from '../core';
149
+ function rememberFiber(fiber: Fiber): void {
150
+ const saved = { ...fiber };
151
+ // Memo and lazy preserve their wrapper tag around the same class instance.
152
+ const instance = fiber.i?._f === fiber ? fiber.i : null;
153
+ const hooks = fiber.h?.map(hook => [hook, { ...hook },
154
+ hook.q && isObject(hook.q) ? { ...hook.q } : null]);
155
+ const memoized = fiber.b && (instance || fiber.t === FiberTag.Suspense || fiber.t === FiberTag.Fragment)
156
+ ? { ...fiber.b } : null;
157
+ if (fiber.cx)
158
+ saved.cx = new Map(fiber.cx);
159
+ if (fiber.e)
160
+ saved.e = fiber.e.slice();
161
+ const props = instance?.props, state = instance?.state, context = instance?.context;
162
+ onCommitRollback(() => {
163
+ Object.assign(fiber, saved);
164
+ if (memoized) {
165
+ for (const key in fiber.b)
166
+ if (!(key in memoized))
167
+ delete fiber.b[key];
168
+ Object.assign(fiber.b, memoized);
169
+ }
170
+ if (hooks) {
171
+ fiber.h!.length = hooks.length;
172
+ for (let index = 0; index < hooks.length; index++) {
173
+ const [hook, saved, queue] = hooks[index]!;
174
+ fiber.h![index] = Object.assign(hook, saved);
175
+ if (queue)
176
+ Object.assign(hook.q, queue);
177
+ }
178
+ }
179
+ if (instance) {
180
+ instance.props = props;
181
+ instance.state = state;
182
+ instance.context = context;
183
+ }
184
+ });
185
+ }
186
+ import { isObject } from '../core/functions';
187
+ // Structural reconciliation already builds the previous child list. Keep
188
+ // that list for a failed preparation without allocating per-fiber closures.
189
+ export function rememberChildList(parent: Fiber, children?: Fiber[]): void {
190
+ currentCommit?.q[4]!.push(parent, children);
191
+ }
192
+ export function prepareCommit(render: () => void, plan = createCommit()): CommitPlan {
193
+ const previous = currentCommit;
194
+ currentCommit = plan;
195
+ try {
196
+ render();
197
+ }
198
+ catch (error) {
199
+ currentCommit = null;
200
+ const failed = plan.q[4]!;
201
+ for (let i = 0; i < failed.length; i++) {
202
+ const work = failed[i];
203
+ if (isFunction(work))
204
+ work();
205
+ else {
206
+ const children = failed[++i] as Fiber[] | undefined;
207
+ for (let child = work.c; child; child = child.s) {
208
+ if (!children?.includes(child))
209
+ walkRetained(child, fiber => { fiber.u = true; });
210
+ }
211
+ work.c = children?.[0] ?? null;
212
+ if (children)
213
+ for (let j = 0; j < children.length; j++)
214
+ children[j]!.s = children[j + 1] ?? null;
215
+ }
216
+ }
217
+ throw error;
218
+ }
219
+ finally {
220
+ currentCommit = previous;
221
+ }
222
+ return plan;
223
+ }
@@ -0,0 +1,78 @@
1
+ import type { FiberRoot } from '../core'
2
+ import { devToolsMetadata } from '../core/devtools'
3
+
4
+ interface EffectRecord {
5
+ layout: number
6
+ passive: number
7
+ pending: number
8
+ notify?: () => void
9
+ }
10
+
11
+ const active = /* @__PURE__ */ new WeakMap<FiberRoot, EffectRecord>()
12
+ const commits: EffectRecord[] = []
13
+
14
+ export function hasPendingDevToolsEffects(root: FiberRoot): boolean {
15
+ return commits.length > 0 || !!active.get(root)?.pending
16
+ }
17
+
18
+ function record(root: FiberRoot): EffectRecord {
19
+ let value = active.get(root)
20
+ if (!value) active.set(root, value = { layout: 0, passive: 0, pending: 0 })
21
+ return value
22
+ }
23
+
24
+ export function startDevToolsEffect(): number | undefined {
25
+ return devToolsMetadata.enabled ? performance.now() : undefined
26
+ }
27
+
28
+ export function finishDevToolsLayout(root: FiberRoot, start: number | undefined): void {
29
+ if (start !== undefined) record(root).layout += performance.now() - start
30
+ }
31
+
32
+ export function wrapDevToolsLayout(root: FiberRoot, work: () => void): () => void {
33
+ if (!devToolsMetadata.enabled) return work
34
+ const value = record(root)
35
+ value.pending++
36
+ return () => {
37
+ const start = performance.now()
38
+ try { work() } finally {
39
+ value.layout += performance.now() - start
40
+ value.pending--
41
+ drain()
42
+ }
43
+ }
44
+ }
45
+
46
+ export function wrapDevToolsPassive(root: FiberRoot, work: () => void): () => void {
47
+ if (!devToolsMetadata.enabled) return work
48
+ const value = record(root)
49
+ value.pending++
50
+ return () => {
51
+ const start = performance.now()
52
+ try { work() } finally {
53
+ value.passive += performance.now() - start
54
+ value.pending--
55
+ drain()
56
+ }
57
+ }
58
+ }
59
+
60
+ // DevTools' post-commit protocol has no commit ID. Retain its notifications
61
+ // until that commit's effects finish, without changing when app effects run.
62
+ // This also keeps multiple synchronous commits and multiple roots in order.
63
+ export function notifyDevToolsCommit(root: FiberRoot, notify: (layout: number, passive: number) => void): void {
64
+ const value = record(root)
65
+ active.delete(root)
66
+ value.notify = () => notify(value.layout, value.passive)
67
+ commits.push(value)
68
+ drain()
69
+ }
70
+
71
+ function drain(): void {
72
+ while (commits.length && commits[0]!.pending === 0) commits.shift()!.notify!()
73
+ }
74
+
75
+ export function measureDevToolsLayout(root: FiberRoot, work: () => void): void {
76
+ const start = startDevToolsEffect()
77
+ try { work() } finally { finishDevToolsLayout(root, start) }
78
+ }