react-source 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/build/JSXTransformer.js +1 -1
- data/build/react-with-addons.js +30 -12
- data/build/react-with-addons.min.js +5 -5
- data/build/react.js +27 -10
- data/build/react.min.js +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MjMyZWIyNTJhNjhiOWJlMzI3ZjRhYWZjM2EwOTFiYTEyMGJhZjQzMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NmI1YWJkZTM2ZDk1OTdlM2JlM2NiZGNkNjA4ZTFiOTMwOTkwZjA0MQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODBkMTBiMDE1NDMwNWQ1NWQyZDczZjEyYzBkMjQ1MDEwNDJmMGM0NmNlZmZk
|
10
|
+
ODFlMzA2MGExNzNhOGFiYjRmMmUwZjNkNzNhZWZlODA0YjExMDE0NWFkNWZm
|
11
|
+
Y2ViMTEwMzgxOTcwNWY2MGZjYzg2MjgzODJiNzk1MDlkYjcxYzk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjQyNWZlMWY0YTllZWE4MTA1Y2VhZTA0MzczNTkxMzkxNmE1MzdjMmUwNjI0
|
14
|
+
ZjAzYmEzZTNhNDc2MjNkYjNhYjg2MDYyN2QzOTAwYzdiY2FhOGM2MGU5NGY2
|
15
|
+
M2MyZjU1MmJmYjg5YzI1ZDZkMmUzNWE5YjJlY2JiZGM0NTIxYjE=
|
data/build/JSXTransformer.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* JSXTransformer v0.5.
|
2
|
+
* JSXTransformer v0.5.1
|
3
3
|
*/
|
4
4
|
!function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.JSXTransformer=e():"undefined"!=typeof global?global.JSXTransformer=e():"undefined"!=typeof self&&(self.JSXTransformer=e())}(function(){var define,module,exports;
|
5
5
|
return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
|
data/build/react-with-addons.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* React (with addons) v0.5.
|
2
|
+
* React (with addons) v0.5.1
|
3
3
|
*/
|
4
4
|
!function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.React=e():"undefined"!=typeof global?global.React=e():"undefined"!=typeof self&&(self.React=e())}(function(){var define,module,exports;
|
5
5
|
return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
|
@@ -1725,7 +1725,7 @@ var Danger = {
|
|
1725
1725
|
|
1726
1726
|
invariant(
|
1727
1727
|
resultList.length === markupList.length,
|
1728
|
-
'Danger: Expected markup to render %
|
1728
|
+
'Danger: Expected markup to render %s nodes, but rendered %s.',
|
1729
1729
|
markupList.length,
|
1730
1730
|
resultList.length
|
1731
1731
|
);
|
@@ -1823,7 +1823,7 @@ var DefaultDOMPropertyConfig = {
|
|
1823
1823
|
data: null, // For `<object />` acts as `src`.
|
1824
1824
|
dateTime: MUST_USE_ATTRIBUTE,
|
1825
1825
|
dir: null,
|
1826
|
-
disabled:
|
1826
|
+
disabled: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE,
|
1827
1827
|
draggable: null,
|
1828
1828
|
encType: null,
|
1829
1829
|
form: MUST_USE_ATTRIBUTE,
|
@@ -3456,7 +3456,7 @@ var React = {
|
|
3456
3456
|
|
3457
3457
|
// Version exists only in the open-source version of React, not in Facebook's
|
3458
3458
|
// internal version.
|
3459
|
-
React.version = '0.5.
|
3459
|
+
React.version = '0.5.1';
|
3460
3460
|
|
3461
3461
|
module.exports = React;
|
3462
3462
|
|
@@ -9020,6 +9020,10 @@ var ReactMount = {
|
|
9020
9020
|
unmountComponentFromNode: function(instance, container) {
|
9021
9021
|
instance.unmountComponent();
|
9022
9022
|
|
9023
|
+
if (container.nodeType === DOC_NODE_TYPE) {
|
9024
|
+
container = container.documentElement;
|
9025
|
+
}
|
9026
|
+
|
9023
9027
|
// http://jsperf.com/emptying-a-node
|
9024
9028
|
while (container.lastChild) {
|
9025
9029
|
container.removeChild(container.lastChild);
|
@@ -9182,6 +9186,8 @@ var ReactMount = {
|
|
9182
9186
|
|
9183
9187
|
ATTR_NAME: ATTR_NAME,
|
9184
9188
|
|
9189
|
+
getReactRootID: getReactRootID,
|
9190
|
+
|
9185
9191
|
getID: getID,
|
9186
9192
|
|
9187
9193
|
setID: setID,
|
@@ -10769,9 +10775,10 @@ function detectEvents() {
|
|
10769
10775
|
var testEl = document.createElement('div');
|
10770
10776
|
var style = testEl.style;
|
10771
10777
|
for (var baseEventName in EVENT_NAME_MAP) {
|
10772
|
-
|
10778
|
+
var baseEvents = EVENT_NAME_MAP[baseEventName];
|
10779
|
+
for (var styleName in baseEvents) {
|
10773
10780
|
if (styleName in style) {
|
10774
|
-
endEvents.push(
|
10781
|
+
endEvents.push(baseEvents[styleName]);
|
10775
10782
|
break;
|
10776
10783
|
}
|
10777
10784
|
}
|
@@ -11418,6 +11425,7 @@ var EventConstants = require("./EventConstants");
|
|
11418
11425
|
var EventPluginHub = require("./EventPluginHub");
|
11419
11426
|
var EventPropagators = require("./EventPropagators");
|
11420
11427
|
var ExecutionEnvironment = require("./ExecutionEnvironment");
|
11428
|
+
var ReactInputSelection = require("./ReactInputSelection");
|
11421
11429
|
var SyntheticEvent = require("./SyntheticEvent");
|
11422
11430
|
|
11423
11431
|
var getActiveElement = require("./getActiveElement");
|
@@ -11461,7 +11469,8 @@ var mouseDown = false;
|
|
11461
11469
|
* @param {object}
|
11462
11470
|
*/
|
11463
11471
|
function getSelection(node) {
|
11464
|
-
if ('selectionStart' in node
|
11472
|
+
if ('selectionStart' in node &&
|
11473
|
+
ReactInputSelection.hasSelectionCapabilities(node)) {
|
11465
11474
|
return {
|
11466
11475
|
start: node.selectionStart,
|
11467
11476
|
end: node.selectionEnd
|
@@ -11576,14 +11585,12 @@ var SelectEventPlugin = {
|
|
11576
11585
|
activeElement = topLevelTarget;
|
11577
11586
|
activeElementID = topLevelTargetID;
|
11578
11587
|
lastSelection = null;
|
11579
|
-
mouseDown = false;
|
11580
11588
|
}
|
11581
11589
|
break;
|
11582
11590
|
case topLevelTypes.topBlur:
|
11583
11591
|
activeElement = null;
|
11584
11592
|
activeElementID = null;
|
11585
11593
|
lastSelection = null;
|
11586
|
-
mouseDown = false;
|
11587
11594
|
break;
|
11588
11595
|
|
11589
11596
|
// Don't fire the event while the user is dragging. This matches the
|
@@ -11614,7 +11621,7 @@ var SelectEventPlugin = {
|
|
11614
11621
|
|
11615
11622
|
module.exports = SelectEventPlugin;
|
11616
11623
|
|
11617
|
-
},{"./EventConstants":15,"./EventPluginHub":17,"./EventPropagators":20,"./ExecutionEnvironment":21,"./SyntheticEvent":75,"./getActiveElement":99,"./isEventSupported":107,"./isTextInputElement":109,"./keyOf":113,"./shallowEqual":124}],72:[function(require,module,exports){
|
11624
|
+
},{"./EventConstants":15,"./EventPluginHub":17,"./EventPropagators":20,"./ExecutionEnvironment":21,"./ReactInputSelection":49,"./SyntheticEvent":75,"./getActiveElement":99,"./isEventSupported":107,"./isTextInputElement":109,"./keyOf":113,"./shallowEqual":124}],72:[function(require,module,exports){
|
11618
11625
|
/**
|
11619
11626
|
* Copyright 2013 Facebook, Inc.
|
11620
11627
|
*
|
@@ -14043,12 +14050,23 @@ module.exports = getNodeForCharacterOffset;
|
|
14043
14050
|
|
14044
14051
|
"use strict";
|
14045
14052
|
|
14053
|
+
var DOC_NODE_TYPE = 9;
|
14054
|
+
|
14046
14055
|
/**
|
14047
|
-
* @param {DOMElement} container DOM element that may contain
|
14056
|
+
* @param {DOMElement|DOMDocument} container DOM element that may contain
|
14057
|
+
* a React component
|
14048
14058
|
* @return {?*} DOM element that may have the reactRoot ID, or null.
|
14049
14059
|
*/
|
14050
14060
|
function getReactRootElementInContainer(container) {
|
14051
|
-
|
14061
|
+
if (!container) {
|
14062
|
+
return null;
|
14063
|
+
}
|
14064
|
+
|
14065
|
+
if (container.nodeType === DOC_NODE_TYPE) {
|
14066
|
+
return container.documentElement;
|
14067
|
+
} else {
|
14068
|
+
return container.firstChild;
|
14069
|
+
}
|
14052
14070
|
}
|
14053
14071
|
|
14054
14072
|
module.exports = getReactRootElementInContainer;
|