mashlib 2.2.3-2 → 2.2.3-3
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/dist/mashlib.js +3 -3
- package/dist/mashlib.js.map +1 -1
- package/dist/mashlib.min.js +1 -1
- package/dist/mashlib.min.js.map +1 -1
- package/package.json +4 -3
package/dist/mashlib.min.js
CHANGED
|
@@ -6404,5 +6404,5 @@ const c=!1},60023(e,t,n){"use strict";function i(){return{async:!1,breaks:!1,ext
|
|
|
6404
6404
|
</div>`:""}
|
|
6405
6405
|
</div>
|
|
6406
6406
|
</div>
|
|
6407
|
-
`}},ka="solid-ui-header";customElements.get(ka)||customElements.define(ka,Ea);var _a=s(17523);const Sa="mashlib-layout",Ta=()=>{const e=localStorage.getItem(Sa);return"mobile"===e||"desktop"===e||"auto"===e?e:"auto"},Ia=()=>window.innerWidth<=768?"mobile":"desktop",Pa=(e=Ta())=>{const t="auto"===e?Ia():e;return((e,t)=>{const n=document.documentElement,i=window.matchMedia("(pointer: coarse)").matches?"touch":"pointer";n.setAttribute("data-layout",e),n.setAttribute("data-layout-preference",t),n.setAttribute("data-input-mode",i),n.style.setProperty("--app-height",`${window.innerHeight}px`),window.dispatchEvent(new CustomEvent("mashlib:layoutchange",{detail:{inputMode:i,layout:e,preference:t,viewport:{height:window.innerHeight,width:window.innerWidth}}}))})(t,e),t},Na=()=>document.documentElement.getAttribute("data-layout")||Ia(),Ma=()=>window.matchMedia("(pointer: coarse)").matches?"touch":"pointer",ja=()=>Ta(),La=()=>({width:window.innerWidth,height:window.innerHeight}),Ba=()=>{let e=0;const t=()=>{Pa()};t(),window.addEventListener("resize",()=>{e&&window.cancelAnimationFrame(e),e=window.requestAnimationFrame(()=>{e=0,t()})}),window.matchMedia("(pointer: coarse)").addEventListener("change",t),window.matchMedia("(max-width: 768px)").addEventListener("change",t)},Da="mashlib-theme",Oa=e=>{"dark"===e?document.documentElement.setAttribute("data-theme","dark"):document.documentElement.removeAttribute("data-theme"),window.dispatchEvent(new CustomEvent("mashlib:themechange",{detail:{theme:e}}))},Ra=()=>"dark"===document.documentElement.getAttribute("data-theme")?"dark":"light",Fa=()=>{const e=localStorage.getItem(Da),t="function"==typeof window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;Oa("dark"===e||"light"===e?e:t?"dark":"light")},za={buildTime:"2026-06-21T15:
|
|
6407
|
+
`}},ka="solid-ui-header";customElements.get(ka)||customElements.define(ka,Ea);var _a=s(17523);const Sa="mashlib-layout",Ta=()=>{const e=localStorage.getItem(Sa);return"mobile"===e||"desktop"===e||"auto"===e?e:"auto"},Ia=()=>window.innerWidth<=768?"mobile":"desktop",Pa=(e=Ta())=>{const t="auto"===e?Ia():e;return((e,t)=>{const n=document.documentElement,i=window.matchMedia("(pointer: coarse)").matches?"touch":"pointer";n.setAttribute("data-layout",e),n.setAttribute("data-layout-preference",t),n.setAttribute("data-input-mode",i),n.style.setProperty("--app-height",`${window.innerHeight}px`),window.dispatchEvent(new CustomEvent("mashlib:layoutchange",{detail:{inputMode:i,layout:e,preference:t,viewport:{height:window.innerHeight,width:window.innerWidth}}}))})(t,e),t},Na=()=>document.documentElement.getAttribute("data-layout")||Ia(),Ma=()=>window.matchMedia("(pointer: coarse)").matches?"touch":"pointer",ja=()=>Ta(),La=()=>({width:window.innerWidth,height:window.innerHeight}),Ba=()=>{let e=0;const t=()=>{Pa()};t(),window.addEventListener("resize",()=>{e&&window.cancelAnimationFrame(e),e=window.requestAnimationFrame(()=>{e=0,t()})}),window.matchMedia("(pointer: coarse)").addEventListener("change",t),window.matchMedia("(max-width: 768px)").addEventListener("change",t)},Da="mashlib-theme",Oa=e=>{"dark"===e?document.documentElement.setAttribute("data-theme","dark"):document.documentElement.removeAttribute("data-theme"),window.dispatchEvent(new CustomEvent("mashlib:themechange",{detail:{theme:e}}))},Ra=()=>"dark"===document.documentElement.getAttribute("data-theme")?"dark":"light",Fa=()=>{const e=localStorage.getItem(Da),t="function"==typeof window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;Oa("dark"===e||"light"===e?e:t?"dark":"light")},za={buildTime:"2026-06-21T15:36:20Z",commit:"44c7cd41c75ac5e68dec9b6a267cf18ccc6dfcfe",npmInfo:{mashlib:"2.2.3-3",npm:"10.9.8",node:"22.22.3",acorn:"8.16.0",ada:"2.9.2",amaro:"1.1.8",ares:"1.34.6",brotli:"1.1.0",cjs_module_lexer:"2.2.0",cldr:"48.0",icu:"78.2",llhttp:"9.3.1",modules:"127",napi:"10",nbytes:"0.1.3",ncrypto:"0.0.1",nghttp2:"1.64.0",openssl:"3.5.6",simdjson:"4.5.0",simdutf:"6.4.2",sqlite:"3.51.3",tz:"2026a",undici:"6.24.1",unicode:"17.0",uv:"1.51.0",uvwasi:"0.0.23",v8:"12.4.254.21-node.56",zlib:"1.3.1-e00f703",zstd:"1.5.7"}},Ua=window;Ua.panes=_a,Ua.mashlib={versionInfo:za},Ba(),Fa();const $a=()=>({layout:Na(),layoutPreference:ja(),inputMode:Ma(),theme:Ra(),viewport:La()}),Ha=async e=>{const t=_a.getOutliner(document);t&&(t.context||(t.context={}),_a.updateEnvironment(t,$a()),await _a.refreshUI(t))};window.addEventListener("mashlib:layoutchange",Ha),window.addEventListener("mashlib:themechange",Ha),Ua.panes.runDataBrowser=function(n){e.Fetcher.crossSiteProxyTemplate=window.origin+"/xss/?uri={uri}";try{const e=document.createElement("meta");e.setAttribute("name","monetization"),e.setAttribute("content",`$${window.location.host}`),document.head.appendChild(e)}catch{}window.addEventListener("load",Ha),t.authn.checkUser().then(()=>_a.initMainPage(t.solidLogicSingleton.store,n,$a())).then(()=>{Ha()}).catch(()=>{})},window.onpopstate=function(t){Ua.document.outline.GotoSubject(e.sym(window.document.location.href),!0,void 0,!0,void 0)}})(),l})());
|
|
6408
6408
|
//# sourceMappingURL=mashlib.min.js.map
|