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.
@@ -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) {
@@ -2585,16 +2583,16 @@ function createRenderState(resumableState, generateStaticMarkup) {
2585
2583
  "\x3c/script>"
2586
2584
  );
2587
2585
  bootstrapScriptContent = idPrefix + "P:";
2588
- var JSCompiler_object_inline_segmentPrefix_1482 = idPrefix + "S:";
2586
+ var JSCompiler_object_inline_segmentPrefix_1479 = idPrefix + "S:";
2589
2587
  idPrefix += "B:";
2590
- var JSCompiler_object_inline_preconnects_1496 = new Set(),
2591
- JSCompiler_object_inline_fontPreloads_1497 = new Set(),
2592
- JSCompiler_object_inline_highImagePreloads_1498 = new Set(),
2593
- JSCompiler_object_inline_styles_1499 = new Map(),
2594
- JSCompiler_object_inline_bootstrapScripts_1500 = new Set(),
2595
- JSCompiler_object_inline_scripts_1501 = new Set(),
2596
- JSCompiler_object_inline_bulkPreloads_1502 = new Set(),
2597
- JSCompiler_object_inline_preloads_1503 = {
2588
+ var JSCompiler_object_inline_preconnects_1493 = new Set(),
2589
+ JSCompiler_object_inline_fontPreloads_1494 = new Set(),
2590
+ JSCompiler_object_inline_highImagePreloads_1495 = new Set(),
2591
+ JSCompiler_object_inline_styles_1496 = new Map(),
2592
+ JSCompiler_object_inline_bootstrapScripts_1497 = new Set(),
2593
+ JSCompiler_object_inline_scripts_1498 = new Set(),
2594
+ JSCompiler_object_inline_bulkPreloads_1499 = new Set(),
2595
+ JSCompiler_object_inline_preloads_1500 = {
2598
2596
  images: new Map(),
2599
2597
  stylesheets: new Map(),
2600
2598
  scripts: new Map(),
@@ -2631,7 +2629,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
2631
2629
  scriptConfig.moduleScriptResources[href] = null;
2632
2630
  scriptConfig = [];
2633
2631
  pushLinkImpl(scriptConfig, props);
2634
- JSCompiler_object_inline_bootstrapScripts_1500.add(scriptConfig);
2632
+ JSCompiler_object_inline_bootstrapScripts_1497.add(scriptConfig);
2635
2633
  bootstrapChunks.push('<script src="', escapeTextForBrowser(src));
2636
2634
  "string" === typeof integrity &&
2637
2635
  bootstrapChunks.push('" integrity="', escapeTextForBrowser(integrity));
@@ -2672,7 +2670,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
2672
2670
  (props.moduleScriptResources[scriptConfig] = null),
2673
2671
  (props = []),
2674
2672
  pushLinkImpl(props, integrity),
2675
- JSCompiler_object_inline_bootstrapScripts_1500.add(props),
2673
+ JSCompiler_object_inline_bootstrapScripts_1497.add(props),
2676
2674
  bootstrapChunks.push(
2677
2675
  '<script type="module" src="',
2678
2676
  escapeTextForBrowser(i)
@@ -2687,7 +2685,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
2687
2685
  bootstrapChunks.push('" async="">\x3c/script>');
2688
2686
  return {
2689
2687
  placeholderPrefix: bootstrapScriptContent,
2690
- segmentPrefix: JSCompiler_object_inline_segmentPrefix_1482,
2688
+ segmentPrefix: JSCompiler_object_inline_segmentPrefix_1479,
2691
2689
  boundaryPrefix: idPrefix,
2692
2690
  startInlineScript: "<script>",
2693
2691
  htmlChunks: null,
@@ -2707,14 +2705,14 @@ function createRenderState(resumableState, generateStaticMarkup) {
2707
2705
  charsetChunks: [],
2708
2706
  viewportChunks: [],
2709
2707
  hoistableChunks: [],
2710
- preconnects: JSCompiler_object_inline_preconnects_1496,
2711
- fontPreloads: JSCompiler_object_inline_fontPreloads_1497,
2712
- highImagePreloads: JSCompiler_object_inline_highImagePreloads_1498,
2713
- styles: JSCompiler_object_inline_styles_1499,
2714
- bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1500,
2715
- scripts: JSCompiler_object_inline_scripts_1501,
2716
- bulkPreloads: JSCompiler_object_inline_bulkPreloads_1502,
2717
- preloads: JSCompiler_object_inline_preloads_1503,
2708
+ preconnects: JSCompiler_object_inline_preconnects_1493,
2709
+ fontPreloads: JSCompiler_object_inline_fontPreloads_1494,
2710
+ highImagePreloads: JSCompiler_object_inline_highImagePreloads_1495,
2711
+ styles: JSCompiler_object_inline_styles_1496,
2712
+ bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1497,
2713
+ scripts: JSCompiler_object_inline_scripts_1498,
2714
+ bulkPreloads: JSCompiler_object_inline_bulkPreloads_1499,
2715
+ preloads: JSCompiler_object_inline_preloads_1500,
2718
2716
  stylesToHoist: !1,
2719
2717
  generateStaticMarkup: generateStaticMarkup
2720
2718
  };
@@ -3174,104 +3172,94 @@ function unwrapThenable(thenable) {
3174
3172
  null === thenableState && (thenableState = []);
3175
3173
  return trackUsedThenable(thenableState, thenable, index);
3176
3174
  }
3177
- function unsupportedRefresh() {
3178
- throw Error("Cache cannot be refreshed during server rendering.");
3179
- }
3180
3175
  function noop$1() {}
3181
3176
  var HooksDispatcher = {
3182
- readContext: function (context) {
3183
- return context._currentValue2;
3184
- },
3185
- use: function (usable) {
3186
- if (null !== usable && "object" === typeof usable) {
3187
- if ("function" === typeof usable.then) return unwrapThenable(usable);
3188
- if (usable.$$typeof === REACT_CONTEXT_TYPE) return usable._currentValue2;
3177
+ readContext: function (context) {
3178
+ return context._currentValue2;
3179
+ },
3180
+ use: function (usable) {
3181
+ if (null !== usable && "object" === typeof usable) {
3182
+ if ("function" === typeof usable.then) return unwrapThenable(usable);
3183
+ if (usable.$$typeof === REACT_CONTEXT_TYPE)
3184
+ return usable._currentValue2;
3185
+ }
3186
+ throw Error("An unsupported type was passed to use(): " + String(usable));
3187
+ },
3188
+ useContext: function (context) {
3189
+ resolveCurrentlyRenderingComponent();
3190
+ return context._currentValue2;
3191
+ },
3192
+ useMemo: useMemo,
3193
+ useReducer: useReducer,
3194
+ useRef: function (initialValue) {
3195
+ currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
3196
+ workInProgressHook = createWorkInProgressHook();
3197
+ var previousRef = workInProgressHook.memoizedState;
3198
+ return null === previousRef
3199
+ ? ((initialValue = { current: initialValue }),
3200
+ (workInProgressHook.memoizedState = initialValue))
3201
+ : previousRef;
3202
+ },
3203
+ useState: function (initialState) {
3204
+ return useReducer(basicStateReducer, initialState);
3205
+ },
3206
+ useInsertionEffect: noop$1,
3207
+ useLayoutEffect: noop$1,
3208
+ useCallback: function (callback, deps) {
3209
+ return useMemo(function () {
3210
+ return callback;
3211
+ }, deps);
3212
+ },
3213
+ useImperativeHandle: noop$1,
3214
+ useEffect: noop$1,
3215
+ useDebugValue: noop$1,
3216
+ useDeferredValue: function (value, initialValue) {
3217
+ resolveCurrentlyRenderingComponent();
3218
+ return void 0 !== initialValue ? initialValue : value;
3219
+ },
3220
+ useTransition: function () {
3221
+ resolveCurrentlyRenderingComponent();
3222
+ return [!1, unsupportedStartTransition];
3223
+ },
3224
+ useId: function () {
3225
+ var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
3226
+ var overflow = JSCompiler_inline_result.overflow;
3227
+ JSCompiler_inline_result = JSCompiler_inline_result.id;
3228
+ JSCompiler_inline_result =
3229
+ (
3230
+ JSCompiler_inline_result &
3231
+ ~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
3232
+ ).toString(32) + overflow;
3233
+ var resumableState = currentResumableState;
3234
+ if (null === resumableState)
3235
+ throw Error(
3236
+ "Invalid hook call. Hooks can only be called inside of the body of a function component."
3237
+ );
3238
+ overflow = localIdCounter++;
3239
+ JSCompiler_inline_result =
3240
+ ":" + resumableState.idPrefix + "R" + JSCompiler_inline_result;
3241
+ 0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
3242
+ return JSCompiler_inline_result + ":";
3243
+ },
3244
+ useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
3245
+ if (void 0 === getServerSnapshot)
3246
+ throw Error(
3247
+ "Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering."
3248
+ );
3249
+ return getServerSnapshot();
3250
+ },
3251
+ useOptimistic: function (passthrough) {
3252
+ resolveCurrentlyRenderingComponent();
3253
+ return [passthrough, unsupportedSetOptimisticState];
3254
+ },
3255
+ useActionState: useActionState,
3256
+ useFormState: useActionState,
3257
+ useHostTransitionStatus: function () {
3258
+ resolveCurrentlyRenderingComponent();
3259
+ return sharedNotPendingObject;
3189
3260
  }
3190
- throw Error("An unsupported type was passed to use(): " + String(usable));
3191
3261
  },
3192
- useContext: function (context) {
3193
- resolveCurrentlyRenderingComponent();
3194
- return context._currentValue2;
3195
- },
3196
- useMemo: useMemo,
3197
- useReducer: useReducer,
3198
- useRef: function (initialValue) {
3199
- currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
3200
- workInProgressHook = createWorkInProgressHook();
3201
- var previousRef = workInProgressHook.memoizedState;
3202
- return null === previousRef
3203
- ? ((initialValue = { current: initialValue }),
3204
- (workInProgressHook.memoizedState = initialValue))
3205
- : previousRef;
3206
- },
3207
- useState: function (initialState) {
3208
- return useReducer(basicStateReducer, initialState);
3209
- },
3210
- useInsertionEffect: noop$1,
3211
- useLayoutEffect: noop$1,
3212
- useCallback: function (callback, deps) {
3213
- return useMemo(function () {
3214
- return callback;
3215
- }, deps);
3216
- },
3217
- useImperativeHandle: noop$1,
3218
- useEffect: noop$1,
3219
- useDebugValue: noop$1,
3220
- useDeferredValue: function (value, initialValue) {
3221
- resolveCurrentlyRenderingComponent();
3222
- return void 0 !== initialValue ? initialValue : value;
3223
- },
3224
- useTransition: function () {
3225
- resolveCurrentlyRenderingComponent();
3226
- return [!1, unsupportedStartTransition];
3227
- },
3228
- useId: function () {
3229
- var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
3230
- var overflow = JSCompiler_inline_result.overflow;
3231
- JSCompiler_inline_result = JSCompiler_inline_result.id;
3232
- JSCompiler_inline_result =
3233
- (
3234
- JSCompiler_inline_result &
3235
- ~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
3236
- ).toString(32) + overflow;
3237
- var resumableState = currentResumableState;
3238
- if (null === resumableState)
3239
- throw Error(
3240
- "Invalid hook call. Hooks can only be called inside of the body of a function component."
3241
- );
3242
- overflow = localIdCounter++;
3243
- JSCompiler_inline_result =
3244
- ":" + resumableState.idPrefix + "R" + JSCompiler_inline_result;
3245
- 0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
3246
- return JSCompiler_inline_result + ":";
3247
- },
3248
- useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
3249
- if (void 0 === getServerSnapshot)
3250
- throw Error(
3251
- "Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering."
3252
- );
3253
- return getServerSnapshot();
3254
- },
3255
- useCacheRefresh: function () {
3256
- return unsupportedRefresh;
3257
- },
3258
- useMemoCache: function (size) {
3259
- for (var data = Array(size), i = 0; i < size; i++)
3260
- data[i] = REACT_MEMO_CACHE_SENTINEL;
3261
- return data;
3262
- },
3263
- useHostTransitionStatus: function () {
3264
- resolveCurrentlyRenderingComponent();
3265
- return sharedNotPendingObject;
3266
- },
3267
- useOptimistic: function (passthrough) {
3268
- resolveCurrentlyRenderingComponent();
3269
- return [passthrough, unsupportedSetOptimisticState];
3270
- }
3271
- };
3272
- HooksDispatcher.useFormState = useActionState;
3273
- HooksDispatcher.useActionState = useActionState;
3274
- var currentResumableState = null,
3262
+ currentResumableState = null,
3275
3263
  DefaultAsyncDispatcher = {
3276
3264
  getCacheForType: function () {
3277
3265
  throw Error("Not implemented.");
@@ -3433,7 +3421,7 @@ function describeComponentStackByType(type) {
3433
3421
  if ("string" === typeof type) return describeBuiltInComponentFrame(type);
3434
3422
  if ("function" === typeof type)
3435
3423
  return type.prototype && type.prototype.isReactComponent
3436
- ? ((type = describeNativeComponentFrame(type, !0)), type)
3424
+ ? describeNativeComponentFrame(type, !0)
3437
3425
  : describeNativeComponentFrame(type, !1);
3438
3426
  if ("object" === typeof type && null !== type) {
3439
3427
  switch (type.$$typeof) {
@@ -3997,7 +3985,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
3997
3985
  else {
3998
3986
  switch (type) {
3999
3987
  case REACT_LEGACY_HIDDEN_TYPE:
4000
- case REACT_DEBUG_TRACING_MODE_TYPE:
4001
3988
  case REACT_STRICT_MODE_TYPE:
4002
3989
  case REACT_PROFILER_TYPE:
4003
3990
  case REACT_FRAGMENT_TYPE:
@@ -5701,4 +5688,4 @@ exports.renderToString = function (children, options) {
5701
5688
  'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server'
5702
5689
  );
5703
5690
  };
5704
- exports.version = "19.1.0-canary-4dff0e62-20241213";
5691
+ exports.version = "19.1.0-canary-e06c72fc-20241215";
@@ -2434,7 +2434,7 @@
2434
2434
  : children$jscomp$6;
2435
2435
  Array.isArray(children$jscomp$6) && 1 < children$jscomp$6.length
2436
2436
  ? console.error(
2437
- "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 commong 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>.",
2437
+ "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>.",
2438
2438
  children$jscomp$6.length
2439
2439
  )
2440
2440
  : "function" === typeof child || "symbol" === typeof child
@@ -4016,9 +4016,6 @@
4016
4016
  null === thenableState && (thenableState = []);
4017
4017
  return trackUsedThenable(thenableState, thenable, index);
4018
4018
  }
4019
- function unsupportedRefresh() {
4020
- throw Error("Cache cannot be refreshed during server rendering.");
4021
- }
4022
4019
  function noop$1() {}
4023
4020
  function disabledLog() {}
4024
4021
  function disableLogs() {
@@ -4243,7 +4240,7 @@
4243
4240
  if ("string" === typeof type) return describeBuiltInComponentFrame(type);
4244
4241
  if ("function" === typeof type)
4245
4242
  return type.prototype && type.prototype.isReactComponent
4246
- ? ((type = describeNativeComponentFrame(type, !0)), type)
4243
+ ? describeNativeComponentFrame(type, !0)
4247
4244
  : describeNativeComponentFrame(type, !1);
4248
4245
  if ("object" === typeof type && null !== type) {
4249
4246
  switch (type.$$typeof) {
@@ -5278,7 +5275,6 @@
5278
5275
  } else {
5279
5276
  switch (type) {
5280
5277
  case REACT_LEGACY_HIDDEN_TYPE:
5281
- case REACT_DEBUG_TRACING_MODE_TYPE:
5282
5278
  case REACT_STRICT_MODE_TYPE:
5283
5279
  case REACT_PROFILER_TYPE:
5284
5280
  case REACT_FRAGMENT_TYPE:
@@ -7296,11 +7292,11 @@
7296
7292
  }
7297
7293
  function ensureCorrectIsomorphicReactVersion() {
7298
7294
  var isomorphicReactPackageVersion = React.version;
7299
- if ("19.1.0-canary-4dff0e62-20241213" !== isomorphicReactPackageVersion)
7295
+ if ("19.1.0-canary-e06c72fc-20241215" !== isomorphicReactPackageVersion)
7300
7296
  throw Error(
7301
7297
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
7302
7298
  (isomorphicReactPackageVersion +
7303
- "\n - react-dom: 19.1.0-canary-4dff0e62-20241213\nLearn more: https://react.dev/warnings/version-mismatch")
7299
+ "\n - react-dom: 19.1.0-canary-e06c72fc-20241215\nLearn more: https://react.dev/warnings/version-mismatch")
7304
7300
  );
7305
7301
  }
7306
7302
  var React = require("react"),
@@ -7319,10 +7315,8 @@
7319
7315
  REACT_MEMO_TYPE = Symbol.for("react.memo"),
7320
7316
  REACT_LAZY_TYPE = Symbol.for("react.lazy"),
7321
7317
  REACT_SCOPE_TYPE = Symbol.for("react.scope"),
7322
- REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"),
7323
7318
  REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
7324
7319
  REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
7325
- REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
7326
7320
  MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
7327
7321
  isArrayImpl = Array.isArray,
7328
7322
  jsxPropsParents = new WeakMap(),
@@ -8728,26 +8722,18 @@
8728
8722
  );
8729
8723
  return getServerSnapshot();
8730
8724
  },
8731
- useCacheRefresh: function () {
8732
- return unsupportedRefresh;
8733
- },
8734
- useMemoCache: function (size) {
8735
- for (var data = Array(size), i = 0; i < size; i++)
8736
- data[i] = REACT_MEMO_CACHE_SENTINEL;
8737
- return data;
8725
+ useOptimistic: function (passthrough) {
8726
+ resolveCurrentlyRenderingComponent();
8727
+ return [passthrough, unsupportedSetOptimisticState];
8738
8728
  },
8729
+ useActionState: useActionState,
8730
+ useFormState: useActionState,
8739
8731
  useHostTransitionStatus: function () {
8740
8732
  resolveCurrentlyRenderingComponent();
8741
8733
  return NotPending;
8742
- },
8743
- useOptimistic: function (passthrough) {
8744
- resolveCurrentlyRenderingComponent();
8745
- return [passthrough, unsupportedSetOptimisticState];
8746
8734
  }
8747
- };
8748
- HooksDispatcher.useFormState = useActionState;
8749
- HooksDispatcher.useActionState = useActionState;
8750
- var currentResumableState = null,
8735
+ },
8736
+ currentResumableState = null,
8751
8737
  currentTaskInDEV = null,
8752
8738
  DefaultAsyncDispatcher = {
8753
8739
  getCacheForType: function () {
@@ -8952,5 +8938,5 @@
8952
8938
  startWork(request);
8953
8939
  });
8954
8940
  };
8955
- exports.version = "19.1.0-canary-4dff0e62-20241213";
8941
+ exports.version = "19.1.0-canary-e06c72fc-20241215";
8956
8942
  })();
@@ -64,10 +64,8 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
64
64
  REACT_MEMO_TYPE = Symbol.for("react.memo"),
65
65
  REACT_LAZY_TYPE = Symbol.for("react.lazy"),
66
66
  REACT_SCOPE_TYPE = Symbol.for("react.scope"),
67
- REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"),
68
67
  REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
69
68
  REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
70
- REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
71
69
  MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
72
70
  isArrayImpl = Array.isArray;
73
71
  function murmurhash3_32_gc(key, seed) {
@@ -3489,98 +3487,88 @@ function unwrapThenable(thenable) {
3489
3487
  null === thenableState && (thenableState = []);
3490
3488
  return trackUsedThenable(thenableState, thenable, index);
3491
3489
  }
3492
- function unsupportedRefresh() {
3493
- throw Error(formatProdErrorMessage(393));
3494
- }
3495
3490
  function noop$1() {}
3496
3491
  var HooksDispatcher = {
3497
- readContext: function (context) {
3498
- return context._currentValue;
3499
- },
3500
- use: function (usable) {
3501
- if (null !== usable && "object" === typeof usable) {
3502
- if ("function" === typeof usable.then) return unwrapThenable(usable);
3503
- if (usable.$$typeof === REACT_CONTEXT_TYPE) return usable._currentValue;
3492
+ readContext: function (context) {
3493
+ return context._currentValue;
3494
+ },
3495
+ use: function (usable) {
3496
+ if (null !== usable && "object" === typeof usable) {
3497
+ if ("function" === typeof usable.then) return unwrapThenable(usable);
3498
+ if (usable.$$typeof === REACT_CONTEXT_TYPE) return usable._currentValue;
3499
+ }
3500
+ throw Error(formatProdErrorMessage(438, String(usable)));
3501
+ },
3502
+ useContext: function (context) {
3503
+ resolveCurrentlyRenderingComponent();
3504
+ return context._currentValue;
3505
+ },
3506
+ useMemo: useMemo,
3507
+ useReducer: useReducer,
3508
+ useRef: function (initialValue) {
3509
+ currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
3510
+ workInProgressHook = createWorkInProgressHook();
3511
+ var previousRef = workInProgressHook.memoizedState;
3512
+ return null === previousRef
3513
+ ? ((initialValue = { current: initialValue }),
3514
+ (workInProgressHook.memoizedState = initialValue))
3515
+ : previousRef;
3516
+ },
3517
+ useState: function (initialState) {
3518
+ return useReducer(basicStateReducer, initialState);
3519
+ },
3520
+ useInsertionEffect: noop$1,
3521
+ useLayoutEffect: noop$1,
3522
+ useCallback: function (callback, deps) {
3523
+ return useMemo(function () {
3524
+ return callback;
3525
+ }, deps);
3526
+ },
3527
+ useImperativeHandle: noop$1,
3528
+ useEffect: noop$1,
3529
+ useDebugValue: noop$1,
3530
+ useDeferredValue: function (value, initialValue) {
3531
+ resolveCurrentlyRenderingComponent();
3532
+ return void 0 !== initialValue ? initialValue : value;
3533
+ },
3534
+ useTransition: function () {
3535
+ resolveCurrentlyRenderingComponent();
3536
+ return [!1, unsupportedStartTransition];
3537
+ },
3538
+ useId: function () {
3539
+ var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
3540
+ var overflow = JSCompiler_inline_result.overflow;
3541
+ JSCompiler_inline_result = JSCompiler_inline_result.id;
3542
+ JSCompiler_inline_result =
3543
+ (
3544
+ JSCompiler_inline_result &
3545
+ ~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
3546
+ ).toString(32) + overflow;
3547
+ var resumableState = currentResumableState;
3548
+ if (null === resumableState) throw Error(formatProdErrorMessage(404));
3549
+ overflow = localIdCounter++;
3550
+ JSCompiler_inline_result =
3551
+ ":" + resumableState.idPrefix + "R" + JSCompiler_inline_result;
3552
+ 0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
3553
+ return JSCompiler_inline_result + ":";
3554
+ },
3555
+ useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
3556
+ if (void 0 === getServerSnapshot)
3557
+ throw Error(formatProdErrorMessage(407));
3558
+ return getServerSnapshot();
3559
+ },
3560
+ useOptimistic: function (passthrough) {
3561
+ resolveCurrentlyRenderingComponent();
3562
+ return [passthrough, unsupportedSetOptimisticState];
3563
+ },
3564
+ useActionState: useActionState,
3565
+ useFormState: useActionState,
3566
+ useHostTransitionStatus: function () {
3567
+ resolveCurrentlyRenderingComponent();
3568
+ return sharedNotPendingObject;
3504
3569
  }
3505
- throw Error(formatProdErrorMessage(438, String(usable)));
3506
3570
  },
3507
- useContext: function (context) {
3508
- resolveCurrentlyRenderingComponent();
3509
- return context._currentValue;
3510
- },
3511
- useMemo: useMemo,
3512
- useReducer: useReducer,
3513
- useRef: function (initialValue) {
3514
- currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
3515
- workInProgressHook = createWorkInProgressHook();
3516
- var previousRef = workInProgressHook.memoizedState;
3517
- return null === previousRef
3518
- ? ((initialValue = { current: initialValue }),
3519
- (workInProgressHook.memoizedState = initialValue))
3520
- : previousRef;
3521
- },
3522
- useState: function (initialState) {
3523
- return useReducer(basicStateReducer, initialState);
3524
- },
3525
- useInsertionEffect: noop$1,
3526
- useLayoutEffect: noop$1,
3527
- useCallback: function (callback, deps) {
3528
- return useMemo(function () {
3529
- return callback;
3530
- }, deps);
3531
- },
3532
- useImperativeHandle: noop$1,
3533
- useEffect: noop$1,
3534
- useDebugValue: noop$1,
3535
- useDeferredValue: function (value, initialValue) {
3536
- resolveCurrentlyRenderingComponent();
3537
- return void 0 !== initialValue ? initialValue : value;
3538
- },
3539
- useTransition: function () {
3540
- resolveCurrentlyRenderingComponent();
3541
- return [!1, unsupportedStartTransition];
3542
- },
3543
- useId: function () {
3544
- var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
3545
- var overflow = JSCompiler_inline_result.overflow;
3546
- JSCompiler_inline_result = JSCompiler_inline_result.id;
3547
- JSCompiler_inline_result =
3548
- (
3549
- JSCompiler_inline_result &
3550
- ~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
3551
- ).toString(32) + overflow;
3552
- var resumableState = currentResumableState;
3553
- if (null === resumableState) throw Error(formatProdErrorMessage(404));
3554
- overflow = localIdCounter++;
3555
- JSCompiler_inline_result =
3556
- ":" + resumableState.idPrefix + "R" + JSCompiler_inline_result;
3557
- 0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
3558
- return JSCompiler_inline_result + ":";
3559
- },
3560
- useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
3561
- if (void 0 === getServerSnapshot) throw Error(formatProdErrorMessage(407));
3562
- return getServerSnapshot();
3563
- },
3564
- useCacheRefresh: function () {
3565
- return unsupportedRefresh;
3566
- },
3567
- useMemoCache: function (size) {
3568
- for (var data = Array(size), i = 0; i < size; i++)
3569
- data[i] = REACT_MEMO_CACHE_SENTINEL;
3570
- return data;
3571
- },
3572
- useHostTransitionStatus: function () {
3573
- resolveCurrentlyRenderingComponent();
3574
- return sharedNotPendingObject;
3575
- },
3576
- useOptimistic: function (passthrough) {
3577
- resolveCurrentlyRenderingComponent();
3578
- return [passthrough, unsupportedSetOptimisticState];
3579
- }
3580
- };
3581
- HooksDispatcher.useFormState = useActionState;
3582
- HooksDispatcher.useActionState = useActionState;
3583
- var currentResumableState = null,
3571
+ currentResumableState = null,
3584
3572
  DefaultAsyncDispatcher = {
3585
3573
  getCacheForType: function () {
3586
3574
  throw Error(formatProdErrorMessage(248));
@@ -3742,7 +3730,7 @@ function describeComponentStackByType(type) {
3742
3730
  if ("string" === typeof type) return describeBuiltInComponentFrame(type);
3743
3731
  if ("function" === typeof type)
3744
3732
  return type.prototype && type.prototype.isReactComponent
3745
- ? ((type = describeNativeComponentFrame(type, !0)), type)
3733
+ ? describeNativeComponentFrame(type, !0)
3746
3734
  : describeNativeComponentFrame(type, !1);
3747
3735
  if ("object" === typeof type && null !== type) {
3748
3736
  switch (type.$$typeof) {
@@ -4355,7 +4343,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
4355
4343
  else {
4356
4344
  switch (type) {
4357
4345
  case REACT_LEGACY_HIDDEN_TYPE:
4358
- case REACT_DEBUG_TRACING_MODE_TYPE:
4359
4346
  case REACT_STRICT_MODE_TYPE:
4360
4347
  case REACT_PROFILER_TYPE:
4361
4348
  case REACT_FRAGMENT_TYPE:
@@ -5956,12 +5943,12 @@ function abort(request, reason) {
5956
5943
  }
5957
5944
  function ensureCorrectIsomorphicReactVersion() {
5958
5945
  var isomorphicReactPackageVersion = React.version;
5959
- if ("19.1.0-canary-4dff0e62-20241213" !== isomorphicReactPackageVersion)
5946
+ if ("19.1.0-canary-e06c72fc-20241215" !== isomorphicReactPackageVersion)
5960
5947
  throw Error(
5961
5948
  formatProdErrorMessage(
5962
5949
  527,
5963
5950
  isomorphicReactPackageVersion,
5964
- "19.1.0-canary-4dff0e62-20241213"
5951
+ "19.1.0-canary-e06c72fc-20241215"
5965
5952
  )
5966
5953
  );
5967
5954
  }
@@ -6108,4 +6095,4 @@ exports.renderToReadableStream = function (children, options) {
6108
6095
  startWork(request);
6109
6096
  });
6110
6097
  };
6111
- exports.version = "19.1.0-canary-4dff0e62-20241213";
6098
+ exports.version = "19.1.0-canary-e06c72fc-20241215";