Update website with 0.13.3 builds
(cherry picked from commit 107ce2b80d1f3609b5c684c29c552f8995dfeb2f)
Paul O’Shannessy committed
May 8, 2015 at 16:32 UTC
924328b436eef8ffca463c072c872074fefae52a
3 files changed
+67
-27
docs/downloads/react-0.13.3.zip
Binary files /dev/null and b/docs/downloads/react-0.13.3.zip differ
docs/js/JSXTransformer.js
+1
-1
@@ -1,5 +1,5 @@
1
/**
2
- * JSXTransformer v0.13.2
2
+ * JSXTransformer v0.13.3
3
*/
4
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.JSXTransformer = f()}})(function(){var define,module,exports;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);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.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(_dereq_,module,exports){
5
/**
docs/js/react.js
+66
-26
@@ -1,5 +1,5 @@
1
/**
2
- * React v0.13.2
2
+ * React v0.13.3
3
*/
4
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.React = f()}})(function(){var define,module,exports;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);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.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(_dereq_,module,exports){
5
/**
@@ -112,7 +112,7 @@ if ("production" !== "development") {
112
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
113
console.debug(
114
'Download the React DevTools for a better development experience: ' +
115
- 'http://fb.me/react-devtools'
115
+ 'https://fb.me/react-devtools'
116
);
117
}
118
}
@@ -139,7 +139,7 @@ if ("production" !== "development") {
139
if (!expectedFeatures[i]) {
140
console.error(
141
'One or more ES5 shim/shams expected by React are not available: ' +
142
- 'http://fb.me/react-warning-polyfills'
142
+ 'https://fb.me/react-warning-polyfills'
143
);
144
break;
145
}
@@ -147,7 +147,7 @@ if ("production" !== "development") {
147
}
148
}
149
150
-React.version = '0.13.2';
150
+React.version = '0.13.3';
151
152
module.exports = React;
153
@@ -5818,7 +5818,7 @@ var ReactClass = {
5818
("production" !== "development" ? warning(
5819
this instanceof Constructor,
5820
'Something is calling a React component directly. Use a factory or ' +
5821
- 'JSX instead. See: http://fb.me/react-legacyfactory'
5821
+ 'JSX instead. See: https://fb.me/react-legacyfactory'
5822
) : null);
5823
}
5824
@@ -6028,20 +6028,38 @@ ReactComponent.prototype.forceUpdate = function(callback) {
6028
*/
6029
if ("production" !== "development") {
6030
var deprecatedAPIs = {
6031
- getDOMNode: 'getDOMNode',
6032
- isMounted: 'isMounted',
6033
- replaceProps: 'replaceProps',
6034
- replaceState: 'replaceState',
6035
- setProps: 'setProps'
6031
+ getDOMNode: [
6032
+ 'getDOMNode',
6033
+ 'Use React.findDOMNode(component) instead.'
6034
+ ],
6035
+ isMounted: [
6036
+ 'isMounted',
6037
+ 'Instead, make sure to clean up subscriptions and pending requests in ' +
6038
+ 'componentWillUnmount to prevent memory leaks.'
6039
+ ],
6040
+ replaceProps: [
6041
+ 'replaceProps',
6042
+ 'Instead call React.render again at the top level.'
6043
+ ],
6044
+ replaceState: [
6045
+ 'replaceState',
6046
+ 'Refactor your code to use setState instead (see ' +
6047
+ 'https://github.com/facebook/react/issues/3236).'
6048
+ ],
6049
+ setProps: [
6050
+ 'setProps',
6051
+ 'Instead call React.render again at the top level.'
6052
+ ]
6053
};
6037
- var defineDeprecationWarning = function(methodName, displayName) {
6054
+ var defineDeprecationWarning = function(methodName, info) {
6055
try {
6056
Object.defineProperty(ReactComponent.prototype, methodName, {
6057
get: function() {
6058
("production" !== "development" ? warning(
6059
false,
6043
- '%s(...) is deprecated in plain JavaScript React classes.',
6044
- displayName
6060
+ '%s(...) is deprecated in plain JavaScript React classes. %s',
6061
+ info[0],
6062
+ info[1]
6063
) : null);
6064
return undefined;
6065
}
@@ -6386,6 +6404,7 @@ var ReactCompositeComponentMixin = {
6404
this._pendingReplaceState = false;
6405
this._pendingForceUpdate = false;
6406
6407
+ var childContext;
6408
var renderedElement;
6409
6410
var previouslyMounting = ReactLifeCycle.currentlyMountingInstance;
@@ -6400,7 +6419,8 @@ var ReactCompositeComponentMixin = {
6419
}
6420
}
6421
6403
- renderedElement = this._renderValidatedComponent();
6422
+ childContext = this._getValidatedChildContext(context);
6423
+ renderedElement = this._renderValidatedComponent(childContext);
6424
} finally {
6425
ReactLifeCycle.currentlyMountingInstance = previouslyMounting;
6426
}
@@ -6414,7 +6434,7 @@ var ReactCompositeComponentMixin = {
6434
this._renderedComponent,
6435
rootID,
6436
transaction,
6417
- this._processChildContext(context)
6437
+ this._mergeChildContext(context, childContext)
6438
);
6439
if (inst.componentDidMount) {
6440
transaction.getReactMountReady().enqueue(inst.componentDidMount, inst);
@@ -6544,7 +6564,7 @@ var ReactCompositeComponentMixin = {
6564
* @return {object}
6565
* @private
6566
*/
6547
- _processChildContext: function(currentContext) {
6567
+ _getValidatedChildContext: function(currentContext) {
6568
var inst = this._instance;
6569
var childContext = inst.getChildContext && inst.getChildContext();
6570
if (childContext) {
@@ -6569,6 +6589,13 @@ var ReactCompositeComponentMixin = {
6589
name
6590
) : invariant(name in inst.constructor.childContextTypes));
6591
}
6592
+ return childContext;
6593
+ }
6594
+ return null;
6595
+ },
6596
+
6597
+ _mergeChildContext: function(currentContext, childContext) {
6598
+ if (childContext) {
6599
return assign({}, currentContext, childContext);
6600
}
6601
return currentContext;
@@ -6828,6 +6855,10 @@ var ReactCompositeComponentMixin = {
6855
return inst.state;
6856
}
6857
6858
+ if (replace && queue.length === 1) {
6859
+ return queue[0];
6860
+ }
6861
+
6862
var nextState = assign({}, replace ? queue[0] : inst.state);
6863
for (var i = replace ? 1 : 0; i < queue.length; i++) {
6864
var partial = queue[i];
@@ -6897,13 +6928,14 @@ var ReactCompositeComponentMixin = {
6928
_updateRenderedComponent: function(transaction, context) {
6929
var prevComponentInstance = this._renderedComponent;
6930
var prevRenderedElement = prevComponentInstance._currentElement;
6900
- var nextRenderedElement = this._renderValidatedComponent();
6931
+ var childContext = this._getValidatedChildContext();
6932
+ var nextRenderedElement = this._renderValidatedComponent(childContext);
6933
if (shouldUpdateReactComponent(prevRenderedElement, nextRenderedElement)) {
6934
ReactReconciler.receiveComponent(
6935
prevComponentInstance,
6936
nextRenderedElement,
6937
transaction,
6906
- this._processChildContext(context)
6938
+ this._mergeChildContext(context, childContext)
6939
);
6940
} else {
6941
// These two IDs are actually the same! But nothing should rely on that.
@@ -6919,7 +6951,7 @@ var ReactCompositeComponentMixin = {
6951
this._renderedComponent,
6952
thisID,
6953
transaction,
6922
- this._processChildContext(context)
6954
+ this._mergeChildContext(context, childContext)
6955
);
6956
this._replaceNodeWithMarkupByID(prevComponentID, nextMarkup);
6957
}
@@ -6957,11 +6989,12 @@ var ReactCompositeComponentMixin = {
6989
/**
6990
* @private
6991
*/
6960
- _renderValidatedComponent: function() {
6992
+ _renderValidatedComponent: function(childContext) {
6993
var renderedComponent;
6994
var previousContext = ReactContext.current;
6963
- ReactContext.current = this._processChildContext(
6964
- this._currentElement._context
6995
+ ReactContext.current = this._mergeChildContext(
6996
+ this._currentElement._context,
6997
+ childContext
6998
);
6999
ReactCurrentOwner.current = this;
7000
try {
@@ -7326,6 +7359,7 @@ var ReactDOM = mapObject({
7359
7360
// SVG
7361
circle: 'circle',
7362
+ clipPath: 'clipPath',
7363
defs: 'defs',
7364
ellipse: 'ellipse',
7365
g: 'g',
@@ -7475,11 +7509,13 @@ function assertValidProps(props) {
7509
'Can only set one of `children` or `props.dangerouslySetInnerHTML`.'
7510
) : invariant(props.children == null));
7511
("production" !== "development" ? invariant(
7478
- props.dangerouslySetInnerHTML.__html != null,
7512
+ typeof props.dangerouslySetInnerHTML === 'object' &&
7513
+ '__html' in props.dangerouslySetInnerHTML,
7514
'`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. ' +
7480
- 'Please visit http://fb.me/react-invariant-dangerously-set-inner-html ' +
7515
+ 'Please visit https://fb.me/react-invariant-dangerously-set-inner-html ' +
7516
'for more information.'
7482
- ) : invariant(props.dangerouslySetInnerHTML.__html != null));
7517
+ ) : invariant(typeof props.dangerouslySetInnerHTML === 'object' &&
7518
+ '__html' in props.dangerouslySetInnerHTML));
7519
}
7520
if ("production" !== "development") {
7521
("production" !== "development" ? warning(
@@ -10271,7 +10307,7 @@ function warnAndMonitorForKeyUse(message, element, parentType) {
10307
10308
("production" !== "development" ? warning(
10309
false,
10274
- message + '%s%s See http://fb.me/react-warning-keys for more information.',
10310
+ message + '%s%s See https://fb.me/react-warning-keys for more information.',
10311
parentOrOwnerAddendum,
10312
childOwnerAddendum
10313
) : null);
@@ -15067,6 +15103,7 @@ var MUST_USE_ATTRIBUTE = DOMProperty.injection.MUST_USE_ATTRIBUTE;
15103
15104
var SVGDOMPropertyConfig = {
15105
Properties: {
15106
+ clipPath: MUST_USE_ATTRIBUTE,
15107
cx: MUST_USE_ATTRIBUTE,
15108
cy: MUST_USE_ATTRIBUTE,
15109
d: MUST_USE_ATTRIBUTE,
@@ -15112,6 +15149,7 @@ var SVGDOMPropertyConfig = {
15149
y: MUST_USE_ATTRIBUTE
15150
},
15151
DOMAttributeNames: {
15152
+ clipPath: 'clip-path',
15153
fillOpacity: 'fill-opacity',
15154
fontFamily: 'font-family',
15155
fontSize: 'font-size',
@@ -17907,6 +17945,7 @@ var shouldWrap = {
17945
// Force wrapping for SVG elements because if they get created inside a <div>,
17946
// they will be initialized in the wrong namespace (and will not display).
17947
'circle': true,
17948
+ 'clipPath': true,
17949
'defs': true,
17950
'ellipse': true,
17951
'g': true,
@@ -17949,6 +17988,7 @@ var markupWrap = {
17988
'th': trWrap,
17989
17990
'circle': svgWrap,
17991
+ 'clipPath': svgWrap,
17992
'defs': svgWrap,
17993
'ellipse': svgWrap,
17994
'g': svgWrap,