@openedx/frontend-build 14.0.9 → 14.0.11
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/package.json +11 -5
- package/.eslintignore +0 -5
- package/.eslintrc.js +0 -10
- package/.github/workflows/add-depr-ticket-to-depr-board.yml +0 -19
- package/.github/workflows/add-remove-label-on-comment.yml +0 -20
- package/.github/workflows/ci.yml +0 -30
- package/.github/workflows/commitlint.yml +0 -10
- package/.github/workflows/lockfileversion-check.yml +0 -13
- package/.github/workflows/release.yml +0 -34
- package/.github/workflows/self-assign-issue.yml +0 -12
- package/.github/workflows/sync-master-alpha.yml +0 -35
- package/.nvmrc +0 -1
- package/coverage/clover.xml +0 -6
- package/coverage/coverage-final.json +0 -1
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -101
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov.info +0 -0
- package/docs/0001-non-usage-of-gatsby.rst +0 -37
- package/docs/0002-js-environment-config.md +0 -47
- package/docs/0003-fedx-scripts-serve.md +0 -37
- package/example/.env +0 -0
- package/example/.env.development +0 -3
- package/example/.env.test +0 -2
- package/example/.eslintignore +0 -5
- package/example/.eslintrc.js +0 -3
- package/example/dist/1382e1cbf8d733d7301cdd212192bfea.jpg +0 -0
- package/example/dist/652.70be34739115e11aaeb3.js +0 -3
- package/example/dist/652.70be34739115e11aaeb3.js.LICENSE.txt +0 -41
- package/example/dist/652.70be34739115e11aaeb3.js.map +0 -1
- package/example/dist/app.09a2e8d2732091b5c03c.css +0 -3
- package/example/dist/app.09a2e8d2732091b5c03c.css.map +0 -1
- package/example/dist/app.09a2e8d2732091b5c03c.js +0 -2
- package/example/dist/app.09a2e8d2732091b5c03c.js.map +0 -1
- package/example/dist/babel/App.js +0 -94
- package/example/dist/babel/App.js.map +0 -1
- package/example/dist/babel/App.test.jsx +0 -11
- package/example/dist/babel/Image.tsx +0 -16
- package/example/dist/babel/__snapshots__/App.test.jsx.snap +0 -120
- package/example/dist/babel/apple.jpg +0 -0
- package/example/dist/babel/apple.svg +0 -1
- package/example/dist/babel/index.js +0 -13
- package/example/dist/babel/index.js.map +0 -1
- package/example/dist/babel/style.scss +0 -9
- package/example/dist/cb28cdb1468c915e27e5cec9af64f22f.svg +0 -1
- package/example/dist/index.html +0 -4
- package/example/dist/report.html +0 -39
- package/example/dist/runtime.40856db71d718a3e9d37.js +0 -2
- package/example/dist/runtime.40856db71d718a3e9d37.js.map +0 -1
- package/example/env.config.js +0 -6
- package/example/node_modules/.package-lock.json +0 -98
- package/example/node_modules/js-tokens/CHANGELOG.md +0 -151
- package/example/node_modules/js-tokens/LICENSE +0 -21
- package/example/node_modules/js-tokens/README.md +0 -240
- package/example/node_modules/js-tokens/index.js +0 -23
- package/example/node_modules/js-tokens/package.json +0 -30
- package/example/node_modules/loose-envify/LICENSE +0 -21
- package/example/node_modules/loose-envify/README.md +0 -45
- package/example/node_modules/loose-envify/cli.js +0 -16
- package/example/node_modules/loose-envify/custom.js +0 -4
- package/example/node_modules/loose-envify/index.js +0 -3
- package/example/node_modules/loose-envify/loose-envify.js +0 -36
- package/example/node_modules/loose-envify/package.json +0 -36
- package/example/node_modules/loose-envify/replace.js +0 -65
- package/example/node_modules/object-assign/index.js +0 -90
- package/example/node_modules/object-assign/license +0 -21
- package/example/node_modules/object-assign/package.json +0 -42
- package/example/node_modules/object-assign/readme.md +0 -61
- package/example/node_modules/prop-types/LICENSE +0 -21
- package/example/node_modules/prop-types/README.md +0 -302
- package/example/node_modules/prop-types/checkPropTypes.js +0 -103
- package/example/node_modules/prop-types/factory.js +0 -19
- package/example/node_modules/prop-types/factoryWithThrowingShims.js +0 -65
- package/example/node_modules/prop-types/factoryWithTypeCheckers.js +0 -610
- package/example/node_modules/prop-types/index.js +0 -19
- package/example/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -12
- package/example/node_modules/prop-types/lib/has.js +0 -1
- package/example/node_modules/prop-types/package.json +0 -60
- package/example/node_modules/prop-types/prop-types.js +0 -1315
- package/example/node_modules/prop-types/prop-types.min.js +0 -1
- package/example/node_modules/react/LICENSE +0 -21
- package/example/node_modules/react/README.md +0 -13
- package/example/node_modules/react/build-info.json +0 -8
- package/example/node_modules/react/cjs/react-jsx-dev-runtime.development.js +0 -889
- package/example/node_modules/react/cjs/react-jsx-dev-runtime.production.min.js +0 -9
- package/example/node_modules/react/cjs/react-jsx-runtime.development.js +0 -911
- package/example/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -10
- package/example/node_modules/react/cjs/react.development.js +0 -1912
- package/example/node_modules/react/cjs/react.production.min.js +0 -25
- package/example/node_modules/react/index.js +0 -7
- package/example/node_modules/react/jsx-dev-runtime.js +0 -7
- package/example/node_modules/react/jsx-runtime.js +0 -7
- package/example/node_modules/react/package.json +0 -44
- package/example/node_modules/react/umd/react.development.js +0 -3318
- package/example/node_modules/react/umd/react.production.min.js +0 -32
- package/example/node_modules/react/umd/react.profiling.min.js +0 -39
- package/example/node_modules/react-dom/LICENSE +0 -21
- package/example/node_modules/react-dom/README.md +0 -54
- package/example/node_modules/react-dom/build-info.json +0 -8
- package/example/node_modules/react-dom/cjs/react-dom-server.browser.development.js +0 -4043
- package/example/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js +0 -54
- package/example/node_modules/react-dom/cjs/react-dom-server.node.development.js +0 -4085
- package/example/node_modules/react-dom/cjs/react-dom-server.node.production.min.js +0 -55
- package/example/node_modules/react-dom/cjs/react-dom-test-utils.development.js +0 -1480
- package/example/node_modules/react-dom/cjs/react-dom-test-utils.production.min.js +0 -35
- package/example/node_modules/react-dom/cjs/react-dom-unstable-fizz.browser.development.js +0 -141
- package/example/node_modules/react-dom/cjs/react-dom-unstable-fizz.browser.production.min.js +0 -11
- package/example/node_modules/react-dom/cjs/react-dom-unstable-fizz.node.development.js +0 -162
- package/example/node_modules/react-dom/cjs/react-dom-unstable-fizz.node.production.min.js +0 -12
- package/example/node_modules/react-dom/cjs/react-dom-unstable-native-dependencies.development.js +0 -1629
- package/example/node_modules/react-dom/cjs/react-dom-unstable-native-dependencies.production.min.js +0 -31
- package/example/node_modules/react-dom/cjs/react-dom.development.js +0 -25012
- package/example/node_modules/react-dom/cjs/react-dom.production.min.js +0 -292
- package/example/node_modules/react-dom/cjs/react-dom.profiling.min.js +0 -299
- package/example/node_modules/react-dom/index.js +0 -38
- package/example/node_modules/react-dom/package.json +0 -60
- package/example/node_modules/react-dom/profiling.js +0 -38
- package/example/node_modules/react-dom/server.browser.js +0 -7
- package/example/node_modules/react-dom/server.js +0 -3
- package/example/node_modules/react-dom/server.node.js +0 -7
- package/example/node_modules/react-dom/test-utils.js +0 -7
- package/example/node_modules/react-dom/umd/react-dom-server.browser.development.js +0 -4147
- package/example/node_modules/react-dom/umd/react-dom-server.browser.production.min.js +0 -45
- package/example/node_modules/react-dom/umd/react-dom-test-utils.development.js +0 -1499
- package/example/node_modules/react-dom/umd/react-dom-test-utils.production.min.js +0 -30
- package/example/node_modules/react-dom/umd/react-dom-unstable-fizz.browser.development.js +0 -141
- package/example/node_modules/react-dom/umd/react-dom-unstable-fizz.browser.production.min.js +0 -10
- package/example/node_modules/react-dom/umd/react-dom-unstable-native-dependencies.development.js +0 -1628
- package/example/node_modules/react-dom/umd/react-dom-unstable-native-dependencies.production.min.js +0 -28
- package/example/node_modules/react-dom/umd/react-dom.development.js +0 -25147
- package/example/node_modules/react-dom/umd/react-dom.production.min.js +0 -239
- package/example/node_modules/react-dom/umd/react-dom.profiling.min.js +0 -247
- package/example/node_modules/react-dom/unstable-fizz.browser.js +0 -7
- package/example/node_modules/react-dom/unstable-fizz.js +0 -3
- package/example/node_modules/react-dom/unstable-fizz.node.js +0 -7
- package/example/node_modules/react-dom/unstable-native-dependencies.js +0 -7
- package/example/node_modules/react-is/LICENSE +0 -21
- package/example/node_modules/react-is/README.md +0 -104
- package/example/node_modules/react-is/build-info.json +0 -8
- package/example/node_modules/react-is/cjs/react-is.development.js +0 -181
- package/example/node_modules/react-is/cjs/react-is.production.min.js +0 -15
- package/example/node_modules/react-is/index.js +0 -7
- package/example/node_modules/react-is/package.json +0 -27
- package/example/node_modules/react-is/umd/react-is.development.js +0 -181
- package/example/node_modules/react-is/umd/react-is.production.min.js +0 -13
- package/example/node_modules/react-test-renderer/LICENSE +0 -21
- package/example/node_modules/react-test-renderer/README.md +0 -26
- package/example/node_modules/react-test-renderer/build-info.json +0 -8
- package/example/node_modules/react-test-renderer/cjs/react-test-renderer-shallow.development.js +0 -1019
- package/example/node_modules/react-test-renderer/cjs/react-test-renderer-shallow.production.min.js +0 -35
- package/example/node_modules/react-test-renderer/cjs/react-test-renderer.development.js +0 -15596
- package/example/node_modules/react-test-renderer/cjs/react-test-renderer.production.min.js +0 -181
- package/example/node_modules/react-test-renderer/index.js +0 -7
- package/example/node_modules/react-test-renderer/package.json +0 -41
- package/example/node_modules/react-test-renderer/shallow.js +0 -7
- package/example/node_modules/react-test-renderer/umd/react-test-renderer-shallow.development.js +0 -1176
- package/example/node_modules/react-test-renderer/umd/react-test-renderer-shallow.production.min.js +0 -31
- package/example/node_modules/react-test-renderer/umd/react-test-renderer.development.js +0 -15709
- package/example/node_modules/react-test-renderer/umd/react-test-renderer.production.min.js +0 -151
- package/example/node_modules/scheduler/LICENSE +0 -21
- package/example/node_modules/scheduler/README.md +0 -9
- package/example/node_modules/scheduler/build-info.json +0 -8
- package/example/node_modules/scheduler/cjs/scheduler-tracing.development.js +0 -349
- package/example/node_modules/scheduler/cjs/scheduler-tracing.production.min.js +0 -10
- package/example/node_modules/scheduler/cjs/scheduler-tracing.profiling.min.js +0 -17
- package/example/node_modules/scheduler/cjs/scheduler-unstable_mock.development.js +0 -857
- package/example/node_modules/scheduler/cjs/scheduler-unstable_mock.production.min.js +0 -20
- package/example/node_modules/scheduler/cjs/scheduler.development.js +0 -858
- package/example/node_modules/scheduler/cjs/scheduler.production.min.js +0 -21
- package/example/node_modules/scheduler/index.js +0 -7
- package/example/node_modules/scheduler/package.json +0 -39
- package/example/node_modules/scheduler/tracing-profiling.js +0 -7
- package/example/node_modules/scheduler/tracing.js +0 -7
- package/example/node_modules/scheduler/umd/scheduler-tracing.development.js +0 -80
- package/example/node_modules/scheduler/umd/scheduler-tracing.production.min.js +0 -80
- package/example/node_modules/scheduler/umd/scheduler-tracing.profiling.min.js +0 -80
- package/example/node_modules/scheduler/umd/scheduler-unstable_mock.development.js +0 -857
- package/example/node_modules/scheduler/umd/scheduler-unstable_mock.production.min.js +0 -17
- package/example/node_modules/scheduler/umd/scheduler.development.js +0 -152
- package/example/node_modules/scheduler/umd/scheduler.production.min.js +0 -146
- package/example/node_modules/scheduler/umd/scheduler.profiling.min.js +0 -146
- package/example/node_modules/scheduler/unstable_mock.js +0 -7
- package/example/package-lock.json +0 -110
- package/example/package.json +0 -24
- package/example/public/index.html +0 -13
- package/example/src/App.jsx +0 -43
- package/example/src/App.test.jsx +0 -11
- package/example/src/Image.tsx +0 -16
- package/example/src/__snapshots__/App.test.jsx.snap +0 -120
- package/example/src/apple.jpg +0 -0
- package/example/src/apple.svg +0 -1
- package/example/src/index.jsx +0 -13
- package/example/src/style.scss +0 -9
- package/example/tsconfig.json +0 -16
- package/openedx.yaml +0 -10
- package/renovate.json +0 -22
- package/smoke-test.sh +0 -11
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/** @license React v16.14.0
|
|
2
|
-
* react-dom-test-utils.production.min.js
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
'use strict';var g=require("object-assign"),k=require("react"),m=require("react-dom"),n=require("scheduler");function p(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var q=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
11
|
-
q.hasOwnProperty("ReactCurrentDispatcher")||(q.ReactCurrentDispatcher={current:null});q.hasOwnProperty("ReactCurrentBatchConfig")||(q.ReactCurrentBatchConfig={suspense:null});function r(a){var b=a,c=a;if(a.alternate)for(;b.return;)b=b.return;else{a=b;do b=a,0!==(b.effectTag&1026)&&(c=b.return),a=b.return;while(a)}return 3===b.tag?c:null}function t(a){if(r(a)!==a)throw Error(p(188));}
|
|
12
|
-
function u(a){var b=a.alternate;if(!b){b=r(a);if(null===b)throw Error(p(188));return b!==a?null:a}for(var c=a,e=b;;){var d=c.return;if(null===d)break;var f=d.alternate;if(null===f){e=d.return;if(null!==e){c=e;continue}break}if(d.child===f.child){for(f=d.child;f;){if(f===c)return t(d),a;if(f===e)return t(d),b;f=f.sibling}throw Error(p(188));}if(c.return!==e.return)c=d,e=f;else{for(var h=!1,l=d.child;l;){if(l===c){h=!0;c=d;e=f;break}if(l===e){h=!0;e=d;c=f;break}l=l.sibling}if(!h){for(l=f.child;l;){if(l===
|
|
13
|
-
c){h=!0;c=f;e=d;break}if(l===e){h=!0;e=f;c=d;break}l=l.sibling}if(!h)throw Error(p(189));}}if(c.alternate!==e)throw Error(p(190));}if(3!==c.tag)throw Error(p(188));return c.stateNode.current===c?a:b}function v(){return!0}function w(){return!1}
|
|
14
|
-
function x(a,b,c,e){this.dispatchConfig=a;this._targetInst=b;this.nativeEvent=c;a=this.constructor.Interface;for(var d in a)a.hasOwnProperty(d)&&((b=a[d])?this[d]=b(c):"target"===d?this.target=e:this[d]=c[d]);this.isDefaultPrevented=(null!=c.defaultPrevented?c.defaultPrevented:!1===c.returnValue)?v:w;this.isPropagationStopped=w;return this}
|
|
15
|
-
g(x.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=v)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=v)},persist:function(){this.isPersistent=v},isPersistent:w,destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=
|
|
16
|
-
null;this.nativeEvent=this._targetInst=this.dispatchConfig=null;this.isPropagationStopped=this.isDefaultPrevented=w;this._dispatchInstances=this._dispatchListeners=null}});x.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};
|
|
17
|
-
x.extend=function(a){function b(){}function c(){return e.apply(this,arguments)}var e=this;b.prototype=e.prototype;var d=new b;g(d,c.prototype);c.prototype=d;c.prototype.constructor=c;c.Interface=g({},e.Interface,a);c.extend=e.extend;y(c);return c};y(x);function z(a,b,c,e){if(this.eventPool.length){var d=this.eventPool.pop();this.call(d,a,b,c,e);return d}return new this(a,b,c,e)}
|
|
18
|
-
function A(a){if(!(a instanceof this))throw Error(p(279));a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function y(a){a.eventPool=[];a.getPooled=z;a.release=A}var B=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement);function C(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;return c}
|
|
19
|
-
var D={animationend:C("Animation","AnimationEnd"),animationiteration:C("Animation","AnimationIteration"),animationstart:C("Animation","AnimationStart"),transitionend:C("Transition","TransitionEnd")},E={},F={};B&&(F=document.createElement("div").style,"AnimationEvent"in window||(delete D.animationend.animation,delete D.animationiteration.animation,delete D.animationstart.animation),"TransitionEvent"in window||delete D.transitionend.transition);
|
|
20
|
-
function G(a){if(E[a])return E[a];if(!D[a])return a;var b=D[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in F)return E[a]=b[c];return a}var H=G("animationend"),I=G("animationiteration"),J=G("animationstart"),aa=G("transitionend"),K=null;function ba(a){if(null===K)try{var b=("require"+Math.random()).slice(0,7);K=(module&&module[b])("timers").setImmediate}catch(c){K=function(a){var b=new MessageChannel;b.port1.onmessage=a;b.port2.postMessage(void 0)}}return K(a)}
|
|
21
|
-
var L=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,ca=L[11],M=L[12],da=m.unstable_batchedUpdates,N=q.IsSomeRendererActing,O="function"===typeof n.unstable_flushAllWithoutAsserting,P=n.unstable_flushAllWithoutAsserting||function(){for(var a=!1;ca();)a=!0;return a};function Q(a){try{P(),ba(function(){P()?Q(a):a()})}catch(b){a(b)}}var R=0,S=!1,ea=m.findDOMNode,T=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,fa=T[0],U=T[4],ha=T[5],ia=T[6],ja=T[7],ka=T[8],V=T[9],la=T[10];
|
|
22
|
-
function W(){}function ma(a,b){if(!a)return[];a=u(a);if(!a)return[];for(var c=a,e=[];;){if(5===c.tag||6===c.tag||1===c.tag||0===c.tag){var d=c.stateNode;b(d)&&e.push(d)}if(c.child)c.child.return=c,c=c.child;else{if(c===a)return e;for(;!c.sibling;){if(!c.return||c.return===a)return e;c=c.return}c.sibling.return=c.return;c=c.sibling}}}
|
|
23
|
-
function X(a,b){if(a&&!a._reactInternalFiber){var c=""+a;a=Array.isArray(a)?"an array":a&&1===a.nodeType&&a.tagName?"a DOM node":"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c;throw Error(p(286,b,a));}}
|
|
24
|
-
var Y={renderIntoDocument:function(a){var b=document.createElement("div");return m.render(a,b)},isElement:function(a){return k.isValidElement(a)},isElementOfType:function(a,b){return k.isValidElement(a)&&a.type===b},isDOMComponent:function(a){return!(!a||1!==a.nodeType||!a.tagName)},isDOMComponentElement:function(a){return!!(a&&k.isValidElement(a)&&a.tagName)},isCompositeComponent:function(a){return Y.isDOMComponent(a)?!1:null!=a&&"function"===typeof a.render&&"function"===typeof a.setState},isCompositeComponentWithType:function(a,
|
|
25
|
-
b){return Y.isCompositeComponent(a)?a._reactInternalFiber.type===b:!1},findAllInRenderedTree:function(a,b){X(a,"findAllInRenderedTree");return a?ma(a._reactInternalFiber,b):[]},scryRenderedDOMComponentsWithClass:function(a,b){X(a,"scryRenderedDOMComponentsWithClass");return Y.findAllInRenderedTree(a,function(a){if(Y.isDOMComponent(a)){var c=a.className;"string"!==typeof c&&(c=a.getAttribute("class")||"");var d=c.split(/\s+/);if(!Array.isArray(b)){if(void 0===b)throw Error(p(11));b=b.split(/\s+/)}return b.every(function(a){return-1!==
|
|
26
|
-
d.indexOf(a)})}return!1})},findRenderedDOMComponentWithClass:function(a,b){X(a,"findRenderedDOMComponentWithClass");a=Y.scryRenderedDOMComponentsWithClass(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for class:"+b);return a[0]},scryRenderedDOMComponentsWithTag:function(a,b){X(a,"scryRenderedDOMComponentsWithTag");return Y.findAllInRenderedTree(a,function(a){return Y.isDOMComponent(a)&&a.tagName.toUpperCase()===b.toUpperCase()})},findRenderedDOMComponentWithTag:function(a,
|
|
27
|
-
b){X(a,"findRenderedDOMComponentWithTag");a=Y.scryRenderedDOMComponentsWithTag(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for tag:"+b);return a[0]},scryRenderedComponentsWithType:function(a,b){X(a,"scryRenderedComponentsWithType");return Y.findAllInRenderedTree(a,function(a){return Y.isCompositeComponentWithType(a,b)})},findRenderedComponentWithType:function(a,b){X(a,"findRenderedComponentWithType");a=Y.scryRenderedComponentsWithType(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+
|
|
28
|
-
a.length+") for componentType:"+b);return a[0]},mockComponent:function(a,b){b=b||a.mockTagName||"div";a.prototype.render.mockImplementation(function(){return k.createElement(b,null,this.props.children)});return this},nativeTouchData:function(a,b){return{touches:[{pageX:a,pageY:b}]}},Simulate:null,SimulateNative:{},act:function(a){function b(){R--;N.current=c;M.current=e}!1===S&&(S=!0,console.error("act(...) is not supported in production builds of React, and might not behave as expected."));R++;var c=
|
|
29
|
-
N.current;var e=M.current;N.current=!0;M.current=!0;try{var d=da(a)}catch(f){throw b(),f;}if(null!==d&&"object"===typeof d&&"function"===typeof d.then)return{then:function(a,e){d.then(function(){1<R||!0===O&&!0===c?(b(),a()):Q(function(c){b();c?e(c):a()})},function(a){b();e(a)})}};try{1!==R||!1!==O&&!1!==c||P(),b()}catch(f){throw b(),f;}return{then:function(a){a()}}}};
|
|
30
|
-
function na(a){return function(b,c){if(k.isValidElement(b))throw Error(p(228));if(Y.isCompositeComponent(b))throw Error(p(229));var e=U[a],d=new W;d.target=b;d.type=a.toLowerCase();var f=fa(b),h=new x(e,f,d,b);h.persist();g(h,c);e.phasedRegistrationNames?ha(h):ia(h);m.unstable_batchedUpdates(function(){ja(b);la(h)});ka()}}Y.Simulate={};for(var Z in U)Y.Simulate[Z]=na(Z);
|
|
31
|
-
function oa(a,b){return function(c,e){var d=new W(a);g(d,e);Y.isDOMComponent(c)?(c=ea(c),d.target=c,V(b,1,document,d)):c.tagName&&(d.target=c,V(b,1,document,d))}}
|
|
32
|
-
[["abort","abort"],[H,"animationEnd"],[I,"animationIteration"],[J,"animationStart"],["blur","blur"],["canplaythrough","canPlayThrough"],["canplay","canPlay"],["cancel","cancel"],["change","change"],["click","click"],["close","close"],["compositionend","compositionEnd"],["compositionstart","compositionStart"],["compositionupdate","compositionUpdate"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragenter","dragEnter"],["dragexit","dragExit"],
|
|
33
|
-
["dragleave","dragLeave"],["dragover","dragOver"],["dragstart","dragStart"],["drag","drag"],["drop","drop"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["focus","focus"],["input","input"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["loadstart","loadStart"],["loadstart","loadStart"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["mousedown","mouseDown"],["mousemove","mouseMove"],
|
|
34
|
-
["mouseout","mouseOut"],["mouseover","mouseOver"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["playing","playing"],["progress","progress"],["ratechange","rateChange"],["scroll","scroll"],["seeked","seeked"],["seeking","seeking"],["selectionchange","selectionChange"],["stalled","stalled"],["suspend","suspend"],["textInput","textInput"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchmove","touchMove"],["touchstart",
|
|
35
|
-
"touchStart"],[aa,"transitionEnd"],["volumechange","volumeChange"],["waiting","waiting"],["wheel","wheel"]].forEach(function(a){var b=a[1];Y.SimulateNative[b]=oa(b,a[0])});module.exports=Y.default||Y;
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
/** @license React v16.13.1
|
|
2
|
-
* react-dom-unstable-fizz.browser.development.js
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
'use strict';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
if (process.env.NODE_ENV !== "production") {
|
|
15
|
-
(function() {
|
|
16
|
-
'use strict';
|
|
17
|
-
|
|
18
|
-
function scheduleWork(callback) {
|
|
19
|
-
callback();
|
|
20
|
-
}
|
|
21
|
-
function flushBuffered(destination) {// WHATWG Streams do not yet have a way to flush the underlying
|
|
22
|
-
// transform streams. https://github.com/whatwg/streams/issues/960
|
|
23
|
-
}
|
|
24
|
-
function writeChunk(destination, buffer) {
|
|
25
|
-
destination.enqueue(buffer);
|
|
26
|
-
return destination.desiredSize > 0;
|
|
27
|
-
}
|
|
28
|
-
function close(destination) {
|
|
29
|
-
destination.close();
|
|
30
|
-
}
|
|
31
|
-
var textEncoder = new TextEncoder();
|
|
32
|
-
function convertStringToBuffer(content) {
|
|
33
|
-
return textEncoder.encode(content);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function formatChunkAsString(type, props) {
|
|
37
|
-
var str = '<' + type + '>';
|
|
38
|
-
|
|
39
|
-
if (typeof props.children === 'string') {
|
|
40
|
-
str += props.children;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
str += '</' + type + '>';
|
|
44
|
-
return str;
|
|
45
|
-
}
|
|
46
|
-
function formatChunk(type, props) {
|
|
47
|
-
return convertStringToBuffer(formatChunkAsString(type, props));
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
51
|
-
// nor polyfill, then a plain number is used for performance.
|
|
52
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
53
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
54
|
-
|
|
55
|
-
function createRequest(children, destination) {
|
|
56
|
-
return {
|
|
57
|
-
destination: destination,
|
|
58
|
-
children: children,
|
|
59
|
-
completedChunks: [],
|
|
60
|
-
flowing: false
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
function performWork(request) {
|
|
65
|
-
var element = request.children;
|
|
66
|
-
request.children = null;
|
|
67
|
-
|
|
68
|
-
if (element && element.$$typeof !== REACT_ELEMENT_TYPE) {
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
var type = element.type;
|
|
73
|
-
var props = element.props;
|
|
74
|
-
|
|
75
|
-
if (typeof type !== 'string') {
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
request.completedChunks.push(formatChunk(type, props));
|
|
80
|
-
|
|
81
|
-
if (request.flowing) {
|
|
82
|
-
flushCompletedChunks(request);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
flushBuffered(request.destination);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
function flushCompletedChunks(request) {
|
|
89
|
-
var destination = request.destination;
|
|
90
|
-
var chunks = request.completedChunks;
|
|
91
|
-
request.completedChunks = [];
|
|
92
|
-
|
|
93
|
-
try {
|
|
94
|
-
for (var i = 0; i < chunks.length; i++) {
|
|
95
|
-
var chunk = chunks[i];
|
|
96
|
-
writeChunk(destination, chunk);
|
|
97
|
-
}
|
|
98
|
-
} finally {
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
close(destination);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
function startWork(request) {
|
|
105
|
-
request.flowing = true;
|
|
106
|
-
scheduleWork(function () {
|
|
107
|
-
return performWork(request);
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
function startFlowing(request) {
|
|
111
|
-
request.flowing = false;
|
|
112
|
-
flushCompletedChunks(request);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
function renderToReadableStream(children) {
|
|
116
|
-
var request;
|
|
117
|
-
return new ReadableStream({
|
|
118
|
-
start: function (controller) {
|
|
119
|
-
request = createRequest(children, controller);
|
|
120
|
-
startWork(request);
|
|
121
|
-
},
|
|
122
|
-
pull: function (controller) {
|
|
123
|
-
startFlowing(request);
|
|
124
|
-
},
|
|
125
|
-
cancel: function (reason) {}
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
var ReactDOMFizzServerBrowser = {
|
|
130
|
-
renderToReadableStream: renderToReadableStream
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
// TODO: decide on the top-level export form.
|
|
134
|
-
// This is hacky but makes it work with both Rollup and Jest
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
var unstableFizz_browser = ReactDOMFizzServerBrowser.default || ReactDOMFizzServerBrowser;
|
|
138
|
-
|
|
139
|
-
module.exports = unstableFizz_browser;
|
|
140
|
-
})();
|
|
141
|
-
}
|
package/example/node_modules/react-dom/cjs/react-dom-unstable-fizz.browser.production.min.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** @license React v16.13.1
|
|
2
|
-
* react-dom-unstable-fizz.browser.production.min.js
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
'use strict';var e=new TextEncoder;function g(b,c){var a="<"+b+">";"string"===typeof c.children&&(a+=c.children);return a+("</"+b+">")}var h="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function k(b){var c=b.destination,a=b.completedChunks;b.completedChunks=[];for(b=0;b<a.length;b++)c.enqueue(a[b]);c.close()}
|
|
11
|
-
var l={renderToReadableStream:function(b){var c;return new ReadableStream({start:function(a){a=c={destination:a,children:b,completedChunks:[],flowing:!1};a.flowing=!0;var d=a.children;a.children=null;if(!d||d.$$typeof===h){var f=d.type;d=d.props;"string"===typeof f&&(a.completedChunks.push(e.encode(g(f,d))),a.flowing&&k(a))}},pull:function(){var a=c;a.flowing=!1;k(a)},cancel:function(){}})}};module.exports=l.default||l;
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
/** @license React v16.13.1
|
|
2
|
-
* react-dom-unstable-fizz.node.development.js
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
'use strict';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
if (process.env.NODE_ENV !== "production") {
|
|
15
|
-
(function() {
|
|
16
|
-
'use strict';
|
|
17
|
-
|
|
18
|
-
function scheduleWork(callback) {
|
|
19
|
-
setImmediate(callback);
|
|
20
|
-
}
|
|
21
|
-
function flushBuffered(destination) {
|
|
22
|
-
// If we don't have any more data to send right now.
|
|
23
|
-
// Flush whatever is in the buffer to the wire.
|
|
24
|
-
if (typeof destination.flush === 'function') {
|
|
25
|
-
// http.createServer response have flush(), but it has a different meaning and
|
|
26
|
-
// is deprecated in favor of flushHeaders(). Detect to avoid a warning.
|
|
27
|
-
if (typeof destination.flushHeaders !== 'function') {
|
|
28
|
-
// By convention the Zlib streams provide a flush function for this purpose.
|
|
29
|
-
destination.flush();
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
function beginWriting(destination) {
|
|
34
|
-
// Older Node streams like http.createServer don't have this.
|
|
35
|
-
if (typeof destination.cork === 'function') {
|
|
36
|
-
destination.cork();
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
function writeChunk(destination, buffer) {
|
|
40
|
-
var nodeBuffer = buffer; // close enough
|
|
41
|
-
|
|
42
|
-
return destination.write(nodeBuffer);
|
|
43
|
-
}
|
|
44
|
-
function completeWriting(destination) {
|
|
45
|
-
// Older Node streams like http.createServer don't have this.
|
|
46
|
-
if (typeof destination.uncork === 'function') {
|
|
47
|
-
destination.uncork();
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
function close(destination) {
|
|
51
|
-
destination.end();
|
|
52
|
-
}
|
|
53
|
-
function convertStringToBuffer(content) {
|
|
54
|
-
return Buffer.from(content, 'utf8');
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function formatChunkAsString(type, props) {
|
|
58
|
-
var str = '<' + type + '>';
|
|
59
|
-
|
|
60
|
-
if (typeof props.children === 'string') {
|
|
61
|
-
str += props.children;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
str += '</' + type + '>';
|
|
65
|
-
return str;
|
|
66
|
-
}
|
|
67
|
-
function formatChunk(type, props) {
|
|
68
|
-
return convertStringToBuffer(formatChunkAsString(type, props));
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
72
|
-
// nor polyfill, then a plain number is used for performance.
|
|
73
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
74
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
75
|
-
|
|
76
|
-
function createRequest(children, destination) {
|
|
77
|
-
return {
|
|
78
|
-
destination: destination,
|
|
79
|
-
children: children,
|
|
80
|
-
completedChunks: [],
|
|
81
|
-
flowing: false
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
function performWork(request) {
|
|
86
|
-
var element = request.children;
|
|
87
|
-
request.children = null;
|
|
88
|
-
|
|
89
|
-
if (element && element.$$typeof !== REACT_ELEMENT_TYPE) {
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
var type = element.type;
|
|
94
|
-
var props = element.props;
|
|
95
|
-
|
|
96
|
-
if (typeof type !== 'string') {
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
request.completedChunks.push(formatChunk(type, props));
|
|
101
|
-
|
|
102
|
-
if (request.flowing) {
|
|
103
|
-
flushCompletedChunks(request);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
flushBuffered(request.destination);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
function flushCompletedChunks(request) {
|
|
110
|
-
var destination = request.destination;
|
|
111
|
-
var chunks = request.completedChunks;
|
|
112
|
-
request.completedChunks = [];
|
|
113
|
-
beginWriting(destination);
|
|
114
|
-
|
|
115
|
-
try {
|
|
116
|
-
for (var i = 0; i < chunks.length; i++) {
|
|
117
|
-
var chunk = chunks[i];
|
|
118
|
-
writeChunk(destination, chunk);
|
|
119
|
-
}
|
|
120
|
-
} finally {
|
|
121
|
-
completeWriting(destination);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
close(destination);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
function startWork(request) {
|
|
128
|
-
request.flowing = true;
|
|
129
|
-
scheduleWork(function () {
|
|
130
|
-
return performWork(request);
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
function startFlowing(request) {
|
|
134
|
-
request.flowing = false;
|
|
135
|
-
flushCompletedChunks(request);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
function createDrainHandler(destination, request) {
|
|
139
|
-
return function () {
|
|
140
|
-
return startFlowing(request);
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
function pipeToNodeWritable(children, destination) {
|
|
145
|
-
var request = createRequest(children, destination);
|
|
146
|
-
destination.on('drain', createDrainHandler(destination, request));
|
|
147
|
-
startWork(request);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
var ReactDOMFizzServerNode = {
|
|
151
|
-
pipeToNodeWritable: pipeToNodeWritable
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
// TODO: decide on the top-level export form.
|
|
155
|
-
// This is hacky but makes it work with both Rollup and Jest
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
var unstableFizz_node = ReactDOMFizzServerNode.default || ReactDOMFizzServerNode;
|
|
159
|
-
|
|
160
|
-
module.exports = unstableFizz_node;
|
|
161
|
-
})();
|
|
162
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/** @license React v16.13.1
|
|
2
|
-
* react-dom-unstable-fizz.node.production.min.js
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
'use strict';function d(a,b){var c="<"+a+">";"string"===typeof b.children&&(c+=b.children);return c+("</"+a+">")}var e="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function f(a){var b=a.destination,c=a.completedChunks;a.completedChunks=[];"function"===typeof b.cork&&b.cork();try{for(a=0;a<c.length;a++)b.write(c[a])}finally{"function"===typeof b.uncork&&b.uncork()}b.end()}
|
|
11
|
-
function g(a){a.flowing=!0;setImmediate(function(){var b=a.children;a.children=null;if(!b||b.$$typeof===e){var c=b.type;b=b.props;"string"===typeof c&&(a.completedChunks.push(Buffer.from(d(c,b),"utf8")),a.flowing&&f(a),c=a.destination,"function"===typeof c.flush&&"function"!==typeof c.flushHeaders&&c.flush())}})}function h(a,b){return function(){b.flowing=!1;f(b)}}var k={pipeToNodeWritable:function(a,b){a={destination:b,children:a,completedChunks:[],flowing:!1};b.on("drain",h(b,a));g(a)}};
|
|
12
|
-
module.exports=k.default||k;
|