@jsenv/cli 0.3.38 → 0.3.39
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/eslint.config.mjs +1 -1
- package/template-node-package/package.json +2 -2
- package/template-node-package/scripts/test.mjs +2 -4
- package/template-node-package/tests/message.test.mjs +0 -1
- package/template-web/package.json +2 -2
- package/template-web/scripts/build_serve.mjs +1 -1
- package/template-web/scripts/dev.mjs +1 -1
- package/template-web/scripts/test.mjs +3 -3
- package/template-web/src/main.js +1 -1
- package/template-web-components/package.json +2 -2
- package/template-web-components/scripts/build_serve.mjs +1 -1
- package/template-web-components/scripts/dev.mjs +2 -2
- package/template-web-components/scripts/test.mjs +3 -4
- package/template-web-preact/eslint.config.mjs +2 -2
- package/template-web-preact/package.json +3 -3
- package/template-web-preact/scripts/build_serve.mjs +1 -1
- package/template-web-preact/scripts/dev.mjs +2 -2
- package/template-web-preact/scripts/test.mjs +3 -3
- package/template-web-preact/src/app/app.jsx +1 -1
- package/template-web-react/eslint.config.mjs +2 -2
- package/template-web-react/package.json +3 -3
- package/template-web-react/scripts/build_serve.mjs +1 -1
- package/template-web-react/scripts/dev.mjs +2 -2
- package/template-web-react/scripts/test.mjs +3 -3
- package/template-web-react/src/app/app.jsx +1 -1
- package/template-web/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/client/inline_content/inline_content.js +0 -19
- package/template-web/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/client/new_stylesheet/new_stylesheet.js +0 -320
- package/template-web/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/client/s.js +0 -553
- package/template-web/.jsenv/craft/app/counter.js +0 -10
- package/template-web/.jsenv/craft/index.html +0 -27
- package/template-web/.jsenv/craft/jsenv_logo.svg +0 -140
- package/template-web/.jsenv/craft/main.css +0 -4
- package/template-web/.jsenv/craft/main.css7as_css_module=.js +0 -8
- package/template-web/.jsenv/craft/main.js +0 -14
- package/template-web/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/dist/client/inline_content/inline_content.js +0 -17
- package/template-web/.jsenv/entry_index/craft/app/counter.js +0 -11
- package/template-web/.jsenv/entry_index/craft/index.html +0 -27
- package/template-web/.jsenv/entry_index/craft/jsenv_logo.svg +0 -140
- package/template-web/.jsenv/entry_index/craft/main.css +0 -4
- package/template-web/.jsenv/entry_index/craft/main.css7as_css_module=.js +0 -7
- package/template-web/.jsenv/entry_index/craft/main.js +0 -31
- package/template-web/.jsenv/entry_index/shape/index.html +0 -24
- package/template-web/.jsenv/entry_index/shape/jsenv_logo.svg +0 -91
- package/template-web/.jsenv/entry_index/shape/main.js +0 -1
- package/template-web/.jsenv/shape/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/client/s.js +0 -1
- package/template-web/.jsenv/shape/index.html +0 -27
- package/template-web/.jsenv/shape/jsenv_logo.svg +0 -91
- package/template-web/.jsenv/shape/main.js +0 -1
- package/template-web/.jsenv/shape/main.nomodule7js_module_fallback=.js +0 -1
- package/template-web/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/src/kitchen/client/inline_content.js +0 -17
- package/template-web/.jsenv_b/entry_index/craft/app/counter.js +0 -11
- package/template-web/.jsenv_b/entry_index/craft/index.html +0 -27
- package/template-web/.jsenv_b/entry_index/craft/jsenv_logo.svg +0 -140
- package/template-web/.jsenv_b/entry_index/craft/main.css +0 -4
- package/template-web/.jsenv_b/entry_index/craft/main.css7as_css_module=.js +0 -7
- package/template-web/.jsenv_b/entry_index/craft/main.js +0 -31
- package/template-web/.jsenv_b/entry_index/shape/index.html +0 -24
- package/template-web/.jsenv_b/entry_index/shape/jsenv_logo.svg +0 -91
- package/template-web/.jsenv_b/entry_index/shape/main.js +0 -1
- package/template-web/dist/index.html +0 -24
- package/template-web/dist/js/main.js +0 -1
- package/template-web/dist/other/jsenv_logo.svg +0 -91
- package/template-web-components/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/client/inline_content/inline_content.js +0 -19
- package/template-web-components/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/client/new_stylesheet/new_stylesheet.js +0 -320
- package/template-web-components/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/packages/independent/frontend/custom-elements-redefine/src/@jsenv_custom-elements-redefine_main.js +0 -154
- package/template-web-components/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/client/s.js +0 -553
- package/template-web-components/.jsenv/craft/app/app_custom_element.css +0 -4
- package/template-web-components/.jsenv/craft/app/app_custom_element.css7as_css_module=.js +0 -8
- package/template-web-components/.jsenv/craft/app/app_custom_element.js +0 -15
- package/template-web-components/.jsenv/craft/app/counter.js +0 -10
- package/template-web-components/.jsenv/craft/app/custom_elements_redefine.js +0 -4
- package/template-web-components/.jsenv/craft/index.html +0 -27
- package/template-web-components/.jsenv/craft/jsenv_logo.svg +0 -140
- package/template-web-components/.jsenv/craft/main.js +0 -9
- package/template-web-components/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/dist/client/inline_content/inline_content.js +0 -17
- package/template-web-components/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/packages/independent/frontend/custom-elements-redefine/src/@jsenv_custom-elements-redefine_main.js +0 -209
- package/template-web-components/.jsenv/entry_index/craft/app/app_custom_element.css +0 -4
- package/template-web-components/.jsenv/entry_index/craft/app/app_custom_element.css7as_css_module=.js +0 -7
- package/template-web-components/.jsenv/entry_index/craft/app/app_custom_element.js +0 -31
- package/template-web-components/.jsenv/entry_index/craft/app/counter.js +0 -11
- package/template-web-components/.jsenv/entry_index/craft/app/custom_elements_redefine.js +0 -5
- package/template-web-components/.jsenv/entry_index/craft/index.html +0 -27
- package/template-web-components/.jsenv/entry_index/craft/jsenv_logo.svg +0 -140
- package/template-web-components/.jsenv/entry_index/craft/main.js +0 -11
- package/template-web-components/.jsenv/entry_index/shape/index.html +0 -24
- package/template-web-components/.jsenv/entry_index/shape/jsenv_logo.svg +0 -91
- package/template-web-components/.jsenv/entry_index/shape/main.js +0 -1
- package/template-web-components/.jsenv/shape/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/client/s.js +0 -1
- package/template-web-components/.jsenv/shape/index.html +0 -27
- package/template-web-components/.jsenv/shape/jsenv_logo.svg +0 -91
- package/template-web-components/.jsenv/shape/main.js +0 -1
- package/template-web-components/.jsenv/shape/main.nomodule7js_module_fallback=.js +0 -1
- package/template-web-components/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/packages/independent/frontend/custom-elements-redefine/src/@jsenv_custom-elements-redefine_main.js +0 -209
- package/template-web-components/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/src/kitchen/client/inline_content.js +0 -17
- package/template-web-components/.jsenv_b/entry_index/craft/app/app_custom_element.css +0 -4
- package/template-web-components/.jsenv_b/entry_index/craft/app/app_custom_element.css7as_css_module=.js +0 -7
- package/template-web-components/.jsenv_b/entry_index/craft/app/app_custom_element.js +0 -31
- package/template-web-components/.jsenv_b/entry_index/craft/app/counter.js +0 -11
- package/template-web-components/.jsenv_b/entry_index/craft/app/custom_elements_redefine.js +0 -5
- package/template-web-components/.jsenv_b/entry_index/craft/index.html +0 -27
- package/template-web-components/.jsenv_b/entry_index/craft/jsenv_logo.svg +0 -140
- package/template-web-components/.jsenv_b/entry_index/craft/main.js +0 -11
- package/template-web-components/.jsenv_b/entry_index/shape/index.html +0 -24
- package/template-web-components/.jsenv_b/entry_index/shape/jsenv_logo.svg +0 -91
- package/template-web-components/.jsenv_b/entry_index/shape/main.js +0 -1
- package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/client/inline_content/inline_content.js +0 -19
- package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/client/new_stylesheet/new_stylesheet.js +0 -320
- package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/dist/preact.module.js +0 -357
- package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/hooks/dist/hooks.module.js +0 -198
- package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js +0 -93
- package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/client/s.js +0 -553
- package/template-web-preact/.jsenv/craft/app/app.css +0 -43
- package/template-web-preact/.jsenv/craft/app/app.css7as_css_module=.js +0 -8
- package/template-web-preact/.jsenv/craft/app/app.jsx +0 -46
- package/template-web-preact/.jsenv/craft/app/counter.jsx +0 -17
- package/template-web-preact/.jsenv/craft/index.html +0 -25
- package/template-web-preact/.jsenv/craft/main.jsx +0 -4
- package/template-web-preact/.jsenv/craft/preact_logo.svg +0 -6
- package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/dist/client/inline_content/inline_content.js +0 -17
- package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/dist/preact.module.js +0 -2
- package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/hooks/dist/hooks.module.js +0 -2
- package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js +0 -2
- package/template-web-preact/.jsenv/entry_index/craft/app/app.css +0 -43
- package/template-web-preact/.jsenv/entry_index/craft/app/app.css7as_css_module=.js +0 -7
- package/template-web-preact/.jsenv/entry_index/craft/app/app.jsx +0 -44
- package/template-web-preact/.jsenv/entry_index/craft/app/counter.jsx +0 -17
- package/template-web-preact/.jsenv/entry_index/craft/index.html +0 -25
- package/template-web-preact/.jsenv/entry_index/craft/main.jsx +0 -4
- package/template-web-preact/.jsenv/entry_index/craft/preact_logo.svg +0 -6
- package/template-web-preact/.jsenv/entry_index/shape/@fs/Users/dmail/Documents/dev/core/packages/related/cli/template-web-preact/dist/jsenv_template_web_preact_node_modules.js +0 -1
- package/template-web-preact/.jsenv/entry_index/shape/index.html +0 -31
- package/template-web-preact/.jsenv/entry_index/shape/main.jsx +0 -1
- package/template-web-preact/.jsenv/entry_index/shape/preact_logo.svg +0 -6
- package/template-web-preact/.jsenv/shape/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/client/s.js +0 -1
- package/template-web-preact/.jsenv/shape/@fs/Users/dmail/Documents/dev/core/packages/related/cli/template-web-preact/dist/vendors.js +0 -1
- package/template-web-preact/.jsenv/shape/@fs/Users/dmail/Documents/dev/core/packages/related/cli/template-web-preact/dist/vendors.nomodule7js_module_fallback=.js +0 -1
- package/template-web-preact/.jsenv/shape/index.html +0 -28
- package/template-web-preact/.jsenv/shape/main.jsx +0 -1
- package/template-web-preact/.jsenv/shape/main.nomodule7js_module_fallback=.jsx +0 -1
- package/template-web-preact/.jsenv/shape/preact_logo.svg +0 -6
- package/template-web-preact/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/dist/preact.module.js +0 -2
- package/template-web-preact/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/hooks/dist/hooks.module.js +0 -2
- package/template-web-preact/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js +0 -2
- package/template-web-preact/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/src/kitchen/client/inline_content.js +0 -17
- package/template-web-preact/.jsenv_b/entry_index/craft/app/app.css +0 -43
- package/template-web-preact/.jsenv_b/entry_index/craft/app/app.css7as_css_module=.js +0 -7
- package/template-web-preact/.jsenv_b/entry_index/craft/app/app.jsx +0 -44
- package/template-web-preact/.jsenv_b/entry_index/craft/app/counter.jsx +0 -17
- package/template-web-preact/.jsenv_b/entry_index/craft/index.html +0 -25
- package/template-web-preact/.jsenv_b/entry_index/craft/main.jsx +0 -4
- package/template-web-preact/.jsenv_b/entry_index/craft/preact_logo.svg +0 -6
- package/template-web-preact/.jsenv_b/entry_index/shape/@fs/Users/dmail/Documents/dev/core/packages/related/cli/template-web-preact/dist/jsenv_template_web_preact_node_modules.js +0 -1
- package/template-web-preact/.jsenv_b/entry_index/shape/index.html +0 -31
- package/template-web-preact/.jsenv_b/entry_index/shape/main.jsx +0 -1
- package/template-web-preact/.jsenv_b/entry_index/shape/preact_logo.svg +0 -6
- package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/client/inline_content/inline_content.js +0 -19
- package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/client/new_stylesheet/new_stylesheet.js +0 -320
- package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.js +0 -7
- package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.js +0 -7
- package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/react/jsx-runtime7cjs_as_js_module=.jsx +0 -61
- package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/react7cjs_as_js_module=.jsx +0 -438
- package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.js +0 -34
- package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/react-dom/client7cjs_as_js_module=.jsx +0 -9650
- package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/client/s.js +0 -553
- package/template-web-react/.jsenv/craft/app/app.css +0 -43
- package/template-web-react/.jsenv/craft/app/app.css7as_css_module=.js +0 -8
- package/template-web-react/.jsenv/craft/app/app.jsx +0 -46
- package/template-web-react/.jsenv/craft/app/counter.jsx +0 -16
- package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.production.js +0 -617
- package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.production.js__compile_info__.json +0 -26
- package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.production.map +0 -1
- package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.production.js +0 -69
- package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.production.js__compile_info__.json +0 -18
- package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.production.map +0 -1
- package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.production.js +0 -15859
- package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.production.js__compile_info__.json +0 -42
- package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.production.map +0 -1
- package/template-web-react/.jsenv/craft/cjs_to_esm/__compile_context__.json +0 -3
- package/template-web-react/.jsenv/craft/index.html +0 -25
- package/template-web-react/.jsenv/craft/main.jsx +0 -10
- package/template-web-react/.jsenv/craft/react_logo.svg +0 -7
- package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/dist/client/inline_content/inline_content.js +0 -17
- package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.js +0 -7
- package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.js +0 -7
- package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/react/jsx-runtime7cjs_as_js_module=.jsx +0 -69
- package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/react7cjs_as_js_module=.jsx +0 -627
- package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.js +0 -38
- package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/react-dom/client7cjs_as_js_module=.jsx +0 -16070
- package/template-web-react/.jsenv/entry_index/craft/app/app.css +0 -43
- package/template-web-react/.jsenv/entry_index/craft/app/app.css7as_css_module=.js +0 -7
- package/template-web-react/.jsenv/entry_index/craft/app/app.jsx +0 -45
- package/template-web-react/.jsenv/entry_index/craft/app/counter.jsx +0 -16
- package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.production.js +0 -627
- package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.production.js__compile_info__.json +0 -26
- package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.production.map +0 -1
- package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.production.js +0 -69
- package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.production.js__compile_info__.json +0 -18
- package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.production.map +0 -1
- package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.production.js +0 -16070
- package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.production.js__compile_info__.json +0 -42
- package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.production.map +0 -1
- package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/__compile_context__.json +0 -3
- package/template-web-react/.jsenv/entry_index/craft/index.html +0 -25
- package/template-web-react/.jsenv/entry_index/craft/main.jsx +0 -10
- package/template-web-react/.jsenv/entry_index/craft/react_logo.svg +0 -7
- package/template-web-react/.jsenv/entry_index/shape/@fs/Users/dmail/Documents/dev/core/packages/related/cli/template-web-react/dist/jsenv_template_web_react_node_modules.js +0 -1
- package/template-web-react/.jsenv/entry_index/shape/index.html +0 -31
- package/template-web-react/.jsenv/entry_index/shape/main.jsx +0 -1
- package/template-web-react/.jsenv/entry_index/shape/react_logo.svg +0 -7
- package/template-web-react/.jsenv/shape/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/client/s.js +0 -1
- package/template-web-react/.jsenv/shape/@fs/Users/dmail/Documents/dev/core/packages/related/cli/template-web-react/dist/vendors.js +0 -1
- package/template-web-react/.jsenv/shape/@fs/Users/dmail/Documents/dev/core/packages/related/cli/template-web-react/dist/vendors.nomodule7js_module_fallback=.js +0 -1
- package/template-web-react/.jsenv/shape/index.html +0 -28
- package/template-web-react/.jsenv/shape/main.jsx +0 -1
- package/template-web-react/.jsenv/shape/main.nomodule7js_module_fallback=.jsx +0 -1
- package/template-web-react/.jsenv/shape/react_logo.svg +0 -7
- package/template-web-react/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.js +0 -7
- package/template-web-react/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.js +0 -7
- package/template-web-react/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/react/jsx-runtime7cjs_as_js_module=.jsx +0 -69
- package/template-web-react/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/react7cjs_as_js_module=.jsx +0 -617
- package/template-web-react/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.js +0 -38
- package/template-web-react/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/react-dom/client7cjs_as_js_module=.jsx +0 -15859
- package/template-web-react/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/src/kitchen/client/inline_content.js +0 -17
- package/template-web-react/.jsenv_b/entry_index/craft/app/app.css +0 -43
- package/template-web-react/.jsenv_b/entry_index/craft/app/app.css7as_css_module=.js +0 -7
- package/template-web-react/.jsenv_b/entry_index/craft/app/app.jsx +0 -45
- package/template-web-react/.jsenv_b/entry_index/craft/app/counter.jsx +0 -16
- package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.production.js +0 -617
- package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.production.js__compile_info__.json +0 -26
- package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.production.map +0 -1
- package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.production.js +0 -69
- package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.production.js__compile_info__.json +0 -18
- package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.production.map +0 -1
- package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.production.js +0 -15859
- package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.production.js__compile_info__.json +0 -42
- package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.production.map +0 -1
- package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/__compile_context__.json +0 -3
- package/template-web-react/.jsenv_b/entry_index/craft/index.html +0 -25
- package/template-web-react/.jsenv_b/entry_index/craft/main.jsx +0 -10
- package/template-web-react/.jsenv_b/entry_index/craft/react_logo.svg +0 -7
- package/template-web-react/.jsenv_b/entry_index/shape/@fs/Users/dmail/Documents/dev/core/packages/related/cli/template-web-react/dist/jsenv_template_web_react_node_modules.js +0 -1
- package/template-web-react/.jsenv_b/entry_index/shape/index.html +0 -31
- package/template-web-react/.jsenv_b/entry_index/shape/main.jsx +0 -1
- package/template-web-react/.jsenv_b/entry_index/shape/react_logo.svg +0 -7
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
.app {
|
|
2
|
-
text-align: center;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.app_logo {
|
|
6
|
-
pointer-events: none;
|
|
7
|
-
height: 40vmin;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
11
|
-
.app_logo {
|
|
12
|
-
animation: 20s linear infinite app_logo_spin;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.app_header {
|
|
17
|
-
color: #fff;
|
|
18
|
-
background-color: #282c34;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
justify-content: center;
|
|
21
|
-
align-items: center;
|
|
22
|
-
min-height: 100vh;
|
|
23
|
-
font-size: calc(10px + 2vmin);
|
|
24
|
-
display: flex;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.app_link {
|
|
28
|
-
color: #61dafb;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@keyframes app_logo_spin {
|
|
32
|
-
from {
|
|
33
|
-
transform: rotate(0);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
to {
|
|
37
|
-
transform: rotate(360deg);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
button {
|
|
42
|
-
font-size: calc(10px + 2vmin);
|
|
43
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import "file:///Users/dmail/Documents/dev/core/src/kitchen/client/inline_content.js";
|
|
2
|
-
|
|
3
|
-
const inlineContent = new __InlineContent__(".app {\n text-align: center;\n}\n\n.app_logo {\n pointer-events: none;\n height: 40vmin;\n}\n\n@media (prefers-reduced-motion: no-preference) {\n .app_logo {\n animation: 20s linear infinite app_logo_spin;\n }\n}\n\n.app_header {\n color: #fff;\n background-color: #282c34;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n min-height: 100vh;\n font-size: calc(10px + 2vmin);\n display: flex;\n}\n\n.app_link {\n color: #61dafb;\n}\n\n@keyframes app_logo_spin {\n from {\n transform: rotate(0);\n }\n\n to {\n transform: rotate(360deg);\n }\n}\n\nbutton {\n font-size: calc(10px + 2vmin);\n}\n", { type: "text/css" });
|
|
4
|
-
const stylesheet = new CSSStyleSheet();
|
|
5
|
-
stylesheet.replaceSync(inlineContent.text);
|
|
6
|
-
|
|
7
|
-
export default stylesheet;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { useLayoutEffect } from "file:///Users/dmail/Documents/dev/core/node_modules/preact/hooks/dist/hooks.module.js";
|
|
2
|
-
import appStyleSheet from "file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-preact/src/app/app.css?as_css_module" ;
|
|
3
|
-
import { Counter } from "file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-preact/src/app/counter.jsx";
|
|
4
|
-
import { jsx as _jsx, jsxs as _jsxs } from "file:///Users/dmail/Documents/dev/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
5
|
-
const preactLogoUrl = new URL("file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-preact/src/preact_logo.svg", import.meta.url);
|
|
6
|
-
export const App = () => {
|
|
7
|
-
useLayoutEffect(() => {
|
|
8
|
-
document.adoptedStyleSheets = [...document.adoptedStyleSheets, appStyleSheet];
|
|
9
|
-
return () => {
|
|
10
|
-
document.adoptedStyleSheets = document.adoptedStyleSheets.filter(s => s !== appStyleSheet);
|
|
11
|
-
};
|
|
12
|
-
}, []);
|
|
13
|
-
return _jsx("div", {
|
|
14
|
-
className: "app",
|
|
15
|
-
children: _jsxs("header", {
|
|
16
|
-
className: "app_header",
|
|
17
|
-
children: [_jsx("img", {
|
|
18
|
-
src: preactLogoUrl,
|
|
19
|
-
className: "app_logo",
|
|
20
|
-
alt: "logo"
|
|
21
|
-
}), _jsx("p", {
|
|
22
|
-
children: "Hello jsenv + preact!"
|
|
23
|
-
}), _jsx("p", {
|
|
24
|
-
children: _jsx(Counter, {})
|
|
25
|
-
}), _jsxs("p", {
|
|
26
|
-
children: ["Edit", " ", _jsx("a", {
|
|
27
|
-
className: "app_link"
|
|
28
|
-
// eslint-disable-next-line no-script-url
|
|
29
|
-
,
|
|
30
|
-
href: "javascript:window.fetch('/internal/open_file/app/app.jsx')",
|
|
31
|
-
children: "app.jsx"
|
|
32
|
-
}), " ", "and save to test HMR updates."]
|
|
33
|
-
}), _jsx("p", {
|
|
34
|
-
children: _jsx("a", {
|
|
35
|
-
className: "app_link",
|
|
36
|
-
href: "https://github.com/jsenv/core",
|
|
37
|
-
target: "_blank",
|
|
38
|
-
rel: "noopener noreferrer",
|
|
39
|
-
children: "Jsenv documentation"
|
|
40
|
-
})
|
|
41
|
-
})]
|
|
42
|
-
})
|
|
43
|
-
});
|
|
44
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Fragment } from "file:///Users/dmail/Documents/dev/core/node_modules/preact/dist/preact.module.js";
|
|
2
|
-
import { useState } from "file:///Users/dmail/Documents/dev/core/node_modules/preact/hooks/dist/hooks.module.js";
|
|
3
|
-
import { jsx as _jsx, jsxs as _jsxs } from "file:///Users/dmail/Documents/dev/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
4
|
-
export const Counter = () => {
|
|
5
|
-
const [count, setCount] = useState(0);
|
|
6
|
-
return _jsxs(Fragment, {
|
|
7
|
-
children: [_jsx("button", {
|
|
8
|
-
id: "counter_button",
|
|
9
|
-
type: "button",
|
|
10
|
-
onClick: () => setCount(count => count + 1),
|
|
11
|
-
children: "Click me"
|
|
12
|
-
}), _jsx("br", {}), "number of click: ", _jsx("span", {
|
|
13
|
-
id: "counter_output",
|
|
14
|
-
children: count
|
|
15
|
-
})]
|
|
16
|
-
});
|
|
17
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en" original-position-stored="">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<link rel="icon" type="image/svg+xml" href="file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-preact/src/preact_logo.svg" original-href-position="5:43;5:67">
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
-
<style original-position="7:5;22:13" content-indented="" jsenv-cooked-by="jsenv:html_inline_content_analysis">
|
|
8
|
-
body {
|
|
9
|
-
-webkit-font-smoothing: antialiased;
|
|
10
|
-
-moz-osx-font-smoothing: grayscale;
|
|
11
|
-
margin: 0;
|
|
12
|
-
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
code {
|
|
16
|
-
font-family: source-code-pro, Menlo, Monaco, Consolas, Courier New, monospace;
|
|
17
|
-
}
|
|
18
|
-
</style>
|
|
19
|
-
<title>Jsenv App</title>
|
|
20
|
-
</head>
|
|
21
|
-
<body>
|
|
22
|
-
<div id="root"></div>
|
|
23
|
-
<script type="module" src="file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-preact/src/main.jsx" original-src-position="27:27;27:43"></script>
|
|
24
|
-
</body>
|
|
25
|
-
</html>
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { render } from "file:///Users/dmail/Documents/dev/core/node_modules/preact/dist/preact.module.js";
|
|
2
|
-
import { App } from "file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-preact/src/app/app.jsx";
|
|
3
|
-
import { jsx as _jsx } from "file:///Users/dmail/Documents/dev/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
4
|
-
render(_jsx(App, {}), document.querySelector("#root"));
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path fill="#673ab8" d="M16 2l12.12 7v14L16 30 3.88 23V9z"/>
|
|
3
|
-
<ellipse fill="none" stroke="#fff" cx="16" cy="16" rx="10.72" ry="4.1" transform="rotate(-37.5 16.007 15.996)"/>
|
|
4
|
-
<ellipse fill="none" stroke="#fff" cx="16" cy="16" rx="4.1" ry="10.72" transform="rotate(-52.5 15.998 15.994)"/>
|
|
5
|
-
<circle fill="#fff" cx="16" cy="16" r="1.86"/>
|
|
6
|
-
</svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var _,e,n,t,o,r,l,u,i,f,c,s={},a=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h=Array.isArray;function d(_,e){for(var n in e)_[n]=e[n];return _}function v(_){_&&_.parentNode&&_.parentNode.removeChild(_)}function m(_,t,o,r,l){var u={type:_,props:t,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==l?++n:l,__i:-1,__u:0};return null==l&&null!=e.vnode&&e.vnode(u),u}function y(_){return _.children}function g(_,e){this.props=_,this.context=e}function k(_,e){if(null==e)return _.__?k(_.__,_.__i+1):null;for(var n;e<_.__k.length;e++)if(null!=(n=_.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof _.type?k(_):null}function b(_){var e,n;if(null!=(_=_.__)&&null!=_.__c){for(_.__e=_.__c.base=null,e=0;e<_.__k.length;e++)if(null!=(n=_.__k[e])&&null!=n.__e){_.__e=_.__c.base=n.__e;break}return b(_)}}function w(_){(!_.__d&&(_.__d=!0)&&t.push(_)&&!H.__r++||o!==e.debounceRendering)&&((o=e.debounceRendering)||r)(H)}function H(){for(var _,n,o,r,u,i,f,c=1;t.length;)t.length>c&&t.sort(l),_=t.shift(),c=t.length,_.__d&&(o=void 0,u=(r=(n=_).__v).__e,i=[],f=[],n.__P&&((o=d({},r)).__v=r.__v+1,e.vnode&&e.vnode(o),U(n.__P,o,r,n.__n,n.__P.namespaceURI,32&r.__u?[u]:null,i,null==u?k(r):u,!!(32&r.__u),f),o.__v=r.__v,o.__.__k[o.__i]=o,T(i,o,f),o.__e!=u&&b(o)));H.__r=0}function x(_,e,n,t,o,r,l,u,i,f,c){var p,d,v,g,b,w,H=t&&t.__k||a,x=e.length;for(i=function(_,e,n,t,o){var r,l,u,i,f,c=n.length,s=c,a=0;for(_.__k=new Array(o),r=0;r<o;r++)null!=(l=e[r])&&"boolean"!=typeof l&&"function"!=typeof l?(i=r+a,(l=_.__k[r]="string"==typeof l||"number"==typeof l||"bigint"==typeof l||l.constructor==String?m(null,l,null,null,null):h(l)?m(y,{children:l},null,null,null):void 0===l.constructor&&l.__b>0?m(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):l).__=_,l.__b=_.__b+1,u=null,-1!==(f=l.__i=S(l,n,i,s))&&(s--,(u=n[f])&&(u.__u|=2)),null==u||null===u.__v?(-1==f&&(o>c?a--:o<c&&a++),"function"!=typeof l.type&&(l.__u|=4)):f!=i&&(f==i-1?a--:f==i+1?a++:(f>i?a--:a++,l.__u|=4))):_.__k[r]=null;if(s)for(r=0;r<c;r++)null!=(u=n[r])&&!(2&u.__u)&&(u.__e==t&&(t=k(u)),M(u,u));return t}(n,e,H,i,x),p=0;p<x;p++)null!=(v=n.__k[p])&&(d=-1===v.__i?s:H[v.__i]||s,v.__i=p,w=U(_,v,d,o,r,l,u,i,f,c),g=v.__e,v.ref&&d.ref!=v.ref&&(d.ref&&D(d.ref,null,v),c.push(v.ref,v.__c||g,v)),null==b&&null!=g&&(b=g),4&v.__u||d.__k===v.__k?i=P(v,i,_):"function"==typeof v.type&&void 0!==w?i=w:g&&(i=g.nextSibling),v.__u&=-7);return n.__e=b,i}function P(_,e,n){var t,o;if("function"==typeof _.type){for(t=_.__k,o=0;t&&o<t.length;o++)t[o]&&(t[o].__=_,e=P(t[o],e,n));return e}_.__e!=e&&(e&&_.type&&!n.contains(e)&&(e=k(_)),n.insertBefore(_.__e,e||null),e=_.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function S(_,e,n,t){var o,r,l=_.key,u=_.type,i=e[n];if(null===i&&null==_.key||i&&l==i.key&&u===i.type&&!(2&i.__u))return n;if(t>(null==i||2&i.__u?0:1))for(o=n-1,r=n+1;o>=0||r<e.length;){if(o>=0){if((i=e[o])&&!(2&i.__u)&&l==i.key&&u===i.type)return o;o--}if(r<e.length){if((i=e[r])&&!(2&i.__u)&&l==i.key&&u===i.type)return r;r++}}return-1}function N(_,e,n){"-"==e[0]?_.setProperty(e,null==n?"":n):_[e]=null==n?"":"number"!=typeof n||p.test(e)?n:n+"px"}function C(_,e,n,t,o){var r;_:if("style"==e)if("string"==typeof n)_.style.cssText=n;else{if("string"==typeof t&&(_.style.cssText=t=""),t)for(e in t)n&&e in n||N(_.style,e,"");if(n)for(e in n)t&&n[e]===t[e]||N(_.style,e,n[e])}else if("o"==e[0]&&"n"==e[1])r=e!=(e=e.replace(u,"$1")),e=e.toLowerCase()in _||"onFocusOut"==e||"onFocusIn"==e?e.toLowerCase().slice(2):e.slice(2),_.l||(_.l={}),_.l[e+r]=n,n?t?n.t=t.t:(n.t=i,_.addEventListener(e,r?c:f,r)):_.removeEventListener(e,r?c:f,r);else{if("http://www.w3.org/2000/svg"==o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in _)try{_[e]=null==n?"":n;break _}catch(_){}"function"==typeof n||(null==n||!1===n&&"-"!=e[4]?_.removeAttribute(e):_.setAttribute(e,"popover"==e&&1==n?"":n))}}function E(_){return function(n){if(this.l){var t=this.l[n.type+_];if(null==n.u)n.u=i++;else if(n.u<t.t)return;return t(e.event?e.event(n):n)}}}function U(_,n,t,o,r,l,u,i,f,c){var s,a,p,m,k,b,w,H,P,S,N,C,E,U,T,D,M,W=n.type;if(void 0!==n.constructor)return null;128&t.__u&&(f=!!(32&t.__u),l=[i=n.__e=t.__e]),(s=e.__b)&&s(n);_:if("function"==typeof W)try{if(H=n.props,P="prototype"in W&&W.prototype.render,S=(s=W.contextType)&&o[s.__c],N=s?S?S.props.value:s.__:o,t.__c?w=(a=n.__c=t.__c).__=a.__E:(P?n.__c=a=new W(H,N):(n.__c=a=new g(H,N),a.constructor=W,a.render=L),S&&S.sub(a),a.props=H,a.state||(a.state={}),a.context=N,a.__n=o,p=a.__d=!0,a.__h=[],a._sb=[]),P&&null==a.__s&&(a.__s=a.state),P&&null!=W.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=d({},a.__s)),d(a.__s,W.getDerivedStateFromProps(H,a.__s))),m=a.props,k=a.state,a.__v=n,p)P&&null==W.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),P&&null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(P&&null==W.getDerivedStateFromProps&&H!==m&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(H,N),!a.__e&&(null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(H,a.__s,N)||n.__v==t.__v)){for(n.__v!=t.__v&&(a.props=H,a.state=a.__s,a.__d=!1),n.__e=t.__e,n.__k=t.__k,n.__k.some((function(_){_&&(_.__=n)})),C=0;C<a._sb.length;C++)a.__h.push(a._sb[C]);a._sb=[],a.__h.length&&u.push(a);break _}null!=a.componentWillUpdate&&a.componentWillUpdate(H,a.__s,N),P&&null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(m,k,b)}))}if(a.context=N,a.props=H,a.__P=_,a.__e=!1,E=e.__r,U=0,P){for(a.state=a.__s,a.__d=!1,E&&E(n),s=a.render(a.props,a.state,a.context),T=0;T<a._sb.length;T++)a.__h.push(a._sb[T]);a._sb=[]}else do{a.__d=!1,E&&E(n),s=a.render(a.props,a.state,a.context),a.state=a.__s}while(a.__d&&++U<25);a.state=a.__s,null!=a.getChildContext&&(o=d(d({},o),a.getChildContext())),P&&!p&&null!=a.getSnapshotBeforeUpdate&&(b=a.getSnapshotBeforeUpdate(m,k)),D=s,null!=s&&s.type===y&&null==s.key&&(D=F(s.props.children)),i=x(_,h(D)?D:[D],n,t,o,r,l,u,i,f,c),a.base=n.__e,n.__u&=-161,a.__h.length&&u.push(a),w&&(a.__E=a.__=null)}catch(_){if(n.__v=null,f||null!=l)if(_.then){for(n.__u|=f?160:128;i&&8==i.nodeType&&i.nextSibling;)i=i.nextSibling;l[l.indexOf(i)]=null,n.__e=i}else for(M=l.length;M--;)v(l[M]);else n.__e=t.__e,n.__k=t.__k;e.__e(_,n,t)}else null==l&&n.__v==t.__v?(n.__k=t.__k,n.__e=t.__e):i=n.__e=A(t.__e,n,t,o,r,l,u,f,c);return(s=e.diffed)&&s(n),128&n.__u?void 0:i}function T(_,n,t){for(var o=0;o<t.length;o++)D(t[o],t[++o],t[++o]);e.__c&&e.__c(n,_),_.some((function(n){try{_=n.__h,n.__h=[],_.some((function(_){_.call(n)}))}catch(_){e.__e(_,n.__v)}}))}function F(_){return"object"!=typeof _||null==_?_:h(_)?_.map(F):d({},_)}function A(n,t,o,r,l,u,i,f,c){var a,p,d,m,y,g,b,w=o.props,H=t.props,P=t.type;if("svg"==P?l="http://www.w3.org/2000/svg":"math"==P?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),null!=u)for(a=0;a<u.length;a++)if((y=u[a])&&"setAttribute"in y==!!P&&(P?y.localName==P:3==y.nodeType)){n=y,u[a]=null;break}if(null==n){if(null==P)return document.createTextNode(H);n=document.createElementNS(l,P,H.is&&H),f&&(e.__m&&e.__m(t,u),f=!1),u=null}if(null===P)w===H||f&&n.data===H||(n.data=H);else{if(u=u&&_.call(n.childNodes),w=o.props||s,!f&&null!=u)for(w={},a=0;a<n.attributes.length;a++)w[(y=n.attributes[a]).name]=y.value;for(a in w)if(y=w[a],"children"==a);else if("dangerouslySetInnerHTML"==a)d=y;else if(!(a in H)){if("value"==a&&"defaultValue"in H||"checked"==a&&"defaultChecked"in H)continue;C(n,a,null,y,l)}for(a in H)y=H[a],"children"==a?m=y:"dangerouslySetInnerHTML"==a?p=y:"value"==a?g=y:"checked"==a?b=y:f&&"function"!=typeof y||w[a]===y||C(n,a,y,w[a],l);if(p)f||d&&(p.__html===d.__html||p.__html===n.innerHTML)||(n.innerHTML=p.__html),t.__k=[];else if(d&&(n.innerHTML=""),x("template"===t.type?n.content:n,h(m)?m:[m],t,o,r,"foreignObject"==P?"http://www.w3.org/1999/xhtml":l,u,i,u?u[0]:o.__k&&k(o,0),f,c),null!=u)for(a=u.length;a--;)v(u[a]);f||(a="value","progress"==P&&null==g?n.removeAttribute("value"):void 0!==g&&(g!==n[a]||"progress"==P&&!g||"option"==P&&g!==w[a])&&C(n,a,g,w[a],l),a="checked",void 0!==b&&b!==n[a]&&C(n,a,b,w[a],l))}return n}function D(_,n,t){try{if("function"==typeof _){var o="function"==typeof _.__u;o&&_.__u(),o&&null==n||(_.__u=_(n))}else _.current=n}catch(_){e.__e(_,t)}}function M(_,n,t){var o,r;if(e.unmount&&e.unmount(_),(o=_.ref)&&(o.current&&o.current!==_.__e||D(o,null,n)),null!=(o=_.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(_){e.__e(_,n)}o.base=o.__P=null}if(o=_.__k)for(r=0;r<o.length;r++)o[r]&&M(o[r],n,t||"function"!=typeof _.type);t||v(_.__e),_.__c=_.__=_.__e=void 0}function L(_,e,n){return this.constructor(_,n)}function W(n,t,o){var r,l,u;t==document&&(t=document.documentElement),e.__&&e.__(n,t),r=!1?null:t.__k,l=[],u=[],U(t,n=t.__k=function(e,n,t){var o,r,l,u={};for(l in n)"key"==l?o=n[l]:"ref"==l?r=n[l]:u[l]=n[l];if(arguments.length>2&&(u.children=arguments.length>3?_.call(arguments,2):t),"function"==typeof e&&null!=e.defaultProps)for(l in e.defaultProps)void 0===u[l]&&(u[l]=e.defaultProps[l]);return m(e,u,o,r,null)}(y,null,[n]),r||s,s,t.namespaceURI,r?null:t.firstChild?_.call(t.childNodes):null,l,r?r.__e:t.firstChild,false,u),T(l,n,u)}_=a.slice,e={__e:function(_,e,n,t){for(var o,r,l;e=e.__;)if((o=e.__c)&&!o.__)try{if((r=o.constructor)&&null!=r.getDerivedStateFromError&&(o.setState(r.getDerivedStateFromError(_)),l=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(_,t||{}),l=o.__d),l)return o.__E=o}catch(e){_=e}throw _}},n=0,g.prototype.setState=function(_,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof _&&(_=_(d({},n),this.props)),_&&d(n,_),null!=_&&this.__v&&(e&&this._sb.push(e),w(this))},g.prototype.forceUpdate=function(_){this.__v&&(this.__e=!0,_&&this.__h.push(_),w(this))},g.prototype.render=y,t=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(_,e){return _.__v.__b-e.__v.__b},H.__r=0,u=/(PointerCapture)$|Capture$/i,i=0,f=E(!1),c=E(!0);var I,R,$,q,B=0,O=[],j=e,z=j.__b,V=j.__r,G=j.diffed,J=j.__c,K=j.unmount,Q=j.__;function X(_,e){j.__h&&j.__h(R,_,B||e),B=0;var n=R.__H||(R.__H={__:[],__h:[]});return _>=n.__.length&&n.__.push({}),n.__[_]}function Y(_){return B=1,function(_,e){var n=X(I++,2);if(n.t=_,!n.__c&&(n.__=[r_(void 0,e),function(_){var e=n.__N?n.__N[0]:n.__[0],t=n.t(e,_);e!==t&&(n.__N=[t,n.__[1]],n.__c.setState({}))}],n.__c=R,!R.__f)){var t=function(_,e,t){if(!n.__c.__H)return!0;var r=n.__c.__H.__.filter((function(_){return!!_.__c}));if(r.every((function(_){return!_.__N})))return!o||o.call(this,_,e,t);var l=n.__c.props!==_;return r.forEach((function(_){if(_.__N){var e=_.__[0];_.__=_.__N,_.__N=void 0,e!==_.__[0]&&(l=!0)}})),o&&o.call(this,_,e,t)||l};R.__f=!0;var o=R.shouldComponentUpdate,r=R.componentWillUpdate;R.componentWillUpdate=function(_,e,n){if(this.__e){var l=o;o=void 0,t(_,e,n),o=l}r&&r.call(this,_,e,n)},R.shouldComponentUpdate=t}return n.__N||n.__}(r_,_)}function Z(_,e){var n=X(I++,4);!j.__s&&function(_,e){return!_||_.length!==e.length||e.some((function(e,n){return e!==_[n]}))}(n.__H,e)&&(n.__=_,n.u=e,R.__h.push(n))}function __(){for(var _;_=O.shift();)if(_.__P&&_.__H)try{_.__H.__h.forEach(t_),_.__H.__h.forEach(o_),_.__H.__h=[]}catch(e){_.__H.__h=[],j.__e(e,_.__v)}}j.__b=function(_){R=null,z&&z(_)},j.__=function(_,e){_&&e.__k&&e.__k.__m&&(_.__m=e.__k.__m),Q&&Q(_,e)},j.__r=function(_){V&&V(_),I=0;var e=(R=_.__c).__H;e&&($===R?(e.__h=[],R.__h=[],e.__.forEach((function(_){_.__N&&(_.__=_.__N),_.u=_.__N=void 0}))):(e.__h.forEach(t_),e.__h.forEach(o_),e.__h=[],I=0)),$=R},j.diffed=function(_){G&&G(_);var e=_.__c;e&&e.__H&&(e.__H.__h.length&&(1!==O.push(e)&&q===j.requestAnimationFrame||((q=j.requestAnimationFrame)||n_)(__)),e.__H.__.forEach((function(_){_.u&&(_.__H=_.u),_.u=void 0}))),$=R=null},j.__c=function(_,e){e.some((function(_){try{_.__h.forEach(t_),_.__h=_.__h.filter((function(_){return!_.__||o_(_)}))}catch(n){e.some((function(_){_.__h&&(_.__h=[])})),e=[],j.__e(n,_.__v)}})),J&&J(_,e)},j.unmount=function(_){K&&K(_);var e,n=_.__c;n&&n.__H&&(n.__H.__.forEach((function(_){try{t_(_)}catch(_){e=_}})),n.__H=void 0,e&&j.__e(e,n.__v))};var e_="function"==typeof requestAnimationFrame;function n_(_){var e,n=function(){clearTimeout(t),e_&&cancelAnimationFrame(e),setTimeout(_)},t=setTimeout(n,100);e_&&(e=requestAnimationFrame(n))}function t_(_){var e=R,n=_.__c;"function"==typeof n&&(_.__c=void 0,n()),R=e}function o_(_){var e=R;_.__c=_.__(),R=e}function r_(_,e){return"function"==typeof e?e(_):e}var l_=0;function u_(_,n,t,o,r,l){n||(n={});var u,i,f=n;if("ref"in f)for(i in f={},n)"ref"==i?u=n[i]:f[i]=n[i];var c={type:_,props:f,key:t,ref:u,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--l_,__i:-1,__u:0,__source:r,__self:l};if("function"==typeof _&&(u=_.defaultProps))for(i in u)void 0===f[i]&&(f[i]=u[i]);return e.vnode&&e.vnode(c),c}export{W as E,Z as _,Y as d,y as k,u_ as u};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en" original-position-stored="">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<link rel="icon" type="image/svg+xml" href="/other/preact_logo.svg?v=7aea73c3" original-href-position="5:43;5:67">
|
|
6
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
7
|
-
<script type="importmap" jsenv-injected-by="jsenv:versioning" content-indented="">
|
|
8
|
-
{
|
|
9
|
-
"imports": {
|
|
10
|
-
"/jsenv_template_web_preact_node_modules.js": "/jsenv_template_web_preact_node_modules.js?v=da45759d"
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
</script>
|
|
14
|
-
<script jsenv-injected-by="jsenv:core" content-indented="">
|
|
15
|
-
;(function() {
|
|
16
|
-
var __versionMappings__ = {
|
|
17
|
-
"/other/preact_logo.svg": "/other/preact_logo.svg?v=7aea73c3"
|
|
18
|
-
};
|
|
19
|
-
window.__v__ = function (specifier) {
|
|
20
|
-
return __versionMappings__[specifier] || specifier
|
|
21
|
-
};
|
|
22
|
-
})();
|
|
23
|
-
</script>
|
|
24
|
-
<style original-position="7:5;22:13" content-indented="" jsenv-cooked-by="jsenv:html_inline_content_analysis">body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}</style>
|
|
25
|
-
<title>Jsenv App</title>
|
|
26
|
-
</head>
|
|
27
|
-
<body>
|
|
28
|
-
<div id="root"></div>
|
|
29
|
-
<script type="module" src="/js/main.js?v=a73569df" original-src-position="27:27;27:43"></script>
|
|
30
|
-
</body>
|
|
31
|
-
</html>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as e,u as t,k as n,_ as o,E as r}from"/jsenv_template_web_preact_node_modules.js";("object"==typeof self?self:process).__InlineContent__=function(e,{type:t="text/plain"}){this.text=e,this.type=t};const a=new __InlineContent__(".app{text-align:center}.app_logo{pointer-events:none;height:40vmin}@media (prefers-reduced-motion:no-preference){.app_logo{animation:20s linear infinite app_logo_spin}}.app_header{color:#fff;background-color:#282c34;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;font-size:calc(10px + 2vmin);display:flex}.app_link{color:#61dafb}@keyframes app_logo_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}button{font-size:calc(10px + 2vmin)}",{type:"text/css"}),p=new CSSStyleSheet;p.replaceSync(a.text);const i=()=>{const[o,r]=e(0);return t(n,{children:[t("button",{id:"counter_button",type:"button",onClick:()=>r((e=>e+1)),children:"Click me"}),t("br",{}),"number of click: ",t("span",{id:"counter_output",children:o})]})},c=new URL(__v__("/other/preact_logo.svg"),import.meta.url);r(t((()=>(o((()=>(document.adoptedStyleSheets=[...document.adoptedStyleSheets,p],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter((e=>e!==p))})),[]),t("div",{className:"app",children:t("header",{className:"app_header",children:[t("img",{src:c,className:"app_logo",alt:"logo"}),t("p",{children:"Hello jsenv + preact!"}),t("p",{children:t(i,{})}),t("p",{children:["Edit"," ",t("a",{className:"app_link",href:"javascript:window.fetch('/internal/open_file/app/app.jsx')",children:"app.jsx"})," ","and save to test HMR updates."]}),t("p",{children:t("a",{className:"app_link",href:"https://github.com/jsenv/core",target:"_blank",rel:"noopener noreferrer",children:"Jsenv documentation"})})]})}))),{}),document.querySelector("#root"));
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path fill="#673ab8" d="M16 2l12.12 7v14L16 30 3.88 23V9z"/>
|
|
3
|
-
<ellipse fill="none" stroke="#fff" cx="16" cy="16" rx="10.72" ry="4.1" transform="rotate(-37.5 16.007 15.996)"/>
|
|
4
|
-
<ellipse fill="none" stroke="#fff" cx="16" cy="16" rx="4.1" ry="10.72" transform="rotate(-52.5 15.998 15.994)"/>
|
|
5
|
-
<circle fill="#fff" cx="16" cy="16" r="1.86"/>
|
|
6
|
-
</svg>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/* eslint-env browser,node */
|
|
2
|
-
|
|
3
|
-
/*
|
|
4
|
-
* This file does not use export const InlineContent = function() {} on purpose:
|
|
5
|
-
* - An export would be renamed by rollup,
|
|
6
|
-
* making it harder to statically detect new InlineContent() calls
|
|
7
|
-
* - An export would be renamed by terser
|
|
8
|
-
* here again it becomes hard to detect new InlineContent() calls
|
|
9
|
-
* Instead it sets "__InlineContent__" on the global object and terser is configured by jsenv
|
|
10
|
-
* to preserve the __InlineContent__ global variable name
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
const globalObject = typeof self === "object" ? self : process;
|
|
14
|
-
globalObject.__InlineContent__ = function (content, {
|
|
15
|
-
type = "text/plain"
|
|
16
|
-
}) {
|
|
17
|
-
this.text = content;
|
|
18
|
-
this.type = type;
|
|
19
|
-
};
|
|
@@ -1,320 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
// construct-style-sheets-polyfill@3.1.0
|
|
3
|
-
// to keep in sync with https://github.com/calebdwilliams/construct-style-sheets
|
|
4
|
-
// copy pasted into jsenv codebase to inject this code with more ease
|
|
5
|
-
(function () {
|
|
6
|
-
if (typeof document === "undefined" || "adoptedStyleSheets" in document) {
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
9
|
-
var hasShadyCss = "ShadyCSS" in window && !ShadyCSS.nativeShadow;
|
|
10
|
-
var bootstrapper = document.implementation.createHTMLDocument("");
|
|
11
|
-
var closedShadowRootRegistry = new WeakMap();
|
|
12
|
-
var _DOMException = typeof DOMException === "object" ? Error : DOMException;
|
|
13
|
-
var defineProperty = Object.defineProperty;
|
|
14
|
-
var forEach = Array.prototype.forEach;
|
|
15
|
-
var importPattern = /@import.+?;?$/gm;
|
|
16
|
-
function rejectImports(contents) {
|
|
17
|
-
var _contents = contents.replace(importPattern, "");
|
|
18
|
-
if (_contents !== contents) {
|
|
19
|
-
console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418");
|
|
20
|
-
}
|
|
21
|
-
return _contents.trim();
|
|
22
|
-
}
|
|
23
|
-
function isElementConnected(element) {
|
|
24
|
-
return "isConnected" in element ? element.isConnected : document.contains(element);
|
|
25
|
-
}
|
|
26
|
-
function unique(arr) {
|
|
27
|
-
return arr.filter(function (value, index) {
|
|
28
|
-
return arr.indexOf(value) === index;
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
function diff(arr1, arr2) {
|
|
32
|
-
return arr1.filter(function (value) {
|
|
33
|
-
return arr2.indexOf(value) === -1;
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
function removeNode(node) {
|
|
37
|
-
node.parentNode.removeChild(node);
|
|
38
|
-
}
|
|
39
|
-
function getShadowRoot(element) {
|
|
40
|
-
return element.shadowRoot || closedShadowRootRegistry.get(element);
|
|
41
|
-
}
|
|
42
|
-
var cssStyleSheetMethods = ["addRule", "deleteRule", "insertRule", "removeRule"];
|
|
43
|
-
var NonConstructedStyleSheet = CSSStyleSheet;
|
|
44
|
-
var nonConstructedProto = NonConstructedStyleSheet.prototype;
|
|
45
|
-
nonConstructedProto.replace = function () {
|
|
46
|
-
return Promise.reject(new _DOMException("Can't call replace on non-constructed CSSStyleSheets."));
|
|
47
|
-
};
|
|
48
|
-
nonConstructedProto.replaceSync = function () {
|
|
49
|
-
throw new _DOMException("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.");
|
|
50
|
-
};
|
|
51
|
-
function isCSSStyleSheetInstance(instance) {
|
|
52
|
-
return typeof instance === "object" ? proto$1.isPrototypeOf(instance) || nonConstructedProto.isPrototypeOf(instance) : false;
|
|
53
|
-
}
|
|
54
|
-
function isNonConstructedStyleSheetInstance(instance) {
|
|
55
|
-
return typeof instance === "object" ? nonConstructedProto.isPrototypeOf(instance) : false;
|
|
56
|
-
}
|
|
57
|
-
var $basicStyleElement = new WeakMap();
|
|
58
|
-
var $locations = new WeakMap();
|
|
59
|
-
var $adoptersByLocation = new WeakMap();
|
|
60
|
-
var $appliedMethods = new WeakMap();
|
|
61
|
-
function addAdopterLocation(sheet, location) {
|
|
62
|
-
var adopter = document.createElement("style");
|
|
63
|
-
$adoptersByLocation.get(sheet).set(location, adopter);
|
|
64
|
-
$locations.get(sheet).push(location);
|
|
65
|
-
return adopter;
|
|
66
|
-
}
|
|
67
|
-
function getAdopterByLocation(sheet, location) {
|
|
68
|
-
return $adoptersByLocation.get(sheet).get(location);
|
|
69
|
-
}
|
|
70
|
-
function removeAdopterLocation(sheet, location) {
|
|
71
|
-
$adoptersByLocation.get(sheet).delete(location);
|
|
72
|
-
$locations.set(sheet, $locations.get(sheet).filter(function (_location) {
|
|
73
|
-
return _location !== location;
|
|
74
|
-
}));
|
|
75
|
-
}
|
|
76
|
-
function restyleAdopter(sheet, adopter) {
|
|
77
|
-
requestAnimationFrame(function () {
|
|
78
|
-
adopter.textContent = $basicStyleElement.get(sheet).textContent;
|
|
79
|
-
$appliedMethods.get(sheet).forEach(function (command) {
|
|
80
|
-
return adopter.sheet[command.method].apply(adopter.sheet, command.args);
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
function checkInvocationCorrectness(self) {
|
|
85
|
-
if (!$basicStyleElement.has(self)) {
|
|
86
|
-
throw new TypeError("Illegal invocation");
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
function ConstructedStyleSheet() {
|
|
90
|
-
var self = this;
|
|
91
|
-
var style = document.createElement("style");
|
|
92
|
-
bootstrapper.body.appendChild(style);
|
|
93
|
-
$basicStyleElement.set(self, style);
|
|
94
|
-
$locations.set(self, []);
|
|
95
|
-
$adoptersByLocation.set(self, new WeakMap());
|
|
96
|
-
$appliedMethods.set(self, []);
|
|
97
|
-
}
|
|
98
|
-
var proto$1 = ConstructedStyleSheet.prototype;
|
|
99
|
-
proto$1.replace = function replace(contents) {
|
|
100
|
-
try {
|
|
101
|
-
this.replaceSync(contents);
|
|
102
|
-
return Promise.resolve(this);
|
|
103
|
-
} catch (e) {
|
|
104
|
-
return Promise.reject(e);
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
proto$1.replaceSync = function replaceSync(contents) {
|
|
108
|
-
checkInvocationCorrectness(this);
|
|
109
|
-
if (typeof contents === "string") {
|
|
110
|
-
var self_1 = this;
|
|
111
|
-
$basicStyleElement.get(self_1).textContent = rejectImports(contents);
|
|
112
|
-
$appliedMethods.set(self_1, []);
|
|
113
|
-
$locations.get(self_1).forEach(function (location) {
|
|
114
|
-
if (location.isConnected()) {
|
|
115
|
-
restyleAdopter(self_1, getAdopterByLocation(self_1, location));
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
defineProperty(proto$1, "cssRules", {
|
|
121
|
-
configurable: true,
|
|
122
|
-
enumerable: true,
|
|
123
|
-
get: function cssRules() {
|
|
124
|
-
checkInvocationCorrectness(this);
|
|
125
|
-
return $basicStyleElement.get(this).sheet.cssRules;
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
defineProperty(proto$1, "media", {
|
|
129
|
-
configurable: true,
|
|
130
|
-
enumerable: true,
|
|
131
|
-
get: function media() {
|
|
132
|
-
checkInvocationCorrectness(this);
|
|
133
|
-
return $basicStyleElement.get(this).sheet.media;
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
cssStyleSheetMethods.forEach(function (method) {
|
|
137
|
-
proto$1[method] = function () {
|
|
138
|
-
var self = this;
|
|
139
|
-
checkInvocationCorrectness(self);
|
|
140
|
-
var args = arguments;
|
|
141
|
-
$appliedMethods.get(self).push({
|
|
142
|
-
method: method,
|
|
143
|
-
args: args
|
|
144
|
-
});
|
|
145
|
-
$locations.get(self).forEach(function (location) {
|
|
146
|
-
if (location.isConnected()) {
|
|
147
|
-
var sheet = getAdopterByLocation(self, location).sheet;
|
|
148
|
-
sheet[method].apply(sheet, args);
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
var basicSheet = $basicStyleElement.get(self).sheet;
|
|
152
|
-
return basicSheet[method].apply(basicSheet, args);
|
|
153
|
-
};
|
|
154
|
-
});
|
|
155
|
-
defineProperty(ConstructedStyleSheet, Symbol.hasInstance, {
|
|
156
|
-
configurable: true,
|
|
157
|
-
value: isCSSStyleSheetInstance
|
|
158
|
-
});
|
|
159
|
-
var defaultObserverOptions = {
|
|
160
|
-
childList: true,
|
|
161
|
-
subtree: true
|
|
162
|
-
};
|
|
163
|
-
var locations = new WeakMap();
|
|
164
|
-
function getAssociatedLocation(element) {
|
|
165
|
-
var location = locations.get(element);
|
|
166
|
-
if (!location) {
|
|
167
|
-
location = new Location(element);
|
|
168
|
-
locations.set(element, location);
|
|
169
|
-
}
|
|
170
|
-
return location;
|
|
171
|
-
}
|
|
172
|
-
function attachAdoptedStyleSheetProperty(constructor) {
|
|
173
|
-
defineProperty(constructor.prototype, "adoptedStyleSheets", {
|
|
174
|
-
configurable: true,
|
|
175
|
-
enumerable: true,
|
|
176
|
-
get: function () {
|
|
177
|
-
return getAssociatedLocation(this).sheets;
|
|
178
|
-
},
|
|
179
|
-
set: function (sheets) {
|
|
180
|
-
getAssociatedLocation(this).update(sheets);
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
function traverseWebComponents(node, callback) {
|
|
185
|
-
var iter = document.createNodeIterator(node, NodeFilter.SHOW_ELEMENT, function (foundNode) {
|
|
186
|
-
return getShadowRoot(foundNode) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;
|
|
187
|
-
}, null, false);
|
|
188
|
-
for (var next = void 0; next = iter.nextNode();) {
|
|
189
|
-
callback(getShadowRoot(next));
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
var $element = new WeakMap();
|
|
193
|
-
var $uniqueSheets = new WeakMap();
|
|
194
|
-
var $observer = new WeakMap();
|
|
195
|
-
function isExistingAdopter(self, element) {
|
|
196
|
-
return element instanceof HTMLStyleElement && $uniqueSheets.get(self).some(function (sheet) {
|
|
197
|
-
return getAdopterByLocation(sheet, self);
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
function getAdopterContainer(self) {
|
|
201
|
-
var element = $element.get(self);
|
|
202
|
-
return element instanceof Document ? element.body : element;
|
|
203
|
-
}
|
|
204
|
-
function adopt(self) {
|
|
205
|
-
var styleList = document.createDocumentFragment();
|
|
206
|
-
var sheets = $uniqueSheets.get(self);
|
|
207
|
-
var observer = $observer.get(self);
|
|
208
|
-
var container = getAdopterContainer(self);
|
|
209
|
-
observer.disconnect();
|
|
210
|
-
sheets.forEach(function (sheet) {
|
|
211
|
-
styleList.appendChild(getAdopterByLocation(sheet, self) || addAdopterLocation(sheet, self));
|
|
212
|
-
});
|
|
213
|
-
container.insertBefore(styleList, null);
|
|
214
|
-
observer.observe(container, defaultObserverOptions);
|
|
215
|
-
sheets.forEach(function (sheet) {
|
|
216
|
-
restyleAdopter(sheet, getAdopterByLocation(sheet, self));
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
function Location(element) {
|
|
220
|
-
var self = this;
|
|
221
|
-
self.sheets = [];
|
|
222
|
-
$element.set(self, element);
|
|
223
|
-
$uniqueSheets.set(self, []);
|
|
224
|
-
$observer.set(self, new MutationObserver(function (mutations, observer) {
|
|
225
|
-
if (!document) {
|
|
226
|
-
observer.disconnect();
|
|
227
|
-
return;
|
|
228
|
-
}
|
|
229
|
-
mutations.forEach(function (mutation) {
|
|
230
|
-
if (!hasShadyCss) {
|
|
231
|
-
forEach.call(mutation.addedNodes, function (node) {
|
|
232
|
-
if (!(node instanceof Element)) {
|
|
233
|
-
return;
|
|
234
|
-
}
|
|
235
|
-
traverseWebComponents(node, function (root) {
|
|
236
|
-
getAssociatedLocation(root).connect();
|
|
237
|
-
});
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
forEach.call(mutation.removedNodes, function (node) {
|
|
241
|
-
if (!(node instanceof Element)) {
|
|
242
|
-
return;
|
|
243
|
-
}
|
|
244
|
-
if (isExistingAdopter(self, node)) {
|
|
245
|
-
adopt(self);
|
|
246
|
-
}
|
|
247
|
-
if (!hasShadyCss) {
|
|
248
|
-
traverseWebComponents(node, function (root) {
|
|
249
|
-
getAssociatedLocation(root).disconnect();
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
});
|
|
253
|
-
});
|
|
254
|
-
}));
|
|
255
|
-
}
|
|
256
|
-
Location.prototype = {
|
|
257
|
-
isConnected: function () {
|
|
258
|
-
var element = $element.get(this);
|
|
259
|
-
return element instanceof Document ? element.readyState !== "loading" : isElementConnected(element.host);
|
|
260
|
-
},
|
|
261
|
-
connect: function () {
|
|
262
|
-
var container = getAdopterContainer(this);
|
|
263
|
-
$observer.get(this).observe(container, defaultObserverOptions);
|
|
264
|
-
if ($uniqueSheets.get(this).length > 0) {
|
|
265
|
-
adopt(this);
|
|
266
|
-
}
|
|
267
|
-
traverseWebComponents(container, function (root) {
|
|
268
|
-
getAssociatedLocation(root).connect();
|
|
269
|
-
});
|
|
270
|
-
},
|
|
271
|
-
disconnect: function () {
|
|
272
|
-
$observer.get(this).disconnect();
|
|
273
|
-
},
|
|
274
|
-
update: function (sheets) {
|
|
275
|
-
var self = this;
|
|
276
|
-
var locationType = $element.get(self) === document ? "Document" : "ShadowRoot";
|
|
277
|
-
if (!Array.isArray(sheets)) {
|
|
278
|
-
throw new TypeError("Failed to set the 'adoptedStyleSheets' property on " + locationType + ": Iterator getter is not callable.");
|
|
279
|
-
}
|
|
280
|
-
if (!sheets.every(isCSSStyleSheetInstance)) {
|
|
281
|
-
throw new TypeError("Failed to set the 'adoptedStyleSheets' property on " + locationType + ": Failed to convert value to 'CSSStyleSheet'");
|
|
282
|
-
}
|
|
283
|
-
if (sheets.some(isNonConstructedStyleSheetInstance)) {
|
|
284
|
-
throw new TypeError("Failed to set the 'adoptedStyleSheets' property on " + locationType + ": Can't adopt non-constructed stylesheets");
|
|
285
|
-
}
|
|
286
|
-
self.sheets = sheets;
|
|
287
|
-
var oldUniqueSheets = $uniqueSheets.get(self);
|
|
288
|
-
var uniqueSheets = unique(sheets);
|
|
289
|
-
var removedSheets = diff(oldUniqueSheets, uniqueSheets);
|
|
290
|
-
removedSheets.forEach(function (sheet) {
|
|
291
|
-
removeNode(getAdopterByLocation(sheet, self));
|
|
292
|
-
removeAdopterLocation(sheet, self);
|
|
293
|
-
});
|
|
294
|
-
$uniqueSheets.set(self, uniqueSheets);
|
|
295
|
-
if (self.isConnected() && uniqueSheets.length > 0) {
|
|
296
|
-
adopt(self);
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
};
|
|
300
|
-
window.CSSStyleSheet = ConstructedStyleSheet;
|
|
301
|
-
attachAdoptedStyleSheetProperty(Document);
|
|
302
|
-
if ("ShadowRoot" in window) {
|
|
303
|
-
attachAdoptedStyleSheetProperty(ShadowRoot);
|
|
304
|
-
var proto = Element.prototype;
|
|
305
|
-
var attach_1 = proto.attachShadow;
|
|
306
|
-
proto.attachShadow = function attachShadow(init) {
|
|
307
|
-
var root = attach_1.call(this, init);
|
|
308
|
-
if (init.mode === "closed") {
|
|
309
|
-
closedShadowRootRegistry.set(this, root);
|
|
310
|
-
}
|
|
311
|
-
return root;
|
|
312
|
-
};
|
|
313
|
-
}
|
|
314
|
-
var documentLocation = getAssociatedLocation(document);
|
|
315
|
-
if (documentLocation.isConnected()) {
|
|
316
|
-
documentLocation.connect();
|
|
317
|
-
} else {
|
|
318
|
-
document.addEventListener("DOMContentLoaded", documentLocation.connect.bind(documentLocation));
|
|
319
|
-
}
|
|
320
|
-
})();
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
function getDefaultExportFromCjs(x) {
|
|
2
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
3
|
-
}
|
|
4
|
-
var jsxRuntime = {
|
|
5
|
-
exports: {}
|
|
6
|
-
};
|
|
7
|
-
var reactJsxRuntime_production = {};
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and 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
|
-
var hasRequiredReactJsxRuntime_production;
|
|
20
|
-
function requireReactJsxRuntime_production() {
|
|
21
|
-
if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
|
|
22
|
-
hasRequiredReactJsxRuntime_production = 1;
|
|
23
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
24
|
-
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
25
|
-
function jsxProd(type, config, maybeKey) {
|
|
26
|
-
var key = null;
|
|
27
|
-
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
28
|
-
void 0 !== config.key && (key = "" + config.key);
|
|
29
|
-
if ("key" in config) {
|
|
30
|
-
maybeKey = {};
|
|
31
|
-
for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
|
|
32
|
-
} else maybeKey = config;
|
|
33
|
-
config = maybeKey.ref;
|
|
34
|
-
return {
|
|
35
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
36
|
-
type: type,
|
|
37
|
-
key: key,
|
|
38
|
-
ref: void 0 !== config ? config : null,
|
|
39
|
-
props: maybeKey
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
43
|
-
reactJsxRuntime_production.jsx = jsxProd;
|
|
44
|
-
reactJsxRuntime_production.jsxs = jsxProd;
|
|
45
|
-
return reactJsxRuntime_production;
|
|
46
|
-
}
|
|
47
|
-
var hasRequiredJsxRuntime;
|
|
48
|
-
function requireJsxRuntime() {
|
|
49
|
-
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
50
|
-
hasRequiredJsxRuntime = 1;
|
|
51
|
-
{
|
|
52
|
-
jsxRuntime.exports = requireReactJsxRuntime_production();
|
|
53
|
-
}
|
|
54
|
-
return jsxRuntime.exports;
|
|
55
|
-
}
|
|
56
|
-
var jsxRuntimeExports = requireJsxRuntime();
|
|
57
|
-
var __jsenv_default_import__ = /*@__PURE__*/getDefaultExportFromCjs(jsxRuntimeExports);
|
|
58
|
-
var Fragment = jsxRuntimeExports.Fragment;
|
|
59
|
-
var jsx = jsxRuntimeExports.jsx;
|
|
60
|
-
var jsxs = jsxRuntimeExports.jsxs;
|
|
61
|
-
export { Fragment, __jsenv_default_import__ as default, jsx, jsxs };
|