@jsenv/cli 0.1.25 → 0.1.27
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 +1 -1
- package/template-node-package/.jsenv/jsenv_tests_output.txt +1 -1
- package/template-node-package/eslint.config.mjs +5 -0
- package/template-node-package/package.json +4 -6
- package/template-web/.jsenv/chrome@127.00/tests/animals.test.html@L13C5-L30C14.js +1 -1
- package/template-web/.jsenv/chrome@127.00/tests/animals.test.html@L13C5-L30C14.js.map +3 -3
- package/template-web/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/autoreload.js +377 -0
- package/template-web/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/autoreload.js.map +11 -0
- package/template-web/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/import_meta_hot.js +83 -0
- package/template-web/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/ribbon.js +95 -0
- package/template-web/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/server_events_client.js +458 -0
- package/template-web/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/independent/assert/dist/jsenv_assert_browser.js +6193 -0
- package/template-web/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/internal/ast/src/html/html_src_set.js +18 -0
- package/template-web/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/internal/plugin-supervisor/dist/js/supervisor.js +1251 -0
- package/template-web/.jsenv/chrome@128.00/app/animals.js +11 -0
- package/template-web/.jsenv/chrome@128.00/app/counter.js +11 -0
- package/template-web/.jsenv/chrome@128.00/index.html +69 -0
- package/template-web/.jsenv/chrome@128.00/index.html@L7C5-L20C13.css +12 -0
- package/template-web/.jsenv/chrome@128.00/index.html@L9C7-L13C16.js +5 -0
- package/template-web/.jsenv/chrome@128.00/jsenv_logo.svg +140 -0
- package/template-web/.jsenv/chrome@128.00/main.css +4 -0
- package/template-web/.jsenv/chrome@128.00/main.js +35 -0
- package/template-web/.jsenv/chrome@128.00/main.js.map +11 -0
- package/template-web/.jsenv/chrome@128.00/tests/animals.test.html +52 -0
- package/template-web/.jsenv/chrome@128.00/tests/animals.test.html@L13C5-L30C14.js +19 -0
- package/template-web/.jsenv/chrome@128.00/tests/animals.test.html@L13C5-L30C14.js.map +11 -0
- package/template-web/.jsenv/chrome@128.00/tests/animals.test.html@L9C7-L13C16.js +5 -0
- package/template-web/.jsenv/jsenv_tests_output.txt +3 -3
- package/template-web/eslint.config.mjs +6 -0
- package/template-web/package.json +5 -8
- package/template-web/src/tests/animals.test.html +1 -1
- package/template-web-components/.jsenv/chrome@127.00/tests/animals.test.html@L13C5-L30C14.js +1 -1
- package/template-web-components/.jsenv/chrome@127.00/tests/animals.test.html@L13C5-L30C14.js.map +3 -3
- package/template-web-components/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/autoreload.js +377 -0
- package/template-web-components/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/autoreload.js.map +11 -0
- package/template-web-components/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/import_meta_hot.js +83 -0
- package/template-web-components/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/ribbon.js +95 -0
- package/template-web-components/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/server_events_client.js +458 -0
- package/template-web-components/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/independent/assert/dist/jsenv_assert_browser.js +6193 -0
- package/template-web-components/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/independent/custom-elements-redefine/src/main.js +209 -0
- package/template-web-components/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/internal/ast/src/html/html_src_set.js +18 -0
- package/template-web-components/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/internal/plugin-supervisor/dist/js/supervisor.js +1251 -0
- package/template-web-components/.jsenv/chrome@128.00/app/animals.js +11 -0
- package/template-web-components/.jsenv/chrome@128.00/app/app_custom_element.css +4 -0
- package/template-web-components/.jsenv/chrome@128.00/app/app_custom_element.js +33 -0
- package/template-web-components/.jsenv/chrome@128.00/app/app_custom_element.js.map +11 -0
- package/template-web-components/.jsenv/chrome@128.00/app/counter.js +11 -0
- package/template-web-components/.jsenv/chrome@128.00/app/custom_elements_redefine.js +9 -0
- package/template-web-components/.jsenv/chrome@128.00/app/custom_elements_redefine.js.map +11 -0
- package/template-web-components/.jsenv/chrome@128.00/index.html +69 -0
- package/template-web-components/.jsenv/chrome@128.00/index.html@L7C5-L20C13.css +12 -0
- package/template-web-components/.jsenv/chrome@128.00/index.html@L9C7-L13C16.js +5 -0
- package/template-web-components/.jsenv/chrome@128.00/jsenv_logo.svg +140 -0
- package/template-web-components/.jsenv/chrome@128.00/main.js +15 -0
- package/template-web-components/.jsenv/chrome@128.00/main.js.map +11 -0
- package/template-web-components/.jsenv/chrome@128.00/tests/animals.test.html +52 -0
- package/template-web-components/.jsenv/chrome@128.00/tests/animals.test.html@L13C5-L30C14.js +19 -0
- package/template-web-components/.jsenv/chrome@128.00/tests/animals.test.html@L13C5-L30C14.js.map +11 -0
- package/template-web-components/.jsenv/chrome@128.00/tests/animals.test.html@L9C7-L13C16.js +5 -0
- package/template-web-components/.jsenv/jsenv_tests_output.txt +2 -2
- package/template-web-components/eslint.config.mjs +6 -0
- package/template-web-components/package.json +5 -8
- package/template-web-components/src/tests/animals.test.html +1 -1
- package/template-web-preact/.jsenv/chrome@127.00/tests/animals.test.html@L13C5-L30C14.js +1 -1
- package/template-web-preact/.jsenv/chrome@127.00/tests/animals.test.html@L13C5-L30C14.js.map +3 -3
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/autoreload.js +377 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/autoreload.js.map +11 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/import_meta_hot.js +83 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/ribbon.js +95 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/server_events_client.js +458 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/@prefresh/core/src/computeKey.js +38 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/@prefresh/core/src/computeKey.js.map +11 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/@prefresh/core/src/constants.js +13 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/@prefresh/core/src/index.js +210 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/@prefresh/core/src/index.js.map +11 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/@prefresh/core/src/runtime/catchError.js +17 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/@prefresh/core/src/runtime/catchError.js.map +11 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/@prefresh/core/src/runtime/debounceRendering.js +21 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/@prefresh/core/src/runtime/debounceRendering.js.map +11 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/@prefresh/core/src/runtime/signaturesForType.js +2 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/@prefresh/core/src/runtime/unmount.js +20 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/@prefresh/core/src/runtime/unmount.js.map +11 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/@prefresh/core/src/runtime/vnode.js +62 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/@prefresh/core/src/runtime/vnode.js.map +11 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/@prefresh/core/src/runtime/vnodesForComponent.js +3 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/@prefresh/utils/src/index.js +43 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/preact/debug/dist/debug.module.js +2 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/preact/debug/dist/debug.module.js.map +175 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/preact/devtools/dist/devtools.module.js +2 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/preact/devtools/dist/devtools.module.js.map +29 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/preact/dist/preact.module.js +2 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/preact/dist/preact.module.js.map +266 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/preact/hooks/dist/hooks.module.js +195 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/preact/hooks/dist/hooks.module.js.map +168 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js +2 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js.map +77 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/independent/assert/dist/jsenv_assert_browser.js +6193 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/internal/ast/src/html/html_src_set.js +18 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/internal/plugin-supervisor/dist/js/supervisor.js +1251 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/related/plugin-preact/src/client/preact_refresh.js +36 -0
- package/template-web-preact/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/related/plugin-preact/src/client/preact_refresh.js.map +11 -0
- package/template-web-preact/.jsenv/chrome@128.00/app/animals.js +11 -0
- package/template-web-preact/.jsenv/chrome@128.00/app/app.css +43 -0
- package/template-web-preact/.jsenv/chrome@128.00/app/app.jsx +97 -0
- package/template-web-preact/.jsenv/chrome@128.00/app/app.jsx.map +44 -0
- package/template-web-preact/.jsenv/chrome@128.00/app/counter.jsx +47 -0
- package/template-web-preact/.jsenv/chrome@128.00/app/counter.jsx.map +33 -0
- package/template-web-preact/.jsenv/chrome@128.00/index.html +68 -0
- package/template-web-preact/.jsenv/chrome@128.00/index.html@L11C7-L15C16.js +5 -0
- package/template-web-preact/.jsenv/chrome@128.00/index.html@L7C5-L21C13.css +10 -0
- package/template-web-preact/.jsenv/chrome@128.00/main.jsx +9 -0
- package/template-web-preact/.jsenv/chrome@128.00/main.jsx.map +24 -0
- package/template-web-preact/.jsenv/chrome@128.00/preact_logo.svg +6 -0
- package/template-web-preact/.jsenv/chrome@128.00/tests/animals.test.html +53 -0
- package/template-web-preact/.jsenv/chrome@128.00/tests/animals.test.html@L13C5-L30C14.js +19 -0
- package/template-web-preact/.jsenv/chrome@128.00/tests/animals.test.html@L13C5-L30C14.js.map +11 -0
- package/template-web-preact/.jsenv/chrome@128.00/tests/animals.test.html@L9C7-L13C16.js +5 -0
- package/template-web-preact/.jsenv/craft/app/app.jsx +4 -1
- package/template-web-preact/.jsenv/jsenv_tests_output.txt +2 -2
- package/template-web-preact/eslint.config.mjs +7 -0
- package/template-web-preact/package.json +5 -9
- package/template-web-preact/src/app/app.jsx +1 -1
- package/template-web-preact/src/main.jsx +0 -1
- package/template-web-preact/src/tests/animals.test.html +1 -1
- package/template-web-react/.jsenv/chrome@127.00/app/app.jsx +1 -1
- package/template-web-react/.jsenv/chrome@127.00/app/counter.jsx +1 -1
- package/template-web-react/.jsenv/chrome@127.00/cjs_to_esm/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react/index.development.js__compile_info__.json +2 -2
- package/template-web-react/.jsenv/chrome@127.00/cjs_to_esm/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react/jsx-dev-runtime.development.js__compile_info__.json +2 -2
- package/template-web-react/.jsenv/chrome@127.00/cjs_to_esm/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react-dom/client.development.js__compile_info__.json +2 -2
- package/template-web-react/.jsenv/chrome@127.00/cjs_to_esm/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react-refresh/runtime.development.js__compile_info__.json +2 -2
- package/template-web-react/.jsenv/chrome@127.00/cjs_to_esm/__compile_context__.json +1 -1
- package/template-web-react/.jsenv/chrome@127.00/tests/animals.test.html@L13C5-L30C14.js +1 -1
- package/template-web-react/.jsenv/chrome@127.00/tests/animals.test.html@L13C5-L30C14.js.map +3 -3
- package/template-web-react/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/autoreload.js +377 -0
- package/template-web-react/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/autoreload.js.map +11 -0
- package/template-web-react/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/import_meta_hot.js +83 -0
- package/template-web-react/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/ribbon.js +95 -0
- package/template-web-react/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/server_events_client.js +458 -0
- package/template-web-react/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react/index.js +7 -0
- package/template-web-react/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react/jsx-dev-runtime.js +7 -0
- package/template-web-react/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react/react/jsx-dev-runtime.jsx +4085 -0
- package/template-web-react/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react/react/jsx-dev-runtime.jsx.map +22 -0
- package/template-web-react/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react/react.jsx +2796 -0
- package/template-web-react/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react/react.jsx.map +17 -0
- package/template-web-react/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react-dom/client.js +25 -0
- package/template-web-react/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react-dom/react-dom/client.jsx +30568 -0
- package/template-web-react/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react-dom/react-dom/client.jsx.map +24 -0
- package/template-web-react/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react-refresh/runtime.js +685 -0
- package/template-web-react/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react-refresh/runtime.js.map +17 -0
- package/template-web-react/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/independent/assert/dist/jsenv_assert_browser.js +6193 -0
- package/template-web-react/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/internal/ast/src/html/html_src_set.js +18 -0
- package/template-web-react/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/internal/plugin-supervisor/dist/js/supervisor.js +1251 -0
- package/template-web-react/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/related/plugin-react/src/client/react_refresh.js +33 -0
- package/template-web-react/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/related/plugin-react/src/client/react_refresh.js.map +11 -0
- package/template-web-react/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/related/plugin-react/src/client/react_refresh_preamble.js +22 -0
- package/template-web-react/.jsenv/chrome@128.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/related/plugin-react/src/client/react_refresh_preamble.js.map +11 -0
- package/template-web-react/.jsenv/chrome@128.00/app/animals.js +11 -0
- package/template-web-react/.jsenv/chrome@128.00/app/app.css +43 -0
- package/template-web-react/.jsenv/chrome@128.00/app/app.jsx +98 -0
- package/template-web-react/.jsenv/chrome@128.00/app/app.jsx.map +49 -0
- package/template-web-react/.jsenv/chrome@128.00/app/counter.jsx +45 -0
- package/template-web-react/.jsenv/chrome@128.00/app/counter.jsx.map +32 -0
- package/template-web-react/.jsenv/chrome@128.00/cjs_to_esm/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react/index.development.js +2796 -0
- package/template-web-react/.jsenv/chrome@128.00/cjs_to_esm/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react/index.development.js__compile_info__.json +18 -0
- package/template-web-react/.jsenv/chrome@128.00/cjs_to_esm/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react/index.development.map +1 -0
- package/template-web-react/.jsenv/chrome@128.00/cjs_to_esm/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react/jsx-dev-runtime.development.js +4085 -0
- package/template-web-react/.jsenv/chrome@128.00/cjs_to_esm/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react/jsx-dev-runtime.development.js__compile_info__.json +26 -0
- package/template-web-react/.jsenv/chrome@128.00/cjs_to_esm/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react/jsx-dev-runtime.development.map +1 -0
- package/template-web-react/.jsenv/chrome@128.00/cjs_to_esm/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react-dom/client.development.js +30568 -0
- package/template-web-react/.jsenv/chrome@128.00/cjs_to_esm/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react-dom/client.development.js__compile_info__.json +30 -0
- package/template-web-react/.jsenv/chrome@128.00/cjs_to_esm/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react-dom/client.development.map +1 -0
- package/template-web-react/.jsenv/chrome@128.00/cjs_to_esm/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react-refresh/runtime.development.js +685 -0
- package/template-web-react/.jsenv/chrome@128.00/cjs_to_esm/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react-refresh/runtime.development.js__compile_info__.json +18 -0
- package/template-web-react/.jsenv/chrome@128.00/cjs_to_esm/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react-refresh/runtime.development.map +1 -0
- package/template-web-react/.jsenv/chrome@128.00/cjs_to_esm/__compile_context__.json +3 -0
- package/template-web-react/.jsenv/chrome@128.00/index.html +68 -0
- package/template-web-react/.jsenv/chrome@128.00/index.html@L11C7-L15C16.js +5 -0
- package/template-web-react/.jsenv/chrome@128.00/index.html@L7C5-L21C13.css +10 -0
- package/template-web-react/.jsenv/chrome@128.00/main.jsx +21 -0
- package/template-web-react/.jsenv/chrome@128.00/main.jsx.map +33 -0
- package/template-web-react/.jsenv/chrome@128.00/react_logo.svg +7 -0
- package/template-web-react/.jsenv/chrome@128.00/tests/animals.test.html +53 -0
- package/template-web-react/.jsenv/chrome@128.00/tests/animals.test.html@L13C5-L30C14.js +19 -0
- package/template-web-react/.jsenv/chrome@128.00/tests/animals.test.html@L13C5-L30C14.js.map +11 -0
- package/template-web-react/.jsenv/chrome@128.00/tests/animals.test.html@L9C7-L13C16.js +5 -0
- package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react/index.production.js__compile_info__.json +2 -2
- package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react/jsx-runtime.production.js__compile_info__.json +2 -2
- package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react-dom/client.production.js__compile_info__.json +2 -2
- package/template-web-react/.jsenv/craft/cjs_to_esm/__compile_context__.json +1 -1
- package/template-web-react/.jsenv/jsenv_tests_output.txt +3 -3
- package/template-web-react/eslint.config.mjs +7 -0
- package/template-web-react/package.json +6 -10
- package/template-web-react/src/app/app.jsx +0 -1
- package/template-web-react/src/main.jsx +0 -1
- package/template-web-react/src/tests/animals.test.html +1 -1
- package/template-node-package/.eslintignore +0 -2
- package/template-node-package/.eslintrc.cjs +0 -102
- package/template-web/.eslintignore +0 -3
- package/template-web/.eslintrc.cjs +0 -138
- package/template-web-components/.eslintignore +0 -3
- package/template-web-components/.eslintrc.cjs +0 -138
- package/template-web-preact/.eslintignore +0 -3
- package/template-web-preact/.eslintrc.cjs +0 -175
- package/template-web-react/.eslintignore +0 -3
- package/template-web-react/.eslintrc.cjs +0 -175
|
@@ -0,0 +1,685 @@
|
|
|
1
|
+
function getDefaultExportFromCjs (x) {
|
|
2
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
var runtime = {exports: {}};
|
|
6
|
+
|
|
7
|
+
var reactRefreshRuntime_development = {};
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-refresh-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
{
|
|
20
|
+
(function() {
|
|
21
|
+
|
|
22
|
+
// ATTENTION
|
|
23
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
|
|
24
|
+
var REACT_MEMO_TYPE = Symbol.for('react.memo');
|
|
25
|
+
|
|
26
|
+
var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map; // We never remove these associations.
|
|
27
|
+
// It's OK to reference families, but use WeakMap/Set for types.
|
|
28
|
+
|
|
29
|
+
var allFamiliesByID = new Map();
|
|
30
|
+
var allFamiliesByType = new PossiblyWeakMap();
|
|
31
|
+
var allSignaturesByType = new PossiblyWeakMap(); // This WeakMap is read by React, so we only put families
|
|
32
|
+
// that have actually been edited here. This keeps checks fast.
|
|
33
|
+
// $FlowIssue
|
|
34
|
+
|
|
35
|
+
var updatedFamiliesByType = new PossiblyWeakMap(); // This is cleared on every performReactRefresh() call.
|
|
36
|
+
// It is an array of [Family, NextType] tuples.
|
|
37
|
+
|
|
38
|
+
var pendingUpdates = []; // This is injected by the renderer via DevTools globalThis hook.
|
|
39
|
+
|
|
40
|
+
var helpersByRendererID = new Map();
|
|
41
|
+
var helpersByRoot = new Map(); // We keep track of mounted roots so we can schedule updates.
|
|
42
|
+
|
|
43
|
+
var mountedRoots = new Set(); // If a root captures an error, we remember it so we can retry on edit.
|
|
44
|
+
|
|
45
|
+
var failedRoots = new Set(); // In environments that support WeakMap, we also remember the last element for every root.
|
|
46
|
+
// It needs to be weak because we do this even for roots that failed to mount.
|
|
47
|
+
// If there is no WeakMap, we won't attempt to do retrying.
|
|
48
|
+
// $FlowIssue
|
|
49
|
+
|
|
50
|
+
var rootElements = // $FlowIssue
|
|
51
|
+
typeof WeakMap === 'function' ? new WeakMap() : null;
|
|
52
|
+
var isPerformingRefresh = false;
|
|
53
|
+
|
|
54
|
+
function computeFullKey(signature) {
|
|
55
|
+
if (signature.fullKey !== null) {
|
|
56
|
+
return signature.fullKey;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
var fullKey = signature.ownKey;
|
|
60
|
+
var hooks;
|
|
61
|
+
|
|
62
|
+
try {
|
|
63
|
+
hooks = signature.getCustomHooks();
|
|
64
|
+
} catch (err) {
|
|
65
|
+
// This can happen in an edge case, e.g. if expression like Foo.useSomething
|
|
66
|
+
// depends on Foo which is lazily initialized during rendering.
|
|
67
|
+
// In that case just assume we'll have to remount.
|
|
68
|
+
signature.forceReset = true;
|
|
69
|
+
signature.fullKey = fullKey;
|
|
70
|
+
return fullKey;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
for (var i = 0; i < hooks.length; i++) {
|
|
74
|
+
var hook = hooks[i];
|
|
75
|
+
|
|
76
|
+
if (typeof hook !== 'function') {
|
|
77
|
+
// Something's wrong. Assume we need to remount.
|
|
78
|
+
signature.forceReset = true;
|
|
79
|
+
signature.fullKey = fullKey;
|
|
80
|
+
return fullKey;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
var nestedHookSignature = allSignaturesByType.get(hook);
|
|
84
|
+
|
|
85
|
+
if (nestedHookSignature === undefined) {
|
|
86
|
+
// No signature means Hook wasn't in the source code, e.g. in a library.
|
|
87
|
+
// We'll skip it because we can assume it won't change during this session.
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
var nestedHookKey = computeFullKey(nestedHookSignature);
|
|
92
|
+
|
|
93
|
+
if (nestedHookSignature.forceReset) {
|
|
94
|
+
signature.forceReset = true;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
fullKey += '\n---\n' + nestedHookKey;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
signature.fullKey = fullKey;
|
|
101
|
+
return fullKey;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function haveEqualSignatures(prevType, nextType) {
|
|
105
|
+
var prevSignature = allSignaturesByType.get(prevType);
|
|
106
|
+
var nextSignature = allSignaturesByType.get(nextType);
|
|
107
|
+
|
|
108
|
+
if (prevSignature === undefined && nextSignature === undefined) {
|
|
109
|
+
return true;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
if (prevSignature === undefined || nextSignature === undefined) {
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
if (computeFullKey(prevSignature) !== computeFullKey(nextSignature)) {
|
|
117
|
+
return false;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
if (nextSignature.forceReset) {
|
|
121
|
+
return false;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
function isReactClass(type) {
|
|
128
|
+
return type.prototype && type.prototype.isReactComponent;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
function canPreserveStateBetween(prevType, nextType) {
|
|
132
|
+
if (isReactClass(prevType) || isReactClass(nextType)) {
|
|
133
|
+
return false;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
if (haveEqualSignatures(prevType, nextType)) {
|
|
137
|
+
return true;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
return false;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
function resolveFamily(type) {
|
|
144
|
+
// Only check updated types to keep lookups fast.
|
|
145
|
+
return updatedFamiliesByType.get(type);
|
|
146
|
+
} // If we didn't care about IE11, we could use new Map/Set(iterable).
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
function cloneMap(map) {
|
|
150
|
+
var clone = new Map();
|
|
151
|
+
map.forEach(function (value, key) {
|
|
152
|
+
clone.set(key, value);
|
|
153
|
+
});
|
|
154
|
+
return clone;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function cloneSet(set) {
|
|
158
|
+
var clone = new Set();
|
|
159
|
+
set.forEach(function (value) {
|
|
160
|
+
clone.add(value);
|
|
161
|
+
});
|
|
162
|
+
return clone;
|
|
163
|
+
} // This is a safety mechanism to protect against rogue getters and Proxies.
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
function getProperty(object, property) {
|
|
167
|
+
try {
|
|
168
|
+
return object[property];
|
|
169
|
+
} catch (err) {
|
|
170
|
+
// Intentionally ignore.
|
|
171
|
+
return undefined;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function performReactRefresh() {
|
|
176
|
+
|
|
177
|
+
if (pendingUpdates.length === 0) {
|
|
178
|
+
return null;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
if (isPerformingRefresh) {
|
|
182
|
+
return null;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
isPerformingRefresh = true;
|
|
186
|
+
|
|
187
|
+
try {
|
|
188
|
+
var staleFamilies = new Set();
|
|
189
|
+
var updatedFamilies = new Set();
|
|
190
|
+
var updates = pendingUpdates;
|
|
191
|
+
pendingUpdates = [];
|
|
192
|
+
updates.forEach(function (_ref) {
|
|
193
|
+
var family = _ref[0],
|
|
194
|
+
nextType = _ref[1];
|
|
195
|
+
// Now that we got a real edit, we can create associations
|
|
196
|
+
// that will be read by the React reconciler.
|
|
197
|
+
var prevType = family.current;
|
|
198
|
+
updatedFamiliesByType.set(prevType, family);
|
|
199
|
+
updatedFamiliesByType.set(nextType, family);
|
|
200
|
+
family.current = nextType; // Determine whether this should be a re-render or a re-mount.
|
|
201
|
+
|
|
202
|
+
if (canPreserveStateBetween(prevType, nextType)) {
|
|
203
|
+
updatedFamilies.add(family);
|
|
204
|
+
} else {
|
|
205
|
+
staleFamilies.add(family);
|
|
206
|
+
}
|
|
207
|
+
}); // TODO: rename these fields to something more meaningful.
|
|
208
|
+
|
|
209
|
+
var update = {
|
|
210
|
+
updatedFamilies: updatedFamilies,
|
|
211
|
+
// Families that will re-render preserving state
|
|
212
|
+
staleFamilies: staleFamilies // Families that will be remounted
|
|
213
|
+
|
|
214
|
+
};
|
|
215
|
+
helpersByRendererID.forEach(function (helpers) {
|
|
216
|
+
// Even if there are no roots, set the handler on first update.
|
|
217
|
+
// This ensures that if *new* roots are mounted, they'll use the resolve handler.
|
|
218
|
+
helpers.setRefreshHandler(resolveFamily);
|
|
219
|
+
});
|
|
220
|
+
var didError = false;
|
|
221
|
+
var firstError = null; // We snapshot maps and sets that are mutated during commits.
|
|
222
|
+
// If we don't do this, there is a risk they will be mutated while
|
|
223
|
+
// we iterate over them. For example, trying to recover a failed root
|
|
224
|
+
// may cause another root to be added to the failed list -- an infinite loop.
|
|
225
|
+
|
|
226
|
+
var failedRootsSnapshot = cloneSet(failedRoots);
|
|
227
|
+
var mountedRootsSnapshot = cloneSet(mountedRoots);
|
|
228
|
+
var helpersByRootSnapshot = cloneMap(helpersByRoot);
|
|
229
|
+
failedRootsSnapshot.forEach(function (root) {
|
|
230
|
+
var helpers = helpersByRootSnapshot.get(root);
|
|
231
|
+
|
|
232
|
+
if (helpers === undefined) {
|
|
233
|
+
throw new Error('Could not find helpers for a root. This is a bug in React Refresh.');
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
if (!failedRoots.has(root)) {// No longer failed.
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
if (rootElements === null) {
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
if (!rootElements.has(root)) {
|
|
244
|
+
return;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
var element = rootElements.get(root);
|
|
248
|
+
|
|
249
|
+
try {
|
|
250
|
+
helpers.scheduleRoot(root, element);
|
|
251
|
+
} catch (err) {
|
|
252
|
+
if (!didError) {
|
|
253
|
+
didError = true;
|
|
254
|
+
firstError = err;
|
|
255
|
+
} // Keep trying other roots.
|
|
256
|
+
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
mountedRootsSnapshot.forEach(function (root) {
|
|
260
|
+
var helpers = helpersByRootSnapshot.get(root);
|
|
261
|
+
|
|
262
|
+
if (helpers === undefined) {
|
|
263
|
+
throw new Error('Could not find helpers for a root. This is a bug in React Refresh.');
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
if (!mountedRoots.has(root)) {// No longer mounted.
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
try {
|
|
270
|
+
helpers.scheduleRefresh(root, update);
|
|
271
|
+
} catch (err) {
|
|
272
|
+
if (!didError) {
|
|
273
|
+
didError = true;
|
|
274
|
+
firstError = err;
|
|
275
|
+
} // Keep trying other roots.
|
|
276
|
+
|
|
277
|
+
}
|
|
278
|
+
});
|
|
279
|
+
|
|
280
|
+
if (didError) {
|
|
281
|
+
throw firstError;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
return update;
|
|
285
|
+
} finally {
|
|
286
|
+
isPerformingRefresh = false;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
function register(type, id) {
|
|
290
|
+
{
|
|
291
|
+
if (type === null) {
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
if (typeof type !== 'function' && typeof type !== 'object') {
|
|
296
|
+
return;
|
|
297
|
+
} // This can happen in an edge case, e.g. if we register
|
|
298
|
+
// return value of a HOC but it returns a cached component.
|
|
299
|
+
// Ignore anything but the first registration for each type.
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
if (allFamiliesByType.has(type)) {
|
|
303
|
+
return;
|
|
304
|
+
} // Create family or remember to update it.
|
|
305
|
+
// None of this bookkeeping affects reconciliation
|
|
306
|
+
// until the first performReactRefresh() call above.
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
var family = allFamiliesByID.get(id);
|
|
310
|
+
|
|
311
|
+
if (family === undefined) {
|
|
312
|
+
family = {
|
|
313
|
+
current: type
|
|
314
|
+
};
|
|
315
|
+
allFamiliesByID.set(id, family);
|
|
316
|
+
} else {
|
|
317
|
+
pendingUpdates.push([family, type]);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
allFamiliesByType.set(type, family); // Visit inner types because we might not have registered them.
|
|
321
|
+
|
|
322
|
+
if (typeof type === 'object' && type !== null) {
|
|
323
|
+
switch (getProperty(type, '$$typeof')) {
|
|
324
|
+
case REACT_FORWARD_REF_TYPE:
|
|
325
|
+
register(type.render, id + '$render');
|
|
326
|
+
break;
|
|
327
|
+
|
|
328
|
+
case REACT_MEMO_TYPE:
|
|
329
|
+
register(type.type, id + '$type');
|
|
330
|
+
break;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
function setSignature(type, key) {
|
|
336
|
+
var forceReset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
337
|
+
var getCustomHooks = arguments.length > 3 ? arguments[3] : undefined;
|
|
338
|
+
|
|
339
|
+
{
|
|
340
|
+
if (!allSignaturesByType.has(type)) {
|
|
341
|
+
allSignaturesByType.set(type, {
|
|
342
|
+
forceReset: forceReset,
|
|
343
|
+
ownKey: key,
|
|
344
|
+
fullKey: null,
|
|
345
|
+
getCustomHooks: getCustomHooks || function () {
|
|
346
|
+
return [];
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
} // Visit inner types because we might not have signed them.
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
if (typeof type === 'object' && type !== null) {
|
|
353
|
+
switch (getProperty(type, '$$typeof')) {
|
|
354
|
+
case REACT_FORWARD_REF_TYPE:
|
|
355
|
+
setSignature(type.render, key, forceReset, getCustomHooks);
|
|
356
|
+
break;
|
|
357
|
+
|
|
358
|
+
case REACT_MEMO_TYPE:
|
|
359
|
+
setSignature(type.type, key, forceReset, getCustomHooks);
|
|
360
|
+
break;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
} // This is lazily called during first render for a type.
|
|
365
|
+
// It captures Hook list at that time so inline requires don't break comparisons.
|
|
366
|
+
|
|
367
|
+
function collectCustomHooksForSignature(type) {
|
|
368
|
+
{
|
|
369
|
+
var signature = allSignaturesByType.get(type);
|
|
370
|
+
|
|
371
|
+
if (signature !== undefined) {
|
|
372
|
+
computeFullKey(signature);
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
function getFamilyByID(id) {
|
|
377
|
+
{
|
|
378
|
+
return allFamiliesByID.get(id);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
function getFamilyByType(type) {
|
|
382
|
+
{
|
|
383
|
+
return allFamiliesByType.get(type);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
function findAffectedHostInstances(families) {
|
|
387
|
+
{
|
|
388
|
+
var affectedInstances = new Set();
|
|
389
|
+
mountedRoots.forEach(function (root) {
|
|
390
|
+
var helpers = helpersByRoot.get(root);
|
|
391
|
+
|
|
392
|
+
if (helpers === undefined) {
|
|
393
|
+
throw new Error('Could not find helpers for a root. This is a bug in React Refresh.');
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
var instancesForRoot = helpers.findHostInstancesForRefresh(root, families);
|
|
397
|
+
instancesForRoot.forEach(function (inst) {
|
|
398
|
+
affectedInstances.add(inst);
|
|
399
|
+
});
|
|
400
|
+
});
|
|
401
|
+
return affectedInstances;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
function injectIntoGlobalHook(globalObject) {
|
|
405
|
+
{
|
|
406
|
+
// For React Native, the globalThis hook will be set up by require('react-devtools-core').
|
|
407
|
+
// That code will run before us. So we need to monkeypatch functions on existing hook.
|
|
408
|
+
// For React Web, the globalThis hook will be set up by the extension.
|
|
409
|
+
// This will also run before us.
|
|
410
|
+
var hook = globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
411
|
+
|
|
412
|
+
if (hook === undefined) {
|
|
413
|
+
// However, if there is no DevTools extension, we'll need to set up the globalThis hook ourselves.
|
|
414
|
+
// Note that in this case it's important that renderer code runs *after* this method call.
|
|
415
|
+
// Otherwise, the renderer will think that there is no globalThis hook, and won't do the injection.
|
|
416
|
+
var nextID = 0;
|
|
417
|
+
globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__ = hook = {
|
|
418
|
+
renderers: new Map(),
|
|
419
|
+
supportsFiber: true,
|
|
420
|
+
inject: function (injected) {
|
|
421
|
+
return nextID++;
|
|
422
|
+
},
|
|
423
|
+
onScheduleFiberRoot: function (id, root, children) {},
|
|
424
|
+
onCommitFiberRoot: function (id, root, maybePriorityLevel, didError) {},
|
|
425
|
+
onCommitFiberUnmount: function () {}
|
|
426
|
+
};
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
if (hook.isDisabled) {
|
|
430
|
+
// This isn't a real property on the hook, but it can be set to opt out
|
|
431
|
+
// of DevTools integration and associated warnings and logs.
|
|
432
|
+
// Using console['warn'] to evade Babel and ESLint
|
|
433
|
+
console['warn']('Something has shimmed the React DevTools globalThis hook (__REACT_DEVTOOLS_GLOBAL_HOOK__). ' + 'Fast Refresh is not compatible with this shim and will be disabled.');
|
|
434
|
+
return;
|
|
435
|
+
} // Here, we just want to get a reference to scheduleRefresh.
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
var oldInject = hook.inject;
|
|
439
|
+
|
|
440
|
+
hook.inject = function (injected) {
|
|
441
|
+
var id = oldInject.apply(this, arguments);
|
|
442
|
+
|
|
443
|
+
if (typeof injected.scheduleRefresh === 'function' && typeof injected.setRefreshHandler === 'function') {
|
|
444
|
+
// This version supports React Refresh.
|
|
445
|
+
helpersByRendererID.set(id, injected);
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
return id;
|
|
449
|
+
}; // Do the same for any already injected roots.
|
|
450
|
+
// This is useful if ReactDOM has already been initialized.
|
|
451
|
+
// https://github.com/facebook/react/issues/17626
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
hook.renderers.forEach(function (injected, id) {
|
|
455
|
+
if (typeof injected.scheduleRefresh === 'function' && typeof injected.setRefreshHandler === 'function') {
|
|
456
|
+
// This version supports React Refresh.
|
|
457
|
+
helpersByRendererID.set(id, injected);
|
|
458
|
+
}
|
|
459
|
+
}); // We also want to track currently mounted roots.
|
|
460
|
+
|
|
461
|
+
var oldOnCommitFiberRoot = hook.onCommitFiberRoot;
|
|
462
|
+
|
|
463
|
+
var oldOnScheduleFiberRoot = hook.onScheduleFiberRoot || function () {};
|
|
464
|
+
|
|
465
|
+
hook.onScheduleFiberRoot = function (id, root, children) {
|
|
466
|
+
if (!isPerformingRefresh) {
|
|
467
|
+
// If it was intentionally scheduled, don't attempt to restore.
|
|
468
|
+
// This includes intentionally scheduled unmounts.
|
|
469
|
+
failedRoots.delete(root);
|
|
470
|
+
|
|
471
|
+
if (rootElements !== null) {
|
|
472
|
+
rootElements.set(root, children);
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
return oldOnScheduleFiberRoot.apply(this, arguments);
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
hook.onCommitFiberRoot = function (id, root, maybePriorityLevel, didError) {
|
|
480
|
+
var helpers = helpersByRendererID.get(id);
|
|
481
|
+
|
|
482
|
+
if (helpers !== undefined) {
|
|
483
|
+
helpersByRoot.set(root, helpers);
|
|
484
|
+
var current = root.current;
|
|
485
|
+
var alternate = current.alternate; // We need to determine whether this root has just (un)mounted.
|
|
486
|
+
// This logic is copy-pasted from similar logic in the DevTools backend.
|
|
487
|
+
// If this breaks with some refactoring, you'll want to update DevTools too.
|
|
488
|
+
|
|
489
|
+
if (alternate !== null) {
|
|
490
|
+
var wasMounted = alternate.memoizedState != null && alternate.memoizedState.element != null && mountedRoots.has(root);
|
|
491
|
+
var isMounted = current.memoizedState != null && current.memoizedState.element != null;
|
|
492
|
+
|
|
493
|
+
if (!wasMounted && isMounted) {
|
|
494
|
+
// Mount a new root.
|
|
495
|
+
mountedRoots.add(root);
|
|
496
|
+
failedRoots.delete(root);
|
|
497
|
+
} else if (wasMounted && isMounted) ; else if (wasMounted && !isMounted) {
|
|
498
|
+
// Unmount an existing root.
|
|
499
|
+
mountedRoots.delete(root);
|
|
500
|
+
|
|
501
|
+
if (didError) {
|
|
502
|
+
// We'll remount it on future edits.
|
|
503
|
+
failedRoots.add(root);
|
|
504
|
+
} else {
|
|
505
|
+
helpersByRoot.delete(root);
|
|
506
|
+
}
|
|
507
|
+
} else if (!wasMounted && !isMounted) {
|
|
508
|
+
if (didError) {
|
|
509
|
+
// We'll remount it on future edits.
|
|
510
|
+
failedRoots.add(root);
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
} else {
|
|
514
|
+
// Mount a new root.
|
|
515
|
+
mountedRoots.add(root);
|
|
516
|
+
}
|
|
517
|
+
} // Always call the decorated DevTools hook.
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
return oldOnCommitFiberRoot.apply(this, arguments);
|
|
521
|
+
};
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
function hasUnrecoverableErrors() {
|
|
525
|
+
// TODO: delete this after removing dependency in RN.
|
|
526
|
+
return false;
|
|
527
|
+
} // Exposed for testing.
|
|
528
|
+
|
|
529
|
+
function _getMountedRootCount() {
|
|
530
|
+
{
|
|
531
|
+
return mountedRoots.size;
|
|
532
|
+
}
|
|
533
|
+
} // This is a wrapper over more primitive functions for setting signature.
|
|
534
|
+
// Signatures let us decide whether the Hook order has changed on refresh.
|
|
535
|
+
//
|
|
536
|
+
// This function is intended to be used as a transform target, e.g.:
|
|
537
|
+
// var _s = createSignatureFunctionForTransform()
|
|
538
|
+
//
|
|
539
|
+
// function Hello() {
|
|
540
|
+
// const [foo, setFoo] = useState(0);
|
|
541
|
+
// const value = useCustomHook();
|
|
542
|
+
// _s(); /* Call without arguments triggers collecting the custom Hook list.
|
|
543
|
+
// * This doesn't happen during the module evaluation because we
|
|
544
|
+
// * don't want to change the module order with inline requires.
|
|
545
|
+
// * Next calls are noops. */
|
|
546
|
+
// return <h1>Hi</h1>;
|
|
547
|
+
// }
|
|
548
|
+
//
|
|
549
|
+
// /* Call with arguments attaches the signature to the type: */
|
|
550
|
+
// _s(
|
|
551
|
+
// Hello,
|
|
552
|
+
// 'useState{[foo, setFoo]}(0)',
|
|
553
|
+
// () => [useCustomHook], /* Lazy to avoid triggering inline requires */
|
|
554
|
+
// );
|
|
555
|
+
|
|
556
|
+
function createSignatureFunctionForTransform() {
|
|
557
|
+
{
|
|
558
|
+
var savedType;
|
|
559
|
+
var hasCustomHooks;
|
|
560
|
+
var didCollectHooks = false;
|
|
561
|
+
return function (type, key, forceReset, getCustomHooks) {
|
|
562
|
+
if (typeof key === 'string') {
|
|
563
|
+
// We're in the initial phase that associates signatures
|
|
564
|
+
// with the functions. Note this may be called multiple times
|
|
565
|
+
// in HOC chains like _s(hoc1(_s(hoc2(_s(actualFunction))))).
|
|
566
|
+
if (!savedType) {
|
|
567
|
+
// We're in the innermost call, so this is the actual type.
|
|
568
|
+
savedType = type;
|
|
569
|
+
hasCustomHooks = typeof getCustomHooks === 'function';
|
|
570
|
+
} // Set the signature for all types (even wrappers!) in case
|
|
571
|
+
// they have no signatures of their own. This is to prevent
|
|
572
|
+
// problems like https://github.com/facebook/react/issues/20417.
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
if (type != null && (typeof type === 'function' || typeof type === 'object')) {
|
|
576
|
+
setSignature(type, key, forceReset, getCustomHooks);
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
return type;
|
|
580
|
+
} else {
|
|
581
|
+
// We're in the _s() call without arguments, which means
|
|
582
|
+
// this is the time to collect custom Hook signatures.
|
|
583
|
+
// Only do this once. This path is hot and runs *inside* every render!
|
|
584
|
+
if (!didCollectHooks && hasCustomHooks) {
|
|
585
|
+
didCollectHooks = true;
|
|
586
|
+
collectCustomHooksForSignature(savedType);
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
function isLikelyComponentType(type) {
|
|
593
|
+
{
|
|
594
|
+
switch (typeof type) {
|
|
595
|
+
case 'function':
|
|
596
|
+
{
|
|
597
|
+
// First, deal with classes.
|
|
598
|
+
if (type.prototype != null) {
|
|
599
|
+
if (type.prototype.isReactComponent) {
|
|
600
|
+
// React class.
|
|
601
|
+
return true;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
var ownNames = Object.getOwnPropertyNames(type.prototype);
|
|
605
|
+
|
|
606
|
+
if (ownNames.length > 1 || ownNames[0] !== 'constructor') {
|
|
607
|
+
// This looks like a class.
|
|
608
|
+
return false;
|
|
609
|
+
} // eslint-disable-next-line no-proto
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
if (type.prototype.__proto__ !== Object.prototype) {
|
|
613
|
+
// It has a superclass.
|
|
614
|
+
return false;
|
|
615
|
+
} // Pass through.
|
|
616
|
+
// This looks like a regular function with empty prototype.
|
|
617
|
+
|
|
618
|
+
} // For plain functions and arrows, use name as a heuristic.
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
var name = type.name || type.displayName;
|
|
622
|
+
return typeof name === 'string' && /^[A-Z]/.test(name);
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
case 'object':
|
|
626
|
+
{
|
|
627
|
+
if (type != null) {
|
|
628
|
+
switch (getProperty(type, '$$typeof')) {
|
|
629
|
+
case REACT_FORWARD_REF_TYPE:
|
|
630
|
+
case REACT_MEMO_TYPE:
|
|
631
|
+
// Definitely React components.
|
|
632
|
+
return true;
|
|
633
|
+
|
|
634
|
+
default:
|
|
635
|
+
return false;
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
return false;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
default:
|
|
643
|
+
{
|
|
644
|
+
return false;
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
reactRefreshRuntime_development._getMountedRootCount = _getMountedRootCount;
|
|
651
|
+
reactRefreshRuntime_development.collectCustomHooksForSignature = collectCustomHooksForSignature;
|
|
652
|
+
reactRefreshRuntime_development.createSignatureFunctionForTransform = createSignatureFunctionForTransform;
|
|
653
|
+
reactRefreshRuntime_development.findAffectedHostInstances = findAffectedHostInstances;
|
|
654
|
+
reactRefreshRuntime_development.getFamilyByID = getFamilyByID;
|
|
655
|
+
reactRefreshRuntime_development.getFamilyByType = getFamilyByType;
|
|
656
|
+
reactRefreshRuntime_development.hasUnrecoverableErrors = hasUnrecoverableErrors;
|
|
657
|
+
reactRefreshRuntime_development.injectIntoGlobalHook = injectIntoGlobalHook;
|
|
658
|
+
reactRefreshRuntime_development.isLikelyComponentType = isLikelyComponentType;
|
|
659
|
+
reactRefreshRuntime_development.performReactRefresh = performReactRefresh;
|
|
660
|
+
reactRefreshRuntime_development.register = register;
|
|
661
|
+
reactRefreshRuntime_development.setSignature = setSignature;
|
|
662
|
+
})();
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
{
|
|
666
|
+
runtime.exports = reactRefreshRuntime_development;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
var runtimeExports = runtime.exports;
|
|
670
|
+
var __jsenv_default_import__ = /*@__PURE__*/getDefaultExportFromCjs(runtimeExports);
|
|
671
|
+
|
|
672
|
+
var _getMountedRootCount = runtimeExports._getMountedRootCount;
|
|
673
|
+
var collectCustomHooksForSignature = runtimeExports.collectCustomHooksForSignature;
|
|
674
|
+
var createSignatureFunctionForTransform = runtimeExports.createSignatureFunctionForTransform;
|
|
675
|
+
var findAffectedHostInstances = runtimeExports.findAffectedHostInstances;
|
|
676
|
+
var getFamilyByID = runtimeExports.getFamilyByID;
|
|
677
|
+
var getFamilyByType = runtimeExports.getFamilyByType;
|
|
678
|
+
var hasUnrecoverableErrors = runtimeExports.hasUnrecoverableErrors;
|
|
679
|
+
var injectIntoGlobalHook = runtimeExports.injectIntoGlobalHook;
|
|
680
|
+
var isLikelyComponentType = runtimeExports.isLikelyComponentType;
|
|
681
|
+
var performReactRefresh = runtimeExports.performReactRefresh;
|
|
682
|
+
var register = runtimeExports.register;
|
|
683
|
+
var setSignature = runtimeExports.setSignature;
|
|
684
|
+
export { _getMountedRootCount, collectCustomHooksForSignature, createSignatureFunctionForTransform, __jsenv_default_import__ as default, findAffectedHostInstances, getFamilyByID, getFamilyByType, hasUnrecoverableErrors, injectIntoGlobalHook, isLikelyComponentType, performReactRefresh, register, setSignature };
|
|
685
|
+
//# sourceMappingURL=runtime.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"assetInfos": {
|
|
3
|
+
"../../../../../../../../../../../../../../../node_modules/react-refresh/runtime.js": {
|
|
4
|
+
"type": "source",
|
|
5
|
+
"etag": "\"de-MD2LxnQ1vDE+/6DjC1KR46C5sfI\""
|
|
6
|
+
},
|
|
7
|
+
"../../../../../../../../../../../../../../../node_modules/react-refresh/cjs/react-refresh-runtime.development.js": {
|
|
8
|
+
"type": "source",
|
|
9
|
+
"etag": "\"4fc3-GMYGjYHCli5auonYsGcFF0/xri8\""
|
|
10
|
+
},
|
|
11
|
+
"runtime.development.map": {
|
|
12
|
+
"type": "sourcemap",
|
|
13
|
+
"etag": "\"91a6-/corAz+8KjQ1ynvFFf9VFVk220k\""
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"createdMs": 1723465114630,
|
|
17
|
+
"lastModifiedMs": 1723465114630
|
|
18
|
+
}
|