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