@openedx/frontend-build 13.0.15

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.
Files changed (231) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +10 -0
  3. package/.github/workflows/add-depr-ticket-to-depr-board.yml +19 -0
  4. package/.github/workflows/add-remove-label-on-comment.yml +20 -0
  5. package/.github/workflows/ci.yml +30 -0
  6. package/.github/workflows/commitlint.yml +10 -0
  7. package/.github/workflows/lockfileversion-check.yml +13 -0
  8. package/.github/workflows/release.yml +34 -0
  9. package/.github/workflows/self-assign-issue.yml +12 -0
  10. package/.github/workflows/sync-master-alpha.yml +35 -0
  11. package/.nvmrc +1 -0
  12. package/LICENSE +661 -0
  13. package/README.md +295 -0
  14. package/bin/fedx-scripts.js +88 -0
  15. package/config/.eslintrc.js +45 -0
  16. package/config/babel-preserve-modules.config.js +30 -0
  17. package/config/babel-typescript.config.js +5 -0
  18. package/config/babel.config.js +41 -0
  19. package/config/getLocalAliases.js +67 -0
  20. package/config/jest/fallback.env.config.js +12 -0
  21. package/config/jest/fileMock.js +1 -0
  22. package/config/jest/setupTest.js +10 -0
  23. package/config/jest/svgrMock.js +4 -0
  24. package/config/jest.config.js +43 -0
  25. package/config/webpack.common.config.js +40 -0
  26. package/config/webpack.dev-stage.config.js +191 -0
  27. package/config/webpack.dev.config.js +193 -0
  28. package/config/webpack.prod.config.js +219 -0
  29. package/coverage/clover.xml +6 -0
  30. package/coverage/coverage-final.json +1 -0
  31. package/coverage/lcov-report/base.css +224 -0
  32. package/coverage/lcov-report/block-navigation.js +87 -0
  33. package/coverage/lcov-report/favicon.png +0 -0
  34. package/coverage/lcov-report/index.html +101 -0
  35. package/coverage/lcov-report/prettify.css +1 -0
  36. package/coverage/lcov-report/prettify.js +2 -0
  37. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  38. package/coverage/lcov-report/sorter.js +196 -0
  39. package/coverage/lcov.info +0 -0
  40. package/docs/0001-non-usage-of-gatsby.rst +37 -0
  41. package/docs/0002-js-environment-config.md +47 -0
  42. package/docs/0003-fedx-scripts-serve.md +37 -0
  43. package/example/.env +0 -0
  44. package/example/.env.development +3 -0
  45. package/example/.env.test +2 -0
  46. package/example/.eslintignore +5 -0
  47. package/example/.eslintrc.js +3 -0
  48. package/example/dist/6.215b56a13e78398da5e3.js +3 -0
  49. package/example/dist/6.215b56a13e78398da5e3.js.LICENSE.txt +41 -0
  50. package/example/dist/6.215b56a13e78398da5e3.js.map +1 -0
  51. package/example/dist/app.80862a4da69beb9b3c51.css +3 -0
  52. package/example/dist/app.80862a4da69beb9b3c51.css.map +1 -0
  53. package/example/dist/app.80862a4da69beb9b3c51.js +2 -0
  54. package/example/dist/app.80862a4da69beb9b3c51.js.map +1 -0
  55. package/example/dist/b04e4301608fdcff39abf8f70b4a7de6.jpg +0 -0
  56. package/example/dist/babel/App.js +85 -0
  57. package/example/dist/babel/App.js.map +1 -0
  58. package/example/dist/babel/App.test.jsx +11 -0
  59. package/example/dist/babel/__snapshots__/App.test.jsx.snap +108 -0
  60. package/example/dist/babel/apple.jpg +0 -0
  61. package/example/dist/babel/apple.svg +1 -0
  62. package/example/dist/babel/index.js +13 -0
  63. package/example/dist/babel/index.js.map +1 -0
  64. package/example/dist/babel/style.scss +9 -0
  65. package/example/dist/cb28cdb1468c915e27e5cec9af64f22f.svg +1 -0
  66. package/example/dist/index.html +4 -0
  67. package/example/dist/report.html +39 -0
  68. package/example/dist/runtime.3eabd67eaf067d6c2f46.js +2 -0
  69. package/example/dist/runtime.3eabd67eaf067d6c2f46.js.map +1 -0
  70. package/example/env.config.js +6 -0
  71. package/example/node_modules/.package-lock.json +98 -0
  72. package/example/node_modules/js-tokens/CHANGELOG.md +151 -0
  73. package/example/node_modules/js-tokens/LICENSE +21 -0
  74. package/example/node_modules/js-tokens/README.md +240 -0
  75. package/example/node_modules/js-tokens/index.js +23 -0
  76. package/example/node_modules/js-tokens/package.json +30 -0
  77. package/example/node_modules/loose-envify/LICENSE +21 -0
  78. package/example/node_modules/loose-envify/README.md +45 -0
  79. package/example/node_modules/loose-envify/cli.js +16 -0
  80. package/example/node_modules/loose-envify/custom.js +4 -0
  81. package/example/node_modules/loose-envify/index.js +3 -0
  82. package/example/node_modules/loose-envify/loose-envify.js +36 -0
  83. package/example/node_modules/loose-envify/package.json +36 -0
  84. package/example/node_modules/loose-envify/replace.js +65 -0
  85. package/example/node_modules/object-assign/index.js +90 -0
  86. package/example/node_modules/object-assign/license +21 -0
  87. package/example/node_modules/object-assign/package.json +42 -0
  88. package/example/node_modules/object-assign/readme.md +61 -0
  89. package/example/node_modules/prop-types/LICENSE +21 -0
  90. package/example/node_modules/prop-types/README.md +302 -0
  91. package/example/node_modules/prop-types/checkPropTypes.js +103 -0
  92. package/example/node_modules/prop-types/factory.js +19 -0
  93. package/example/node_modules/prop-types/factoryWithThrowingShims.js +65 -0
  94. package/example/node_modules/prop-types/factoryWithTypeCheckers.js +610 -0
  95. package/example/node_modules/prop-types/index.js +19 -0
  96. package/example/node_modules/prop-types/lib/ReactPropTypesSecret.js +12 -0
  97. package/example/node_modules/prop-types/lib/has.js +1 -0
  98. package/example/node_modules/prop-types/package.json +60 -0
  99. package/example/node_modules/prop-types/prop-types.js +1315 -0
  100. package/example/node_modules/prop-types/prop-types.min.js +1 -0
  101. package/example/node_modules/react/LICENSE +21 -0
  102. package/example/node_modules/react/README.md +13 -0
  103. package/example/node_modules/react/build-info.json +8 -0
  104. package/example/node_modules/react/cjs/react-jsx-dev-runtime.development.js +889 -0
  105. package/example/node_modules/react/cjs/react-jsx-dev-runtime.production.min.js +9 -0
  106. package/example/node_modules/react/cjs/react-jsx-runtime.development.js +911 -0
  107. package/example/node_modules/react/cjs/react-jsx-runtime.production.min.js +10 -0
  108. package/example/node_modules/react/cjs/react.development.js +1912 -0
  109. package/example/node_modules/react/cjs/react.production.min.js +25 -0
  110. package/example/node_modules/react/index.js +7 -0
  111. package/example/node_modules/react/jsx-dev-runtime.js +7 -0
  112. package/example/node_modules/react/jsx-runtime.js +7 -0
  113. package/example/node_modules/react/package.json +44 -0
  114. package/example/node_modules/react/umd/react.development.js +3318 -0
  115. package/example/node_modules/react/umd/react.production.min.js +32 -0
  116. package/example/node_modules/react/umd/react.profiling.min.js +39 -0
  117. package/example/node_modules/react-dom/LICENSE +21 -0
  118. package/example/node_modules/react-dom/README.md +54 -0
  119. package/example/node_modules/react-dom/build-info.json +8 -0
  120. package/example/node_modules/react-dom/cjs/react-dom-server.browser.development.js +4043 -0
  121. package/example/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js +54 -0
  122. package/example/node_modules/react-dom/cjs/react-dom-server.node.development.js +4085 -0
  123. package/example/node_modules/react-dom/cjs/react-dom-server.node.production.min.js +55 -0
  124. package/example/node_modules/react-dom/cjs/react-dom-test-utils.development.js +1480 -0
  125. package/example/node_modules/react-dom/cjs/react-dom-test-utils.production.min.js +35 -0
  126. package/example/node_modules/react-dom/cjs/react-dom-unstable-fizz.browser.development.js +141 -0
  127. package/example/node_modules/react-dom/cjs/react-dom-unstable-fizz.browser.production.min.js +11 -0
  128. package/example/node_modules/react-dom/cjs/react-dom-unstable-fizz.node.development.js +162 -0
  129. package/example/node_modules/react-dom/cjs/react-dom-unstable-fizz.node.production.min.js +12 -0
  130. package/example/node_modules/react-dom/cjs/react-dom-unstable-native-dependencies.development.js +1629 -0
  131. package/example/node_modules/react-dom/cjs/react-dom-unstable-native-dependencies.production.min.js +31 -0
  132. package/example/node_modules/react-dom/cjs/react-dom.development.js +25012 -0
  133. package/example/node_modules/react-dom/cjs/react-dom.production.min.js +292 -0
  134. package/example/node_modules/react-dom/cjs/react-dom.profiling.min.js +299 -0
  135. package/example/node_modules/react-dom/index.js +38 -0
  136. package/example/node_modules/react-dom/package.json +60 -0
  137. package/example/node_modules/react-dom/profiling.js +38 -0
  138. package/example/node_modules/react-dom/server.browser.js +7 -0
  139. package/example/node_modules/react-dom/server.js +3 -0
  140. package/example/node_modules/react-dom/server.node.js +7 -0
  141. package/example/node_modules/react-dom/test-utils.js +7 -0
  142. package/example/node_modules/react-dom/umd/react-dom-server.browser.development.js +4147 -0
  143. package/example/node_modules/react-dom/umd/react-dom-server.browser.production.min.js +45 -0
  144. package/example/node_modules/react-dom/umd/react-dom-test-utils.development.js +1499 -0
  145. package/example/node_modules/react-dom/umd/react-dom-test-utils.production.min.js +30 -0
  146. package/example/node_modules/react-dom/umd/react-dom-unstable-fizz.browser.development.js +141 -0
  147. package/example/node_modules/react-dom/umd/react-dom-unstable-fizz.browser.production.min.js +10 -0
  148. package/example/node_modules/react-dom/umd/react-dom-unstable-native-dependencies.development.js +1628 -0
  149. package/example/node_modules/react-dom/umd/react-dom-unstable-native-dependencies.production.min.js +28 -0
  150. package/example/node_modules/react-dom/umd/react-dom.development.js +25147 -0
  151. package/example/node_modules/react-dom/umd/react-dom.production.min.js +239 -0
  152. package/example/node_modules/react-dom/umd/react-dom.profiling.min.js +247 -0
  153. package/example/node_modules/react-dom/unstable-fizz.browser.js +7 -0
  154. package/example/node_modules/react-dom/unstable-fizz.js +3 -0
  155. package/example/node_modules/react-dom/unstable-fizz.node.js +7 -0
  156. package/example/node_modules/react-dom/unstable-native-dependencies.js +7 -0
  157. package/example/node_modules/react-is/LICENSE +21 -0
  158. package/example/node_modules/react-is/README.md +104 -0
  159. package/example/node_modules/react-is/build-info.json +8 -0
  160. package/example/node_modules/react-is/cjs/react-is.development.js +181 -0
  161. package/example/node_modules/react-is/cjs/react-is.production.min.js +15 -0
  162. package/example/node_modules/react-is/index.js +7 -0
  163. package/example/node_modules/react-is/package.json +27 -0
  164. package/example/node_modules/react-is/umd/react-is.development.js +181 -0
  165. package/example/node_modules/react-is/umd/react-is.production.min.js +13 -0
  166. package/example/node_modules/react-test-renderer/LICENSE +21 -0
  167. package/example/node_modules/react-test-renderer/README.md +26 -0
  168. package/example/node_modules/react-test-renderer/build-info.json +8 -0
  169. package/example/node_modules/react-test-renderer/cjs/react-test-renderer-shallow.development.js +1019 -0
  170. package/example/node_modules/react-test-renderer/cjs/react-test-renderer-shallow.production.min.js +35 -0
  171. package/example/node_modules/react-test-renderer/cjs/react-test-renderer.development.js +15596 -0
  172. package/example/node_modules/react-test-renderer/cjs/react-test-renderer.production.min.js +181 -0
  173. package/example/node_modules/react-test-renderer/index.js +7 -0
  174. package/example/node_modules/react-test-renderer/package.json +41 -0
  175. package/example/node_modules/react-test-renderer/shallow.js +7 -0
  176. package/example/node_modules/react-test-renderer/umd/react-test-renderer-shallow.development.js +1176 -0
  177. package/example/node_modules/react-test-renderer/umd/react-test-renderer-shallow.production.min.js +31 -0
  178. package/example/node_modules/react-test-renderer/umd/react-test-renderer.development.js +15709 -0
  179. package/example/node_modules/react-test-renderer/umd/react-test-renderer.production.min.js +151 -0
  180. package/example/node_modules/scheduler/LICENSE +21 -0
  181. package/example/node_modules/scheduler/README.md +9 -0
  182. package/example/node_modules/scheduler/build-info.json +8 -0
  183. package/example/node_modules/scheduler/cjs/scheduler-tracing.development.js +349 -0
  184. package/example/node_modules/scheduler/cjs/scheduler-tracing.production.min.js +10 -0
  185. package/example/node_modules/scheduler/cjs/scheduler-tracing.profiling.min.js +17 -0
  186. package/example/node_modules/scheduler/cjs/scheduler-unstable_mock.development.js +857 -0
  187. package/example/node_modules/scheduler/cjs/scheduler-unstable_mock.production.min.js +20 -0
  188. package/example/node_modules/scheduler/cjs/scheduler.development.js +858 -0
  189. package/example/node_modules/scheduler/cjs/scheduler.production.min.js +21 -0
  190. package/example/node_modules/scheduler/index.js +7 -0
  191. package/example/node_modules/scheduler/package.json +39 -0
  192. package/example/node_modules/scheduler/tracing-profiling.js +7 -0
  193. package/example/node_modules/scheduler/tracing.js +7 -0
  194. package/example/node_modules/scheduler/umd/scheduler-tracing.development.js +80 -0
  195. package/example/node_modules/scheduler/umd/scheduler-tracing.production.min.js +80 -0
  196. package/example/node_modules/scheduler/umd/scheduler-tracing.profiling.min.js +80 -0
  197. package/example/node_modules/scheduler/umd/scheduler-unstable_mock.development.js +857 -0
  198. package/example/node_modules/scheduler/umd/scheduler-unstable_mock.production.min.js +17 -0
  199. package/example/node_modules/scheduler/umd/scheduler.development.js +152 -0
  200. package/example/node_modules/scheduler/umd/scheduler.production.min.js +146 -0
  201. package/example/node_modules/scheduler/umd/scheduler.profiling.min.js +146 -0
  202. package/example/node_modules/scheduler/unstable_mock.js +7 -0
  203. package/example/package-lock.json +110 -0
  204. package/example/package.json +24 -0
  205. package/example/public/index.html +13 -0
  206. package/example/src/App.jsx +40 -0
  207. package/example/src/App.test.jsx +11 -0
  208. package/example/src/__snapshots__/App.test.jsx.snap +108 -0
  209. package/example/src/apple.jpg +0 -0
  210. package/example/src/apple.svg +1 -0
  211. package/example/src/index.jsx +13 -0
  212. package/example/src/style.scss +9 -0
  213. package/index.js +7 -0
  214. package/lib/ConfigPreset.js +28 -0
  215. package/lib/createConfig.js +7 -0
  216. package/lib/formatter.js +10 -0
  217. package/lib/getBaseConfig.js +9 -0
  218. package/lib/plugins/html-webpack-new-relic-plugin/HtmlWebpackNewRelicPlugin.js +86 -0
  219. package/lib/plugins/html-webpack-new-relic-plugin/LICENSE +21 -0
  220. package/lib/plugins/html-webpack-new-relic-plugin/README.md +7 -0
  221. package/lib/plugins/html-webpack-new-relic-plugin/index.js +3 -0
  222. package/lib/plugins/html-webpack-new-relic-plugin/test/HtmlWebpackNewRelicPlugin.test.js +80 -0
  223. package/lib/plugins/html-webpack-new-relic-plugin/test/fixtures/entry.js +1 -0
  224. package/lib/presets.js +75 -0
  225. package/lib/resolveFilepaths.js +14 -0
  226. package/lib/resolvePrivateEnvConfig.js +15 -0
  227. package/lib/scripts/serve.js +78 -0
  228. package/openedx.yaml +10 -0
  229. package/package.json +95 -0
  230. package/renovate.json +22 -0
  231. package/smoke-test.sh +11 -0
