@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,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,154 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* https://github.com/lit/lit/issues/1844
|
|
3
|
-
* https://github.com/vegarringdal/custom-elements-hmr-polyfill/tree/master
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
export const allowCustomElementsRedefine = ({
|
|
7
|
-
updateWholeDOMOnRedefine = false
|
|
8
|
-
} = {}) => {
|
|
9
|
-
const elementsChanged = [];
|
|
10
|
-
let timeoutId;
|
|
11
|
-
const onCustomElementChange = (customElementName
|
|
12
|
-
// customElementClass,
|
|
13
|
-
// options,
|
|
14
|
-
) => {
|
|
15
|
-
if (!updateWholeDOMOnRedefine) {
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
elementsChanged.push(customElementName);
|
|
19
|
-
clearTimeout(timeoutId);
|
|
20
|
-
timeoutId = setTimeout(() => {
|
|
21
|
-
if (document.body) {
|
|
22
|
-
requestAnimationFrame(() => {
|
|
23
|
-
// re-render the whole DOM
|
|
24
|
-
// this will make less calls to connectedCallback/disconnectedCallback on replaced child node when created.
|
|
25
|
-
const oldBodyHtml = document.body.innerHTML;
|
|
26
|
-
document.body.innerHTML = "";
|
|
27
|
-
document.body.innerHTML = oldBodyHtml;
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
elementsChanged.length = 0;
|
|
31
|
-
}, 250);
|
|
32
|
-
};
|
|
33
|
-
const customElementClassMap = new Map();
|
|
34
|
-
const defineOriginal = customElements.define;
|
|
35
|
-
customElements.define = (customElementName, customElementClass, options) => {
|
|
36
|
-
const registeredCustomElement = customElements.get(customElementName);
|
|
37
|
-
customElementClassMap.set(customElementName, customElementClass);
|
|
38
|
-
if (registeredCustomElement) {
|
|
39
|
-
onCustomElementChange(customElementName, customElementClass, options);
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
const CustomElementFacade = createCustomElementFacade(customElementName, customElementClass);
|
|
43
|
-
defineOriginal.call(customElements, customElementName, CustomElementFacade, options);
|
|
44
|
-
};
|
|
45
|
-
const observerSymbol = Symbol.for("observedAttributesObserver");
|
|
46
|
-
const createCustomElementFacade = (customElementName, customElementFirstClass) => {
|
|
47
|
-
class CustomElementFacade extends customElementFirstClass {
|
|
48
|
-
static get observedAttributes() {
|
|
49
|
-
return [];
|
|
50
|
-
}
|
|
51
|
-
constructor(...args) {
|
|
52
|
-
const CustomElementClass = customElementClassMap.get(customElementName);
|
|
53
|
-
if (CustomElementClass !== customElementFirstClass) {
|
|
54
|
-
update_prototype_chain: {
|
|
55
|
-
let ClassCandidate = CustomElementClass;
|
|
56
|
-
while (ClassCandidate) {
|
|
57
|
-
const nextClassCandidate = Object.getPrototypeOf(ClassCandidate);
|
|
58
|
-
if (!nextClassCandidate) {
|
|
59
|
-
break;
|
|
60
|
-
}
|
|
61
|
-
const name = nextClassCandidate.name;
|
|
62
|
-
if (name) {
|
|
63
|
-
const constructor = window[name];
|
|
64
|
-
if (constructor && constructor.prototype instanceof Element) {
|
|
65
|
-
patchProperties(CustomElementFacade.prototype, ClassCandidate.prototype);
|
|
66
|
-
break;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
ClassCandidate = nextClassCandidate;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
update_prototype: {
|
|
73
|
-
const CustomElementPrototype = CustomElementClass.prototype;
|
|
74
|
-
patchProperties(CustomElementFacade.prototype, CustomElementPrototype);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
const customElementInstance = Reflect.construct(CustomElementClass, args, CustomElementFacade);
|
|
78
|
-
// eslint-disable-next-line no-constructor-return
|
|
79
|
-
return customElementInstance;
|
|
80
|
-
}
|
|
81
|
-
connectedCallback(...args) {
|
|
82
|
-
const CustomElementClass = customElementClassMap.get(customElementName);
|
|
83
|
-
const CustomElementPrototype = CustomElementClass.prototype;
|
|
84
|
-
const observedAttributes = CustomElementClass.observedAttributes;
|
|
85
|
-
|
|
86
|
-
// call initial callback when class is created
|
|
87
|
-
if (observedAttributes) {
|
|
88
|
-
if (Array.isArray(observedAttributes)) {
|
|
89
|
-
observedAttributes.forEach(observedAttributeName => {
|
|
90
|
-
const haveAtt = this.getAttributeNode(observedAttributeName);
|
|
91
|
-
if (haveAtt) {
|
|
92
|
-
CustomElementPrototype.attributeChangedCallback.call(this, observedAttributeName, null, this.getAttribute(observedAttributeName), null);
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
} else {
|
|
96
|
-
console.warn("observedAttributes in ".concat(customElementName, " is not array, please fix"));
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
const mutationObserver = new MutationObserver(mutationList => {
|
|
100
|
-
mutationList.forEach(mutation => {
|
|
101
|
-
if (CustomElementPrototype.attributeChangedCallback && observedAttributes && observedAttributes.includes(mutation.attributeName)) {
|
|
102
|
-
CustomElementPrototype.attributeChangedCallback.call(this, mutation.attributeName, mutation.oldValue, this.getAttribute(mutation.attributeName), null);
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
this[observerSymbol] = mutationObserver;
|
|
107
|
-
mutationObserver.observe(this, {
|
|
108
|
-
childList: false,
|
|
109
|
-
attributes: true,
|
|
110
|
-
attributeOldValue: true,
|
|
111
|
-
subtree: false
|
|
112
|
-
});
|
|
113
|
-
if (CustomElementPrototype.connectedCallback) {
|
|
114
|
-
CustomElementPrototype.connectedCallback.call(this, ...args);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
disconnectedCallback(...args) {
|
|
118
|
-
this[observerSymbol].disconnect();
|
|
119
|
-
this[observerSymbol] = null;
|
|
120
|
-
const CustomElementClass = customElementClassMap.get(customElementName);
|
|
121
|
-
const CustomElementPrototype = CustomElementClass.prototype;
|
|
122
|
-
if (CustomElementPrototype.disconnectedCallback) {
|
|
123
|
-
CustomElementPrototype.disconnectedCallback.call(this, ...args);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
adoptedCallback(...args) {
|
|
127
|
-
const CustomElementClass = customElementClassMap.get(customElementName);
|
|
128
|
-
const CustomElementPrototype = CustomElementClass.prototype;
|
|
129
|
-
if (CustomElementPrototype.adoptedCallback) {
|
|
130
|
-
CustomElementPrototype.adoptedCallback.call(this, ...args);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
return CustomElementFacade;
|
|
135
|
-
};
|
|
136
|
-
const patchProperties = (into, from) => {
|
|
137
|
-
const ownPropertyNames = Object.getOwnPropertyNames(from);
|
|
138
|
-
ownPropertyNames.forEach(ownPropertyName => {
|
|
139
|
-
if (PROPERTY_NAMES_TO_SKIP.includes(ownPropertyName)) {
|
|
140
|
-
return;
|
|
141
|
-
}
|
|
142
|
-
const propertyDescriptor = Object.getOwnPropertyDescriptor(from, ownPropertyName);
|
|
143
|
-
if (!propertyDescriptor) {
|
|
144
|
-
return;
|
|
145
|
-
}
|
|
146
|
-
if (!propertyDescriptor.configurable) {
|
|
147
|
-
console.warn("[custom-elements-redefined]", "".concat(ownPropertyName, " is not configurable, skipping"));
|
|
148
|
-
return;
|
|
149
|
-
}
|
|
150
|
-
Object.defineProperty(into, ownPropertyName, propertyDescriptor);
|
|
151
|
-
});
|
|
152
|
-
};
|
|
153
|
-
const PROPERTY_NAMES_TO_SKIP = ["name", "prototype", "length"];
|
|
154
|
-
};
|