Files
moeka-project/docs/package.json
T
Neko Ayaka 372125fb89 chore(deps): bump dependencies
Notice: after bumping up to three 0.180.0 with @types/three 0.180.0,
  Argument of type 'Group<Object3DEventMap>' is not assignable to parameter of type 'Object3D<Object3DEventMap>'.
    Type 'Group<Object3DEventMap>' is missing the following properties from type 'Object3D<Object3DEventMap>': setPointerCapture, releasePointerCapture, hasPointerCapture

Currently, AFAIK, clearly, three, and @types/three doesn't have the setPointerCapture, releasePointerCapture, hasPointerCapture method / getters
The only place I found on GitHub, points out that https://github.com/pmndrs/xr/blob/456aa380206e93888cd3a5741a1534e672ae3106/packages/pointer-events/src/pointer.ts#L69-L100 declares

```js
declare module 'three' {
  interface Object3D {
    setPointerCapture(pointerId: number): void
    releasePointerCapture(pointerId: number): void
    hasPointerCapture(pointerId: number): boolean

    intersectChildren?: boolean
    interactableDescendants?: Array<Object3D>
    /**
     * @deprecated
     */
    ancestorsHaveListeners?: boolean
    ancestorsHavePointerListeners?: boolean
    ancestorsHaveWheelListeners?: boolean
  }
}
```

And in @tresjs/core v5, it uses the @pmndrs/pointer-events internally.
Somehow the Object3D from @types/three and the one augmented by @pmndrs/pointer-events are not compatible.

`new Object3D() as unknown as Object3D` works as workaround here but there should be no need to do such a thing since these two Object3D should be the same.
With no updates from `typescript`, I assume there is no breaking change or regression from `typescript` side.
2025-09-26 17:07:07 +08:00

64 lines
1.8 KiB
JSON

{
"name": "@proj-airi/docs",
"type": "module",
"version": "0.7.2-beta.3",
"private": true,
"scripts": {
"build": "vitepress build",
"build:base": "BASE_URL=/docs/ vitepress build",
"dev": "vitepress dev",
"preview": "vitepress preview",
"typecheck": "vue-tsc --noEmit",
"contributors": "tsx scripts/update-contributors.ts"
},
"dependencies": {
"@fontsource-variable/comfortaa": "^5.2.8",
"@fontsource-variable/dm-sans": "^5.2.8",
"@fontsource-variable/quicksand": "^5.2.10",
"@fontsource/dm-mono": "^5.2.7",
"@fontsource/dm-serif-display": "^5.2.8",
"@fontsource/quicksand": "^5.2.10",
"@moeru/std": "catalog:",
"@proj-airi/chromatic": "^1.0.0",
"@proj-airi/i18n": "workspace:^",
"@vueuse/core": "^13.9.0",
"colorjs.io": "^0.5.2",
"mark.js": "^8.11.1",
"motion-v": "^1.7.1",
"pathe": "^2.0.3",
"reka-ui": "^2.5.1",
"vue": "^3.5.22",
"vue-i18n": "^11.1.12",
"vue-sonner": "^2.0.8"
},
"devDependencies": {
"@iconify-json/lucide": "^1.2.68",
"@iconify/vue": "^5.0.0",
"@intlify/unplugin-vue-i18n": "^11.0.1",
"@mdit/plugin-footnote": "^0.22.2",
"@mdit/plugin-tasklist": "^0.22.1",
"@proj-airi/stage-ui": "workspace:^",
"@radix-ui/colors": "^3.0.0",
"@types/hast": "^3.0.4",
"@types/markdown-it": "^14.1.2",
"@types/markdown-it-anchor": "^7.0.0",
"@unocss/reset": "^66.5.2",
"@vue/tsconfig": "^0.8.1",
"animejs": "^4.1.4",
"fast-glob": "^3.3.3",
"gray-matter": "^4.0.3",
"markdown-it": "^14.1.0",
"markdown-it-anchor": "^9.2.0",
"minisearch": "^7.2.0",
"postcss": "^8.5.6",
"sharp": "^0.34.4",
"shiki": "^3.13.0",
"tinyglobby": "^0.2.15",
"tsx": "^4.20.6",
"uncrypto": "^0.1.3",
"unplugin-yaml": "^3.0.6",
"vitepress": "^2.0.0-alpha.12",
"vue-tsc": "^3.0.8"
}
}