|
7 | 7 | * @noflow
|
8 | 8 | * @nolint
|
9 | 9 | * @preventMunge
|
10 |
| - * @generated SignedSource<<ac6e1c721cd9e734454c18870d36b509>> |
| 10 | + * @generated SignedSource<<ed4da00dc7705121a507bffa64d7f8bb>> |
11 | 11 | */
|
12 | 12 |
|
13 | 13 | "use strict";
|
@@ -133,42 +133,6 @@ function jsxProd(type, config, maybeKey) {
|
133 | 133 | props
|
134 | 134 | );
|
135 | 135 | }
|
136 |
| -function createElement(type, config, children) { |
137 |
| - var propName, |
138 |
| - props = {}, |
139 |
| - key = null, |
140 |
| - ref = null; |
141 |
| - if (null != config) |
142 |
| - for (propName in (void 0 !== config.ref && (ref = config.ref), |
143 |
| - void 0 !== config.key && (key = "" + config.key), |
144 |
| - config)) |
145 |
| - hasOwnProperty.call(config, propName) && |
146 |
| - "key" !== propName && |
147 |
| - "ref" !== propName && |
148 |
| - "__self" !== propName && |
149 |
| - "__source" !== propName && |
150 |
| - (props[propName] = config[propName]); |
151 |
| - var childrenLength = arguments.length - 2; |
152 |
| - if (1 === childrenLength) props.children = children; |
153 |
| - else if (1 < childrenLength) { |
154 |
| - for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++) |
155 |
| - childArray[i] = arguments[i + 2]; |
156 |
| - props.children = childArray; |
157 |
| - } |
158 |
| - if (type && type.defaultProps) |
159 |
| - for (propName in ((childrenLength = type.defaultProps), childrenLength)) |
160 |
| - void 0 === props[propName] && |
161 |
| - (props[propName] = childrenLength[propName]); |
162 |
| - return ReactElement( |
163 |
| - type, |
164 |
| - key, |
165 |
| - ref, |
166 |
| - void 0, |
167 |
| - void 0, |
168 |
| - ReactCurrentOwner.current, |
169 |
| - props |
170 |
| - ); |
171 |
| -} |
172 | 136 | function cloneAndReplaceKey(oldElement, newKey) {
|
173 | 137 | return ReactElement(
|
174 | 138 | oldElement.type,
|
@@ -508,11 +472,41 @@ exports.createContext = function (defaultValue) {
|
508 | 472 | (defaultValue.Consumer = defaultValue));
|
509 | 473 | return defaultValue;
|
510 | 474 | };
|
511 |
| -exports.createElement = createElement; |
512 |
| -exports.createFactory = function (type) { |
513 |
| - var factory = createElement.bind(null, type); |
514 |
| - factory.type = type; |
515 |
| - return factory; |
| 475 | +exports.createElement = function (type, config, children) { |
| 476 | + var propName, |
| 477 | + props = {}, |
| 478 | + key = null, |
| 479 | + ref = null; |
| 480 | + if (null != config) |
| 481 | + for (propName in (void 0 !== config.ref && (ref = config.ref), |
| 482 | + void 0 !== config.key && (key = "" + config.key), |
| 483 | + config)) |
| 484 | + hasOwnProperty.call(config, propName) && |
| 485 | + "key" !== propName && |
| 486 | + "ref" !== propName && |
| 487 | + "__self" !== propName && |
| 488 | + "__source" !== propName && |
| 489 | + (props[propName] = config[propName]); |
| 490 | + var childrenLength = arguments.length - 2; |
| 491 | + if (1 === childrenLength) props.children = children; |
| 492 | + else if (1 < childrenLength) { |
| 493 | + for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++) |
| 494 | + childArray[i] = arguments[i + 2]; |
| 495 | + props.children = childArray; |
| 496 | + } |
| 497 | + if (type && type.defaultProps) |
| 498 | + for (propName in ((childrenLength = type.defaultProps), childrenLength)) |
| 499 | + void 0 === props[propName] && |
| 500 | + (props[propName] = childrenLength[propName]); |
| 501 | + return ReactElement( |
| 502 | + type, |
| 503 | + key, |
| 504 | + ref, |
| 505 | + void 0, |
| 506 | + void 0, |
| 507 | + ReactCurrentOwner.current, |
| 508 | + props |
| 509 | + ); |
516 | 510 | };
|
517 | 511 | exports.createRef = function () {
|
518 | 512 | return { current: null };
|
@@ -663,4 +657,4 @@ exports.useSyncExternalStore = function (
|
663 | 657 | exports.useTransition = function () {
|
664 | 658 | return ReactCurrentDispatcher.current.useTransition();
|
665 | 659 | };
|
666 |
| -exports.version = "19.0.0-canary-bd294150"; |
| 660 | +exports.version = "19.0.0-canary-a9f85346"; |
0 commit comments