graphiql-rails 1.4.6 → 1.4.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/graphiql/rails/application.js +1 -1
  3. data/app/assets/javascripts/graphiql/rails/{graphiql-0.11.9.js → graphiql-0.11.10.js} +1 -1
  4. data/app/assets/javascripts/graphiql/rails/react-16.0.0.js +352 -55
  5. data/app/assets/javascripts/graphiql/rails/react-dom-16.0.0.js +1649 -443
  6. data/app/assets/stylesheets/graphiql/rails/application.css +1 -1
  7. data/app/assets/stylesheets/graphiql/rails/{graphiql-0.11.9.css → graphiql-0.11.10.css} +0 -0
  8. data/lib/graphiql/rails/version.rb +1 -1
  9. data/test/dummy/log/test.log +54 -0
  10. data/test/dummy/tmp/cache/assets/sprockets/v3.0/04/04s93Tzn3Xqp27RIPbk2JW4EwFJ92GRHxAYQBN1VaXI.cache +1 -0
  11. data/test/dummy/tmp/cache/assets/sprockets/v3.0/5b/5bhY6WKi3LOKFSpOcjAhFLluKpH8Xa9jdyNENH4tuU4.cache +1 -0
  12. data/test/dummy/tmp/cache/assets/sprockets/v3.0/7B/7BaLGu15JbZ67DHzBkca1NG_IR1fhlT8DO90PRE5SNM.cache +0 -0
  13. data/test/dummy/tmp/cache/assets/sprockets/v3.0/7z/7zyPqEZVFv5eme1L8Ohq6irryEe_c7rbMOu4VqGay1U.cache +3 -0
  14. data/test/dummy/tmp/cache/assets/sprockets/v3.0/EV/EVWaEay9drlzZPTuMUk4TcUNZJMtlWWeLhaaO9JJZjg.cache +3 -0
  15. data/test/dummy/tmp/cache/assets/sprockets/v3.0/EV/EVijhtV3qWCnXrJFIq-iVWGc64v2dA__sdr56TQYCSk.cache +1 -0
  16. data/test/dummy/tmp/cache/assets/sprockets/v3.0/FB/FBNtr3b9clNS21vaPpPMRInEQ7kdmmpR9_ryPdGh6w0.cache +1 -0
  17. data/test/dummy/tmp/cache/assets/sprockets/v3.0/GN/GNlsWA_sPYrTKNioToykgcuxYaYs3i-fNUvp46T2TqI.cache +2 -0
  18. data/test/dummy/tmp/cache/assets/sprockets/v3.0/HF/HFDxddNOXrzxty0N2BJcntkB9xohfW4UYyQaPbR9TFo.cache +1 -0
  19. data/test/dummy/tmp/cache/assets/sprockets/v3.0/HI/HIyUohMcYwHkGtck1ZKdxersZXMYsV8cGRbosYFIP1o.cache +1 -0
  20. data/test/dummy/tmp/cache/assets/sprockets/v3.0/LF/LFqr3zNoPXj4i8azJatXfhKitCHvaJW9TZLqCVt9QVE.cache +1 -0
  21. data/test/dummy/tmp/cache/assets/sprockets/v3.0/LU/LU0Ubj6_8OMcF5fL-zqxXcjU3mRi93-ZpFGJHwvUGfw.cache +1 -0
  22. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ou/OuplBYxOhZFXuhKhSBH9eCHNTDNdS49VgNZ-JmcrbY4.cache +0 -0
  23. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Q_/Q_iHaipwEjUmrRm5iFo24-4dqwl93je4AFivWazf2KU.cache +1 -0
  24. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Rw/RW6uS8uCcZkHdRl2LON6z_d_Z2se9Pewf73vwD_q3Ek.cache +0 -0
  25. data/test/dummy/tmp/cache/assets/sprockets/v3.0/UO/UOdiJSX4CRds4wn8qz631wa3Of5BmZMJfB7F0-8FIJY.cache +0 -0
  26. data/test/dummy/tmp/cache/assets/sprockets/v3.0/V-/V-hZ6m4_ZwIdj4upwYPz69NdrL43nZlaGZUirXK7_7k.cache +1 -0
  27. data/test/dummy/tmp/cache/assets/sprockets/v3.0/WX/WX5ywUkiKM_R0MV4XsNYkFPa-40XbWvsewiG-fZdJyY.cache +2 -0
  28. data/test/dummy/tmp/cache/assets/sprockets/v3.0/YS/YS0y5dVS9Y6jAFfzOWLhnQQz5ZdCQN9UGHQAIYyTZE0.cache +0 -0
  29. data/test/dummy/tmp/cache/assets/sprockets/v3.0/cF/cFSqaWNl1N78GziUAvtxvdUGx-Uz2tPl0pO7s4xdLbg.cache +2 -0
  30. data/test/dummy/tmp/cache/assets/sprockets/v3.0/cm/cm1WOYI9w3uhkNu4Vb-kEOMneN7k0pXLnojjROiB9eI.cache +0 -0
  31. data/test/dummy/tmp/cache/assets/sprockets/v3.0/cw/cwa_bniOlVHoF7FyHKeX8x_qO49-hOA9eayBSno-g7Q.cache +0 -0
  32. data/test/dummy/tmp/cache/assets/sprockets/v3.0/d-/d-vlHCxMOwTCsoMm5RJOU__--UZ92MQCSHKcX_Rn74g.cache +1 -0
  33. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ds/dsUc8MYjZLb1U4G-ZGH-qF1dNwPuP2E-ZBEBStqgp_8.cache +3 -0
  34. data/test/dummy/tmp/cache/assets/sprockets/v3.0/eG/eGaxh4Y7whkTSuX4sU8qBgRDw3p13trMMi1HKtu-P8Y.cache +1 -0
  35. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ke/ke-ZvnGtZDuEhoW6xWTIZuTbky_xNgwKpcSOS5uGhwc.cache +3 -0
  36. data/test/dummy/tmp/cache/assets/sprockets/v3.0/kr/krJuIicueAPd9Y2zaquz99Ih1rMCyMuwgX0Baz8-Qx0.cache +0 -0
  37. data/test/dummy/tmp/cache/assets/sprockets/v3.0/l1/l169rNZ_HA-2QeoeEkH9EKed4Y6EM6BkysX0gRwcTa0.cache +0 -0
  38. data/test/dummy/tmp/cache/assets/sprockets/v3.0/lV/lV0_8GAp9W7BkTcvZ7p3Ht9e5utCCqfDsAn2jwRFoiY.cache +2 -0
  39. data/test/dummy/tmp/cache/assets/sprockets/v3.0/mE/mEpxSHG0H2wBmMqZhuxoNnT0RM-dt-1qtOOdLVtxJT4.cache +1 -0
  40. data/test/dummy/tmp/cache/assets/sprockets/v3.0/mp/mpJRIM20i6M6EBGL4RR1Cc5_WfZITiRsqF18FLEWuPg.cache +2 -0
  41. data/test/dummy/tmp/cache/assets/sprockets/v3.0/n5/n5xv2MlwapYuZyH3iVyFUtsZl_rPXEKTiH65TnftKXQ.cache +0 -0
  42. data/test/dummy/tmp/cache/assets/sprockets/v3.0/oo/ooqsnFa1pVxDKucHBGRjSn5q5n_BQ2_6bomZlEBrZJw.cache +1 -0
  43. data/test/dummy/tmp/cache/assets/sprockets/v3.0/pt/ptSZ8wxSLerQdTXe07GS9bM2WGd76vpEBeKnAhWxRBI.cache +0 -0
  44. data/test/dummy/tmp/cache/assets/sprockets/v3.0/vK/vK4VG3ZhZCj-pNuZ1GgShrmUDE-Ldxz4x1AZKPiEv6M.cache +1 -0
  45. metadata +72 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 265c69aeac5760feb01cc6e88fd3ab16c8a5d027
