@stacksjs/stx 0.2.475 → 0.2.477
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/{chunk-46zk1sva.js → chunk-0791vv14.js} +1 -1
- package/dist/{chunk-v81y568k.js → chunk-08an7y4w.js} +1 -1
- package/dist/{chunk-31rx2tgv.js → chunk-18ansg4e.js} +1 -1
- package/dist/{chunk-h5wbt9kn.js → chunk-245x9cqp.js} +1 -1
- package/dist/{chunk-zs131awg.js → chunk-29c6syec.js} +2 -2
- package/dist/{chunk-jcddb0cg.js → chunk-2wj604rp.js} +1 -1
- package/dist/{chunk-62vwxyvr.js → chunk-3vrks33n.js} +1 -1
- package/dist/{chunk-mwr2mfy0.js → chunk-3zy8c3kk.js} +1 -1
- package/dist/{chunk-mm82qk7b.js → chunk-5ccsbqwa.js} +1 -1
- package/dist/{chunk-jkeyh3tk.js → chunk-5f4kck14.js} +1 -1
- package/dist/{chunk-ebxkd6t4.js → chunk-5fjtcktg.js} +14 -14
- package/dist/{chunk-sqat6rbj.js → chunk-6cd7szaw.js} +1 -1
- package/dist/{chunk-vrs86fxc.js → chunk-7ncqjrc0.js} +1 -1
- package/dist/chunk-7rxbrr94.js +2847 -0
- package/dist/{chunk-2sq74c7t.js → chunk-7w3rtps8.js} +1 -1
- package/dist/{chunk-2cjz23ed.js → chunk-8w1ne50p.js} +1 -1
- package/dist/{chunk-2j105ssm.js → chunk-8zq7bh4a.js} +1 -1
- package/dist/{chunk-8wfs6753.js → chunk-9mx8xh3d.js} +1 -1
- package/dist/{chunk-vvqxq8s1.js → chunk-a4rm4y4v.js} +1 -1
- package/dist/{chunk-1h3xv51f.js → chunk-a969b2f8.js} +1 -1
- package/dist/{chunk-yr17q3z0.js → chunk-an0zcp3q.js} +1 -1
- package/dist/{chunk-y4nk5b2h.js → chunk-andc0k1c.js} +1 -1
- package/dist/{chunk-xweh2gem.js → chunk-bx6cmtqw.js} +1 -1
- package/dist/{chunk-1385gt0h.js → chunk-c7c16034.js} +1 -1
- package/dist/{chunk-7tw5m0y7.js → chunk-epb44f04.js} +1 -1
- package/dist/{chunk-06h5b4ae.js → chunk-ez570vg1.js} +1 -1
- package/dist/{chunk-9j5xghg9.js → chunk-fayrjf9p.js} +2 -2
- package/dist/{chunk-bbx35ba3.js → chunk-fsz9kxx5.js} +1 -1
- package/dist/{chunk-4dn8fjv6.js → chunk-gpy2y4bm.js} +1 -1
- package/dist/{chunk-jce36k67.js → chunk-gqzhww2s.js} +1 -1
- package/dist/{chunk-dhd4fy4d.js → chunk-gsrg5k46.js} +1 -1
- package/dist/chunk-j88pjp57.js +2 -0
- package/dist/{chunk-k4yv8d99.js → chunk-jmy4axdm.js} +1 -1
- package/dist/{chunk-0s3kjdqz.js → chunk-kbeqexgh.js} +1 -1
- package/dist/{chunk-xgw58rzk.js → chunk-nz6hkw27.js} +1 -1
- package/dist/{chunk-5jxxfs61.js → chunk-p33vvkt6.js} +1 -1
- package/dist/chunk-qnvzzxff.js +2 -0
- package/dist/{chunk-fwxc574x.js → chunk-rkbhzcqr.js} +1 -1
- package/dist/{chunk-kq81b4g2.js → chunk-rkz0my87.js} +1 -1
- package/dist/{chunk-grzm54tq.js → chunk-t8ezadmg.js} +2 -2
- package/dist/{chunk-0tv7srqw.js → chunk-tq0s92f7.js} +1 -1
- package/dist/{chunk-qkps282f.js → chunk-wbgj0t75.js} +1 -1
- package/dist/{chunk-2e0bgme3.js → chunk-xf6ghx7r.js} +1 -1
- package/dist/{chunk-x99t4atr.js → chunk-xzdadgqx.js} +1 -1
- package/dist/chunk-y390x0wt.js +2 -0
- package/dist/{chunk-qm9hwar4.js → chunk-y9ahkbm7.js} +1 -1
- package/dist/{chunk-s545g4mf.js → chunk-z55ft7wk.js} +1 -1
- package/dist/chunk-z6j1cfvq.js +12 -0
- package/dist/cli.js +7 -7
- package/dist/component-renderer.js +42 -6
- package/dist/composables/index.d.ts +12 -0
- package/dist/composables/index.js +4 -0
- package/dist/composables/use-ambient-sound.d.ts +44 -0
- package/dist/composables/use-ambient-sound.js +434 -0
- package/dist/composables/use-breath-pacer.d.ts +93 -0
- package/dist/composables/use-breath-pacer.js +155 -0
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/expressions.js +7 -4
- package/dist/loop-binding.d.ts +39 -0
- package/dist/loop-binding.js +131 -0
- package/dist/pwa.js +1 -1
- package/dist/server-bindings.d.ts +11 -0
- package/dist/server-bindings.js +12 -5
- package/dist/ssg.js +2 -2
- package/dist/unresolved-identifiers.js +2 -0
- package/dist/utils.d.ts +9 -1
- package/dist/utils.js +9 -3
- package/package.json +5 -5
- package/dist/chunk-910yr22j.js +0 -2847
- package/dist/chunk-99j03b1k.js +0 -12
- package/dist/chunk-bepnzs0v.js +0 -2
- package/dist/chunk-mxb3pcjk.js +0 -2
- package/dist/chunk-mz1mrxeg.js +0 -2
package/dist/chunk-99j03b1k.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"./chunk-01nx6zcw.js";import"./chunk-pf0d8y9n.js";import{m,h,w,L}from"./chunk-910yr22j.js";import"./chunk-ab7vh24b.js";import"./chunk-wkc34drs.js";import"./chunk-9ztdvnkk.js";import"./chunk-tbef3yyk.js";import"./chunk-s10r6hxp.js";import"./chunk-j4afmryj.js";import"./chunk-99kt56fn.js";import"./chunk-xgw58rzk.js";import"./chunk-pcq6vphz.js";import"./chunk-8adstrk5.js";import f from"path";var S=["applyOfflineUpdate","broadcast","cacheMedia","calculateDistance","canNotify","clearCookies","clearFetchCache","clearOfflineData","clearStorage","copyToClipboard","createShareableFile","defineForm","getBatteryLevel","getCookie","getCurrentPosition","getStorageKeys","getStorageSize","getVoices","hasBattery","hasCameraPermission","hasGeolocationPermission","hasMicrophonePermission","hasNotificationPermission","hasResizeObserver","hexToHsl","hexToRgb","isBroadcastChannelSupported","isCharging","isDeviceMotionSupported","isDeviceOrientationSupported","isEventSourceSupported","isEyeDropperSupported","isInFullscreen","isMutationObserverSupported","isPermissionGranted","isSpeechRecognitionSupported","isSpeechSynthesisSupported","isWakeLockSupported","isWebSocketSupported","notify","onOfflineUpdateReady","parseCookies","pickColor","prefetch","removeCookie","requestMediaPermissions","requestMotionPermission","requestNotificationPermission","requestOrientationPermission","setCookie","share","shareCurrentPage","shareFiles","shareText","shareURL","shareWithFallback","speak","stopSpeaking","toggleFullscreen","useAsyncData","useAttributeObserver","useAutoLogout","useAutoWakeLock","useBattery","useBreakpoint","useBroadcastChannel","useBroadcastStream","useChannel","useChildListObserver","useClipboard","useColorHistory","useConditionalWakeLock","useCookies","useCopySelection","useDeviceMotion","useDeviceOrientation","useElementSize","useElementTextSelection","useElementVisibility","useEventSource","useEyeDropper","useFavicon","useForm","useFullscreen","useGeolocation","useGeolocationWatch","useHotkey","useIdle","useIdleState","useInfiniteScroll","useIntersectionObserver","useIntersectionObserverMultiple","useIsDesktop","useIsMobile","useIsTablet","useKeyPressed","useKeySequence","useKeyboard","useLastActive","useLazyLoad","useMeta","useMouse","useMouseInElement","useMutationObserver","useNetwork","useNotification","useOnline","useOutbox","useParallax","usePermission","usePermissions","usePointer","usePost","useResizeObserver","useResizeObserverMultiple","useSSE","useScroll","useSelectionPopup","useShare","useSpeechRecognition","useSpeechSynthesis","useStorage","useTextObserver","useTextSelection","useTitle","useVisibility","useWakeLock","useWindowSize"],_=new Set(S);var l=new Map,x=m(64),y=new Set,O=0,R=new Set(S);function W(){l.clear(),x.clear()}function P(o){let n=new Map;for(let r of o){let a=f.basename(r);if(a.endsWith(".d.ts"))continue;let t=a.replace(/\.[jt]s$/,"");if(t==="index")continue;if(t===a)continue;let i=n.get(t);if(i&&!i.endsWith(".js"))continue;n.set(t,r)}return[...n.values()].sort()}function I(o,n){let r=n.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&");return new RegExp(`(?:^|[^\\w$.])(?:const|let|var|function|class)\\s+${r}\\b`).test(o)}function M(o){if(!o)return[];let n=h(o,O),r=x.get(n);if(r)return r.slice();let a=o.replace(/<script\b[^>]*\bdata-stx-runtime\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-framework-composables\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-stores\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-composables\b[^>]*>[\s\S]*?<\/script>/gi,""),t=[];for(let i of R){if(y.has(i))continue;let u=i.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&");if(new RegExp(`(^|[^\\w$.])${u}\\s*\\(`).test(a))t.push(i)}return t.sort(),x.set(n,t),t.slice()}async function U(o,n){let r=M(o);if(r.length===0)return null;let a=n??f.join(import.meta.dir,"composables"),t=`${a}\x00${r.join(",")}`,i=l.get(t);if(i!==void 0)return i||null;let u=L({loader:"ts",target:"browser",define:w()}),C=new Set(r),d=[],g=new Set,p=[];try{let s=new Bun.Glob("*.{ts,js}");for await(let e of s.scan({cwd:a,absolute:!0}))p.push(e)}catch{return l.set(t,""),null}p=P(p);for(let s of p){let e;try{e=await Bun.file(s).text()}catch{continue}let b=[];try{b=u.scan(e).exports.filter((c)=>c!=="default")}catch{continue}if(!b.some((c)=>C.has(c)))continue;try{e=e.replace(/^import\s+.*from\s+['"][^'"]+['"]\s*;?\s*$/gm,""),e=e.replace(/^import\s+type\s+.*$/gm,""),e=e.replace(/^export\s+\*\s+(?:as\s+\w+\s+)?from\s*['"][^'"]+['"]\s*;?\s*$/gm,""),e=e.replace(/^export\s+(?:type\s+)?\{[\s\S]*?\}\s*(?:from\s*['"][^'"]+['"]\s*)?;?\s*$/gm,""),e=e.replace(/^export\s+default\s+/gm,""),e=e.replace(/^export\s+(?=(?:declare\s+)?(?:abstract\s+)?(?:async\s+)?(?:function|class|const|let|var|type|interface|enum)\b)/gm,""),d.push(`// ${f.basename(s).replace(/\.[jt]s$/,"")}
|
|
3
|
-
${u.transformSync(e).trim()}`);for(let c of b)g.add(c)}catch(c){console.warn(`[stx] framework composable ${f.basename(s)} could not be bundled:`,c)}}let v=r.filter((s)=>!g.has(s)&&!I(o,s));if(v.length>0)console.warn(`[stx] could not bundle ${v.join(", ")} from @stacksjs/stx/composables \u2014 `+"calls to them will throw ReferenceError in the browser. Import them explicitly so the bundler inlines them, or use a runtime equivalent from window.stx.");if(d.length===0)return l.set(t,""),null;let E=[...g].map((s)=>` try { if (!(${JSON.stringify(s)} in __s)) { __s[${JSON.stringify(s)}] = ${s}; if (!(${JSON.stringify(s)} in window)) window[${JSON.stringify(s)}] = ${s}; } } catch (e) {}`).join(`
|
|
4
|
-
`),k=`<script data-stx-framework-composables>
|
|
5
|
-
;(function(){
|
|
6
|
-
var __s = window.stx = window.stx || {};
|
|
7
|
-
${d.join(`
|
|
8
|
-
|
|
9
|
-
`)}
|
|
10
|
-
${E}
|
|
11
|
-
})();
|
|
12
|
-
</script>`;return l.set(t,k),k}function A(o){y.clear();for(let n of o)y.add(n);O++}export{A as __setRuntimeOwnedForTest,W as clearFrameworkComposableCache,U as getFrameworkComposableScript,M as referencedFrameworkComposables,P as selectComposableFiles};
|
package/dist/chunk-bepnzs0v.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Kl,Xl}from"./chunk-2cjz23ed.js";import"./chunk-4dn8fjv6.js";import"./chunk-xweh2gem.js";import"./chunk-8scw1bes.js";import"./chunk-910yr22j.js";import"./chunk-8adstrk5.js";import"./chunk-wkc34drs.js";import"./chunk-j4afmryj.js";import"./chunk-xgw58rzk.js";import"./chunk-99kt56fn.js";import"./chunk-s10r6hxp.js";import"./chunk-tbef3yyk.js";import"./chunk-ab7vh24b.js";import"./chunk-pf0d8y9n.js";import"./chunk-01nx6zcw.js";import"./chunk-9ztdvnkk.js";import"./chunk-pcq6vphz.js";export{Xl as clearStoreCache,Kl as getStoreScript};
|
package/dist/chunk-mxb3pcjk.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Mi,Ni}from"./chunk-ebxkd6t4.js";import"./chunk-sqat6rbj.js";import"./chunk-0tv7srqw.js";import"./chunk-tr25zcf1.js";import"./chunk-cxbp2m66.js";import"./chunk-mm82qk7b.js";import"./chunk-4ebwk9cw.js";import"./chunk-62vwxyvr.js";import{no}from"./chunk-grzm54tq.js";import"./chunk-5x9ftmve.js";import"./chunk-gkj42zq7.js";import"./chunk-5jxxfs61.js";import"./chunk-2542vq5p.js";import"./chunk-28s5x7wv.js";import"./chunk-x99t4atr.js";import"./chunk-se55qe2x.js";import"./chunk-w6n2j62h.js";import"./chunk-v5rgebzz.js";import"./chunk-zkg0rbmp.js";import"./chunk-sarr8kz1.js";import"./chunk-3fjpg8kb.js";import"./chunk-vvs75dse.js";import"./chunk-dhd4fy4d.js";import"./chunk-3pv6f998.js";import"./chunk-5t5ahhjp.js";import"./chunk-k4shjm8n.js";import"./chunk-cgf2a166.js";import"./chunk-7ejq9n1v.js";import"./chunk-2cjz23ed.js";import"./chunk-w1fy86aa.js";import"./chunk-mwr2mfy0.js";import"./chunk-zs131awg.js";import"./chunk-2gmbxp60.js";import"./chunk-4dn8fjv6.js";import"./chunk-xweh2gem.js";import"./chunk-8scw1bes.js";import{he,en,tn,K,d,n,Xn,I,o,le}from"./chunk-910yr22j.js";import"./chunk-8adstrk5.js";import"./chunk-wkc34drs.js";import"./chunk-j4afmryj.js";import"./chunk-xgw58rzk.js";import"./chunk-99kt56fn.js";import"./chunk-s10r6hxp.js";import"./chunk-tbef3yyk.js";import"./chunk-ab7vh24b.js";import"./chunk-pf0d8y9n.js";import"./chunk-01nx6zcw.js";import"./chunk-9ztdvnkk.js";import"./chunk-pcq6vphz.js";export{Xn as buildWebComponents,tn as cacheTemplate,en as checkCache,no as classifyAllScripts,Mi as createMiddleware,Ni as createRoute,I as defaultConfig,d as extractVariables,K as injectRouterScript,o as loadStxConfig,he as processClientScript,n as processDirectives,le as readMarkdownFile};
|
package/dist/chunk-mz1mrxeg.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Mr,El,_l}from"./chunk-dhd4fy4d.js";import"./chunk-4dn8fjv6.js";import"./chunk-xweh2gem.js";import"./chunk-8scw1bes.js";import"./chunk-910yr22j.js";import"./chunk-8adstrk5.js";import"./chunk-wkc34drs.js";import"./chunk-j4afmryj.js";import"./chunk-xgw58rzk.js";import"./chunk-99kt56fn.js";import"./chunk-s10r6hxp.js";import"./chunk-tbef3yyk.js";import"./chunk-ab7vh24b.js";import"./chunk-pf0d8y9n.js";import"./chunk-01nx6zcw.js";import"./chunk-9ztdvnkk.js";import"./chunk-pcq6vphz.js";export{_l as clearComposableCache,El as getComposableScript,Mr as listComposableModules};
|