react-intl 2.8.0 → 2.9.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.
- package/dist/react-intl.js +352 -2
- package/dist/react-intl.js.map +1 -1
- package/dist/react-intl.min.js +1 -1
- package/dist/react-intl.min.js.map +1 -1
- package/package.json +2 -2
- package/src/en.js +1 -1
- package/yarn.lock +0 -4846
package/dist/react-intl.js
CHANGED
|
@@ -2757,6 +2757,323 @@ var pluralFormatPropTypes = {
|
|
|
2757
2757
|
style: oneOf(['cardinal', 'ordinal'])
|
|
2758
2758
|
};
|
|
2759
2759
|
|
|
2760
|
+
function unwrapExports (x) {
|
|
2761
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
2762
|
+
}
|
|
2763
|
+
|
|
2764
|
+
function createCommonjsModule(fn, module) {
|
|
2765
|
+
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
2766
|
+
}
|
|
2767
|
+
|
|
2768
|
+
var reactIs_production_min = createCommonjsModule(function (module, exports) {
|
|
2769
|
+
/** @license React v16.8.6
|
|
2770
|
+
* react-is.production.min.js
|
|
2771
|
+
*
|
|
2772
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
2773
|
+
*
|
|
2774
|
+
* This source code is licensed under the MIT license found in the
|
|
2775
|
+
* LICENSE file in the root directory of this source tree.
|
|
2776
|
+
*/
|
|
2777
|
+
|
|
2778
|
+
'use strict';
|
|
2779
|
+
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
2780
|
+
var b = "function" === typeof Symbol && Symbol.for,
|
|
2781
|
+
c = b ? Symbol.for("react.element") : 60103,
|
|
2782
|
+
d = b ? Symbol.for("react.portal") : 60106,
|
|
2783
|
+
e = b ? Symbol.for("react.fragment") : 60107,
|
|
2784
|
+
f = b ? Symbol.for("react.strict_mode") : 60108,
|
|
2785
|
+
g = b ? Symbol.for("react.profiler") : 60114,
|
|
2786
|
+
h = b ? Symbol.for("react.provider") : 60109,
|
|
2787
|
+
k = b ? Symbol.for("react.context") : 60110,
|
|
2788
|
+
l = b ? Symbol.for("react.async_mode") : 60111,
|
|
2789
|
+
m = b ? Symbol.for("react.concurrent_mode") : 60111,
|
|
2790
|
+
n = b ? Symbol.for("react.forward_ref") : 60112,
|
|
2791
|
+
p = b ? Symbol.for("react.suspense") : 60113,
|
|
2792
|
+
q = b ? Symbol.for("react.memo") : 60115,
|
|
2793
|
+
r = b ? Symbol.for("react.lazy") : 60116;function t(a) {
|
|
2794
|
+
if ("object" === typeof a && null !== a) {
|
|
2795
|
+
var u = a.$$typeof;switch (u) {case c:
|
|
2796
|
+
switch (a = a.type, a) {case l:case m:case e:case g:case f:case p:
|
|
2797
|
+
return a;default:
|
|
2798
|
+
switch (a = a && a.$$typeof, a) {case k:case n:case h:
|
|
2799
|
+
return a;default:
|
|
2800
|
+
return u;}}case r:case q:case d:
|
|
2801
|
+
return u;}
|
|
2802
|
+
}
|
|
2803
|
+
}function v(a) {
|
|
2804
|
+
return t(a) === m;
|
|
2805
|
+
}exports.typeOf = t;exports.AsyncMode = l;exports.ConcurrentMode = m;exports.ContextConsumer = k;exports.ContextProvider = h;exports.Element = c;exports.ForwardRef = n;
|
|
2806
|
+
exports.Fragment = e;exports.Lazy = r;exports.Memo = q;exports.Portal = d;exports.Profiler = g;exports.StrictMode = f;exports.Suspense = p;exports.isValidElementType = function (a) {
|
|
2807
|
+
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || "object" === typeof a && null !== a && (a.$$typeof === r || a.$$typeof === q || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n);
|
|
2808
|
+
};exports.isAsyncMode = function (a) {
|
|
2809
|
+
return v(a) || t(a) === l;
|
|
2810
|
+
};exports.isConcurrentMode = v;exports.isContextConsumer = function (a) {
|
|
2811
|
+
return t(a) === k;
|
|
2812
|
+
};
|
|
2813
|
+
exports.isContextProvider = function (a) {
|
|
2814
|
+
return t(a) === h;
|
|
2815
|
+
};exports.isElement = function (a) {
|
|
2816
|
+
return "object" === typeof a && null !== a && a.$$typeof === c;
|
|
2817
|
+
};exports.isForwardRef = function (a) {
|
|
2818
|
+
return t(a) === n;
|
|
2819
|
+
};exports.isFragment = function (a) {
|
|
2820
|
+
return t(a) === e;
|
|
2821
|
+
};exports.isLazy = function (a) {
|
|
2822
|
+
return t(a) === r;
|
|
2823
|
+
};exports.isMemo = function (a) {
|
|
2824
|
+
return t(a) === q;
|
|
2825
|
+
};exports.isPortal = function (a) {
|
|
2826
|
+
return t(a) === d;
|
|
2827
|
+
};exports.isProfiler = function (a) {
|
|
2828
|
+
return t(a) === g;
|
|
2829
|
+
};exports.isStrictMode = function (a) {
|
|
2830
|
+
return t(a) === f;
|
|
2831
|
+
};
|
|
2832
|
+
exports.isSuspense = function (a) {
|
|
2833
|
+
return t(a) === p;
|
|
2834
|
+
};
|
|
2835
|
+
});
|
|
2836
|
+
|
|
2837
|
+
unwrapExports(reactIs_production_min);
|
|
2838
|
+
|
|
2839
|
+
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
2840
|
+
/** @license React v16.8.6
|
|
2841
|
+
* react-is.development.js
|
|
2842
|
+
*
|
|
2843
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
2844
|
+
*
|
|
2845
|
+
* This source code is licensed under the MIT license found in the
|
|
2846
|
+
* LICENSE file in the root directory of this source tree.
|
|
2847
|
+
*/
|
|
2848
|
+
|
|
2849
|
+
'use strict';
|
|
2850
|
+
|
|
2851
|
+
{
|
|
2852
|
+
(function () {
|
|
2853
|
+
'use strict';
|
|
2854
|
+
|
|
2855
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2856
|
+
|
|
2857
|
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
2858
|
+
// nor polyfill, then a plain number is used for performance.
|
|
2859
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
2860
|
+
|
|
2861
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
2862
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
2863
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
2864
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
2865
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
2866
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
2867
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
|
|
2868
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
2869
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
2870
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
2871
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
2872
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
2873
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
2874
|
+
|
|
2875
|
+
function isValidElementType(type) {
|
|
2876
|
+
return typeof type === 'string' || typeof type === 'function' ||
|
|
2877
|
+
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
2878
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);
|
|
2879
|
+
}
|
|
2880
|
+
|
|
2881
|
+
/**
|
|
2882
|
+
* Forked from fbjs/warning:
|
|
2883
|
+
* https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
|
|
2884
|
+
*
|
|
2885
|
+
* Only change is we use console.warn instead of console.error,
|
|
2886
|
+
* and do nothing when 'console' is not supported.
|
|
2887
|
+
* This really simplifies the code.
|
|
2888
|
+
* ---
|
|
2889
|
+
* Similar to invariant but only logs a warning if the condition is not met.
|
|
2890
|
+
* This can be used to log issues in development environments in critical
|
|
2891
|
+
* paths. Removing the logging code for production environments will keep the
|
|
2892
|
+
* same logic and follow the same code paths.
|
|
2893
|
+
*/
|
|
2894
|
+
|
|
2895
|
+
var lowPriorityWarning = function () {};
|
|
2896
|
+
|
|
2897
|
+
{
|
|
2898
|
+
var printWarning = function (format) {
|
|
2899
|
+
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
2900
|
+
args[_key - 1] = arguments[_key];
|
|
2901
|
+
}
|
|
2902
|
+
|
|
2903
|
+
var argIndex = 0;
|
|
2904
|
+
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
|
2905
|
+
return args[argIndex++];
|
|
2906
|
+
});
|
|
2907
|
+
if (typeof console !== 'undefined') {
|
|
2908
|
+
console.warn(message);
|
|
2909
|
+
}
|
|
2910
|
+
try {
|
|
2911
|
+
// --- Welcome to debugging React ---
|
|
2912
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
2913
|
+
// to find the callsite that caused this warning to fire.
|
|
2914
|
+
throw new Error(message);
|
|
2915
|
+
} catch (x) {}
|
|
2916
|
+
};
|
|
2917
|
+
|
|
2918
|
+
lowPriorityWarning = function (condition, format) {
|
|
2919
|
+
if (format === undefined) {
|
|
2920
|
+
throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
|
|
2921
|
+
}
|
|
2922
|
+
if (!condition) {
|
|
2923
|
+
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
|
2924
|
+
args[_key2 - 2] = arguments[_key2];
|
|
2925
|
+
}
|
|
2926
|
+
|
|
2927
|
+
printWarning.apply(undefined, [format].concat(args));
|
|
2928
|
+
}
|
|
2929
|
+
};
|
|
2930
|
+
}
|
|
2931
|
+
|
|
2932
|
+
var lowPriorityWarning$1 = lowPriorityWarning;
|
|
2933
|
+
|
|
2934
|
+
function typeOf(object) {
|
|
2935
|
+
if (typeof object === 'object' && object !== null) {
|
|
2936
|
+
var $$typeof = object.$$typeof;
|
|
2937
|
+
switch ($$typeof) {
|
|
2938
|
+
case REACT_ELEMENT_TYPE:
|
|
2939
|
+
var type = object.type;
|
|
2940
|
+
|
|
2941
|
+
switch (type) {
|
|
2942
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
2943
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
2944
|
+
case REACT_FRAGMENT_TYPE:
|
|
2945
|
+
case REACT_PROFILER_TYPE:
|
|
2946
|
+
case REACT_STRICT_MODE_TYPE:
|
|
2947
|
+
case REACT_SUSPENSE_TYPE:
|
|
2948
|
+
return type;
|
|
2949
|
+
default:
|
|
2950
|
+
var $$typeofType = type && type.$$typeof;
|
|
2951
|
+
|
|
2952
|
+
switch ($$typeofType) {
|
|
2953
|
+
case REACT_CONTEXT_TYPE:
|
|
2954
|
+
case REACT_FORWARD_REF_TYPE:
|
|
2955
|
+
case REACT_PROVIDER_TYPE:
|
|
2956
|
+
return $$typeofType;
|
|
2957
|
+
default:
|
|
2958
|
+
return $$typeof;
|
|
2959
|
+
}
|
|
2960
|
+
}
|
|
2961
|
+
case REACT_LAZY_TYPE:
|
|
2962
|
+
case REACT_MEMO_TYPE:
|
|
2963
|
+
case REACT_PORTAL_TYPE:
|
|
2964
|
+
return $$typeof;
|
|
2965
|
+
}
|
|
2966
|
+
}
|
|
2967
|
+
|
|
2968
|
+
return undefined;
|
|
2969
|
+
}
|
|
2970
|
+
|
|
2971
|
+
// AsyncMode is deprecated along with isAsyncMode
|
|
2972
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
2973
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
2974
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
2975
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
2976
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
2977
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
2978
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
2979
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
2980
|
+
var Memo = REACT_MEMO_TYPE;
|
|
2981
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
2982
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
2983
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
2984
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
2985
|
+
|
|
2986
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
2987
|
+
|
|
2988
|
+
// AsyncMode should be deprecated
|
|
2989
|
+
function isAsyncMode(object) {
|
|
2990
|
+
{
|
|
2991
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
2992
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
2993
|
+
lowPriorityWarning$1(false, 'The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
2994
|
+
}
|
|
2995
|
+
}
|
|
2996
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
2997
|
+
}
|
|
2998
|
+
function isConcurrentMode(object) {
|
|
2999
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
3000
|
+
}
|
|
3001
|
+
function isContextConsumer(object) {
|
|
3002
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
3003
|
+
}
|
|
3004
|
+
function isContextProvider(object) {
|
|
3005
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
3006
|
+
}
|
|
3007
|
+
function isElement(object) {
|
|
3008
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
3009
|
+
}
|
|
3010
|
+
function isForwardRef(object) {
|
|
3011
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
3012
|
+
}
|
|
3013
|
+
function isFragment(object) {
|
|
3014
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
3015
|
+
}
|
|
3016
|
+
function isLazy(object) {
|
|
3017
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
3018
|
+
}
|
|
3019
|
+
function isMemo(object) {
|
|
3020
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
3021
|
+
}
|
|
3022
|
+
function isPortal(object) {
|
|
3023
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
3024
|
+
}
|
|
3025
|
+
function isProfiler(object) {
|
|
3026
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
3027
|
+
}
|
|
3028
|
+
function isStrictMode(object) {
|
|
3029
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
3030
|
+
}
|
|
3031
|
+
function isSuspense(object) {
|
|
3032
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
3033
|
+
}
|
|
3034
|
+
|
|
3035
|
+
exports.typeOf = typeOf;
|
|
3036
|
+
exports.AsyncMode = AsyncMode;
|
|
3037
|
+
exports.ConcurrentMode = ConcurrentMode;
|
|
3038
|
+
exports.ContextConsumer = ContextConsumer;
|
|
3039
|
+
exports.ContextProvider = ContextProvider;
|
|
3040
|
+
exports.Element = Element;
|
|
3041
|
+
exports.ForwardRef = ForwardRef;
|
|
3042
|
+
exports.Fragment = Fragment;
|
|
3043
|
+
exports.Lazy = Lazy;
|
|
3044
|
+
exports.Memo = Memo;
|
|
3045
|
+
exports.Portal = Portal;
|
|
3046
|
+
exports.Profiler = Profiler;
|
|
3047
|
+
exports.StrictMode = StrictMode;
|
|
3048
|
+
exports.Suspense = Suspense;
|
|
3049
|
+
exports.isValidElementType = isValidElementType;
|
|
3050
|
+
exports.isAsyncMode = isAsyncMode;
|
|
3051
|
+
exports.isConcurrentMode = isConcurrentMode;
|
|
3052
|
+
exports.isContextConsumer = isContextConsumer;
|
|
3053
|
+
exports.isContextProvider = isContextProvider;
|
|
3054
|
+
exports.isElement = isElement;
|
|
3055
|
+
exports.isForwardRef = isForwardRef;
|
|
3056
|
+
exports.isFragment = isFragment;
|
|
3057
|
+
exports.isLazy = isLazy;
|
|
3058
|
+
exports.isMemo = isMemo;
|
|
3059
|
+
exports.isPortal = isPortal;
|
|
3060
|
+
exports.isProfiler = isProfiler;
|
|
3061
|
+
exports.isStrictMode = isStrictMode;
|
|
3062
|
+
exports.isSuspense = isSuspense;
|
|
3063
|
+
})();
|
|
3064
|
+
}
|
|
3065
|
+
});
|
|
3066
|
+
|
|
3067
|
+
unwrapExports(reactIs_development);
|
|
3068
|
+
|
|
3069
|
+
var reactIs = createCommonjsModule(function (module) {
|
|
3070
|
+
'use strict';
|
|
3071
|
+
|
|
3072
|
+
{
|
|
3073
|
+
module.exports = reactIs_development;
|
|
3074
|
+
}
|
|
3075
|
+
});
|
|
3076
|
+
|
|
2760
3077
|
'use strict';
|
|
2761
3078
|
|
|
2762
3079
|
/**
|
|
@@ -2764,12 +3081,15 @@ var pluralFormatPropTypes = {
|
|
|
2764
3081
|
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
|
2765
3082
|
*/
|
|
2766
3083
|
|
|
3084
|
+
|
|
2767
3085
|
var REACT_STATICS = {
|
|
2768
3086
|
childContextTypes: true,
|
|
3087
|
+
contextType: true,
|
|
2769
3088
|
contextTypes: true,
|
|
2770
3089
|
defaultProps: true,
|
|
2771
3090
|
displayName: true,
|
|
2772
3091
|
getDefaultProps: true,
|
|
3092
|
+
getDerivedStateFromError: true,
|
|
2773
3093
|
getDerivedStateFromProps: true,
|
|
2774
3094
|
mixins: true,
|
|
2775
3095
|
propTypes: true,
|
|
@@ -2786,12 +3106,39 @@ var KNOWN_STATICS = {
|
|
|
2786
3106
|
arity: true
|
|
2787
3107
|
};
|
|
2788
3108
|
|
|
3109
|
+
var FORWARD_REF_STATICS = {
|
|
3110
|
+
'$$typeof': true,
|
|
3111
|
+
render: true,
|
|
3112
|
+
defaultProps: true,
|
|
3113
|
+
displayName: true,
|
|
3114
|
+
propTypes: true
|
|
3115
|
+
};
|
|
3116
|
+
|
|
3117
|
+
var MEMO_STATICS = {
|
|
3118
|
+
'$$typeof': true,
|
|
3119
|
+
compare: true,
|
|
3120
|
+
defaultProps: true,
|
|
3121
|
+
displayName: true,
|
|
3122
|
+
propTypes: true,
|
|
3123
|
+
type: true
|
|
3124
|
+
};
|
|
3125
|
+
|
|
3126
|
+
var TYPE_STATICS = {};
|
|
3127
|
+
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
3128
|
+
|
|
3129
|
+
function getStatics(component) {
|
|
3130
|
+
if (reactIs.isMemo(component)) {
|
|
3131
|
+
return MEMO_STATICS;
|
|
3132
|
+
}
|
|
3133
|
+
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
|
|
3134
|
+
}
|
|
3135
|
+
|
|
2789
3136
|
var defineProperty$3 = Object.defineProperty;
|
|
2790
3137
|
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
2791
3138
|
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
2792
3139
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
2793
3140
|
var getPrototypeOf = Object.getPrototypeOf;
|
|
2794
|
-
var objectPrototype =
|
|
3141
|
+
var objectPrototype = Object.prototype;
|
|
2795
3142
|
|
|
2796
3143
|
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
2797
3144
|
if (typeof sourceComponent !== 'string') {
|
|
@@ -2810,9 +3157,12 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
|
2810
3157
|
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
|
2811
3158
|
}
|
|
2812
3159
|
|
|
3160
|
+
var targetStatics = getStatics(targetComponent);
|
|
3161
|
+
var sourceStatics = getStatics(sourceComponent);
|
|
3162
|
+
|
|
2813
3163
|
for (var i = 0; i < keys.length; ++i) {
|
|
2814
3164
|
var key = keys[i];
|
|
2815
|
-
if (!
|
|
3165
|
+
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
2816
3166
|
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
2817
3167
|
try {
|
|
2818
3168
|
// Avoid failures from read-only properties
|