react 19.0.0-canary-33a32441e9-20240418 → 19.0.0-canary-cb151849e1-20240424

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.
Files changed (32) hide show
  1. package/cjs/react-jsx-dev-runtime.development.js +27 -28
  2. package/cjs/react-jsx-dev-runtime.production.js +4 -9
  3. package/cjs/react-jsx-dev-runtime.profiling.js +4 -9
  4. package/cjs/react-jsx-runtime.development.js +27 -28
  5. package/cjs/react-jsx-runtime.production.js +24 -144
  6. package/cjs/react-jsx-runtime.profiling.js +24 -144
  7. package/cjs/react-jsx-runtime.react-server.development.js +27 -28
  8. package/cjs/react-jsx-runtime.react-server.production.js +29 -151
  9. package/cjs/react.development.js +33 -35
  10. package/cjs/react.production.js +467 -1028
  11. package/cjs/react.react-server.development.js +13 -139
  12. package/cjs/react.react-server.production.js +424 -998
  13. package/index.js +1 -1
  14. package/jsx-dev-runtime.js +1 -1
  15. package/jsx-runtime.js +1 -1
  16. package/jsx-runtime.react-server.js +1 -1
  17. package/package.json +1 -1
  18. package/react.react-server.js +1 -1
  19. package/cjs/react-jsx-dev-runtime.production.min.js +0 -12
  20. package/cjs/react-jsx-dev-runtime.production.min.js.map +0 -1
  21. package/cjs/react-jsx-dev-runtime.profiling.min.js +0 -12
  22. package/cjs/react-jsx-dev-runtime.profiling.min.js.map +0 -1
  23. package/cjs/react-jsx-runtime.production.min.js +0 -12
  24. package/cjs/react-jsx-runtime.production.min.js.map +0 -1
  25. package/cjs/react-jsx-runtime.profiling.min.js +0 -12
  26. package/cjs/react-jsx-runtime.profiling.min.js.map +0 -1
  27. package/cjs/react-jsx-runtime.react-server.production.min.js +0 -13
  28. package/cjs/react-jsx-runtime.react-server.production.min.js.map +0 -1
  29. package/cjs/react.production.min.js +0 -30
  30. package/cjs/react.production.min.js.map +0 -1
  31. package/cjs/react.react-server.production.min.js +0 -29
  32. package/cjs/react.react-server.production.min.js.map +0 -1
@@ -16,11 +16,25 @@ if (process.env.NODE_ENV !== "production") {
16
16
 
17
17
  var React = require('react');
18
18
 
19
- // ATTENTION
20
- // When adding new symbols to this file,
21
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
22
- // The Symbol used to tag the ReactElement-like types.
23
- var REACT_ELEMENT_TYPE = Symbol.for('react.element');
19
+ // -----------------------------------------------------------------------------
20
+
21
+ var enableScopeAPI = false; // Experimental Create Event Handle API.
22
+ var enableTransitionTracing = false; // No known bugs, but needs performance testing
23
+
24
+ var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
25
+ // as a normal prop instead of stripping it from the props object.
26
+ // Passes `ref` as a normal prop instead of stripping it from the props object
27
+ // during element creation.
28
+
29
+ var enableRefAsProp = true;
30
+
31
+ var enableRenderableContext = true; // Enables the `initialValue` option for `useDeferredValue`
32
+ // stuff. Intended to enable React core members to more easily debug scheduling
33
+ // issues in DEV builds.
34
+
35
+ var enableDebugTracing = false;
36
+
37
+ var REACT_ELEMENT_TYPE = Symbol.for('react.transitional.element') ;
24
38
  var REACT_PORTAL_TYPE = Symbol.for('react.portal');
25
39
  var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
26
40
  var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
@@ -89,24 +103,6 @@ function printWarning(level, format, args) {
89
103
  }
90
104
  }
91
105
 
