@bigbinary/neeto-molecules 1.11.3 → 1.11.5

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 (291) hide show
  1. package/dist/Breadcrumbs.js +7 -8
  2. package/dist/Breadcrumbs.js.map +1 -1
  3. package/dist/BrowserSupport.js +41 -138
  4. package/dist/BrowserSupport.js.map +1 -1
  5. package/dist/Builder.js +65 -319
  6. package/dist/Builder.js.map +1 -1
  7. package/dist/CalendarView.js +38 -321
  8. package/dist/CalendarView.js.map +1 -1
  9. package/dist/Codeblock.js +14 -207
  10. package/dist/Codeblock.js.map +1 -1
  11. package/dist/Columns-702d539a.js +206 -0
  12. package/dist/Columns-702d539a.js.map +1 -0
  13. package/dist/Columns.js +16 -342
  14. package/dist/Columns.js.map +1 -1
  15. package/dist/ConfirmationModal.js +10 -10
  16. package/dist/ConfirmationModal.js.map +1 -1
  17. package/dist/Container.js +4 -1186
  18. package/dist/Container.js.map +1 -1
  19. package/dist/CopyToClipboardButton.js +7 -144
  20. package/dist/CopyToClipboardButton.js.map +1 -1
  21. package/dist/Currency.js +4 -46
  22. package/dist/Currency.js.map +1 -1
  23. package/dist/CustomDomain.js +30 -635
  24. package/dist/CustomDomain.js.map +1 -1
  25. package/dist/CustomDomainDashboard.js +41 -2198
  26. package/dist/CustomDomainDashboard.js.map +1 -1
  27. package/dist/DateFormat.js +4 -18
  28. package/dist/DateFormat.js.map +1 -1
  29. package/dist/DateRangeFilter.js +7 -61
  30. package/dist/DateRangeFilter.js.map +1 -1
  31. package/dist/DocumentEditor.js +12 -121
  32. package/dist/DocumentEditor.js.map +1 -1
  33. package/dist/DownloadMobileAppCallout.js +4 -4
  34. package/dist/DownloadMobileAppCallout.js.map +1 -1
  35. package/dist/DynamicVariables.js +11 -94
  36. package/dist/DynamicVariables.js.map +1 -1
  37. package/dist/EmailForm.js +46 -1711
  38. package/dist/EmailForm.js.map +1 -1
  39. package/dist/EmailPreview.js +28 -1209
  40. package/dist/EmailPreview.js.map +1 -1
  41. package/dist/EmojiPicker.js +5 -73
  42. package/dist/EmojiPicker.js.map +1 -1
  43. package/dist/EmojiReactions.js +13 -67
  44. package/dist/EmojiReactions.js.map +1 -1
  45. package/dist/ErrorPage.js +1 -15
  46. package/dist/ErrorPage.js.map +1 -1
  47. package/dist/FloatingActionMenu.js +72 -1399
  48. package/dist/FloatingActionMenu.js.map +1 -1
  49. package/dist/Header.js +26 -72
  50. package/dist/Header.js.map +1 -1
  51. package/dist/HelpPopover.js +14 -96
  52. package/dist/HelpPopover.js.map +1 -1
  53. package/dist/IconPicker.js +26 -123
  54. package/dist/IconPicker.js.map +1 -1
  55. package/dist/ImageWithFallback.js +8 -144
  56. package/dist/ImageWithFallback.js.map +1 -1
  57. package/dist/InlineInput.js +16 -522
  58. package/dist/InlineInput.js.map +1 -1
  59. package/dist/IntegrationCard.js +30 -229
  60. package/dist/IntegrationCard.js.map +1 -1
  61. package/dist/IntegrationDisconnectAlert.js +4 -46
  62. package/dist/IntegrationDisconnectAlert.js.map +1 -1
  63. package/dist/IntegrationWalkthroughModal.js +7 -7
  64. package/dist/IntegrationWalkthroughModal.js.map +1 -1
  65. package/dist/IpRestriction.js +16 -196
  66. package/dist/IpRestriction.js.map +1 -1
  67. package/dist/KeyboardShortcuts.js +24 -119
  68. package/dist/KeyboardShortcuts.js.map +1 -1
  69. package/dist/LoginPage.js +22 -445
  70. package/dist/LoginPage.js.map +1 -1
  71. package/dist/MenuBar.js +29 -1293
  72. package/dist/MenuBar.js.map +1 -1
  73. package/dist/Metadata.js +27 -82
  74. package/dist/Metadata.js.map +1 -1
  75. package/dist/MoreDropdown.js +15 -97
  76. package/dist/MoreDropdown.js.map +1 -1
  77. package/dist/NavigationHeader.js +39 -709
  78. package/dist/NavigationHeader.js.map +1 -1
  79. package/dist/NeetoWidget.js +15 -234
  80. package/dist/NeetoWidget.js.map +1 -1
  81. package/dist/Onboarding.js +16 -1212
  82. package/dist/Onboarding.js.map +1 -1
  83. package/dist/PageLoader.js +5 -48
  84. package/dist/PageLoader.js.map +1 -1
  85. package/dist/PhoneNumber.js +22 -156
  86. package/dist/PhoneNumber.js.map +1 -1
  87. package/dist/ProductEmbed.js +83 -172
  88. package/dist/ProductEmbed.js.map +1 -1
  89. package/dist/PublishBlock.js +15 -58
  90. package/dist/PublishBlock.js.map +1 -1
  91. package/dist/PublishYourItem.js +9 -1190
  92. package/dist/PublishYourItem.js.map +1 -1
  93. package/dist/Rename.js +30 -330
  94. package/dist/Rename.js.map +1 -1
  95. package/dist/ResponsiveDevicePicker.js +7 -143
  96. package/dist/ResponsiveDevicePicker.js.map +1 -1
  97. package/dist/Schedule.js +62 -331
  98. package/dist/Schedule.js.map +1 -1
  99. package/dist/Scrollable.js +6 -89
  100. package/dist/Scrollable.js.map +1 -1
  101. package/dist/Search.js +7 -143
  102. package/dist/Search.js.map +1 -1
  103. package/dist/Security.js +37 -1573
  104. package/dist/Security.js.map +1 -1
  105. package/dist/SendToFields.js +41 -124
  106. package/dist/SendToFields.js.map +1 -1
  107. package/dist/Settings.js +32 -488
  108. package/dist/Settings.js.map +1 -1
  109. package/dist/ShareViaEmail.js +51 -1746
  110. package/dist/ShareViaEmail.js.map +1 -1
  111. package/dist/ShareViaLink.js +83 -331
  112. package/dist/ShareViaLink.js.map +1 -1
  113. package/dist/Sidebar.js +143 -406
  114. package/dist/Sidebar.js.map +1 -1
  115. package/dist/SubHeader.js +27 -105
  116. package/dist/SubHeader.js.map +1 -1
  117. package/dist/SuffixedInput.js +15 -120
  118. package/dist/SuffixedInput.js.map +1 -1
  119. package/dist/TableWrapper.js +7 -8
  120. package/dist/TableWrapper.js.map +1 -1
  121. package/dist/Taxonomy.js +74 -1780
  122. package/dist/Taxonomy.js.map +1 -1
  123. package/dist/ThemeSidebar.js +144 -767
  124. package/dist/ThemeSidebar.js.map +1 -1
  125. package/dist/TimeFormat.js +8 -44
  126. package/dist/TimeFormat.js.map +1 -1
  127. package/dist/TimezoneMismatchModal.js +11 -65
  128. package/dist/TimezoneMismatchModal.js.map +1 -1
  129. package/dist/ToggleFeatureCard.js +20 -157
  130. package/dist/ToggleFeatureCard.js.map +1 -1
  131. package/dist/cjs/Breadcrumbs.js +2 -3
  132. package/dist/cjs/Breadcrumbs.js.map +1 -1
  133. package/dist/cjs/BrowserSupport.js +8 -105
  134. package/dist/cjs/BrowserSupport.js.map +1 -1
  135. package/dist/cjs/Builder.js +16 -270
  136. package/dist/cjs/Builder.js.map +1 -1
  137. package/dist/cjs/CalendarView.js +23 -308
  138. package/dist/cjs/CalendarView.js.map +1 -1
  139. package/dist/cjs/Codeblock.js +12 -206
  140. package/dist/cjs/Codeblock.js.map +1 -1
  141. package/dist/cjs/Columns-069368e2.js +216 -0
  142. package/dist/cjs/Columns-069368e2.js.map +1 -0
  143. package/dist/cjs/Columns.js +23 -350
  144. package/dist/cjs/Columns.js.map +1 -1
  145. package/dist/cjs/Container.js +4 -1186
  146. package/dist/cjs/Container.js.map +1 -1
  147. package/dist/cjs/CopyToClipboardButton.js +10 -147
  148. package/dist/cjs/CopyToClipboardButton.js.map +1 -1
  149. package/dist/cjs/Currency.js +4 -46
  150. package/dist/cjs/Currency.js.map +1 -1
  151. package/dist/cjs/CustomDomain.js +23 -651
  152. package/dist/cjs/CustomDomain.js.map +1 -1
  153. package/dist/cjs/CustomDomainDashboard.js +44 -2227
  154. package/dist/cjs/CustomDomainDashboard.js.map +1 -1
  155. package/dist/cjs/DateFormat.js +3 -17
  156. package/dist/cjs/DateFormat.js.map +1 -1
  157. package/dist/cjs/DateRangeFilter.js +2 -56
  158. package/dist/cjs/DateRangeFilter.js.map +1 -1
  159. package/dist/cjs/DocumentEditor.js +14 -123
  160. package/dist/cjs/DocumentEditor.js.map +1 -1
  161. package/dist/cjs/DynamicVariables.js +8 -91
  162. package/dist/cjs/DynamicVariables.js.map +1 -1
  163. package/dist/cjs/EmailForm.js +23 -1689
  164. package/dist/cjs/EmailForm.js.map +1 -1
  165. package/dist/cjs/EmailPreview.js +8 -1189
  166. package/dist/cjs/EmailPreview.js.map +1 -1
  167. package/dist/cjs/EmojiPicker.js +4 -72
  168. package/dist/cjs/EmojiPicker.js.map +1 -1
  169. package/dist/cjs/EmojiReactions.js +5 -59
  170. package/dist/cjs/EmojiReactions.js.map +1 -1
  171. package/dist/cjs/ErrorPage.js +2 -16
  172. package/dist/cjs/ErrorPage.js.map +1 -1
  173. package/dist/cjs/FloatingActionMenu.js +48 -1376
  174. package/dist/cjs/FloatingActionMenu.js.map +1 -1
  175. package/dist/cjs/Header.js +19 -67
  176. package/dist/cjs/Header.js.map +1 -1
  177. package/dist/cjs/HelpPopover.js +11 -93
  178. package/dist/cjs/HelpPopover.js.map +1 -1
  179. package/dist/cjs/IconPicker.js +10 -107
  180. package/dist/cjs/IconPicker.js.map +1 -1
  181. package/dist/cjs/ImageWithFallback.js +11 -147
  182. package/dist/cjs/ImageWithFallback.js.map +1 -1
  183. package/dist/cjs/InlineInput.js +20 -526
  184. package/dist/cjs/InlineInput.js.map +1 -1
  185. package/dist/cjs/IntegrationCard.js +8 -207
  186. package/dist/cjs/IntegrationCard.js.map +1 -1
  187. package/dist/cjs/IntegrationDisconnectAlert.js +4 -46
  188. package/dist/cjs/IntegrationDisconnectAlert.js.map +1 -1
  189. package/dist/cjs/IpRestriction.js +7 -187
  190. package/dist/cjs/IpRestriction.js.map +1 -1
  191. package/dist/cjs/KeyboardShortcuts.js +9 -104
  192. package/dist/cjs/KeyboardShortcuts.js.map +1 -1
  193. package/dist/cjs/LoginPage.js +12 -435
  194. package/dist/cjs/LoginPage.js.map +1 -1
  195. package/dist/cjs/MenuBar.js +24 -1288
  196. package/dist/cjs/MenuBar.js.map +1 -1
  197. package/dist/cjs/Metadata.js +6 -61
  198. package/dist/cjs/Metadata.js.map +1 -1
  199. package/dist/cjs/MoreDropdown.js +14 -96
  200. package/dist/cjs/MoreDropdown.js.map +1 -1
  201. package/dist/cjs/NavigationHeader.js +21 -695
  202. package/dist/cjs/NavigationHeader.js.map +1 -1
  203. package/dist/cjs/NeetoWidget.js +18 -238
  204. package/dist/cjs/NeetoWidget.js.map +1 -1
  205. package/dist/cjs/Onboarding.js +15 -1211
  206. package/dist/cjs/Onboarding.js.map +1 -1
  207. package/dist/cjs/PageLoader.js +8 -51
  208. package/dist/cjs/PageLoader.js.map +1 -1
  209. package/dist/cjs/PhoneNumber.js +22 -156
  210. package/dist/cjs/PhoneNumber.js.map +1 -1
  211. package/dist/cjs/ProductEmbed.js +28 -118
  212. package/dist/cjs/ProductEmbed.js.map +1 -1
  213. package/dist/cjs/PublishBlock.js +13 -56
  214. package/dist/cjs/PublishBlock.js.map +1 -1
  215. package/dist/cjs/PublishYourItem.js +3 -1184
  216. package/dist/cjs/PublishYourItem.js.map +1 -1
  217. package/dist/cjs/Rename.js +23 -323
  218. package/dist/cjs/Rename.js.map +1 -1
  219. package/dist/cjs/ResponsiveDevicePicker.js +8 -144
  220. package/dist/cjs/ResponsiveDevicePicker.js.map +1 -1
  221. package/dist/cjs/Schedule.js +18 -287
  222. package/dist/cjs/Schedule.js.map +1 -1
  223. package/dist/cjs/Scrollable.js +8 -91
  224. package/dist/cjs/Scrollable.js.map +1 -1
  225. package/dist/cjs/Search.js +8 -144
  226. package/dist/cjs/Search.js.map +1 -1
  227. package/dist/cjs/Security.js +27 -1565
  228. package/dist/cjs/Security.js.map +1 -1
  229. package/dist/cjs/SendToFields.js +12 -95
  230. package/dist/cjs/SendToFields.js.map +1 -1
  231. package/dist/cjs/Settings.js +18 -476
  232. package/dist/cjs/Settings.js.map +1 -1
  233. package/dist/cjs/ShareViaEmail.js +20 -1716
  234. package/dist/cjs/ShareViaEmail.js.map +1 -1
  235. package/dist/cjs/ShareViaLink.js +36 -285
  236. package/dist/cjs/ShareViaLink.js.map +1 -1
  237. package/dist/cjs/Sidebar.js +52 -316
  238. package/dist/cjs/Sidebar.js.map +1 -1
  239. package/dist/cjs/SubHeader.js +18 -97
  240. package/dist/cjs/SubHeader.js.map +1 -1
  241. package/dist/cjs/SuffixedInput.js +14 -120
  242. package/dist/cjs/SuffixedInput.js.map +1 -1
  243. package/dist/cjs/TableWrapper.js +6 -7
  244. package/dist/cjs/TableWrapper.js.map +1 -1
  245. package/dist/cjs/Taxonomy.js +36 -1746
  246. package/dist/cjs/Taxonomy.js.map +1 -1
  247. package/dist/cjs/ThemeSidebar.js +34 -657
  248. package/dist/cjs/ThemeSidebar.js.map +1 -1
  249. package/dist/cjs/TimeFormat.js +8 -49
  250. package/dist/cjs/TimeFormat.js.map +1 -1
  251. package/dist/cjs/TimezoneMismatchModal.js +2 -56
  252. package/dist/cjs/TimezoneMismatchModal.js.map +1 -1
  253. package/dist/cjs/ToggleFeatureCard.js +15 -152
  254. package/dist/cjs/ToggleFeatureCard.js.map +1 -1
  255. package/dist/cjs/defineProperty-886ed289.js +47 -0
  256. package/dist/cjs/defineProperty-886ed289.js.map +1 -0
  257. package/dist/cjs/extends-1b35a664.js +19 -0
  258. package/dist/cjs/extends-1b35a664.js.map +1 -0
  259. package/dist/cjs/index-248c4f4c.js +1186 -0
  260. package/dist/cjs/index-248c4f4c.js.map +1 -0
  261. package/dist/cjs/index-73f9c602.js +454 -0
  262. package/dist/cjs/index-73f9c602.js.map +1 -0
  263. package/dist/cjs/index-c55ad2bc.js +375 -0
  264. package/dist/cjs/index-c55ad2bc.js.map +1 -0
  265. package/dist/cjs/inject-css-80a5faa3.js +6 -0
  266. package/dist/cjs/inject-css-80a5faa3.js.map +1 -0
  267. package/dist/cjs/objectWithoutProperties-2fed2d7d.js +33 -0
  268. package/dist/cjs/objectWithoutProperties-2fed2d7d.js.map +1 -0
  269. package/dist/cjs/slicedToArray-f320d9e7.js +61 -0
  270. package/dist/cjs/slicedToArray-f320d9e7.js.map +1 -0
  271. package/dist/cjs/toConsumableArray-9abb3858.js +22 -0
  272. package/dist/cjs/toConsumableArray-9abb3858.js.map +1 -0
  273. package/dist/defineProperty-549061a7.js +43 -0
  274. package/dist/defineProperty-549061a7.js.map +1 -0
  275. package/dist/extends-093996c9.js +17 -0
  276. package/dist/extends-093996c9.js.map +1 -0
  277. package/dist/index-372a8b29.js +422 -0
  278. package/dist/index-372a8b29.js.map +1 -0
  279. package/dist/index-9720867c.js +372 -0
  280. package/dist/index-9720867c.js.map +1 -0
  281. package/dist/index-e5588516.js +1184 -0
  282. package/dist/index-e5588516.js.map +1 -0
  283. package/dist/inject-css-c86de496.js +4 -0
  284. package/dist/inject-css-c86de496.js.map +1 -0
  285. package/dist/objectWithoutProperties-a0edb288.js +31 -0
  286. package/dist/objectWithoutProperties-a0edb288.js.map +1 -0
  287. package/dist/slicedToArray-b4278ecd.js +57 -0
  288. package/dist/slicedToArray-b4278ecd.js.map +1 -0
  289. package/dist/toConsumableArray-1cc38429.js +20 -0
  290. package/dist/toConsumableArray-1cc38429.js.map +1 -0
  291. package/package.json +1 -3
