@tresjs/nuxt 4.0.0-next.0 → 4.0.0
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/module.d.mts +2 -1
- package/dist/module.json +6 -3
- package/dist/module.mjs +7 -1
- package/dist/runtime/TresCanvas.client.vue +2 -2
- package/dist/runtime/TresCanvas.client.vue.d.ts +2 -0
- package/dist/runtime/TresCanvas.server.vue.d.ts +2 -0
- package/dist/types.d.mts +3 -1
- package/package.json +47 -25
- package/dist/client/200.html +0 -11
- package/dist/client/404.html +0 -11
- package/dist/client/_nuxt/BK7-Y-q6.js +0 -37
- package/dist/client/_nuxt/C0Qz2vsI.js +0 -3
- package/dist/client/_nuxt/C5TOz6B6.js +0 -1
- package/dist/client/_nuxt/DkfJP6hB.js +0 -1
- package/dist/client/_nuxt/Dnn3U3St.js +0 -1
- package/dist/client/_nuxt/builds/latest.json +0 -1
- package/dist/client/_nuxt/builds/meta/c498c9c1-7699-4d46-8591-cd45a3483c8f.json +0 -1
- package/dist/client/_nuxt/entry.DWRHDGAm.css +0 -1
- package/dist/client/_nuxt/error-404.BbX5noJR.css +0 -1
- package/dist/client/_nuxt/error-500.Cu2U7TTf.css +0 -1
- package/dist/client/_nuxt/index.Ivt4LUQj.css +0 -1
- package/dist/client/_nuxt/zIW675W1.js +0 -6
- package/dist/client/index.html +0 -11
- package/dist/client/logo-dark.svg +0 -5
- package/dist/client/logo.svg +0 -5
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -10
- package/dist/types.d.ts +0 -1
package/dist/module.d.mts
CHANGED
package/dist/module.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tresjs/nuxt",
|
|
3
3
|
"configKey": "tres",
|
|
4
|
-
"
|
|
4
|
+
"compatibility": {
|
|
5
|
+
"nuxt": ">=3.16.0"
|
|
6
|
+
},
|
|
7
|
+
"version": "4.0.0",
|
|
5
8
|
"builder": {
|
|
6
|
-
"@nuxt/module-builder": "0.
|
|
7
|
-
"unbuild": "
|
|
9
|
+
"@nuxt/module-builder": "1.0.1",
|
|
10
|
+
"unbuild": "3.5.0"
|
|
8
11
|
}
|
|
9
12
|
}
|
package/dist/module.mjs
CHANGED
|
@@ -8,6 +8,8 @@ import { readPackageJSON } from 'pkg-types';
|
|
|
8
8
|
import glsl from 'vite-plugin-glsl';
|
|
9
9
|
import { existsSync } from 'node:fs';
|
|
10
10
|
|
|
11
|
+
const version = "4.0.0";
|
|
12
|
+
|
|
11
13
|
const DEVTOOLS_UI_ROUTE = "/__tres_nuxt_devtools";
|
|
12
14
|
const DEVTOOLS_UI_LOCAL_PORT = 3300;
|
|
13
15
|
function setupDevToolsUI(nuxt, resolver) {
|
|
@@ -53,7 +55,11 @@ function setupDevToolsUI(nuxt, resolver) {
|
|
|
53
55
|
const module = defineNuxtModule({
|
|
54
56
|
meta: {
|
|
55
57
|
name: "@tresjs/nuxt",
|
|
56
|
-
configKey: "tres"
|
|
58
|
+
configKey: "tres",
|
|
59
|
+
compatibility: {
|
|
60
|
+
nuxt: ">=3.16.0"
|
|
61
|
+
},
|
|
62
|
+
version
|
|
57
63
|
},
|
|
58
64
|
defaults: {
|
|
59
65
|
modules: [],
|
package/dist/types.d.mts
CHANGED
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tresjs/nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0
|
|
5
|
-
"packageManager": "pnpm@
|
|
4
|
+
"version": "4.0.0",
|
|
5
|
+
"packageManager": "pnpm@10.11.0",
|
|
6
6
|
"description": "TresJS integration for Nuxt.",
|
|
7
7
|
"author": "Daniel Roe (https://github.com/danielroe/)",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"homepage": "https://tresjs.org",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "git+https://github.com/
|
|
12
|
+
"url": "git+https://github.com/Tresjs/nuxt.git"
|
|
13
13
|
},
|
|
14
14
|
"bugs": {
|
|
15
|
-
"url": "https://github.com/
|
|
15
|
+
"url": "https://github.com/Tresjs/nuxt/issues"
|
|
16
16
|
},
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"access": "public"
|
|
@@ -21,10 +21,17 @@
|
|
|
21
21
|
".": {
|
|
22
22
|
"types": "./dist/types.d.mts",
|
|
23
23
|
"default": "./dist/module.mjs"
|
|
24
|
-
}
|
|
24
|
+
},
|
|
25
|
+
"./package.json": "./package.json"
|
|
25
26
|
},
|
|
26
27
|
"main": "dist/module.mjs",
|
|
27
|
-
"
|
|
28
|
+
"typesVersions": {
|
|
29
|
+
"*": {
|
|
30
|
+
".": [
|
|
31
|
+
"./dist/types.d.mts"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
},
|
|
28
35
|
"files": [
|
|
29
36
|
"dist"
|
|
30
37
|
],
|
|
@@ -46,14 +53,12 @@
|
|
|
46
53
|
"three": ">=0.133"
|
|
47
54
|
},
|
|
48
55
|
"dependencies": {
|
|
49
|
-
"@nuxt/kit": "^3.
|
|
50
|
-
"@
|
|
51
|
-
"@tresjs/core": "https://pkg.pr.new/@tresjs/core@47bb9e7",
|
|
52
|
-
"@unocss/nuxt": "^66.0.0",
|
|
56
|
+
"@nuxt/kit": "^3.16.0",
|
|
57
|
+
"@tresjs/core": "4.3.1",
|
|
53
58
|
"defu": "^6.1.4",
|
|
54
|
-
"mlly": "^1.7.
|
|
55
|
-
"pkg-types": "^1.
|
|
56
|
-
"sirv": "^3.0.
|
|
59
|
+
"mlly": "^1.7.3",
|
|
60
|
+
"pkg-types": "^1.2.1",
|
|
61
|
+
"sirv": "^3.0.0",
|
|
57
62
|
"vite-plugin-glsl": "^1.3.1"
|
|
58
63
|
},
|
|
59
64
|
"devDependencies": {
|
|
@@ -61,25 +66,33 @@
|
|
|
61
66
|
"@iconify-json/file-icons": "^1.2.1",
|
|
62
67
|
"@iconify-json/iconoir": "^1.2.6",
|
|
63
68
|
"@iconify-json/ph": "^1.2.2",
|
|
64
|
-
"@nuxt/devtools": "^
|
|
65
|
-
"@nuxt/devtools-ui-kit": "^
|
|
66
|
-
"@nuxt/eslint-config": "^
|
|
69
|
+
"@nuxt/devtools": "^2.4.0",
|
|
70
|
+
"@nuxt/devtools-ui-kit": "^2.4.1",
|
|
71
|
+
"@nuxt/eslint-config": "^1.4.1",
|
|
67
72
|
"@nuxt/icon": "^1.10.2",
|
|
68
|
-
"@nuxt/module-builder": "^0.
|
|
69
|
-
"@nuxt/schema": "^3.
|
|
70
|
-
"@nuxt/test-utils": "^3.
|
|
73
|
+
"@nuxt/module-builder": "^1.0.1",
|
|
74
|
+
"@nuxt/schema": "^3.17.4",
|
|
75
|
+
"@nuxt/test-utils": "^3.18.0",
|
|
76
|
+
"@nuxt/ui": "^2.20.0",
|
|
71
77
|
"@release-it/conventional-changelog": "^9.0.3",
|
|
72
78
|
"@tresjs/cientos": "^4.0.3",
|
|
73
|
-
"@types/node": "^22.
|
|
79
|
+
"@types/node": "^22.15.21",
|
|
74
80
|
"@types/three": "^0.171.0",
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
81
|
+
"@unocss/nuxt": "^66.1.2",
|
|
82
|
+
"changelogen": "^0.6.1",
|
|
83
|
+
"eslint": "^9.26.0",
|
|
84
|
+
"nuxt": "^3.17.4",
|
|
78
85
|
"playwright": "^1.49.1",
|
|
79
86
|
"release-it": "^17.10.0",
|
|
80
87
|
"three": "^0.171.0",
|
|
81
|
-
"typescript": "^5.
|
|
82
|
-
"vitest": "^
|
|
88
|
+
"typescript": "^5.8.3",
|
|
89
|
+
"vitest": "^3.1.3",
|
|
90
|
+
"vue": "3.5.14"
|
|
91
|
+
},
|
|
92
|
+
"resolutions": {
|
|
93
|
+
"@nuxt/kit": "3.17.4",
|
|
94
|
+
"nuxt": "3.17.4",
|
|
95
|
+
"vue": "3.5.14"
|
|
83
96
|
},
|
|
84
97
|
"build": {
|
|
85
98
|
"externals": [
|
|
@@ -99,5 +112,14 @@
|
|
|
99
112
|
"source-map-js",
|
|
100
113
|
"nanoid/non-secure"
|
|
101
114
|
]
|
|
115
|
+
},
|
|
116
|
+
"pnpm": {
|
|
117
|
+
"ignoredBuiltDependencies": [
|
|
118
|
+
"@parcel/watcher",
|
|
119
|
+
"esbuild"
|
|
120
|
+
],
|
|
121
|
+
"onlyBuiltDependencies": [
|
|
122
|
+
"better-sqlite3"
|
|
123
|
+
]
|
|
102
124
|
}
|
|
103
125
|
}
|
package/dist/client/200.html
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html data-capo=""><head><meta charset="utf-8">
|
|
2
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
3
|
-
<link rel="stylesheet" href="/__tres_nuxt_devtools/_nuxt/entry.DWRHDGAm.css" crossorigin>
|
|
4
|
-
<link rel="modulepreload" as="script" crossorigin href="/__tres_nuxt_devtools/_nuxt/BK7-Y-q6.js">
|
|
5
|
-
<link rel="prefetch" as="style" crossorigin href="/__tres_nuxt_devtools/_nuxt/error-404.BbX5noJR.css">
|
|
6
|
-
<link rel="prefetch" as="script" crossorigin href="/__tres_nuxt_devtools/_nuxt/C5TOz6B6.js">
|
|
7
|
-
<link rel="prefetch" as="script" crossorigin href="/__tres_nuxt_devtools/_nuxt/DkfJP6hB.js">
|
|
8
|
-
<link rel="prefetch" as="style" crossorigin href="/__tres_nuxt_devtools/_nuxt/error-500.Cu2U7TTf.css">
|
|
9
|
-
<link rel="prefetch" as="script" crossorigin href="/__tres_nuxt_devtools/_nuxt/Dnn3U3St.js">
|
|
10
|
-
<script type="module" src="/__tres_nuxt_devtools/_nuxt/BK7-Y-q6.js" crossorigin></script><script>"use strict";(()=>{const t=window,e=document.documentElement,c=["dark","light"],n=getStorageValue("localStorage","nuxt-color-mode")||"system";let i=n==="system"?u():n;const r=e.getAttribute("data-color-mode-forced");r&&(i=r),l(i),t["__NUXT_COLOR_MODE__"]={preference:n,value:i,getColorScheme:u,addColorScheme:l,removeColorScheme:d};function l(o){const s=""+o+"",a="";e.classList?e.classList.add(s):e.className+=" "+s,a&&e.setAttribute("data-"+a,o)}function d(o){const s=""+o+"",a="";e.classList?e.classList.remove(s):e.className=e.className.replace(new RegExp(s,"g"),""),a&&e.removeAttribute("data-"+a)}function f(o){return t.matchMedia("(prefers-color-scheme"+o+")")}function u(){if(t.matchMedia&&f("").media!=="not all"){for(const o of c)if(f(":"+o).matches)return o}return"light"}})();function getStorageValue(t,e){switch(t){case"localStorage":return window.localStorage.getItem(e);case"sessionStorage":return window.sessionStorage.getItem(e);case"cookie":return getCookie(e);default:return null}}function getCookie(t){const c=("; "+window.document.cookie).split("; "+t+"=");if(c.length===2)return c.pop()?.split(";").shift()}</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1740241784463,false]</script>
|
|
11
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__tres_nuxt_devtools",buildId:"c498c9c1-7699-4d46-8591-cd45a3483c8f",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/client/404.html
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html data-capo=""><head><meta charset="utf-8">
|
|
2
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
3
|
-
<link rel="stylesheet" href="/__tres_nuxt_devtools/_nuxt/entry.DWRHDGAm.css" crossorigin>
|
|
4
|
-
<link rel="modulepreload" as="script" crossorigin href="/__tres_nuxt_devtools/_nuxt/BK7-Y-q6.js">
|
|
5
|
-
<link rel="prefetch" as="style" crossorigin href="/__tres_nuxt_devtools/_nuxt/error-404.BbX5noJR.css">
|
|
6
|
-
<link rel="prefetch" as="script" crossorigin href="/__tres_nuxt_devtools/_nuxt/C5TOz6B6.js">
|
|
7
|
-
<link rel="prefetch" as="script" crossorigin href="/__tres_nuxt_devtools/_nuxt/DkfJP6hB.js">
|
|
8
|
-
<link rel="prefetch" as="style" crossorigin href="/__tres_nuxt_devtools/_nuxt/error-500.Cu2U7TTf.css">
|
|
9
|
-
<link rel="prefetch" as="script" crossorigin href="/__tres_nuxt_devtools/_nuxt/Dnn3U3St.js">
|
|
10
|
-
<script type="module" src="/__tres_nuxt_devtools/_nuxt/BK7-Y-q6.js" crossorigin></script><script>"use strict";(()=>{const t=window,e=document.documentElement,c=["dark","light"],n=getStorageValue("localStorage","nuxt-color-mode")||"system";let i=n==="system"?u():n;const r=e.getAttribute("data-color-mode-forced");r&&(i=r),l(i),t["__NUXT_COLOR_MODE__"]={preference:n,value:i,getColorScheme:u,addColorScheme:l,removeColorScheme:d};function l(o){const s=""+o+"",a="";e.classList?e.classList.add(s):e.className+=" "+s,a&&e.setAttribute("data-"+a,o)}function d(o){const s=""+o+"",a="";e.classList?e.classList.remove(s):e.className=e.className.replace(new RegExp(s,"g"),""),a&&e.removeAttribute("data-"+a)}function f(o){return t.matchMedia("(prefers-color-scheme"+o+")")}function u(){if(t.matchMedia&&f("").media!=="not all"){for(const o of c)if(f(":"+o).matches)return o}return"light"}})();function getStorageValue(t,e){switch(t){case"localStorage":return window.localStorage.getItem(e);case"sessionStorage":return window.sessionStorage.getItem(e);case"cookie":return getCookie(e);default:return null}}function getCookie(t){const c=("; "+window.document.cookie).split("; "+t+"=");if(c.length===2)return c.pop()?.split(";").shift()}</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1740241784463,false]</script>
|
|
11
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__tres_nuxt_devtools",buildId:"c498c9c1-7699-4d46-8591-cd45a3483c8f",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|