@bleedingdev/tanstack-redact 0.0.0-stage → 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 +21 -0
  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 +121 -4
  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,99 @@
1
+ import { useState, useReducer, useEffect, useLayoutEffect, useInsertionEffect, useRef, useMemo, useCallback, useContext, useImperativeHandle, useDebugValue, useId, useTransition, useDeferredValue, useSyncExternalStore, useSyncExternalStoreWithSelector, use, useActionState, useFormStatus, useOptimistic, useEffectEvent, startTransition, unstable_useCacheRefresh } from "./hooks.js";
2
+ export type { FragmentInstance } from "../dom/fragment-instance.js";
3
+ export { Children } from "./children.js";
4
+ export { Suspense, StrictMode, Profiler, REACT_SUSPENSE_TYPE, REACT_STRICT_MODE_TYPE, REACT_PROFILER_TYPE, } from "./suspense.js";
5
+ export { createElement, cloneElement, isValidElement, createRef, Fragment } from "./element.js";
6
+ import { act } from "./act.js";
7
+ export { captureOwnerStack } from "../core/devtools.js";
8
+ export type { ViewTransitionProps, ViewTransitionClass, ViewTransitionInstance, ViewTransitionPseudoElement } from "./view-transition.js";
9
+ export { Component, PureComponent } from "./class.js";
10
+ export { useState, useReducer, useEffect, useLayoutEffect, useInsertionEffect, useRef, useMemo, useCallback, useContext, useImperativeHandle, useDebugValue, useId, useTransition, useDeferredValue, useSyncExternalStore, useSyncExternalStoreWithSelector, use, useActionState, useFormStatus, useOptimistic, useEffectEvent, startTransition, unstable_useCacheRefresh, } from "./hooks.js";
11
+ export type { ActivityProps } from "./activity.js";
12
+ import { addTransitionType } from "./view-transition.js";
13
+ export { createContext, REACT_CONTEXT_TYPE, REACT_PROVIDER_TYPE, REACT_CONSUMER_TYPE, type Context, type ProviderExoticComponent, type ConsumerExoticComponent, } from "./context.js";
14
+ export { memo, forwardRef, lazy, REACT_MEMO_TYPE, REACT_FORWARD_REF_TYPE, REACT_LAZY_TYPE, } from "./memo.js";
15
+ export { ReactSharedInternals } from "./shared-internals.js";
16
+ export { ViewTransition, addTransitionType, REACT_VIEW_TRANSITION_TYPE } from "./view-transition.js";
17
+ export type { ReactElement, ReactNode, Key, Ref, RefObject, RefCallback, Dispatch, SetStateAction, EffectCallback, DependencyList, } from "../core/index.js";
18
+ import { createContext } from "./context.js";
19
+ export { Activity, REACT_ACTIVITY_TYPE } from "./activity.js";
20
+ import { memo, forwardRef, lazy } from "./memo.js";
21
+ export { REACT_PORTAL_TYPE } from "./portal.js";
22
+ import { createElement, cloneElement, isValidElement, createRef } from "./element.js";
23
+ export type FC<P = {}> = (props: P & {
24
+ children?: import("../core/index.js").ReactNode;
25
+ }) => import("../core/index.js").ReactElement | null;
26
+ export declare const cache: <T extends Function>(fn: T) => T;
27
+ export declare const cacheSignal: () => AbortSignal | null;
28
+ export { act };
29
+ export declare function taintUniqueValue(_msg: string, _lifetime: any, _value: any): void;
30
+ export declare function taintObjectReference(_msg: string, _object: any): void;
31
+ export declare const version = "19.2.3";
32
+ declare const _default: {
33
+ act: <T>(callback: () => T | Promise<T>) => PromiseLike<T>;
34
+ version: string;
35
+ captureOwnerStack?: () => string | null;
36
+ createElement: typeof createElement;
37
+ cloneElement: typeof cloneElement;
38
+ isValidElement: typeof isValidElement;
39
+ createRef: typeof createRef;
40
+ Fragment: (props: {
41
+ children?: import("./index.js").ReactNode;
42
+ key?: string | number;
43
+ ref?: import("./index.js").Ref<import("./index.js").FragmentInstance>;
44
+ }) => import("./index.js").ReactElement;
45
+ useState: typeof useState;
46
+ useReducer: typeof useReducer;
47
+ useEffect: typeof useEffect;
48
+ useLayoutEffect: typeof useLayoutEffect;
49
+ useInsertionEffect: typeof useInsertionEffect;
50
+ useRef: typeof useRef;
51
+ useMemo: typeof useMemo;
52
+ useCallback: typeof useCallback;
53
+ useContext: typeof useContext;
54
+ useImperativeHandle: typeof useImperativeHandle;
55
+ useDebugValue: typeof useDebugValue;
56
+ useId: typeof useId;
57
+ useTransition: typeof useTransition;
58
+ useDeferredValue: typeof useDeferredValue;
59
+ useSyncExternalStore: typeof useSyncExternalStore;
60
+ useSyncExternalStoreWithSelector: typeof useSyncExternalStoreWithSelector;
61
+ use: typeof use;
62
+ useActionState: typeof useActionState;
63
+ useFormStatus: typeof useFormStatus;
64
+ useOptimistic: typeof useOptimistic;
65
+ useEffectEvent: typeof useEffectEvent;
66
+ startTransition: typeof startTransition;
67
+ unstable_useCacheRefresh: typeof unstable_useCacheRefresh;
68
+ createContext: typeof createContext;
69
+ Component: import("./class.js").ComponentConstructor;
70
+ PureComponent: import("./class.js").ComponentConstructor;
71
+ memo: typeof memo;
72
+ forwardRef: typeof forwardRef;
73
+ lazy: typeof lazy;
74
+ Suspense: (props: {
75
+ children?: any;
76
+ fallback?: any;
77
+ }) => any;
78
+ StrictMode: (props: {
79
+ children?: any;
80
+ }) => any;
81
+ Profiler: (props: {
82
+ id: string;
83
+ onRender?: any;
84
+ children?: any;
85
+ }) => any;
86
+ Children: {
87
+ map(children: import("./index.js").ReactNode, fn: (child: import("./index.js").ReactNode, index: number) => any): any[] | null;
88
+ forEach(children: import("./index.js").ReactNode, fn: (child: import("./index.js").ReactNode, index: number) => void): void;
89
+ count(children: import("./index.js").ReactNode): number;
90
+ toArray(children: import("./index.js").ReactNode): any[];
91
+ only(children: import("./index.js").ReactNode): import("./index.js").ReactElement;
92
+ };
93
+ ViewTransition: (props: import("./view-transition.js").ViewTransitionProps) => any;
94
+ Activity: (props: import("./activity.js").ActivityProps) => any;
95
+ addTransitionType: typeof addTransitionType;
96
+ cache: <T extends Function>(fn: T) => T;
97
+ cacheSignal: () => AbortSignal | null;
98
+ };
99
+ export default _default;
@@ -0,0 +1,143 @@
1
+ import { useState, useReducer, useEffect, useLayoutEffect, useInsertionEffect, useRef, useMemo, useCallback, useContext, useImperativeHandle, useDebugValue, useId, useTransition, useDeferredValue, useSyncExternalStore, useSyncExternalStoreWithSelector, use, useActionState, useFormStatus, useOptimistic, useEffectEvent, startTransition, unstable_useCacheRefresh } from "./hooks.js";
2
+ import { Children } from "./children.js";
3
+ import { Suspense, StrictMode, Profiler } from "./suspense.js";
4
+ import { Suspense as Suspense2, StrictMode as StrictMode2, Profiler as Profiler2, REACT_SUSPENSE_TYPE, REACT_STRICT_MODE_TYPE, REACT_PROFILER_TYPE } from "./suspense.js";
5
+ import { createElement, cloneElement, isValidElement, createRef, Fragment } from "./element.js";
6
+ import { act } from "./act.js";
7
+ import { captureOwnerStack } from "../core/devtools.js";
8
+ import { captureOwnerStack as captureOwnerStack2 } from "../core/devtools.js";
9
+ import { Component, PureComponent } from "./class.js";
10
+ import { useState as useState2, useReducer as useReducer2, useEffect as useEffect2, useLayoutEffect as useLayoutEffect2, useInsertionEffect as useInsertionEffect2, useRef as useRef2, useMemo as useMemo2, useCallback as useCallback2, useContext as useContext2, useImperativeHandle as useImperativeHandle2, useDebugValue as useDebugValue2, useId as useId2, useTransition as useTransition2, useDeferredValue as useDeferredValue2, useSyncExternalStore as useSyncExternalStore2, useSyncExternalStoreWithSelector as useSyncExternalStoreWithSelector2, use as use2, useActionState as useActionState2, useFormStatus as useFormStatus2, useOptimistic as useOptimistic2, useEffectEvent as useEffectEvent2, startTransition as startTransition2, unstable_useCacheRefresh as unstable_useCacheRefresh2 } from "./hooks.js";
11
+ import { Children as Children2 } from "./children.js";
12
+ import { ViewTransition, addTransitionType } from "./view-transition.js";
13
+ import { createContext, REACT_CONTEXT_TYPE, REACT_PROVIDER_TYPE, REACT_CONSUMER_TYPE } from "./context.js";
14
+ import { memo, forwardRef, lazy, REACT_MEMO_TYPE, REACT_FORWARD_REF_TYPE, REACT_LAZY_TYPE } from "./memo.js";
15
+ import { Activity } from "./activity.js";
16
+ import { ReactSharedInternals } from "./shared-internals.js";
17
+ import { ViewTransition as ViewTransition2, addTransitionType as addTransitionType2, REACT_VIEW_TRANSITION_TYPE } from "./view-transition.js";
18
+ import { createContext as createContext2 } from "./context.js";
19
+ import { Component as Component2, PureComponent as PureComponent2 } from "./class.js";
20
+ import { Activity as Activity2, REACT_ACTIVITY_TYPE } from "./activity.js";
21
+ import { memo as memo2, forwardRef as forwardRef2, lazy as lazy2 } from "./memo.js";
22
+ import { REACT_PORTAL_TYPE } from "./portal.js";
23
+ import { createElement as createElement2, cloneElement as cloneElement2, isValidElement as isValidElement2, createRef as createRef2, Fragment as Fragment2 } from "./element.js";
24
+ const cache = (fn) => fn;
25
+ const cacheSignal = () => null;
26
+ function taintUniqueValue(_msg, _lifetime, _value) {
27
+ }
28
+ function taintObjectReference(_msg, _object) {
29
+ }
30
+ const version = "19.2.3";
31
+ var react_default = {
32
+ createElement: createElement2,
33
+ cloneElement: cloneElement2,
34
+ isValidElement: isValidElement2,
35
+ createRef: createRef2,
36
+ Fragment: Fragment2,
37
+ useState,
38
+ useReducer,
39
+ useEffect,
40
+ useLayoutEffect,
41
+ useInsertionEffect,
42
+ useRef,
43
+ useMemo,
44
+ useCallback,
45
+ useContext,
46
+ useImperativeHandle,
47
+ useDebugValue,
48
+ useId,
49
+ useTransition,
50
+ useDeferredValue,
51
+ useSyncExternalStore,
52
+ useSyncExternalStoreWithSelector,
53
+ use,
54
+ useActionState,
55
+ useFormStatus,
56
+ useOptimistic,
57
+ useEffectEvent,
58
+ startTransition,
59
+ unstable_useCacheRefresh,
60
+ createContext: createContext2,
61
+ Component: Component2,
62
+ PureComponent: PureComponent2,
63
+ memo: memo2,
64
+ forwardRef: forwardRef2,
65
+ lazy: lazy2,
66
+ Suspense,
67
+ StrictMode,
68
+ Profiler,
69
+ Children: Children2,
70
+ ViewTransition,
71
+ Activity,
72
+ addTransitionType,
73
+ cache,
74
+ cacheSignal,
75
+ ...process.env.NODE_ENV !== "production" ? { captureOwnerStack } : {},
76
+ act,
77
+ version: "19.2.3"
78
+ };
79
+ export {
80
+ Activity2 as Activity,
81
+ Children,
82
+ Component,
83
+ Fragment,
84
+ Profiler2 as Profiler,
85
+ PureComponent,
86
+ REACT_ACTIVITY_TYPE,
87
+ REACT_CONSUMER_TYPE,
88
+ REACT_CONTEXT_TYPE,
89
+ REACT_FORWARD_REF_TYPE,
90
+ REACT_LAZY_TYPE,
91
+ REACT_MEMO_TYPE,
92
+ REACT_PORTAL_TYPE,
93
+ REACT_PROFILER_TYPE,
94
+ REACT_PROVIDER_TYPE,
95
+ REACT_STRICT_MODE_TYPE,
96
+ REACT_SUSPENSE_TYPE,
97
+ REACT_VIEW_TRANSITION_TYPE,
98
+ ReactSharedInternals,
99
+ StrictMode2 as StrictMode,
100
+ Suspense2 as Suspense,
101
+ ViewTransition2 as ViewTransition,
102
+ act,
103
+ addTransitionType2 as addTransitionType,
104
+ cache,
105
+ cacheSignal,
106
+ captureOwnerStack2 as captureOwnerStack,
107
+ cloneElement,
108
+ createContext,
109
+ createElement,
110
+ createRef,
111
+ react_default as default,
112
+ forwardRef,
113
+ isValidElement,
114
+ lazy,
115
+ memo,
116
+ startTransition2 as startTransition,
117
+ taintObjectReference,
118
+ taintUniqueValue,
119
+ unstable_useCacheRefresh2 as unstable_useCacheRefresh,
120
+ use2 as use,
121
+ useActionState2 as useActionState,
122
+ useCallback2 as useCallback,
123
+ useContext2 as useContext,
124
+ useDebugValue2 as useDebugValue,
125
+ useDeferredValue2 as useDeferredValue,
126
+ useEffect2 as useEffect,
127
+ useEffectEvent2 as useEffectEvent,
128
+ useFormStatus2 as useFormStatus,
129
+ useId2 as useId,
130
+ useImperativeHandle2 as useImperativeHandle,
131
+ useInsertionEffect2 as useInsertionEffect,
132
+ useLayoutEffect2 as useLayoutEffect,
133
+ useMemo2 as useMemo,
134
+ useOptimistic2 as useOptimistic,
135
+ useReducer2 as useReducer,
136
+ useRef2 as useRef,
137
+ useState2 as useState,
138
+ useSyncExternalStore2 as useSyncExternalStore,
139
+ useSyncExternalStoreWithSelector2 as useSyncExternalStoreWithSelector,
140
+ useTransition2 as useTransition,
141
+ version
142
+ };
143
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/react/index.ts"],
4
+ "sourcesContent": ["import { useState, useReducer, useEffect, useLayoutEffect, useInsertionEffect, useRef, useMemo, useCallback, useContext, useImperativeHandle, useDebugValue, useId, useTransition, useDeferredValue, useSyncExternalStore, useSyncExternalStoreWithSelector, use, useActionState, useFormStatus, useOptimistic, useEffectEvent, startTransition, unstable_useCacheRefresh, } from './hooks';\nexport type { FragmentInstance } from '../dom/fragment-instance';\nexport { Children } from './children';\nimport { Suspense, StrictMode, Profiler } from './suspense';\nexport { Suspense, StrictMode, Profiler, REACT_SUSPENSE_TYPE, REACT_STRICT_MODE_TYPE, REACT_PROFILER_TYPE, } from './suspense';\nexport { createElement, cloneElement, isValidElement, createRef, Fragment } from './element';\nimport { act } from './act';\nimport { captureOwnerStack } from '../core/devtools';\nexport { captureOwnerStack } from '../core/devtools';\nexport type { ViewTransitionProps, ViewTransitionClass, ViewTransitionInstance, ViewTransitionPseudoElement } from './view-transition';\nexport { Component, PureComponent } from './class';\nexport { useState, useReducer, useEffect, useLayoutEffect, useInsertionEffect, useRef, useMemo, useCallback, useContext, useImperativeHandle, useDebugValue, useId, useTransition, useDeferredValue, useSyncExternalStore, useSyncExternalStoreWithSelector, use, useActionState, useFormStatus, useOptimistic, useEffectEvent, startTransition, unstable_useCacheRefresh, } from './hooks';\nexport type { ActivityProps } from './activity';\nimport { Children } from './children';\nimport { ViewTransition, addTransitionType } from './view-transition';\nexport { createContext, REACT_CONTEXT_TYPE, REACT_PROVIDER_TYPE, REACT_CONSUMER_TYPE, type Context, type ProviderExoticComponent, type ConsumerExoticComponent, } from './context';\nexport { memo, forwardRef, lazy, REACT_MEMO_TYPE, REACT_FORWARD_REF_TYPE, REACT_LAZY_TYPE, } from './memo';\nimport { Activity } from './activity';\nexport { ReactSharedInternals } from './shared-internals';\nexport { ViewTransition, addTransitionType, REACT_VIEW_TRANSITION_TYPE } from './view-transition';\nexport type { ReactElement, ReactNode, Key, Ref, RefObject, RefCallback, Dispatch, SetStateAction, EffectCallback, DependencyList, } from '../core';\nimport { createContext } from './context';\nimport { Component, PureComponent } from './class';\nexport { Activity, REACT_ACTIVITY_TYPE } from './activity';\nimport { memo, forwardRef, lazy } from './memo';\nexport { REACT_PORTAL_TYPE } from './portal';\nimport { createElement, cloneElement, isValidElement, createRef, Fragment } from './element';\n// Lightweight functional-component alias — matches React's FC shape closely\n// enough for the common `const X: FC<P> = (props) => …` pattern used in\n// tests and downstream consumer code.\nexport type FC<P = {}> = (props: P & {\n children?: import('../core').ReactNode;\n}) => import('../core').ReactElement | null;\n// Stub exports\nexport const cache = <T extends Function>(fn: T): T => fn;\n// The client/DOM-server entry has no RSC cache lifetime, matching React's\n// client export. The upstream Flight renderer remains responsible for RSC.\nexport const cacheSignal = (): AbortSignal | null => null;\nexport { act };\nexport function taintUniqueValue(_msg: string, _lifetime: any, _value: any): void { }\nexport function taintObjectReference(_msg: string, _object: any): void { }\nexport const version = '19.2.3';\n// Default export for `import React from 'react'` usage\nexport default {\n createElement,\n cloneElement,\n isValidElement,\n createRef,\n Fragment,\n useState,\n useReducer,\n useEffect,\n useLayoutEffect,\n useInsertionEffect,\n useRef,\n useMemo,\n useCallback,\n useContext,\n useImperativeHandle,\n useDebugValue,\n useId,\n useTransition,\n useDeferredValue,\n useSyncExternalStore,\n useSyncExternalStoreWithSelector,\n use,\n useActionState,\n useFormStatus,\n useOptimistic,\n useEffectEvent,\n startTransition,\n unstable_useCacheRefresh,\n createContext,\n Component,\n PureComponent,\n memo,\n forwardRef,\n lazy,\n Suspense,\n StrictMode,\n Profiler,\n Children,\n ViewTransition,\n Activity,\n addTransitionType,\n cache,\n cacheSignal,\n ...(process.env.NODE_ENV !== 'production' ? { captureOwnerStack } : {}),\n act,\n version: '19.2.3',\n};\n"],
5
+ "mappings": "AAAA,SAAS,UAAU,YAAY,WAAW,iBAAiB,oBAAoB,QAAQ,SAAS,aAAa,YAAY,qBAAqB,eAAe,OAAO,eAAe,kBAAkB,sBAAsB,kCAAkC,KAAK,gBAAgB,eAAe,eAAe,gBAAgB,iBAAiB,gCAAiC;AAElX,SAAS,gBAAgB;AACzB,SAAS,UAAU,YAAY,gBAAgB;AAC/C,SAAS,YAAAA,WAAU,cAAAC,aAAY,YAAAC,WAAU,qBAAqB,wBAAwB,2BAA4B;AAClH,SAAS,eAAe,cAAc,gBAAgB,WAAW,gBAAgB;AACjF,SAAS,WAAW;AACpB,SAAS,yBAAyB;AAClC,SAAS,qBAAAC,0BAAyB;AAElC,SAAS,WAAW,qBAAqB;AACzC,SAAS,YAAAC,WAAU,cAAAC,aAAY,aAAAC,YAAW,mBAAAC,kBAAiB,sBAAAC,qBAAoB,UAAAC,SAAQ,WAAAC,UAAS,eAAAC,cAAa,cAAAC,aAAY,uBAAAC,sBAAqB,iBAAAC,gBAAe,SAAAC,QAAO,iBAAAC,gBAAe,oBAAAC,mBAAkB,wBAAAC,uBAAsB,oCAAAC,mCAAkC,OAAAC,MAAK,kBAAAC,iBAAgB,iBAAAC,gBAAe,iBAAAC,gBAAe,kBAAAC,iBAAgB,mBAAAC,kBAAiB,4BAAAC,iCAAiC;AAElX,SAAS,YAAAC,iBAAgB;AACzB,SAAS,gBAAgB,yBAAyB;AAClD,SAAS,eAAe,oBAAoB,qBAAqB,2BAAsG;AACvK,SAAS,MAAM,YAAY,MAAM,iBAAiB,wBAAwB,uBAAwB;AAClG,SAAS,gBAAgB;AACzB,SAAS,4BAA4B;AACrC,SAAS,kBAAAC,iBAAgB,qBAAAC,oBAAmB,kCAAkC;AAE9E,SAAS,iBAAAC,sBAAqB;AAC9B,SAAS,aAAAC,YAAW,iBAAAC,sBAAqB;AACzC,SAAS,YAAAC,WAAU,2BAA2B;AAC9C,SAAS,QAAAC,OAAM,cAAAC,aAAY,QAAAC,aAAY;AACvC,SAAS,yBAAyB;AAClC,SAAS,iBAAAC,gBAAe,gBAAAC,eAAc,kBAAAC,iBAAgB,aAAAC,YAAW,YAAAC,iBAAgB;AAQ1E,MAAM,QAAQ,CAAqB,OAAa;AAGhD,MAAM,cAAc,MAA0B;AAE/C,SAAU,iBAAiB,MAAc,WAAgB,QAAW;AAAU;AAC9E,SAAU,qBAAqB,MAAc,SAAY;AAAU;AAClE,MAAM,UAAU;AAEvB,IAAA,gBAAe;EACX,eAAAJ;EACA,cAAAC;EACA,gBAAAC;EACA,WAAAC;EACA,UAAAC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,eAAAX;EACA,WAAAC;EACA,eAAAC;EACA,MAAAE;EACA,YAAAC;EACA,MAAAC;EACA;EACA;EACA;EACA,UAAAT;EACA;EACA;EACA;EACA;EACA;EACA,GAAI,yBAAyB,eAAe,EAAE,kBAAiB,IAAK,CAAA;EACpE;EACA,SAAS;;",
6
+ "names": ["Suspense", "StrictMode", "Profiler", "captureOwnerStack", "useState", "useReducer", "useEffect", "useLayoutEffect", "useInsertionEffect", "useRef", "useMemo", "useCallback", "useContext", "useImperativeHandle", "useDebugValue", "useId", "useTransition", "useDeferredValue", "useSyncExternalStore", "useSyncExternalStoreWithSelector", "use", "useActionState", "useFormStatus", "useOptimistic", "useEffectEvent", "startTransition", "unstable_useCacheRefresh", "Children", "ViewTransition", "addTransitionType", "createContext", "Component", "PureComponent", "Activity", "memo", "forwardRef", "lazy", "createElement", "cloneElement", "isValidElement", "createRef", "Fragment"]
7
+ }
@@ -0,0 +1,24 @@
1
+ import { type Key, type ReactElement, type Ref } from "../core/index.js";
2
+ export { Fragment } from "./element.js";
3
+ export declare function jsx(type: any, props: any, key?: any): ReactElement;
4
+ export declare const jsxs: typeof jsx;
5
+ export declare const jsxDEV: (type: any, props: any, key?: any, _staticChildren?: boolean, source?: any) => ReactElement<any, any>;
6
+ export declare namespace JSX {
7
+ type Element = ReactElement;
8
+ type ElementType = any;
9
+ interface IntrinsicAttributes {
10
+ key?: Key;
11
+ }
12
+ interface IntrinsicClassAttributes<T> {
13
+ ref?: Ref<T> | undefined;
14
+ }
15
+ interface IntrinsicElements {
16
+ [elemName: string]: any;
17
+ }
18
+ interface ElementChildrenAttribute {
19
+ children: {};
20
+ }
21
+ interface ElementAttributesProperty {
22
+ props: {};
23
+ }
24
+ }
@@ -0,0 +1,37 @@
1
+ import { REACT_ELEMENT_TYPE } from "../core/index.js";
2
+ import { rememberDevToolsElement } from "../core/devtools.js";
3
+ import { Fragment } from "./element.js";
4
+ function jsx(type, props, key) {
5
+ if (process.env.NODE_ENV !== "production")
6
+ return rememberDevToolsElement({
7
+ $$typeof: REACT_ELEMENT_TYPE,
8
+ type,
9
+ key: key == null ? null : "" + key,
10
+ ref: props?.ref ?? null,
11
+ props
12
+ });
13
+ return {
14
+ $$typeof: REACT_ELEMENT_TYPE,
15
+ type,
16
+ key: key == null ? null : "" + key,
17
+ ref: props?.ref ?? null,
18
+ props
19
+ };
20
+ }
21
+ const jsxs = jsx;
22
+ const jsxDEV = process.env.NODE_ENV !== "production" ? (type, props, key, _staticChildren, source) => {
23
+ return rememberDevToolsElement({
24
+ $$typeof: REACT_ELEMENT_TYPE,
25
+ type,
26
+ key: key == null ? null : "" + key,
27
+ ref: props?.ref ?? null,
28
+ props
29
+ }, source);
30
+ } : jsx;
31
+ export {
32
+ Fragment,
33
+ jsx,
34
+ jsxDEV,
35
+ jsxs
36
+ };
37
+ //# sourceMappingURL=jsx-runtime.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/react/jsx-runtime.ts"],
4
+ "sourcesContent": ["import { REACT_ELEMENT_TYPE, type Key, type ReactElement, type Ref } from '../core'\nimport { rememberDevToolsElement } from '../core/devtools'\n\nexport { Fragment } from './element'\n\nexport function jsx(type: any, props: any, key?: any): ReactElement {\n if (process.env.NODE_ENV !== 'production') return rememberDevToolsElement({\n $$typeof: REACT_ELEMENT_TYPE, type, key: key == null ? null : '' + key,\n ref: props?.ref ?? null, props,\n })\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type,\n key: key == null ? null : '' + key,\n ref: props?.ref ?? null,\n props,\n }\n}\n\nexport const jsxs = jsx\nexport const jsxDEV = process.env.NODE_ENV !== 'production'\n ? (type: any, props: any, key?: any, _staticChildren?: boolean, source?: any) => {\n return rememberDevToolsElement({\n $$typeof: REACT_ELEMENT_TYPE, type, key: key == null ? null : '' + key,\n ref: props?.ref ?? null, props,\n }, source)\n }\n : jsx\n\n// Permissive JSX namespace — picked up by TypeScript via the\n// `jsxImportSource: \"@tanstack/redact\"` + `jsx: \"react-jsx\"` pair. The\n// runtime accepts any element type and any props; matching that with strict\n// element typings would require an entire React.dom.d.ts surface, which\n// isn't a stated goal of redact (consumers who want strict JSX still alias\n// `react`/`react-dom` types from the real packages).\nexport namespace JSX {\n export type Element = ReactElement\n export type ElementType = any\n export interface IntrinsicAttributes { key?: Key }\n export interface IntrinsicClassAttributes<T> { ref?: Ref<T> | undefined }\n export interface IntrinsicElements {\n [elemName: string]: any\n }\n export interface ElementChildrenAttribute {\n children: {}\n }\n export interface ElementAttributesProperty {\n props: {}\n }\n}\n"],
5
+ "mappings": "AAAA,SAAS,0BAAiE;AAC1E,SAAS,+BAA+B;AAExC,SAAS,gBAAgB;AAEnB,SAAU,IAAI,MAAW,OAAY,KAAS;AAClD,MAAI,yBAAyB;AAAc,WAAO,wBAAwB;MACxE,UAAU;MAAoB;MAAM,KAAK,OAAO,OAAO,OAAO,KAAK;MACnE,KAAK,OAAO,OAAO;MAAM;KAC1B;AACD,SAAO;IACL,UAAU;IACV;IACA,KAAK,OAAO,OAAO,OAAO,KAAK;IAC/B,KAAK,OAAO,OAAO;IACnB;;AAEJ;AAEO,MAAM,OAAO;AACb,MAAM,SAAS,yBAAyB,eAC3C,CAAC,MAAW,OAAY,KAAW,iBAA2B,WAAgB;AAC5E,SAAO,wBAAwB;IAC7B,UAAU;IAAoB;IAAM,KAAK,OAAO,OAAO,OAAO,KAAK;IACnE,KAAK,OAAO,OAAO;IAAM;KACxB,MAAM;AACX,IACA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,20 @@
1
+ import type { ReactElement, ReactNode, Ref } from "../core/index.js";
2
+ export declare const REACT_MEMO_TYPE: unique symbol;
3
+ export declare const REACT_FORWARD_REF_TYPE: unique symbol;
4
+ export declare const REACT_LAZY_TYPE: unique symbol;
5
+ export type ExoticComponent<P> = ((props: P & {
6
+ children?: ReactNode;
7
+ ref?: any;
8
+ key?: any;
9
+ }) => ReactElement | null) & {
10
+ readonly $$typeof: symbol;
11
+ };
12
+ export declare function memo<P>(type: (props: P) => any, areEqual?: (prev: Readonly<P>, next: Readonly<P>) => boolean): ExoticComponent<P>;
13
+ export declare function forwardRef<R, P = {}>(render: (props: P, ref: {
14
+ current: R | null;
15
+ } | ((r: R | null) => void) | null) => any): ExoticComponent<P & {
16
+ ref?: Ref<R>;
17
+ }>;
18
+ export declare function lazy<T extends {
19
+ default: any;
20
+ }>(ctor: () => Promise<T>): ExoticComponent<T['default'] extends (props: infer P) => any ? P : {}>;
@@ -0,0 +1,27 @@
1
+ import { readThenable } from "./thenable.js";
2
+ const REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo");
3
+ const REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref");
4
+ const REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
5
+ function memo(type, areEqual) {
6
+ return { $$typeof: REACT_MEMO_TYPE, type, compare: areEqual ?? null };
7
+ }
8
+ function forwardRef(render) {
9
+ return { $$typeof: REACT_FORWARD_REF_TYPE, render };
10
+ }
11
+ function lazy(ctor) {
12
+ const payload = {};
13
+ return {
14
+ $$typeof: REACT_LAZY_TYPE,
15
+ _payload: payload,
16
+ _init: (p) => readThenable(p.p ||= ctor(), p).default
17
+ };
18
+ }
19
+ export {
20
+ REACT_FORWARD_REF_TYPE,
21
+ REACT_LAZY_TYPE,
22
+ REACT_MEMO_TYPE,
23
+ forwardRef,
24
+ lazy,
25
+ memo
26
+ };
27
+ //# sourceMappingURL=memo.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/react/memo.ts"],
4
+ "sourcesContent": ["import { readThenable } from './thenable'\nimport type { ReactElement, ReactNode, Ref } from '../core'\n\nexport const REACT_MEMO_TYPE = Symbol.for('react.memo')\nexport const REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref')\nexport const REACT_LAZY_TYPE = Symbol.for('react.lazy')\n\n// Component-shaped return type so JSX usage of memo/forwardRef/lazy results\n// type-checks. The runtime value is a `$$typeof`-tagged record that the\n// reconciler recognizes via type-matchers; the cast lets TypeScript treat\n// it as a callable component at JSX sites without changing what the runtime\n// actually does. `children` is included for the common\n// `<Comp>...</Comp>` form even when the inner P doesn't list it.\nexport type ExoticComponent<P> = ((\n props: P & { children?: ReactNode; ref?: any; key?: any },\n) => ReactElement | null) & {\n readonly $$typeof: symbol\n}\n\nexport function memo<P>(\n type: (props: P) => any,\n areEqual?: (prev: Readonly<P>, next: Readonly<P>) => boolean,\n): ExoticComponent<P> {\n return { $$typeof: REACT_MEMO_TYPE, type, compare: areEqual ?? null } as unknown as ExoticComponent<P>\n}\n\nexport function forwardRef<R, P = {}>(\n render: (props: P, ref: { current: R | null } | ((r: R | null) => void) | null) => any,\n): ExoticComponent<P & { ref?: Ref<R> }> {\n return { $$typeof: REACT_FORWARD_REF_TYPE, render } as unknown as ExoticComponent<P & { ref?: Ref<R> }>\n}\n\nexport function lazy<T extends { default: any }>(ctor: () => Promise<T>): ExoticComponent<\n T['default'] extends (props: infer P) => any ? P : {}\n> {\n const payload: { p?: Promise<T> } = {}\n return {\n $$typeof: REACT_LAZY_TYPE,\n _payload: payload,\n _init: (p: typeof payload): any => readThenable(p.p ||= ctor(), p).default,\n } as unknown as ExoticComponent<T['default'] extends (props: infer P) => any ? P : {}>\n}\n"],
5
+ "mappings": "AAAA,SAAS,oBAAoB;AAGtB,MAAM,kBAAkB,uBAAO,IAAI,YAAY;AAC/C,MAAM,yBAAyB,uBAAO,IAAI,mBAAmB;AAC7D,MAAM,kBAAkB,uBAAO,IAAI,YAAY;AAchD,SAAU,KACd,MACA,UAA4D;AAE5D,SAAO,EAAE,UAAU,iBAAiB,MAAM,SAAS,YAAY,KAAI;AACrE;AAEM,SAAU,WACd,QAAsF;AAEtF,SAAO,EAAE,UAAU,wBAAwB,OAAM;AACnD;AAEM,SAAU,KAAiC,MAAsB;AAGrE,QAAM,UAA8B,CAAA;AACpC,SAAO;IACL,UAAU;IACV,UAAU;IACV,OAAO,CAAC,MAA2B,aAAa,EAAE,MAAM,KAAI,GAAI,CAAC,EAAE;;AAEvE;",
6
+ "names": []
7
+ }
@@ -0,0 +1 @@
1
+ export declare const REACT_PORTAL_TYPE: unique symbol;
@@ -0,0 +1,5 @@
1
+ const REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal");
2
+ export {
3
+ REACT_PORTAL_TYPE
4
+ };
5
+ //# sourceMappingURL=portal.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/react/portal.ts"],
4
+ "sourcesContent": ["export const REACT_PORTAL_TYPE = Symbol.for('react.portal')\n"],
5
+ "mappings": "AAAO,MAAM,oBAAoB,uBAAO,IAAI,cAAc;",
6
+ "names": []
7
+ }
@@ -0,0 +1,52 @@
1
+ import type { Fiber } from "../core/index.js";
2
+ export interface Dispatcher {
3
+ useState<S>(initial: S | (() => S)): [
4
+ S,
5
+ (s: S | ((p: S) => S)) => void
6
+ ];
7
+ useReducer<S, A>(reducer: (s: S, a: A) => S, initial: S | any, init?: (a: any) => S): [
8
+ S,
9
+ (a: A) => void
10
+ ];
11
+ useEffect(create: () => any, deps?: ReadonlyArray<unknown>): void;
12
+ useLayoutEffect(create: () => any, deps?: ReadonlyArray<unknown>): void;
13
+ useInsertionEffect(create: () => any, deps?: ReadonlyArray<unknown>): void;
14
+ useRef<T>(initial: T): {
15
+ current: T;
16
+ };
17
+ useMemo<T>(factory: () => T, deps?: ReadonlyArray<unknown>): T;
18
+ useCallback<T extends Function>(fn: T, deps?: ReadonlyArray<unknown>): T;
19
+ useContext<T>(ctx: any): T;
20
+ useImperativeHandle<T>(ref: any, factory: () => T, deps?: ReadonlyArray<unknown>): void;
21
+ useDebugValue<T>(value: T, formatter?: (v: T) => any): void;
22
+ useId(): string;
23
+ useTransition(): [
24
+ boolean,
25
+ (fn: () => void) => void
26
+ ];
27
+ useActionState<S, P>(action: (state: Awaited<S>, payload: P) => S | Promise<S>, initial: Awaited<S>, permalink?: string): [
28
+ Awaited<S>,
29
+ (payload: P) => void,
30
+ boolean
31
+ ];
32
+ useOptimistic<S, A = S>(state: S, updateFn?: (state: S, action: A) => S): [
33
+ S,
34
+ (action: A) => void
35
+ ];
36
+ useFormStatus(): import("./form-state.js").FormStatus;
37
+ useDeferredValue<T>(v: T): T;
38
+ useSyncExternalStore<T>(subscribe: (cb: () => void) => () => void, getSnapshot: () => T, getServerSnapshot?: () => T): T;
39
+ use<T>(promiseOrContext: any): T;
40
+ useCacheRefresh(): () => void;
41
+ }
42
+ export interface SharedInternals {
43
+ B?: import("./action-scope.js").ActionScope | null | undefined;
44
+ A?: Array<() => void> | null;
45
+ H: Dispatcher | null;
46
+ F: Fiber | null;
47
+ I: number;
48
+ T?: Set<string> | null | undefined;
49
+ X?: (action: () => unknown) => PromiseLike<unknown> | void;
50
+ }
51
+ export declare const ReactSharedInternals: SharedInternals;
52
+ export declare function getDispatcher(): Dispatcher;
@@ -0,0 +1,22 @@
1
+ const KEY = /* @__PURE__ */ Symbol.for("@tanstack/redact.ReactSharedInternals");
2
+ const g = globalThis;
3
+ const ReactSharedInternals = g[KEY] ?? (g[KEY] = {
4
+ H: null,
5
+ F: null,
6
+ I: 0
7
+ });
8
+ function getDispatcher() {
9
+ const d = ReactSharedInternals.H;
10
+ if (!d) {
11
+ if (process.env.NODE_ENV !== "production") {
12
+ throw new Error('Hooks can only be called inside a function component. If this fires during SSR/RSC, the most common cause is a component that uses client-only hooks (useState, useContext, useRouter, etc.) being rendered in the RSC server environment without a "use client" directive at the top of its file.');
13
+ }
14
+ throw new Error();
15
+ }
16
+ return d;
17
+ }
18
+ export {
19
+ ReactSharedInternals,
20
+ getDispatcher
21
+ };
22
+ //# sourceMappingURL=shared-internals.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/react/shared-internals.ts"],
4
+ "sourcesContent": ["import type { Fiber } from '../core'\n\nexport interface Dispatcher {\n useState<S>(initial: S | (() => S)): [S, (s: S | ((p: S) => S)) => void]\n useReducer<S, A>(\n reducer: (s: S, a: A) => S,\n initial: S | any,\n init?: (a: any) => S,\n ): [S, (a: A) => void]\n useEffect(create: () => any, deps?: ReadonlyArray<unknown>): void\n useLayoutEffect(create: () => any, deps?: ReadonlyArray<unknown>): void\n useInsertionEffect(create: () => any, deps?: ReadonlyArray<unknown>): void\n useRef<T>(initial: T): { current: T }\n useMemo<T>(factory: () => T, deps?: ReadonlyArray<unknown>): T\n useCallback<T extends Function>(fn: T, deps?: ReadonlyArray<unknown>): T\n useContext<T>(ctx: any): T\n useImperativeHandle<T>(ref: any, factory: () => T, deps?: ReadonlyArray<unknown>): void\n useDebugValue<T>(value: T, formatter?: (v: T) => any): void\n useId(): string\n useTransition(): [boolean, (fn: () => void) => void]\n useActionState<S, P>(action: (state: Awaited<S>, payload: P) => S | Promise<S>, initial: Awaited<S>, permalink?: string): [Awaited<S>, (payload: P) => void, boolean]\n useOptimistic<S, A = S>(state: S, updateFn?: (state: S, action: A) => S): [S, (action: A) => void]\n useFormStatus(): import('./form-state').FormStatus\n useDeferredValue<T>(v: T): T\n useSyncExternalStore<T>(\n subscribe: (cb: () => void) => () => void,\n getSnapshot: () => T,\n getServerSnapshot?: () => T,\n ): T\n use<T>(promiseOrContext: any): T\n useCacheRefresh(): () => void\n}\n\nexport interface SharedInternals {\n B?: import('./action-scope').ActionScope | null | undefined // Shared across renderer copies.\n A?: Array<() => void> | null\n\n H: Dispatcher | null\n F: Fiber | null\n I: number\n T?: Set<string> | null | undefined\n X?: (action: () => unknown) => PromiseLike<unknown> | void\n}\n\n// Stash the singleton on `globalThis` under a registered symbol. Module-scoped\n// state goes wrong fast in environments that end up with multiple copies of\n// `@tanstack/redact` in flight — most notably Cloudflare's `vite-plugin` dev\n// mode, where the worker entry inlines `@tanstack/redact` once via `noExternal`\n// while user code reaches a separate pre-bundled `deps_ssr/redact.js` copy.\n// Each copy would otherwise have its own `ReactSharedInternals.H`, so the SSR\n// dispatcher installed by one would be invisible to hooks called through the\n// other and `useContext` would explode with \"Hooks can only be called inside a\n// function component\". `Symbol.for` survives module re-evaluation and isolate\n// boundaries, giving every copy the same backing object.\nconst KEY = Symbol.for('@tanstack/redact.ReactSharedInternals')\nconst g = globalThis as unknown as { [k: symbol]: SharedInternals | undefined }\n\nexport const ReactSharedInternals: SharedInternals =\n g[KEY] ??\n (g[KEY] = {\n H: null,\n F: null,\n I: 0,\n })\n\nexport function getDispatcher(): Dispatcher {\n const d = ReactSharedInternals.H\n if (!d) {\n if (process.env.NODE_ENV !== 'production') {\n throw new Error(\n 'Hooks can only be called inside a function component. ' +\n 'If this fires during SSR/RSC, the most common cause is a component that uses client-only hooks ' +\n '(useState, useContext, useRouter, etc.) being rendered in the RSC server environment without a ' +\n '\"use client\" directive at the top of its file.',\n )\n }\n throw new Error()\n }\n return d\n}\n"],
5
+ "mappings": "AAsDA,MAAM,MAAM,uBAAO,IAAI,uCAAuC;AAC9D,MAAM,IAAI;AAEH,MAAM,uBACX,EAAE,GAAG,MACJ,EAAE,GAAG,IAAI;EACR,GAAG;EACH,GAAG;EACH,GAAG;;AAGD,SAAU,gBAAa;AAC3B,QAAM,IAAI,qBAAqB;AAC/B,MAAI,CAAC,GAAG;AACN,QAAI,yBAAyB,cAAc;AACzC,YAAM,IAAI,MACR,oSAGkD;IAEtD;AACA,UAAM,IAAI,MAAK;EACjB;AACA,SAAO;AACT;",
6
+ "names": []
7
+ }
@@ -0,0 +1,15 @@
1
+ export declare const REACT_SUSPENSE_TYPE: unique symbol;
2
+ export declare const REACT_STRICT_MODE_TYPE: unique symbol;
3
+ export declare const REACT_PROFILER_TYPE: unique symbol;
4
+ export declare const Suspense: (props: {
5
+ children?: any;
6
+ fallback?: any;
7
+ }) => any;
8
+ export declare const StrictMode: (props: {
9
+ children?: any;
10
+ }) => any;
11
+ export declare const Profiler: (props: {
12
+ id: string;
13
+ onRender?: any;
14
+ children?: any;
15
+ }) => any;
@@ -0,0 +1,15 @@
1
+ const REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense");
2
+ const REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode");
3
+ const REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler");
4
+ const Suspense = REACT_SUSPENSE_TYPE;
5
+ const StrictMode = REACT_STRICT_MODE_TYPE;
6
+ const Profiler = REACT_PROFILER_TYPE;
7
+ export {
8
+ Profiler,
9
+ REACT_PROFILER_TYPE,
10
+ REACT_STRICT_MODE_TYPE,
11
+ REACT_SUSPENSE_TYPE,
12
+ StrictMode,
13
+ Suspense
14
+ };
15
+ //# sourceMappingURL=suspense.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/react/suspense.ts"],
4
+ "sourcesContent": ["export const REACT_SUSPENSE_TYPE = Symbol.for('react.suspense')\nexport const REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode')\nexport const REACT_PROFILER_TYPE = Symbol.for('react.profiler')\n\nexport const Suspense = REACT_SUSPENSE_TYPE as any as (props: {\n children?: any\n fallback?: any\n}) => any\n\nexport const StrictMode = REACT_STRICT_MODE_TYPE as any as (props: {\n children?: any\n}) => any\n\nexport const Profiler = REACT_PROFILER_TYPE as any as (props: {\n id: string\n onRender?: any\n children?: any\n}) => any\n"],
5
+ "mappings": "AAAO,MAAM,sBAAsB,uBAAO,IAAI,gBAAgB;AACvD,MAAM,yBAAyB,uBAAO,IAAI,mBAAmB;AAC7D,MAAM,sBAAsB,uBAAO,IAAI,gBAAgB;AAEvD,MAAM,WAAW;AAKjB,MAAM,aAAa;AAInB,MAAM,WAAW;",
6
+ "names": []
7
+ }
@@ -0,0 +1 @@
1
+ export declare function readThenable<T>(thenable: PromiseLike<T>, state?: any): T;
@@ -0,0 +1,25 @@
1
+ function readThenable(thenable, state = thenable) {
2
+ if (state.status === void 0) {
3
+ state.status = "pending";
4
+ thenable.then((value) => {
5
+ if (state.status === "pending") {
6
+ state.status = "fulfilled";
7
+ state.value = value;
8
+ }
9
+ }, (reason) => {
10
+ if (state.status === "pending") {
11
+ state.status = "rejected";
12
+ state.reason = reason;
13
+ }
14
+ });
15
+ }
16
+ if (state.status === "fulfilled")
17
+ return state.value;
18
+ if (state.status === "rejected")
19
+ throw state.reason;
20
+ throw thenable;
21
+ }
22
+ export {
23
+ readThenable
24
+ };
25
+ //# sourceMappingURL=thenable.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/react/thenable.ts"],
4
+ "sourcesContent": ["// Lazy owns a record so it can also read frozen promises. use() adopts the\n// status fields shared with React and Flight on the thenable itself.\nexport function readThenable<T>(thenable: PromiseLike<T>, state: any = thenable): T {\n if (state.status === undefined) {\n state.status = 'pending'\n thenable.then(value => {\n if (state.status === 'pending') {\n state.status = 'fulfilled'\n state.value = value\n }\n }, reason => {\n if (state.status === 'pending') {\n state.status = 'rejected'\n state.reason = reason\n }\n })\n }\n if (state.status === 'fulfilled') return state.value\n if (state.status === 'rejected') throw state.reason\n throw thenable\n}\n"],
5
+ "mappings": "AAEM,SAAU,aAAgB,UAA0B,QAAa,UAAQ;AAC7E,MAAI,MAAM,WAAW,QAAW;AAC9B,UAAM,SAAS;AACf,aAAS,KAAK,WAAQ;AACpB,UAAI,MAAM,WAAW,WAAW;AAC9B,cAAM,SAAS;AACf,cAAM,QAAQ;MAChB;IACF,GAAG,YAAS;AACV,UAAI,MAAM,WAAW,WAAW;AAC9B,cAAM,SAAS;AACf,cAAM,SAAS;MACjB;IACF,CAAC;EACH;AACA,MAAI,MAAM,WAAW;AAAa,WAAO,MAAM;AAC/C,MAAI,MAAM,WAAW;AAAY,UAAM,MAAM;AAC7C,QAAM;AACR;",
6
+ "names": []
7
+ }
@@ -0,0 +1,32 @@
1
+ import type { ReactNode } from "../core/index.js";
2
+ export declare const REACT_VIEW_TRANSITION_TYPE: unique symbol;
3
+ export type ViewTransitionClass = string | Record<string, string>;
4
+ export interface ViewTransitionPseudoElement {
5
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
6
+ getAnimations(): Animation[];
7
+ getComputedStyle(): CSSStyleDeclaration;
8
+ }
9
+ export interface ViewTransitionInstance {
10
+ name: string;
11
+ group: ViewTransitionPseudoElement;
12
+ imagePair: ViewTransitionPseudoElement;
13
+ old: ViewTransitionPseudoElement;
14
+ new: ViewTransitionPseudoElement;
15
+ }
16
+ type ViewTransitionEvent = (instance: ViewTransitionInstance, types: string[]) => void | (() => void);
17
+ export interface ViewTransitionProps {
18
+ children?: ReactNode;
19
+ name?: string | Record<string, string> | undefined;
20
+ default?: ViewTransitionClass | undefined;
21
+ enter?: ViewTransitionClass | undefined;
22
+ exit?: ViewTransitionClass | undefined;
23
+ update?: ViewTransitionClass | undefined;
24
+ share?: ViewTransitionClass | undefined;
25
+ onEnter?: ViewTransitionEvent | undefined;
26
+ onExit?: ViewTransitionEvent | undefined;
27
+ onUpdate?: ViewTransitionEvent | undefined;
28
+ onShare?: ViewTransitionEvent | undefined;
29
+ }
30
+ export declare const ViewTransition: (props: ViewTransitionProps) => any;
31
+ export declare function addTransitionType(type: string): void;
32
+ export {};
@@ -0,0 +1,12 @@
1
+ import { ReactSharedInternals } from "./shared-internals.js";
2
+ const REACT_VIEW_TRANSITION_TYPE = /* @__PURE__ */ Symbol.for("react.view_transition");
3
+ const ViewTransition = REACT_VIEW_TRANSITION_TYPE;
4
+ function addTransitionType(type) {
5
+ ReactSharedInternals.T?.add(type);
6
+ }
7
+ export {
8
+ REACT_VIEW_TRANSITION_TYPE,
9
+ ViewTransition,
10
+ addTransitionType
11
+ };
12
+ //# sourceMappingURL=view-transition.js.map