4
- data.tar.gz: b2a790fdedd1778d54fc462ce63e6e8548058c08
3
+ metadata.gz: eea54c54e2209b76c60f20c0dcd8c3d72f119a33
4
+ data.tar.gz: bcdf4568ef591c23830e77b4076d18203c805d72
5
5
  SHA512:
6
- metadata.gz: 4799672d35107a5ddd4d795d78df70840817b459e28b19847432295c2736d381107325debca1b5e1d33b5abdfbbf12610f0496e5c62a0c0764864d23a5eab2b9
7
- data.tar.gz: ddde9520dc2f11179aab584fea7c59f78b3a49323f0fcc3f8113f038e3437e00471070767beb223f650415313f11dc84cb2b4bcfa6432faf0ba60ea945c29671
6
+ metadata.gz: c7e3630c9f31e8dd6b847ebf774dc6f5efe123e035d7263398eee8b9c831f6fff5fab0dd2ff0a1991320af6d5b1bc750b719e60978adae7e5ff6c311ad01691c
7
+ data.tar.gz: 0a2ac8719771d0769da270197a26cf07ee1e47bd5fa5e868c80810c1769503b6a5508a3ccd150e9a1d609723506a7c72bcd777742350e845a526736a85b14a48
@@ -1,4 +1,4 @@
1
1
  //= require ./react-16.0.0
2
2
  //= require ./react-dom-16.0.0
3
3
  //= require ./fetch-0.10.1
