react-intl 2.7.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.
Files changed (257) hide show
  1. package/dist/react-intl.js +363 -7
  2. package/dist/react-intl.js.map +1 -1
  3. package/dist/react-intl.min.js +1 -1
  4. package/dist/react-intl.min.js.map +1 -1
  5. package/lib/index.es.js +11 -5
  6. package/lib/index.js +11 -5
  7. package/locale-data/af.js +1 -1
  8. package/locale-data/agq.js +1 -1
  9. package/locale-data/ak.js +1 -1
  10. package/locale-data/am.js +1 -1
  11. package/locale-data/ar.js +1 -1
  12. package/locale-data/ars.js +1 -1
  13. package/locale-data/as.js +1 -1
  14. package/locale-data/asa.js +1 -1
  15. package/locale-data/ast.js +1 -1
  16. package/locale-data/az.js +1 -1
  17. package/locale-data/bas.js +1 -1
  18. package/locale-data/be.js +1 -1
  19. package/locale-data/bem.js +1 -1
  20. package/locale-data/bez.js +1 -1
  21. package/locale-data/bg.js +1 -1
  22. package/locale-data/bh.js +1 -1
  23. package/locale-data/bm.js +1 -1
  24. package/locale-data/bn.js +1 -1
  25. package/locale-data/bo.js +1 -1
  26. package/locale-data/br.js +1 -1
  27. package/locale-data/brx.js +1 -1
  28. package/locale-data/bs.js +1 -1
  29. package/locale-data/ca.js +1 -1
  30. package/locale-data/ccp.js +1 -0
  31. package/locale-data/ce.js +1 -1
  32. package/locale-data/cgg.js +1 -1
  33. package/locale-data/chr.js +1 -1
  34. package/locale-data/ckb.js +1 -1
  35. package/locale-data/cs.js +1 -1
  36. package/locale-data/cu.js +1 -1
  37. package/locale-data/cy.js +1 -1
  38. package/locale-data/da.js +1 -1
  39. package/locale-data/dav.js +1 -1
  40. package/locale-data/de.js +1 -1
  41. package/locale-data/dje.js +1 -1
  42. package/locale-data/dsb.js +1 -1
  43. package/locale-data/dua.js +1 -1
  44. package/locale-data/dv.js +1 -1
  45. package/locale-data/dyo.js +1 -1
  46. package/locale-data/dz.js +1 -1
  47. package/locale-data/ebu.js +1 -1
  48. package/locale-data/ee.js +1 -1
  49. package/locale-data/el.js +1 -1
  50. package/locale-data/en.js +1 -1
  51. package/locale-data/eo.js +1 -1
  52. package/locale-data/es.js +1 -1
  53. package/locale-data/et.js +1 -1
  54. package/locale-data/eu.js +1 -1
  55. package/locale-data/ewo.js +1 -1
  56. package/locale-data/fa.js +1 -1
  57. package/locale-data/ff.js +1 -1
  58. package/locale-data/fi.js +1 -1
  59. package/locale-data/fil.js +1 -1
  60. package/locale-data/fo.js +1 -1
  61. package/locale-data/fr.js +1 -1
  62. package/locale-data/fur.js +1 -1
  63. package/locale-data/fy.js +1 -1
  64. package/locale-data/ga.js +1 -1
  65. package/locale-data/gd.js +1 -1
  66. package/locale-data/gl.js +1 -1
  67. package/locale-data/gsw.js +1 -1
  68. package/locale-data/gu.js +1 -1
  69. package/locale-data/guw.js +1 -1
  70. package/locale-data/guz.js +1 -1
  71. package/locale-data/gv.js +1 -1
  72. package/locale-data/ha.js +1 -1
  73. package/locale-data/haw.js +1 -1
  74. package/locale-data/he.js +1 -1
  75. package/locale-data/hi.js +1 -1
  76. package/locale-data/hr.js +1 -1
  77. package/locale-data/hsb.js +1 -1
  78. package/locale-data/hu.js +1 -1
  79. package/locale-data/hy.js +1 -1
  80. package/locale-data/ia.js +1 -0
  81. package/locale-data/id.js +1 -1
  82. package/locale-data/ig.js +1 -1
  83. package/locale-data/ii.js +1 -1
  84. package/locale-data/in.js +1 -1
  85. package/locale-data/index.js +1 -1
  86. package/locale-data/io.js +1 -0
  87. package/locale-data/is.js +1 -1
  88. package/locale-data/it.js +1 -1
  89. package/locale-data/iu.js +1 -1
  90. package/locale-data/iw.js +1 -1
  91. package/locale-data/ja.js +1 -1
  92. package/locale-data/jbo.js +1 -1
  93. package/locale-data/jgo.js +1 -1
  94. package/locale-data/ji.js +1 -1
  95. package/locale-data/jmc.js +1 -1
  96. package/locale-data/jv.js +1 -1
  97. package/locale-data/jw.js +1 -1
  98. package/locale-data/ka.js +1 -1
  99. package/locale-data/kab.js +1 -1
  100. package/locale-data/kaj.js +1 -1
  101. package/locale-data/kam.js +1 -1
  102. package/locale-data/kcg.js +1 -1
  103. package/locale-data/kde.js +1 -1
  104. package/locale-data/kea.js +1 -1
  105. package/locale-data/khq.js +1 -1
  106. package/locale-data/ki.js +1 -1
  107. package/locale-data/kk.js +1 -1
  108. package/locale-data/kkj.js +1 -1
  109. package/locale-data/kl.js +1 -1
  110. package/locale-data/kln.js +1 -1
  111. package/locale-data/km.js +1 -1
  112. package/locale-data/kn.js +1 -1
  113. package/locale-data/ko.js +1 -1
  114. package/locale-data/kok.js +1 -1
  115. package/locale-data/ks.js +1 -1
  116. package/locale-data/ksb.js +1 -1
  117. package/locale-data/ksf.js +1 -1
  118. package/locale-data/ksh.js +1 -1
  119. package/locale-data/ku.js +1 -1
  120. package/locale-data/kw.js +1 -1
  121. package/locale-data/ky.js +1 -1
  122. package/locale-data/lag.js +1 -1
  123. package/locale-data/lb.js +1 -1
  124. package/locale-data/lg.js +1 -1
  125. package/locale-data/lkt.js +1 -1
  126. package/locale-data/ln.js +1 -1
  127. package/locale-data/lo.js +1 -1
  128. package/locale-data/lrc.js +1 -1
  129. package/locale-data/lt.js +1 -1
  130. package/locale-data/lu.js +1 -1
  131. package/locale-data/luo.js +1 -1
  132. package/locale-data/luy.js +1 -1
  133. package/locale-data/lv.js +1 -1
  134. package/locale-data/mas.js +1 -1
  135. package/locale-data/mer.js +1 -1
  136. package/locale-data/mfe.js +1 -1
  137. package/locale-data/mg.js +1 -1
  138. package/locale-data/mgh.js +1 -1
  139. package/locale-data/mgo.js +1 -1
  140. package/locale-data/mi.js +1 -0
  141. package/locale-data/mk.js +1 -1
  142. package/locale-data/ml.js +1 -1
  143. package/locale-data/mn.js +1 -1
  144. package/locale-data/mo.js +1 -1
  145. package/locale-data/mr.js +1 -1
  146. package/locale-data/ms.js +1 -1
  147. package/locale-data/mt.js +1 -1
  148. package/locale-data/mua.js +1 -1
  149. package/locale-data/my.js +1 -1
  150. package/locale-data/mzn.js +1 -1
  151. package/locale-data/nah.js +1 -1
  152. package/locale-data/naq.js +1 -1
  153. package/locale-data/nb.js +1 -1
  154. package/locale-data/nd.js +1 -1
  155. package/locale-data/nds.js +1 -1
  156. package/locale-data/ne.js +1 -1
  157. package/locale-data/nl.js +1 -1
  158. package/locale-data/nmg.js +1 -1
  159. package/locale-data/nn.js +1 -1
  160. package/locale-data/nnh.js +1 -1
  161. package/locale-data/no.js +1 -1
  162. package/locale-data/nqo.js +1 -1
  163. package/locale-data/nr.js +1 -1
  164. package/locale-data/nso.js +1 -1
  165. package/locale-data/nus.js +1 -1
  166. package/locale-data/ny.js +1 -1
  167. package/locale-data/nyn.js +1 -1
  168. package/locale-data/om.js +1 -1
  169. package/locale-data/or.js +1 -1
  170. package/locale-data/os.js +1 -1
  171. package/locale-data/pa.js +1 -1
  172. package/locale-data/pap.js +1 -1
  173. package/locale-data/pl.js +1 -1
  174. package/locale-data/prg.js +1 -1
  175. package/locale-data/ps.js +1 -1
  176. package/locale-data/pt.js +1 -1
  177. package/locale-data/qu.js +1 -1
  178. package/locale-data/rm.js +1 -1
  179. package/locale-data/rn.js +1 -1
  180. package/locale-data/ro.js +1 -1
  181. package/locale-data/rof.js +1 -1
  182. package/locale-data/ru.js +1 -1
  183. package/locale-data/rw.js +1 -1
  184. package/locale-data/rwk.js +1 -1
  185. package/locale-data/sah.js +1 -1
  186. package/locale-data/saq.js +1 -1
  187. package/locale-data/sbp.js +1 -1
  188. package/locale-data/sc.js +1 -0
  189. package/locale-data/scn.js +1 -0
  190. package/locale-data/sd.js +1 -0
  191. package/locale-data/sdh.js +1 -1
  192. package/locale-data/se.js +1 -1
  193. package/locale-data/seh.js +1 -1
  194. package/locale-data/ses.js +1 -1
  195. package/locale-data/sg.js +1 -1
  196. package/locale-data/sh.js +1 -1
  197. package/locale-data/shi.js +1 -1
  198. package/locale-data/si.js +1 -1
  199. package/locale-data/sk.js +1 -1
  200. package/locale-data/sl.js +1 -1
  201. package/locale-data/sma.js +1 -1
  202. package/locale-data/smi.js +1 -1
  203. package/locale-data/smj.js +1 -1
  204. package/locale-data/smn.js +1 -1
  205. package/locale-data/sms.js +1 -1
  206. package/locale-data/sn.js +1 -1
  207. package/locale-data/so.js +1 -1
  208. package/locale-data/sq.js +1 -1
  209. package/locale-data/sr.js +1 -1
  210. package/locale-data/ss.js +1 -1
  211. package/locale-data/ssy.js +1 -1
  212. package/locale-data/st.js +1 -1
  213. package/locale-data/sv.js +1 -1
  214. package/locale-data/sw.js +1 -1
  215. package/locale-data/syr.js +1 -1
  216. package/locale-data/ta.js +1 -1
  217. package/locale-data/te.js +1 -1
  218. package/locale-data/teo.js +1 -1
  219. package/locale-data/tg.js +1 -0
  220. package/locale-data/th.js +1 -1
  221. package/locale-data/ti.js +1 -1
  222. package/locale-data/tig.js +1 -1
  223. package/locale-data/tk.js +1 -1
  224. package/locale-data/tl.js +1 -1
  225. package/locale-data/tn.js +1 -1
  226. package/locale-data/to.js +1 -1
  227. package/locale-data/tr.js +1 -1
  228. package/locale-data/ts.js +1 -1
  229. package/locale-data/tt.js +1 -0
  230. package/locale-data/twq.js +1 -1
  231. package/locale-data/tzm.js +1 -1
  232. package/locale-data/ug.js +1 -1
  233. package/locale-data/uk.js +1 -1
  234. package/locale-data/ur.js +1 -1
  235. package/locale-data/uz.js +1 -1
  236. package/locale-data/vai.js +1 -1
  237. package/locale-data/ve.js +1 -1
  238. package/locale-data/vi.js +1 -1
  239. package/locale-data/vo.js +1 -1
  240. package/locale-data/vun.js +1 -1
  241. package/locale-data/wa.js +1 -1
  242. package/locale-data/wae.js +1 -1
  243. package/locale-data/wo.js +1 -1
  244. package/locale-data/xh.js +1 -1
  245. package/locale-data/xog.js +1 -1
  246. package/locale-data/yav.js +1 -1
  247. package/locale-data/yi.js +1 -1
  248. package/locale-data/yo.js +1 -1
  249. package/locale-data/yue.js +1 -1
  250. package/locale-data/zgh.js +1 -1
  251. package/locale-data/zh.js +1 -1
  252. package/locale-data/zu.js +1 -1
  253. package/package.json +3 -3
  254. package/src/en.js +1 -1
  255. package/src/inject.js +2 -2
  256. package/src/types.js +2 -0
  257. package/yarn.lock +0 -4842
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2018, Yahoo Inc.
2
+ * Copyright 2019, Yahoo Inc.
3
3
  * Copyrights licensed under the New BSD License.