@@ -6,6 +6,7 @@ var neetoCist = require('@bigbinary/neeto-cist');
6
6
  var withT = require('@bigbinary/neeto-commons-frontend/react-utils/withT');
7
7
  var neetoEditor = require('@bigbinary/neeto-editor');
8
8
  var neetoui = require('@bigbinary/neetoui');
9
+ var index = require('./index-248c4f4c.js');
9
10
 
10
11
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
12
 
@@ -13,1188 +14,6 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
13
14
  var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
14
15
  var withT__default = /*#__PURE__*/_interopDefaultLegacy(withT);
15
16
 
16
- var propTypes = {exports: {}};
17
-
18
- var reactIs = {exports: {}};
19
-
20
- var reactIs_production_min = {};
21
-
22
- /** @license React v16.13.1
23
- * react-is.production.min.js
24
- *
25
- * Copyright (c) Facebook, Inc. and its affiliates.
26
- *
27
- * This source code is licensed under the MIT license found in the
28
- * LICENSE file in the root directory of this source tree.
29
- */
30
-
31
- var hasRequiredReactIs_production_min;
32
-
33
- function requireReactIs_production_min () {
34
- if (hasRequiredReactIs_production_min) return reactIs_production_min;
35
- hasRequiredReactIs_production_min = 1;
36
- var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
37
- Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
38
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
39
- reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
40
- reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
41
- reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
42
- return reactIs_production_min;
43
- }
44
-
45
- var reactIs_development = {};
46
-
47
- /** @license React v16.13.1
48
- * react-is.development.js
49
- *
50
- * Copyright (c) Facebook, Inc. and its affiliates.
51
- *
52
- * This source code is licensed under the MIT license found in the
53
- * LICENSE file in the root directory of this source tree.
54
- */
55
-
56
- var hasRequiredReactIs_development;
57
-
58
- function requireReactIs_development () {
59
- if (hasRequiredReactIs_development) return reactIs_development;
60
- hasRequiredReactIs_development = 1;
61
-
62
-
63
-
64
- if (process.env.NODE_ENV !== "production") {
65
- (function() {
66
-
67
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
68
- // nor polyfill, then a plain number is used for performance.
69
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
70
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
71
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
72
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
73
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
74
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
75
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
76
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
77
- // (unstable) APIs that have been removed. Can we remove the symbols?
78
-
79
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
80
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
81
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
82
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
83
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
84
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
85
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
86
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
87
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
88
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
89
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
90
-
91
- function isValidElementType(type) {
92
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
93
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_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 || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
94
- }
95
-
96
- function typeOf(object) {
97
- if (typeof object === 'object' && object !== null) {
98
- var $$typeof = object.$$typeof;
99
-
100
- switch ($$typeof) {
101
- case REACT_ELEMENT_TYPE:
102
- var type = object.type;
103
-
104
- switch (type) {
105
- case REACT_ASYNC_MODE_TYPE:
106
- case REACT_CONCURRENT_MODE_TYPE:
107
- case REACT_FRAGMENT_TYPE:
108
- case REACT_PROFILER_TYPE:
109
- case REACT_STRICT_MODE_TYPE:
110
- case REACT_SUSPENSE_TYPE:
111
- return type;
112
-
113
- default:
114
- var $$typeofType = type && type.$$typeof;
115
-
116
- switch ($$typeofType) {
117
- case REACT_CONTEXT_TYPE:
118
- case REACT_FORWARD_REF_TYPE:
119
- case REACT_LAZY_TYPE:
120
- case REACT_MEMO_TYPE:
121
- case REACT_PROVIDER_TYPE:
122
- return $$typeofType;
123
-
124
- default:
125
- return $$typeof;
126
- }
127
-
128
- }
129
-
130
- case REACT_PORTAL_TYPE:
131
- return $$typeof;
132
- }
133
- }
134
-
135
- return undefined;
136
- } // AsyncMode is deprecated along with isAsyncMode
137
-
138
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
139
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
140
- var ContextConsumer = REACT_CONTEXT_TYPE;
141
- var ContextProvider = REACT_PROVIDER_TYPE;
142
- var Element = REACT_ELEMENT_TYPE;
143
- var ForwardRef = REACT_FORWARD_REF_TYPE;
144
- var Fragment = REACT_FRAGMENT_TYPE;
145
- var Lazy = REACT_LAZY_TYPE;
146
- var Memo = REACT_MEMO_TYPE;
147
- var Portal = REACT_PORTAL_TYPE;
148
- var Profiler = REACT_PROFILER_TYPE;
149
- var StrictMode = REACT_STRICT_MODE_TYPE;
150
- var Suspense = REACT_SUSPENSE_TYPE;
151
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
152
-
153
- function isAsyncMode(object) {
154
- {
155
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
156
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
157
-
158
- console['warn']('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.');
159
- }
160
- }
161
-
162
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
163
- }
164
- function isConcurrentMode(object) {
165
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
166
- }
167
- function isContextConsumer(object) {
168
- return typeOf(object) === REACT_CONTEXT_TYPE;
169
- }
170
- function isContextProvider(object) {
171
- return typeOf(object) === REACT_PROVIDER_TYPE;
172
- }
173
- function isElement(object) {
174
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
175
- }
176
- function isForwardRef(object) {
177
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
178
- }
179
- function isFragment(object) {
180
- return typeOf(object) === REACT_FRAGMENT_TYPE;
181
- }
182
- function isLazy(object) {
183
- return typeOf(object) === REACT_LAZY_TYPE;
184
- }
185
- function isMemo(object) {
186
- return typeOf(object) === REACT_MEMO_TYPE;
187
- }
188
- function isPortal(object) {
189
- return typeOf(object) === REACT_PORTAL_TYPE;
190
- }
191
- function isProfiler(object) {
192
- return typeOf(object) === REACT_PROFILER_TYPE;
193
- }
194
- function isStrictMode(object) {
195
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
196
- }
197
- function isSuspense(object) {
198
- return typeOf(object) === REACT_SUSPENSE_TYPE;
199
- }
200
-
201
- reactIs_development.AsyncMode = AsyncMode;
202
- reactIs_development.ConcurrentMode = ConcurrentMode;
203
- reactIs_development.ContextConsumer = ContextConsumer;
204
- reactIs_development.ContextProvider = ContextProvider;
205
- reactIs_development.Element = Element;
206
- reactIs_development.ForwardRef = ForwardRef;
207
- reactIs_development.Fragment = Fragment;
208
- reactIs_development.Lazy = Lazy;
209
- reactIs_development.Memo = Memo;
210
- reactIs_development.Portal = Portal;
211
- reactIs_development.Profiler = Profiler;
212
- reactIs_development.StrictMode = StrictMode;
213
- reactIs_development.Suspense = Suspense;
214
- reactIs_development.isAsyncMode = isAsyncMode;
215
- reactIs_development.isConcurrentMode = isConcurrentMode;
216
- reactIs_development.isContextConsumer = isContextConsumer;
217
- reactIs_development.isContextProvider = isContextProvider;
218
- reactIs_development.isElement = isElement;
219
- reactIs_development.isForwardRef = isForwardRef;
220
- reactIs_development.isFragment = isFragment;
221
- reactIs_development.isLazy = isLazy;
222
- reactIs_development.isMemo = isMemo;
223
- reactIs_development.isPortal = isPortal;
224
- reactIs_development.isProfiler = isProfiler;
225
- reactIs_development.isStrictMode = isStrictMode;
226
- reactIs_development.isSuspense = isSuspense;
227
- reactIs_development.isValidElementType = isValidElementType;
228
- reactIs_development.typeOf = typeOf;
229
- })();
230
- }
231
- return reactIs_development;
232
- }
233
-
234
- var hasRequiredReactIs;
235
-
236
- function requireReactIs () {
237
- if (hasRequiredReactIs) return reactIs.exports;
238
- hasRequiredReactIs = 1;
239
- (function (module) {
240
-
241
- if (process.env.NODE_ENV === 'production') {
242
- module.exports = requireReactIs_production_min();
243
- } else {
244
- module.exports = requireReactIs_development();
245
- }
246
- } (reactIs));
247
- return reactIs.exports;
248
- }
249
-
250
- /*
251
- object-assign
252
- (c) Sindre Sorhus
253
- @license MIT
254
- */
255
-
256
- var objectAssign;
257
- var hasRequiredObjectAssign;
258
-
259
- function requireObjectAssign () {
260
- if (hasRequiredObjectAssign) return objectAssign;
261
- hasRequiredObjectAssign = 1;
262
- /* eslint-disable no-unused-vars */
263
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
264
- var hasOwnProperty = Object.prototype.hasOwnProperty;
265
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
266
-
267
- function toObject(val) {
268
- if (val === null || val === undefined) {
269
- throw new TypeError('Object.assign cannot be called with null or undefined');
270
- }
271
-
272
- return Object(val);
273
- }
274
-
275
- function shouldUseNative() {
276
- try {
277
- if (!Object.assign) {
278
- return false;
279
- }
280
-
281
- // Detect buggy property enumeration order in older V8 versions.
282
-
283
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
284
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
285
- test1[5] = 'de';
286
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
287
- return false;
288
- }
289
-
290
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
291
- var test2 = {};
292
- for (var i = 0; i < 10; i++) {
293
- test2['_' + String.fromCharCode(i)] = i;
294
- }
295
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
296
- return test2[n];
297
- });
298
- if (order2.join('') !== '0123456789') {
299
- return false;
300
- }
301
-
302
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
303
- var test3 = {};
304
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
305
- test3[letter] = letter;
306
- });
307
- if (Object.keys(Object.assign({}, test3)).join('') !==
308
- 'abcdefghijklmnopqrst') {
309
- return false;
310
- }
311
-
312
- return true;
313
- } catch (err) {
314
- // We don't expect any of the above to throw, but better to be safe.
315
- return false;
316
- }
317
- }
318
-
319
- objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
320
- var from;
321
- var to = toObject(target);
322
- var symbols;
323
-
324
- for (var s = 1; s < arguments.length; s++) {
325
- from = Object(arguments[s]);
326
-
327
- for (var key in from) {
328
- if (hasOwnProperty.call(from, key)) {
329
- to[key] = from[key];
330
- }
331
- }
332
-
333
- if (getOwnPropertySymbols) {
334
- symbols = getOwnPropertySymbols(from);
335
- for (var i = 0; i < symbols.length; i++) {
336
- if (propIsEnumerable.call(from, symbols[i])) {
337
- to[symbols[i]] = from[symbols[i]];
338
- }
339
- }
340
- }
341
- }
342
-
343
- return to;
344
- };
345
- return objectAssign;
346
- }
347
-
348
- /**
349
- * Copyright (c) 2013-present, Facebook, Inc.
350
- *
351
- * This source code is licensed under the MIT license found in the
352
- * LICENSE file in the root directory of this source tree.
353
- */
354
-
355
- var ReactPropTypesSecret_1;
356
- var hasRequiredReactPropTypesSecret;
357
-
358
- function requireReactPropTypesSecret () {
359
- if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
360
- hasRequiredReactPropTypesSecret = 1;
361
-
362
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
363
-
364
- ReactPropTypesSecret_1 = ReactPropTypesSecret;
365
- return ReactPropTypesSecret_1;
366
- }
367
-
368
- var has;
369
- var hasRequiredHas;
370
-
371
- function requireHas () {
372
- if (hasRequiredHas) return has;
373
- hasRequiredHas = 1;
374
- has = Function.call.bind(Object.prototype.hasOwnProperty);
375
- return has;
376
- }
377
-
378
- /**
379
- * Copyright (c) 2013-present, Facebook, Inc.
380
- *
381
- * This source code is licensed under the MIT license found in the
382
- * LICENSE file in the root directory of this source tree.
383
- */
384
-
385
- var checkPropTypes_1;
386
- var hasRequiredCheckPropTypes;
387
-
388
- function requireCheckPropTypes () {
389
- if (hasRequiredCheckPropTypes) return checkPropTypes_1;
390
- hasRequiredCheckPropTypes = 1;
391
-
392
- var printWarning = function() {};
393
-
394
- if (process.env.NODE_ENV !== 'production') {
395
- var ReactPropTypesSecret = requireReactPropTypesSecret();
396
- var loggedTypeFailures = {};
397
- var has = requireHas();
398
-
399
- printWarning = function(text) {
400
- var message = 'Warning: ' + text;
401
- if (typeof console !== 'undefined') {
402
- console.error(message);
403
- }
404
- try {
405
- // --- Welcome to debugging React ---
406
- // This error was thrown as a convenience so that you can use this stack
407
- // to find the callsite that caused this warning to fire.
408
- throw new Error(message);
409
- } catch (x) { /**/ }
410
- };
411
- }
412
-
413
- /**
414
- * Assert that the values match with the type specs.
415
- * Error messages are memorized and will only be shown once.
416
- *
417
- * @param {object} typeSpecs Map of name to a ReactPropType
418
- * @param {object} values Runtime values that need to be type-checked
419
- * @param {string} location e.g. "prop", "context", "child context"
420
- * @param {string} componentName Name of the component for error messages.
421
- * @param {?Function} getStack Returns the component stack.
422
- * @private
423
- */
424
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
425
- if (process.env.NODE_ENV !== 'production') {
426
- for (var typeSpecName in typeSpecs) {
427
- if (has(typeSpecs, typeSpecName)) {
428
- var error;
429
- // Prop type validation may throw. In case they do, we don't want to
430
- // fail the render phase where it didn't fail before. So we log it.
431
- // After these have been cleaned up, we'll let them throw.
432
- try {
433
- // This is intentionally an invariant that gets caught. It's the same
434
- // behavior as without this statement except with a better message.
435
- if (typeof typeSpecs[typeSpecName] !== 'function') {
436
- var err = Error(
437
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
438
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
439
- 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
440
- );
441
- err.name = 'Invariant Violation';
442
- throw err;
443
- }
444
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
445
- } catch (ex) {
446
- error = ex;
447
- }
448
- if (error && !(error instanceof Error)) {
449
- printWarning(
450
- (componentName || 'React class') + ': type specification of ' +
451
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
452
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
453
- 'You may have forgotten to pass an argument to the type checker ' +
454
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
455
- 'shape all require an argument).'
456
- );
457
- }
458
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
459
- // Only monitor this failure once because there tends to be a lot of the
460
- // same error.
461
- loggedTypeFailures[error.message] = true;
462
-
463
- var stack = getStack ? getStack() : '';
464
-
465
- printWarning(
466
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
467
- );
468
- }
469
- }
470
- }
471
- }
472
- }
473
-
474
- /**
475
- * Resets warning cache when testing.
476
- *
477
- * @private
478
- */
479
- checkPropTypes.resetWarningCache = function() {
480
- if (process.env.NODE_ENV !== 'production') {
481
- loggedTypeFailures = {};
482
- }
483
- };
484
-
485
- checkPropTypes_1 = checkPropTypes;
486
- return checkPropTypes_1;
487
- }
488
-
489
- /**
490
- * Copyright (c) 2013-present, Facebook, Inc.
491
- *
492
- * This source code is licensed under the MIT license found in the
493
- * LICENSE file in the root directory of this source tree.
494
- */
495
-
496
- var factoryWithTypeCheckers;
497
- var hasRequiredFactoryWithTypeCheckers;
498
-
499
- function requireFactoryWithTypeCheckers () {
500
- if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
501
- hasRequiredFactoryWithTypeCheckers = 1;
502
-
503
- var ReactIs = requireReactIs();
504
- var assign = requireObjectAssign();
505
-
506
- var ReactPropTypesSecret = requireReactPropTypesSecret();
507
- var has = requireHas();
508
- var checkPropTypes = requireCheckPropTypes();
509
-
510
- var printWarning = function() {};
511
-
512
- if (process.env.NODE_ENV !== 'production') {
513
- printWarning = function(text) {
514
- var message = 'Warning: ' + text;
515
- if (typeof console !== 'undefined') {
516
- console.error(message);
517
- }
518
- try {
519
- // --- Welcome to debugging React ---
520
- // This error was thrown as a convenience so that you can use this stack
521
- // to find the callsite that caused this warning to fire.
522
- throw new Error(message);
523
- } catch (x) {}
524
- };
525
- }
526
-
527
- function emptyFunctionThatReturnsNull() {
528
- return null;
529
- }
530
-
531
- factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
532
- /* global Symbol */
533
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
534
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
535
-
536
- /**
537
- * Returns the iterator method function contained on the iterable object.
538
- *
539
- * Be sure to invoke the function with the iterable as context:
540
- *
541
- * var iteratorFn = getIteratorFn(myIterable);
542
- * if (iteratorFn) {
543
- * var iterator = iteratorFn.call(myIterable);
544
- * ...
545
- * }
546
- *
547
- * @param {?object} maybeIterable
548
- * @return {?function}
549
- */
550
- function getIteratorFn(maybeIterable) {
551
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
552
- if (typeof iteratorFn === 'function') {
553
- return iteratorFn;
554
- }
555
- }
556
-
557
- /**
558
- * Collection of methods that allow declaration and validation of props that are
559
- * supplied to React components. Example usage:
560
- *
561
- * var Props = require('ReactPropTypes');
562
- * var MyArticle = React.createClass({
563
- * propTypes: {
564
- * // An optional string prop named "description".
565
- * description: Props.string,
566
- *
567
- * // A required enum prop named "category".
568
- * category: Props.oneOf(['News','Photos']).isRequired,
569
- *
570
- * // A prop named "dialog" that requires an instance of Dialog.
571
- * dialog: Props.instanceOf(Dialog).isRequired
572
- * },
573
- * render: function() { ... }
574
- * });
575
- *
576
- * A more formal specification of how these methods are used:
577
- *
578
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
579
- * decl := ReactPropTypes.{type}(.isRequired)?
580
- *
581
- * Each and every declaration produces a function with the same signature. This
582
- * allows the creation of custom validation functions. For example:
583
- *
584
- * var MyLink = React.createClass({
585
- * propTypes: {
586
- * // An optional string or URI prop named "href".
587
- * href: function(props, propName, componentName) {
588
- * var propValue = props[propName];
589
- * if (propValue != null && typeof propValue !== 'string' &&
590
- * !(propValue instanceof URI)) {
591
- * return new Error(
592
- * 'Expected a string or an URI for ' + propName + ' in ' +
593
- * componentName
594
- * );
595
- * }
596
- * }
597
- * },
598
- * render: function() {...}
599
- * });
600
- *
601
- * @internal
602
- */
603
-
604
- var ANONYMOUS = '<<anonymous>>';
605
-
606
- // Important!
607
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
608
- var ReactPropTypes = {
609
- array: createPrimitiveTypeChecker('array'),
610
- bigint: createPrimitiveTypeChecker('bigint'),
611
- bool: createPrimitiveTypeChecker('boolean'),
612
- func: createPrimitiveTypeChecker('function'),
613
- number: createPrimitiveTypeChecker('number'),
614
- object: createPrimitiveTypeChecker('object'),
615
- string: createPrimitiveTypeChecker('string'),
616
- symbol: createPrimitiveTypeChecker('symbol'),
617
-
618
- any: createAnyTypeChecker(),
619
- arrayOf: createArrayOfTypeChecker,
620
- element: createElementTypeChecker(),
621
- elementType: createElementTypeTypeChecker(),
622
- instanceOf: createInstanceTypeChecker,
623
- node: createNodeChecker(),
624
- objectOf: createObjectOfTypeChecker,
625
- oneOf: createEnumTypeChecker,
626
- oneOfType: createUnionTypeChecker,
627
- shape: createShapeTypeChecker,
628
- exact: createStrictShapeTypeChecker,
629
- };
630
-
631
- /**
632
- * inlined Object.is polyfill to avoid requiring consumers ship their own
633
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
634
- */
635
- /*eslint-disable no-self-compare*/
636
- function is(x, y) {
637
- // SameValue algorithm
638
- if (x === y) {
639
- // Steps 1-5, 7-10
640
- // Steps 6.b-6.e: +0 != -0
641
- return x !== 0 || 1 / x === 1 / y;
642
- } else {
643
- // Step 6.a: NaN == NaN
644
- return x !== x && y !== y;
645
- }
646
- }
647
- /*eslint-enable no-self-compare*/
648
-
649
- /**
650
- * We use an Error-like object for backward compatibility as people may call
651
- * PropTypes directly and inspect their output. However, we don't use real
652
- * Errors anymore. We don't inspect their stack anyway, and creating them
653
- * is prohibitively expensive if they are created too often, such as what
654
- * happens in oneOfType() for any type before the one that matched.
655
- */
656
- function PropTypeError(message, data) {
657
- this.message = message;
658
- this.data = data && typeof data === 'object' ? data: {};
659
- this.stack = '';
660
- }
661
- // Make `instanceof Error` still work for returned errors.
662
- PropTypeError.prototype = Error.prototype;
663
-
664
- function createChainableTypeChecker(validate) {
665
- if (process.env.NODE_ENV !== 'production') {
666
- var manualPropTypeCallCache = {};
667
- var manualPropTypeWarningCount = 0;
668
- }
669
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
670
- componentName = componentName || ANONYMOUS;
671
- propFullName = propFullName || propName;
672
-
673
- if (secret !== ReactPropTypesSecret) {
674
- if (throwOnDirectAccess) {
675
- // New behavior only for users of `prop-types` package
676
- var err = new Error(
677
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
678
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
679
- 'Read more at http://fb.me/use-check-prop-types'
680
- );
681
- err.name = 'Invariant Violation';
682
- throw err;
683
- } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
684
- // Old behavior for people using React.PropTypes
685
- var cacheKey = componentName + ':' + propName;
686
- if (
687
- !manualPropTypeCallCache[cacheKey] &&
688
- // Avoid spamming the console because they are often not actionable except for lib authors
689
- manualPropTypeWarningCount < 3
690
- ) {
691
- printWarning(
692
- 'You are manually calling a React.PropTypes validation ' +
693
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
694
- 'and will throw in the standalone `prop-types` package. ' +
695
- 'You may be seeing this warning due to a third-party PropTypes ' +
696
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
697
- );
698
- manualPropTypeCallCache[cacheKey] = true;
699
- manualPropTypeWarningCount++;
700
- }
701
- }
702
- }
703
- if (props[propName] == null) {
704
- if (isRequired) {
705
- if (props[propName] === null) {
706
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
707
- }
708
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
709
- }
710
- return null;
711
- } else {
712
- return validate(props, propName, componentName, location, propFullName);
713
- }
714
- }
715
-
716
- var chainedCheckType = checkType.bind(null, false);
717
- chainedCheckType.isRequired = checkType.bind(null, true);
718
-
719
- return chainedCheckType;
720
- }
721
-
722
- function createPrimitiveTypeChecker(expectedType) {
723
- function validate(props, propName, componentName, location, propFullName, secret) {
724
- var propValue = props[propName];
725
- var propType = getPropType(propValue);
726
- if (propType !== expectedType) {
727
- // `propValue` being instance of, say, date/regexp, pass the 'object'
728
- // check, but we can offer a more precise error message here rather than
729
- // 'of type `object`'.
730
- var preciseType = getPreciseType(propValue);
731
-
732
- return new PropTypeError(
733
- 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
734
- {expectedType: expectedType}
735
- );
736
- }
737
- return null;
738
- }
739
- return createChainableTypeChecker(validate);
740
- }
741
-
742
- function createAnyTypeChecker() {
743
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
744
- }
745
-
746
- function createArrayOfTypeChecker(typeChecker) {
747
- function validate(props, propName, componentName, location, propFullName) {
748
- if (typeof typeChecker !== 'function') {
749
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
750
- }
751
- var propValue = props[propName];
752
- if (!Array.isArray(propValue)) {
753
- var propType = getPropType(propValue);
754
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
755
- }
756
- for (var i = 0; i < propValue.length; i++) {
757
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
758
- if (error instanceof Error) {
759
- return error;
760
- }
761
- }
762
- return null;
763
- }
764
- return createChainableTypeChecker(validate);
765
- }
766
-
767
- function createElementTypeChecker() {
768
- function validate(props, propName, componentName, location, propFullName) {
769
- var propValue = props[propName];
770
- if (!isValidElement(propValue)) {
771
- var propType = getPropType(propValue);
772
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
773
- }
774
- return null;
775
- }
776
- return createChainableTypeChecker(validate);
777
- }
778
-
779
- function createElementTypeTypeChecker() {
780
- function validate(props, propName, componentName, location, propFullName) {
781
- var propValue = props[propName];
782
- if (!ReactIs.isValidElementType(propValue)) {
783
- var propType = getPropType(propValue);
784
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
785
- }
786
- return null;
787
- }
788
- return createChainableTypeChecker(validate);
789
- }
790
-
791
- function createInstanceTypeChecker(expectedClass) {
792
- function validate(props, propName, componentName, location, propFullName) {
793
- if (!(props[propName] instanceof expectedClass)) {
794
- var expectedClassName = expectedClass.name || ANONYMOUS;
795
- var actualClassName = getClassName(props[propName]);
796
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
797
- }
798
- return null;
799
- }
800
- return createChainableTypeChecker(validate);
801
- }
802
-
803
- function createEnumTypeChecker(expectedValues) {
804
- if (!Array.isArray(expectedValues)) {
805
- if (process.env.NODE_ENV !== 'production') {
806
- if (arguments.length > 1) {
807
- printWarning(
808
- 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
809
- 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
810
- );
811
- } else {
812
- printWarning('Invalid argument supplied to oneOf, expected an array.');
813
- }
814
- }
815
- return emptyFunctionThatReturnsNull;
816
- }
817
-
818
- function validate(props, propName, componentName, location, propFullName) {
819
- var propValue = props[propName];
820
- for (var i = 0; i < expectedValues.length; i++) {
821
- if (is(propValue, expectedValues[i])) {
822
- return null;
823
- }
824
- }
825
-
826
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
827
- var type = getPreciseType(value);
828
- if (type === 'symbol') {
829
- return String(value);
830
- }
831
- return value;
832
- });
833
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
834
- }
835
- return createChainableTypeChecker(validate);
836
- }
837
-
838
- function createObjectOfTypeChecker(typeChecker) {
839
- function validate(props, propName, componentName, location, propFullName) {
840
- if (typeof typeChecker !== 'function') {
841
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
842
- }
843
- var propValue = props[propName];
844
- var propType = getPropType(propValue);
845
- if (propType !== 'object') {
846
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
847
- }
848
- for (var key in propValue) {
849
- if (has(propValue, key)) {
850
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
851
- if (error instanceof Error) {
852
- return error;
853
- }
854
- }
855
- }
856
- return null;
857
- }
858
- return createChainableTypeChecker(validate);
859
- }
860
-
861
- function createUnionTypeChecker(arrayOfTypeCheckers) {
862
- if (!Array.isArray(arrayOfTypeCheckers)) {
863
- process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
864
- return emptyFunctionThatReturnsNull;
865
- }
866
-
867
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
868
- var checker = arrayOfTypeCheckers[i];
869
- if (typeof checker !== 'function') {
870
- printWarning(
871
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
872
- 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
873
- );
874
- return emptyFunctionThatReturnsNull;
875
- }
876
- }
877
-
878
- function validate(props, propName, componentName, location, propFullName) {
879
- var expectedTypes = [];
880
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
881
- var checker = arrayOfTypeCheckers[i];
882
- var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
883
- if (checkerResult == null) {
884
- return null;
885
- }
886
- if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
887
- expectedTypes.push(checkerResult.data.expectedType);
888
- }
889
- }
890
- var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
891
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
892
- }
893
- return createChainableTypeChecker(validate);
894
- }
895
-
896
- function createNodeChecker() {
897
- function validate(props, propName, componentName, location, propFullName) {
898
- if (!isNode(props[propName])) {
899
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
900
- }
901
- return null;
902
- }
903
- return createChainableTypeChecker(validate);
904
- }
905
-
906
- function invalidValidatorError(componentName, location, propFullName, key, type) {
907
- return new PropTypeError(
908
- (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
909
- 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
910
- );
911
- }
912
-
913
- function createShapeTypeChecker(shapeTypes) {
914
- function validate(props, propName, componentName, location, propFullName) {
915
- var propValue = props[propName];
916
- var propType = getPropType(propValue);
917
- if (propType !== 'object') {
918
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
919
- }
920
- for (var key in shapeTypes) {
921
- var checker = shapeTypes[key];
922
- if (typeof checker !== 'function') {
923
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
924
- }
925
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
926
- if (error) {
927
- return error;
928
- }
929
- }
930
- return null;
931
- }
932
- return createChainableTypeChecker(validate);
933
- }
934
-
935
- function createStrictShapeTypeChecker(shapeTypes) {
936
- function validate(props, propName, componentName, location, propFullName) {
937
- var propValue = props[propName];
938
- var propType = getPropType(propValue);
939
- if (propType !== 'object') {
940
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
941
- }
942
- // We need to check all keys in case some are required but missing from props.
943
- var allKeys = assign({}, props[propName], shapeTypes);
944
- for (var key in allKeys) {
945
- var checker = shapeTypes[key];
946
- if (has(shapeTypes, key) && typeof checker !== 'function') {
947
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
948
- }
949
- if (!checker) {
950
- return new PropTypeError(
951
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
952
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
953
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
954
- );
955
- }
956
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
957
- if (error) {
958
- return error;
959
- }
960
- }
961
- return null;
962
- }
963
-
964
- return createChainableTypeChecker(validate);
965
- }
966
-
967
- function isNode(propValue) {
968
- switch (typeof propValue) {
969
- case 'number':
970
- case 'string':
971
- case 'undefined':
972
- return true;
973
- case 'boolean':
974
- return !propValue;
975
- case 'object':
976
- if (Array.isArray(propValue)) {
977
- return propValue.every(isNode);
978
- }
979
- if (propValue === null || isValidElement(propValue)) {
980
- return true;
981
- }
982
-
983
- var iteratorFn = getIteratorFn(propValue);
984
- if (iteratorFn) {
985
- var iterator = iteratorFn.call(propValue);
986
- var step;
987
- if (iteratorFn !== propValue.entries) {
988
- while (!(step = iterator.next()).done) {
989
- if (!isNode(step.value)) {
990
- return false;
991
- }
992
- }
993
- } else {
994
- // Iterator will provide entry [k,v] tuples rather than values.
995
- while (!(step = iterator.next()).done) {
996
- var entry = step.value;
997
- if (entry) {
998
- if (!isNode(entry[1])) {
999
- return false;
1000
- }
1001
- }
1002
- }
1003
- }
1004
- } else {
1005
- return false;
1006
- }
1007
-
1008
- return true;
1009
- default:
1010
- return false;
1011
- }
1012
- }
1013
-
1014
- function isSymbol(propType, propValue) {
1015
- // Native Symbol.
1016
- if (propType === 'symbol') {
1017
- return true;
1018
- }
1019
-
1020
- // falsy value can't be a Symbol
1021
- if (!propValue) {
1022
- return false;
1023
- }
1024
-
1025
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1026
- if (propValue['@@toStringTag'] === 'Symbol') {
1027
- return true;
1028
- }
1029
-
1030
- // Fallback for non-spec compliant Symbols which are polyfilled.
1031
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1032
- return true;
1033
- }
1034
-
1035
- return false;
1036
- }
1037
-
1038
- // Equivalent of `typeof` but with special handling for array and regexp.
1039
- function getPropType(propValue) {
1040
- var propType = typeof propValue;
1041
- if (Array.isArray(propValue)) {
1042
- return 'array';
1043
- }
1044
- if (propValue instanceof RegExp) {
1045
- // Old webkits (at least until Android 4.0) return 'function' rather than
1046
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1047
- // passes PropTypes.object.
1048
- return 'object';
1049
- }
1050
- if (isSymbol(propType, propValue)) {
1051
- return 'symbol';
1052
- }
1053
- return propType;
1054
- }
1055
-
1056
- // This handles more types than `getPropType`. Only used for error messages.
1057
- // See `createPrimitiveTypeChecker`.
1058
- function getPreciseType(propValue) {
1059
- if (typeof propValue === 'undefined' || propValue === null) {
1060
- return '' + propValue;
1061
- }
1062
- var propType = getPropType(propValue);
1063
- if (propType === 'object') {
1064
- if (propValue instanceof Date) {
1065
- return 'date';
1066
- } else if (propValue instanceof RegExp) {
1067
- return 'regexp';
1068
- }
1069
- }
1070
- return propType;
1071
- }
1072
-
1073
- // Returns a string that is postfixed to a warning about an invalid type.
1074
- // For example, "undefined" or "of type array"
1075
- function getPostfixForTypeWarning(value) {
1076
- var type = getPreciseType(value);
1077
- switch (type) {
1078
- case 'array':
1079
- case 'object':
1080
- return 'an ' + type;
1081
- case 'boolean':
1082
- case 'date':
1083
- case 'regexp':
1084
- return 'a ' + type;
1085
- default:
1086
- return type;
1087
- }
1088
- }
1089
-
1090
- // Returns class name of the object, if any.
1091
- function getClassName(propValue) {
1092
- if (!propValue.constructor || !propValue.constructor.name) {
1093
- return ANONYMOUS;
1094
- }
1095
- return propValue.constructor.name;
1096
- }
1097
-
1098
- ReactPropTypes.checkPropTypes = checkPropTypes;
1099
- ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1100
- ReactPropTypes.PropTypes = ReactPropTypes;
1101
-
1102
- return ReactPropTypes;
1103
- };
1104
- return factoryWithTypeCheckers;
1105
- }
1106
-
1107
- /**
1108
- * Copyright (c) 2013-present, Facebook, Inc.
1109
- *
1110
- * This source code is licensed under the MIT license found in the
1111
- * LICENSE file in the root directory of this source tree.
1112
- */
1113
-
1114
- var factoryWithThrowingShims;
1115
- var hasRequiredFactoryWithThrowingShims;
1116
-
1117
- function requireFactoryWithThrowingShims () {
1118
- if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
1119
- hasRequiredFactoryWithThrowingShims = 1;
1120
-
1121
- var ReactPropTypesSecret = requireReactPropTypesSecret();
1122
-
1123
- function emptyFunction() {}
1124
- function emptyFunctionWithReset() {}
1125
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
1126
-
1127
- factoryWithThrowingShims = function() {
1128
- function shim(props, propName, componentName, location, propFullName, secret) {
1129
- if (secret === ReactPropTypesSecret) {
1130
- // It is still safe when called from React.
1131
- return;
1132
- }
1133
- var err = new Error(
1134
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1135
- 'Use PropTypes.checkPropTypes() to call them. ' +
1136
- 'Read more at http://fb.me/use-check-prop-types'
1137
- );
1138
- err.name = 'Invariant Violation';
1139
- throw err;
1140
- } shim.isRequired = shim;
1141
- function getShim() {
1142
- return shim;
1143
- } // Important!
1144
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1145
- var ReactPropTypes = {
1146
- array: shim,
1147
- bigint: shim,
1148
- bool: shim,
1149
- func: shim,
1150
- number: shim,
1151
- object: shim,
1152
- string: shim,
1153
- symbol: shim,
1154
-
1155
- any: shim,
1156
- arrayOf: getShim,
1157
- element: shim,
1158
- elementType: shim,
1159
- instanceOf: getShim,
1160
- node: shim,
1161
- objectOf: getShim,
1162
- oneOf: getShim,
1163
- oneOfType: getShim,
1164
- shape: getShim,
1165
- exact: getShim,
1166
-
1167
- checkPropTypes: emptyFunctionWithReset,
1168
- resetWarningCache: emptyFunction
1169
- };
1170
-
1171
- ReactPropTypes.PropTypes = ReactPropTypes;
1172
-
1173
- return ReactPropTypes;
1174
- };
1175
- return factoryWithThrowingShims;
1176
- }
1177
-
1178
- /**
1179
- * Copyright (c) 2013-present, Facebook, Inc.
1180
- *
1181
- * This source code is licensed under the MIT license found in the
1182
- * LICENSE file in the root directory of this source tree.
1183
- */
1184
-
1185
- if (process.env.NODE_ENV !== 'production') {
1186
- var ReactIs = requireReactIs();
1187
-
1188
- // By explicitly using `prop-types` you are opting into new development behavior.
1189
- // http://fb.me/prop-types-in-prod
1190
- var throwOnDirectAccess = true;
1191
- propTypes.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
1192
- } else {
1193
- // By explicitly using `prop-types` you are opting into new production behavior.
1194
- // http://fb.me/prop-types-in-prod
1195
- propTypes.exports = requireFactoryWithThrowingShims()();
1196
- }
1197
-
1198
17
  var MemoizedEditorContent = /*#__PURE__*/React__default["default"].memo(neetoEditor.EditorContent);
