...**/!(*.map|*.min.js)Size
Gzip
Dependencies
Publish
Install
Publish
Install
@@ -43,7 +43,7 @@ | ||
| 43 | 43 | case REACT_PORTAL_TYPE: |
| 44 | 44 | return "Portal"; |
| 45 | 45 | case REACT_CONTEXT_TYPE: |
| 46 | return (type.displayName || "Context") + ".Provider"; | |
| 46 | return type.displayName || "Context"; | |
| 47 | 47 | case REACT_CONSUMER_TYPE: |
| 48 | 48 | return (type._context.displayName || "Context") + ".Consumer"; |
| 49 | 49 | case REACT_FORWARD_REF_TYPE: |
@@ -150,17 +150,8 @@ | ||
| 150 | 150 | componentName = this.props.ref; |
| 151 | 151 | return void 0 !== componentName ? componentName : null; |
| 152 | 152 | } |
| 153 | function ReactElement( | |
| 154 | type, | |
| 155 | key, | |
| 156 | self, | |
| 157 | source, | |
| 158 | owner, | |
| 159 | props, | |
| 160 | debugStack, | |
| 161 | debugTask | |
| 162 | ) { | |
| 163 | self = props.ref; | |
| 153 | function ReactElement(type, key, props, owner, debugStack, debugTask) { | |
| 154 | var refProp = props.ref; | |
| 164 | 155 | type = { |
| 165 | 156 | $$typeof: REACT_ELEMENT_TYPE, |
| 166 | 157 | type: type, |
@@ -168,7 +159,7 @@ | ||
| 168 | 159 | props: props, |
| 169 | 160 | _owner: owner |
| 170 | 161 | }; |
| 171 | null !== (void 0 !== self ? self : null) | |
| 162 | null !== (void 0 !== refProp ? refProp : null) | |
| 172 | 163 | ? Object.defineProperty(type, "ref", { |
| 173 | 164 | enumerable: !1, |
| 174 | 165 | get: elementRefGetterWithDeprecationWarning |
@@ -207,8 +198,6 @@ | ||
| 207 | 198 | config, |
| 208 | 199 | maybeKey, |
| 209 | 200 | isStaticChildren, |
| 210 | source, | |
| 211 | self, | |
| 212 | 201 | debugStack, |
| 213 | 202 | debugTask |
| 214 | 203 | ) { |
@@ -269,29 +258,38 @@ | ||
| 269 | 258 | return ReactElement( |
| 270 | 259 | type, |
| 271 | 260 | children, |
| 272 | self, | |
| 273 | source, | |
| 261 | maybeKey, | |
| 274 | 262 | getOwner(), |
| 275 | maybeKey, | |
| 276 | 263 | debugStack, |
| 277 | 264 | debugTask |
| 278 | 265 | ); |
| 279 | 266 | } |
| 280 | 267 | function validateChildKeys(node) { |
| 281 | "object" === typeof node && | |
| 282 | null !== node && | |
| 283 | node.$$typeof === REACT_ELEMENT_TYPE && | |
| 284 | node._store && | |
| 285 | (node._store.validated = 1); | |
| 268 | isValidElement(node) | |
| 269 | ? node._store && (node._store.validated = 1) | |
| 270 | : "object" === typeof node && | |
| 271 | null !== node && | |
| 272 | node.$$typeof === REACT_LAZY_TYPE && | |
| 273 | ("fulfilled" === node._payload.status | |
| 274 | ? isValidElement(node._payload.value) && | |
| 275 | node._payload.value._store && | |
| 276 | (node._payload.value._store.validated = 1) | |
| 277 | : node._store && (node._store.validated = 1)); | |
| 286 | 278 | } |
| 279 | function isValidElement(object) { | |
| 280 | return ( | |
| 281 | "object" === typeof object && | |
| 282 | null !== object && | |
| 283 | object.$$typeof === REACT_ELEMENT_TYPE | |
| 284 | ); | |
| 285 | } | |
| 287 | 286 | var React = require("react"), |
| 288 | 287 | REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), |
| 289 | 288 | REACT_PORTAL_TYPE = Symbol.for("react.portal"), |
| 290 | 289 | REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), |
| 291 | 290 | REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), |
| 292 | REACT_PROFILER_TYPE = Symbol.for("react.profiler"); | |
| 293 | Symbol.for("react.provider"); | |
| 294 | var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | |
| 291 | REACT_PROFILER_TYPE = Symbol.for("react.profiler"), | |
| 292 | REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | |
| 295 | 293 | REACT_CONTEXT_TYPE = Symbol.for("react.context"), |
| 296 | 294 | REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), |
| 297 | 295 | REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), |
@@ -323,14 +321,7 @@ | ||
| 323 | 321 | var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner)); |
| 324 | 322 | var didWarnAboutKeySpread = {}; |
| 325 | 323 | exports.Fragment = REACT_FRAGMENT_TYPE; |
| 326 | exports.jsxDEV = function ( | |
| 327 | type, | |
| 328 | config, | |
| 329 | maybeKey, | |
| 330 | isStaticChildren, | |
| 331 | source, | |
| 332 | self | |
| 333 | ) { | |
| 324 | exports.jsxDEV = function (type, config, maybeKey, isStaticChildren) { | |
| 334 | 325 | var trackActualOwner = |
| 335 | 326 | 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++; |
| 336 | 327 | return jsxDEVImpl( |
@@ -338,8 +329,6 @@ | ||
| 338 | 329 | config, |
| 339 | 330 | maybeKey, |
| 340 | 331 | isStaticChildren, |
| 341 | source, | |
| 342 | self, | |
| 343 | 332 | trackActualOwner |
| 344 | 333 | ? Error("react-stack-top-frame") |
| 345 | 334 | : unknownOwnerDebugStack, |
@@ -43,7 +43,7 @@ | ||
| 43 | 43 | case REACT_PORTAL_TYPE: |
| 44 | 44 | return "Portal"; |
| 45 | 45 | case REACT_CONTEXT_TYPE: |
| 46 | return (type.displayName || "Context") + ".Provider"; | |
| 46 | return type.displayName || "Context"; | |
| 47 | 47 | case REACT_CONSUMER_TYPE: |
| 48 | 48 | return (type._context.displayName || "Context") + ".Consumer"; |
| 49 | 49 | case REACT_FORWARD_REF_TYPE: |
@@ -150,17 +150,8 @@ | ||
| 150 | 150 | componentName = this.props.ref; |
| 151 | 151 | return void 0 !== componentName ? componentName : null; |
| 152 | 152 | } |
| 153 | function ReactElement( | |
| 154 | type, | |
| 155 | key, | |
| 156 | self, | |
| 157 | source, | |
| 158 | owner, | |
| 159 | props, | |
| 160 | debugStack, | |
| 161 | debugTask | |
| 162 | ) { | |
| 163 | self = props.ref; | |
| 153 | function ReactElement(type, key, props, owner, debugStack, debugTask) { | |
| 154 | var refProp = props.ref; | |
| 164 | 155 | type = { |
| 165 | 156 | $$typeof: REACT_ELEMENT_TYPE, |
| 166 | 157 | type: type, |
@@ -168,7 +159,7 @@ | ||
| 168 | 159 | props: props, |
| 169 | 160 | _owner: owner |
| 170 | 161 | }; |
| 171 | null !== (void 0 !== self ? self : null) | |
| 162 | null !== (void 0 !== refProp ? refProp : null) | |
| 172 | 163 | ? Object.defineProperty(type, "ref", { |
| 173 | 164 | enumerable: !1, |
| 174 | 165 | get: elementRefGetterWithDeprecationWarning |
@@ -207,8 +198,6 @@ | ||
| 207 | 198 | config, |
| 208 | 199 | maybeKey, |
| 209 | 200 | isStaticChildren, |
| 210 | source, | |
| 211 | self, | |
| 212 | 201 | debugStack, |
| 213 | 202 | debugTask |
| 214 | 203 | ) { |
@@ -269,29 +258,38 @@ | ||
| 269 | 258 | return ReactElement( |
| 270 | 259 | type, |
| 271 | 260 | children, |
| 272 | self, | |
| 273 | source, | |
| 261 | maybeKey, | |
| 274 | 262 | getOwner(), |
| 275 | maybeKey, | |
| 276 | 263 | debugStack, |
| 277 | 264 | debugTask |
| 278 | 265 | ); |
| 279 | 266 | } |
| 280 | 267 | function validateChildKeys(node) { |
| 281 | "object" === typeof node && | |
| 282 | null !== node && | |
| 283 | node.$$typeof === REACT_ELEMENT_TYPE && | |
| 284 | node._store && | |
| 285 | (node._store.validated = 1); | |
| 268 | isValidElement(node) | |
| 269 | ? node._store && (node._store.validated = 1) | |
| 270 | : "object" === typeof node && | |
| 271 | null !== node && | |
| 272 | node.$$typeof === REACT_LAZY_TYPE && | |
| 273 | ("fulfilled" === node._payload.status | |
| 274 | ? isValidElement(node._payload.value) && | |
| 275 | node._payload.value._store && | |
| 276 | (node._payload.value._store.validated = 1) | |
| 277 | : node._store && (node._store.validated = 1)); | |
| 286 | 278 | } |
| 279 | function isValidElement(object) { | |
| 280 | return ( | |
| 281 | "object" === typeof object && | |
| 282 | null !== object && | |
| 283 | object.$$typeof === REACT_ELEMENT_TYPE | |
| 284 | ); | |
| 285 | } | |
| 287 | 286 | var React = require("react"), |
| 288 | 287 | REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), |
| 289 | 288 | REACT_PORTAL_TYPE = Symbol.for("react.portal"), |
| 290 | 289 | REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), |
| 291 | 290 | REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), |
| 292 | REACT_PROFILER_TYPE = Symbol.for("react.profiler"); | |
| 293 | Symbol.for("react.provider"); | |
| 294 | var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | |
| 291 | REACT_PROFILER_TYPE = Symbol.for("react.profiler"), | |
| 292 | REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), | |
| 295 | 293 | REACT_CONTEXT_TYPE = Symbol.for("react.context"), |
| 296 | 294 | REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), |
| 297 | 295 | REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), |
@@ -323,7 +321,7 @@ | ||
| 323 | 321 | var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner)); |
| 324 | 322 | var didWarnAboutKeySpread = {}; |
| 325 | 323 | exports.Fragment = REACT_FRAGMENT_TYPE; |
| 326 | exports.jsx = function (type, config, maybeKey, source, self) { | |
| 324 | exports.jsx = function (type, config, maybeKey) { | |
| 327 | 325 | var trackActualOwner = |
| 328 | 326 | 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++; |
| 329 | 327 | return jsxDEVImpl( |
@@ -331,15 +329,13 @@ | ||
| 331 | 329 | config, |
| 332 | 330 | maybeKey, |
| 333 | 331 | !1, |
| 334 | source, | |
| 335 | self, | |
| 336 | 332 | trackActualOwner |
| 337 | 333 | ? Error("react-stack-top-frame") |
| 338 | 334 | : unknownOwnerDebugStack, |
| 339 | 335 | trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask |
| 340 | 336 | ); |
| 341 | 337 | }; |
| 342 | exports.jsxs = function (type, config, maybeKey, source, self) { | |
| 338 | exports.jsxs = function (type, config, maybeKey) { | |
| 343 | 339 | var trackActualOwner = |
| 344 | 340 | 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++; |
| 345 | 341 | return jsxDEVImpl( |
@@ -347,8 +343,6 @@ | ||
| 347 | 343 | config, |
| 348 | 344 | maybeKey, |
| 349 | 345 | !0, |
| 350 | source, | |
| 351 | self, | |
| 352 | 346 | trackActualOwner |
| 353 | 347 | ? Error("react-stack-top-frame") |
| 354 | 348 | : unknownOwnerDebugStack, |
@@ -25,8 +25,9 @@ | ||
| 25 | 25 | " for the full message or use the non-minified dev environment for full errors and additional helpful warnings." |
| 26 | 26 | ); |
| 27 | 27 | } |
| 28 | var isArrayImpl = Array.isArray, | |
| 29 | REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), | |
| 28 | var isArrayImpl = Array.isArray; | |
| 29 | function noop() {} | |
| 30 | var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), | |
| 30 | 31 | REACT_PORTAL_TYPE = Symbol.for("react.portal"), |
| 31 | 32 | REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), |
| 32 | 33 | REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), |
@@ -45,25 +46,18 @@ | ||
| 45 | 46 | } |
| 46 | 47 | var hasOwnProperty = Object.prototype.hasOwnProperty, |
| 47 | 48 | assign = Object.assign; |
| 48 | function ReactElement(type, key, self, source, owner, props) { | |
| 49 | self = props.ref; | |
| 49 | function ReactElement(type, key, props) { | |
| 50 | var refProp = props.ref; | |
| 50 | 51 | return { |
| 51 | 52 | $$typeof: REACT_ELEMENT_TYPE, |
| 52 | 53 | type: type, |
| 53 | 54 | key: key, |
| 54 | ref: void 0 !== self ? self : null, | |
| 55 | ref: void 0 !== refProp ? refProp : null, | |
| 55 | 56 | props: props |
| 56 | 57 | }; |
| 57 | 58 | } |
| 58 | 59 | function cloneAndReplaceKey(oldElement, newKey) { |
| 59 | return ReactElement( | |
| 60 | oldElement.type, | |
| 61 | newKey, | |
| 62 | void 0, | |
| 63 | void 0, | |
| 64 | void 0, | |
| 65 | oldElement.props | |
| 66 | ); | |
| 60 | return ReactElement(oldElement.type, newKey, oldElement.props); | |
| 67 | 61 | } |
| 68 | 62 | function isValidElement(object) { |
| 69 | 63 | return ( |
@@ -87,7 +81,6 @@ | ||
| 87 | 81 | ? escape("" + element.key) |
| 88 | 82 | : index.toString(36); |
| 89 | 83 | } |
| 90 | function noop() {} | |
| 91 | 84 | function resolveThenable(thenable) { |
| 92 | 85 | switch (thenable.status) { |
| 93 | 86 | case "fulfilled": |
@@ -340,6 +333,10 @@ | ||
| 340 | 333 | } |
| 341 | 334 | }; |
| 342 | 335 | }; |
| 336 | exports.cacheSignal = function () { | |
| 337 | var dispatcher = ReactSharedInternals.A; | |
| 338 | return dispatcher ? dispatcher.cacheSignal() : null; | |
| 339 | }; | |
| 343 | 340 | exports.captureOwnerStack = function () { |
| 344 | 341 | return null; |
| 345 | 342 | }; |
@@ -347,12 +344,9 @@ | ||
| 347 | 344 | if (null === element || void 0 === element) |
| 348 | 345 | throw Error(formatProdErrorMessage(267, element)); |
| 349 | 346 | var props = assign({}, element.props), |
| 350 | key = element.key, | |
| 351 | owner = void 0; | |
| 347 | key = element.key; | |
| 352 | 348 | if (null != config) |
| 353 | for (propName in (void 0 !== config.ref && (owner = void 0), | |
| 354 | void 0 !== config.key && (key = "" + config.key), | |
| 355 | config)) | |
| 349 | for (propName in (void 0 !== config.key && (key = "" + config.key), config)) | |
| 356 | 350 | !hasOwnProperty.call(config, propName) || |
| 357 | 351 | "key" === propName || |
| 358 | 352 | "__self" === propName || |
@@ -366,7 +360,7 @@ | ||
| 366 | 360 | childArray[i] = arguments[i + 2]; |
| 367 | 361 | props.children = childArray; |
| 368 | 362 | } |
| 369 | return ReactElement(element.type, key, void 0, void 0, owner, props); | |
| 363 | return ReactElement(element.type, key, props); | |
| 370 | 364 | }; |
| 371 | 365 | exports.createElement = function (type, config, children) { |
| 372 | 366 | var propName, |
@@ -390,7 +384,7 @@ | ||
| 390 | 384 | for (propName in ((childrenLength = type.defaultProps), childrenLength)) |
| 391 | 385 | void 0 === props[propName] && |
| 392 | 386 | (props[propName] = childrenLength[propName]); |
| 393 | return ReactElement(type, key, void 0, void 0, null, props); | |
| 387 | return ReactElement(type, key, props); | |
| 394 | 388 | }; |
| 395 | 389 | exports.createRef = function () { |
| 396 | 390 | return { current: null }; |
@@ -426,4 +420,4 @@ | ||
| 426 | 420 | exports.useMemo = function (create, deps) { |
| 427 | 421 | return ReactSharedInternals.H.useMemo(create, deps); |
| 428 | 422 | }; |
| 429 | exports.version = "19.1.5"; | |
| 423 | exports.version = "19.2.0"; | |