@bleedingdev/tanstack-redact 0.0.0-stage → 0.2.2
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.
- package/LICENSE +21 -0
- package/dist/cloudflare/index.d.ts +6 -0
- package/dist/cloudflare/index.js +39 -0
- package/dist/cloudflare/index.js.map +7 -0
- package/dist/core/attributes.d.ts +4 -0
- package/dist/core/attributes.js +30 -0
- package/dist/core/attributes.js.map +7 -0
- package/dist/core/browser.d.ts +9 -0
- package/dist/core/browser.js +32 -0
- package/dist/core/browser.js.map +7 -0
- package/dist/core/class-props.d.ts +1 -0
- package/dist/core/class-props.js +15 -0
- package/dist/core/class-props.js.map +7 -0
- package/dist/core/devtools.d.ts +26 -0
- package/dist/core/devtools.js +70 -0
- package/dist/core/devtools.js.map +7 -0
- package/dist/core/functions.d.ts +6 -0
- package/dist/core/functions.js +14 -0
- package/dist/core/functions.js.map +7 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +3 -0
- package/dist/core/index.js.map +7 -0
- package/dist/core/internal.d.ts +103 -0
- package/dist/core/internal.js +43 -0
- package/dist/core/internal.js.map +7 -0
- package/dist/core/resource-hints.d.ts +7 -0
- package/dist/core/resource-hints.js +20 -0
- package/dist/core/resource-hints.js.map +7 -0
- package/dist/core/types.d.ts +23 -0
- package/dist/core/types.js +8 -0
- package/dist/core/types.js.map +7 -0
- package/dist/core/unitless-style.d.ts +1 -0
- package/dist/core/unitless-style.js +5 -0
- package/dist/core/unitless-style.js.map +7 -0
- package/dist/dom/_all.d.ts +27 -0
- package/dist/dom/_all.js +51 -0
- package/dist/dom/_all.js.map +7 -0
- package/dist/dom/client.d.ts +9 -0
- package/dist/dom/client.js +13 -0
- package/dist/dom/client.js.map +7 -0
- package/dist/dom/commit.d.ts +27 -0
- package/dist/dom/commit.js +237 -0
- package/dist/dom/commit.js.map +7 -0
- package/dist/dom/devtools-effects.d.ts +8 -0
- package/dist/dom/devtools-effects.js +80 -0
- package/dist/dom/devtools-effects.js.map +7 -0
- package/dist/dom/devtools.d.ts +33 -0
- package/dist/dom/devtools.js +635 -0
- package/dist/dom/devtools.js.map +7 -0
- package/dist/dom/dispatcher.d.ts +4 -0
- package/dist/dom/dispatcher.js +437 -0
- package/dist/dom/dispatcher.js.map +7 -0
- package/dist/dom/document-metadata.d.ts +7 -0
- package/dist/dom/document-metadata.js +44 -0
- package/dist/dom/document-metadata.js.map +7 -0
- package/dist/dom/dom.d.ts +11 -0
- package/dist/dom/dom.js +165 -0
- package/dist/dom/dom.js.map +7 -0
- package/dist/dom/error-info.d.ts +2 -0
- package/dist/dom/error-info.js +19 -0
- package/dist/dom/error-info.js.map +7 -0
- package/dist/dom/event-replay.d.ts +13 -0
- package/dist/dom/event-replay.js +24 -0
- package/dist/dom/event-replay.js.map +7 -0
- package/dist/dom/features/activity/full.d.ts +1 -0
- package/dist/dom/features/activity/full.js +140 -0
- package/dist/dom/features/activity/full.js.map +7 -0
- package/dist/dom/features/activity/index.d.ts +1 -0
- package/dist/dom/features/activity/index.js +2 -0
- package/dist/dom/features/activity/index.js.map +7 -0
- package/dist/dom/features/activity/stub.d.ts +1 -0
- package/dist/dom/features/activity/stub.js +10 -0
- package/dist/dom/features/activity/stub.js.map +7 -0
- package/dist/dom/features/class/full.d.ts +1 -0
- package/dist/dom/features/class/full.js +208 -0
- package/dist/dom/features/class/full.js.map +7 -0
- package/dist/dom/features/class/index.d.ts +1 -0
- package/dist/dom/features/class/index.js +2 -0
- package/dist/dom/features/class/index.js.map +7 -0
- package/dist/dom/features/class/stub.d.ts +1 -0
- package/dist/dom/features/class/stub.js +46 -0
- package/dist/dom/features/class/stub.js.map +7 -0
- package/dist/dom/features/context/full.d.ts +4 -0
- package/dist/dom/features/context/full.js +103 -0
- package/dist/dom/features/context/full.js.map +7 -0
- package/dist/dom/features/context/index.d.ts +1 -0
- package/dist/dom/features/context/index.js +2 -0
- package/dist/dom/features/context/index.js.map +7 -0
- package/dist/dom/features/context/stub.d.ts +4 -0
- package/dist/dom/features/context/stub.js +21 -0
- package/dist/dom/features/context/stub.js.map +7 -0
- package/dist/dom/features/forward-ref/full.d.ts +1 -0
- package/dist/dom/features/forward-ref/full.js +9 -0
- package/dist/dom/features/forward-ref/full.js.map +7 -0
- package/dist/dom/features/forward-ref/index.d.ts +1 -0
- package/dist/dom/features/forward-ref/index.js +2 -0
- package/dist/dom/features/forward-ref/index.js.map +7 -0
- package/dist/dom/features/forward-ref/stub.d.ts +1 -0
- package/dist/dom/features/forward-ref/stub.js +9 -0
- package/dist/dom/features/forward-ref/stub.js.map +7 -0
- package/dist/dom/features/fragment-refs/index.d.ts +1 -0
- package/dist/dom/features/fragment-refs/index.js +9 -0
- package/dist/dom/features/fragment-refs/index.js.map +7 -0
- package/dist/dom/features/fragment-refs/stub.d.ts +5 -0
- package/dist/dom/features/fragment-refs/stub.js +17 -0
- package/dist/dom/features/fragment-refs/stub.js.map +7 -0
- package/dist/dom/features/hydration/full.d.ts +68 -0
- package/dist/dom/features/hydration/full.js +493 -0
- package/dist/dom/features/hydration/full.js.map +7 -0
- package/dist/dom/features/hydration/index.d.ts +1 -0
- package/dist/dom/features/hydration/index.js +2 -0
- package/dist/dom/features/hydration/index.js.map +7 -0
- package/dist/dom/features/hydration/stub.d.ts +36 -0
- package/dist/dom/features/hydration/stub.js +80 -0
- package/dist/dom/features/hydration/stub.js.map +7 -0
- package/dist/dom/features/index.d.ts +8 -0
- package/dist/dom/features/index.js +9 -0
- package/dist/dom/features/index.js.map +7 -0
- package/dist/dom/features/lazy/full.d.ts +1 -0
- package/dist/dom/features/lazy/full.js +23 -0
- package/dist/dom/features/lazy/full.js.map +7 -0
- package/dist/dom/features/lazy/index.d.ts +1 -0
- package/dist/dom/features/lazy/index.js +2 -0
- package/dist/dom/features/lazy/index.js.map +7 -0
- package/dist/dom/features/lazy/stub.d.ts +1 -0
- package/dist/dom/features/lazy/stub.js +19 -0
- package/dist/dom/features/lazy/stub.js.map +7 -0
- package/dist/dom/features/memo/full.d.ts +1 -0
- package/dist/dom/features/memo/full.js +34 -0
- package/dist/dom/features/memo/full.js.map +7 -0
- package/dist/dom/features/memo/index.d.ts +1 -0
- package/dist/dom/features/memo/index.js +2 -0
- package/dist/dom/features/memo/index.js.map +7 -0
- package/dist/dom/features/memo/stub.d.ts +1 -0
- package/dist/dom/features/memo/stub.js +9 -0
- package/dist/dom/features/memo/stub.js.map +7 -0
- package/dist/dom/features/portal/full.d.ts +1 -0
- package/dist/dom/features/portal/full.js +11 -0
- package/dist/dom/features/portal/full.js.map +7 -0
- package/dist/dom/features/portal/index.d.ts +1 -0
- package/dist/dom/features/portal/index.js +2 -0
- package/dist/dom/features/portal/index.js.map +7 -0
- package/dist/dom/features/portal/stub.d.ts +1 -0
- package/dist/dom/features/portal/stub.js +5 -0
- package/dist/dom/features/portal/stub.js.map +7 -0
- package/dist/dom/features/suspense/full.d.ts +1 -0
- package/dist/dom/features/suspense/full.js +389 -0
- package/dist/dom/features/suspense/full.js.map +7 -0
- package/dist/dom/features/suspense/index.d.ts +1 -0
- package/dist/dom/features/suspense/index.js +2 -0
- package/dist/dom/features/suspense/index.js.map +7 -0
- package/dist/dom/features/suspense/stub.d.ts +1 -0
- package/dist/dom/features/suspense/stub.js +4 -0
- package/dist/dom/features/suspense/stub.js.map +7 -0
- package/dist/dom/features/suspense-runtime/index.d.ts +1 -0
- package/dist/dom/features/suspense-runtime/index.js +2 -0
- package/dist/dom/features/suspense-runtime/index.js.map +7 -0
- package/dist/dom/features/suspense-runtime/stub.d.ts +1 -0
- package/dist/dom/features/suspense-runtime/stub.js +11 -0
- package/dist/dom/features/suspense-runtime/stub.js.map +7 -0
- package/dist/dom/features/view-transition/full.d.ts +7 -0
- package/dist/dom/features/view-transition/full.js +324 -0
- package/dist/dom/features/view-transition/full.js.map +7 -0
- package/dist/dom/features/view-transition/index.d.ts +1 -0
- package/dist/dom/features/view-transition/index.js +2 -0
- package/dist/dom/features/view-transition/index.js.map +7 -0
- package/dist/dom/features/view-transition/resources.d.ts +11 -0
- package/dist/dom/features/view-transition/resources.js +117 -0
- package/dist/dom/features/view-transition/resources.js.map +7 -0
- package/dist/dom/features/view-transition/stub.d.ts +7 -0
- package/dist/dom/features/view-transition/stub.js +21 -0
- package/dist/dom/features/view-transition/stub.js.map +7 -0
- package/dist/dom/features/view-transition/visual.d.ts +14 -0
- package/dist/dom/features/view-transition/visual.js +404 -0
- package/dist/dom/features/view-transition/visual.js.map +7 -0
- package/dist/dom/form-actions.d.ts +4 -0
- package/dist/dom/form-actions.js +74 -0
- package/dist/dom/form-actions.js.map +7 -0
- package/dist/dom/form-controls.d.ts +3 -0
- package/dist/dom/form-controls.js +91 -0
- package/dist/dom/form-controls.js.map +7 -0
- package/dist/dom/fragment-instance.d.ts +33 -0
- package/dist/dom/fragment-instance.js +449 -0
- package/dist/dom/fragment-instance.js.map +7 -0
- package/dist/dom/index.d.ts +61 -0
- package/dist/dom/index.js +71 -0
- package/dist/dom/index.js.map +7 -0
- package/dist/dom/portal.d.ts +2 -0
- package/dist/dom/portal.js +14 -0
- package/dist/dom/portal.js.map +7 -0
- package/dist/dom/react-ids.d.ts +6 -0
- package/dist/dom/react-ids.js +38 -0
- package/dist/dom/react-ids.js.map +7 -0
- package/dist/dom/reconcile.d.ts +86 -0
- package/dist/dom/reconcile.js +1305 -0
- package/dist/dom/reconcile.js.map +7 -0
- package/dist/dom/refresh.d.ts +12 -0
- package/dist/dom/refresh.js +174 -0
- package/dist/dom/refresh.js.map +7 -0
- package/dist/dom/resource-hints.d.ts +6 -0
- package/dist/dom/resource-hints.js +107 -0
- package/dist/dom/resource-hints.js.map +7 -0
- package/dist/dom/resource-store.d.ts +13 -0
- package/dist/dom/resource-store.js +47 -0
- package/dist/dom/resource-store.js.map +7 -0
- package/dist/dom/resources.d.ts +1 -0
- package/dist/dom/resources.js +46 -0
- package/dist/dom/resources.js.map +7 -0
- package/dist/dom/retained-effects.d.ts +6 -0
- package/dist/dom/retained-effects.js +67 -0
- package/dist/dom/retained-effects.js.map +7 -0
- package/dist/dom/root-internal.d.ts +11 -0
- package/dist/dom/root-internal.js +35 -0
- package/dist/dom/root-internal.js.map +7 -0
- package/dist/dom/root.d.ts +17 -0
- package/dist/dom/root.js +38 -0
- package/dist/dom/root.js.map +7 -0
- package/dist/dom/synthetic-event.d.ts +1 -0
- package/dist/dom/synthetic-event.js +37 -0
- package/dist/dom/synthetic-event.js.map +7 -0
- package/dist/dom/test-utils.d.ts +1 -0
- package/dist/dom/test-utils.js +5 -0
- package/dist/dom/test-utils.js.map +7 -0
- package/dist/dom/transitions.d.ts +9 -0
- package/dist/dom/transitions.js +147 -0
- package/dist/dom/transitions.js.map +7 -0
- package/dist/dom/tree.d.ts +5 -0
- package/dist/dom/tree.js +62 -0
- package/dist/dom/tree.js.map +7 -0
- package/dist/dom/walk.d.ts +2 -0
- package/dist/dom/walk.js +14 -0
- package/dist/dom/walk.js.map +7 -0
- package/dist/next/client.d.ts +9 -0
- package/dist/next/client.js +14 -0
- package/dist/next/client.js.map +7 -0
- package/dist/next/dev-cache-loader.cjs +13 -0
- package/dist/next/index.d.ts +2 -0
- package/dist/next/index.js +97 -0
- package/dist/next/index.js.map +7 -0
- package/dist/next/loader.cjs +10 -0
- package/dist/next/react.d.ts +71 -0
- package/dist/next/react.js +9 -0
- package/dist/next/react.js.map +7 -0
- package/dist/react/act.d.ts +3 -0
- package/dist/react/act.js +124 -0
- package/dist/react/act.js.map +7 -0
- package/dist/react/action-scope.d.ts +17 -0
- package/dist/react/action-scope.js +60 -0
- package/dist/react/action-scope.js.map +7 -0
- package/dist/react/activity.d.ts +7 -0
- package/dist/react/activity.js +7 -0
- package/dist/react/activity.js.map +7 -0
- package/dist/react/children.d.ts +8 -0
- package/dist/react/children.js +76 -0
- package/dist/react/children.js.map +7 -0
- package/dist/react/class.d.ts +36 -0
- package/dist/react/class.js +39 -0
- package/dist/react/class.js.map +7 -0
- package/dist/react/compiler-runtime.d.ts +1 -0
- package/dist/react/compiler-runtime.js +9 -0
- package/dist/react/compiler-runtime.js.map +7 -0
- package/dist/react/context.d.ts +32 -0
- package/dist/react/context.js +25 -0
- package/dist/react/context.js.map +7 -0
- package/dist/react/element.d.ts +13 -0
- package/dist/react/element.js +70 -0
- package/dist/react/element.js.map +7 -0
- package/dist/react/form-state.d.ts +26 -0
- package/dist/react/form-state.js +30 -0
- package/dist/react/form-state.js.map +7 -0
- package/dist/react/hooks.d.ts +67 -0
- package/dist/react/hooks.js +165 -0
- package/dist/react/hooks.js.map +7 -0
- package/dist/react/index.d.ts +99 -0
- package/dist/react/index.js +143 -0
- package/dist/react/index.js.map +7 -0
- package/dist/react/jsx-runtime.d.ts +24 -0
- package/dist/react/jsx-runtime.js +37 -0
- package/dist/react/jsx-runtime.js.map +7 -0
- package/dist/react/memo.d.ts +20 -0
- package/dist/react/memo.js +27 -0
- package/dist/react/memo.js.map +7 -0
- package/dist/react/portal.d.ts +1 -0
- package/dist/react/portal.js +5 -0
- package/dist/react/portal.js.map +7 -0
- package/dist/react/shared-internals.d.ts +52 -0
- package/dist/react/shared-internals.js +22 -0
- package/dist/react/shared-internals.js.map +7 -0
- package/dist/react/suspense.d.ts +15 -0
- package/dist/react/suspense.js +15 -0
- package/dist/react/suspense.js.map +7 -0
- package/dist/react/thenable.d.ts +1 -0
- package/dist/react/thenable.js +25 -0
- package/dist/react/thenable.js.map +7 -0
- package/dist/react/view-transition.d.ts +32 -0
- package/dist/react/view-transition.js +12 -0
- package/dist/react/view-transition.js.map +7 -0
- package/dist/scheduler/index.d.ts +44 -0
- package/dist/scheduler/index.js +109 -0
- package/dist/scheduler/index.js.map +7 -0
- package/dist/server/bootstrap-script.d.ts +3 -0
- package/dist/server/bootstrap-script.js +17 -0
- package/dist/server/bootstrap-script.js.map +7 -0
- package/dist/server/dispatcher.d.ts +57 -0
- package/dist/server/dispatcher.js +157 -0
- package/dist/server/dispatcher.js.map +7 -0
- package/dist/server/escape.d.ts +6 -0
- package/dist/server/escape.js +75 -0
- package/dist/server/escape.js.map +7 -0
- package/dist/server/index.d.ts +16 -0
- package/dist/server/index.js +25 -0
- package/dist/server/index.js.map +7 -0
- package/dist/server/insertion-context.d.ts +3 -0
- package/dist/server/insertion-context.js +32 -0
- package/dist/server/renderToString.d.ts +7 -0
- package/dist/server/renderToString.js +33 -0
- package/dist/server/renderToString.js.map +7 -0
- package/dist/server/resource-hints.d.ts +22 -0
- package/dist/server/resource-hints.js +168 -0
- package/dist/server/resource-hints.js.map +7 -0
- package/dist/server/stream-ids.d.ts +3 -0
- package/dist/server/stream-ids.js +8 -0
- package/dist/server/stream.d.ts +61 -0
- package/dist/server/stream.js +418 -0
- package/dist/server/stream.js.map +7 -0
- package/dist/server/walk.d.ts +58 -0
- package/dist/server/walk.js +378 -0
- package/dist/server/walk.js.map +7 -0
- package/dist/vinext/compatibility.d.ts +23 -0
- package/dist/vinext/compatibility.js +127 -0
- package/dist/vinext/compatibility.js.map +7 -0
- package/dist/vinext/flight-timing.d.ts +1 -0
- package/dist/vinext/flight-timing.js +46 -0
- package/dist/vinext/flight-timing.js.map +7 -0
- package/dist/vinext/index.d.ts +5 -0
- package/dist/vinext/index.js +50 -0
- package/dist/vinext/index.js.map +7 -0
- package/dist/vite/index.d.ts +102 -0
- package/dist/vite/index.js +291 -0
- package/dist/vite/index.js.map +7 -0
- package/dist/vite/react18.d.ts +4 -0
- package/dist/vite/react18.js +74 -0
- package/dist/vite/react18.js.map +7 -0
- package/package.json +121 -4
- package/src/cloudflare/index.ts +44 -0
- package/src/core/attributes.ts +20 -0
- package/src/core/browser.ts +34 -0
- package/src/core/class-props.ts +12 -0
- package/src/core/devtools.ts +69 -0
- package/src/core/functions.ts +11 -0
- package/src/core/index.ts +2 -0
- package/src/core/internal.ts +123 -0
- package/src/core/resource-hints.ts +39 -0
- package/src/core/types.ts +39 -0
- package/src/core/unitless-style.ts +1 -0
- package/src/dom/_all.ts +46 -0
- package/src/dom/client.ts +17 -0
- package/src/dom/commit.ts +223 -0
- package/src/dom/devtools-effects.ts +78 -0
- package/src/dom/devtools.ts +527 -0
- package/src/dom/dispatcher.ts +476 -0
- package/src/dom/document-metadata.ts +41 -0
- package/src/dom/dom.ts +181 -0
- package/src/dom/error-info.ts +20 -0
- package/src/dom/event-replay.ts +39 -0
- package/src/dom/features/activity/full.ts +150 -0
- package/src/dom/features/activity/index.ts +1 -0
- package/src/dom/features/activity/stub.ts +12 -0
- package/src/dom/features/class/full.ts +202 -0
- package/src/dom/features/class/index.ts +1 -0
- package/src/dom/features/class/stub.ts +58 -0
- package/src/dom/features/context/full.ts +107 -0
- package/src/dom/features/context/index.ts +1 -0
- package/src/dom/features/context/stub.ts +26 -0
- package/src/dom/features/forward-ref/full.ts +9 -0
- package/src/dom/features/forward-ref/index.ts +1 -0
- package/src/dom/features/forward-ref/stub.ts +15 -0
- package/src/dom/features/fragment-refs/index.ts +1 -0
- package/src/dom/features/fragment-refs/stub.ts +6 -0
- package/src/dom/features/hydration/full.ts +563 -0
- package/src/dom/features/hydration/index.ts +1 -0
- package/src/dom/features/hydration/stub.ts +86 -0
- package/src/dom/features/index.ts +12 -0
- package/src/dom/features/lazy/full.ts +27 -0
- package/src/dom/features/lazy/index.ts +1 -0
- package/src/dom/features/lazy/stub.ts +24 -0
- package/src/dom/features/memo/full.ts +39 -0
- package/src/dom/features/memo/index.ts +1 -0
- package/src/dom/features/memo/stub.ts +13 -0
- package/src/dom/features/portal/full.ts +14 -0
- package/src/dom/features/portal/index.ts +1 -0
- package/src/dom/features/portal/stub.ts +11 -0
- package/src/dom/features/suspense/full.ts +469 -0
- package/src/dom/features/suspense/index.ts +1 -0
- package/src/dom/features/suspense/stub.ts +13 -0
- package/src/dom/features/suspense-runtime/index.ts +1 -0
- package/src/dom/features/suspense-runtime/stub.ts +1 -0
- package/src/dom/features/view-transition/full.ts +292 -0
- package/src/dom/features/view-transition/index.ts +1 -0
- package/src/dom/features/view-transition/resources.ts +123 -0
- package/src/dom/features/view-transition/stub.ts +8 -0
- package/src/dom/features/view-transition/visual.ts +454 -0
- package/src/dom/form-actions.ts +69 -0
- package/src/dom/form-controls.ts +91 -0
- package/src/dom/fragment-instance.ts +462 -0
- package/src/dom/index.ts +49 -0
- package/src/dom/portal.ts +16 -0
- package/src/dom/react-ids.ts +36 -0
- package/src/dom/reconcile.ts +1423 -0
- package/src/dom/refresh.ts +171 -0
- package/src/dom/resource-hints.ts +104 -0
- package/src/dom/resource-store.ts +50 -0
- package/src/dom/resources.ts +47 -0
- package/src/dom/retained-effects.ts +57 -0
- package/src/dom/root-internal.ts +37 -0
- package/src/dom/root.ts +59 -0
- package/src/dom/synthetic-event.ts +27 -0
- package/src/dom/test-utils.ts +1 -0
- package/src/dom/transitions.ts +141 -0
- package/src/dom/tree.ts +56 -0
- package/src/dom/walk.ts +8 -0
- package/src/next/client.ts +10 -0
- package/src/next/dev-cache-loader.cjs +13 -0
- package/src/next/index.ts +95 -0
- package/src/next/loader.cjs +10 -0
- package/src/next/react.ts +7 -0
- package/src/react/act.ts +105 -0
- package/src/react/action-scope.ts +57 -0
- package/src/react/activity.ts +10 -0
- package/src/react/children.ts +86 -0
- package/src/react/class.ts +66 -0
- package/src/react/compiler-runtime.ts +8 -0
- package/src/react/context.ts +46 -0
- package/src/react/element.ts +82 -0
- package/src/react/form-state.ts +35 -0
- package/src/react/hooks.ts +214 -0
- package/src/react/index.ts +91 -0
- package/src/react/jsx-runtime.ts +50 -0
- package/src/react/memo.ts +42 -0
- package/src/react/portal.ts +1 -0
- package/src/react/shared-internals.ts +80 -0
- package/src/react/suspense.ts +18 -0
- package/src/react/thenable.ts +21 -0
- package/src/react/view-transition.ts +41 -0
- package/src/scheduler/index.ts +124 -0
- package/src/server/bootstrap-script.ts +92 -0
- package/src/server/dispatcher.ts +168 -0
- package/src/server/escape.ts +102 -0
- package/src/server/index.ts +26 -0
- package/src/server/insertion-context.ts +28 -0
- package/src/server/renderToString.ts +35 -0
- package/src/server/resource-hints.ts +166 -0
- package/src/server/stream-ids.ts +5 -0
- package/src/server/stream.ts +525 -0
- package/src/server/walk.ts +555 -0
- package/src/vinext/compatibility.ts +122 -0
- package/src/vinext/flight-timing.ts +37 -0
- package/src/vinext/index.ts +47 -0
- package/src/vite/index.ts +476 -0
- package/src/vite/react18.ts +74 -0
- package/vendor/cloudflare-vite-plugin/LICENSE +25 -0
- package/vendor/cloudflare-vite-plugin/README.md +9 -0
- package/vendor/cloudflare-vite-plugin/dist/chunk-U6NEESU5-BmLHqeIt.mjs +43 -0
- package/vendor/cloudflare-vite-plugin/dist/index.d.mts +155 -0
- package/vendor/cloudflare-vite-plugin/dist/index.mjs +94700 -0
- package/vendor/cloudflare-vite-plugin/dist/open-PCXX3ZDZ-DYH87NhH.mjs +530 -0
- package/vendor/cloudflare-vite-plugin/dist/package-4cnqy5mM.mjs +84 -0
- package/vendor/cloudflare-vite-plugin/dist/workers/asset-worker/index.js +5996 -0
- package/vendor/cloudflare-vite-plugin/dist/workers/router-worker/index.js +6414 -0
- package/vendor/cloudflare-vite-plugin/dist/workers/runner-worker/index.js +457 -0
- package/vendor/cloudflare-vite-plugin/dist/workers/runner-worker/module-runner-legacy.js +1129 -0
- package/vendor/cloudflare-vite-plugin/dist/workers/runner-worker/module-runner.js +1259 -0
- package/vendor/cloudflare-vite-plugin/dist/workers/vite-proxy-worker/index.js +31 -0
- package/vendor/cloudflare-vite-plugin/package.json +90 -0
- package/vendor/cloudflare-vite-plugin/provenance.json +26 -0
- package/README.md +0 -3
package/src/dom/_all.ts
ADDED
|
@@ -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
|
+
}
|