@jsenv/cli 0.3.1 → 0.3.4
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 +3 -3
- package/template-node-package/package.json +4 -4
- package/template-web/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/js/new_stylesheet.js +1 -1
- package/template-web/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/js/s.js +2 -2
- package/template-web/.jsenv/shape/index.html +1 -1
- package/template-web/.jsenv/shape/main.js +1 -1
- package/template-web/.jsenv/shape/main.nomodule7js_module_fallback=.js +1 -1
- package/template-web/dist/index.html +1 -1
- package/template-web/dist/js/main.nomodule.js +1 -1
- package/template-web/package.json +5 -5
- package/template-web-components/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/js/new_stylesheet.js +1 -1
- package/template-web-components/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/js/s.js +2 -2
- package/template-web-components/.jsenv/shape/index.html +1 -1
- package/template-web-components/.jsenv/shape/main.js +1 -1
- package/template-web-components/.jsenv/shape/main.nomodule7js_module_fallback=.js +1 -1
- package/template-web-components/dist/index.html +1 -1
- package/template-web-components/dist/js/main.nomodule.js +1 -1
- package/template-web-components/package.json +5 -5
- package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/js/new_stylesheet.js +1 -1
- package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/js/s.js +2 -2
- package/template-web-preact/.jsenv/shape/index.html +1 -1
- package/template-web-preact/.jsenv/shape/main.jsx +1 -1
- package/template-web-preact/.jsenv/shape/main.nomodule7js_module_fallback=.jsx +1 -1
- package/template-web-preact/dist/index.html +1 -1
- package/template-web-preact/dist/js/main.nomodule.js +1 -1
- package/template-web-preact/package.json +6 -6
- package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/js/new_stylesheet.js +1 -1
- package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/react/jsx-runtime7cjs_as_js_module=.jsx +3 -3
- package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/react7cjs_as_js_module=.jsx +14 -211
- package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/react-dom/client7cjs_as_js_module=.jsx +91 -288
- package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/js/s.js +2 -2
- package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.production.js +18 -225
- package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.production.js__compile_info__.json +3 -3
- package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.production.map +1 -1
- package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.production.js +3 -3
- 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 +3 -3
- package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.production.map +1 -1
- package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.production.js +104 -311
- 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 +3 -3
- package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.production.map +1 -1
- package/template-web-react/.jsenv/craft/cjs_to_esm/__compile_context__.json +1 -1
- package/template-web-react/.jsenv/shape/@fs/Users/dmail/Documents/dev/core/packages/related/cli/template-web-react/dist/vendors.js +1 -0
- package/template-web-react/.jsenv/shape/@fs/Users/dmail/Documents/dev/core/packages/related/cli/template-web-react/dist/vendors.nomodule7js_module_fallback=.js +1 -0
- package/template-web-react/.jsenv/shape/index.html +2 -2
- package/template-web-react/.jsenv/shape/main.jsx +1 -1
- package/template-web-react/.jsenv/shape/main.nomodule7js_module_fallback=.jsx +1 -1
- package/template-web-react/dist/index.html +2 -2
- package/template-web-react/dist/js/main.nomodule.js +1 -1
- package/template-web-react/dist/js/vendors.nomodule.js +1 -1
- package/template-web-react/package.json +6 -6
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/node_modules/@prefresh/core/src/computeKey.js +0 -38
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/node_modules/@prefresh/core/src/computeKey.js.map +0 -11
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/node_modules/@prefresh/core/src/constants.js +0 -13
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/node_modules/@prefresh/core/src/index.js +0 -210
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/node_modules/@prefresh/core/src/index.js.map +0 -11
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/node_modules/@prefresh/core/src/runtime/catchError.js +0 -17
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/node_modules/@prefresh/core/src/runtime/catchError.js.map +0 -11
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/node_modules/@prefresh/core/src/runtime/debounceRendering.js +0 -21
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/node_modules/@prefresh/core/src/runtime/debounceRendering.js.map +0 -11
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/node_modules/@prefresh/core/src/runtime/signaturesForType.js +0 -2
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/node_modules/@prefresh/core/src/runtime/unmount.js +0 -20
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/node_modules/@prefresh/core/src/runtime/unmount.js.map +0 -11
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/node_modules/@prefresh/core/src/runtime/vnode.js +0 -68
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/node_modules/@prefresh/core/src/runtime/vnode.js.map +0 -11
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/node_modules/@prefresh/core/src/runtime/vnodesForComponent.js +0 -3
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/node_modules/@prefresh/utils/src/index.js +0 -43
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/node_modules/preact/debug/dist/debug.module.js +0 -2
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/node_modules/preact/debug/dist/debug.module.js.map +0 -181
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/node_modules/preact/devtools/dist/devtools.module.js +0 -2
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/node_modules/preact/devtools/dist/devtools.module.js.map +0 -29
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/node_modules/preact/dist/preact.module.js +0 -2
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/node_modules/preact/dist/preact.module.js.map +0 -270
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/node_modules/preact/hooks/dist/hooks.module.js +0 -195
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/node_modules/preact/hooks/dist/hooks.module.js.map +0 -168
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js +0 -2
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js.map +0 -77
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/packages/internal/ast/src/html/html_src_set.js +0 -18
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/packages/internal/plugin-supervisor/src/client/supervisor.js +0 -1360
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/packages/related/plugin-preact/src/client/preact_refresh.js +0 -36
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/packages/related/plugin-preact/src/client/preact_refresh.js.map +0 -11
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/src/plugins/autoreload/client/autoreload.js +0 -382
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/src/plugins/autoreload/client/autoreload.js.map +0 -11
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/src/plugins/import_meta_hot/client/import_meta_hot.js +0 -81
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/src/plugins/ribbon/client/ribbon.js +0 -93
- package/template-web-preact/.jsenv/chrome@131.00/@fs/Users/dmail/Documents/dev/core/src/plugins/server_events/client/server_events_client.js +0 -461
- package/template-web-preact/.jsenv/chrome@131.00/app/app.css +0 -43
- package/template-web-preact/.jsenv/chrome@131.00/app/app.jsx +0 -95
- package/template-web-preact/.jsenv/chrome@131.00/app/app.jsx.map +0 -44
- package/template-web-preact/.jsenv/chrome@131.00/app/counter.jsx +0 -45
- package/template-web-preact/.jsenv/chrome@131.00/app/counter.jsx.map +0 -33
- package/template-web-preact/.jsenv/chrome@131.00/index.html +0 -68
- package/template-web-preact/.jsenv/chrome@131.00/index.html@L11C7-L15C16.js +0 -5
- package/template-web-preact/.jsenv/chrome@131.00/index.html@L7C5-L21C13.css +0 -10
- package/template-web-preact/.jsenv/chrome@131.00/main.jsx +0 -10
- package/template-web-preact/.jsenv/chrome@131.00/main.jsx.map +0 -24
- package/template-web-preact/.jsenv/chrome@131.00/preact_logo.svg +0 -6
- package/template-web-react/.jsenv/shape/vendors.js +0 -1
- package/template-web-react/.jsenv/shape/vendors.nomodule7js_module_fallback=.js +0 -1
- /package/template-web-components/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/packages/independent/frontend/custom-elements-redefine/src/{main.js → @jsenv_custom-elements-redefine_main.js} +0 -0
- /package/template-web-preact/.jsenv/shape/{vendors.js → @fs/Users/dmail/Documents/dev/core/packages/related/cli/template-web-preact/dist/vendors.js} +0 -0
- /package/template-web-preact/.jsenv/shape/{vendors.nomodule7js_module_fallback=.js → @fs/Users/dmail/Documents/dev/core/packages/related/cli/template-web-preact/dist/vendors.nomodule7js_module_fallback=.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Command Line Interface for jsenv",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"./template-*/**"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@jsenv/humanize": "1.3.
|
|
31
|
-
"@jsenv/urls": "2.6.
|
|
30
|
+
"@jsenv/humanize": "1.3.1",
|
|
31
|
+
"@jsenv/urls": "2.6.2",
|
|
32
32
|
"prompts": "2.4.2"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"test:coverage": "npm run test -- --coverage"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@jsenv/assert": "4.4.
|
|
16
|
-
"@jsenv/core": "40.0.
|
|
17
|
-
"@jsenv/eslint-config-relax": "1.4.
|
|
18
|
-
"@jsenv/test": "3.6.
|
|
15
|
+
"@jsenv/assert": "4.4.4",
|
|
16
|
+
"@jsenv/core": "40.0.2",
|
|
17
|
+
"@jsenv/eslint-config-relax": "1.4.1",
|
|
18
|
+
"@jsenv/test": "3.6.2",
|
|
19
19
|
"eslint": "9.19.0",
|
|
20
20
|
"prettier": "3.4.2"
|
|
21
21
|
}
|
package/template-web/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/js/new_stylesheet.js
CHANGED
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
var iter = document.createNodeIterator(node, NodeFilter.SHOW_ELEMENT, function (foundNode) {
|
|
186
186
|
return getShadowRoot(foundNode) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;
|
|
187
187
|
}, null, false);
|
|
188
|
-
for (var next =
|
|
188
|
+
for (var next = void 0; next = iter.nextNode();) {
|
|
189
189
|
callback(getShadowRoot(next));
|
|
190
190
|
}
|
|
191
191
|
}
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
return recover(e);
|
|
52
52
|
}
|
|
53
53
|
if (result && result.then) {
|
|
54
|
-
return result.then(
|
|
54
|
+
return result.then(void 0, recover);
|
|
55
55
|
}
|
|
56
56
|
return result;
|
|
57
57
|
}
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
if (r) {
|
|
66
66
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
67
67
|
var t = {}.toString.call(r).slice(8, -1);
|
|
68
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) :
|
|
68
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
function _arrayLikeToArray(r, a) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,f=k.prototype;f.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},f.replaceSync=function(e){if(
|
|
1
|
+
!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,f=k.prototype;f.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},f.replaceSync=function(e){if(_(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),u.get(t).forEach((function(e){e.isConnected()&&R(t,M(t,e))}))}},r(f,"cssRules",{configurable:!0,enumerable:!0,get:function(){return _(this),s.get(this).sheet.cssRules}}),r(f,"media",{configurable:!0,enumerable:!0,get:function(){return _(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){f[e]=function(){var t=this;_(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=M(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(k,Symbol.hasInstance,{configurable:!0,value:E});var h={childList:!0,subtree:!0},p=new WeakMap,S=new WeakMap,m=new WeakMap,y=new WeakMap;if(O.prototype={isConnected:function(){var e=S.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=W(this);y.get(this).observe(e,h),m.get(this).length>0&&x(this),L(e,(function(e){T(e).connect()}))},disconnect:function(){y.get(this).disconnect()},update:function(e){var t=this,n=S.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=m.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=M(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter((function(e){return e!==t})))}(e,t)})),m.set(t,i),t.isConnected()&&i.length>0&&x(t)}},window.CSSStyleSheet=k,F(Document),"ShadowRoot"in window){F(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=T(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function C(e){return e.shadowRoot||n.get(e)}function E(e){return"object"==typeof e&&(f.isPrototypeOf(e)||a.isPrototypeOf(e))}function b(e){return"object"==typeof e&&a.isPrototypeOf(e)}function M(e,t){return l.get(e).get(t)}function R(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function _(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function k(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),u.set(e,[]),l.set(e,new WeakMap),d.set(e,[])}function T(e){var t=p.get(e);return t||(t=new O(e),p.set(e,t)),t}function F(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return T(this).sheets},set:function(e){T(this).update(e)}})}function L(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return C(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(C(o))}function W(e){var t=S.get(e);return t instanceof Document?t.body:t}function x(e){var t=document.createDocumentFragment(),n=m.get(e),o=y.get(e),r=W(e);o.disconnect(),n.forEach((function(n){t.appendChild(M(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,h),n.forEach((function(t){R(t,M(t,e))}))}function O(t){var n=this;n.sheets=[],S.set(n,t),m.set(n,[]),y.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&L(e,(function(e){T(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&m.get(e).some((function(t){return M(t,e)}))}(n,t)&&x(n),e||L(t,(function(e){T(e).disconnect()})))}))})):o.disconnect()})))}}();const e=new __InlineContent__(".logo{pointer-events:none;height:40vmin}",{type:"text/css"}),t=new CSSStyleSheet;t.replaceSync(e.text);let n=0;document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];const o=new URL("!~{006}~",import.meta.url);document.querySelector("#root").innerHTML='<h1>Hello world!</h1>\n<img class="logo" src='.concat(o,' alt="logo" />\n<p>\n <button id="counter_button">Click me!</button>\n <p>\n Number of clicks: <span id="counter_output"></span>\n </p>\n</p>\n<p>\n Edit <a href="javascript:window.fetch(\'/.internal/open_file/jsenv_logo.svg\')">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href="https://github.com/jsenv/core" target="_blank">Documentation</a>'),(()=>{const e=document.querySelector("#counter_button"),t=document.querySelector("#counter_output");t.innerHTML=n,e.onclick=()=>{n++,t.innerHTML=n}})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register([],(function(e,t){"use strict";var n,o,r,c;return{setters:[],execute:function(){!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,f=k.prototype;f.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},f.replaceSync=function(e){if(
|
|
1
|
+
System.register([],(function(e,t){"use strict";var n,o,r,c;return{setters:[],execute:function(){!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,f=k.prototype;f.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},f.replaceSync=function(e){if(_(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),u.get(t).forEach((function(e){e.isConnected()&&R(t,M(t,e))}))}},r(f,"cssRules",{configurable:!0,enumerable:!0,get:function(){return _(this),s.get(this).sheet.cssRules}}),r(f,"media",{configurable:!0,enumerable:!0,get:function(){return _(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){f[e]=function(){var t=this;_(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=M(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(k,Symbol.hasInstance,{configurable:!0,value:E});var h={childList:!0,subtree:!0},p=new WeakMap,S=new WeakMap,m=new WeakMap,y=new WeakMap;if(O.prototype={isConnected:function(){var e=S.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=L(this);y.get(this).observe(e,h),m.get(this).length>0&&W(this),F(e,(function(e){T(e).connect()}))},disconnect:function(){y.get(this).disconnect()},update:function(e){var t=this,n=S.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=m.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=M(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter((function(e){return e!==t})))}(e,t)})),m.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=k,x(Document),"ShadowRoot"in window){x(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=T(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function C(e){return e.shadowRoot||n.get(e)}function E(e){return"object"==typeof e&&(f.isPrototypeOf(e)||a.isPrototypeOf(e))}function b(e){return"object"==typeof e&&a.isPrototypeOf(e)}function M(e,t){return l.get(e).get(t)}function R(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function _(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function k(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),u.set(e,[]),l.set(e,new WeakMap),d.set(e,[])}function T(e){var t=p.get(e);return t||(t=new O(e),p.set(e,t)),t}function x(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return T(this).sheets},set:function(e){T(this).update(e)}})}function F(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return C(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(C(o))}function L(e){var t=S.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=m.get(e),o=y.get(e),r=L(e);o.disconnect(),n.forEach((function(n){t.appendChild(M(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,h),n.forEach((function(t){R(t,M(t,e))}))}function O(t){var n=this;n.sheets=[],S.set(n,t),m.set(n,[]),y.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&F(e,(function(e){T(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&m.get(e).some((function(t){return M(t,e)}))}(n,t)&&W(n),e||F(t,(function(e){T(e).disconnect()})))}))})):o.disconnect()})))}}(),n=new __InlineContent__(".logo{pointer-events:none;height:40vmin}",{type:"text/css"}),(o=new CSSStyleSheet).replaceSync(n.text),r=0,document.adoptedStyleSheets=[...document.adoptedStyleSheets,o],c=new URL(__v__("/other/jsenv_logo.svg"),t.meta.url),document.querySelector("#root").innerHTML='<h1>Hello world!</h1>\n<img class="logo" src='.concat(c,' alt="logo" />\n<p>\n <button id="counter_button">Click me!</button>\n <p>\n Number of clicks: <span id="counter_output"></span>\n </p>\n</p>\n<p>\n Edit <a href="javascript:window.fetch(\'/.internal/open_file/jsenv_logo.svg\')">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href="https://github.com/jsenv/core" target="_blank">Documentation</a>'),(()=>{const e=document.querySelector("#counter_button"),t=document.querySelector("#counter_output");t.innerHTML=r,e.onclick=()=>{r++,t.innerHTML=r}})()}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register([],(function(e,t){"use strict";var n,o,r,c;return{setters:[],execute:function(){!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,f=k.prototype;f.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},f.replaceSync=function(e){if(
|
|
1
|
+
System.register([],(function(e,t){"use strict";var n,o,r,c;return{setters:[],execute:function(){!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,f=k.prototype;f.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},f.replaceSync=function(e){if(_(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),u.get(t).forEach((function(e){e.isConnected()&&R(t,M(t,e))}))}},r(f,"cssRules",{configurable:!0,enumerable:!0,get:function(){return _(this),s.get(this).sheet.cssRules}}),r(f,"media",{configurable:!0,enumerable:!0,get:function(){return _(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){f[e]=function(){var t=this;_(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=M(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(k,Symbol.hasInstance,{configurable:!0,value:E});var h={childList:!0,subtree:!0},p=new WeakMap,S=new WeakMap,m=new WeakMap,y=new WeakMap;if(O.prototype={isConnected:function(){var e=S.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=L(this);y.get(this).observe(e,h),m.get(this).length>0&&W(this),F(e,(function(e){T(e).connect()}))},disconnect:function(){y.get(this).disconnect()},update:function(e){var t=this,n=S.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=m.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=M(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter((function(e){return e!==t})))}(e,t)})),m.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=k,x(Document),"ShadowRoot"in window){x(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=T(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function C(e){return e.shadowRoot||n.get(e)}function E(e){return"object"==typeof e&&(f.isPrototypeOf(e)||a.isPrototypeOf(e))}function b(e){return"object"==typeof e&&a.isPrototypeOf(e)}function M(e,t){return l.get(e).get(t)}function R(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function _(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function k(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),u.set(e,[]),l.set(e,new WeakMap),d.set(e,[])}function T(e){var t=p.get(e);return t||(t=new O(e),p.set(e,t)),t}function x(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return T(this).sheets},set:function(e){T(this).update(e)}})}function F(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return C(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(C(o))}function L(e){var t=S.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=m.get(e),o=y.get(e),r=L(e);o.disconnect(),n.forEach((function(n){t.appendChild(M(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,h),n.forEach((function(t){R(t,M(t,e))}))}function O(t){var n=this;n.sheets=[],S.set(n,t),m.set(n,[]),y.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&F(e,(function(e){T(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&m.get(e).some((function(t){return M(t,e)}))}(n,t)&&W(n),e||F(t,(function(e){T(e).disconnect()})))}))})):o.disconnect()})))}}(),n=new __InlineContent__(".logo{pointer-events:none;height:40vmin}",{type:"text/css"}),(o=new CSSStyleSheet).replaceSync(n.text),r=0,document.adoptedStyleSheets=[...document.adoptedStyleSheets,o],c=new URL(__v__("/other/jsenv_logo.svg"),t.meta.url),document.querySelector("#root").innerHTML='<h1>Hello world!</h1>\n<img class="logo" src='.concat(c,' alt="logo" />\n<p>\n <button id="counter_button">Click me!</button>\n <p>\n Number of clicks: <span id="counter_output"></span>\n </p>\n</p>\n<p>\n Edit <a href="javascript:window.fetch(\'/.internal/open_file/jsenv_logo.svg\')">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href="https://github.com/jsenv/core" target="_blank">Documentation</a>'),(()=>{const e=document.querySelector("#counter_button"),t=document.querySelector("#counter_output");t.innerHTML=r,e.onclick=()=>{r++,t.innerHTML=r}})()}}}));
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@babel/plugin-syntax-import-attributes": "7.26.0",
|
|
18
|
-
"@jsenv/assert": "4.4.
|
|
19
|
-
"@jsenv/core": "40.0.
|
|
20
|
-
"@jsenv/eslint-config-relax": "1.4.
|
|
21
|
-
"@jsenv/plugin-bundling": "2.8.
|
|
18
|
+
"@jsenv/assert": "4.4.4",
|
|
19
|
+
"@jsenv/core": "40.0.2",
|
|
20
|
+
"@jsenv/eslint-config-relax": "1.4.1",
|
|
21
|
+
"@jsenv/plugin-bundling": "2.8.1",
|
|
22
22
|
"@jsenv/plugin-minification": "1.6.0",
|
|
23
|
-
"@jsenv/test": "3.6.
|
|
23
|
+
"@jsenv/test": "3.6.2",
|
|
24
24
|
"eslint": "9.18.0",
|
|
25
25
|
"open": "10.1.0",
|
|
26
26
|
"@playwright/browser-chromium": "1.49.1",
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
var iter = document.createNodeIterator(node, NodeFilter.SHOW_ELEMENT, function (foundNode) {
|
|
186
186
|
return getShadowRoot(foundNode) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;
|
|
187
187
|
}, null, false);
|
|
188
|
-
for (var next =
|
|
188
|
+
for (var next = void 0; next = iter.nextNode();) {
|
|
189
189
|
callback(getShadowRoot(next));
|
|
190
190
|
}
|
|
191
191
|
}
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
return recover(e);
|
|
52
52
|
}
|
|
53
53
|
if (result && result.then) {
|
|
54
|
-
return result.then(
|
|
54
|
+
return result.then(void 0, recover);
|
|
55
55
|
}
|
|
56
56
|
return result;
|
|
57
57
|
}
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
if (r) {
|
|
66
66
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
67
67
|
var t = {}.toString.call(r).slice(8, -1);
|
|
68
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) :
|
|
68
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
function _arrayLikeToArray(r, a) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,p=
|
|
1
|
+
!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,p=_.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(R(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),u.get(t).forEach((function(e){e.isConnected()&&T(t,M(t,e))}))}},r(p,"cssRules",{configurable:!0,enumerable:!0,get:function(){return R(this),s.get(this).sheet.cssRules}}),r(p,"media",{configurable:!0,enumerable:!0,get:function(){return R(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){p[e]=function(){var t=this;R(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=M(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(_,Symbol.hasInstance,{configurable:!0,value:C});var h={childList:!0,subtree:!0},f=new WeakMap,m=new WeakMap,S=new WeakMap,y=new WeakMap;if(O.prototype={isConnected:function(){var e=m.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=F(this);y.get(this).observe(e,h),S.get(this).length>0&&W(this),x(e,(function(e){k(e).connect()}))},disconnect:function(){y.get(this).disconnect()},update:function(e){var t=this,n=m.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(C))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=S.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=M(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter((function(e){return e!==t})))}(e,t)})),S.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=_,L(Document),"ShadowRoot"in window){L(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=k(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function E(e){return e.shadowRoot||n.get(e)}function C(e){return"object"==typeof e&&(p.isPrototypeOf(e)||a.isPrototypeOf(e))}function b(e){return"object"==typeof e&&a.isPrototypeOf(e)}function M(e,t){return l.get(e).get(t)}function T(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function R(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function _(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),u.set(e,[]),l.set(e,new WeakMap),d.set(e,[])}function k(e){var t=f.get(e);return t||(t=new O(e),f.set(e,t)),t}function L(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return k(this).sheets},set:function(e){k(this).update(e)}})}function x(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return E(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(E(o))}function F(e){var t=m.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=S.get(e),o=y.get(e),r=F(e);o.disconnect(),n.forEach((function(n){t.appendChild(M(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,h),n.forEach((function(t){T(t,M(t,e))}))}function O(t){var n=this;n.sheets=[],m.set(n,t),S.set(n,[]),y.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&x(e,(function(e){k(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&S.get(e).some((function(t){return M(t,e)}))}(n,t)&&W(n),e||x(t,(function(e){k(e).disconnect()})))}))})):o.disconnect()})))}}();const e=new __InlineContent__(".logo{pointer-events:none;height:40vmin}",{type:"text/css"}),t=new CSSStyleSheet;t.replaceSync(e.text);let n=0;const o=new URL("!~{006}~",import.meta.url);class r extends HTMLElement{constructor(){super();const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[...e.adoptedStyleSheets,t],e.innerHTML='\n<h1>Hello world!</h1>\n<img class="logo" src='.concat(o,' alt="logo" />\n<p>\n <button id="counter_button">Click me!</button>\n <p>\n Number of clicks: <span id="counter_output"></span>\n </p>\n</p>\n<p>\n Edit <a href="javascript:window.fetch(\'/.internal/open_file/jsenv_logo.svg\')">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href="https://github.com/jsenv/core" target="_blank">Documentation</a>'),(e=>{const t=e.querySelector("#counter_button"),o=e.querySelector("#counter_output");o.innerHTML=n,t.onclick=()=>{n++,o.innerHTML=n}})(e)}}customElements.define("my-app",r),document.querySelector("#root").innerHTML="<my-app></my-app>";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register([],(function(e,t){"use strict";var n,o,r,c,i;return{setters:[],execute:function(){!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,
|
|
1
|
+
System.register([],(function(e,t){"use strict";var n,o,r,c,i;return{setters:[],execute:function(){!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,f=_.prototype;f.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},f.replaceSync=function(e){if(R(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),u.get(t).forEach((function(e){e.isConnected()&&T(t,M(t,e))}))}},r(f,"cssRules",{configurable:!0,enumerable:!0,get:function(){return R(this),s.get(this).sheet.cssRules}}),r(f,"media",{configurable:!0,enumerable:!0,get:function(){return R(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){f[e]=function(){var t=this;R(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=M(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(_,Symbol.hasInstance,{configurable:!0,value:C});var h={childList:!0,subtree:!0},p=new WeakMap,S=new WeakMap,m=new WeakMap,y=new WeakMap;if(O.prototype={isConnected:function(){var e=S.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=F(this);y.get(this).observe(e,h),m.get(this).length>0&&W(this),x(e,(function(e){k(e).connect()}))},disconnect:function(){y.get(this).disconnect()},update:function(e){var t=this,n=S.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(C))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=m.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=M(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter((function(e){return e!==t})))}(e,t)})),m.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=_,L(Document),"ShadowRoot"in window){L(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=k(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function E(e){return e.shadowRoot||n.get(e)}function C(e){return"object"==typeof e&&(f.isPrototypeOf(e)||a.isPrototypeOf(e))}function b(e){return"object"==typeof e&&a.isPrototypeOf(e)}function M(e,t){return l.get(e).get(t)}function T(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function R(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function _(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),u.set(e,[]),l.set(e,new WeakMap),d.set(e,[])}function k(e){var t=p.get(e);return t||(t=new O(e),p.set(e,t)),t}function L(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return k(this).sheets},set:function(e){k(this).update(e)}})}function x(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return E(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(E(o))}function F(e){var t=S.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=m.get(e),o=y.get(e),r=F(e);o.disconnect(),n.forEach((function(n){t.appendChild(M(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,h),n.forEach((function(t){T(t,M(t,e))}))}function O(t){var n=this;n.sheets=[],S.set(n,t),m.set(n,[]),y.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&x(e,(function(e){k(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&m.get(e).some((function(t){return M(t,e)}))}(n,t)&&W(n),e||x(t,(function(e){k(e).disconnect()})))}))})):o.disconnect()})))}}(),o=new __InlineContent__(".logo{pointer-events:none;height:40vmin}",{type:"text/css"}),(r=new CSSStyleSheet).replaceSync(o.text),c=0,i=new URL(__v__("/other/jsenv_logo.svg"),t.meta.url),n=class extends HTMLElement{constructor(){super();const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[...e.adoptedStyleSheets,r],e.innerHTML='\n<h1>Hello world!</h1>\n<img class="logo" src='.concat(i,' alt="logo" />\n<p>\n <button id="counter_button">Click me!</button>\n <p>\n Number of clicks: <span id="counter_output"></span>\n </p>\n</p>\n<p>\n Edit <a href="javascript:window.fetch(\'/.internal/open_file/jsenv_logo.svg\')">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href="https://github.com/jsenv/core" target="_blank">Documentation</a>'),(e=>{const t=e.querySelector("#counter_button"),n=e.querySelector("#counter_output");n.innerHTML=c,t.onclick=()=>{c++,n.innerHTML=c}})(e)}},customElements.define("my-app",n),document.querySelector("#root").innerHTML="<my-app></my-app>"}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register([],(function(e,t){"use strict";var n,o,r,c,i;return{setters:[],execute:function(){!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,
|
|
1
|
+
System.register([],(function(e,t){"use strict";var n,o,r,c,i;return{setters:[],execute:function(){!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,f=_.prototype;f.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},f.replaceSync=function(e){if(R(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),u.get(t).forEach((function(e){e.isConnected()&&T(t,M(t,e))}))}},r(f,"cssRules",{configurable:!0,enumerable:!0,get:function(){return R(this),s.get(this).sheet.cssRules}}),r(f,"media",{configurable:!0,enumerable:!0,get:function(){return R(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){f[e]=function(){var t=this;R(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=M(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(_,Symbol.hasInstance,{configurable:!0,value:C});var h={childList:!0,subtree:!0},p=new WeakMap,S=new WeakMap,m=new WeakMap,y=new WeakMap;if(O.prototype={isConnected:function(){var e=S.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=F(this);y.get(this).observe(e,h),m.get(this).length>0&&W(this),x(e,(function(e){k(e).connect()}))},disconnect:function(){y.get(this).disconnect()},update:function(e){var t=this,n=S.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(C))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=m.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=M(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter((function(e){return e!==t})))}(e,t)})),m.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=_,L(Document),"ShadowRoot"in window){L(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=k(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function E(e){return e.shadowRoot||n.get(e)}function C(e){return"object"==typeof e&&(f.isPrototypeOf(e)||a.isPrototypeOf(e))}function b(e){return"object"==typeof e&&a.isPrototypeOf(e)}function M(e,t){return l.get(e).get(t)}function T(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function R(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function _(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),u.set(e,[]),l.set(e,new WeakMap),d.set(e,[])}function k(e){var t=p.get(e);return t||(t=new O(e),p.set(e,t)),t}function L(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return k(this).sheets},set:function(e){k(this).update(e)}})}function x(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return E(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(E(o))}function F(e){var t=S.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=m.get(e),o=y.get(e),r=F(e);o.disconnect(),n.forEach((function(n){t.appendChild(M(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,h),n.forEach((function(t){T(t,M(t,e))}))}function O(t){var n=this;n.sheets=[],S.set(n,t),m.set(n,[]),y.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&x(e,(function(e){k(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&m.get(e).some((function(t){return M(t,e)}))}(n,t)&&W(n),e||x(t,(function(e){k(e).disconnect()})))}))})):o.disconnect()})))}}(),o=new __InlineContent__(".logo{pointer-events:none;height:40vmin}",{type:"text/css"}),(r=new CSSStyleSheet).replaceSync(o.text),c=0,i=new URL(__v__("/other/jsenv_logo.svg"),t.meta.url),n=class extends HTMLElement{constructor(){super();const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[...e.adoptedStyleSheets,r],e.innerHTML='\n<h1>Hello world!</h1>\n<img class="logo" src='.concat(i,' alt="logo" />\n<p>\n <button id="counter_button">Click me!</button>\n <p>\n Number of clicks: <span id="counter_output"></span>\n </p>\n</p>\n<p>\n Edit <a href="javascript:window.fetch(\'/.internal/open_file/jsenv_logo.svg\')">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href="https://github.com/jsenv/core" target="_blank">Documentation</a>'),(e=>{const t=e.querySelector("#counter_button"),n=e.querySelector("#counter_output");n.innerHTML=c,t.onclick=()=>{c++,n.innerHTML=c}})(e)}},customElements.define("my-app",n),document.querySelector("#root").innerHTML="<my-app></my-app>"}}}));
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@babel/plugin-syntax-import-attributes": "7.26.0",
|
|
19
19
|
"@jsenv/custom-elements-redefine": "0.0.1",
|
|
20
|
-
"@jsenv/assert": "4.4.
|
|
21
|
-
"@jsenv/core": "40.0.
|
|
22
|
-
"@jsenv/plugin-bundling": "2.8.
|
|
20
|
+
"@jsenv/assert": "4.4.4",
|
|
21
|
+
"@jsenv/core": "40.0.2",
|
|
22
|
+
"@jsenv/plugin-bundling": "2.8.1",
|
|
23
23
|
"@jsenv/plugin-minification": "1.6.0",
|
|
24
|
-
"@jsenv/eslint-config-relax": "1.4.
|
|
25
|
-
"@jsenv/test": "3.6.
|
|
24
|
+
"@jsenv/eslint-config-relax": "1.4.1",
|
|
25
|
+
"@jsenv/test": "3.6.2",
|
|
26
26
|
"eslint": "9.18.0",
|
|
27
27
|
"open": "10.1.0",
|
|
28
28
|
"@playwright/browser-chromium": "1.49.1",
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
var iter = document.createNodeIterator(node, NodeFilter.SHOW_ELEMENT, function (foundNode) {
|
|
186
186
|
return getShadowRoot(foundNode) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;
|
|
187
187
|
}, null, false);
|
|
188
|
-
for (var next =
|
|
188
|
+
for (var next = void 0; next = iter.nextNode();) {
|
|
189
189
|
callback(getShadowRoot(next));
|
|
190
190
|
}
|
|
191
191
|
}
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
return recover(e);
|
|
52
52
|
}
|
|
53
53
|
if (result && result.then) {
|
|
54
|
-
return result.then(
|
|
54
|
+
return result.then(void 0, recover);
|
|
55
55
|
}
|
|
56
56
|
return result;
|
|
57
57
|
}
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
if (r) {
|
|
66
66
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
67
67
|
var t = {}.toString.call(r).slice(8, -1);
|
|
68
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) :
|
|
68
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
function _arrayLikeToArray(r, a) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as e,u as t,k as n,_ as o,E as r}from"!~{005}~";!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap,p=M.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(
|
|
1
|
+
import{d as e,u as t,k as n,_ as o,E as r}from"!~{005}~";!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap,p=M.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(x(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),l.get(t).forEach((function(e){e.isConnected()&&k(t,_(t,e))}))}},r(p,"cssRules",{configurable:!0,enumerable:!0,get:function(){return x(this),s.get(this).sheet.cssRules}}),r(p,"media",{configurable:!0,enumerable:!0,get:function(){return x(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){p[e]=function(){var t=this;x(t);var n=arguments;d.get(t).push({method:e,args:n}),l.get(t).forEach((function(o){if(o.isConnected()){var r=_(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(M,Symbol.hasInstance,{configurable:!0,value:E});var f={childList:!0,subtree:!0},h=new WeakMap,m=new WeakMap,S=new WeakMap,y=new WeakMap;if(O.prototype={isConnected:function(){var e=m.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=F(this);y.get(this).observe(e,f),S.get(this).length>0&&W(this),j(e,(function(e){R(e).connect()}))},disconnect:function(){y.get(this).disconnect()},update:function(e){var t=this,n=m.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=S.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=_(e,t)).parentNode.removeChild(n),function(e,t){u.get(e).delete(t),l.set(e,l.get(e).filter((function(e){return e!==t})))}(e,t)})),S.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=M,N(Document),"ShadowRoot"in window){N(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=R(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function C(e){return e.shadowRoot||n.get(e)}function E(e){return"object"==typeof e&&(p.isPrototypeOf(e)||a.isPrototypeOf(e))}function b(e){return"object"==typeof e&&a.isPrototypeOf(e)}function _(e,t){return u.get(e).get(t)}function k(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function x(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function M(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),l.set(e,[]),u.set(e,new WeakMap),d.set(e,[])}function R(e){var t=h.get(e);return t||(t=new O(e),h.set(e,t)),t}function N(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return R(this).sheets},set:function(e){R(this).update(e)}})}function j(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return C(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(C(o))}function F(e){var t=m.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=S.get(e),o=y.get(e),r=F(e);o.disconnect(),n.forEach((function(n){t.appendChild(_(n,e)||function(e,t){var n=document.createElement("style");return u.get(e).set(t,n),l.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,f),n.forEach((function(t){k(t,_(t,e))}))}function O(t){var n=this;n.sheets=[],m.set(n,t),S.set(n,[]),y.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&j(e,(function(e){R(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&S.get(e).some((function(t){return _(t,e)}))}(n,t)&&W(n),e||j(t,(function(e){R(e).disconnect()})))}))})):o.disconnect()})))}}();const c=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"}),i=new CSSStyleSheet;i.replaceSync(c.text);const a=()=>{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})]})},s=new URL("!~{007}~",import.meta.url);r(t((()=>(o((()=>(document.adoptedStyleSheets=[...document.adoptedStyleSheets,i],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter((e=>e!==i))})),[]),t("div",{className:"app",children:t("header",{className:"app_header",children:[t("img",{src:s,className:"app_logo",alt:"logo"}),t("p",{children:"Hello jsenv + preact!"}),t("p",{children:t(a,{})}),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 +1 @@
|
|
|
1
|
-
System.register([__v__("/js/vendors.nomodule.js")],(function(e,t){"use strict";var n,o,r,c,i,a,s,u,l;return{setters:[function(e){n=e.d,o=e.u,r=e.k,c=e._,i=e.E}],execute:function(){!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,p=M.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(
|
|
1
|
+
System.register([__v__("/js/vendors.nomodule.js")],(function(e,t){"use strict";var n,o,r,c,i,a,s,u,l;return{setters:[function(e){n=e.d,o=e.u,r=e.k,c=e._,i=e.E}],execute:function(){!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,p=M.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(x(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),u.get(t).forEach((function(e){e.isConnected()&&k(t,_(t,e))}))}},r(p,"cssRules",{configurable:!0,enumerable:!0,get:function(){return x(this),s.get(this).sheet.cssRules}}),r(p,"media",{configurable:!0,enumerable:!0,get:function(){return x(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){p[e]=function(){var t=this;x(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=_(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(M,Symbol.hasInstance,{configurable:!0,value:E});var f={childList:!0,subtree:!0},h=new WeakMap,m=new WeakMap,S=new WeakMap,y=new WeakMap;if(O.prototype={isConnected:function(){var e=m.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=F(this);y.get(this).observe(e,f),S.get(this).length>0&&W(this),j(e,(function(e){R(e).connect()}))},disconnect:function(){y.get(this).disconnect()},update:function(e){var t=this,n=m.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=S.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=_(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter((function(e){return e!==t})))}(e,t)})),S.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=M,N(Document),"ShadowRoot"in window){N(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=R(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function C(e){return e.shadowRoot||n.get(e)}function E(e){return"object"==typeof e&&(p.isPrototypeOf(e)||a.isPrototypeOf(e))}function b(e){return"object"==typeof e&&a.isPrototypeOf(e)}function _(e,t){return l.get(e).get(t)}function k(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function x(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function M(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),u.set(e,[]),l.set(e,new WeakMap),d.set(e,[])}function R(e){var t=h.get(e);return t||(t=new O(e),h.set(e,t)),t}function N(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return R(this).sheets},set:function(e){R(this).update(e)}})}function j(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return C(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(C(o))}function F(e){var t=m.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=S.get(e),o=y.get(e),r=F(e);o.disconnect(),n.forEach((function(n){t.appendChild(_(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,f),n.forEach((function(t){k(t,_(t,e))}))}function O(t){var n=this;n.sheets=[],m.set(n,t),S.set(n,[]),y.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&j(e,(function(e){R(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&S.get(e).some((function(t){return _(t,e)}))}(n,t)&&W(n),e||j(t,(function(e){R(e).disconnect()})))}))})):o.disconnect()})))}}(),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"}),(s=new CSSStyleSheet).replaceSync(a.text),u=()=>{const[e,t]=n(0);return o(r,{children:[o("button",{id:"counter_button",type:"button",onClick:()=>t((e=>e+1)),children:"Click me"}),o("br",{}),"number of click: ",o("span",{id:"counter_output",children:e})]})},l=new URL(__v__("/other/preact_logo.svg"),t.meta.url),i(o((()=>(c((()=>(document.adoptedStyleSheets=[...document.adoptedStyleSheets,s],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter((e=>e!==s))})),[]),o("div",{className:"app",children:o("header",{className:"app_header",children:[o("img",{src:l,className:"app_logo",alt:"logo"}),o("p",{children:"Hello jsenv + preact!"}),o("p",{children:o(u,{})}),o("p",{children:["Edit"," ",o("a",{className:"app_link",href:"javascript:window.fetch('/internal/open_file/app/app.jsx')",children:"app.jsx"})," ","and save to test HMR updates."]}),o("p",{children:o("a",{className:"app_link",href:"https://github.com/jsenv/core",target:"_blank",rel:"noopener noreferrer",children:"Jsenv documentation"})})]})}))),{}),document.querySelector("#root"))}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register([__v__("/js/vendors.nomodule.js")],(function(e,t){"use strict";var n,o,r,c,i,a,s,u,l;return{setters:[function(e){n=e.d,o=e.u,r=e.k,c=e._,i=e.E}],execute:function(){!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,p=M.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(
|
|
1
|
+
System.register([__v__("/js/vendors.nomodule.js")],(function(e,t){"use strict";var n,o,r,c,i,a,s,u,l;return{setters:[function(e){n=e.d,o=e.u,r=e.k,c=e._,i=e.E}],execute:function(){!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,p=M.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(x(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),u.get(t).forEach((function(e){e.isConnected()&&k(t,_(t,e))}))}},r(p,"cssRules",{configurable:!0,enumerable:!0,get:function(){return x(this),s.get(this).sheet.cssRules}}),r(p,"media",{configurable:!0,enumerable:!0,get:function(){return x(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){p[e]=function(){var t=this;x(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=_(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(M,Symbol.hasInstance,{configurable:!0,value:E});var f={childList:!0,subtree:!0},h=new WeakMap,m=new WeakMap,S=new WeakMap,y=new WeakMap;if(O.prototype={isConnected:function(){var e=m.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=F(this);y.get(this).observe(e,f),S.get(this).length>0&&W(this),j(e,(function(e){R(e).connect()}))},disconnect:function(){y.get(this).disconnect()},update:function(e){var t=this,n=m.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=S.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=_(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter((function(e){return e!==t})))}(e,t)})),S.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=M,N(Document),"ShadowRoot"in window){N(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=R(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function C(e){return e.shadowRoot||n.get(e)}function E(e){return"object"==typeof e&&(p.isPrototypeOf(e)||a.isPrototypeOf(e))}function b(e){return"object"==typeof e&&a.isPrototypeOf(e)}function _(e,t){return l.get(e).get(t)}function k(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function x(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function M(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),u.set(e,[]),l.set(e,new WeakMap),d.set(e,[])}function R(e){var t=h.get(e);return t||(t=new O(e),h.set(e,t)),t}function N(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return R(this).sheets},set:function(e){R(this).update(e)}})}function j(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return C(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(C(o))}function F(e){var t=m.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=S.get(e),o=y.get(e),r=F(e);o.disconnect(),n.forEach((function(n){t.appendChild(_(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,f),n.forEach((function(t){k(t,_(t,e))}))}function O(t){var n=this;n.sheets=[],m.set(n,t),S.set(n,[]),y.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&j(e,(function(e){R(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&S.get(e).some((function(t){return _(t,e)}))}(n,t)&&W(n),e||j(t,(function(e){R(e).disconnect()})))}))})):o.disconnect()})))}}(),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"}),(s=new CSSStyleSheet).replaceSync(a.text),u=()=>{const[e,t]=n(0);return o(r,{children:[o("button",{id:"counter_button",type:"button",onClick:()=>t((e=>e+1)),children:"Click me"}),o("br",{}),"number of click: ",o("span",{id:"counter_output",children:e})]})},l=new URL(__v__("/other/preact_logo.svg"),t.meta.url),i(o((()=>(c((()=>(document.adoptedStyleSheets=[...document.adoptedStyleSheets,s],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter((e=>e!==s))})),[]),o("div",{className:"app",children:o("header",{className:"app_header",children:[o("img",{src:l,className:"app_logo",alt:"logo"}),o("p",{children:"Hello jsenv + preact!"}),o("p",{children:o(u,{})}),o("p",{children:["Edit"," ",o("a",{className:"app_link",href:"javascript:window.fetch('/internal/open_file/app/app.jsx')",children:"app.jsx"})," ","and save to test HMR updates."]}),o("p",{children:o("a",{className:"app_link",href:"https://github.com/jsenv/core",target:"_blank",rel:"noopener noreferrer",children:"Jsenv documentation"})})]})}))),{}),document.querySelector("#root"))}}}));
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@babel/plugin-syntax-import-attributes": "7.26.0",
|
|
22
22
|
"@babel/plugin-transform-react-jsx": "7.25.9",
|
|
23
|
-
"@jsenv/assert": "4.4.
|
|
24
|
-
"@jsenv/core": "40.0.
|
|
25
|
-
"@jsenv/plugin-preact": "1.7.
|
|
26
|
-
"@jsenv/plugin-bundling": "2.8.
|
|
23
|
+
"@jsenv/assert": "4.4.4",
|
|
24
|
+
"@jsenv/core": "40.0.2",
|
|
25
|
+
"@jsenv/plugin-preact": "1.7.1",
|
|
26
|
+
"@jsenv/plugin-bundling": "2.8.1",
|
|
27
27
|
"@jsenv/plugin-minification": "1.6.0",
|
|
28
|
-
"@jsenv/eslint-config-relax": "1.4.
|
|
29
|
-
"@jsenv/test": "3.6.
|
|
28
|
+
"@jsenv/eslint-config-relax": "1.4.1",
|
|
29
|
+
"@jsenv/test": "3.6.2",
|
|
30
30
|
"eslint": "9.18.0",
|
|
31
31
|
"open": "10.1.0",
|
|
32
32
|
"@playwright/browser-chromium": "1.49.1",
|