@tresjs/nuxt 3.0.6 → 3.0.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tresjs/nuxt",
3
3
  "type": "module",
4
- "version": "3.0.6",
4
+ "version": "3.0.7",
5
5
  "packageManager": "pnpm@9.1.4",
6
6
  "description": "TresJS integration for Nuxt.",
7
7
  "author": "Daniel Roe (https://github.com/danielroe/)",
@@ -47,11 +47,11 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@nuxt/devtools-kit": "^1.4.1",
50
- "@nuxt/kit": "^3.13.0",
50
+ "@nuxt/kit": "^3.13.1",
51
51
  "@nuxt/ui": "^2.18.4",
52
- "@tresjs/core": "4.2.9",
53
- "@tresjs/nuxt": "3.0.4",
54
- "@types/three": "^0.167.2",
52
+ "@tresjs/core": "4.2.10",
53
+ "@tresjs/nuxt": "3.0.6",
54
+ "@types/three": "^0.168.0",
55
55
  "@unocss/nuxt": "^0.62.3",
56
56
  "defu": "^6.1.4",
57
57
  "mlly": "^1.7.1",
@@ -61,23 +61,23 @@
61
61
  "vite-plugin-glsl": "^1.3.0"
62
62
  },
63
63
  "devDependencies": {
64
- "@iconify-json/carbon": "^1.1.37",
65
- "@iconify-json/file-icons": "^1.1.10",
66
- "@iconify-json/iconoir": "^1.1.46",
67
- "@iconify-json/ph": "^1.1.14",
64
+ "@iconify-json/carbon": "^1.2.1",
65
+ "@iconify-json/file-icons": "^1.2.0",
66
+ "@iconify-json/iconoir": "^1.2.0",
67
+ "@iconify-json/ph": "^1.2.0",
68
68
  "@nuxt/devtools-ui-kit": "^1.4.1",
69
- "@nuxt/eslint-config": "^0.5.4",
70
- "@nuxt/icon": "^1.5.0",
69
+ "@nuxt/eslint-config": "^0.5.6",
70
+ "@nuxt/icon": "^1.5.1",
71
71
  "@nuxt/module-builder": "^0.8.3",
72
- "@nuxt/schema": "^3.13.0",
72
+ "@nuxt/schema": "^3.13.1",
73
73
  "@nuxt/test-utils": "^3.14.1",
74
74
  "@release-it/conventional-changelog": "^8.0.1",
75
75
  "@tresjs/eslint-config": "^1.2.0",
76
- "@types/node": "^22.5.1",
76
+ "@types/node": "^22.5.4",
77
77
  "changelogen": "^0.5.5",
78
78
  "eslint": "^9.9.1",
79
- "nuxt": "^3.13.0",
80
- "playwright": "^1.46.1",
79
+ "nuxt": "^3.13.1",
80
+ "playwright": "^1.47.0",
81
81
  "release-it": "^17.6.0",
82
82
  "three": "^0.168.0",
83
83
  "vitest": "^2.0.5"
@@ -1 +0,0 @@
1
- import{$ as S,g as B,K as _,a0 as R,B as N,a1 as T,a2 as E,a3 as U,a4 as F,a5 as A,a6 as w,a7 as I,a8 as V,q as x,a9 as O,aa as k,ab as D,ac as H,ad as $,ae as z,af as M}from"./BsCY1oT1.js";async function j(t,r=S()){const{path:f,matched:y}=r.resolve(t);if(!y.length||(r._routePreloaded||(r._routePreloaded=new Set),r._routePreloaded.has(f)))return;const e=r._preloadPromises=r._preloadPromises||[];if(e.length>4)return Promise.all(e).then(()=>j(t,r));r._routePreloaded.add(f);const a=y.map(o=>{var n;return(n=o.components)==null?void 0:n.default}).filter(o=>typeof o=="function");for(const o of a){const n=Promise.resolve(o()).catch(()=>{}).finally(()=>e.splice(e.indexOf(n)));e.push(n)}await Promise.all(e)}const K=(...t)=>t.find(r=>r!==void 0);function Q(t){const r=t.componentName||"NuxtLink";function f(e,a){if(!e||t.trailingSlash!=="append"&&t.trailingSlash!=="remove")return e;if(typeof e=="string")return L(e,t.trailingSlash);const o="path"in e&&e.path!==void 0?e.path:a(e).path;return{...e,name:void 0,path:L(o,t.trailingSlash)}}function y(e){const a=S(),o=$(),n=x(()=>!!e.target&&e.target!=="_self"),v=x(()=>{const d=e.to||e.href||"";return typeof d=="string"&&O(d,{acceptRelative:!0})}),b=w("RouterLink"),m=b&&typeof b!="string"?b.useLink:void 0,h=x(()=>{if(e.external)return!0;const d=e.to||e.href||"";return typeof d=="object"?!1:d===""||v.value}),i=x(()=>{const d=e.to||e.href||"";return h.value?d:f(d,a.resolve)}),s=h.value||m==null?void 0:m({...e,to:i}),p=x(()=>{var d;if(!i.value||v.value)return i.value;if(h.value){const P=typeof i.value=="object"&&"path"in i.value?k(i.value):i.value,C=typeof P=="object"?a.resolve(P).href:P;return f(C,a.resolve)}return typeof i.value=="object"?((d=a.resolve(i.value))==null?void 0:d.href)??null:f(D(o.app.baseURL,i.value),a.resolve)});return{to:i,hasTarget:n,isAbsoluteUrl:v,isExternal:h,href:p,isActive:(s==null?void 0:s.isActive)??x(()=>i.value===a.currentRoute.value.path),isExactActive:(s==null?void 0:s.isExactActive)??x(()=>i.value===a.currentRoute.value.path),route:(s==null?void 0:s.route)??x(()=>a.resolve(i.value)),async navigate(){await H(p.value,{replace:e.replace,external:h.value||n.value})}}}return B({name:r,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},useLink:y,setup(e,{slots:a}){const o=S(),{to:n,href:v,navigate:b,isExternal:m,hasTarget:h,isAbsoluteUrl:i}=y(e),s=_(!1),p=_(null),d=l=>{var c;p.value=e.custom?(c=l==null?void 0:l.$el)==null?void 0:c.nextElementSibling:l==null?void 0:l.$el};function P(l){var c,u;return!s.value&&(typeof e.prefetchOn=="string"?e.prefetchOn===l:((c=e.prefetchOn)==null?void 0:c[l])??((u=t.prefetchOn)==null?void 0:u[l]))&&(e.prefetch??t.prefetch)!==!1&&e.noPrefetch!==!0&&e.target!=="_blank"&&!G()}async function C(l=R()){if(s.value)return;s.value=!0;const c=typeof n.value=="string"?n.value:m.value?k(n.value):o.resolve(n.value).fullPath;await Promise.all([l.hooks.callHook("link:prefetch",c).catch(()=>{}),!m.value&&!h.value&&j(n.value,o).catch(()=>{})])}if(P("visibility")){const l=R();let c,u=null;N(()=>{const g=W();T(()=>{c=E(()=>{var q;(q=p==null?void 0:p.value)!=null&&q.tagName&&(u=g.observe(p.value,async()=>{u==null||u(),u=null,await C(l)}))})})}),U(()=>{c&&F(c),u==null||u(),u=null})}return()=>{var u;if(!m.value&&!h.value){const g={ref:d,to:n.value,activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom,onPointerenter:P("interaction")?C.bind(null,void 0):void 0,onFocus:P("interaction")?C.bind(null,void 0):void 0};return e.custom||(s.value&&(g.class=e.prefetchedClass||t.prefetchedClass),g.rel=e.rel||void 0),A(w("RouterLink"),g,a.default)}const l=e.target||null,c=K(e.noRel?"":e.rel,t.externalRelAttribute,i.value||h.value?"noopener noreferrer":"")||null;return e.custom?a.default?a.default({href:v.value,navigate:b,get route(){if(!v.value)return;const g=new URL(v.value,window.location.href);return{path:g.pathname,fullPath:g.pathname,get query(){return I(g.search)},hash:g.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:v.value}},rel:c,target:l,isExternal:m.value||h.value,isActive:!1,isExactActive:!1}):null:A("a",{ref:p,href:v.value||null,rel:c,target:l},(u=a.default)==null?void 0:u.call(a))}}})}const X=Q(V);function L(t,r){const f=r==="append"?z:M;return O(t)&&!t.startsWith("http")?t:f(t,!0)}function W(){const t=R();if(t._observer)return t._observer;let r=null;const f=new Map,y=(a,o)=>(r||(r=new IntersectionObserver(n=>{for(const v of n){const b=f.get(v.target);(v.isIntersecting||v.intersectionRatio>0)&&b&&b()}})),f.set(a,o),r.observe(a),()=>{f.delete(a),r.unobserve(a),f.size===0&&(r.disconnect(),r=null)});return t._observer={observe:y}}function G(){const t=navigator.connection;return!!(t&&(t.saveData||/2g/.test(t.effectiveType)))}export{X as _};