|
11 | 11 | */ |
12 | 12 |
|
13 | 13 | "use strict"; |
14 | | -var REACT_ELEMENT_TYPE = Symbol.for("react.element"), |
| 14 | +var dynamicFeatureFlags = require("ReactFeatureFlags"), |
| 15 | + enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, |
| 16 | + enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, |
| 17 | + enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, |
| 18 | + disableDefaultPropsExceptForClasses = |
| 19 | + dynamicFeatureFlags.disableDefaultPropsExceptForClasses, |
| 20 | + REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), |
15 | 21 | REACT_PORTAL_TYPE = Symbol.for("react.portal"), |
16 | 22 | REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), |
17 | 23 | REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), |
@@ -81,19 +87,13 @@ pureComponentPrototype.constructor = PureComponent; |
81 | 87 | assign(pureComponentPrototype, Component.prototype); |
82 | 88 | pureComponentPrototype.isPureReactComponent = !0; |
83 | 89 | var isArrayImpl = Array.isArray, |
84 | | - dynamicFeatureFlags = require("ReactFeatureFlags"), |
85 | | - enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, |
86 | | - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, |
87 | | - enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, |
88 | | - disableDefaultPropsExceptForClasses = |
89 | | - dynamicFeatureFlags.disableDefaultPropsExceptForClasses, |
90 | 90 | ReactSharedInternals = { H: null, C: null, T: null, owner: null }, |
91 | 91 | hasOwnProperty = Object.prototype.hasOwnProperty; |
92 | 92 | function ReactElement(type, key, _ref, self, source, owner, props) { |
93 | 93 | enableRefAsProp && |
94 | 94 | ((_ref = props.ref), (_ref = void 0 !== _ref ? _ref : null)); |
95 | 95 | return { |
96 | | - $$typeof: REACT_ELEMENT_TYPE, |
| 96 | + $$typeof: REACT_LEGACY_ELEMENT_TYPE, |
97 | 97 | type: type, |
98 | 98 | key: key, |
99 | 99 | ref: _ref, |
@@ -152,7 +152,7 @@ function isValidElement(object) { |
152 | 152 | return ( |
153 | 153 | "object" === typeof object && |
154 | 154 | null !== object && |
155 | | - object.$$typeof === REACT_ELEMENT_TYPE |
| 155 | + object.$$typeof === REACT_LEGACY_ELEMENT_TYPE |
156 | 156 | ); |
157 | 157 | } |
158 | 158 | function coerceStringRef(mixedRef, owner, type) { |
@@ -249,7 +249,7 @@ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) { |
249 | 249 | break; |
250 | 250 | case "object": |
251 | 251 | switch (children.$$typeof) { |
252 | | - case REACT_ELEMENT_TYPE: |
| 252 | + case REACT_LEGACY_ELEMENT_TYPE: |
253 | 253 | case REACT_PORTAL_TYPE: |
254 | 254 | invokeCallback = !0; |
255 | 255 | break; |
@@ -695,4 +695,4 @@ exports.useSyncExternalStore = function ( |
695 | 695 | exports.useTransition = function () { |
696 | 696 | return ReactSharedInternals.H.useTransition(); |
697 | 697 | }; |
698 | | -exports.version = "19.0.0-www-classic-c379aa62"; |
| 698 | +exports.version = "19.0.0-www-classic-4c7400c8"; |
0 commit comments