@@ -0,0 +1,17 @@
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)}});
@@ -0,0 +1,152 @@
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
+ });
@@ -0,0 +1,146 @@
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
+ });
@@ -0,0 +1,146 @@
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
+ });
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ if (process.env.NODE_ENV === 'production') {
4
+ module.exports = require('./cjs/scheduler-unstable_mock.production.min.js');
5
+ } else {
6
+ module.exports = require('./cjs/scheduler-unstable_mock.development.js');
7
+ }
@@ -0,0 +1,110 @@
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
+ }
@@ -0,0 +1,24 @@
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
+ }
@@ -0,0 +1,13 @@
1
+ <!doctype html>
2
+ <html lang="en-us">
3
+
4
+ <head>
5
+ <title>Test</title>
6
+ <link rel="shortcut icon" href="<%=htmlWebpackPlugin.options.FAVICON_URL%>" type="image/x-icon" />
7
+ </head>
8
+
9
+ <body>
10
+ <div id="root"></div>
11
+ </body>
12
+
13
+ </html>
@@ -0,0 +1,40 @@
1
+ import config from 'env.config';
2
+ import appleUrl, { ReactComponent as Apple } from './apple.svg';
3
+ import appleImg from './apple.jpg';
4
+
5
+ import './style.scss';
6
+
7
+ // eslint-disable-next-line react/function-component-definition
8
+ export default function App() {
9
+ const newEnglandApples = ['macintosh', 'granny smith'];
10
+ const allApples = [...newEnglandApples, 'fuji', 'golden delicious'];
11
+ return (
12
+ <div>
13
+ <h1>Test page</h1>
14
+ <h2>SCSS parsing tests</h2>
15
+ <h3>The Apples</h3> (&quot;The Apples&quot; should be red)
16
+ <h2>ES6 parsing tests</h2>
17
+ <ul>
18
+ {allApples.map(apple => <li key={apple}>{apple}</li>)}
19
+ </ul>
20
+ <h2>JSX parsing tests</h2>
21
+ <Apple style={{ width: '10rem' }} />
22
+ <h2>Asset import tests</h2>
23
+ <img src={appleUrl} alt="apple" style={{ width: '10rem' }} />
24
+ <img src={appleUrl} alt="apple" style={{ width: '10rem' }} />
25
+ <br />
26
+ <img src={appleImg} alt="apple" style={{ width: '10rem' }} />
27
+ <p>Photo by Louis Hansel @shotsoflouis on Unsplash</p>
28
+ <h2>process.env tests</h2>
29
+ <p>Test process.env variable: {process.env.TEST_VARIABLE}</p>
30
+ <p>Non-existent process.env variable (nothing here is good): {process.env.I_AM_NOT_HERE}</p>
31
+ <h2>env.config.js tests</h2>
32
+ <p><span>env.config.js boolean test: </span>
33
+ {config.FALSE_VALUE === false ? config.CORRECT_BOOL_VALUE : config.INCORRECT_BOOL_VALUE}
34
+ </p>
35
+ <p>env.config.js integer test: {Number.isInteger(config.INTEGER_VALUE) ? 'It was an integer. Great.' : 'It was not an integer! Why not? '}</p>
36
+ <h2>Right-to-left language handling tests</h2>
37
+ <p className="text-align-right">I&apos;m aligned right, but left in RTL.</p>
38
+ </div>
39
+ );
40
+ }
@@ -0,0 +1,11 @@
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
+ });