92
- // -----------------------------------------------------------------------------
93
-
94
- var enableScopeAPI = false; // Experimental Create Event Handle API.
95
- var enableTransitionTracing = false; // No known bugs, but needs performance testing
96
-
97
- var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
98
- // as a normal prop instead of stripping it from the props object.
99
- // Passes `ref` as a normal prop instead of stripping it from the props object
100
- // during element creation.
101
-
102
- var enableRefAsProp = true;
103
-
104
- var enableRenderableContext = true; // Enables the `initialValue` option for `useDeferredValue`
105
- // stuff. Intended to enable React core members to more easily debug scheduling
106
- // issues in DEV builds.
107
-
108
- var enableDebugTracing = false;
109
-
110
106
  function getWrappedName(outerType, innerType, wrapperName) {
111
107
  var displayName = outerType.displayName;
112
108
 
@@ -817,7 +813,7 @@ function elementRefGetterWithDeprecationWarning() {
817
813
  /**
818
814
  * Factory method to create a new React element. This no longer adheres to
819
815
  * the class pattern, so do not use new to call it. Also, instanceof check
820
- * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
816
+ * will not work. Instead test $$typeof field against Symbol.for('react.transitional.element') to check
821
817
  * if something is a React Element.
822
818
  *
823
819
  * @param {*} type
@@ -1132,11 +1128,14 @@ function validateChildKeys(node, parentType) {
1132
1128
  // but now we print a separate warning for them later.
1133
1129
  if (iteratorFn !== node.entries) {
1134
1130
  var iterator = iteratorFn.call(node);
1135
- var step;
1136
1131
 
1137
- while (!(step = iterator.next()).done) {
1138
- if (isValidElement(step.value)) {
1139
- validateExplicitKey(step.value, parentType);
1132
+ if (iterator !== node) {
1133
+ var step;
1134
+
1135
+ while (!(step = iterator.next()).done) {
1136
+ if (isValidElement(step.value)) {
1137
+ validateExplicitKey(step.value, parentType);
1138
+ }
1140
1139
  }
1141
1140
  }
1142
1141
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license React
3
- * react-jsx-dev-runtime.production.min.js
3
+ * react-jsx-dev-runtime.production.js
4
4
  *
5
5
  * Copyright (c) Meta Platforms, Inc. and affiliates.
6
6
  *
@@ -8,12 +8,7 @@
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
10
 
11
- 'use strict';
12
-
13
- // ATTENTION
14
- const REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
15
-
16
- const jsxDEV = undefined;
17
-
11
+ "use strict";
12
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
18
13
  exports.Fragment = REACT_FRAGMENT_TYPE;
19
- exports.jsxDEV = jsxDEV;
14
+ exports.jsxDEV = void 0;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license React
3
- * react-jsx-dev-runtime.profiling.min.js
3
+ * react-jsx-dev-runtime.profiling.js
4
4
  *
5
5
  * Copyright (c) Meta Platforms, Inc. and affiliates.
6
6
  *
@@ -8,12 +8,7 @@
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
10
 
11
- 'use strict';
12
-
13
- // ATTENTION
14
- const REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
15
-
16
- const jsxDEV = undefined;
17
-
11
+ "use strict";
12
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
18
13
  exports.Fragment = REACT_FRAGMENT_TYPE;
19
- exports.jsxDEV = jsxDEV;
14
+ exports.jsxDEV = void 0;
@@ -16,11 +16,25 @@ if (process.env.NODE_ENV !== "production") {
16
16
 
17
17
  var React = require('react');
18
18
 
19
- // ATTENTION
20
- // When adding new symbols to this file,
21
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
22
- // The Symbol used to tag the ReactElement-like types.
23
- var REACT_ELEMENT_TYPE = Symbol.for('react.element');
19
+ // -----------------------------------------------------------------------------
20
+
21
+ var enableScopeAPI = false; // Experimental Create Event Handle API.
22
+ var enableTransitionTracing = false; // No known bugs, but needs performance testing
23
+
24
+ var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
25
+ // as a normal prop instead of stripping it from the props object.
26
+ // Passes `ref` as a normal prop instead of stripping it from the props object
27
+ // during element creation.
28
+
29
+ var enableRefAsProp = true;
30
+
31
+ var enableRenderableContext = true; // Enables the `initialValue` option for `useDeferredValue`
32
+ // stuff. Intended to enable React core members to more easily debug scheduling
33
+ // issues in DEV builds.
34
+
35
+ var enableDebugTracing = false;
36
+
37
+ var REACT_ELEMENT_TYPE = Symbol.for('react.transitional.element') ;
24
38
  var REACT_PORTAL_TYPE = Symbol.for('react.portal');
25
39
  var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
26
40
  var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
@@ -89,24 +103,6 @@ function printWarning(level, format, args) {
89
103
  }
90
104
  }
91
105
 
92
- // -----------------------------------------------------------------------------
93
-
94
- var enableScopeAPI = false; // Experimental Create Event Handle API.
95
- var enableTransitionTracing = false; // No known bugs, but needs performance testing
96
-
97
- var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
98
- // as a normal prop instead of stripping it from the props object.
99
- // Passes `ref` as a normal prop instead of stripping it from the props object
100
- // during element creation.
101
-
102
- var enableRefAsProp = true;
103
-
104
- var enableRenderableContext = true; // Enables the `initialValue` option for `useDeferredValue`
105
- // stuff. Intended to enable React core members to more easily debug scheduling
106
- // issues in DEV builds.
107
-
108
- var enableDebugTracing = false;
109
-
110
106
  function getWrappedName(outerType, innerType, wrapperName) {
111
107
  var displayName = outerType.displayName;
112
108
 
@@ -817,7 +813,7 @@ function elementRefGetterWithDeprecationWarning() {
817
813
  /**
818
814
  * Factory method to create a new React element. This no longer adheres to
819
815
  * the class pattern, so do not use new to call it. Also, instanceof check
820
- * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
816
+ * will not work. Instead test $$typeof field against Symbol.for('react.transitional.element') to check
821
817
  * if something is a React Element.
822
818
  *
823
819
  * @param {*} type
@@ -1156,11 +1152,14 @@ function validateChildKeys(node, parentType) {
1156
1152
  // but now we print a separate warning for them later.
1157
1153
  if (iteratorFn !== node.entries) {
1158
1154
  var iterator = iteratorFn.call(node);
1159
- var step;
1160
1155
 
1161
- while (!(step = iterator.next()).done) {
1162
- if (isValidElement(step.value)) {
1163
- validateExplicitKey(step.value, parentType);
1156
+ if (iterator !== node) {
1157
+ var step;
1158
+
1159
+ while (!(step = iterator.next()).done) {
1160
+ if (isValidElement(step.value)) {
1161
+ validateExplicitKey(step.value, parentType);
1162
+ }
1164
1163
  }
1165
1164
  }
1166
1165
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license React
3
- * react-jsx-runtime.production.min.js
3
+ * react-jsx-runtime.production.js
4
4
  *
5
5
  * Copyright (c) Meta Platforms, Inc. and affiliates.
6
6
  *
@@ -8,148 +8,28 @@
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
10
 
11
- 'use strict';
12
-
13
- var React = require('react');
14
-
15
- // ATTENTION
16
- // When adding new symbols to this file,
17
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
18
- // The Symbol used to tag the ReactElement-like types.
19
- const REACT_ELEMENT_TYPE = Symbol.for('react.element');
20
- const REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
21
-
22
- // -----------------------------------------------------------------------------
23
- // as a normal prop instead of stripping it from the props object.
24
- // Passes `ref` as a normal prop instead of stripping it from the props object
25
- // during element creation.
26
-
27
- const enableRefAsProp = true;
28
-
29
- const ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
30
-
31
- function hasValidKey(config) {
32
-
33
- return config.key !== undefined;
34
- }
35
- /**
36
- * Factory method to create a new React element. This no longer adheres to
37
- * the class pattern, so do not use new to call it. Also, instanceof check
38
- * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
39
- * if something is a React Element.
40
- *
41
- * @param {*} type
42
- * @param {*} props
43
- * @param {*} key
44
- * @param {string|object} ref
45
- * @param {*} owner
46
- * @param {*} self A *temporary* helper to detect places where `this` is
47
- * different from the `owner` when React.createElement is called, so that we
48
- * can warn. We want to get rid of owner and replace string `ref`s with arrow
49
- * functions, and as long as `this` and owner are the same, there will be no
50
- * change in behavior.
51
- * @param {*} source An annotation object (added by a transpiler or otherwise)
52
- * indicating filename, line number, and/or other information.
53
- * @internal
54
- */
55
-
56
-
57
- function ReactElement(type, key, _ref, self, source, owner, props) {
58
- let ref;
59
-
60
- {
61
- // When enableRefAsProp is on, ignore whatever was passed as the ref
62
- // argument and treat `props.ref` as the source of truth. The only thing we
63
- // use this for is `element.ref`, which will log a deprecation warning on
64
- // access. In the next release, we can remove `element.ref` as well as the
65
- // `ref` argument.
66
- const refProp = props.ref; // An undefined `element.ref` is coerced to `null` for
67
- // backwards compatibility.
68
-
69
- ref = refProp !== undefined ? refProp : null;
70
- }
71
-
72
- let element;
73
-
74
- {
75
- // In prod, `ref` is a regular property and _owner doesn't exist.
76
- element = {
77
- // This tag allows us to uniquely identify this as a React Element
78
- $$typeof: REACT_ELEMENT_TYPE,
79
- // Built-in properties that belong on the element
80
- type,
81
- key,
82
- ref,
83
- props
84
- };
85
- }
86
-
87
- return element;
88
- }
89
- /**
90
- * https://github.com/reactjs/rfcs/pull/107
91
- * @param {*} type
92
- * @param {object} props
93
- * @param {string} key
94
- */
95
-
96
-
11
+ "use strict";
12
+ require("react");
13
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
14
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
97
15
  function jsxProd(type, config, maybeKey) {
98
- let key = null;
99
- let ref = null; // Currently, key can be spread in as a prop. This causes a potential
100
- // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
101
- // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
102
- // but as an intermediary step, we will use jsxDEV for everything except
103
- // <div {...props} key="Hi" />, because we aren't currently able to tell if
104
- // key is explicitly declared to be undefined or not.
105
-
106
- if (maybeKey !== undefined) {
107
-
108
- key = '' + maybeKey;
109
- }
110
-
111
- if (hasValidKey(config)) {
112
-
113
- key = '' + config.key;
114
- }
115
-
116
- let props;
117
-
118
- if (!('key' in config)) {
119
- // If key was not spread in, we can reuse the original props object. This
120
- // only works for `jsx`, not `createElement`, because `jsx` is a compiler
121
- // target and the compiler always passes a new object. For `createElement`,
122
- // we can't assume a new object is passed every time because it can be
123
- // called manually.
124
- //
125
- // Spreading key is a warning in dev. In a future release, we will not
126
- // remove a spread key from the props object. (But we'll still warn.) We'll
127
- // always pass the object straight through.
128
- props = config;
129
- } else {
130
- // We need to remove reserved props (key, prop, ref). Create a fresh props
131
- // object and copy over all the non-reserved props. We don't use `delete`
132
- // because in V8 it will deopt the object to dictionary mode.
133
- props = {};
134
-
135
- for (const propName in config) {
136
- // Skip over reserved prop names
137
- if (propName !== 'key' && (enableRefAsProp )) {
138
- {
139
- props[propName] = config[propName];
140
- }
141
- }
142
- }
143
- }
144
-
145
- return ReactElement(type, key, ref, undefined, undefined, ReactSharedInternals.owner, props);
146
- } // While `jsxDEV` should never be called when running in production, we do
147
-
148
- const jsx = jsxProd; // we may want to special case jsxs internally to take advantage of static children.
149
- // for now we can ship identical prod functions
150
-
151
- const jsxs = jsxProd;
152
-
16
+ var key = null;
17
+ void 0 !== maybeKey && (key = "" + maybeKey);
18
+ void 0 !== config.key && (key = "" + config.key);
19
+ if ("key" in config) {
20
+ maybeKey = {};
21
+ for (var propName in config)
22
+ "key" !== propName && (maybeKey[propName] = config[propName]);
23
+ } else maybeKey = config;
24
+ config = maybeKey.ref;
25
+ return {
26
+ $$typeof: REACT_ELEMENT_TYPE,
27
+ type: type,
28
+ key: key,
29
+ ref: void 0 !== config ? config : null,
30
+ props: maybeKey
31
+ };
32
+ }
153
33
  exports.Fragment = REACT_FRAGMENT_TYPE;
154
- exports.jsx = jsx;
155
- exports.jsxs = jsxs;
34
+ exports.jsx = jsxProd;
35
+ exports.jsxs = jsxProd;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license React
3
- * react-jsx-runtime.profiling.min.js
3
+ * react-jsx-runtime.profiling.js
4
4
  *
5
5
  * Copyright (c) Meta Platforms, Inc. and affiliates.
6
6
  *
@@ -8,148 +8,28 @@
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
10
 
11
- 'use strict';
12
-
13
- var React = require('react');
14
-
15
- // ATTENTION
16
- // When adding new symbols to this file,
17
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
18
- // The Symbol used to tag the ReactElement-like types.
19
- const REACT_ELEMENT_TYPE = Symbol.for('react.element');
20
- const REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
21
-
22
- // -----------------------------------------------------------------------------
23
- // as a normal prop instead of stripping it from the props object.
24
- // Passes `ref` as a normal prop instead of stripping it from the props object
25
- // during element creation.
26
-
27
- const enableRefAsProp = true;
28
-
29
- const ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
30
-
31
- function hasValidKey(config) {
32
-
33
- return config.key !== undefined;
34
- }
35
- /**
36
- * Factory method to create a new React element. This no longer adheres to
37
- * the class pattern, so do not use new to call it. Also, instanceof check
38
- * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
39
- * if something is a React Element.
40
- *
41
- * @param {*} type
42
- * @param {*} props
43
- * @param {*} key
44
- * @param {string|object} ref
45
- * @param {*} owner
46
- * @param {*} self A *temporary* helper to detect places where `this` is
47
- * different from the `owner` when React.createElement is called, so that we
48
- * can warn. We want to get rid of owner and replace string `ref`s with arrow
49
- * functions, and as long as `this` and owner are the same, there will be no
50
- * change in behavior.
51
- * @param {*} source An annotation object (added by a transpiler or otherwise)
52
- * indicating filename, line number, and/or other information.
53
- * @internal
54
- */
55
-
56
-
57
- function ReactElement(type, key, _ref, self, source, owner, props) {
58
- let ref;
59
-
60
- {
61
- // When enableRefAsProp is on, ignore whatever was passed as the ref
62
- // argument and treat `props.ref` as the source of truth. The only thing we
63
- // use this for is `element.ref`, which will log a deprecation warning on
64
- // access. In the next release, we can remove `element.ref` as well as the
65
- // `ref` argument.
66
- const refProp = props.ref; // An undefined `element.ref` is coerced to `null` for
67
- // backwards compatibility.
68
-
69
- ref = refProp !== undefined ? refProp : null;
70
- }
71
-
72
- let element;
73
-
74
- {
75
- // In prod, `ref` is a regular property and _owner doesn't exist.
76
- element = {
77
- // This tag allows us to uniquely identify this as a React Element
78
- $$typeof: REACT_ELEMENT_TYPE,
79
- // Built-in properties that belong on the element
80
- type,
81
- key,
82
- ref,
83
- props
84
- };
85
- }
86
-
87
- return element;
88
- }
89
- /**
90
- * https://github.com/reactjs/rfcs/pull/107
91
- * @param {*} type
92
- * @param {object} props
93
- * @param {string} key
94
- */
95
-
96
-
11
+ "use strict";
12
+ require("react");
13
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
14
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
97
15
  function jsxProd(type, config, maybeKey) {
98
- let key = null;
99
- let ref = null; // Currently, key can be spread in as a prop. This causes a potential
100
- // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
101
- // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
102
- // but as an intermediary step, we will use jsxDEV for everything except
103
- // <div {...props} key="Hi" />, because we aren't currently able to tell if
104
- // key is explicitly declared to be undefined or not.
105
-
106
- if (maybeKey !== undefined) {
107
-
108
- key = '' + maybeKey;
109
- }
110
-
111
- if (hasValidKey(config)) {
112
-
113
- key = '' + config.key;
114
- }
115
-
116
- let props;
117
-
118
- if (!('key' in config)) {
119
- // If key was not spread in, we can reuse the original props object. This
120
- // only works for `jsx`, not `createElement`, because `jsx` is a compiler
121
- // target and the compiler always passes a new object. For `createElement`,
122
- // we can't assume a new object is passed every time because it can be
123
- // called manually.
124
- //
125
- // Spreading key is a warning in dev. In a future release, we will not
126
- // remove a spread key from the props object. (But we'll still warn.) We'll
127
- // always pass the object straight through.
128
- props = config;
129
- } else {
130
- // We need to remove reserved props (key, prop, ref). Create a fresh props
131
- // object and copy over all the non-reserved props. We don't use `delete`
132
- // because in V8 it will deopt the object to dictionary mode.
133
- props = {};
134
-
135
- for (const propName in config) {
136
- // Skip over reserved prop names
137
- if (propName !== 'key' && (enableRefAsProp )) {
138
- {
139
- props[propName] = config[propName];
140
- }
141
- }
142
- }
143
- }
144
-
145
- return ReactElement(type, key, ref, undefined, undefined, ReactSharedInternals.owner, props);
146
- } // While `jsxDEV` should never be called when running in production, we do
147
-
148
- const jsx = jsxProd; // we may want to special case jsxs internally to take advantage of static children.
149
- // for now we can ship identical prod functions
150
-
151
- const jsxs = jsxProd;
152
-
16
+ var key = null;
17
+ void 0 !== maybeKey && (key = "" + maybeKey);
18
+ void 0 !== config.key && (key = "" + config.key);
19
+ if ("key" in config) {
20
+ maybeKey = {};
21
+ for (var propName in config)
22
+ "key" !== propName && (maybeKey[propName] = config[propName]);
23
+ } else maybeKey = config;
24
+ config = maybeKey.ref;
25
+ return {
26
+ $$typeof: REACT_ELEMENT_TYPE,
27
+ type: type,
28
+ key: key,
29
+ ref: void 0 !== config ? config : null,
30
+ props: maybeKey
31
+ };
32
+ }
153
33
  exports.Fragment = REACT_FRAGMENT_TYPE;
