Skip to content

Commit e580e95

Browse files
committed
chore: updated version 3 10 2023
1 parent 7fdb24d commit e580e95

File tree

8 files changed

+1644
-2113
lines changed

8 files changed

+1644
-2113
lines changed

docs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
},
1111
"dependencies": {
1212
"@tresjs/leches": "workspace:*",
13-
"three": "^0.155.0"
13+
"three": "^0.158.0"
1414
},
1515
"devDependencies": {
16-
"unocss": "^0.54.0"
16+
"unocss": "^0.57.1"
1717
}
1818
}

package.json

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -55,40 +55,41 @@
5555
"vue": ">=3.3.4"
5656
},
5757
"dependencies": {
58-
"@vueuse/components": "^10.4.1"
58+
"@unocss/core": "^0.57.1",
59+
"@vueuse/components": "^10.5.0"
5960
},
6061
"devDependencies": {
61-
"@histoire/plugin-vue": "^0.17.1",
62+
"@histoire/plugin-vue": "^0.17.4",
6263
"@iconify-json/ic": "^1.1.14",
63-
"@release-it/conventional-changelog": "^7.0.0",
64+
"@release-it/conventional-changelog": "^7.0.2",
6465
"@tresjs/eslint-config-vue": "^0.2.1",
65-
"@typescript-eslint/eslint-plugin": "^6.5.0",
66-
"@typescript-eslint/parser": "^6.5.0",
67-
"@vitejs/plugin-vue": "^4.3.4",
68-
"@vitest/browser": "^0.34.3",
69-
"@vitest/ui": "^0.34.3",
66+
"@typescript-eslint/eslint-plugin": "^6.9.1",
67+
"@typescript-eslint/parser": "^6.9.1",
68+
"@vitejs/plugin-vue": "^4.4.0",
69+
"@vitest/browser": "^0.34.6",
70+
"@vitest/ui": "^0.34.6",
7071
"@vue/test-utils": "^2.4.1",
71-
"@vueuse/core": "^10.4.1",
72-
"@vueuse/shared": "^10.4.1",
73-
"eslint": "^8.48.0",
72+
"@vueuse/core": "^10.5.0",
73+
"@vueuse/shared": "^10.5.0",
74+
"eslint": "^8.52.0",
7475
"eslint-plugin-vitest-globals": "^1.4.0",
75-
"eslint-plugin-vue": "^9.17.0",
76-
"histoire": "^0.17.0",
76+
"eslint-plugin-vue": "^9.18.1",
77+
"histoire": "^0.17.4",
7778
"kolorist": "^1.8.0",
7879
"pathe": "^1.1.1",
79-
"release-it": "^16.1.5",
80+
"release-it": "^16.2.1",
8081
"rollup-plugin-analyzer": "^4.0.0",
8182
"rollup-plugin-visualizer": "^5.9.2",
8283
"typescript": "^5.2.2",
83-
"unocss": "^0.54.0",
84-
"unplugin-vue-components": "^0.25.1",
85-
"vite": "^4.4.9",
86-
"vite-plugin-banner": "^0.7.0",
87-
"vite-plugin-dts": "^3.5.3",
88-
"vitepress": "1.0.0-rc.10",
89-
"vitest": "^0.34.3",
90-
"vue": "^3.3.4",
91-
"vue-tsc": "^1.8.8",
92-
"webdriverio": "^8.15.9"
84+
"unocss": "^0.57.1",
85+
"unplugin-vue-components": "^0.25.2",
86+
"vite": "^4.5.0",
87+
"vite-plugin-banner": "^0.7.1",
88+
"vite-plugin-dts": "^3.6.3",
89+
"vitepress": "1.0.0-rc.24",
90+
"vitest": "^0.34.6",
91+
"vue": "^3.3.7",
92+
"vue-tsc": "^1.8.22",
93+
"webdriverio": "^8.21.0"
9394
}
9495
}

playground/.eslintrc-auto-import.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@
5959
"watch": true,
6060
"watchEffect": true,
6161
"watchPostEffect": true,
62-
"watchSyncEffect": true
62+
"watchSyncEffect": true,
63+
"ExtractDefaultPropTypes": true,
64+
"ExtractPropTypes": true,
65+
"ExtractPublicPropTypes": true
6366
}
6467
}

