react 19.0.0-canary-cb151849e1-20240424 → 19.0.0-rc-915b914b3a-20240515
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.
- package/cjs/react-compiler-runtime.development.js +79 -0
- package/cjs/react-compiler-runtime.production.js +16 -0
- package/cjs/react-compiler-runtime.profiling.js +16 -0
- package/cjs/react-jsx-dev-runtime.development.js +20 -5
- package/cjs/react-jsx-dev-runtime.react-server.development.js +1318 -0
- package/cjs/react-jsx-dev-runtime.react-server.production.js +40 -0
- package/cjs/react-jsx-runtime.development.js +20 -5
- package/cjs/react-jsx-runtime.production.js +0 -1
- package/cjs/react-jsx-runtime.profiling.js +0 -1
- package/cjs/react-jsx-runtime.react-server.development.js +20 -5
- package/cjs/react.development.js +35 -21
- package/cjs/react.production.js +8 -16
- package/cjs/react.react-server.development.js +24 -13
- package/cjs/react.react-server.production.js +5 -14
- package/compiler-runtime.js +14 -0
- package/jsx-dev-runtime.react-server.js +7 -0
- package/package.json +11 -2
@@ -0,0 +1,40 @@
|
|
1
|
+
/**
|
2
|
+
* @license React
|
3
|
+
* react-jsx-dev-runtime.react-server.production.js
|
4
|
+
*
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
6
|
+
*
|
7
|
+
* This source code is licensed under the MIT license found in the
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
9
|
+
*/
|
10
|
+
|
11
|
+
"use strict";
|
12
|
+
var React = require("react"),
|
13
|
+
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
14
|
+
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
15
|
+
if (!React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)
|
16
|
+
throw Error(
|
17
|
+
'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
|
18
|
+
);
|
19
|
+
function jsxProd(type, config, maybeKey) {
|
20
|
+
var key = null;
|
21
|
+
void 0 !== maybeKey && (key = "" + maybeKey);
|
22
|
+
void 0 !== config.key && (key = "" + config.key);
|
23
|
+
if ("key" in config) {
|
24
|
+
maybeKey = {};
|
25
|
+
for (var propName in config)
|
26
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
27
|
+
} else maybeKey = config;
|
28
|
+
config = maybeKey.ref;
|
29
|
+
return {
|
30
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
31
|
+
type: type,
|
32
|
+
key: key,
|
33
|
+
ref: void 0 !== config ? config : null,
|
34
|
+
props: maybeKey
|
35
|
+
};
|
36
|
+
}
|
37
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
38
|
+
exports.jsx = jsxProd;
|
39
|
+
exports.jsxDEV = void 0;
|
40
|
+
exports.jsxs = jsxProd;
|
@@ -741,6 +741,19 @@ function describeUnknownElementTypeFrameInDEV(type) {
|
|
741
741
|
}
|
742
742
|
|
743
743
|
var REACT_CLIENT_REFERENCE = Symbol.for('react.client.reference');
|
744
|
+
|
745
|
+
function getOwner() {
|
746
|
+
{
|
747
|
+
var dispatcher = ReactSharedInternals.A;
|
748
|
+
|
749
|
+
if (dispatcher === null) {
|
750
|
+
return null;
|
751
|
+
}
|
752
|
+
|
753
|
+
return dispatcher.getOwner();
|
754
|
+
}
|
755
|
+
}
|
756
|
+
|
744
757
|
var specialPropKeyWarningShown;
|
745
758
|
var didWarnAboutElementRef;
|
746
759
|
|
@@ -832,7 +845,7 @@ function elementRefGetterWithDeprecationWarning() {
|
|
832
845
|
*/
|
833
846
|
|
834
847
|
|
835
|
-
function ReactElement(type, key, _ref, self, source, owner, props) {
|
848
|
+
function ReactElement(type, key, _ref, self, source, owner, props, debugStack, debugTask) {
|
836
849
|
var ref;
|
837
850
|
|
838
851
|
{
|
@@ -1091,7 +1104,7 @@ function jsxDEV(type, config, maybeKey, isStaticChildren, source, self) {
|
|
1091
1104
|
}
|
1092
1105
|
}
|
1093
1106
|
|
1094
|
-
var element = ReactElement(type, key, ref, self, source,
|
1107
|
+
var element = ReactElement(type, key, ref, self, source, getOwner(), props);
|
1095
1108
|
|
1096
1109
|
if (type === REACT_FRAGMENT_TYPE) {
|
1097
1110
|
validateFragmentProps(element);
|
@@ -1103,8 +1116,10 @@ function jsxDEV(type, config, maybeKey, isStaticChildren, source, self) {
|
|
1103
1116
|
|
1104
1117
|
function getDeclarationErrorAddendum() {
|
1105
1118
|
{
|
1106
|
-
|
1107
|
-
|
1119
|
+
var owner = getOwner();
|
1120
|
+
|
1121
|
+
if (owner) {
|
1122
|
+
var name = getComponentNameFromType(owner.type);
|
1108
1123
|
|
1109
1124
|
if (name) {
|
1110
1125
|
return '\n\nCheck the render method of `' + name + '`.';
|
@@ -1211,7 +1226,7 @@ function validateExplicitKey(element, parentType) {
|
|
1211
1226
|
|
1212
1227
|
var childOwner = '';
|
1213
1228
|
|
1214
|
-
if (element && element._owner != null && element._owner !==
|
1229
|
+
if (element && element._owner != null && element._owner !== getOwner()) {
|
1215
1230
|
var ownerName = null;
|
1216
1231
|
|
1217
1232
|
if (typeof element._owner.tag === 'number') {
|
@@ -746,6 +746,19 @@ function describeUnknownElementTypeFrameInDEV(type) {
|
|
746
746
|
}
|
747
747
|
|
748
748
|
var REACT_CLIENT_REFERENCE = Symbol.for('react.client.reference');
|
749
|
+
|
750
|
+
function getOwner() {
|
751
|
+
{
|
752
|
+
var dispatcher = ReactSharedInternalsServer.A;
|
753
|
+
|
754
|
+
if (dispatcher === null) {
|
755
|
+
return null;
|
756
|
+
}
|
757
|
+
|
758
|
+
return dispatcher.getOwner();
|
759
|
+
}
|
760
|
+
}
|
761
|
+
|
749
762
|
var specialPropKeyWarningShown;
|
750
763
|
var didWarnAboutElementRef;
|
751
764
|
|
@@ -837,7 +850,7 @@ function elementRefGetterWithDeprecationWarning() {
|
|
837
850
|
*/
|
838
851
|
|
839
852
|
|
840
|
-
function ReactElement(type, key, _ref, self, source, owner, props) {
|
853
|
+
function ReactElement(type, key, _ref, self, source, owner, props, debugStack, debugTask) {
|
841
854
|
var ref;
|
842
855
|
|
843
856
|
{
|
@@ -1096,7 +1109,7 @@ function jsxDEV$1(type, config, maybeKey, isStaticChildren, source, self) {
|
|
1096
1109
|
}
|
1097
1110
|
}
|
1098
1111
|
|
1099
|
-
var element = ReactElement(type, key, ref, self, source,
|
1112
|
+
var element = ReactElement(type, key, ref, self, source, getOwner(), props);
|
1100
1113
|
|
1101
1114
|
if (type === REACT_FRAGMENT_TYPE) {
|
1102
1115
|
validateFragmentProps(element);
|
@@ -1108,8 +1121,10 @@ function jsxDEV$1(type, config, maybeKey, isStaticChildren, source, self) {
|
|
1108
1121
|
|
1109
1122
|
function getDeclarationErrorAddendum() {
|
1110
1123
|
{
|
1111
|
-
|
1112
|
-
|
1124
|
+
var owner = getOwner();
|
1125
|
+
|
1126
|
+
if (owner) {
|
1127
|
+
var name = getComponentNameFromType(owner.type);
|
1113
1128
|
|
1114
1129
|
if (name) {
|
1115
1130
|
return '\n\nCheck the render method of `' + name + '`.';
|
@@ -1216,7 +1231,7 @@ function validateExplicitKey(element, parentType) {
|
|
1216
1231
|
|
1217
1232
|
var childOwner = '';
|
1218
1233
|
|
1219
|
-
if (element && element._owner != null && element._owner !==
|
1234
|
+
if (element && element._owner != null && element._owner !== getOwner()) {
|
1220
1235
|
var ownerName = null;
|
1221
1236
|
|
1222
1237
|
if (typeof element._owner.tag === 'number') {
|
package/cjs/react.development.js
CHANGED
@@ -12,10 +12,7 @@
|
|
12
12
|
|
13
13
|
if (process.env.NODE_ENV !== "production") {
|
14
14
|
(function() {
|
15
|
-
|
16
|
-
'use strict';
|
17
|
-
|
18
|
-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
15
|
+
'use strict';
|
19
16
|
if (
|
20
17
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
|
21
18
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
|
@@ -23,7 +20,7 @@ if (
|
|
23
20
|
) {
|
24
21
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
25
22
|
}
|
26
|
-
|
23
|
+
var ReactVersion = '19.0.0-rc-915b914b3a-20240515';
|
27
24
|
|
28
25
|
// -----------------------------------------------------------------------------
|
29
26
|
|
@@ -80,14 +77,10 @@ function getIteratorFn(maybeIterable) {
|
|
80
77
|
|
81
78
|
var ReactSharedInternals = {
|
82
79
|
H: null,
|
83
|
-
|
80
|
+
A: null,
|
84
81
|
T: null
|
85
82
|
};
|
86
83
|
|
87
|
-
{
|
88
|
-
ReactSharedInternals.owner = null;
|
89
|
-
}
|
90
|
-
|
91
84
|
{
|
92
85
|
ReactSharedInternals.actQueue = null;
|
93
86
|
ReactSharedInternals.isBatchingLegacy = false;
|
@@ -262,14 +255,21 @@ var ReactNoopUpdateQueue = {
|
|
262
255
|
|
263
256
|
var assign = Object.assign;
|
264
257
|
|
258
|
+
var emptyObject = {};
|
259
|
+
|
260
|
+
{
|
261
|
+
Object.freeze(emptyObject);
|
262
|
+
}
|
265
263
|
/**
|
266
264
|
* Base class helpers for the updating state of a component.
|
267
265
|
*/
|
268
266
|
|
267
|
+
|
269
268
|
function Component(props, context, updater) {
|
270
269
|
this.props = props;
|
271
|
-
this.context = context;
|
272
|
-
|
270
|
+
this.context = context; // If a component has string refs, we will assign a different object later.
|
271
|
+
|
272
|
+
this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
|
273
273
|
// renderer.
|
274
274
|
|
275
275
|
this.updater = updater || ReactNoopUpdateQueue;
|
@@ -369,7 +369,7 @@ function PureComponent(props, context, updater) {
|
|
369
369
|
this.props = props;
|
370
370
|
this.context = context; // If a component has string refs, we will assign a different object later.
|
371
371
|
|
372
|
-
this.refs =
|
372
|
+
this.refs = emptyObject;
|
373
373
|
this.updater = updater || ReactNoopUpdateQueue;
|
374
374
|
}
|
375
375
|
|
@@ -1028,6 +1028,19 @@ function describeUnknownElementTypeFrameInDEV(type) {
|
|
1028
1028
|
}
|
1029
1029
|
|
1030
1030
|
var REACT_CLIENT_REFERENCE = Symbol.for('react.client.reference');
|
1031
|
+
|
1032
|
+
function getOwner() {
|
1033
|
+
{
|
1034
|
+
var dispatcher = ReactSharedInternals.A;
|
1035
|
+
|
1036
|
+
if (dispatcher === null) {
|
1037
|
+
return null;
|
1038
|
+
}
|
1039
|
+
|
1040
|
+
return dispatcher.getOwner();
|
1041
|
+
}
|
1042
|
+
}
|
1043
|
+
|
1031
1044
|
var specialPropKeyWarningShown;
|
1032
1045
|
var didWarnAboutElementRef;
|
1033
1046
|
var didWarnAboutOldJSXRuntime;
|
@@ -1120,7 +1133,7 @@ function elementRefGetterWithDeprecationWarning() {
|
|
1120
1133
|
*/
|
1121
1134
|
|
1122
1135
|
|
1123
|
-
function ReactElement(type, key, _ref, self, source, owner, props) {
|
1136
|
+
function ReactElement(type, key, _ref, self, source, owner, props, debugStack, debugTask) {
|
1124
1137
|
var ref;
|
1125
1138
|
|
1126
1139
|
{
|
@@ -1346,7 +1359,7 @@ function createElement(type, config, children) {
|
|
1346
1359
|
}
|
1347
1360
|
}
|
1348
1361
|
|
1349
|
-
var element = ReactElement(type, key, ref, undefined, undefined,
|
1362
|
+
var element = ReactElement(type, key, ref, undefined, undefined, getOwner(), props);
|
1350
1363
|
|
1351
1364
|
if (type === REACT_FRAGMENT_TYPE) {
|
1352
1365
|
validateFragmentProps(element);
|
@@ -1380,7 +1393,7 @@ function cloneElement(element, config, children) {
|
|
1380
1393
|
|
1381
1394
|
if (config != null) {
|
1382
1395
|
if (hasValidRef(config)) {
|
1383
|
-
owner =
|
1396
|
+
owner = getOwner() ;
|
1384
1397
|
}
|
1385
1398
|
|
1386
1399
|
if (hasValidKey(config)) {
|
@@ -1439,8 +1452,10 @@ function cloneElement(element, config, children) {
|
|
1439
1452
|
|
1440
1453
|
function getDeclarationErrorAddendum() {
|
1441
1454
|
{
|
1442
|
-
|
1443
|
-
|
1455
|
+
var owner = getOwner();
|
1456
|
+
|
1457
|
+
if (owner) {
|
1458
|
+
var name = getComponentNameFromType(owner.type);
|
1444
1459
|
|
1445
1460
|
if (name) {
|
1446
1461
|
return '\n\nCheck the render method of `' + name + '`.';
|
@@ -1547,7 +1562,7 @@ function validateExplicitKey(element, parentType) {
|
|
1547
1562
|
|
1548
1563
|
var childOwner = '';
|
1549
1564
|
|
1550
|
-
if (element && element._owner != null && element._owner !==
|
1565
|
+
if (element && element._owner != null && element._owner !== getOwner()) {
|
1551
1566
|
var ownerName = null;
|
1552
1567
|
|
1553
1568
|
if (typeof element._owner.tag === 'number') {
|
@@ -2786,7 +2801,6 @@ exports.useState = useState;
|
|
2786
2801
|
exports.useSyncExternalStore = useSyncExternalStore;
|
2787
2802
|
exports.useTransition = useTransition;
|
2788
2803
|
exports.version = ReactVersion;
|
2789
|
-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
2790
2804
|
if (
|
2791
2805
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
|
2792
2806
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
|
@@ -2794,6 +2808,6 @@ if (
|
|
2794
2808
|
) {
|
2795
2809
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
2796
2810
|
}
|
2797
|
-
|
2811
|
+
|
2798
2812
|
})();
|
2799
2813
|
}
|
package/cjs/react.production.js
CHANGED
@@ -36,11 +36,12 @@ var ReactNoopUpdateQueue = {
|
|
36
36
|
enqueueReplaceState: function () {},
|
37
37
|
enqueueSetState: function () {}
|
38
38
|
},
|
39
|
-
assign = Object.assign
|
39
|
+
assign = Object.assign,
|
40
|
+
emptyObject = {};
|
40
41
|
function Component(props, context, updater) {
|
41
42
|
this.props = props;
|
42
43
|
this.context = context;
|
43
|
-
this.refs =
|
44
|
+
this.refs = emptyObject;
|
44
45
|
this.updater = updater || ReactNoopUpdateQueue;
|
45
46
|
}
|
46
47
|
Component.prototype.isReactComponent = {};
|
@@ -63,7 +64,7 @@ ComponentDummy.prototype = Component.prototype;
|
|
63
64
|
function PureComponent(props, context, updater) {
|
64
65
|
this.props = props;
|
65
66
|
this.context = context;
|
66
|
-
this.refs =
|
67
|
+
this.refs = emptyObject;
|
67
68
|
this.updater = updater || ReactNoopUpdateQueue;
|
68
69
|
}
|
69
70
|
var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());
|
@@ -71,7 +72,7 @@ pureComponentPrototype.constructor = PureComponent;
|
|
71
72
|
assign(pureComponentPrototype, Component.prototype);
|
72
73
|
pureComponentPrototype.isPureReactComponent = !0;
|
73
74
|
var isArrayImpl = Array.isArray,
|
74
|
-
ReactSharedInternals = { H: null,
|
75
|
+
ReactSharedInternals = { H: null, A: null, T: null },
|
75
76
|
hasOwnProperty = Object.prototype.hasOwnProperty;
|
76
77
|
function ReactElement(type, key, _ref, self, source, owner, props) {
|
77
78
|
_ref = props.ref;
|
@@ -373,8 +374,7 @@ exports.cloneElement = function (element, config, children) {
|
|
373
374
|
key = element.key,
|
374
375
|
owner = void 0;
|
375
376
|
if (null != config)
|
376
|
-
for (propName in (void 0 !== config.ref &&
|
377
|
-
(owner = ReactSharedInternals.owner),
|
377
|
+
for (propName in (void 0 !== config.ref && (owner = void 0),
|
378
378
|
void 0 !== config.key && (key = "" + config.key),
|
379
379
|
config))
|
380
380
|
!hasOwnProperty.call(config, propName) ||
|
@@ -430,15 +430,7 @@ exports.createElement = function (type, config, children) {
|
|
430
430
|
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
431
431
|
void 0 === props[propName] &&
|
432
432
|
(props[propName] = childrenLength[propName]);
|
433
|
-
return ReactElement(
|
434
|
-
type,
|
435
|
-
key,
|
436
|
-
null,
|
437
|
-
void 0,
|
438
|
-
void 0,
|
439
|
-
ReactSharedInternals.owner,
|
440
|
-
props
|
441
|
-
);
|
433
|
+
return ReactElement(type, key, null, void 0, void 0, null, props);
|
442
434
|
};
|
443
435
|
exports.createRef = function () {
|
444
436
|
return { current: null };
|
@@ -544,4 +536,4 @@ exports.useSyncExternalStore = function (
|
|
544
536
|
exports.useTransition = function () {
|
545
537
|
return ReactSharedInternals.H.useTransition();
|
546
538
|
};
|
547
|
-
exports.version = "19.0.0-
|
539
|
+
exports.version = "19.0.0-rc-915b914b3a-20240515";
|
@@ -34,13 +34,9 @@ var enableDebugTracing = false;
|
|
34
34
|
|
35
35
|
var ReactSharedInternals = {
|
36
36
|
H: null,
|
37
|
-
|
37
|
+
A: null
|
38
38
|
};
|
39
39
|
|
40
|
-
{
|
41
|
-
ReactSharedInternals.owner = null;
|
42
|
-
}
|
43
|
-
|
44
40
|
{
|
45
41
|
var currentExtraStackFrame = null;
|
46
42
|
|
@@ -790,6 +786,19 @@ function describeUnknownElementTypeFrameInDEV(type) {
|
|
790
786
|
}
|
791
787
|
|
792
788
|
var REACT_CLIENT_REFERENCE = Symbol.for('react.client.reference');
|
789
|
+
|
790
|
+
function getOwner() {
|
791
|
+
{
|
792
|
+
var dispatcher = ReactSharedInternals.A;
|
793
|
+
|
794
|
+
if (dispatcher === null) {
|
795
|
+
return null;
|
796
|
+
}
|
797
|
+
|
798
|
+
return dispatcher.getOwner();
|
799
|
+
}
|
800
|
+
}
|
801
|
+
|
793
802
|
var specialPropKeyWarningShown;
|
794
803
|
var didWarnAboutElementRef;
|
795
804
|
var didWarnAboutOldJSXRuntime;
|
@@ -882,7 +891,7 @@ function elementRefGetterWithDeprecationWarning() {
|
|
882
891
|
*/
|
883
892
|
|
884
893
|
|
885
|
-
function ReactElement(type, key, _ref, self, source, owner, props) {
|
894
|
+
function ReactElement(type, key, _ref, self, source, owner, props, debugStack, debugTask) {
|
886
895
|
var ref;
|
887
896
|
|
888
897
|
{
|
@@ -1108,7 +1117,7 @@ function createElement(type, config, children) {
|
|
1108
1117
|
}
|
1109
1118
|
}
|
1110
1119
|
|
1111
|
-
var element = ReactElement(type, key, ref, undefined, undefined,
|
1120
|
+
var element = ReactElement(type, key, ref, undefined, undefined, getOwner(), props);
|
1112
1121
|
|
1113
1122
|
if (type === REACT_FRAGMENT_TYPE) {
|
1114
1123
|
validateFragmentProps(element);
|
@@ -1142,7 +1151,7 @@ function cloneElement(element, config, children) {
|
|
1142
1151
|
|
1143
1152
|
if (config != null) {
|
1144
1153
|
if (hasValidRef(config)) {
|
1145
|
-
owner =
|
1154
|
+
owner = getOwner() ;
|
1146
1155
|
}
|
1147
1156
|
|
1148
1157
|
if (hasValidKey(config)) {
|
@@ -1201,8 +1210,10 @@ function cloneElement(element, config, children) {
|
|
1201
1210
|
|
1202
1211
|
function getDeclarationErrorAddendum() {
|
1203
1212
|
{
|
1204
|
-
|
1205
|
-
|
1213
|
+
var owner = getOwner();
|
1214
|
+
|
1215
|
+
if (owner) {
|
1216
|
+
var name = getComponentNameFromType(owner.type);
|
1206
1217
|
|
1207
1218
|
if (name) {
|
1208
1219
|
return '\n\nCheck the render method of `' + name + '`.';
|
@@ -1309,7 +1320,7 @@ function validateExplicitKey(element, parentType) {
|
|
1309
1320
|
|
1310
1321
|
var childOwner = '';
|
1311
1322
|
|
1312
|
-
if (element && element._owner != null && element._owner !==
|
1323
|
+
if (element && element._owner != null && element._owner !== getOwner()) {
|
1313
1324
|
var ownerName = null;
|
1314
1325
|
|
1315
1326
|
if (typeof element._owner.tag === 'number') {
|
@@ -1985,7 +1996,7 @@ function createCacheNode() {
|
|
1985
1996
|
|
1986
1997
|
function cache(fn) {
|
1987
1998
|
return function () {
|
1988
|
-
var dispatcher = ReactSharedInternals.
|
1999
|
+
var dispatcher = ReactSharedInternals.A;
|
1989
2000
|
|
1990
2001
|
if (!dispatcher) {
|
1991
2002
|
// If there is no dispatcher, then we treat this as not being cached.
|
@@ -2147,7 +2158,7 @@ function warnAboutTransitionSubscriptions(prevTransition, currentTransition) {
|
|
2147
2158
|
|
2148
2159
|
function noop() {}
|
2149
2160
|
|
2150
|
-
var ReactVersion = '19.0.0-
|
2161
|
+
var ReactVersion = '19.0.0-rc-915b914b3a-20240515';
|
2151
2162
|
|
2152
2163
|
var Children = {
|
2153
2164
|
map: mapChildren,
|
@@ -9,7 +9,7 @@
|
|
9
9
|
*/
|
10
10
|
|
11
11
|
"use strict";
|
12
|
-
var ReactSharedInternals = { H: null,
|
12
|
+
var ReactSharedInternals = { H: null, A: null };
|
13
13
|
function formatProdErrorMessage(code) {
|
14
14
|
var url = "https://react.dev/errors/" + code;
|
15
15
|
if (1 < arguments.length) {
|
@@ -332,7 +332,7 @@ exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
332
332
|
ReactSharedInternals;
|
333
333
|
exports.cache = function (fn) {
|
334
334
|
return function () {
|
335
|
-
var dispatcher = ReactSharedInternals.
|
335
|
+
var dispatcher = ReactSharedInternals.A;
|
336
336
|
if (!dispatcher) return fn.apply(null, arguments);
|
337
337
|
var fnMap = dispatcher.getCacheForType(createCacheRoot);
|
338
338
|
dispatcher = fnMap.get(fn);
|
@@ -377,8 +377,7 @@ exports.cloneElement = function (element, config, children) {
|
|
377
377
|
key = element.key,
|
378
378
|
owner = void 0;
|
379
379
|
if (null != config)
|
380
|
-
for (propName in (void 0 !== config.ref &&
|
381
|
-
(owner = ReactSharedInternals.owner),
|
380
|
+
for (propName in (void 0 !== config.ref && (owner = void 0),
|
382
381
|
void 0 !== config.key && (key = "" + config.key),
|
383
382
|
config))
|
384
383
|
!hasOwnProperty.call(config, propName) ||
|
@@ -418,15 +417,7 @@ exports.createElement = function (type, config, children) {
|
|
418
417
|
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
419
418
|
void 0 === props[propName] &&
|
420
419
|
(props[propName] = childrenLength[propName]);
|
421
|
-
return ReactElement(
|
422
|
-
type,
|
423
|
-
key,
|
424
|
-
null,
|
425
|
-
void 0,
|
426
|
-
void 0,
|
427
|
-
ReactSharedInternals.owner,
|
428
|
-
props
|
429
|
-
);
|
420
|
+
return ReactElement(type, key, null, void 0, void 0, null, props);
|
430
421
|
};
|
431
422
|
exports.createRef = function () {
|
432
423
|
return { current: null };
|
@@ -485,4 +476,4 @@ exports.useId = function () {
|
|
485
476
|
exports.useMemo = function (create, deps) {
|
486
477
|
return ReactSharedInternals.H.useMemo(create, deps);
|
487
478
|
};
|
488
|
-
exports.version = "19.0.0-
|
479
|
+
exports.version = "19.0.0-rc-915b914b3a-20240515";
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
3
|
+
*
|
4
|
+
* This source code is licensed under the MIT license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
|
8
|
+
'use strict';
|
9
|
+
|
10
|
+
if (process.env.NODE_ENV === 'production') {
|
11
|
+
module.exports = require('./cjs/react-compiler-runtime.production.js');
|
12
|
+
} else {
|
13
|
+
module.exports = require('./cjs/react-compiler-runtime.development.js');
|
14
|
+
}
|
package/package.json
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
"keywords": [
|
5
5
|
"react"
|
6
6
|
],
|
7
|
-
"version": "19.0.0-
|
7
|
+
"version": "19.0.0-rc-915b914b3a-20240515",
|
8
8
|
"homepage": "https://react.dev/",
|
9
9
|
"bugs": "https://github.com/facebook/react/issues",
|
10
10
|
"license": "MIT",
|
@@ -13,9 +13,11 @@
|
|
13
13
|
"README.md",
|
14
14
|
"index.js",
|
15
15
|
"cjs/",
|
16
|
+
"compiler-runtime.js",
|
16
17
|
"jsx-runtime.js",
|
17
18
|
"jsx-runtime.react-server.js",
|
18
19
|
"jsx-dev-runtime.js",
|
20
|
+
"jsx-dev-runtime.react-server.js",
|
19
21
|
"react.react-server.js"
|
20
22
|
],
|
21
23
|
"main": "index.js",
|
@@ -29,7 +31,14 @@
|
|
29
31
|
"react-server": "./jsx-runtime.react-server.js",
|
30
32
|
"default": "./jsx-runtime.js"
|
31
33
|
},
|
32
|
-
"./jsx-dev-runtime":
|
34
|
+
"./jsx-dev-runtime": {
|
35
|
+
"react-server": "./jsx-dev-runtime.react-server.js",
|
36
|
+
"default": "./jsx-dev-runtime.js"
|
37
|
+
},
|
38
|
+
"./compiler-runtime": {
|
39
|
+
"react-server": "./compiler-runtime.js",
|
40
|
+
"default": "./compiler-runtime.js"
|
41
|
+
}
|
33
42
|
},
|
34
43
|
"repository": {
|
35
44
|
"type": "git",
|