4
4
  * See the accompanying LICENSE file for terms.
5
5
  */
@@ -25,7 +25,7 @@ var defaultLocaleData = { "locale": "en", "pluralRuleFunction": function pluralR
25
25
  t0 = Number(s[0]) == n,
26
26
  n10 = t0 && s[0].slice(-1),
27
27
  n100 = t0 && s[0].slice(-2);if (ord) return n10 == 1 && n100 != 11 ? "one" : n10 == 2 && n100 != 12 ? "two" : n10 == 3 && n100 != 13 ? "few" : "other";return n == 1 && v0 ? "one" : "other";
28
- }, "fields": { "year": { "displayName": "year", "relative": { "0": "this year", "1": "next year", "-1": "last year" }, "relativeTime": { "future": { "one": "in {0} year", "other": "in {0} years" }, "past": { "one": "{0} year ago", "other": "{0} years ago" } } }, "month": { "displayName": "month", "relative": { "0": "this month", "1": "next month", "-1": "last month" }, "relativeTime": { "future": { "one": "in {0} month", "other": "in {0} months" }, "past": { "one": "{0} month ago", "other": "{0} months ago" } } }, "day": { "displayName": "day", "relative": { "0": "today", "1": "tomorrow", "-1": "yesterday" }, "relativeTime": { "future": { "one": "in {0} day", "other": "in {0} days" }, "past": { "one": "{0} day ago", "other": "{0} days ago" } } }, "hour": { "displayName": "hour", "relative": { "0": "this hour" }, "relativeTime": { "future": { "one": "in {0} hour", "other": "in {0} hours" }, "past": { "one": "{0} hour ago", "other": "{0} hours ago" } } }, "minute": { "displayName": "minute", "relative": { "0": "this minute" }, "relativeTime": { "future": { "one": "in {0} minute", "other": "in {0} minutes" }, "past": { "one": "{0} minute ago", "other": "{0} minutes ago" } } }, "second": { "displayName": "second", "relative": { "0": "now" }, "relativeTime": { "future": { "one": "in {0} second", "other": "in {0} seconds" }, "past": { "one": "{0} second ago", "other": "{0} seconds ago" } } } } };
28
+ }, "fields": { "year": { "displayName": "year", "relative": { "0": "this year", "1": "next year", "-1": "last year" }, "relativeTime": { "future": { "one": "in {0} year", "other": "in {0} years" }, "past": { "one": "{0} year ago", "other": "{0} years ago" } } }, "year-short": { "displayName": "yr.", "relative": { "0": "this yr.", "1": "next yr.", "-1": "last yr." }, "relativeTime": { "future": { "one": "in {0} yr.", "other": "in {0} yr." }, "past": { "one": "{0} yr. ago", "other": "{0} yr. ago" } } }, "month": { "displayName": "month", "relative": { "0": "this month", "1": "next month", "-1": "last month" }, "relativeTime": { "future": { "one": "in {0} month", "other": "in {0} months" }, "past": { "one": "{0} month ago", "other": "{0} months ago" } } }, "month-short": { "displayName": "mo.", "relative": { "0": "this mo.", "1": "next mo.", "-1": "last mo." }, "relativeTime": { "future": { "one": "in {0} mo.", "other": "in {0} mo." }, "past": { "one": "{0} mo. ago", "other": "{0} mo. ago" } } }, "day": { "displayName": "day", "relative": { "0": "today", "1": "tomorrow", "-1": "yesterday" }, "relativeTime": { "future": { "one": "in {0} day", "other": "in {0} days" }, "past": { "one": "{0} day ago", "other": "{0} days ago" } } }, "day-short": { "displayName": "day", "relative": { "0": "today", "1": "tomorrow", "-1": "yesterday" }, "relativeTime": { "future": { "one": "in {0} day", "other": "in {0} days" }, "past": { "one": "{0} day ago", "other": "{0} days ago" } } }, "hour": { "displayName": "hour", "relative": { "0": "this hour" }, "relativeTime": { "future": { "one": "in {0} hour", "other": "in {0} hours" }, "past": { "one": "{0} hour ago", "other": "{0} hours ago" } } }, "hour-short": { "displayName": "hr.", "relative": { "0": "this hour" }, "relativeTime": { "future": { "one": "in {0} hr.", "other": "in {0} hr." }, "past": { "one": "{0} hr. ago", "other": "{0} hr. ago" } } }, "minute": { "displayName": "minute", "relative": { "0": "this minute" }, "relativeTime": { "future": { "one": "in {0} minute", "other": "in {0} minutes" }, "past": { "one": "{0} minute ago", "other": "{0} minutes ago" } } }, "minute-short": { "displayName": "min.", "relative": { "0": "this minute" }, "relativeTime": { "future": { "one": "in {0} min.", "other": "in {0} min." }, "past": { "one": "{0} min. ago", "other": "{0} min. ago" } } }, "second": { "displayName": "second", "relative": { "0": "now" }, "relativeTime": { "future": { "one": "in {0} second", "other": "in {0} seconds" }, "past": { "one": "{0} second ago", "other": "{0} seconds ago" } } }, "second-short": { "displayName": "sec.", "relative": { "0": "now" }, "relativeTime": { "future": { "one": "in {0} sec.", "other": "in {0} sec." }, "past": { "one": "{0} sec. ago", "other": "{0} sec. ago" } } } } };
29
29
 