4
- //= require ./graphiql-0.11.9
4
+ //= require ./graphiql-0.11.10
@@ -1544,7 +1544,7 @@ var ExecuteButton = exports.ExecuteButton = function (_React$Component) {
1544
1544
  'li',
1545
1545
  {
1546
1546
  key: operation.name ? operation.name.value : '*',
1547
- className: operation === highlight && 'selected',
1547
+ className: operation === highlight && 'selected' || null,
1548
1548
  onMouseOver: function onMouseOver() {
1549
1549
  return _this2.setState({ highlight: operation });
1550
1550
  },
@@ -6,20 +6,102 @@
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- 'use strict';
10
9
 
10
+ (function (global, factory) {
11
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
12
+ typeof define === 'function' && define.amd ? define(factory) :
13
+ (global.React = factory());
14
+ }(this, (function () { 'use strict';
11
15
 
12
- if (process.env.NODE_ENV !== "production") {
13
- (function() {
16
+ /*
17
+ object-assign
18
+ (c) Sindre Sorhus
19
+ @license MIT
20
+ */
14
21
 
15
- 'use strict';
22
+ /* eslint-disable no-unused-vars */
23
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
24
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
25
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
26
+
27
+ function toObject(val) {
28
+ if (val === null || val === undefined) {
29
+ throw new TypeError('Object.assign cannot be called with null or undefined');
30
+ }
16
31
 
17
- var objectAssign$1 = require('object-assign');
18
- var require$$0 = require('fbjs/lib/warning');
19
- var emptyObject = require('fbjs/lib/emptyObject');
20
- var invariant = require('fbjs/lib/invariant');
21
- var emptyFunction = require('fbjs/lib/emptyFunction');
22
- var checkPropTypes = require('prop-types/checkPropTypes');
32
+ return Object(val);
33
+ }
34
+
35
+ function shouldUseNative() {
36
+ try {
37
+ if (!Object.assign) {
38
+ return false;
39
+ }
40
+
41
+ // Detect buggy property enumeration order in older V8 versions.
42
+
43
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
44
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
45
+ test1[5] = 'de';
46
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
47
+ return false;
48
+ }
49
+
50
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
51
+ var test2 = {};
52
+ for (var i = 0; i < 10; i++) {
53
+ test2['_' + String.fromCharCode(i)] = i;
54
+ }
55
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
56
+ return test2[n];
57
+ });
58
+ if (order2.join('') !== '0123456789') {
59
+ return false;
60
+ }
61
+
62
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
63
+ var test3 = {};
64
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
65
+ test3[letter] = letter;
66
+ });
67
+ if (Object.keys(Object.assign({}, test3)).join('') !==
68
+ 'abcdefghijklmnopqrst') {
69
+ return false;
70
+ }
71
+
72
+ return true;
73
+ } catch (err) {
74
+ // We don't expect any of the above to throw, but better to be safe.
75
+ return false;
76
+ }
77
+ }
78
+
79
+ var index = shouldUseNative() ? Object.assign : function (target, source) {
80
+ var from;
81
+ var to = toObject(target);
82
+ var symbols;
83
+
84
+ for (var s = 1; s < arguments.length; s++) {
85
+ from = Object(arguments[s]);
86
+
87
+ for (var key in from) {
88
+ if (hasOwnProperty.call(from, key)) {
89
+ to[key] = from[key];
90
+ }
91
+ }
92
+
93
+ if (getOwnPropertySymbols) {
94
+ symbols = getOwnPropertySymbols(from);
95
+ for (var i = 0; i < symbols.length; i++) {
96
+ if (propIsEnumerable.call(from, symbols[i])) {
97
+ to[symbols[i]] = from[symbols[i]];
98
+ }
99
+ }
100
+ }
101
+ }
102
+
103
+ return to;
104
+ };
23
105
 
24
106
  /**
25
107
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -31,8 +113,94 @@ var checkPropTypes = require('prop-types/checkPropTypes');
31
113
  *
32
114
  */
33
115
 
116
+ /**
117
+ * Copyright (c) 2013-present, Facebook, Inc.
118
+ *
119
+ * This source code is licensed under the MIT license found in the
120
+ * LICENSE file in the root directory of this source tree.
121
+ *
122
+ *
123
+ */
124
+
125
+ function makeEmptyFunction(arg) {
126
+ return function () {
127
+ return arg;
128
+ };
129
+ }
130
+
131
+ /**
132
+ * This function accepts and discards inputs; it has no side effects. This is
133
+ * primarily useful idiomatically for overridable function endpoints which
134
+ * always need to be callable, since JS lacks a null-call idiom ala Cocoa.
135
+ */
136
+ var emptyFunction = function emptyFunction() {};
137
+
138
+ emptyFunction.thatReturns = makeEmptyFunction;
139
+ emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
140
+ emptyFunction.thatReturnsTrue = makeEmptyFunction(true);
141
+ emptyFunction.thatReturnsNull = makeEmptyFunction(null);
142
+ emptyFunction.thatReturnsThis = function () {
143
+ return this;
144
+ };
145
+ emptyFunction.thatReturnsArgument = function (arg) {
146
+ return arg;
147
+ };
148
+
149
+ var emptyFunction_1 = emptyFunction;
150
+
151
+ /**
152
+ * Similar to invariant but only logs a warning if the condition is not met.
153
+ * This can be used to log issues in development environments in critical
154
+ * paths. Removing the logging code for production environments will keep the
155
+ * same logic and follow the same code paths.
156
+ */
157
+
158
+ var warning$1 = emptyFunction_1;
159
+
160
+ {
161
+ var printWarning = function printWarning(format) {
162
+ for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
163
+ args[_key - 1] = arguments[_key];
164
+ }
165
+
166
+ var argIndex = 0;
167
+ var message = 'Warning: ' + format.replace(/%s/g, function () {
168
+ return args[argIndex++];
169
+ });
170
+ if (typeof console !== 'undefined') {
171
+ console.error(message);
172
+ }
173
+ try {
174
+ // --- Welcome to debugging React ---
175
+ // This error was thrown as a convenience so that you can use this stack
176
+ // to find the callsite that caused this warning to fire.
177
+ throw new Error(message);
178
+ } catch (x) {}
179
+ };
180
+
181
+ warning$1 = function warning(condition, format) {
182
+ if (format === undefined) {
183
+ throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
184
+ }
185
+
186
+ if (format.indexOf('Failed Composite propType: ') === 0) {
187
+ return; // Ignore CompositeComponent proptype check.
188
+ }
189
+
190
+ if (!condition) {
191
+ for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
192
+ args[_key2 - 2] = arguments[_key2];
193
+ }
194
+
195
+ printWarning.apply(undefined, [format].concat(args));
196
+ }
197
+ };
198
+ }
199
+
200
+ var warning_1 = warning$1;
201
+
34
202
  {
35
- var warning = require$$0;
203
+ var warning = warning_1;
36
204
  }
37
205
 
38
206
  function warnNoop(publicInstance, callerName) {
@@ -112,6 +280,74 @@ var ReactNoopUpdateQueue = {
112
280
 
113
281
  var ReactNoopUpdateQueue_1 = ReactNoopUpdateQueue;
114
282
 
283
+ /**
284
+ * Copyright (c) 2013-present, Facebook, Inc.
285
+ *
286
+ * This source code is licensed under the MIT license found in the
287
+ * LICENSE file in the root directory of this source tree.
288
+ *
289
+ */
290
+
291
+ var emptyObject = {};
292
+
293
+ {
294
+ Object.freeze(emptyObject);
295
+ }
296
+
297
+ var emptyObject_1 = emptyObject;
298
+
299
+ /**
300
+ * Copyright (c) 2013-present, Facebook, Inc.
301
+ *
302
+ * This source code is licensed under the MIT license found in the
303
+ * LICENSE file in the root directory of this source tree.
304
+ *
305
+ */
306
+
307
+ /**
308
+ * Use invariant() to assert state which your program assumes to be true.
309
+ *
310
+ * Provide sprintf-style format (only %s is supported) and arguments
311
+ * to provide information about what broke and what you were
312
+ * expecting.
313
+ *
314
+ * The invariant message will be stripped in production, but the invariant
315
+ * will remain to ensure logic does not differ in production.
316
+ */
317
+
318
+ var validateFormat = function validateFormat(format) {};
319
+
320
+ {
321
+ validateFormat = function validateFormat(format) {
322
+ if (format === undefined) {
323
+ throw new Error('invariant requires an error message argument');
324
+ }
325
+ };
326
+ }
327
+
328
+ function invariant(condition, format, a, b, c, d, e, f) {
329
+ validateFormat(format);
330
+
331
+ if (!condition) {
332
+ var error;
333
+ if (format === undefined) {
334
+ error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
335
+ } else {
336
+ var args = [a, b, c, d, e, f];
337
+ var argIndex = 0;
338
+ error = new Error(format.replace(/%s/g, function () {
339
+ return args[argIndex++];
340
+ }));
341
+ error.name = 'Invariant Violation';
342
+ }
343
+
344
+ error.framesToPop = 1; // we don't care about invariant's own frame
345
+ throw error;
346
+ }
347
+ }
348
+
349
+ var invariant_1 = invariant;
350
+
115
351
  /**
116
352
  * Copyright (c) 2014-present, Facebook, Inc.
117
353
  *
@@ -138,7 +374,7 @@ var ReactNoopUpdateQueue_1 = ReactNoopUpdateQueue;
138
374
  var lowPriorityWarning = function () {};
139
375
 
140
376
  {
141
- var printWarning = function (format) {
377
+ var printWarning$1 = function (format) {
142
378
  for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
143
379
  args[_key - 1] = arguments[_key];
144
380
  }
@@ -167,7 +403,7 @@ var lowPriorityWarning = function () {};
167
403
  args[_key2 - 2] = arguments[_key2];
168
404
  }
169
405
 
170
- printWarning.apply(undefined, [format].concat(args));
406
+ printWarning$1.apply(undefined, [format].concat(args));
171
407
  }
172
408
  };
173
409
  }
@@ -180,7 +416,7 @@ var lowPriorityWarning_1 = lowPriorityWarning;
180
416
  function ReactComponent(props, context, updater) {
181
417
  this.props = props;
182
418
  this.context = context;
183
- this.refs = emptyObject;
419
+ this.refs = emptyObject_1;
184
420
  // We initialize the default updater but the real one gets injected by the
185
421
  // renderer.
186
422
  this.updater = updater || ReactNoopUpdateQueue_1;
@@ -214,7 +450,7 @@ ReactComponent.prototype.isReactComponent = {};
214
450
  * @protected
215
451
  */
216
452
  ReactComponent.prototype.setState = function (partialState, callback) {
217
- !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : void 0;
453
+ !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? invariant_1(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : void 0;
218
454
  this.updater.enqueueSetState(this, partialState, callback, 'setState');
219
455
  };
220
456
 
@@ -268,7 +504,7 @@ function ReactPureComponent(props, context, updater) {
268
504
  // Duplicated from ReactComponent.
269
505
  this.props = props;
270
506
  this.context = context;
271
- this.refs = emptyObject;
507
+ this.refs = emptyObject_1;
272
508
  // We initialize the default updater but the real one gets injected by the
273
509
  // renderer.
274
510
  this.updater = updater || ReactNoopUpdateQueue_1;
@@ -279,14 +515,14 @@ ComponentDummy.prototype = ReactComponent.prototype;
279
515
  var pureComponentPrototype = ReactPureComponent.prototype = new ComponentDummy();
280
516
  pureComponentPrototype.constructor = ReactPureComponent;
281
517
  // Avoid an extra prototype jump for these methods.
282
- objectAssign$1(pureComponentPrototype, ReactComponent.prototype);
518
+ index(pureComponentPrototype, ReactComponent.prototype);
283
519
  pureComponentPrototype.isPureReactComponent = true;
284
520
 
285
521
  function ReactAsyncComponent(props, context, updater) {
286
522
  // Duplicated from ReactComponent.
287
523
  this.props = props;
288
524
  this.context = context;
289
- this.refs = emptyObject;
525
+ this.refs = emptyObject_1;
290
526
  // We initialize the default updater but the real one gets injected by the
291
527
  // renderer.
292
528
  this.updater = updater || ReactNoopUpdateQueue_1;
@@ -295,7 +531,7 @@ function ReactAsyncComponent(props, context, updater) {
295
531
  var asyncComponentPrototype = ReactAsyncComponent.prototype = new ComponentDummy();
296
532
  asyncComponentPrototype.constructor = ReactAsyncComponent;
297
533
  // Avoid an extra prototype jump for these methods.
298
- objectAssign$1(asyncComponentPrototype, ReactComponent.prototype);
534
+ index(asyncComponentPrototype, ReactComponent.prototype);
299
535
  asyncComponentPrototype.unstable_isAsyncReactComponent = true;
300
536
  asyncComponentPrototype.render = function () {
301
537
  return this.props.children;
@@ -333,10 +569,10 @@ var ReactCurrentOwner = {
333
569
 
334
570
  var ReactCurrentOwner_1 = ReactCurrentOwner;
335
571
 
336
- var hasOwnProperty = Object.prototype.hasOwnProperty;
572
+ var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
337
573
 
338
574
  {
339
- var warning$2 = require$$0;
575
+ var warning$3 = warning_1;
340
576
  }
341
577
 
342
578
  // The Symbol used to tag the ReactElement type. If there is no native Symbol
@@ -355,7 +591,7 @@ var specialPropRefWarningShown;
355
591
 
356
592
  function hasValidRef(config) {
357
593
  {
358
- if (hasOwnProperty.call(config, 'ref')) {
594
+ if (hasOwnProperty$1.call(config, 'ref')) {
359
595
  var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
360
596
  if (getter && getter.isReactWarning) {
361
597
  return false;
@@ -367,7 +603,7 @@ function hasValidRef(config) {
367
603
 
368
604
  function hasValidKey(config) {
369
605
  {
370
- if (hasOwnProperty.call(config, 'key')) {
606
+ if (hasOwnProperty$1.call(config, 'key')) {
371
607
  var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
372
608
  if (getter && getter.isReactWarning) {
373
609
  return false;
@@ -381,7 +617,7 @@ function defineKeyPropWarningGetter(props, displayName) {
381
617
  var warnAboutAccessingKey = function () {
382
618
  if (!specialPropKeyWarningShown) {
383
619
  specialPropKeyWarningShown = true;
384
- warning$2(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
620
+ warning$3(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
385
621
  }
386
622
  };
387
623
  warnAboutAccessingKey.isReactWarning = true;
@@ -395,7 +631,7 @@ function defineRefPropWarningGetter(props, displayName) {
395
631
  var warnAboutAccessingRef = function () {
396
632
  if (!specialPropRefWarningShown) {
397
633
  specialPropRefWarningShown = true;
398
- warning$2(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
634
+ warning$3(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
399
635
  }
400
636
  };
401
637
  warnAboutAccessingRef.isReactWarning = true;
@@ -508,7 +744,7 @@ ReactElement.createElement = function (type, config, children) {
508
744
  source = config.__source === undefined ? null : config.__source;
509
745
  // Remaining properties are added to a new props object
510
746
  for (propName in config) {
511
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
747
+ if (hasOwnProperty$1.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
512
748
  props[propName] = config[propName];
513
749
  }
514
750
  }
@@ -586,7 +822,7 @@ ReactElement.cloneElement = function (element, config, children) {
586
822
  var propName;
587
823
 
588
824
  // Original props are copied
589
- var props = objectAssign$1({}, element.props);
825
+ var props = index({}, element.props);
590
826
 
591
827
  // Reserved names are extracted
592
828
  var key = element.key;
@@ -617,7 +853,7 @@ ReactElement.cloneElement = function (element, config, children) {
617
853
  defaultProps = element.type.defaultProps;
618
854
  }
619
855
  for (propName in config) {
620
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
856
+ if (hasOwnProperty$1.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
621
857
  if (config[propName] === undefined && defaultProps !== undefined) {
622
858
  // Resolve default props
623
859
  props[propName] = defaultProps[propName];
@@ -685,7 +921,7 @@ var ReactDebugCurrentFrame = {};
685
921
  var ReactDebugCurrentFrame_1 = ReactDebugCurrentFrame;
686
922
 
687
923
  {
688
- var warning$1 = require$$0;
924
+ var warning$2 = warning_1;
689
925
 
690
926
  var _require = ReactDebugCurrentFrame_1,
691
927
  getStackAddendum = _require.getStackAddendum;
@@ -808,7 +1044,7 @@ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext)
808
1044
  {
809
1045
  // Warn about using Maps as children
810
1046
  if (iteratorFn === children.entries) {
811
- warning$1(didWarnAboutMaps, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.%s', getStackAddendum());
1047
+ warning$2(didWarnAboutMaps, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.%s', getStackAddendum());
812
1048
  didWarnAboutMaps = true;
813
1049
  }
814
1050
  }
@@ -827,7 +1063,7 @@ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext)
827
1063
  addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + getStackAddendum();
828
1064
  }
829
1065
  var childrenString = '' + children;
830
- invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum);
1066
+ invariant_1(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum);
831
1067
  }
832
1068
  }
833
1069
 
@@ -913,7 +1149,7 @@ function mapSingleChildIntoContext(bookKeeping, child, childKey) {
913
1149
 
914
1150
  var mappedChild = func.call(context, child, bookKeeping.count++);
915
1151
  if (Array.isArray(mappedChild)) {
916
- mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, emptyFunction.thatReturnsArgument);
1152
+ mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, emptyFunction_1.thatReturnsArgument);
917
1153
  } else if (mappedChild != null) {
918
1154
  if (ReactElement_1.isValidElement(mappedChild)) {
919
1155
  mappedChild = ReactElement_1.cloneAndReplaceKey(mappedChild,
@@ -967,7 +1203,7 @@ function mapChildren(children, func, context) {
967
1203
  * @return {number} The number of children.
968
1204
  */
969
1205
  function countChildren(children, context) {
970
- return traverseAllChildren(children, emptyFunction.thatReturnsNull, null);
1206
+ return traverseAllChildren(children, emptyFunction_1.thatReturnsNull, null);
971
1207
  }
972
1208
 
973
1209
  /**
@@ -978,7 +1214,7 @@ function countChildren(children, context) {
978
1214
  */
979
1215
  function toArray(children) {
980
1216
  var result = [];
981
- mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction.thatReturnsArgument);
1217
+ mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction_1.thatReturnsArgument);
982
1218
  return result;
983
1219
  }
984
1220
 
@@ -1017,12 +1253,74 @@ var ReactVersion = '16.0.0';
1017
1253
  * structure.
1018
1254
  */
1019
1255
  function onlyChild(children) {
1020
- !ReactElement_1.isValidElement(children) ? invariant(false, 'React.Children.only expected to receive a single React element child.') : void 0;
1256
+ !ReactElement_1.isValidElement(children) ? invariant_1(false, 'React.Children.only expected to receive a single React element child.') : void 0;
1021
1257
  return children;
1022
1258
  }
1023
1259
 
1024
1260
  var onlyChild_1 = onlyChild;
1025
1261
 
1262
+ /**
1263
+ * Copyright (c) 2013-present, Facebook, Inc.
1264
+ *
1265
+ * This source code is licensed under the MIT license found in the
1266
+ * LICENSE file in the root directory of this source tree.
1267
+ */
1268
+
1269
+ var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
1270
+
1271
+ var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
1272
+
1273
+ {
1274
+ var invariant$2 = invariant_1;
1275
+ var warning$5 = warning_1;
1276
+ var ReactPropTypesSecret = ReactPropTypesSecret_1;
1277
+ var loggedTypeFailures = {};
1278
+ }
1279
+
1280
+ /**
1281
+ * Assert that the values match with the type specs.
1282
+ * Error messages are memorized and will only be shown once.
1283
+ *
1284
+ * @param {object} typeSpecs Map of name to a ReactPropType
1285
+ * @param {object} values Runtime values that need to be type-checked
1286
+ * @param {string} location e.g. "prop", "context", "child context"
1287
+ * @param {string} componentName Name of the component for error messages.
1288
+ * @param {?Function} getStack Returns the component stack.
1289
+ * @private
1290
+ */
1291
+ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
1292
+ {
1293
+ for (var typeSpecName in typeSpecs) {
1294
+ if (typeSpecs.hasOwnProperty(typeSpecName)) {
1295
+ var error;
1296
+ // Prop type validation may throw. In case they do, we don't want to
1297
+ // fail the render phase where it didn't fail before. So we log it.
1298
+ // After these have been cleaned up, we'll let them throw.
1299
+ try {
1300
+ // This is intentionally an invariant that gets caught. It's the same
1301
+ // behavior as without this statement except with a better message.
1302
+ invariant$2(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'the `prop-types` package, but received `%s`.', componentName || 'React class', location, typeSpecName, typeof typeSpecs[typeSpecName]);
1303
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
1304
+ } catch (ex) {
1305
+ error = ex;
1306
+ }
1307
+ warning$5(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error);
1308
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
1309
+ // Only monitor this failure once because there tends to be a lot of the
1310
+ // same error.
1311
+ loggedTypeFailures[error.message] = true;
1312
+
1313
+ var stack = getStack ? getStack() : '';
1314
+
1315
+ warning$5(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');
1316
+ }
1317
+ }
1318
+ }
1319
+ }
1320
+ }
1321
+
1322
+ var checkPropTypes_1 = checkPropTypes$1;
1323
+
1026
1324
  /**
1027
1325
  * Copyright (c) 2016-present, Facebook, Inc.
1028
1326
  *
@@ -1071,10 +1369,10 @@ function getComponentName$1(instanceOrFiber) {
1071
1369
  var getComponentName_1 = getComponentName$1;
1072
1370
 
1073
1371
  {
1074
- var checkPropTypes$1 = checkPropTypes;
1372
+ var checkPropTypes = checkPropTypes_1;
1075
1373
  var lowPriorityWarning$1 = lowPriorityWarning_1;
1076
1374
  var ReactDebugCurrentFrame$1 = ReactDebugCurrentFrame_1;
1077
- var warning$3 = require$$0;
1375
+ var warning$4 = warning_1;
1078
1376
  var describeComponentFrame = describeComponentFrame$1;
1079
1377
  var getComponentName = getComponentName_1;
1080
1378
 
@@ -1180,7 +1478,7 @@ function validateExplicitKey(element, parentType) {
1180
1478
 
1181
1479
  currentlyValidatingElement = element;
1182
1480
  {
1183
- warning$3(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.%s', currentComponentErrorInfo, childOwner, getStackAddendum$1());
1481
+ warning$4(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.%s', currentComponentErrorInfo, childOwner, getStackAddendum$1());
1184
1482
  }
1185
1483
  currentlyValidatingElement = null;
1186
1484
  }
@@ -1244,11 +1542,11 @@ function validatePropTypes(element) {
1244
1542
 
1245
1543
  if (propTypes) {
1246
1544
  currentlyValidatingElement = element;
1247
- checkPropTypes$1(propTypes, element.props, 'prop', name, getStackAddendum$1);
1545
+ checkPropTypes(propTypes, element.props, 'prop', name, getStackAddendum$1);
1248
1546
  currentlyValidatingElement = null;
1249
1547
  }
1250
1548
  if (typeof componentClass.getDefaultProps === 'function') {
1251
- warning$3(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
1549
+ warning$4(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
1252
1550
  }
1253
1551
  }
1254
1552
 
@@ -1272,7 +1570,7 @@ var ReactElementValidator$1 = {
1272
1570
 
1273
1571
  info += ReactDebugCurrentFrame$1.getStackAddendum() || '';
1274
1572
 
1275
- warning$3(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', type == null ? type : typeof type, info);
1573
+ warning$4(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', type == null ? type : typeof type, info);
1276
1574
  }
1277
1575
 
1278
1576
  var element = ReactElement_1.createElement.apply(this, arguments);
@@ -1333,7 +1631,7 @@ var ReactElementValidator$1 = {
1333
1631
  var ReactElementValidator_1 = ReactElementValidator$1;
1334
1632
 
1335
1633
  {
1336
- var warning$4 = require$$0;
1634
+ var warning$6 = warning_1;
1337
1635
  }
1338
1636
 
1339
1637
  function isNative(fn) {
@@ -1475,29 +1773,29 @@ function describeID(id) {
1475
1773
  if (ownerID) {
1476
1774
  ownerName = ReactComponentTreeHook.getDisplayName(ownerID);
1477
1775
  }
1478
- warning$4(element, 'ReactComponentTreeHook: Missing React element for debugID %s when ' + 'building stack', id);
1776
+ warning$6(element, 'ReactComponentTreeHook: Missing React element for debugID %s when ' + 'building stack', id);
1479
1777
  return describeComponentFrame$1(name || '', element && element._source, ownerName || '');
1480
1778
  }
1481
1779
 
1482
1780
  var ReactComponentTreeHook = {
1483
1781
  onSetChildren: function (id, nextChildIDs) {
1484
1782
  var item = getItem(id);
1485
- !item ? invariant(false, 'Item must have been set') : void 0;
1783
+ !item ? invariant_1(false, 'Item must have been set') : void 0;
1486
1784
  item.childIDs = nextChildIDs;
1487
1785
 
1488
1786
  for (var i = 0; i < nextChildIDs.length; i++) {
1489
1787
  var nextChildID = nextChildIDs[i];
1490
1788
  var nextChild = getItem(nextChildID);
1491
- !nextChild ? invariant(false, 'Expected hook events to fire for the child before its parent includes it in onSetChildren().') : void 0;
1492
- !(nextChild.childIDs != null || typeof nextChild.element !== 'object' || nextChild.element == null) ? invariant(false, 'Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren().') : void 0;
1493
- !nextChild.isMounted ? invariant(false, 'Expected onMountComponent() to fire for the child before its parent includes it in onSetChildren().') : void 0;
1789
+ !nextChild ? invariant_1(false, 'Expected hook events to fire for the child before its parent includes it in onSetChildren().') : void 0;
1790
+ !(nextChild.childIDs != null || typeof nextChild.element !== 'object' || nextChild.element == null) ? invariant_1(false, 'Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren().') : void 0;
1791
+ !nextChild.isMounted ? invariant_1(false, 'Expected onMountComponent() to fire for the child before its parent includes it in onSetChildren().') : void 0;
1494
1792
  if (nextChild.parentID == null) {
1495
1793
  nextChild.parentID = id;
1496
1794
  // TODO: This shouldn't be necessary but mounting a new root during in
1497
1795
  // componentWillMount currently causes not-yet-mounted components to
1498
1796
  // be purged from our tree data so their parent id is missing.
1499
1797
  }
1500
- !(nextChild.parentID === id) ? invariant(false, 'Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).', nextChildID, nextChild.parentID, id) : void 0;
1798
+ !(nextChild.parentID === id) ? invariant_1(false, 'Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).', nextChildID, nextChild.parentID, id) : void 0;
1501
1799
  }
1502
1800
  },
1503
1801
  onBeforeMountComponent: function (id, element, parentID) {
@@ -1522,7 +1820,7 @@ var ReactComponentTreeHook = {
1522
1820
  },
1523
1821
  onMountComponent: function (id) {
1524
1822
  var item = getItem(id);
1525
- !item ? invariant(false, 'Item must have been set') : void 0;
1823
+ !item ? invariant_1(false, 'Item must have been set') : void 0;
1526
1824
  item.isMounted = true;
1527
1825
  var isRoot = item.parentID === 0;
1528
1826
  if (isRoot) {
@@ -1574,7 +1872,7 @@ var ReactComponentTreeHook = {
1574
1872
  var info = '';
1575
1873
  var currentOwner = ReactCurrentOwner_1.current;
1576
1874
  if (currentOwner) {
1577
- !(typeof currentOwner.tag !== 'number') ? invariant(false, 'Fiber owners should not show up in Stack stack traces.') : void 0;
1875
+ !(typeof currentOwner.tag !== 'number') ? invariant_1(false, 'Fiber owners should not show up in Stack stack traces.') : void 0;
1578
1876
  if (typeof currentOwner._debugID === 'number') {
1579
1877
  info += ReactComponentTreeHook.getStackAddendumByID(currentOwner._debugID);
1580
1878
  }
@@ -1678,12 +1976,12 @@ var React = {
1678
1976
  __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
1679
1977
  ReactCurrentOwner: ReactCurrentOwner_1,
1680
1978
  // Used by renderers to avoid bundling object-assign twice in UMD bundles:
1681
- assign: objectAssign$1
1979
+ assign: index
1682
1980
  }
1683
1981
  };
1684
1982
 
1685
1983
  {
1686
- objectAssign$1(React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
1984
+ index(React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
1687
1985
  // These should not be included in production.
1688
1986
  ReactComponentTreeHook: ReactComponentTreeHook_1,
1689
1987
  ReactDebugCurrentFrame: ReactDebugCurrentFrame_1
@@ -1692,7 +1990,6 @@ var React = {
1692
1990
 
1693
1991
  var ReactEntry = React;
1694
1992
 
1695
- module.exports = ReactEntry;
1993
+ return ReactEntry;
1696
1994
 
1697
- })();
1698
- }
1995
+ })));