react 19.1.1 → 19.2.0

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.
@@ -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,
274
- getOwner(),
275
261
  maybeKey,
262
+ getOwner(),
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));
278
+ }
279
+ function isValidElement(object) {
280
+ return (
281
+ "object" === typeof object &&
282
+ null !== object &&
283
+ object.$$typeof === REACT_ELEMENT_TYPE
284
+ );
286
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,
274
- getOwner(),
275
261
  maybeKey,
262
+ getOwner(),
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));
278
+ }
279
+ function isValidElement(object) {
280
+ return (
281
+ "object" === typeof object &&
282
+ null !== object &&
283
+ object.$$typeof === REACT_ELEMENT_TYPE
284
+ );
286
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"),
@@ -327,7 +325,7 @@
327
325
  var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
328
326
  var didWarnAboutKeySpread = {};
329
327
  exports.Fragment = REACT_FRAGMENT_TYPE;
330
- exports.jsx = function (type, config, maybeKey, source, self) {
328
+ exports.jsx = function (type, config, maybeKey) {
331
329
  var trackActualOwner =
332
330
  1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++;
333
331
  return jsxDEVImpl(
@@ -335,22 +333,13 @@
335
333
  config,
336
334
  maybeKey,
337
335
  !1,
338
- source,
339
- self,
340
336
  trackActualOwner
341
337
  ? Error("react-stack-top-frame")
342
338
  : unknownOwnerDebugStack,
343
339
  trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
344
340
  );
345
341
  };
346
- exports.jsxDEV = function (
347
- type,
348
- config,
349
- maybeKey,
350
- isStaticChildren,
351
- source,
352
- self
353
- ) {
342
+ exports.jsxDEV = function (type, config, maybeKey, isStaticChildren) {
354
343
  var trackActualOwner =
355
344
  1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++;
356
345
  return jsxDEVImpl(
@@ -358,15 +347,13 @@
358
347
  config,
359
348
  maybeKey,
360
349
  isStaticChildren,
361
- source,
362
- self,
363
350
  trackActualOwner
364
351
  ? Error("react-stack-top-frame")
365
352
  : unknownOwnerDebugStack,
366
353
  trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
367
354
  );
368
355
  };
369
- exports.jsxs = function (type, config, maybeKey, source, self) {
356
+ exports.jsxs = function (type, config, maybeKey) {
370
357
  var trackActualOwner =
371
358
  1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++;
372
359
  return jsxDEVImpl(
@@ -374,8 +361,6 @@
374
361
  config,
375
362
  maybeKey,
376
363
  !0,
377
- source,
378
- self,
379
364
  trackActualOwner
380
365
  ? Error("react-stack-top-frame")
381
366
  : 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,
274
- getOwner(),
275
261
  maybeKey,
262
+ getOwner(),
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));
278
+ }
279
+ function isValidElement(object) {
280
+ return (
281
+ "object" === typeof object &&
282
+ null !== object &&
283
+ object.$$typeof === REACT_ELEMENT_TYPE
284
+ );
286
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,
@@ -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,
274
- getOwner(),
275
261
  maybeKey,
262
+ getOwner(),
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));
278
+ }
279
+ function isValidElement(object) {
280
+ return (
281
+ "object" === typeof object &&
282
+ null !== object &&
283
+ object.$$typeof === REACT_ELEMENT_TYPE
284
+ );
286
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"),
@@ -327,7 +325,7 @@
327
325
  var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
328
326
  var didWarnAboutKeySpread = {};
329
327
  exports.Fragment = REACT_FRAGMENT_TYPE;
330
- exports.jsx = function (type, config, maybeKey, source, self) {
328
+ exports.jsx = function (type, config, maybeKey) {
331
329
  var trackActualOwner =
332
330
  1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++;
333
331
  return jsxDEVImpl(
@@ -335,22 +333,13 @@
335
333
  config,
336
334
  maybeKey,
337
335
  !1,
338
- source,
339
- self,
340
336
  trackActualOwner
341
337
  ? Error("react-stack-top-frame")
342
338
  : unknownOwnerDebugStack,
343
339
  trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
344
340
  );
345
341
  };
346
- exports.jsxDEV = function (
347
- type,
348
- config,
349
- maybeKey,
350
- isStaticChildren,
351
- source,
352
- self
353
- ) {
342
+ exports.jsxDEV = function (type, config, maybeKey, isStaticChildren) {
354
343
  var trackActualOwner =
355
344
  1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++;
356
345
  return jsxDEVImpl(
@@ -358,15 +347,13 @@
358
347
  config,
359
348
  maybeKey,
360
349
  isStaticChildren,
361
- source,
362
- self,
363
350
  trackActualOwner
364
351
  ? Error("react-stack-top-frame")
365
352
  : unknownOwnerDebugStack,
366
353
  trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
367
354
  );
368
355
  };
369
- exports.jsxs = function (type, config, maybeKey, source, self) {
356
+ exports.jsxs = function (type, config, maybeKey) {
370
357
  var trackActualOwner =
371
358
  1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++;
372
359
  return jsxDEVImpl(
@@ -374,8 +361,6 @@
374
361
  config,
375
362
  maybeKey,
376
363
  !0,
377
- source,
378
- self,
379
364
  trackActualOwner
380
365
  ? Error("react-stack-top-frame")
381
366
  : unknownOwnerDebugStack,