30
30
  /*
31
31
  Copyright (c) 2014, Yahoo! Inc. All rights reserved.
@@ -2689,7 +2689,9 @@ var intlConfigPropTypes = {
2689
2689
  textComponent: any,
2690
2690
 
2691
2691
  defaultLocale: string,
2692
- defaultFormats: object
2692
+ defaultFormats: object,
2693
+
2694
+ onError: func
2693
2695
  };
2694
2696
 
2695
2697
  var intlFormatPropTypes = {
@@ -2755,6 +2757,323 @@ var pluralFormatPropTypes = {
2755
2757
  style: oneOf(['cardinal', 'ordinal'])
2756
2758
  };
2757
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
+
2758
3077
  'use strict';
2759
3078
 
2760
3079
  /**
@@ -2762,12 +3081,15 @@ var pluralFormatPropTypes = {
2762
3081
  * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
2763
3082
  */
2764
3083
 
3084
+
2765
3085
  var REACT_STATICS = {
2766
3086
  childContextTypes: true,
3087
+ contextType: true,
2767
3088
  contextTypes: true,
2768
3089
  defaultProps: true,
2769
3090
  displayName: true,
2770
3091
  getDefaultProps: true,
3092
+ getDerivedStateFromError: true,
2771
3093
  getDerivedStateFromProps: true,
2772
3094
  mixins: true,
2773
3095
  propTypes: true,
@@ -2784,12 +3106,39 @@ var KNOWN_STATICS = {
2784
3106
  arity: true
2785
3107
  };
2786
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
+
2787
3136
  var defineProperty$3 = Object.defineProperty;
2788
3137
  var getOwnPropertyNames = Object.getOwnPropertyNames;
2789
3138
  var getOwnPropertySymbols = Object.getOwnPropertySymbols;
2790
3139
  var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2791
3140
  var getPrototypeOf = Object.getPrototypeOf;
2792
- var objectPrototype = getPrototypeOf && getPrototypeOf(Object);
3141
+ var objectPrototype = Object.prototype;
2793
3142
 
2794
3143
  function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
2795
3144
  if (typeof sourceComponent !== 'string') {
@@ -2808,9 +3157,12 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
2808
3157
  keys = keys.concat(getOwnPropertySymbols(sourceComponent));
2809
3158
  }
2810
3159
 
3160
+ var targetStatics = getStatics(targetComponent);
3161
+ var sourceStatics = getStatics(sourceComponent);
3162
+
2811
3163
  for (var i = 0; i < keys.length; ++i) {
2812
3164
  var key = keys[i];
2813
- if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) {
3165
+ if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
2814
3166
  var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
2815
3167
  try {
2816
3168
  // Avoid failures from read-only properties
@@ -3018,13 +3370,17 @@ function injectIntl(WrappedComponent) {
3018
3370
  value: function getWrappedInstance() {
3019
3371
  invariant_1(withRef, '[React Intl] To access the wrapped instance, ' + 'the `{withRef: true}` option must be set when calling: ' + '`injectIntl()`');
3020
3372
 
3021
- return this.refs.wrappedInstance;
3373
+ return this._wrappedInstance;
3022
3374
  }
3023
3375
  }, {
3024
3376
  key: 'render',
3025
3377
  value: function render() {
3378
+ var _this2 = this;
3379
+
3026
3380
  return React__default.createElement(WrappedComponent, _extends({}, this.props, defineProperty$2({}, intlPropName, this.context.intl), {
3027
- ref: withRef ? 'wrappedInstance' : null
3381
+ ref: withRef ? /* istanbul ignore next */function (ref) {
3382
+ return _this2._wrappedInstance = ref;
3383
+ } : null
3028
3384
  }));
3029
3385
  }
3030
3386
  }]);