PluginProbe
Gutenberg / 24.1.0
Gutenberg v24.1.0
24.1.0 24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 All 404 releases
← All changes | build/scripts/vendors/react-19-orig.js +52 -27 23.7.2 → 24.1.0 View file →
@@ -131,8 +131,10 @@
131 131 case REACT_SUSPENSE_LIST_TYPE:
132 132 return "SuspenseList";
133 133 case REACT_ACTIVITY_TYPE:
134 134 return "Activity";
135 + case REACT_VIEW_TRANSITION_TYPE:
136 + return "ViewTransition";
135 137 }
136 138 if ("object" === typeof type)
137 139 switch ("number" === typeof type.tag && console.error(
138 140 "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
@@ -387,10 +389,13 @@
387 389 return result;
388 390 }
389 391 function lazyInitializer(payload) {
390 392 if (-1 === payload._status) {
391 - var ioInfo = payload._ioInfo;
392 - null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
393 + var resolveDebugValue = null, rejectDebugValue = null, ioInfo = payload._ioInfo;
394 + null != ioInfo && (ioInfo.start = ioInfo.end = performance.now(), ioInfo.value = new Promise(function(resolve, reject) {
395 + resolveDebugValue = resolve;
396 + rejectDebugValue = reject;
397 + }));
393 398 ioInfo = payload._result;
394 399 var thenable = ioInfo();
395 400 thenable.then(
396 401 function(moduleObject) {
@@ -397,9 +402,15 @@
397 402 if (0 === payload._status || -1 === payload._status) {
398 403 payload._status = 1;
399 404 payload._result = moduleObject;
400 405 var _ioInfo = payload._ioInfo;
401 - null != _ioInfo && (_ioInfo.end = performance.now());
406 + if (null != _ioInfo) {
407 + _ioInfo.end = performance.now();
408 + var debugValue = null == moduleObject ? void 0 : moduleObject.default;
409 + resolveDebugValue(debugValue);
410 + _ioInfo.value.status = "fulfilled";
411 + _ioInfo.value.value = debugValue;
412 + }
402 413 void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
403 414 }
404 415 },
405 416 function(error) {
@@ -406,9 +417,9 @@
406 417 if (0 === payload._status || -1 === payload._status) {
407 418 payload._status = 2;
408 419 payload._result = error;
409 420 var _ioInfo2 = payload._ioInfo;
410 - null != _ioInfo2 && (_ioInfo2.end = performance.now());
421 + null != _ioInfo2 && (_ioInfo2.end = performance.now(), _ioInfo2.value.then(noop, noop), rejectDebugValue(error), _ioInfo2.value.status = "rejected", _ioInfo2.value.reason = error);
411 422 void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
412 423 }
413 424 }
414 425 );
@@ -413,9 +424,8 @@
413 424 }
414 425 );
415 426 ioInfo = payload._ioInfo;
416 427 if (null != ioInfo) {
417 - ioInfo.value = thenable;
418 428 var displayName = thenable.displayName;
419 429 "string" === typeof displayName && (ioInfo.name = displayName);
420 430 }
421 431 -1 === payload._status && (payload._status = 0, payload._result = thenable);
@@ -439,8 +449,37 @@
439 449 }
440 450 function releaseAsyncTransition() {
441 451 ReactSharedInternals.asyncTransitions--;
442 452 }
453 + function startTransition(scope) {
454 + var prevTransition = ReactSharedInternals.T, currentTransition = {};
455 + currentTransition.types = null !== prevTransition ? prevTransition.types : null;
456 + currentTransition._updatedFibers = /* @__PURE__ */ new Set();
457 + ReactSharedInternals.T = currentTransition;
458 + try {
459 + var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
460 + null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
461 + "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(noop, reportGlobalError));
462 + } catch (error) {
463 + reportGlobalError(error);
464 + } finally {
465 + null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
466 + "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
467 + )), null !== prevTransition && null !== currentTransition.types && (null !== prevTransition.types && prevTransition.types !== currentTransition.types && console.error(
468 + "We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
469 + ), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
470 + }
471 + }
472 + function addTransitionType(type) {
473 + var transition = ReactSharedInternals.T;
474 + if (null !== transition) {
475 + var transitionTypes = transition.types;
476 + null === transitionTypes ? transition.types = [type] : -1 === transitionTypes.indexOf(type) && transitionTypes.push(type);
477 + } else
478 + 0 === ReactSharedInternals.asyncTransitions && console.error(
479 + "addTransitionType can only be called inside a `startTransition()` callback. It must be associated with a specific Transition."
480 + ), startTransition(addTransitionType.bind(null, type));
481 + }
443 482 function enqueueTask(task) {
444 483 if (null === enqueueTaskImpl)
445 484 try {
446 485 var requireString = ("require" + Math.random()).slice(0, 7);
@@ -513,9 +552,9 @@
513 552 }
514 553 }
515 554 }
516 555 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
517 - var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
556 + var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), REACT_VIEW_TRANSITION_TYPE = /* @__PURE__ */ Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
518 557 isMounted: function() {
519 558 return false;
520 559 },
521 560 enqueueForceUpdate: function(publicInstance) {
@@ -648,8 +687,9 @@
648 687 exports.Profiler = REACT_PROFILER_TYPE;
649 688 exports.PureComponent = PureComponent;
650 689 exports.StrictMode = REACT_STRICT_MODE_TYPE;
651 690 exports.Suspense = REACT_SUSPENSE_TYPE;
691 + exports.ViewTransition = REACT_VIEW_TRANSITION_TYPE;
652 692 exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
653 693 exports.__COMPILER_RUNTIME = deprecatedAPIs;
654 694 exports.act = function(callback) {
655 695 var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
@@ -727,8 +767,9 @@
727 767 })) : resolve(returnValue$jscomp$0);
728 768 }
729 769 };
730 770 };
771 + exports.addTransitionType = addTransitionType;
731 772 exports.cache = function(fn) {
732 773 return function() {
733 774 return fn.apply(null, arguments);
734 775 };
@@ -803,8 +844,9 @@
803 844 };
804 845 exports.createElement = function(type, config, children) {
805 846 for (var i = 2; i < arguments.length; i++)
806 847 validateChildKeys(arguments[i]);
848 + var propName;
807 849 i = {};
808 850 var key = null;
809 851 if (null != config)
810 852 for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
@@ -825,15 +867,15 @@
825 867 key && defineKeyPropWarningGetter(
826 868 i,
827 869 "function" === typeof type ? type.displayName || type.name || "Unknown" : type
828 870 );
829 - var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
871 + (propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++) ? (childArray = Error.stackTraceLimit, Error.stackTraceLimit = 10, childrenLength = Error("react-stack-top-frame"), Error.stackTraceLimit = childArray) : childrenLength = unknownOwnerDebugStack;
830 872 return ReactElement(
831 873 type,
832 874 key,
833 875 i,
834 876 getOwner(),
835 - propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
877 + childrenLength,
836 878 propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
837 879 );
838 880 };
839 881 exports.createRef = function() {
@@ -911,26 +953,9 @@
911 953 }
912 954 });
913 955 return compare;
914 956 };
915 - exports.startTransition = function(scope) {
916 - var prevTransition = ReactSharedInternals.T, currentTransition = {};
917 - currentTransition._updatedFibers = /* @__PURE__ */ new Set();
918 - ReactSharedInternals.T = currentTransition;
919 - try {
920 - var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
921 - null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
922 - "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(noop, reportGlobalError));
923 - } catch (error) {
924 - reportGlobalError(error);
925 - } finally {
926 - null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
927 - "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
928 - )), null !== prevTransition && null !== currentTransition.types && (null !== prevTransition.types && prevTransition.types !== currentTransition.types && console.error(
929 - "We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
930 - ), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
931 - }
932 - };
957 + exports.startTransition = startTransition;
933 958 exports.unstable_useCacheRefresh = function() {
934 959 return resolveDispatcher().useCacheRefresh();
935 960 };
936 961 exports.use = function(usable) {
@@ -1010,9 +1035,9 @@
1010 1035 };
1011 1036 exports.useTransition = function() {
1012 1037 return resolveDispatcher().useTransition();
1013 1038 };
1014 - exports.version = "19.2.7";
1039 + exports.version = "19.3.0";
1015 1040 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1016 1041 })();
1017 1042 }
1018 1043 });