Der Rest dieses Vergleichs wird geladen.

Untitled diff

Erstellt Diff läuft nie ab
42 Entfernungen
793 Zeilen
74 Hinzufügungen
802 Zeilen
/**
/**
* Copyright (c) Facebook, Inc. and its affiliates.
* Copyright (c) Facebook, Inc. and its affiliates.
*
*
* This source code is licensed under the MIT license found in the
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* LICENSE file in the root directory of this source tree.
*
*
* @noflow
* @noflow
* @preventMunge
* @preventMunge
* @preserve-invariant-messages
* @preserve-invariant-messages
*/
*/
'use strict';
'use strict';
if (__DEV__) {
if (__DEV__) {
(function() {
(function() {
"use strict";
"use strict";
var React = require("react");
var React = require("react");
var checkPropTypes = require("prop-types/checkPropTypes");
var checkPropTypes = require("prop-types/checkPropTypes");
var Scheduler = require("scheduler");
var Scheduler = require("scheduler");
var tracing = require("scheduler/tracing");
var tracing = require("scheduler/tracing");
// Do not require this module directly! Use normal `invariant` calls with
// Do not require this module directly! Use normal `invariant` calls with
// template literal strings. The messages will be converted to ReactError during
// template literal strings. The messages will be converted to ReactError during
// build, and in production they will be minified.
// build, and in production they will be minified.
// Do not require this module directly! Use normal `invariant` calls with
// Do not require this module directly! Use normal `invariant` calls with
// template literal strings. The messages will be converted to ReactError during
// template literal strings. The messages will be converted to ReactError during
// build, and in production they will be minified.
// build, and in production they will be minified.
function ReactError(error) {
function ReactError(error) {
error.name = "Invariant Violation";
error.name = "Invariant Violation";
return error;
return error;
}
}
/**
/**
* Use invariant() to assert state which your program assumes to be true.
* Use invariant() to assert state which your program assumes to be true.
*
*
* Provide sprintf-style format (only %s is supported) and arguments
* Provide sprintf-style format (only %s is supported) and arguments
* to provide information about what broke and what you were
* to provide information about what broke and what you were
* expecting.
* expecting.
*
*
* The invariant message will be stripped in production, but the invariant
* The invariant message will be stripped in production, but the invariant
* will remain to ensure logic does not differ in production.
* will remain to ensure logic does not differ in production.
*/
*/
var warningWithoutStack = require("warning");
var warningWithoutStack = require("warning");
/**
/**
* `ReactInstanceMap` maintains a mapping from a public facing stateful
* `ReactInstanceMap` maintains a mapping from a public facing stateful
* instance (key) and the internal representation (value). This allows public
* instance (key) and the internal representation (value). This allows public
* methods to accept the user facing instance as an argument and map them back
* methods to accept the user facing instance as an argument and map them back
* to internal methods.
* to internal methods.
*
*
* Note that this module is currently shared and assumed to be stateless.
* Note that this module is currently shared and assumed to be stateless.
* If this becomes an actual Map, that will break.
* If this becomes an actual Map, that will break.
*/
*/
/**
/**
* This API should be called `delete` but we'd have to make sure to always
* This API should be called `delete` but we'd have to make sure to always
* transform these to strings for IE support. When this transform is fully
* transform these to strings for IE support. When this transform is fully
* supported we can rename it.
* supported we can rename it.
*/
*/
function get(key) {
function get(key) {
return key._reactInternalFiber;
return key._reactInternalFiber;
}
}
function has(key) {
function has(key) {
return key._reactInternalFiber !== undefined;
return key._reactInternalFiber !== undefined;
}
}
function set(key, value) {
function set(key, value) {
key._reactInternalFiber = value;
key._reactInternalFiber = value;
}
}
var ReactSharedInternals =
var ReactSharedInternals =
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // Prevent newer renderers from RTE when used with older react package versions.
// Prevent newer renderers from RTE when used with older react package versions.
// Current owner and dispatcher used to share the same ref,
// Current owner and dispatcher used to share the same ref,
// but PR #14548 split them out to better support the react-debug-tools package.
// but PR #14548 split them out to better support the react-debug-tools package.
if (!ReactSharedInternals.hasOwnProperty("ReactCurrentDispatcher")) {
if (!ReactSharedInternals.hasOwnProperty("ReactCurrentDispatcher")) {
ReactSharedInternals.ReactCurrentDispatcher = {
ReactSharedInternals.ReactCurrentDispatcher = {
current: null
current: null
};
};
}
}
if (!ReactSharedInternals.hasOwnProperty("ReactCurrentBatchConfig")) {
if (!ReactSharedInternals.hasOwnProperty("ReactCurrentBatchConfig")) {
ReactSharedInternals.ReactCurrentBatchConfig = {
ReactSharedInternals.ReactCurrentBatchConfig = {
suspense: null
suspense: null
};
};
}
}
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
// nor polyfill, then a plain number is used for performance.
// nor polyfill, then a plain number is used for performance.
var hasSymbol = typeof Symbol === "function" && Symbol.for;
var hasSymbol = typeof Symbol === "function" && Symbol.for;
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 0xeac7;
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 0xeac7;
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 0xeaca;
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 0xeaca;
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 0xeacb;
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 0xeacb;
var REACT_STRICT_MODE_TYPE = hasSymbol
var REACT_STRICT_MODE_TYPE = hasSymbol
? Symbol.for("react.strict_mode")
? Symbol.for("react.strict_mode")
: 0xeacc;
: 0xeacc;
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 0xead2;
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 0xead2;
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 0xeacd;
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 0xeacd;
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 0xeace;
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
// TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
// (unstable) APIs that have been removed. Can we remove the symbols?
// (unstable) APIs that have been removed. Can we remove the symbols?
var REACT_CONCURRENT_MODE_TYPE = hasSymbol
var REACT_CONCURRENT_MODE_TYPE = hasSymbol
? Symbol.for("react.concurrent_mode")
? Symbol.for("react.concurrent_mode")
: 0xeacf;
: 0xeacf;
var REACT_FORWARD_REF_TYPE = hasSymbol
var REACT_FORWARD_REF_TYPE = hasSymbol
? Symbol.for("react.forward_ref")
? Symbol.for("react.forward_ref")
: 0xead0;
: 0xead0;
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 0xead1;
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 0xead1;
var REACT_SUSPENSE_LIST_TYPE = hasSymbol
var REACT_SUSPENSE_LIST_TYPE = hasSymbol
? Symbol.for("react.suspense_list")
? Symbol.for("react.suspense_list")
: 0xead8;
: 0xead8;
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 0xead3;
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 0xead3;