154
- exports.jsx = jsx;
155
- exports.jsxs = jsxs;
34
+ exports.jsx = jsxProd;
35
+ exports.jsxs = jsxProd;
@@ -16,11 +16,25 @@ if (process.env.NODE_ENV !== "production") {
16
16
 
17
17
  var React = require('react');
18
18
 
19
- // ATTENTION
20
- // When adding new symbols to this file,
21
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
22
- // The Symbol used to tag the ReactElement-like types.
23
- var REACT_ELEMENT_TYPE = Symbol.for('react.element');
19
+ // -----------------------------------------------------------------------------
20
+
21
+ var enableScopeAPI = false; // Experimental Create Event Handle API.
22
+ var enableTransitionTracing = false; // No known bugs, but needs performance testing
23
+
24
+ var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
25
+ // as a normal prop instead of stripping it from the props object.
26
+ // Passes `ref` as a normal prop instead of stripping it from the props object
27
+ // during element creation.
28
+
29
+ var enableRefAsProp = true;
30
+
31
+ var enableRenderableContext = true; // Enables the `initialValue` option for `useDeferredValue`
32
+ // stuff. Intended to enable React core members to more easily debug scheduling
33
+ // issues in DEV builds.
34
+
35
+ var enableDebugTracing = false;
36
+
37
+ var REACT_ELEMENT_TYPE = Symbol.for('react.transitional.element') ;
24
38
  var REACT_PORTAL_TYPE = Symbol.for('react.portal');
25
39
  var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
26
40
  var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
@@ -94,24 +108,6 @@ function printWarning(level, format, args) {
94
108
  }
95
109
  }
