Updated to v1.3.6

This commit is contained in:
Henry Whitaker
2020-05-13 10:19:22 +01:00
parent acccfced1b
commit f5186ea7fd
165 changed files with 2971 additions and 3223 deletions

View File

@@ -1,10 +1,15 @@
import React, { Component } from 'react';
import _inheritsLoose from '@babel/runtime/helpers/inheritsLoose';
import _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';
import PropTypes from 'prop-types';
import gud from 'gud';
import warning from 'tiny-warning';
var MAX_SIGNED_31_BIT_INT = 1073741823;
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : {};
function getUniqueId() {
var key = '__global_unique_id__';
return commonjsGlobal[key] = (commonjsGlobal[key] || 0) + 1;
}
function objectIs(x, y) {
if (x === y) {
@@ -44,11 +49,9 @@ function onlyChild(children) {
function createReactContext(defaultValue, calculateChangedBits) {
var _Provider$childContex, _Consumer$contextType;
var contextProp = '__create-react-context-' + gud() + '__';
var contextProp = '__create-react-context-' + getUniqueId() + '__';
var Provider =
/*#__PURE__*/
function (_Component) {
var Provider = /*#__PURE__*/function (_Component) {
_inheritsLoose(Provider, _Component);
function Provider() {
@@ -100,9 +103,7 @@ function createReactContext(defaultValue, calculateChangedBits) {
Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = PropTypes.object.isRequired, _Provider$childContex);
var Consumer =
/*#__PURE__*/
function (_Component2) {
var Consumer = /*#__PURE__*/function (_Component2) {
_inheritsLoose(Consumer, _Component2);
function Consumer() {