playground/auto-imports.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ declare global {
6161
// for type re-export
6262
declare global {
6363
// @ts-ignore
64-
export type { Component, ComponentPublicInstance, ComputedRef, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
64+
export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
6565
}

playground/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
"vue": ">=3.3"
1414
},
1515
"dependencies": {
16-
"vue": "^3.2.47",
17-
"vue-router": "^4.2.4"
16+
"vue": "^3.3.7",
17+
"vue-router": "^4.2.5"
1818
},
1919
"devDependencies": {
20-
"@tresjs/cientos": "3.2.0",
21-
"@tresjs/core": "3.2.0",
22-
"@types/three": "^0.155.1",
23-
"three": "^0.155.0",
24-
"unplugin-auto-import": "^0.16.6",
25-
"unplugin-vue-components": "^0.25.1"
20+
"@tresjs/cientos": "3.5.1",
21+
"@tresjs/core": "3.4.1",
22+
"@types/three": "^0.158.1",
23+
"three": "^0.158.0",
24+
"unplugin-auto-import": "^0.16.7",
25+
"unplugin-vue-components": "^0.25.2"
2626
}
2727
}

playground/src/pages/index.vue

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,24 @@ const { test, awiwi } = useControls({ test: true, awiwi: 'awiwi' })
2727
console.log('test', test)
2828
console.log('awiwi', awiwi)
2929
30-
watchEffect(() => {
30+
useControls({
31+
api: true
32+
})
33+
34+
/* watchEffect(() => {
3135
console.log('test', test.value)
3236
})
3337
watchEffect(() => {
3438
console.log('awiwi', awiwi.value.value)
35-
})
39+
}) */
3640
// Objects with ref values
3741
const { value: wireframe } = useControls({
3842
wireframe: false,
3943
})
4044
41-
watchEffect(() => {
45+
/* watchEffect(() => {
4246
console.log('wireframe', wireframe.value)
43-
})
47+
}) */
4448
4549
// Objects with reactive values
4650
const cameraPosition = reactive(new Vector3(0, 0, 0))
@@ -49,18 +53,18 @@ const { camPos } = useControls({
4953
camPos: cameraPosition,
5054
})
5155
52-
watchEffect(() => {
56+
/* watchEffect(() => {
5357
console.log('cameraPosition', camPos.value)
54-
})
58+
}) */
5559
5660
// Objects with options
5761
const { zoom } = useControls({
5862
zoom: { value: 1, min: 0, max: 10, step: 0.1, icon: 'ic-baseline-arrow-forward' },
5963
})
6064
61-
watchEffect(() => {
65+
/* watchEffect(() => {
6266
console.log('zoom', zoom.value)
63-
})
67+
}) */
6468
6569
const { dropdown } = useControls({
6670
dropdown: {
@@ -73,9 +77,9 @@ const { dropdown } = useControls({
7377
},
7478
})
7579
76-
watchEffect(() => {
80+
/* watchEffect(() => {
7781
console.log('dropdown', dropdown.value)
78-
})
82+
}) */
7983
8084
/* const { wireframe } = useControls({
8185
wireframe: ref(false),
@@ -92,39 +96,38 @@ const { position, rotation, something } = useControls({
9296
9397
})
9498
95-
watchEffect(() => {
96-
console.log('boxPosition', position.value.value.x)
99+
/* watchEffect(() => {
100+
console.log('boxPosition2', position.value.value.x)
97101
})
98102
99103
watchEffect(() => {
100104
console.log('something', something.value.value)
101-
})
105+
}) */
102106
103107
const { visible } = useControls({
104108
slider: { value: 1, min: 0, max: 10, step: 0.1, icon: 'ic-baseline-arrow-forward', visible: false },
105109
}, {
106110
uuid: 'second',
107111
})
108112
109-
watchEffect(() => {
113+
/* watchEffect(() => {
110114
console.log('visible', visible.value)
111-
})
115+
}) */
112116
113-
const folder = useControls('Folder', {
117+
useControls('Folder', {
114118
pepe: true,
115119
slider: {
116120
value: 0.5,
117121
min: 0,
118122
max: 1,
119-
step: 0.01,
123+
step: 0.02,
120124
},
121125
})
122126
123127
useControls('camera', { position: new Vector3(3, 2, 4) })
124128
</script>
125129

126130
<template>
127-
<pre>{{ position.value }}</pre>
128131
<TresLeches />
129132
<TresLeches uuid="second" />
130133
<TresCanvas v-bind="gl">

playground/tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
"strict": true,
1919
"noUnusedLocals": true,
2020
"noUnusedParameters": true,
21-
"noFallthroughCasesInSwitch": true
21+
"noFallthroughCasesInSwitch": true,
22+
"paths": {
23+
"@tresjs/leches": ["../src/index.ts"]
24+
}
2225
},
2326
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
2427
"references": [{ "path": "./tsconfig.node.json" }]

0 commit comments

Comments
 (0)