96
110
 
97
- // -----------------------------------------------------------------------------
98
-
99
- var enableScopeAPI = false; // Experimental Create Event Handle API.
100
- var enableTransitionTracing = false; // No known bugs, but needs performance testing
101
-
102
- var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
103
- // as a normal prop instead of stripping it from the props object.
104
- // Passes `ref` as a normal prop instead of stripping it from the props object
105
- // during element creation.
106
-
107
- var enableRefAsProp = true;
108
-
109
- var enableRenderableContext = true; // Enables the `initialValue` option for `useDeferredValue`
110
- // stuff. Intended to enable React core members to more easily debug scheduling
111
- // issues in DEV builds.
112
-
113
- var enableDebugTracing = false;
114
-
115
111
  function getWrappedName(outerType, innerType, wrapperName) {
116
112
  var displayName = outerType.displayName;
117
113
 
@@ -822,7 +818,7 @@ function elementRefGetterWithDeprecationWarning() {
822
818
  /**
823
819
  * Factory method to create a new React element. This no longer adheres to
824
820
  * the class pattern, so do not use new to call it. Also, instanceof check
825
- * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
821
+ * will not work. Instead test $$typeof field against Symbol.for('react.transitional.element') to check
826
822
  * if something is a React Element.
827
823
  *
828
824
  * @param {*} type
@@ -1161,11 +1157,14 @@ function validateChildKeys(node, parentType) {
1161
1157
  // but now we print a separate warning for them later.
1162
1158
  if (iteratorFn !== node.entries) {
1163
1159
  var iterator = iteratorFn.call(node);
1164
- var step;
1165
1160
 
1166
- while (!(step = iterator.next()).done) {
1167
- if (isValidElement(step.value)) {
1168
- validateExplicitKey(step.value, parentType);
1161
+ if (iterator !== node) {
1162
+ var step;
1163
+
1164
+ while (!(step = iterator.next()).done) {
1165
+ if (isValidElement(step.value)) {
1166
+ validateExplicitKey(step.value, parentType);
1167
+ }
1169
1168
  }
1170
1169
  }
1171
1170
  }