@openedx/frontend-build 14.0.10 → 14.0.12
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 -33
- 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,17 +0,0 @@
|
|
|
1
|
-
/** @license React v0.19.1
|
|
2
|
-
* scheduler-unstable_mock.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
|
-
'use strict';(function(b,w){"object"===typeof exports&&"undefined"!==typeof module?w(exports):"function"===typeof define&&define.amd?define(["exports"],w):(b=b||self,w(b.SchedulerMock={}))})(this,function(b){function w(){return-1!==y&&null!==k&&k.length>=y||D&&E?t=!0:!1}function J(){if(h)throw Error("Already flushing work.");if(null!==f){var a=f;h=!0;try{var c=!0;do c=a(!0,g);while(c);c||(f=null);return!0}finally{h=!1}}else return!1}function F(a,c){var G=a.length;a.push(c);a:for(;;){var b=G-1>>>1,
|
|
10
|
-
p=a[b];if(void 0!==p&&0<z(p,c))a[b]=c,a[G]=p,G=b;else break a}}function l(a){a=a[0];return void 0===a?null:a}function A(a){var c=a[0];if(void 0!==c){var b=a.pop();if(b!==c){a[0]=b;a:for(var n=0,p=a.length;n<p;){var e=2*(n+1)-1,f=a[e],d=e+1,g=a[d];if(void 0!==f&&0>z(f,b))void 0!==g&&0>z(g,f)?(a[n]=g,a[d]=b,n=d):(a[n]=f,a[e]=b,n=e);else if(void 0!==g&&0>z(g,b))a[n]=g,a[d]=b,n=d;else break a}}return c}return null}function z(a,c){var b=a.sortIndex-c.sortIndex;return 0!==b?b:a.id-c.id}function B(a){for(var c=
|
|
11
|
-
l(q);null!==c;){if(null===c.callback)A(q);else if(c.startTime<=a)A(q),c.sortIndex=c.expirationTime,F(m,c);else break;c=l(q)}}function H(a){x=!1;B(a);if(!u)if(null!==l(m))u=!0,f=I;else{var c=l(q);null!==c&&(a=c.startTime-a,r=H,v=g+a)}}function I(a,c){u=!1;x&&(x=!1,r=null,v=-1);C=!0;var b=e;try{B(c);for(d=l(m);null!==d&&(!(d.expirationTime>c)||a&&!w());){var f=d.callback;if(null!==f){d.callback=null;e=d.priorityLevel;var p=f(d.expirationTime<=c);c=g;"function"===typeof p?d.callback=p:d===l(m)&&A(m);
|
|
12
|
-
B(c)}else A(m);d=l(m)}if(null!==d)var h=!0;else{var k=l(q);if(null!==k){var t=k.startTime-c;r=H;v=g+t}h=!1}return h}finally{d=null,e=b,C=!1}}function K(a){switch(a){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1E4;default:return 5E3}}var g=0,f=null,r=null,v=-1,k=null,y=-1,t=!1,h=!1,E=!1,D=!1,m=[],q=[],L=1,d=null,e=3,C=!1,u=!1,x=!1;b.unstable_IdlePriority=5;b.unstable_ImmediatePriority=1;b.unstable_LowPriority=4;b.unstable_NormalPriority=3;b.unstable_Profiling=null;b.unstable_UserBlockingPriority=
|
|
13
|
-
2;b.unstable_advanceTime=function(a){g+=a;null!==r&&v<=g&&(r(g),v=-1,r=null)};b.unstable_cancelCallback=function(a){a.callback=null};b.unstable_clearYields=function(){if(null===k)return[];var a=k;k=null;return a};b.unstable_continueExecution=function(){u||C||(u=!0,f=I)};b.unstable_flushAll=function(){if(null!==k)throw Error("Log is not empty. Assert on the log of yielded values before flushing additional work.");J();if(null!==k)throw Error("While flushing work, something yielded a value. Use an assertion helper to assert on the log of yielded values, e.g. expect(Scheduler).toFlushAndYield([...])");
|
|
14
|
-
};b.unstable_flushAllWithoutAsserting=J;b.unstable_flushExpired=function(){if(h)throw Error("Already flushing work.");if(null!==f){h=!0;try{f(!1,g)||(f=null)}finally{h=!1}}};b.unstable_flushNumberOfYields=function(a){if(h)throw Error("Already flushing work.");if(null!==f){var c=f;y=a;h=!0;try{a=!0;do a=c(!0,g);while(a&&!t);a||(f=null)}finally{y=-1,h=t=!1}}};b.unstable_flushUntilNextPaint=function(){if(h)throw Error("Already flushing work.");if(null!==f){var a=f;D=!0;E=!1;h=!0;try{var c=!0;do c=a(!0,
|
|
15
|
-
g);while(c&&!t);c||(f=null)}finally{h=t=D=!1}}};b.unstable_forceFrameRate=function(){};b.unstable_getCurrentPriorityLevel=function(){return e};b.unstable_getFirstCallbackNode=function(){return l(m)};b.unstable_next=function(a){switch(e){case 1:case 2:case 3:var c=3;break;default:c=e}var b=e;e=c;try{return a()}finally{e=b}};b.unstable_now=function(){return g};b.unstable_pauseExecution=function(){};b.unstable_requestPaint=function(){E=!0};b.unstable_runWithPriority=function(a,c){switch(a){case 1:case 2:case 3:case 4:case 5:break;
|
|
16
|
-
default:a=3}var b=e;e=a;try{return c()}finally{e=b}};b.unstable_scheduleCallback=function(a,c,b){var e=g;if("object"===typeof b&&null!==b){var d=b.delay;d="number"===typeof d&&0<d?e+d:e;b="number"===typeof b.timeout?b.timeout:K(a)}else b=K(a),d=e;b=d+b;a={id:L++,callback:c,priorityLevel:a,startTime:d,expirationTime:b,sortIndex:-1};d>e?(a.sortIndex=d,F(q,a),null===l(m)&&a===l(q)&&(x?(r=null,v=-1):x=!0,r=H,v=g+(d-e))):(a.sortIndex=b,F(m,a),u||C||(u=!0,f=I));return a};b.unstable_shouldYield=function(){var a=
|
|
17
|
-
g;B(a);var b=l(m);return b!==d&&null!==d&&null!==b&&null!==b.callback&&b.startTime<=a&&b.expirationTime<d.expirationTime||w()};b.unstable_wrapCallback=function(a){var b=e;return function(){var c=e;e=b;try{return a.apply(this,arguments)}finally{e=c}}};b.unstable_yieldValue=function(a){null===k?k=[a]:k.push(a)}});
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license React
|
|
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
|
-
/* eslint-disable max-len */
|
|
11
|
-
|
|
12
|
-
'use strict';
|
|
13
|
-
|
|
14
|
-
(function(global, factory) {
|
|
15
|
-
// eslint-disable-next-line no-unused-expressions
|
|
16
|
-
typeof exports === 'object' && typeof module !== 'undefined'
|
|
17
|
-
? (module.exports = factory(require('react')))
|
|
18
|
-
: typeof define === 'function' && define.amd // eslint-disable-line no-undef
|
|
19
|
-
? define(['react'], factory) // eslint-disable-line no-undef
|
|
20
|
-
: (global.Scheduler = factory(global));
|
|
21
|
-
})(this, function(global) {
|
|
22
|
-
function unstable_now() {
|
|
23
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_now.apply(
|
|
24
|
-
this,
|
|
25
|
-
arguments
|
|
26
|
-
);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function unstable_scheduleCallback() {
|
|
30
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_scheduleCallback.apply(
|
|
31
|
-
this,
|
|
32
|
-
arguments
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function unstable_cancelCallback() {
|
|
37
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_cancelCallback.apply(
|
|
38
|
-
this,
|
|
39
|
-
arguments
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function unstable_shouldYield() {
|
|
44
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_shouldYield.apply(
|
|
45
|
-
this,
|
|
46
|
-
arguments
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function unstable_requestPaint() {
|
|
51
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_requestPaint.apply(
|
|
52
|
-
this,
|
|
53
|
-
arguments
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function unstable_runWithPriority() {
|
|
58
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_runWithPriority.apply(
|
|
59
|
-
this,
|
|
60
|
-
arguments
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
function unstable_next() {
|
|
65
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_next.apply(
|
|
66
|
-
this,
|
|
67
|
-
arguments
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function unstable_wrapCallback() {
|
|
72
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_wrapCallback.apply(
|
|
73
|
-
this,
|
|
74
|
-
arguments
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
function unstable_getCurrentPriorityLevel() {
|
|
79
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_getCurrentPriorityLevel.apply(
|
|
80
|
-
this,
|
|
81
|
-
arguments
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
function unstable_getFirstCallbackNode() {
|
|
86
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_getFirstCallbackNode.apply(
|
|
87
|
-
this,
|
|
88
|
-
arguments
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
function unstable_pauseExecution() {
|
|
93
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_pauseExecution.apply(
|
|
94
|
-
this,
|
|
95
|
-
arguments
|
|
96
|
-
);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
function unstable_continueExecution() {
|
|
100
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_continueExecution.apply(
|
|
101
|
-
this,
|
|
102
|
-
arguments
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
function unstable_forceFrameRate() {
|
|
107
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_forceFrameRate.apply(
|
|
108
|
-
this,
|
|
109
|
-
arguments
|
|
110
|
-
);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
return Object.freeze({
|
|
114
|
-
unstable_now: unstable_now,
|
|
115
|
-
unstable_scheduleCallback: unstable_scheduleCallback,
|
|
116
|
-
unstable_cancelCallback: unstable_cancelCallback,
|
|
117
|
-
unstable_shouldYield: unstable_shouldYield,
|
|
118
|
-
unstable_requestPaint: unstable_requestPaint,
|
|
119
|
-
unstable_runWithPriority: unstable_runWithPriority,
|
|
120
|
-
unstable_next: unstable_next,
|
|
121
|
-
unstable_wrapCallback: unstable_wrapCallback,
|
|
122
|
-
unstable_getCurrentPriorityLevel: unstable_getCurrentPriorityLevel,
|
|
123
|
-
unstable_continueExecution: unstable_continueExecution,
|
|
124
|
-
unstable_pauseExecution: unstable_pauseExecution,
|
|
125
|
-
unstable_getFirstCallbackNode: unstable_getFirstCallbackNode,
|
|
126
|
-
unstable_forceFrameRate: unstable_forceFrameRate,
|
|
127
|
-
get unstable_IdlePriority() {
|
|
128
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
|
129
|
-
.Scheduler.unstable_IdlePriority;
|
|
130
|
-
},
|
|
131
|
-
get unstable_ImmediatePriority() {
|
|
132
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
|
133
|
-
.Scheduler.unstable_ImmediatePriority;
|
|
134
|
-
},
|
|
135
|
-
get unstable_LowPriority() {
|
|
136
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
|
137
|
-
.Scheduler.unstable_LowPriority;
|
|
138
|
-
},
|
|
139
|
-
get unstable_NormalPriority() {
|
|
140
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
|
141
|
-
.Scheduler.unstable_NormalPriority;
|
|
142
|
-
},
|
|
143
|
-
get unstable_UserBlockingPriority() {
|
|
144
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
|
145
|
-
.Scheduler.unstable_UserBlockingPriority;
|
|
146
|
-
},
|
|
147
|
-
get unstable_Profiling() {
|
|
148
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
|
149
|
-
.Scheduler.unstable_Profiling;
|
|
150
|
-
},
|
|
151
|
-
});
|
|
152
|
-
});
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license React
|
|
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
|
-
/* eslint-disable max-len */
|
|
11
|
-
|
|
12
|
-
'use strict';
|
|
13
|
-
|
|
14
|
-
(function(global, factory) {
|
|
15
|
-
// eslint-disable-next-line no-unused-expressions
|
|
16
|
-
typeof exports === 'object' && typeof module !== 'undefined'
|
|
17
|
-
? (module.exports = factory(require('react')))
|
|
18
|
-
: typeof define === 'function' && define.amd // eslint-disable-line no-undef
|
|
19
|
-
? define(['react'], factory) // eslint-disable-line no-undef
|
|
20
|
-
: (global.Scheduler = factory(global));
|
|
21
|
-
})(this, function(global) {
|
|
22
|
-
function unstable_now() {
|
|
23
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_now.apply(
|
|
24
|
-
this,
|
|
25
|
-
arguments
|
|
26
|
-
);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function unstable_scheduleCallback() {
|
|
30
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_scheduleCallback.apply(
|
|
31
|
-
this,
|
|
32
|
-
arguments
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function unstable_cancelCallback() {
|
|
37
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_cancelCallback.apply(
|
|
38
|
-
this,
|
|
39
|
-
arguments
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function unstable_shouldYield() {
|
|
44
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_shouldYield.apply(
|
|
45
|
-
this,
|
|
46
|
-
arguments
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function unstable_requestPaint() {
|
|
51
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_requestPaint.apply(
|
|
52
|
-
this,
|
|
53
|
-
arguments
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function unstable_runWithPriority() {
|
|
58
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_runWithPriority.apply(
|
|
59
|
-
this,
|
|
60
|
-
arguments
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
function unstable_next() {
|
|
65
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_next.apply(
|
|
66
|
-
this,
|
|
67
|
-
arguments
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function unstable_wrapCallback() {
|
|
72
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_wrapCallback.apply(
|
|
73
|
-
this,
|
|
74
|
-
arguments
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
function unstable_getCurrentPriorityLevel() {
|
|
79
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_getCurrentPriorityLevel.apply(
|
|
80
|
-
this,
|
|
81
|
-
arguments
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
function unstable_getFirstCallbackNode() {
|
|
86
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_getFirstCallbackNode.apply(
|
|
87
|
-
this,
|
|
88
|
-
arguments
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
function unstable_pauseExecution() {
|
|
93
|
-
return undefined;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
function unstable_continueExecution() {
|
|
97
|
-
return undefined;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
function unstable_forceFrameRate() {
|
|
101
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_forceFrameRate.apply(
|
|
102
|
-
this,
|
|
103
|
-
arguments
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
return Object.freeze({
|
|
108
|
-
unstable_now: unstable_now,
|
|
109
|
-
unstable_scheduleCallback: unstable_scheduleCallback,
|
|
110
|
-
unstable_cancelCallback: unstable_cancelCallback,
|
|
111
|
-
unstable_shouldYield: unstable_shouldYield,
|
|
112
|
-
unstable_requestPaint: unstable_requestPaint,
|
|
113
|
-
unstable_runWithPriority: unstable_runWithPriority,
|
|
114
|
-
unstable_next: unstable_next,
|
|
115
|
-
unstable_wrapCallback: unstable_wrapCallback,
|
|
116
|
-
unstable_getCurrentPriorityLevel: unstable_getCurrentPriorityLevel,
|
|
117
|
-
unstable_continueExecution: unstable_continueExecution,
|
|
118
|
-
unstable_pauseExecution: unstable_pauseExecution,
|
|
119
|
-
unstable_getFirstCallbackNode: unstable_getFirstCallbackNode,
|
|
120
|
-
unstable_forceFrameRate: unstable_forceFrameRate,
|
|
121
|
-
get unstable_IdlePriority() {
|
|
122
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
|
123
|
-
.Scheduler.unstable_IdlePriority;
|
|
124
|
-
},
|
|
125
|
-
get unstable_ImmediatePriority() {
|
|
126
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
|
127
|
-
.Scheduler.unstable_ImmediatePriority;
|
|
128
|
-
},
|
|
129
|
-
get unstable_LowPriority() {
|
|
130
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
|
131
|
-
.Scheduler.unstable_LowPriority;
|
|
132
|
-
},
|
|
133
|
-
get unstable_NormalPriority() {
|
|
134
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
|
135
|
-
.Scheduler.unstable_NormalPriority;
|
|
136
|
-
},
|
|
137
|
-
get unstable_UserBlockingPriority() {
|
|
138
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
|
139
|
-
.Scheduler.unstable_UserBlockingPriority;
|
|
140
|
-
},
|
|
141
|
-
get unstable_Profiling() {
|
|
142
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
|
143
|
-
.Scheduler.unstable_Profiling;
|
|
144
|
-
},
|
|
145
|
-
});
|
|
146
|
-
});
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license React
|
|
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
|
-
/* eslint-disable max-len */
|
|
11
|
-
|
|
12
|
-
'use strict';
|
|
13
|
-
|
|
14
|
-
(function(global, factory) {
|
|
15
|
-
// eslint-disable-next-line no-unused-expressions
|
|
16
|
-
typeof exports === 'object' && typeof module !== 'undefined'
|
|
17
|
-
? (module.exports = factory(require('react')))
|
|
18
|
-
: typeof define === 'function' && define.amd // eslint-disable-line no-undef
|
|
19
|
-
? define(['react'], factory) // eslint-disable-line no-undef
|
|
20
|
-
: (global.Scheduler = factory(global));
|
|
21
|
-
})(this, function(global) {
|
|
22
|
-
function unstable_now() {
|
|
23
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_now.apply(
|
|
24
|
-
this,
|
|
25
|
-
arguments
|
|
26
|
-
);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function unstable_scheduleCallback() {
|
|
30
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_scheduleCallback.apply(
|
|
31
|
-
this,
|
|
32
|
-
arguments
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function unstable_cancelCallback() {
|
|
37
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_cancelCallback.apply(
|
|
38
|
-
this,
|
|
39
|
-
arguments
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function unstable_shouldYield() {
|
|
44
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_shouldYield.apply(
|
|
45
|
-
this,
|
|
46
|
-
arguments
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function unstable_requestPaint() {
|
|
51
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_requestPaint.apply(
|
|
52
|
-
this,
|
|
53
|
-
arguments
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function unstable_runWithPriority() {
|
|
58
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_runWithPriority.apply(
|
|
59
|
-
this,
|
|
60
|
-
arguments
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
function unstable_next() {
|
|
65
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_next.apply(
|
|
66
|
-
this,
|
|
67
|
-
arguments
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function unstable_wrapCallback() {
|
|
72
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_wrapCallback.apply(
|
|
73
|
-
this,
|
|
74
|
-
arguments
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
function unstable_getCurrentPriorityLevel() {
|
|
79
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_getCurrentPriorityLevel.apply(
|
|
80
|
-
this,
|
|
81
|
-
arguments
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
function unstable_getFirstCallbackNode() {
|
|
86
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_getFirstCallbackNode.apply(
|
|
87
|
-
this,
|
|
88
|
-
arguments
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
function unstable_pauseExecution() {
|
|
93
|
-
return undefined;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
function unstable_continueExecution() {
|
|
97
|
-
return undefined;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
function unstable_forceFrameRate() {
|
|
101
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_forceFrameRate.apply(
|
|
102
|
-
this,
|
|
103
|
-
arguments
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
return Object.freeze({
|
|
108
|
-
unstable_now: unstable_now,
|
|
109
|
-
unstable_scheduleCallback: unstable_scheduleCallback,
|
|
110
|
-
unstable_cancelCallback: unstable_cancelCallback,
|
|
111
|
-
unstable_shouldYield: unstable_shouldYield,
|
|
112
|
-
unstable_requestPaint: unstable_requestPaint,
|
|
113
|
-
unstable_runWithPriority: unstable_runWithPriority,
|
|
114
|
-
unstable_next: unstable_next,
|
|
115
|
-
unstable_wrapCallback: unstable_wrapCallback,
|
|
116
|
-
unstable_getCurrentPriorityLevel: unstable_getCurrentPriorityLevel,
|
|
117
|
-
unstable_continueExecution: unstable_continueExecution,
|
|
118
|
-
unstable_pauseExecution: unstable_pauseExecution,
|
|
119
|
-
unstable_getFirstCallbackNode: unstable_getFirstCallbackNode,
|
|
120
|
-
unstable_forceFrameRate: unstable_forceFrameRate,
|
|
121
|
-
get unstable_IdlePriority() {
|
|
122
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
|
123
|
-
.Scheduler.unstable_IdlePriority;
|
|
124
|
-
},
|
|
125
|
-
get unstable_ImmediatePriority() {
|
|
126
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
|
127
|
-
.Scheduler.unstable_ImmediatePriority;
|
|
128
|
-
},
|
|
129
|
-
get unstable_LowPriority() {
|
|
130
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
|
131
|
-
.Scheduler.unstable_LowPriority;
|
|
132
|
-
},
|
|
133
|
-
get unstable_NormalPriority() {
|
|
134
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
|
135
|
-
.Scheduler.unstable_NormalPriority;
|
|
136
|
-
},
|
|
137
|
-
get unstable_UserBlockingPriority() {
|
|
138
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
|
139
|
-
.Scheduler.unstable_UserBlockingPriority;
|
|
140
|
-
},
|
|
141
|
-
get unstable_Profiling() {
|
|
142
|
-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
|
143
|
-
.Scheduler.unstable_Profiling;
|
|
144
|
-
},
|
|
145
|
-
});
|
|
146
|
-
});
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "example",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"lockfileVersion": 3,
|
|
5
|
-
"requires": true,
|
|
6
|
-
"packages": {
|
|
7
|
-
"": {
|
|
8
|
-
"name": "example",
|
|
9
|
-
"version": "1.0.0",
|
|
10
|
-
"license": "ISC",
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"react": "^16.14.0",
|
|
13
|
-
"react-dom": "^16.14.0"
|
|
14
|
-
},
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"react-test-renderer": "16.14.0"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"node_modules/js-tokens": {
|
|
20
|
-
"version": "4.0.0",
|
|
21
|
-
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
|
|
22
|
-
"integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="
|
|
23
|
-
},
|
|
24
|
-
"node_modules/loose-envify": {
|
|
25
|
-
"version": "1.4.0",
|
|
26
|
-
"resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
|
|
27
|
-
"integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"js-tokens": "^3.0.0 || ^4.0.0"
|
|
30
|
-
},
|
|
31
|
-
"bin": {
|
|
32
|
-
"loose-envify": "cli.js"
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
"node_modules/object-assign": {
|
|
36
|
-
"version": "4.1.1",
|
|
37
|
-
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
|
|
38
|
-
"integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
|
|
39
|
-
"engines": {
|
|
40
|
-
"node": ">=0.10.0"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"node_modules/prop-types": {
|
|
44
|
-
"version": "15.8.1",
|
|
45
|
-
"resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
|
|
46
|
-
"integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==",
|
|
47
|
-
"dependencies": {
|
|
48
|
-
"loose-envify": "^1.4.0",
|
|
49
|
-
"object-assign": "^4.1.1",
|
|
50
|
-
"react-is": "^16.13.1"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
"node_modules/react": {
|
|
54
|
-
"version": "16.14.0",
|
|
55
|
-
"resolved": "https://registry.npmjs.org/react/-/react-16.14.0.tgz",
|
|
56
|
-
"integrity": "sha512-0X2CImDkJGApiAlcf0ODKIneSwBPhqJawOa5wCtKbu7ZECrmS26NvtSILynQ66cgkT/RJ4LidJOc3bUESwmU8g==",
|
|
57
|
-
"dependencies": {
|
|
58
|
-
"loose-envify": "^1.1.0",
|
|
59
|
-
"object-assign": "^4.1.1",
|
|
60
|
-
"prop-types": "^15.6.2"
|
|
61
|
-
},
|
|
62
|
-
"engines": {
|
|
63
|
-
"node": ">=0.10.0"
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
"node_modules/react-dom": {
|
|
67
|
-
"version": "16.14.0",
|
|
68
|
-
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-16.14.0.tgz",
|
|
69
|
-
"integrity": "sha512-1gCeQXDLoIqMgqD3IO2Ah9bnf0w9kzhwN5q4FGnHZ67hBm9yePzB5JJAIQCc8x3pFnNlwFq4RidZggNAAkzWWw==",
|
|
70
|
-
"dependencies": {
|
|
71
|
-
"loose-envify": "^1.1.0",
|
|
72
|
-
"object-assign": "^4.1.1",
|
|
73
|
-
"prop-types": "^15.6.2",
|
|
74
|
-
"scheduler": "^0.19.1"
|
|
75
|
-
},
|
|
76
|
-
"peerDependencies": {
|
|
77
|
-
"react": "^16.14.0"
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
"node_modules/react-is": {
|
|
81
|
-
"version": "16.13.1",
|
|
82
|
-
"resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
|
|
83
|
-
"integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="
|
|
84
|
-
},
|
|
85
|
-
"node_modules/react-test-renderer": {
|
|
86
|
-
"version": "16.14.0",
|
|
87
|
-
"resolved": "https://registry.npmjs.org/react-test-renderer/-/react-test-renderer-16.14.0.tgz",
|
|
88
|
-
"integrity": "sha512-L8yPjqPE5CZO6rKsKXRO/rVPiaCOy0tQQJbC+UjPNlobl5mad59lvPjwFsQHTvL03caVDIVr9x9/OSgDe6I5Eg==",
|
|
89
|
-
"dev": true,
|
|
90
|
-
"dependencies": {
|
|
91
|
-
"object-assign": "^4.1.1",
|
|
92
|
-
"prop-types": "^15.6.2",
|
|
93
|
-
"react-is": "^16.8.6",
|
|
94
|
-
"scheduler": "^0.19.1"
|
|
95
|
-
},
|
|
96
|
-
"peerDependencies": {
|
|
97
|
-
"react": "^16.14.0"
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
"node_modules/scheduler": {
|
|
101
|
-
"version": "0.19.1",
|
|
102
|
-
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.19.1.tgz",
|
|
103
|
-
"integrity": "sha512-n/zwRWRYSUj0/3g/otKDRPMh6qv2SYMWNq85IEa8iZyAv8od9zDYpGSnpBEjNgcMNq6Scbu5KfIPxNF72R/2EA==",
|
|
104
|
-
"dependencies": {
|
|
105
|
-
"loose-envify": "^1.1.0",
|
|
106
|
-
"object-assign": "^4.1.1"
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
package/example/package.json
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "example",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "webpack.prod.config.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "../bin/fedx-scripts.js jest ./src",
|
|
8
|
-
"build": "../bin/fedx-scripts.js webpack",
|
|
9
|
-
"lint": "../bin/fedx-scripts.js eslint . --ext .jsx,.js",
|
|
10
|
-
"babel": "../bin/fedx-scripts.js babel src --out-dir dist/babel --source-maps --ignore **/*.test.jsx,**/*.test.js --copy-files",
|
|
11
|
-
"start": "../bin/fedx-scripts.js webpack-dev-server",
|
|
12
|
-
"serve": "../bin/fedx-scripts.js serve"
|
|
13
|
-
},
|
|
14
|
-
"keywords": [],
|
|
15
|
-
"author": "",
|
|
16
|
-
"license": "ISC",
|
|
17
|
-
"dependencies": {
|
|
18
|
-
"react": "^16.14.0",
|
|
19
|
-
"react-dom": "^16.14.0"
|
|
20
|
-
},
|
|
21
|
-
"devDependencies": {
|
|
22
|
-
"react-test-renderer": "16.14.0"
|
|
23
|
-
}
|
|
24
|
-
}
|
package/example/src/App.jsx
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import config from 'env.config';
|
|
2
|
-
import Image from './Image';
|
|
3
|
-
import appleUrl, { ReactComponent as Apple } from './apple.svg';
|
|
4
|
-
import appleImg from './apple.jpg';
|
|
5
|
-
|
|
6
|
-
import './style.scss';
|
|
7
|
-
|
|
8
|
-
// eslint-disable-next-line react/function-component-definition
|
|
9
|
-
export default function App() {
|
|
10
|
-
const newEnglandApples = ['macintosh', 'granny smith'];
|
|
11
|
-
const allApples = [...newEnglandApples, 'fuji', 'golden delicious'];
|
|
12
|
-
return (
|
|
13
|
-
<div>
|
|
14
|
-
<h1>Test page</h1>
|
|
15
|
-
<h2>SCSS parsing tests</h2>
|
|
16
|
-
<h3>The Apples</h3> ("The Apples" should be red)
|
|
17
|
-
<h2>ES6 parsing tests</h2>
|
|
18
|
-
<ul>
|
|
19
|
-
{allApples.map(apple => <li key={apple}>{apple}</li>)}
|
|
20
|
-
</ul>
|
|
21
|
-
<h2>JSX parsing tests</h2>
|
|
22
|
-
<Apple style={{ width: '10rem' }} />
|
|
23
|
-
<h2>TSX parsing tests</h2>
|
|
24
|
-
<Image src={appleUrl} alt="appleFromTsx" style={{ width: '10rem' }} />
|
|
25
|
-
<h2>Asset import tests</h2>
|
|
26
|
-
<img src={appleUrl} alt="apple" style={{ width: '10rem' }} />
|
|
27
|
-
<img src={appleUrl} alt="apple" style={{ width: '10rem' }} />
|
|
28
|
-
<br />
|
|
29
|
-
<img src={appleImg} alt="apple" style={{ width: '10rem' }} />
|
|
30
|
-
<p>Photo by Louis Hansel @shotsoflouis on Unsplash</p>
|
|
31
|
-
<h2>process.env tests</h2>
|
|
32
|
-
<p>Test process.env variable: {process.env.TEST_VARIABLE}</p>
|
|
33
|
-
<p>Non-existent process.env variable (nothing here is good): {process.env.I_AM_NOT_HERE}</p>
|
|
34
|
-
<h2>env.config.js tests</h2>
|
|
35
|
-
<p><span>env.config.js boolean test: </span>
|
|
36
|
-
{config.FALSE_VALUE === false ? config.CORRECT_BOOL_VALUE : config.INCORRECT_BOOL_VALUE}
|
|
37
|
-
</p>
|
|
38
|
-
<p>env.config.js integer test: {Number.isInteger(config.INTEGER_VALUE) ? 'It was an integer. Great.' : 'It was not an integer! Why not? '}</p>
|
|
39
|
-
<h2>Right-to-left language handling tests</h2>
|
|
40
|
-
<p className="text-align-right">I'm aligned right, but left in RTL.</p>
|
|
41
|
-
</div>
|
|
42
|
-
);
|
|
43
|
-
}
|
package/example/src/App.test.jsx
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/* eslint-disable global-require */
|
|
2
|
-
import renderer from 'react-test-renderer';
|
|
3
|
-
import App from './App';
|
|
4
|
-
|
|
5
|
-
describe('Basic test', () => {
|
|
6
|
-
it('should render', () => {
|
|
7
|
-
const Component = <App />;
|
|
8
|
-
const tree = renderer.create(Component);
|
|
9
|
-
expect(tree.toJSON()).toMatchSnapshot();
|
|
10
|
-
});
|
|
11
|
-
});
|