| @@ -1,10 +1,53 @@ | ||
| 1 | 1 | var React = (() => { |
| 2 | +function __wpWarnCompat(key) {var w = __wpWarnCompat.warned || (__wpWarnCompat.warned = {});if (w[key]) return;w[key] = true;var messages = {"legacy-element":"A React element created by an older React runtime (React 17/18) was detected and is handled by a compatibility patch. This usually means a bundled package ships its own React; align it with React 19.","inert":"An empty-string `inert` attribute was used. React 19 treats `inert` as a boolean, so the value was coerced to `true` by a compatibility patch. Pass `inert={true}` instead."};if (typeof console !== "undefined" && console.warn) {console.warn("[wordpress-react-19] " + messages[key]);}} | |
| 3 | + | |
| 4 | + var __defProp = Object.defineProperty; | |
| 5 | + var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | |
| 2 | 6 | var __getOwnPropNames = Object.getOwnPropertyNames; |
| 7 | + var __hasOwnProp = Object.prototype.hasOwnProperty; | |
| 8 | + var __esm = (fn, res) => function __init() { | |
| 9 | + return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; | |
| 10 | + }; | |
| 3 | 11 | var __commonJS = (cb, mod) => function __require() { |
| 4 | 12 | return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; |
| 5 | 13 | }; |
| 14 | + var __export = (target, all) => { | |
| 15 | + for (var name in all) | |
| 16 | + __defProp(target, name, { get: all[name], enumerable: true }); | |
| 17 | + }; | |
| 18 | + var __copyProps = (to, from, except, desc) => { | |
| 19 | + if (from && typeof from === "object" || typeof from === "function") { | |
| 20 | + for (let key of __getOwnPropNames(from)) | |
| 21 | + if (!__hasOwnProp.call(to, key) && key !== except) | |
| 22 | + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | |
| 23 | + } | |
| 24 | + return to; | |
| 25 | + }; | |
| 26 | + var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | |
| 6 | 27 | |
| 28 | + // ../react-19/warn-compat.js | |
| 29 | + var warn_compat_exports = {}; | |
| 30 | + __export(warn_compat_exports, { | |
| 31 | + warnCompat: () => warnCompat | |
| 32 | + }); | |
| 33 | + function warnCompat(key, message) { | |
| 34 | + if (warned.has(key)) { | |
| 35 | + return; | |
| 36 | + } | |
| 37 | + warned.add(key); | |
| 38 | + if (typeof console !== "undefined" && console.warn) { | |
| 39 | + console.warn(`${PREFIX} ${message}`); | |
| 40 | + } | |
| 41 | + } | |
| 42 | + var PREFIX, warned; | |
| 43 | + var init_warn_compat = __esm({ | |
| 44 | + "../react-19/warn-compat.js"() { | |
| 45 | + PREFIX = "[wordpress-react-19]"; | |
| 46 | + warned = /* @__PURE__ */ new Set(); | |
| 47 | + } | |
| 48 | + }); | |
| 49 | + | |
| 7 | 50 | // ../react-19/node_modules/react/cjs/react.development.js |
| 8 | 51 | var require_react_development = __commonJS({ |
| 9 | 52 | "../react-19/node_modules/react/cjs/react.development.js"(exports, module) { |
| 10 | 53 | "use strict"; |
| @@ -90,8 +133,10 @@ | ||
| 90 | 133 | case REACT_SUSPENSE_LIST_TYPE: |
| 91 | 134 | return "SuspenseList"; |
| 92 | 135 | case REACT_ACTIVITY_TYPE: |
| 93 | 136 | return "Activity"; |
| 137 | + case REACT_VIEW_TRANSITION_TYPE: | |
| 138 | + return "ViewTransition"; | |
| 94 | 139 | } |
| 95 | 140 | if ("object" === typeof type) |
| 96 | 141 | switch ("number" === typeof type.tag && console.error( |
| 97 | 142 | "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." |
| @@ -221,9 +266,9 @@ | ||
| 221 | 266 | function validateChildKeys(node) { |
| 222 | 267 | isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1)); |
| 223 | 268 | } |
| 224 | 269 | function isValidElement(object) { |
| 225 | - return "object" === typeof object && null !== object && (object.$$typeof === REACT_ELEMENT_TYPE || object.$$typeof === REACT_LEGACY_ELEMENT_TYPE); | |
| 270 | + return "object" === typeof object && null !== object && (object.$$typeof === REACT_ELEMENT_TYPE || (object.$$typeof === REACT_LEGACY_ELEMENT_TYPE && (__wpWarnCompat("legacy-element"), true))); | |
| 226 | 271 | } |
| 227 | 272 | function escape(key) { |
| 228 | 273 | var escaperLookup = { "=": "=0", ":": "=2" }; |
| 229 | 274 | return "$" + key.replace(/[=:]/g, function(match) { |
| @@ -269,9 +314,9 @@ | ||
| 269 | 314 | invokeCallback = true; |
| 270 | 315 | break; |
| 271 | 316 | case "object": |
| 272 | 317 | switch (children.$$typeof) { |
| 273 | - case REACT_LEGACY_ELEMENT_TYPE: case REACT_ELEMENT_TYPE: | |
| 318 | + case REACT_LEGACY_ELEMENT_TYPE: __wpWarnCompat("legacy-element"); case REACT_ELEMENT_TYPE: | |
| 274 | 319 | case REACT_PORTAL_TYPE: |
| 275 | 320 | invokeCallback = true; |
| 276 | 321 | break; |
| 277 | 322 | case REACT_LAZY_TYPE: |
| @@ -346,10 +391,13 @@ | ||
| 346 | 391 | return result; |
| 347 | 392 | } |
| 348 | 393 | function lazyInitializer(payload) { |
| 349 | 394 | if (-1 === payload._status) { |
| 350 | - var ioInfo = payload._ioInfo; | |
| 351 | - null != ioInfo && (ioInfo.start = ioInfo.end = performance.now()); | |
| 395 | + var resolveDebugValue = null, rejectDebugValue = null, ioInfo = payload._ioInfo; | |
| 396 | + null != ioInfo && (ioInfo.start = ioInfo.end = performance.now(), ioInfo.value = new Promise(function(resolve, reject) { | |
| 397 | + resolveDebugValue = resolve; | |
| 398 | + rejectDebugValue = reject; | |
| 399 | + })); | |
| 352 | 400 | ioInfo = payload._result; |
| 353 | 401 | var thenable = ioInfo(); |
| 354 | 402 | thenable.then( |
| 355 | 403 | function(moduleObject) { |
| @@ -356,9 +404,15 @@ | ||
| 356 | 404 | if (0 === payload._status || -1 === payload._status) { |
| 357 | 405 | payload._status = 1; |
| 358 | 406 | payload._result = moduleObject; |
| 359 | 407 | var _ioInfo = payload._ioInfo; |
| 360 | - null != _ioInfo && (_ioInfo.end = performance.now()); | |
| 408 | + if (null != _ioInfo) { | |
| 409 | + _ioInfo.end = performance.now(); | |
| 410 | + var debugValue = null == moduleObject ? void 0 : moduleObject.default; | |
| 411 | + resolveDebugValue(debugValue); | |
| 412 | + _ioInfo.value.status = "fulfilled"; | |
| 413 | + _ioInfo.value.value = debugValue; | |
| 414 | + } | |
| 361 | 415 | void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject); |
| 362 | 416 | } |
| 363 | 417 | }, |
| 364 | 418 | function(error) { |
| @@ -365,9 +419,9 @@ | ||
| 365 | 419 | if (0 === payload._status || -1 === payload._status) { |
| 366 | 420 | payload._status = 2; |
| 367 | 421 | payload._result = error; |
| 368 | 422 | var _ioInfo2 = payload._ioInfo; |
| 369 | - null != _ioInfo2 && (_ioInfo2.end = performance.now()); | |
| 423 | + null != _ioInfo2 && (_ioInfo2.end = performance.now(), _ioInfo2.value.then(noop, noop), rejectDebugValue(error), _ioInfo2.value.status = "rejected", _ioInfo2.value.reason = error); | |
| 370 | 424 | void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error); |
| 371 | 425 | } |
| 372 | 426 | } |
| 373 | 427 | ); |
| @@ -372,9 +426,8 @@ | ||
| 372 | 426 | } |
| 373 | 427 | ); |
| 374 | 428 | ioInfo = payload._ioInfo; |
| 375 | 429 | if (null != ioInfo) { |
| 376 | - ioInfo.value = thenable; | |
| 377 | 430 | var displayName = thenable.displayName; |
| 378 | 431 | "string" === typeof displayName && (ioInfo.name = displayName); |
| 379 | 432 | } |
| 380 | 433 | -1 === payload._status && (payload._status = 0, payload._result = thenable); |
| @@ -398,8 +451,37 @@ | ||
| 398 | 451 | } |
| 399 | 452 | function releaseAsyncTransition() { |
| 400 | 453 | ReactSharedInternals.asyncTransitions--; |
| 401 | 454 | } |
| 455 | + function startTransition(scope) { | |
| 456 | + var prevTransition = ReactSharedInternals.T, currentTransition = {}; | |
| 457 | + currentTransition.types = null !== prevTransition ? prevTransition.types : null; | |
| 458 | + currentTransition._updatedFibers = /* @__PURE__ */ new Set(); | |
| 459 | + ReactSharedInternals.T = currentTransition; | |
| 460 | + try { | |
| 461 | + var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S; | |
| 462 | + null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue); | |
| 463 | + "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(noop, reportGlobalError)); | |
| 464 | + } catch (error) { | |
| 465 | + reportGlobalError(error); | |
| 466 | + } finally { | |
| 467 | + null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn( | |
| 468 | + "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." | |
| 469 | + )), null !== prevTransition && null !== currentTransition.types && (null !== prevTransition.types && prevTransition.types !== currentTransition.types && console.error( | |
| 470 | + "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." | |
| 471 | + ), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition; | |
| 472 | + } | |
| 473 | + } | |
| 474 | + function addTransitionType(type) { | |
| 475 | + var transition = ReactSharedInternals.T; | |
| 476 | + if (null !== transition) { | |
| 477 | + var transitionTypes = transition.types; | |
| 478 | + null === transitionTypes ? transition.types = [type] : -1 === transitionTypes.indexOf(type) && transitionTypes.push(type); | |
| 479 | + } else | |
| 480 | + 0 === ReactSharedInternals.asyncTransitions && console.error( | |
| 481 | + "addTransitionType can only be called inside a `startTransition()` callback. It must be associated with a specific Transition." | |
| 482 | + ), startTransition(addTransitionType.bind(null, type)); | |
| 483 | + } | |
| 402 | 484 | function enqueueTask(task) { |
| 403 | 485 | if (null === enqueueTaskImpl) |
| 404 | 486 | try { |
| 405 | 487 | var requireString = ("require" + Math.random()).slice(0, 7); |
| @@ -472,9 +554,9 @@ | ||
| 472 | 554 | } |
| 473 | 555 | } |
| 474 | 556 | } |
| 475 | 557 | "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()); |
| 476 | - var REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), 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 = { | |
| 558 | + var REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), 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 = { | |
| 477 | 559 | isMounted: function() { |
| 478 | 560 | return false; |
| 479 | 561 | }, |
| 480 | 562 | enqueueForceUpdate: function(publicInstance) { |
| @@ -607,8 +689,9 @@ | ||
| 607 | 689 | exports.Profiler = REACT_PROFILER_TYPE; |
| 608 | 690 | exports.PureComponent = PureComponent; |
| 609 | 691 | exports.StrictMode = REACT_STRICT_MODE_TYPE; |
| 610 | 692 | exports.Suspense = REACT_SUSPENSE_TYPE; |
| 693 | + exports.ViewTransition = REACT_VIEW_TRANSITION_TYPE; | |
| 611 | 694 | exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals; |
| 612 | 695 | exports.__COMPILER_RUNTIME = deprecatedAPIs; |
| 613 | 696 | exports.act = function(callback) { |
| 614 | 697 | var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth; |
| @@ -686,8 +769,9 @@ | ||
| 686 | 769 | })) : resolve(returnValue$jscomp$0); |
| 687 | 770 | } |
| 688 | 771 | }; |
| 689 | 772 | }; |
| 773 | + exports.addTransitionType = addTransitionType; | |
| 690 | 774 | exports.cache = function(fn) { |
| 691 | 775 | return function() { |
| 692 | 776 | return fn.apply(null, arguments); |
| 693 | 777 | }; |
| @@ -762,8 +846,9 @@ | ||
| 762 | 846 | }; |
| 763 | 847 | exports.createElement = function(type, config, children) { |
| 764 | 848 | for (var i = 2; i < arguments.length; i++) |
| 765 | 849 | validateChildKeys(arguments[i]); |
| 850 | + var propName; | |
| 766 | 851 | i = {}; |
| 767 | 852 | var key = null; |
| 768 | 853 | if (null != config) |
| 769 | 854 | for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn( |
| @@ -784,15 +869,15 @@ | ||
| 784 | 869 | key && defineKeyPropWarningGetter( |
| 785 | 870 | i, |
| 786 | 871 | "function" === typeof type ? type.displayName || type.name || "Unknown" : type |
| 787 | 872 | ); |
| 788 | - var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++; | |
| 873 | + (propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++) ? (childArray = Error.stackTraceLimit, Error.stackTraceLimit = 10, childrenLength = Error("react-stack-top-frame"), Error.stackTraceLimit = childArray) : childrenLength = unknownOwnerDebugStack; | |
| 789 | 874 | return ReactElement( |
| 790 | 875 | type, |
| 791 | 876 | key, |
| 792 | 877 | i, |
| 793 | 878 | getOwner(), |
| 794 | - propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack, | |
| 879 | + childrenLength, | |
| 795 | 880 | propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask |
| 796 | 881 | ); |
| 797 | 882 | }; |
| 798 | 883 | exports.createRef = function() { |
| @@ -870,26 +955,9 @@ | ||
| 870 | 955 | } |
| 871 | 956 | }); |
| 872 | 957 | return compare; |
| 873 | 958 | }; |
| 874 | - exports.startTransition = function(scope) { | |
| 875 | - var prevTransition = ReactSharedInternals.T, currentTransition = {}; | |
| 876 | - currentTransition._updatedFibers = /* @__PURE__ */ new Set(); | |
| 877 | - ReactSharedInternals.T = currentTransition; | |
| 878 | - try { | |
| 879 | - var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S; | |
| 880 | - null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue); | |
| 881 | - "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(noop, reportGlobalError)); | |
| 882 | - } catch (error) { | |
| 883 | - reportGlobalError(error); | |
| 884 | - } finally { | |
| 885 | - null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn( | |
| 886 | - "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." | |
| 887 | - )), null !== prevTransition && null !== currentTransition.types && (null !== prevTransition.types && prevTransition.types !== currentTransition.types && console.error( | |
| 888 | - "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." | |
| 889 | - ), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition; | |
| 890 | - } | |
| 891 | - }; | |
| 959 | + exports.startTransition = startTransition; | |
| 892 | 960 | exports.unstable_useCacheRefresh = function() { |
| 893 | 961 | return resolveDispatcher().useCacheRefresh(); |
| 894 | 962 | }; |
| 895 | 963 | exports.use = function(usable) { |
| @@ -969,9 +1037,9 @@ | ||
| 969 | 1037 | }; |
| 970 | 1038 | exports.useTransition = function() { |
| 971 | 1039 | return resolveDispatcher().useTransition(); |
| 972 | 1040 | }; |
| 973 | - exports.version = "19.2.7"; | |
| 1041 | + exports.version = "19.3.0"; | |
| 974 | 1042 | "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error()); |
| 975 | 1043 | })(); |
| 976 | 1044 | } |
| 977 | 1045 | }); |
| @@ -990,21 +1058,42 @@ | ||
| 990 | 1058 | |
| 991 | 1059 | // ../react-19/react.js |
| 992 | 1060 | var require_react2 = __commonJS({ |
| 993 | 1061 | "../react-19/react.js"(exports, module) { |
| 994 | - module.exports = { | |
| 995 | - ...require_react(), | |
| 996 | - // Polyfill React 18 internals for older versions of `react/jsx-runtime`. | |
| 997 | - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { | |
| 998 | - ReactCurrentOwner: { current: null }, | |
| 999 | - ReactCurrentDispatcher: { current: null }, | |
| 1000 | - ReactDebugCurrentFrame: { | |
| 1001 | - setExtraStackFrame: () => { | |
| 1002 | - }, | |
| 1003 | - getStackAddendum: () => "" | |
| 1062 | + var { warnCompat: warnCompat2 } = (init_warn_compat(), __toCommonJS(warn_compat_exports)); | |
| 1063 | + var SECRET_INTERNALS_KEY = "__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED"; | |
| 1064 | + var secretInternals = { | |
| 1065 | + ReactCurrentOwner: { current: null }, | |
| 1066 | + ReactCurrentDispatcher: { current: null }, | |
| 1067 | + ReactDebugCurrentFrame: { | |
| 1068 | + setExtraStackFrame() { | |
| 1069 | + warnCompat2( | |
| 1070 | + "react-secret-internals-setExtraStackFrame", | |
| 1071 | + `\`${SECRET_INTERNALS_KEY}.ReactDebugCurrentFrame.setExtraStackFrame\` was removed in React 19 and is a no-op compatibility shim.` | |
| 1072 | + ); | |
| 1073 | + }, | |
| 1074 | + getStackAddendum() { | |
| 1075 | + warnCompat2( | |
| 1076 | + "react-secret-internals-getStackAddendum", | |
| 1077 | + `\`${SECRET_INTERNALS_KEY}.ReactDebugCurrentFrame.getStackAddendum\` was removed in React 19 and is a no-op compatibility shim.` | |
| 1078 | + ); | |
| 1079 | + return ""; | |
| 1004 | 1080 | } |
| 1005 | 1081 | } |
| 1006 | 1082 | }; |
| 1083 | + var react = { ...require_react() }; | |
| 1084 | + Object.defineProperty(react, SECRET_INTERNALS_KEY, { | |
| 1085 | + enumerable: true, | |
| 1086 | + configurable: true, | |
| 1087 | + get() { | |
| 1088 | + warnCompat2( | |
| 1089 | + "react-secret-internals", | |
| 1090 | + `Accessing \`${SECRET_INTERNALS_KEY}\` was removed in React 19 and is provided by a compatibility shim.` | |
| 1091 | + ); | |
| 1092 | + return secretInternals; | |
| 1093 | + } | |
| 1094 | + }); | |
| 1095 | + module.exports = react; | |
| 1007 | 1096 | } |
| 1008 | 1097 | }); |
| 1009 | 1098 | return require_react2(); |
| 1010 | 1099 | })(); |