|
3865 | 3865 | ? null |
3866 | 3866 | : eventClass; |
3867 | 3867 | } |
| 3868 | + function getArrayKind(array) { |
| 3869 | + for (var kind = EMPTY_ARRAY, i = 0; i < array.length; i++) { |
| 3870 | + var value = array[i]; |
| 3871 | + if ("object" === typeof value && null !== value) |
| 3872 | + if ( |
| 3873 | + isArrayImpl(value) && |
| 3874 | + 2 === value.length && |
| 3875 | + "string" === typeof value[0] |
| 3876 | + ) { |
| 3877 | + if (kind !== EMPTY_ARRAY && kind !== ENTRIES_ARRAY) |
| 3878 | + return COMPLEX_ARRAY; |
| 3879 | + kind = ENTRIES_ARRAY; |
| 3880 | + } else return COMPLEX_ARRAY; |
| 3881 | + else { |
| 3882 | + if ( |
| 3883 | + "function" === typeof value || |
| 3884 | + ("string" === typeof value && 50 < value.length) || |
| 3885 | + (kind !== EMPTY_ARRAY && kind !== PRIMITIVE_ARRAY) |
| 3886 | + ) |
| 3887 | + return COMPLEX_ARRAY; |
| 3888 | + kind = PRIMITIVE_ARRAY; |
| 3889 | + } |
| 3890 | + } |
| 3891 | + return kind; |
| 3892 | + } |
| 3893 | + function addObjectToProperties(object, properties, indent) { |
| 3894 | + for (var key in object) |
| 3895 | + hasOwnProperty.call(object, key) && |
| 3896 | + "_" !== key[0] && |
| 3897 | + addValueToProperties(key, object[key], properties, indent); |
| 3898 | + } |
| 3899 | + function addValueToProperties(propertyName, value, properties, indent) { |
| 3900 | + switch (typeof value) { |
| 3901 | + case "object": |
| 3902 | + if (null === value) { |
| 3903 | + value = "null"; |
| 3904 | + break; |
| 3905 | + } else { |
| 3906 | + if (value.$$typeof === REACT_ELEMENT_TYPE) { |
| 3907 | + var typeName = getComponentNameFromType(value.type) || "\u2026", |
| 3908 | + key = value.key; |
| 3909 | + value = value.props; |
| 3910 | + var propsKeys = Object.keys(value), |
| 3911 | + propsLength = propsKeys.length; |
| 3912 | + if (null == key && 0 === propsLength) { |
| 3913 | + value = "<" + typeName + " />"; |
| 3914 | + break; |
| 3915 | + } |
| 3916 | + if ( |
| 3917 | + 3 > indent || |
| 3918 | + (1 === propsLength && |
| 3919 | + "children" === propsKeys[0] && |
| 3920 | + null == key) |
| 3921 | + ) { |
| 3922 | + value = "<" + typeName + " \u2026 />"; |
| 3923 | + break; |
| 3924 | + } |
| 3925 | + properties.push([ |
| 3926 | + "\u00a0\u00a0".repeat(indent) + propertyName, |
| 3927 | + "<" + typeName |
| 3928 | + ]); |
| 3929 | + null !== key && |
| 3930 | + addValueToProperties("key", key, properties, indent + 1); |
| 3931 | + propertyName = !1; |
| 3932 | + for (var propKey in value) |
| 3933 | + "children" === propKey |
| 3934 | + ? null != value.children && |
| 3935 | + (!isArrayImpl(value.children) || |
| 3936 | + 0 < value.children.length) && |
| 3937 | + (propertyName = !0) |
| 3938 | + : hasOwnProperty.call(value, propKey) && |
| 3939 | + "_" !== propKey[0] && |
| 3940 | + addValueToProperties( |
| 3941 | + propKey, |
| 3942 | + value[propKey], |
| 3943 | + properties, |
| 3944 | + indent + 1 |
| 3945 | + ); |
| 3946 | + properties.push([ |
| 3947 | + "", |
| 3948 | + propertyName ? ">\u2026</" + typeName + ">" : "/>" |
| 3949 | + ]); |
| 3950 | + return; |
| 3951 | + } |
| 3952 | + typeName = Object.prototype.toString.call(value); |
| 3953 | + typeName = typeName.slice(8, typeName.length - 1); |
| 3954 | + if ("Array" === typeName) |
| 3955 | + if ( |
| 3956 | + ((propKey = getArrayKind(value)), |
| 3957 | + propKey === PRIMITIVE_ARRAY || propKey === EMPTY_ARRAY) |
| 3958 | + ) { |
| 3959 | + value = JSON.stringify(value); |
| 3960 | + break; |
| 3961 | + } else if (propKey === ENTRIES_ARRAY) { |
| 3962 | + properties.push([ |
| 3963 | + "\u00a0\u00a0".repeat(indent) + propertyName, |
| 3964 | + "" |
| 3965 | + ]); |
| 3966 | + for ( |
| 3967 | + propertyName = 0; |
| 3968 | + propertyName < value.length; |
| 3969 | + propertyName++ |
| 3970 | + ) |
| 3971 | + (typeName = value[propertyName]), |
| 3972 | + addValueToProperties( |
| 3973 | + typeName[0], |
| 3974 | + typeName[1], |
| 3975 | + properties, |
| 3976 | + indent + 1 |
| 3977 | + ); |
| 3978 | + return; |
| 3979 | + } |
| 3980 | + if ("Promise" === typeName) { |
| 3981 | + if ("fulfilled" === value.status) { |
| 3982 | + if ( |
| 3983 | + ((typeName = properties.length), |
| 3984 | + addValueToProperties( |
| 3985 | + propertyName, |
| 3986 | + value.value, |
| 3987 | + properties, |
| 3988 | + indent |
| 3989 | + ), |
| 3990 | + properties.length > typeName) |
| 3991 | + ) { |
| 3992 | + properties = properties[typeName]; |
| 3993 | + properties[1] = |
| 3994 | + "Promise<" + (properties[1] || "Object") + ">"; |
| 3995 | + return; |
| 3996 | + } |
| 3997 | + } else if ( |
| 3998 | + "rejected" === value.status && |
| 3999 | + ((typeName = properties.length), |
| 4000 | + addValueToProperties( |
| 4001 | + propertyName, |
| 4002 | + value.reason, |
| 4003 | + properties, |
| 4004 | + indent |
| 4005 | + ), |
| 4006 | + properties.length > typeName) |
| 4007 | + ) { |
| 4008 | + properties = properties[typeName]; |
| 4009 | + properties[1] = "Rejected Promise<" + properties[1] + ">"; |
| 4010 | + return; |
| 4011 | + } |
| 4012 | + properties.push([ |
| 4013 | + "\u00a0\u00a0".repeat(indent) + propertyName, |
| 4014 | + "Promise" |
| 4015 | + ]); |
| 4016 | + return; |
| 4017 | + } |
| 4018 | + "Object" === typeName && |
| 4019 | + (propKey = Object.getPrototypeOf(value)) && |
| 4020 | + "function" === typeof propKey.constructor && |
| 4021 | + (typeName = propKey.constructor.name); |
| 4022 | + properties.push([ |
| 4023 | + "\u00a0\u00a0".repeat(indent) + propertyName, |
| 4024 | + "Object" === typeName ? (3 > indent ? "" : "\u2026") : typeName |
| 4025 | + ]); |
| 4026 | + 3 > indent && addObjectToProperties(value, properties, indent + 1); |
| 4027 | + return; |
| 4028 | + } |
| 4029 | + case "function": |
| 4030 | + value = "" === value.name ? "() => {}" : value.name + "() {}"; |
| 4031 | + break; |
| 4032 | + case "string": |
| 4033 | + value = |
| 4034 | + value === OMITTED_PROP_ERROR ? "\u2026" : JSON.stringify(value); |
| 4035 | + break; |
| 4036 | + case "undefined": |
| 4037 | + value = "undefined"; |
| 4038 | + break; |
| 4039 | + case "boolean": |
| 4040 | + value = value ? "true" : "false"; |
| 4041 | + break; |
| 4042 | + default: |
| 4043 | + value = String(value); |
| 4044 | + } |
| 4045 | + properties.push(["\u00a0\u00a0".repeat(indent) + propertyName, value]); |
| 4046 | + } |
3868 | 4047 | function setCurrentTrackFromLanes(lanes) { |
3869 | 4048 | currentTrack = |
3870 | 4049 | lanes & 127 |
|
3973 | 4152 | : String(capturedValue) |
3974 | 4153 | ]); |
3975 | 4154 | } |
| 4155 | + null !== fiber.key && |
| 4156 | + addValueToProperties("key", fiber.key, properties, 0); |
| 4157 | + null !== fiber.memoizedProps && |
| 4158 | + addObjectToProperties(fiber.memoizedProps, properties, 0); |
3976 | 4159 | null == debugTask && (debugTask = fiber._debugTask); |
3977 | 4160 | fiber = { |
3978 | 4161 | start: startTime, |
|
4026 | 4209 | : String(error) |
4027 | 4210 | ]); |
4028 | 4211 | } |
| 4212 | + null !== fiber.key && |
| 4213 | + addValueToProperties("key", fiber.key, selfTime, 0); |
| 4214 | + null !== fiber.memoizedProps && |
| 4215 | + addObjectToProperties(fiber.memoizedProps, selfTime, 0); |
4029 | 4216 | startTime = { |
4030 | 4217 | start: startTime, |
4031 | 4218 | end: endTime, |
|
27944 | 28131 | } |
27945 | 28132 | console.error(error); |
27946 | 28133 | }, |
| 28134 | + OMITTED_PROP_ERROR = |
| 28135 | + "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.", |
| 28136 | + EMPTY_ARRAY = 0, |
| 28137 | + COMPLEX_ARRAY = 1, |
| 28138 | + PRIMITIVE_ARRAY = 2, |
| 28139 | + ENTRIES_ARRAY = 3, |
27947 | 28140 | supportsUserTiming = |
27948 | 28141 | "undefined" !== typeof console && |
27949 | 28142 | "function" === typeof console.timeStamp, |
@@ -30654,11 +30847,11 @@ |
30654 | 30847 | }; |
30655 | 30848 | (function () { |
30656 | 30849 | var isomorphicReactPackageVersion = React.version; |
30657 | | - if ("19.2.0-experimental-4db4b21c-20250626" !== isomorphicReactPackageVersion) |
| 30850 | + if ("19.2.0-experimental-65c4decb-20250630" !== isomorphicReactPackageVersion) |
30658 | 30851 | throw Error( |
30659 | 30852 | 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + |
30660 | 30853 | (isomorphicReactPackageVersion + |
30661 | | - "\n - react-dom: 19.2.0-experimental-4db4b21c-20250626\nLearn more: https://react.dev/warnings/version-mismatch") |
| 30854 | + "\n - react-dom: 19.2.0-experimental-65c4decb-20250630\nLearn more: https://react.dev/warnings/version-mismatch") |
30662 | 30855 | ); |
30663 | 30856 | })(); |
30664 | 30857 | ("function" === typeof Map && |
@@ -30695,10 +30888,10 @@ |
30695 | 30888 | !(function () { |
30696 | 30889 | var internals = { |
30697 | 30890 | bundleType: 1, |
30698 | | - version: "19.2.0-experimental-4db4b21c-20250626", |
| 30891 | + version: "19.2.0-experimental-65c4decb-20250630", |
30699 | 30892 | rendererPackageName: "react-dom", |
30700 | 30893 | currentDispatcherRef: ReactSharedInternals, |
30701 | | - reconcilerVersion: "19.2.0-experimental-4db4b21c-20250626" |
| 30894 | + reconcilerVersion: "19.2.0-experimental-65c4decb-20250630" |
30702 | 30895 | }; |
30703 | 30896 | internals.overrideHookState = overrideHookState; |
30704 | 30897 | internals.overrideHookStateDeletePath = overrideHookStateDeletePath; |
|
30844 | 31037 | listenToAllSupportedEvents(container); |
30845 | 31038 | return new ReactDOMHydrationRoot(initialChildren); |
30846 | 31039 | }; |
30847 | | - exports.version = "19.2.0-experimental-4db4b21c-20250626"; |
| 31040 | + exports.version = "19.2.0-experimental-65c4decb-20250630"; |
30848 | 31041 | "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && |
30849 | 31042 | "function" === |
30850 | 31043 | typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && |
|
0 commit comments