react 16.0.0-rc.1 → 16.1.0-beta
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.
- package/LICENSE +16 -26
- package/README.md +1 -1
- package/cjs/react.development.js +406 -644
- package/cjs/react.production.min.js +21 -12
- package/index.js +0 -44
- package/package.json +6 -7
- package/umd/react.development.js +544 -765
- package/umd/react.production.min.js +22 -13
- package/PATENTS +0 -33
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
/*
|
|
2
|
+
React v16.1.0-beta
|
|
3
|
+
react.production.min.js
|
|
4
|
+
|
|
5
|
+
Copyright (c) 2013-present, Facebook, Inc.
|
|
6
|
+
|
|
7
|
+
This source code is licensed under the MIT license found in the
|
|
8
|
+
LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
'use strict';(function(q,k){"object"===typeof exports&&"undefined"!==typeof module?module.exports=k():"function"===typeof define&&define.amd?define(k):q.React=k()})(this,function(){function q(a){for(var b=arguments.length-1,c="Minified React error #"+a+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant\x3d"+a,e=0;e<b;e++)c+="\x26args[]\x3d"+encodeURIComponent(arguments[e+1]);b=Error(c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");
|
|
11
|
+
b.name="Invariant Violation";b.framesToPop=1;throw b;}function k(a){return function(){return a}}function n(a,b,c){this.props=a;this.context=b;this.refs=w;this.updater=c||x}function y(a,b,c){this.props=a;this.context=b;this.refs=w;this.updater=c||x}function z(){}function A(a,b,c){this.props=a;this.context=b;this.refs=w;this.updater=c||x}function B(a){return"object"===typeof a&&null!==a&&a.$$typeof===G}function P(a){var b={"\x3d":"\x3d0",":":"\x3d2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}
|
|
12
|
+
function H(a,b,c,e){if(t.length){var f=t.pop();f.result=a;f.keyPrefix=b;f.func=c;f.context=e;f.count=0;return f}return{result:a,keyPrefix:b,func:c,context:e,count:0}}function I(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>t.length&&t.push(a)}function r(a,b,c,e){var f=typeof a;if("undefined"===f||"boolean"===f)a=null;if(null===a||"string"===f||"number"===f||"object"===f&&a.$$typeof===Q||"object"===f&&a.$$typeof===R)return c(e,a,""===b?"."+C(a,0):b),1;var d=0;b=""===b?".":
|
|
13
|
+
b+":";if(Array.isArray(a))for(var g=0;g<a.length;g++){f=a[g];var h=b+C(f,g);d+=r(f,h,c,e)}else if(h=J&&a[J]||a["@@iterator"],"function"===typeof h)for(a=h.call(a),g=0;!(f=a.next()).done;)f=f.value,h=b+C(f,g++),d+=r(f,h,c,e);else"object"===f&&(c=""+a,q("31","[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return d}function C(a,b){return"object"===typeof a&&null!==a&&null!=a.key?P(a.key):b.toString(36)}function S(a,b,c){a.func.call(a.context,b,a.count++)}function T(a,
|
|
14
|
+
b,c){var e=a.result,f=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?D(a,e,c,E.thatReturnsArgument):null!=a&&(B(a)&&(b=f+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(K,"$\x26/")+"/")+c,a=u(a.type,b,a.ref,a._self,a._source,a._owner,a.props)),e.push(a))}function D(a,b,c,e,f){var d="";null!=c&&(d=(""+c).replace(K,"$\x26/")+"/");b=H(b,d,e,f);null==a||r(a,"",T,b);I(b)}var L=Object.getOwnPropertySymbols,U=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,v=function(){try{if(!Object.assign)return!1;
|
|
15
|
+
var a=new String("abc");a[5]="de";if("5"===Object.getOwnPropertyNames(a)[0])return!1;var b={};for(a=0;10>a;a++)b["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1;var c={};"abcdefghijklmnopqrst".split("").forEach(function(a){c[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},c)).join("")?!1:!0}catch(e){return!1}}()?Object.assign:function(a,b){if(null===a||void 0===a)throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
16
|
+
var c=Object(a);for(var e,f=1;f<arguments.length;f++){var d=Object(arguments[f]);for(var g in d)U.call(d,g)&&(c[g]=d[g]);if(L){e=L(d);for(var h=0;h<e.length;h++)V.call(d,e[h])&&(c[e[h]]=d[e[h]])}}return c},w={},d=function(){};d.thatReturns=k;d.thatReturnsFalse=k(!1);d.thatReturnsTrue=k(!0);d.thatReturnsNull=k(null);d.thatReturnsThis=function(){return this};d.thatReturnsArgument=function(a){return a};var E=d,x={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,
|
|
17
|
+
b,c,e){},enqueueSetState:function(a,b,c,e){}};n.prototype.isReactComponent={};n.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?q("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};n.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};z.prototype=n.prototype;d=y.prototype=new z;d.constructor=y;v(d,n.prototype);d.isPureReactComponent=!0;d=A.prototype=new z;d.constructor=A;v(d,n.prototype);d.unstable_isAsyncReactComponent=
|
|
18
|
+
!0;d.render=function(){return this.props.children};var F={current:null},M=Object.prototype.hasOwnProperty,G="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,N={key:!0,ref:!0,__self:!0,__source:!0},u=function(a,b,c,e,f,d,g){return{$$typeof:G,type:a,key:b,ref:c,props:g,_owner:d}},J="function"===typeof Symbol&&Symbol.iterator,Q="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,R="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.portal")||
|
|
19
|
+
60106,K=/\/+/g,t=[];"function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.fragment");d={Children:{map:function(a,b,c){if(null==a)return a;var e=[];D(a,e,null,b,c);return e},forEach:function(a,b,c){if(null==a)return a;b=H(null,null,b,c);null==a||r(a,"",S,b);I(b)},count:function(a,b){return null==a?0:r(a,"",E.thatReturnsNull,null)},toArray:function(a){var b=[];D(a,b,null,E.thatReturnsArgument);return b},only:function(a){B(a)?void 0:q("143");return a}},Component:n,PureComponent:y,unstable_AsyncComponent:A,
|
|
20
|
+
createElement:function(a,b,c){var e,f={},d=null,g=null,h=null,k=null;if(null!=b)for(e in void 0!==b.ref&&(g=b.ref),void 0!==b.key&&(d=""+b.key),h=void 0===b.__self?null:b.__self,k=void 0===b.__source?null:b.__source,b)M.call(b,e)&&!N.hasOwnProperty(e)&&(f[e]=b[e]);var m=arguments.length-2;if(1===m)f.children=c;else if(1<m){for(var l=Array(m),p=0;p<m;p++)l[p]=arguments[p+2];f.children=l}if(a&&a.defaultProps)for(e in m=a.defaultProps,m)void 0===f[e]&&(f[e]=m[e]);return u(a,d,g,h,k,F.current,f)},cloneElement:function(a,
|
|
21
|
+
b,c){var e=v({},a.props),d=a.key,k=a.ref,g=a._self,h=a._source,n=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,n=F.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var m=a.type.defaultProps;for(l in b)M.call(b,l)&&!N.hasOwnProperty(l)&&(e[l]=void 0===b[l]&&void 0!==m?m[l]:b[l])}var l=arguments.length-2;if(1===l)e.children=c;else if(1<l){m=Array(l);for(var p=0;p<l;p++)m[p]=arguments[p+2];e.children=m}return u(a.type,d,k,g,h,n,e)},createFactory:function(a){var b=u.createElement.bind(null,
|
|
22
|
+
a);b.type=a;return b},isValidElement:B,version:"16.1.0-beta",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:F,assign:v}};var O=Object.freeze({default:d});d=O&&d||O;return d["default"]?d["default"]:d});
|
package/PATENTS
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
Additional Grant of Patent Rights Version 2
|
|
2
|
-
|
|
3
|
-
"Software" means the React software distributed by Facebook, Inc.
|
|
4
|
-
|
|
5
|
-
Facebook, Inc. ("Facebook") hereby grants to each recipient of the Software
|
|
6
|
-
("you") a perpetual, worldwide, royalty-free, non-exclusive, irrevocable
|
|
7
|
-
(subject to the termination provision below) license under any Necessary
|
|
8
|
-
Claims, to make, have made, use, sell, offer to sell, import, and otherwise
|
|
9
|
-
transfer the Software. For avoidance of doubt, no license is granted under
|
|
10
|
-
Facebook's rights in any patent claims that are infringed by (i) modifications
|
|
11
|
-
to the Software made by you or any third party or (ii) the Software in
|
|
12
|
-
combination with any software or other technology.
|
|
13
|
-
|
|
14
|
-
The license granted hereunder will terminate, automatically and without notice,
|
|
15
|
-
if you (or any of your subsidiaries, corporate affiliates or agents) initiate
|
|
16
|
-
directly or indirectly, or take a direct financial interest in, any Patent
|
|
17
|
-
Assertion: (i) against Facebook or any of its subsidiaries or corporate
|
|
18
|
-
affiliates, (ii) against any party if such Patent Assertion arises in whole or
|
|
19
|
-
in part from any software, technology, product or service of Facebook or any of
|
|
20
|
-
its subsidiaries or corporate affiliates, or (iii) against any party relating
|
|
21
|
-
to the Software. Notwithstanding the foregoing, if Facebook or any of its
|
|
22
|
-
subsidiaries or corporate affiliates files a lawsuit alleging patent
|
|
23
|
-
infringement against you in the first instance, and you respond by filing a
|
|
24
|
-
patent infringement counterclaim in that lawsuit against that party that is
|
|
25
|
-
unrelated to the Software, the license granted hereunder will not terminate
|
|
26
|
-
under section (i) of this paragraph due to such counterclaim.
|
|
27
|
-
|
|
28
|
-
A "Necessary Claim" is a claim of a patent owned by Facebook that is
|
|
29
|
-
necessarily infringed by the Software standing alone.
|
|
30
|
-
|
|
31
|
-
A "Patent Assertion" is any lawsuit or other action alleging direct, indirect,
|
|
32
|
-
or contributory infringement or inducement to infringe any patent, including a
|
|
33
|
-
cross-claim or counterclaim.
|