react-rails 1.8.0 → 1.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +11 -0
  3. data/lib/assets/react-source/development-with-addons/react-server.js +8561 -7082
  4. data/lib/assets/react-source/development-with-addons/react.js +14779 -13243
  5. data/lib/assets/react-source/development/react-server.js +5355 -4467
  6. data/lib/assets/react-source/development/react.js +5143 -4221
  7. data/lib/assets/react-source/production-with-addons/react-server.js +6 -6
  8. data/lib/assets/react-source/production-with-addons/react.js +6 -6
  9. data/lib/assets/react-source/production/react-server.js +6 -6
  10. data/lib/assets/react-source/production/react.js +6 -6
  11. data/lib/react/rails/railtie.rb +1 -1
  12. data/lib/react/rails/version.rb +1 -1
  13. metadata +2 -18
  14. data/lib/assets/react-source/development/react-addons-create-fragment.js +0 -1417
  15. data/lib/assets/react-source/development/react-addons-css-transition-group.js +0 -20900
  16. data/lib/assets/react-source/development/react-addons-linked-state-mixin.js +0 -3938
  17. data/lib/assets/react-source/development/react-addons-perf.js +0 -7781
  18. data/lib/assets/react-source/development/react-addons-pure-render-mixin.js +0 -215
  19. data/lib/assets/react-source/development/react-addons-test-utils.js +0 -20650
  20. data/lib/assets/react-source/development/react-addons-transition-group.js +0 -4084
  21. data/lib/assets/react-source/development/react-addons-update.js +0 -460
  22. data/lib/assets/react-source/production/react-addons-create-fragment.js +0 -1
  23. data/lib/assets/react-source/production/react-addons-css-transition-group.js +0 -19
  24. data/lib/assets/react-source/production/react-addons-linked-state-mixin.js +0 -1
  25. data/lib/assets/react-source/production/react-addons-perf.js +0 -15
  26. data/lib/assets/react-source/production/react-addons-pure-render-mixin.js +0 -1
  27. data/lib/assets/react-source/production/react-addons-test-utils.js +0 -19
  28. data/lib/assets/react-source/production/react-addons-transition-group.js +0 -1
  29. data/lib/assets/react-source/production/react-addons-update.js +0 -1
