airi/apps/component-calling/package.json
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 456aa38020/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

47 lines
1.2 KiB
JSON

{
"name": "@proj-airi/component-calling",
"type": "module",
"private": true,
"description": "Realtime audio",
"author": {
"name": "Moeru AI Project AIRI Team",
"email": "airi@moeru.ai",
"url": "https://github.com/moeru-ai"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/moeru-ai/airi.git",
"directory": "apps/component-calling"
},
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"typecheck": "vue-tsc --noEmit"
},
"dependencies": {
"@proj-airi/ui": "workspace:^",
"@valibot/to-json-schema": "1.0.0-rc.0",
"@vueuse/core": "^13.9.0",
"@xsai/generate-text": "catalog:",
"@xsai/shared-chat": "catalog:",
"@xsai/stream-text": "catalog:",
"es-toolkit": "^1.39.10",
"valibot": "1.0.0-beta.9",
"vue": "^3.5.22",
"xsschema": "catalog:"
},
"devDependencies": {
"@iconify-json/solar": "^1.2.4",
"@iconify-json/svg-spinners": "^1.2.4",
"@types/xast": "^2.0.4",
"@unocss/reset": "^66.5.2",
"@vitejs/plugin-vue": "^6.0.1",
"superjson": "^2.2.2",
"unplugin-vue-router": "^0.15.0",
"vite": "catalog:rolldown-vite",
"vue-router": "^4.5.1",
"vue-tsc": "^3.0.8"
}
}