1199
18
  var EmailPreview = withT__default["default"](function (_ref) {
1200
19
  var t = _ref.t,
@@ -1289,31 +108,31 @@ EmailPreview.propTypes = {
1289
108
  /**
1290
109
  * The value of the send-to field.
1291
110
  */
1292
- to: propTypes.exports.arrayOf(propTypes.exports.string),
111
+ to: index.propTypes.exports.arrayOf(index.propTypes.exports.string),
1293
112
  /**
1294
113
  * The value of the send-from field.
1295
114
  */
1296
- from: propTypes.exports.string,
115
+ from: index.propTypes.exports.string,
1297
116
  /**
1298
117
  * The subject of the email.
1299
118
  */
1300
- subject: propTypes.exports.string,
119
+ subject: index.propTypes.exports.string,
1301
120
  /**
1302
121
  * The body of the email.
1303
122
  */
1304
- body: propTypes.exports.string,
123
+ body: index.propTypes.exports.string,
1305
124
  /**
1306
125
  * The name of the neeto product to be previewed.
1307
126
  */
1308
- productName: propTypes.exports.string,
127
+ productName: index.propTypes.exports.string,
1309
128
  /**
1310
129
  * The text to be shown in the action button.
1311
130
  */
1312
- actionButtonText: propTypes.exports.string,
131
+ actionButtonText: index.propTypes.exports.string,
1313
132
  /**
1314
133
  * Source link for the company logo.
1315
134
  */
1316
- logo: propTypes.exports.string
135
+ logo: index.propTypes.exports.string
1317
136
  };
1318
137
 
1319
138
  module.exports = EmailPreview;