@@ -1,460 +0,0 @@
1
- /******/ (function(modules) { // webpackBootstrap
2
- /******/ // The module cache
3
- /******/ var installedModules = {};
4
-
5
- /******/ // The require function
6
- /******/ function __webpack_require__(moduleId) {
7
-
8
- /******/ // Check if module is in cache
9
- /******/ if(installedModules[moduleId])
10
- /******/ return installedModules[moduleId].exports;
11
-
12
- /******/ // Create a new module (and put it into the cache)
13
- /******/ var module = installedModules[moduleId] = {
14
- /******/ exports: {},
15
- /******/ id: moduleId,
16
- /******/ loaded: false
17
- /******/ };
18
-
19
- /******/ // Execute the module function
20
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21
-
22
- /******/ // Flag the module as loaded
23
- /******/ module.loaded = true;
24
-
25
- /******/ // Return the exports of the module
26
- /******/ return module.exports;
27
- /******/ }
28
-
29
-
30
- /******/ // expose the modules object (__webpack_modules__)
31
- /******/ __webpack_require__.m = modules;
32
-
33
- /******/ // expose the module cache
34
- /******/ __webpack_require__.c = installedModules;
35
-
36
- /******/ // __webpack_public_path__
37
- /******/ __webpack_require__.p = "";
38
-
39
- /******/ // Load entry module and return exports
40
- /******/ return __webpack_require__(0);
41
- /******/ })
42
- /************************************************************************/
43
- /******/ ({
44
-
45
- /***/ 0:
46
- /***/ function(module, exports, __webpack_require__) {
47
-
48
- window.React.addons = window.React.addons || {};
49
- window.React.addons.update = __webpack_require__(186);
50
-
51
-
52
- /***/ },
53
-
54
- /***/ 3:
55
- /***/ function(module, exports) {
56
-
57
- // shim for using process in browser
58
-
59
- var process = module.exports = {};
60
- var queue = [];
61
- var draining = false;
62
- var currentQueue;
63
- var queueIndex = -1;
64
-
65
- function cleanUpNextTick() {
66
- draining = false;
67
- if (currentQueue.length) {
68
- queue = currentQueue.concat(queue);
69
- } else {
70
- queueIndex = -1;
71
- }
72
- if (queue.length) {
73
- drainQueue();
74
- }
75
- }
76
-
77
- function drainQueue() {
78
- if (draining) {
79
- return;
80
- }
81
- var timeout = setTimeout(cleanUpNextTick);
82
- draining = true;
83
-
84
- var len = queue.length;
85
- while(len) {
86
- currentQueue = queue;
87
- queue = [];
88
- while (++queueIndex < len) {
89
- if (currentQueue) {
90
- currentQueue[queueIndex].run();
91
- }
92
- }
93
- queueIndex = -1;
94
- len = queue.length;
95
- }
96
- currentQueue = null;
97
- draining = false;
98
- clearTimeout(timeout);
99
- }
100
-
101
- process.nextTick = function (fun) {
102
- var args = new Array(arguments.length - 1);
103
- if (arguments.length > 1) {
104
- for (var i = 1; i < arguments.length; i++) {
105
- args[i - 1] = arguments[i];
106
- }
107
- }
108
- queue.push(new Item(fun, args));
109
- if (queue.length === 1 && !draining) {
110
- setTimeout(drainQueue, 0);
111
- }
112
- };
113
-
114
- // v8 likes predictible objects
115
- function Item(fun, array) {
116
- this.fun = fun;
117
- this.array = array;
118
- }
119
- Item.prototype.run = function () {
120
- this.fun.apply(null, this.array);
121
- };
122
- process.title = 'browser';
123
- process.browser = true;
124
- process.env = {};
125
- process.argv = [];
126
- process.version = ''; // empty string to avoid regexp issues
127
- process.versions = {};
128
-
129
- function noop() {}
130
-
131
- process.on = noop;
132
- process.addListener = noop;
133
- process.once = noop;
134
- process.off = noop;
135
- process.removeListener = noop;
136
- process.removeAllListeners = noop;
137
- process.emit = noop;
138
-
139
- process.binding = function (name) {
140
- throw new Error('process.binding is not supported');
141
- };
142
-
143
- process.cwd = function () { return '/' };
144
- process.chdir = function (dir) {
145
- throw new Error('process.chdir is not supported');
146
- };
147
- process.umask = function() { return 0; };
148
-
149
-
150
- /***/ },
151
-
152
- /***/ 6:
153
- /***/ function(module, exports, __webpack_require__) {
154
-
155
- /* WEBPACK VAR INJECTION */(function(process) {/**
156
- * Copyright (c) 2013-present, Facebook, Inc.
157
- * All rights reserved.
158
- *
159
- * This source code is licensed under the BSD-style license found in the
160
- * LICENSE file in the root directory of this source tree. An additional grant
161
- * of patent rights can be found in the PATENTS file in the same directory.
162
- *
163
- */
164
-
165
- 'use strict';
166
-
167
- /**
168
- * Use invariant() to assert state which your program assumes to be true.
169
- *
170
- * Provide sprintf-style format (only %s is supported) and arguments
171
- * to provide information about what broke and what you were
172
- * expecting.
173
- *
174
- * The invariant message will be stripped in production, but the invariant
175
- * will remain to ensure logic does not differ in production.
176
- */
177
-
178
- function invariant(condition, format, a, b, c, d, e, f) {
179
- if (process.env.NODE_ENV !== 'production') {
180
- if (format === undefined) {
181
- throw new Error('invariant requires an error message argument');
182
- }
183
- }
184
-
185
- if (!condition) {
186
- var error;
187
- if (format === undefined) {
188
- error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
189
- } else {
190
- var args = [a, b, c, d, e, f];
191
- var argIndex = 0;
192
- error = new Error(format.replace(/%s/g, function () {
193
- return args[argIndex++];
194
- }));
195
- error.name = 'Invariant Violation';
196
- }
197
-
198
- error.framesToPop = 1; // we don't care about invariant's own frame
199
- throw error;
200
- }
201
- }
202
-
203
- module.exports = invariant;
204
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3)))
205
-
206
- /***/ },
207
-
208
- /***/ 8:
209
- /***/ function(module, exports) {
210
-
211
- 'use strict';
212
- /* eslint-disable no-unused-vars */
213
- var hasOwnProperty = Object.prototype.hasOwnProperty;
214
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
215
-
216
- function toObject(val) {
217
- if (val === null || val === undefined) {
218
- throw new TypeError('Object.assign cannot be called with null or undefined');
219
- }
220
-
221
- return Object(val);
222
- }
223
-
224
- function shouldUseNative() {
225
- try {
226
- if (!Object.assign) {
227
- return false;
228
- }
229
-
230
- // Detect buggy property enumeration order in older V8 versions.
231
-
232
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
233
- var test1 = new String('abc'); // eslint-disable-line
234
- test1[5] = 'de';
235
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
236
- return false;
237
- }
238
-
239
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
240
- var test2 = {};
241
- for (var i = 0; i < 10; i++) {
242
- test2['_' + String.fromCharCode(i)] = i;
243
- }
244
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
245
- return test2[n];
246
- });
247
- if (order2.join('') !== '0123456789') {
248
- return false;
249
- }
250
-
251
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
252
- var test3 = {};
253
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
254
- test3[letter] = letter;
255
- });
256
- if (Object.keys(Object.assign({}, test3)).join('') !==
257
- 'abcdefghijklmnopqrst') {
258
- return false;
259
- }
260
-
261
- return true;
262
- } catch (e) {
263
- // We don't expect any of the above to throw, but better to be safe.
264
- return false;
265
- }
266
- }
267
-
268
- module.exports = shouldUseNative() ? Object.assign : function (target, source) {
269
- var from;
270
- var to = toObject(target);
271
- var symbols;
272
-
273
- for (var s = 1; s < arguments.length; s++) {
274
- from = Object(arguments[s]);
275
-
276
- for (var key in from) {
277
- if (hasOwnProperty.call(from, key)) {
278
- to[key] = from[key];
279
- }
280
- }
281
-
282
- if (Object.getOwnPropertySymbols) {
283
- symbols = Object.getOwnPropertySymbols(from);
284
- for (var i = 0; i < symbols.length; i++) {
285
- if (propIsEnumerable.call(from, symbols[i])) {
286
- to[symbols[i]] = from[symbols[i]];
287
- }
288
- }
289
- }
290
- }
291
-
292
- return to;
293
- };
294
-
295
-
296
- /***/ },
297
-
298
- /***/ 29:
299
- /***/ function(module, exports) {
300
-
301
- "use strict";
302
-
303
- /**
304
- * Copyright (c) 2013-present, Facebook, Inc.
305
- * All rights reserved.
306
- *
307
- * This source code is licensed under the BSD-style license found in the
308
- * LICENSE file in the root directory of this source tree. An additional grant
309
- * of patent rights can be found in the PATENTS file in the same directory.
310
- *
311
- */
312
-
313
- /**
314
- * Allows extraction of a minified key. Let's the build system minify keys
315
- * without losing the ability to dynamically use key strings as values
316
- * themselves. Pass in an object with a single key/val pair and it will return
317
- * you the string key of that single record. Suppose you want to grab the
318
- * value for a key 'className' inside of an object. Key/val minification may
319
- * have aliased that key to be 'xa12'. keyOf({className: null}) will return
320
- * 'xa12' in that case. Resolve keys you want to use once at startup time, then
321
- * reuse those resolutions.
322
- */
323
- var keyOf = function (oneKeyObj) {
324
- var key;
325
- for (key in oneKeyObj) {
326
- if (!oneKeyObj.hasOwnProperty(key)) {
327
- continue;
328
- }
329
- return key;
330
- }
331
- return null;
332
- };
333
-
334
- module.exports = keyOf;
335
-
336
- /***/ },
337
-
338
- /***/ 186:
339
- /***/ function(module, exports, __webpack_require__) {
340
-
341
- module.exports = __webpack_require__(187);
342
-
343
- /***/ },
344
-
345
- /***/ 187:
346
- /***/ function(module, exports, __webpack_require__) {
347
-
348
- /* WEBPACK VAR INJECTION */(function(process) {/**
349
- * Copyright 2013-present, Facebook, Inc.
350
- * All rights reserved.
351
- *
352
- * This source code is licensed under the BSD-style license found in the
353
- * LICENSE file in the root directory of this source tree. An additional grant
354
- * of patent rights can be found in the PATENTS file in the same directory.
355
- *
356
- * @providesModule update
357
- */
358
-
359
- /* global hasOwnProperty:true */
360
-
361
- 'use strict';
362
-
363
- var _assign = __webpack_require__(8);
364
-
365
- var keyOf = __webpack_require__(29);
366
- var invariant = __webpack_require__(6);
367
- var hasOwnProperty = {}.hasOwnProperty;
368
-
369
- function shallowCopy(x) {
370
- if (Array.isArray(x)) {
371
- return x.concat();
372
- } else if (x && typeof x === 'object') {
373
- return _assign(new x.constructor(), x);
374
- } else {
375
- return x;
376
- }
377
- }
378
-
379
- var COMMAND_PUSH = keyOf({ $push: null });
380
- var COMMAND_UNSHIFT = keyOf({ $unshift: null });
381
- var COMMAND_SPLICE = keyOf({ $splice: null });
382
- var COMMAND_SET = keyOf({ $set: null });
383
- var COMMAND_MERGE = keyOf({ $merge: null });
384
- var COMMAND_APPLY = keyOf({ $apply: null });
385
-
386
- var ALL_COMMANDS_LIST = [COMMAND_PUSH, COMMAND_UNSHIFT, COMMAND_SPLICE, COMMAND_SET, COMMAND_MERGE, COMMAND_APPLY];
387
-
388
- var ALL_COMMANDS_SET = {};
389
-
390
- ALL_COMMANDS_LIST.forEach(function (command) {
391
- ALL_COMMANDS_SET[command] = true;
392
- });
393
-
394
- function invariantArrayCase(value, spec, command) {
395
- !Array.isArray(value) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'update(): expected target of %s to be an array; got %s.', command, value) : invariant(false) : void 0;
396
- var specValue = spec[command];
397
- !Array.isArray(specValue) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'update(): expected spec of %s to be an array; got %s. ' + 'Did you forget to wrap your parameter in an array?', command, specValue) : invariant(false) : void 0;
398
- }
399
-
400
- function update(value, spec) {
401
- !(typeof spec === 'object') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'update(): You provided a key path to update() that did not contain one ' + 'of %s. Did you forget to include {%s: ...}?', ALL_COMMANDS_LIST.join(', '), COMMAND_SET) : invariant(false) : void 0;
402
-
403
- if (hasOwnProperty.call(spec, COMMAND_SET)) {
404
- !(Object.keys(spec).length === 1) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Cannot have more than one key in an object with %s', COMMAND_SET) : invariant(false) : void 0;
405
-
406
- return spec[COMMAND_SET];
407
- }
408
-
409
- var nextValue = shallowCopy(value);
410
-
411
- if (hasOwnProperty.call(spec, COMMAND_MERGE)) {
412
- var mergeObj = spec[COMMAND_MERGE];
413
- !(mergeObj && typeof mergeObj === 'object') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'update(): %s expects a spec of type \'object\'; got %s', COMMAND_MERGE, mergeObj) : invariant(false) : void 0;
414
- !(nextValue && typeof nextValue === 'object') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'update(): %s expects a target of type \'object\'; got %s', COMMAND_MERGE, nextValue) : invariant(false) : void 0;
415
- _assign(nextValue, spec[COMMAND_MERGE]);
416
- }
417
-
418
- if (hasOwnProperty.call(spec, COMMAND_PUSH)) {
419
- invariantArrayCase(value, spec, COMMAND_PUSH);
420
- spec[COMMAND_PUSH].forEach(function (item) {
421
- nextValue.push(item);
422
- });
423
- }
424
-
425
- if (hasOwnProperty.call(spec, COMMAND_UNSHIFT)) {
426
- invariantArrayCase(value, spec, COMMAND_UNSHIFT);
427
- spec[COMMAND_UNSHIFT].forEach(function (item) {
428
- nextValue.unshift(item);
429
- });
430
- }
431
-
432
- if (hasOwnProperty.call(spec, COMMAND_SPLICE)) {
433
- !Array.isArray(value) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected %s target to be an array; got %s', COMMAND_SPLICE, value) : invariant(false) : void 0;
434
- !Array.isArray(spec[COMMAND_SPLICE]) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'update(): expected spec of %s to be an array of arrays; got %s. ' + 'Did you forget to wrap your parameters in an array?', COMMAND_SPLICE, spec[COMMAND_SPLICE]) : invariant(false) : void 0;
435
- spec[COMMAND_SPLICE].forEach(function (args) {
436
- !Array.isArray(args) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'update(): expected spec of %s to be an array of arrays; got %s. ' + 'Did you forget to wrap your parameters in an array?', COMMAND_SPLICE, spec[COMMAND_SPLICE]) : invariant(false) : void 0;
437
- nextValue.splice.apply(nextValue, args);
438
- });
439
- }
440
-
441
- if (hasOwnProperty.call(spec, COMMAND_APPLY)) {
442
- !(typeof spec[COMMAND_APPLY] === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'update(): expected spec of %s to be a function; got %s.', COMMAND_APPLY, spec[COMMAND_APPLY]) : invariant(false) : void 0;
443
- nextValue = spec[COMMAND_APPLY](nextValue);
444
- }
445
-
446
- for (var k in spec) {
447
- if (!(ALL_COMMANDS_SET.hasOwnProperty(k) && ALL_COMMANDS_SET[k])) {
448
- nextValue[k] = update(value[k], spec[k]);
449
- }
450
- }
451
-
452
- return nextValue;
453
- }
454
-
455
- module.exports = update;
456
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3)))
457
-
458
- /***/ }
459
-
460
- /******/ });