react-dom 19.1.0-canary-4dff0e62-20241213 → 19.1.0-canary-e06c72fc-20241215
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/cjs/react-dom-client.development.js +365 -419
- package/cjs/react-dom-client.production.js +358 -357
- package/cjs/react-dom-profiling.development.js +365 -419
- package/cjs/react-dom-profiling.profiling.js +358 -357
- package/cjs/react-dom-server-legacy.browser.development.js +10 -24
- package/cjs/react-dom-server-legacy.browser.production.js +101 -113
- package/cjs/react-dom-server-legacy.node.development.js +10 -24
- package/cjs/react-dom-server-legacy.node.production.js +106 -119
- package/cjs/react-dom-server.browser.development.js +12 -26
- package/cjs/react-dom-server.browser.production.js +82 -95
- package/cjs/react-dom-server.bun.development.js +88 -102
- package/cjs/react-dom-server.bun.production.js +90 -104
- package/cjs/react-dom-server.edge.development.js +12 -26
- package/cjs/react-dom-server.edge.production.js +87 -101
- package/cjs/react-dom-server.node.development.js +12 -26
- package/cjs/react-dom-server.node.production.js +87 -101
- package/cjs/react-dom.development.js +1 -1
- package/cjs/react-dom.production.js +1 -1
- package/cjs/react-dom.react-server.development.js +1 -1
- package/cjs/react-dom.react-server.production.js +1 -1
- package/package.json +3 -3
@@ -49,10 +49,8 @@ var React = require("react"),
|
|
49
49
|
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
50
50
|
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
51
51
|
REACT_SCOPE_TYPE = Symbol.for("react.scope"),
|
52
|
-
REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"),
|
53
52
|
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
|
54
53
|
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
|
55
|
-
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
|
56
54
|
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
|
57
55
|
isArrayImpl = Array.isArray;
|
58
56
|
function murmurhash3_32_gc(key, seed) {
|
@@ -3523,104 +3521,93 @@ function unwrapThenable(thenable) {
|
|
3523
3521
|
null === thenableState && (thenableState = []);
|
3524
3522
|
return trackUsedThenable(thenableState, thenable, index);
|
3525
3523
|
}
|
3526
|
-
function unsupportedRefresh() {
|
3527
|
-
throw Error("Cache cannot be refreshed during server rendering.");
|
3528
|
-
}
|
3529
3524
|
function noop$1() {}
|
3530
3525
|
var HooksDispatcher = {
|
3531
|
-
|
3532
|
-
|
3533
|
-
|
3534
|
-
|
3535
|
-
|
3536
|
-
|
3537
|
-
|
3526
|
+
readContext: function (context) {
|
3527
|
+
return context._currentValue;
|
3528
|
+
},
|
3529
|
+
use: function (usable) {
|
3530
|
+
if (null !== usable && "object" === typeof usable) {
|
3531
|
+
if ("function" === typeof usable.then) return unwrapThenable(usable);
|
3532
|
+
if (usable.$$typeof === REACT_CONTEXT_TYPE) return usable._currentValue;
|
3533
|
+
}
|
3534
|
+
throw Error("An unsupported type was passed to use(): " + String(usable));
|
3535
|
+
},
|
3536
|
+
useContext: function (context) {
|
3537
|
+
resolveCurrentlyRenderingComponent();
|
3538
|
+
return context._currentValue;
|
3539
|
+
},
|
3540
|
+
useMemo: useMemo,
|
3541
|
+
useReducer: useReducer,
|
3542
|
+
useRef: function (initialValue) {
|
3543
|
+
currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
|
3544
|
+
workInProgressHook = createWorkInProgressHook();
|
3545
|
+
var previousRef = workInProgressHook.memoizedState;
|
3546
|
+
return null === previousRef
|
3547
|
+
? ((initialValue = { current: initialValue }),
|
3548
|
+
(workInProgressHook.memoizedState = initialValue))
|
3549
|
+
: previousRef;
|
3550
|
+
},
|
3551
|
+
useState: function (initialState) {
|
3552
|
+
return useReducer(basicStateReducer, initialState);
|
3553
|
+
},
|
3554
|
+
useInsertionEffect: noop$1,
|
3555
|
+
useLayoutEffect: noop$1,
|
3556
|
+
useCallback: function (callback, deps) {
|
3557
|
+
return useMemo(function () {
|
3558
|
+
return callback;
|
3559
|
+
}, deps);
|
3560
|
+
},
|
3561
|
+
useImperativeHandle: noop$1,
|
3562
|
+
useEffect: noop$1,
|
3563
|
+
useDebugValue: noop$1,
|
3564
|
+
useDeferredValue: function (value, initialValue) {
|
3565
|
+
resolveCurrentlyRenderingComponent();
|
3566
|
+
return void 0 !== initialValue ? initialValue : value;
|
3567
|
+
},
|
3568
|
+
useTransition: function () {
|
3569
|
+
resolveCurrentlyRenderingComponent();
|
3570
|
+
return [!1, unsupportedStartTransition];
|
3571
|
+
},
|
3572
|
+
useId: function () {
|
3573
|
+
var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
|
3574
|
+
var overflow = JSCompiler_inline_result.overflow;
|
3575
|
+
JSCompiler_inline_result = JSCompiler_inline_result.id;
|
3576
|
+
JSCompiler_inline_result =
|
3577
|
+
(
|
3578
|
+
JSCompiler_inline_result &
|
3579
|
+
~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
|
3580
|
+
).toString(32) + overflow;
|
3581
|
+
var resumableState = currentResumableState;
|
3582
|
+
if (null === resumableState)
|
3583
|
+
throw Error(
|
3584
|
+
"Invalid hook call. Hooks can only be called inside of the body of a function component."
|
3585
|
+
);
|
3586
|
+
overflow = localIdCounter++;
|
3587
|
+
JSCompiler_inline_result =
|
3588
|
+
":" + resumableState.idPrefix + "R" + JSCompiler_inline_result;
|
3589
|
+
0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
|
3590
|
+
return JSCompiler_inline_result + ":";
|
3591
|
+
},
|
3592
|
+
useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
|
3593
|
+
if (void 0 === getServerSnapshot)
|
3594
|
+
throw Error(
|
3595
|
+
"Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering."
|
3596
|
+
);
|
3597
|
+
return getServerSnapshot();
|
3598
|
+
},
|
3599
|
+
useOptimistic: function (passthrough) {
|
3600
|
+
resolveCurrentlyRenderingComponent();
|
3601
|
+
return [passthrough, unsupportedSetOptimisticState];
|
3602
|
+
},
|
3603
|
+
useActionState: useActionState,
|
3604
|
+
useFormState: useActionState,
|
3605
|
+
useHostTransitionStatus: function () {
|
3606
|
+
resolveCurrentlyRenderingComponent();
|
3607
|
+
return sharedNotPendingObject;
|
3538
3608
|
}
|
3539
|
-
throw Error("An unsupported type was passed to use(): " + String(usable));
|
3540
3609
|
},
|
3541
|
-
|
3542
|
-
resolveCurrentlyRenderingComponent();
|
3543
|
-
return context._currentValue;
|
3544
|
-
},
|
3545
|
-
useMemo: useMemo,
|
3546
|
-
useReducer: useReducer,
|
3547
|
-
useRef: function (initialValue) {
|
3548
|
-
currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
|
3549
|
-
workInProgressHook = createWorkInProgressHook();
|
3550
|
-
var previousRef = workInProgressHook.memoizedState;
|
3551
|
-
return null === previousRef
|
3552
|
-
? ((initialValue = { current: initialValue }),
|
3553
|
-
(workInProgressHook.memoizedState = initialValue))
|
3554
|
-
: previousRef;
|
3555
|
-
},
|
3556
|
-
useState: function (initialState) {
|
3557
|
-
return useReducer(basicStateReducer, initialState);
|
3558
|
-
},
|
3559
|
-
useInsertionEffect: noop$1,
|
3560
|
-
useLayoutEffect: noop$1,
|
3561
|
-
useCallback: function (callback, deps) {
|
3562
|
-
return useMemo(function () {
|
3563
|
-
return callback;
|
3564
|
-
}, deps);
|
3565
|
-
},
|
3566
|
-
useImperativeHandle: noop$1,
|
3567
|
-
useEffect: noop$1,
|
3568
|
-
useDebugValue: noop$1,
|
3569
|
-
useDeferredValue: function (value, initialValue) {
|
3570
|
-
resolveCurrentlyRenderingComponent();
|
3571
|
-
return void 0 !== initialValue ? initialValue : value;
|
3572
|
-
},
|
3573
|
-
useTransition: function () {
|
3574
|
-
resolveCurrentlyRenderingComponent();
|
3575
|
-
return [!1, unsupportedStartTransition];
|
3576
|
-
},
|
3577
|
-
useId: function () {
|
3578
|
-
var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
|
3579
|
-
var overflow = JSCompiler_inline_result.overflow;
|
3580
|
-
JSCompiler_inline_result = JSCompiler_inline_result.id;
|
3581
|
-
JSCompiler_inline_result =
|
3582
|
-
(
|
3583
|
-
JSCompiler_inline_result &
|
3584
|
-
~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
|
3585
|
-
).toString(32) + overflow;
|
3586
|
-
var resumableState = currentResumableState;
|
3587
|
-
if (null === resumableState)
|
3588
|
-
throw Error(
|
3589
|
-
"Invalid hook call. Hooks can only be called inside of the body of a function component."
|
3590
|
-
);
|
3591
|
-
overflow = localIdCounter++;
|
3592
|
-
JSCompiler_inline_result =
|
3593
|
-
":" + resumableState.idPrefix + "R" + JSCompiler_inline_result;
|
3594
|
-
0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
|
3595
|
-
return JSCompiler_inline_result + ":";
|
3596
|
-
},
|
3597
|
-
useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
|
3598
|
-
if (void 0 === getServerSnapshot)
|
3599
|
-
throw Error(
|
3600
|
-
"Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering."
|
3601
|
-
);
|
3602
|
-
return getServerSnapshot();
|
3603
|
-
},
|
3604
|
-
useCacheRefresh: function () {
|
3605
|
-
return unsupportedRefresh;
|
3606
|
-
},
|
3607
|
-
useMemoCache: function (size) {
|
3608
|
-
for (var data = Array(size), i = 0; i < size; i++)
|
3609
|
-
data[i] = REACT_MEMO_CACHE_SENTINEL;
|
3610
|
-
return data;
|
3611
|
-
},
|
3612
|
-
useHostTransitionStatus: function () {
|
3613
|
-
resolveCurrentlyRenderingComponent();
|
3614
|
-
return sharedNotPendingObject;
|
3615
|
-
},
|
3616
|
-
useOptimistic: function (passthrough) {
|
3617
|
-
resolveCurrentlyRenderingComponent();
|
3618
|
-
return [passthrough, unsupportedSetOptimisticState];
|
3619
|
-
}
|
3620
|
-
};
|
3621
|
-
HooksDispatcher.useFormState = useActionState;
|
3622
|
-
HooksDispatcher.useActionState = useActionState;
|
3623
|
-
var currentResumableState = null,
|
3610
|
+
currentResumableState = null,
|
3624
3611
|
DefaultAsyncDispatcher = {
|
3625
3612
|
getCacheForType: function () {
|
3626
3613
|
throw Error("Not implemented.");
|
@@ -3787,7 +3774,7 @@ function describeComponentStackByType(type) {
|
|
3787
3774
|
if ("string" === typeof type) return describeBuiltInComponentFrame(type);
|
3788
3775
|
if ("function" === typeof type)
|
3789
3776
|
return type.prototype && type.prototype.isReactComponent
|
3790
|
-
?
|
3777
|
+
? describeNativeComponentFrame(type, !0)
|
3791
3778
|
: describeNativeComponentFrame(type, !1);
|
3792
3779
|
if ("object" === typeof type && null !== type) {
|
3793
3780
|
switch (type.$$typeof) {
|
@@ -4408,7 +4395,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4408
4395
|
else {
|
4409
4396
|
switch (type) {
|
4410
4397
|
case REACT_LEGACY_HIDDEN_TYPE:
|
4411
|
-
case REACT_DEBUG_TRACING_MODE_TYPE:
|
4412
4398
|
case REACT_STRICT_MODE_TYPE:
|
4413
4399
|
case REACT_PROFILER_TYPE:
|
4414
4400
|
case REACT_FRAGMENT_TYPE:
|
@@ -6049,11 +6035,11 @@ function abort(request, reason) {
|
|
6049
6035
|
}
|
6050
6036
|
function ensureCorrectIsomorphicReactVersion() {
|
6051
6037
|
var isomorphicReactPackageVersion = React.version;
|
6052
|
-
if ("19.1.0-canary-
|
6038
|
+
if ("19.1.0-canary-e06c72fc-20241215" !== isomorphicReactPackageVersion)
|
6053
6039
|
throw Error(
|
6054
6040
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
6055
6041
|
(isomorphicReactPackageVersion +
|
6056
|
-
"\n - react-dom: 19.1.0-canary-
|
6042
|
+
"\n - react-dom: 19.1.0-canary-e06c72fc-20241215\nLearn more: https://react.dev/warnings/version-mismatch")
|
6057
6043
|
);
|
6058
6044
|
}
|
6059
6045
|
ensureCorrectIsomorphicReactVersion();
|
@@ -6199,4 +6185,4 @@ exports.renderToReadableStream = function (children, options) {
|
|
6199
6185
|
startWork(request);
|
6200
6186
|
});
|
6201
6187
|
};
|
6202
|
-
exports.version = "19.1.0-canary-
|
6188
|
+
exports.version = "19.1.0-canary-e06c72fc-20241215";
|
@@ -2349,7 +2349,7 @@
|
|
2349
2349
|
: children$jscomp$6;
|
2350
2350
|
Array.isArray(children$jscomp$6) && 1 < children$jscomp$6.length
|
2351
2351
|
? console.error(
|
2352
|
-
"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be
|
2352
|
+
"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be common to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>.",
|
2353
2353
|
children$jscomp$6.length
|
2354
2354
|
)
|
2355
2355
|
: "function" === typeof child || "symbol" === typeof child
|
@@ -3915,9 +3915,6 @@
|
|
3915
3915
|
null === thenableState && (thenableState = []);
|
3916
3916
|
return trackUsedThenable(thenableState, thenable, index);
|
3917
3917
|
}
|
3918
|
-
function unsupportedRefresh() {
|
3919
|
-
throw Error("Cache cannot be refreshed during server rendering.");
|
3920
|
-
}
|
3921
3918
|
function noop$1() {}
|
3922
3919
|
function disabledLog() {}
|
3923
3920
|
function disableLogs() {
|
@@ -4148,7 +4145,7 @@
|
|
4148
4145
|
if ("string" === typeof type) return describeBuiltInComponentFrame(type);
|
4149
4146
|
if ("function" === typeof type)
|
4150
4147
|
return type.prototype && type.prototype.isReactComponent
|
4151
|
-
?
|
4148
|
+
? describeNativeComponentFrame(type, !0)
|
4152
4149
|
: describeNativeComponentFrame(type, !1);
|
4153
4150
|
if ("object" === typeof type && null !== type) {
|
4154
4151
|
switch (type.$$typeof) {
|
@@ -5187,7 +5184,6 @@
|
|
5187
5184
|
} else {
|
5188
5185
|
switch (type) {
|
5189
5186
|
case REACT_LEGACY_HIDDEN_TYPE:
|
5190
|
-
case REACT_DEBUG_TRACING_MODE_TYPE:
|
5191
5187
|
case REACT_STRICT_MODE_TYPE:
|
5192
5188
|
case REACT_PROFILER_TYPE:
|
5193
5189
|
case REACT_FRAGMENT_TYPE:
|
@@ -7194,11 +7190,11 @@
|
|
7194
7190
|
}
|
7195
7191
|
function ensureCorrectIsomorphicReactVersion() {
|
7196
7192
|
var isomorphicReactPackageVersion = React.version;
|
7197
|
-
if ("19.1.0-canary-
|
7193
|
+
if ("19.1.0-canary-e06c72fc-20241215" !== isomorphicReactPackageVersion)
|
7198
7194
|
throw Error(
|
7199
7195
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
7200
7196
|
(isomorphicReactPackageVersion +
|
7201
|
-
"\n - react-dom: 19.1.0-canary-
|
7197
|
+
"\n - react-dom: 19.1.0-canary-e06c72fc-20241215\nLearn more: https://react.dev/warnings/version-mismatch")
|
7202
7198
|
);
|
7203
7199
|
}
|
7204
7200
|
function createDrainHandler(destination, request) {
|
@@ -7275,10 +7271,8 @@
|
|
7275
7271
|
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
7276
7272
|
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
7277
7273
|
REACT_SCOPE_TYPE = Symbol.for("react.scope"),
|
7278
|
-
REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"),
|
7279
7274
|
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
|
7280
7275
|
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
|
7281
|
-
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
|
7282
7276
|
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
|
7283
7277
|
isArrayImpl = Array.isArray,
|
7284
7278
|
jsxPropsParents = new WeakMap(),
|
@@ -8672,26 +8666,18 @@
|
|
8672
8666
|
);
|
8673
8667
|
return getServerSnapshot();
|
8674
8668
|
},
|
8675
|
-
|
8676
|
-
|
8677
|
-
|
8678
|
-
useMemoCache: function (size) {
|
8679
|
-
for (var data = Array(size), i = 0; i < size; i++)
|
8680
|
-
data[i] = REACT_MEMO_CACHE_SENTINEL;
|
8681
|
-
return data;
|
8669
|
+
useOptimistic: function (passthrough) {
|
8670
|
+
resolveCurrentlyRenderingComponent();
|
8671
|
+
return [passthrough, unsupportedSetOptimisticState];
|
8682
8672
|
},
|
8673
|
+
useActionState: useActionState,
|
8674
|
+
useFormState: useActionState,
|
8683
8675
|
useHostTransitionStatus: function () {
|
8684
8676
|
resolveCurrentlyRenderingComponent();
|
8685
8677
|
return NotPending;
|
8686
|
-
},
|
8687
|
-
useOptimistic: function (passthrough) {
|
8688
|
-
resolveCurrentlyRenderingComponent();
|
8689
|
-
return [passthrough, unsupportedSetOptimisticState];
|
8690
8678
|
}
|
8691
|
-
}
|
8692
|
-
|
8693
|
-
HooksDispatcher.useActionState = useActionState;
|
8694
|
-
var currentResumableState = null,
|
8679
|
+
},
|
8680
|
+
currentResumableState = null,
|
8695
8681
|
currentTaskInDEV = null,
|
8696
8682
|
DefaultAsyncDispatcher = {
|
8697
8683
|
getCacheForType: function () {
|
@@ -8845,5 +8831,5 @@
|
|
8845
8831
|
}
|
8846
8832
|
};
|
8847
8833
|
};
|
8848
|
-
exports.version = "19.1.0-canary-
|
8834
|
+
exports.version = "19.1.0-canary-e06c72fc-20241215";
|
8849
8835
|
})();
|
@@ -29,10 +29,8 @@ var util = require("util"),
|
|
29
29
|
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
30
30
|
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
31
31
|
REACT_SCOPE_TYPE = Symbol.for("react.scope"),
|
32
|
-
REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"),
|
33
32
|
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
|
34
33
|
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
|
35
|
-
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
|
36
34
|
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
|
37
35
|
isArrayImpl = Array.isArray,
|
38
36
|
scheduleMicrotask = queueMicrotask;
|
@@ -3423,104 +3421,93 @@ function unwrapThenable(thenable) {
|
|
3423
3421
|
null === thenableState && (thenableState = []);
|
3424
3422
|
return trackUsedThenable(thenableState, thenable, index);
|
3425
3423
|
}
|
3426
|
-
function unsupportedRefresh() {
|
3427
|
-
throw Error("Cache cannot be refreshed during server rendering.");
|
3428
|
-
}
|
3429
3424
|
function noop$1() {}
|
3430
3425
|
var HooksDispatcher = {
|
3431
|
-
|
3432
|
-
|
3433
|
-
|
3434
|
-
|
3435
|
-
|
3436
|
-
|
3437
|
-
|
3426
|
+
readContext: function (context) {
|
3427
|
+
return context._currentValue;
|
3428
|
+
},
|
3429
|
+
use: function (usable) {
|
3430
|
+
if (null !== usable && "object" === typeof usable) {
|
3431
|
+
if ("function" === typeof usable.then) return unwrapThenable(usable);
|
3432
|
+
if (usable.$$typeof === REACT_CONTEXT_TYPE) return usable._currentValue;
|
3433
|
+
}
|
3434
|
+
throw Error("An unsupported type was passed to use(): " + String(usable));
|
3435
|
+
},
|
3436
|
+
useContext: function (context) {
|
3437
|
+
resolveCurrentlyRenderingComponent();
|
3438
|
+
return context._currentValue;
|
3439
|
+
},
|
3440
|
+
useMemo: useMemo,
|
3441
|
+
useReducer: useReducer,
|
3442
|
+
useRef: function (initialValue) {
|
3443
|
+
currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
|
3444
|
+
workInProgressHook = createWorkInProgressHook();
|
3445
|
+
var previousRef = workInProgressHook.memoizedState;
|
3446
|
+
return null === previousRef
|
3447
|
+
? ((initialValue = { current: initialValue }),
|
3448
|
+
(workInProgressHook.memoizedState = initialValue))
|
3449
|
+
: previousRef;
|
3450
|
+
},
|
3451
|
+
useState: function (initialState) {
|
3452
|
+
return useReducer(basicStateReducer, initialState);
|
3453
|
+
},
|
3454
|
+
useInsertionEffect: noop$1,
|
3455
|
+
useLayoutEffect: noop$1,
|
3456
|
+
useCallback: function (callback, deps) {
|
3457
|
+
return useMemo(function () {
|
3458
|
+
return callback;
|
3459
|
+
}, deps);
|
3460
|
+
},
|
3461
|
+
useImperativeHandle: noop$1,
|
3462
|
+
useEffect: noop$1,
|
3463
|
+
useDebugValue: noop$1,
|
3464
|
+
useDeferredValue: function (value, initialValue) {
|
3465
|
+
resolveCurrentlyRenderingComponent();
|
3466
|
+
return void 0 !== initialValue ? initialValue : value;
|
3467
|
+
},
|
3468
|
+
useTransition: function () {
|
3469
|
+
resolveCurrentlyRenderingComponent();
|
3470
|
+
return [!1, unsupportedStartTransition];
|
3471
|
+
},
|
3472
|
+
useId: function () {
|
3473
|
+
var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
|
3474
|
+
var overflow = JSCompiler_inline_result.overflow;
|
3475
|
+
JSCompiler_inline_result = JSCompiler_inline_result.id;
|
3476
|
+
JSCompiler_inline_result =
|
3477
|
+
(
|
3478
|
+
JSCompiler_inline_result &
|
3479
|
+
~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
|
3480
|
+
).toString(32) + overflow;
|
3481
|
+
var resumableState = currentResumableState;
|
3482
|
+
if (null === resumableState)
|
3483
|
+
throw Error(
|
3484
|
+
"Invalid hook call. Hooks can only be called inside of the body of a function component."
|
3485
|
+
);
|
3486
|
+
overflow = localIdCounter++;
|
3487
|
+
JSCompiler_inline_result =
|
3488
|
+
":" + resumableState.idPrefix + "R" + JSCompiler_inline_result;
|
3489
|
+
0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
|
3490
|
+
return JSCompiler_inline_result + ":";
|
3491
|
+
},
|
3492
|
+
useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
|
3493
|
+
if (void 0 === getServerSnapshot)
|
3494
|
+
throw Error(
|
3495
|
+
"Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering."
|
3496
|
+
);
|
3497
|
+
return getServerSnapshot();
|
3498
|
+
},
|
3499
|
+
useOptimistic: function (passthrough) {
|
3500
|
+
resolveCurrentlyRenderingComponent();
|
3501
|
+
return [passthrough, unsupportedSetOptimisticState];
|
3502
|
+
},
|
3503
|
+
useActionState: useActionState,
|
3504
|
+
useFormState: useActionState,
|
3505
|
+
useHostTransitionStatus: function () {
|
3506
|
+
resolveCurrentlyRenderingComponent();
|
3507
|
+
return sharedNotPendingObject;
|
3438
3508
|
}
|
3439
|
-
throw Error("An unsupported type was passed to use(): " + String(usable));
|
3440
3509
|
},
|
3441
|
-
|
3442
|
-
resolveCurrentlyRenderingComponent();
|
3443
|
-
return context._currentValue;
|
3444
|
-
},
|
3445
|
-
useMemo: useMemo,
|
3446
|
-
useReducer: useReducer,
|
3447
|
-
useRef: function (initialValue) {
|
3448
|
-
currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
|
3449
|
-
workInProgressHook = createWorkInProgressHook();
|
3450
|
-
var previousRef = workInProgressHook.memoizedState;
|
3451
|
-
return null === previousRef
|
3452
|
-
? ((initialValue = { current: initialValue }),
|
3453
|
-
(workInProgressHook.memoizedState = initialValue))
|
3454
|
-
: previousRef;
|
3455
|
-
},
|
3456
|
-
useState: function (initialState) {
|
3457
|
-
return useReducer(basicStateReducer, initialState);
|
3458
|
-
},
|
3459
|
-
useInsertionEffect: noop$1,
|
3460
|
-
useLayoutEffect: noop$1,
|
3461
|
-
useCallback: function (callback, deps) {
|
3462
|
-
return useMemo(function () {
|
3463
|
-
return callback;
|
3464
|
-
}, deps);
|
3465
|
-
},
|
3466
|
-
useImperativeHandle: noop$1,
|
3467
|
-
useEffect: noop$1,
|
3468
|
-
useDebugValue: noop$1,
|
3469
|
-
useDeferredValue: function (value, initialValue) {
|
3470
|
-
resolveCurrentlyRenderingComponent();
|
3471
|
-
return void 0 !== initialValue ? initialValue : value;
|
3472
|
-
},
|
3473
|
-
useTransition: function () {
|
3474
|
-
resolveCurrentlyRenderingComponent();
|
3475
|
-
return [!1, unsupportedStartTransition];
|
3476
|
-
},
|
3477
|
-
useId: function () {
|
3478
|
-
var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
|
3479
|
-
var overflow = JSCompiler_inline_result.overflow;
|
3480
|
-
JSCompiler_inline_result = JSCompiler_inline_result.id;
|
3481
|
-
JSCompiler_inline_result =
|
3482
|
-
(
|
3483
|
-
JSCompiler_inline_result &
|
3484
|
-
~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
|
3485
|
-
).toString(32) + overflow;
|
3486
|
-
var resumableState = currentResumableState;
|
3487
|
-
if (null === resumableState)
|
3488
|
-
throw Error(
|
3489
|
-
"Invalid hook call. Hooks can only be called inside of the body of a function component."
|
3490
|
-
);
|
3491
|
-
overflow = localIdCounter++;
|
3492
|
-
JSCompiler_inline_result =
|
3493
|
-
":" + resumableState.idPrefix + "R" + JSCompiler_inline_result;
|
3494
|
-
0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
|
3495
|
-
return JSCompiler_inline_result + ":";
|
3496
|
-
},
|
3497
|
-
useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
|
3498
|
-
if (void 0 === getServerSnapshot)
|
3499
|
-
throw Error(
|
3500
|
-
"Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering."
|
3501
|
-
);
|
3502
|
-
return getServerSnapshot();
|
3503
|
-
},
|
3504
|
-
useCacheRefresh: function () {
|
3505
|
-
return unsupportedRefresh;
|
3506
|
-
},
|
3507
|
-
useMemoCache: function (size) {
|
3508
|
-
for (var data = Array(size), i = 0; i < size; i++)
|
3509
|
-
data[i] = REACT_MEMO_CACHE_SENTINEL;
|
3510
|
-
return data;
|
3511
|
-
},
|
3512
|
-
useHostTransitionStatus: function () {
|
3513
|
-
resolveCurrentlyRenderingComponent();
|
3514
|
-
return sharedNotPendingObject;
|
3515
|
-
},
|
3516
|
-
useOptimistic: function (passthrough) {
|
3517
|
-
resolveCurrentlyRenderingComponent();
|
3518
|
-
return [passthrough, unsupportedSetOptimisticState];
|
3519
|
-
}
|
3520
|
-
};
|
3521
|
-
HooksDispatcher.useFormState = useActionState;
|
3522
|
-
HooksDispatcher.useActionState = useActionState;
|
3523
|
-
var currentResumableState = null,
|
3510
|
+
currentResumableState = null,
|
3524
3511
|
DefaultAsyncDispatcher = {
|
3525
3512
|
getCacheForType: function () {
|
3526
3513
|
throw Error("Not implemented.");
|
@@ -3687,7 +3674,7 @@ function describeComponentStackByType(type) {
|
|
3687
3674
|
if ("string" === typeof type) return describeBuiltInComponentFrame(type);
|
3688
3675
|
if ("function" === typeof type)
|
3689
3676
|
return type.prototype && type.prototype.isReactComponent
|
3690
|
-
?
|
3677
|
+
? describeNativeComponentFrame(type, !0)
|
3691
3678
|
: describeNativeComponentFrame(type, !1);
|
3692
3679
|
if ("object" === typeof type && null !== type) {
|
3693
3680
|
switch (type.$$typeof) {
|
@@ -4305,7 +4292,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4305
4292
|
else {
|
4306
4293
|
switch (type) {
|
4307
4294
|
case REACT_LEGACY_HIDDEN_TYPE:
|
4308
|
-
case REACT_DEBUG_TRACING_MODE_TYPE:
|
4309
4295
|
case REACT_STRICT_MODE_TYPE:
|
4310
4296
|
case REACT_PROFILER_TYPE:
|
4311
4297
|
case REACT_FRAGMENT_TYPE:
|
@@ -5941,11 +5927,11 @@ function abort(request, reason) {
|
|
5941
5927
|
}
|
5942
5928
|
function ensureCorrectIsomorphicReactVersion() {
|
5943
5929
|
var isomorphicReactPackageVersion = React.version;
|
5944
|
-
if ("19.1.0-canary-
|
5930
|
+
if ("19.1.0-canary-e06c72fc-20241215" !== isomorphicReactPackageVersion)
|
5945
5931
|
throw Error(
|
5946
5932
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
5947
5933
|
(isomorphicReactPackageVersion +
|
5948
|
-
"\n - react-dom: 19.1.0-canary-
|
5934
|
+
"\n - react-dom: 19.1.0-canary-e06c72fc-20241215\nLearn more: https://react.dev/warnings/version-mismatch")
|
5949
5935
|
);
|
5950
5936
|
}
|
5951
5937
|
ensureCorrectIsomorphicReactVersion();
|
@@ -6094,4 +6080,4 @@ exports.renderToPipeableStream = function (children, options) {
|
|
6094
6080
|
}
|
6095
6081
|
};
|
6096
6082
|
};
|
6097
|
-
exports.version = "19.1.0-canary-
|
6083
|
+
exports.version = "19.1.0-canary-e06c72fc-20241215";
|
@@ -416,7 +416,7 @@
|
|
416
416
|
exports.useFormStatus = function () {
|
417
417
|
return resolveDispatcher().useHostTransitionStatus();
|
418
418
|
};
|
419
|
-
exports.version = "19.1.0-canary-
|
419
|
+
exports.version = "19.1.0-canary-e06c72fc-20241215";
|
420
420
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
421
421
|
"function" ===
|
422
422
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
@@ -207,4 +207,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
|
207
207
|
exports.useFormStatus = function () {
|
208
208
|
return ReactSharedInternals.H.useHostTransitionStatus();
|
209
209
|
};
|
210
|
-
exports.version = "19.1.0-canary-
|
210
|
+
exports.version = "19.1.0-canary-e06c72fc-20241215";
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-dom",
|
3
|
-
"version": "19.1.0-canary-
|
3
|
+
"version": "19.1.0-canary-e06c72fc-20241215",
|
4
4
|
"description": "React package for working with the DOM.",
|
5
5
|
"main": "index.js",
|
6
6
|
"repository": {
|
@@ -17,10 +17,10 @@
|
|
17
17
|
},
|
18
18
|
"homepage": "https://react.dev/",
|
19
19
|
"dependencies": {
|
20
|
-
"scheduler": "0.26.0-canary-
|
20
|
+
"scheduler": "0.26.0-canary-e06c72fc-20241215"
|
21
21
|
},
|
22
22
|
"peerDependencies": {
|
23
|
-
"react": "19.1.0-canary-
|
23
|
+
"react": "19.1.0-canary-e06c72fc-20241215"
|
24
24
|
},
|
25
25
|
"files": [
|
26
26
|
"LICENSE",
|