From ab46159a0fe8e768b3b211a3b6e095717909258a Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Tue, 18 Jun 2024 23:29:21 -0400 Subject: [PATCH] Add XR depth sensing example (#1026) * Update @types/webxr * Add examples * Update patch * Delete examples --- examples-testing/changes.patch | 123 +++++++++++++++++ examples-testing/index.js | 1 - pnpm-lock.yaml | 238 +++++++++++++++++---------------- 3 files changed, 246 insertions(+), 116 deletions(-) diff --git a/examples-testing/changes.patch b/examples-testing/changes.patch index 46636d9a8..36efe9b1d 100644 --- a/examples-testing/changes.patch +++ b/examples-testing/changes.patch @@ -14630,3 +14630,126 @@ index f3b4796e..c66cccea 100644 const controller = event.target; if (controller.userData.active === false) return; +diff --git a/examples-testing/examples/webxr_xr_dragging_custom_depth.ts b/examples-testing/examples/webxr_xr_dragging_custom_depth.ts +index 2cd50ba4..b97f3eee 100644 +--- a/examples-testing/examples/webxr_xr_dragging_custom_depth.ts ++++ b/examples-testing/examples/webxr_xr_dragging_custom_depth.ts +@@ -3,18 +3,18 @@ import { OrbitControls } from 'three/addons/controls/OrbitControls.js'; + import { XRButton } from 'three/addons/webxr/XRButton.js'; + import { XRControllerModelFactory } from 'three/addons/webxr/XRControllerModelFactory.js'; + +-let container; +-let camera, scene, renderer; +-let controller1, controller2; +-let controllerGrip1, controllerGrip2; ++let container: HTMLDivElement; ++let camera: THREE.PerspectiveCamera, scene: THREE.Scene, renderer: THREE.WebGLRenderer; ++let controller1: THREE.XRTargetRaySpace, controller2: THREE.XRTargetRaySpace; ++let controllerGrip1: THREE.XRGripSpace, controllerGrip2: THREE.XRGripSpace; + let isDepthSupplied = false; + +-let raycaster; ++let raycaster: THREE.Raycaster; + +-const intersected = []; ++const intersected: THREE.Object3D[] = []; + const tempMatrix = new THREE.Matrix4(); + +-let controls, group; ++let controls: OrbitControls, group: THREE.Group; + + init(); + animate(); +@@ -289,7 +289,7 @@ function onWindowResize() { + renderer.setSize(window.innerWidth, window.innerHeight); + } + +-function onSelectStart(event) { ++function onSelectStart(event: THREE.Event<'selectstart', THREE.XRTargetRaySpace> & { data: XRInputSource }) { + const controller = event.target; + + const intersections = getIntersections(controller); +@@ -297,7 +297,7 @@ function onSelectStart(event) { + if (intersections.length > 0) { + const intersection = intersections[0]; + +- const object = intersection.object; ++ const object = intersection.object as THREE.Mesh; + object.material.uniforms.emissive.value = 1; + controller.attach(object); + +@@ -307,7 +307,7 @@ function onSelectStart(event) { + controller.userData.targetRayMode = event.data.targetRayMode; + } + +-function onSelectEnd(event) { ++function onSelectEnd(event: THREE.Event<'selectend', THREE.XRTargetRaySpace> & { data: XRInputSource }) { + const controller = event.target; + + if (controller.userData.selected !== undefined) { +@@ -319,7 +319,7 @@ function onSelectEnd(event) { + } + } + +-function getIntersections(controller) { ++function getIntersections(controller: THREE.XRTargetRaySpace) { + controller.updateMatrixWorld(); + + tempMatrix.identity().extractRotation(controller.matrixWorld); +@@ -330,7 +330,7 @@ function getIntersections(controller) { + return raycaster.intersectObjects(group.children, false); + } + +-function intersectObjects(controller) { ++function intersectObjects(controller: THREE.XRTargetRaySpace) { + // Do not highlight in mobile-ar + + if (controller.userData.targetRayMode === 'screen') return; +@@ -345,19 +345,19 @@ function intersectObjects(controller) { + if (intersections.length > 0) { + const intersection = intersections[0]; + +- const object = intersection.object; ++ const object = intersection.object as THREE.Mesh; + object.material.uniforms.emissive.value = 1; + intersected.push(object); + +- line.scale.z = intersection.distance; ++ line!.scale.z = intersection.distance; + } else { +- line.scale.z = 5; ++ line!.scale.z = 5; + } + } + + function cleanIntersected() { + while (intersected.length) { +- const object = intersected.pop(); ++ const object = intersected.pop() as THREE.Mesh; + object.material.uniforms.emissive.value = 0; + } + } +@@ -371,16 +371,18 @@ function animate() { + function render() { + if (renderer.xr.hasDepthSensing() && !isDepthSupplied) { + group.children.forEach(child => { +- child.material.uniforms.depthColor.value = renderer.xr.getDepthTexture(); +- child.material.uniforms.depthWidth.value = 1680; +- child.material.uniforms.depthHeight.value = 1760; ++ (child as THREE.Mesh).material.uniforms.depthColor.value = ++ renderer.xr.getDepthTexture(); ++ (child as THREE.Mesh).material.uniforms.depthWidth.value = 1680; ++ (child as THREE.Mesh).material.uniforms.depthHeight.value = ++ 1760; + + isDepthSupplied = true; + }); + } else if (!renderer.xr.hasDepthSensing() && isDepthSupplied) { + group.children.forEach(child => { +- child.material.uniforms.depthWidth.value = 0; +- child.material.uniforms.depthHeight.value = 0; ++ (child as THREE.Mesh).material.uniforms.depthWidth.value = 0; ++ (child as THREE.Mesh).material.uniforms.depthHeight.value = 0; + + isDepthSupplied = false; + }); diff --git a/examples-testing/index.js b/examples-testing/index.js index ab900b432..529ec9546 100644 --- a/examples-testing/index.js +++ b/examples-testing/index.js @@ -113,7 +113,6 @@ const exceptionList = [ 'webxr_xr_ballshooter', 'webxr_xr_cubes', 'webxr_xr_dragging', - 'webxr_xr_dragging_custom_depth', 'webxr_xr_haptics', 'webxr_xr_paint', 'webxr_xr_sculpt', diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 63b69990e..8c12428b1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,25 +10,25 @@ importers: devDependencies: '@definitelytyped/definitions-parser': specifier: latest - version: 0.1.12(typescript@5.4.5) + version: 0.1.13(typescript@5.4.5) '@definitelytyped/dts-critic': specifier: latest - version: 0.1.10(typescript@5.4.5) + version: 0.1.11(typescript@5.4.5) '@definitelytyped/dtslint': specifier: latest - version: 0.2.20(typescript@5.4.5) + version: 0.2.21(typescript@5.4.5) '@definitelytyped/dtslint-runner': specifier: latest - version: 0.1.23(typescript@5.4.5) + version: 0.1.24(typescript@5.4.5) '@definitelytyped/eslint-plugin': specifier: latest - version: 0.1.12(@typescript-eslint/eslint-plugin@6.21.0)(@typescript-eslint/parser@6.21.0)(eslint-plugin-jsdoc@44.2.7)(eslint@8.57.0)(typescript@5.4.5) + version: 0.1.13(@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0)(typescript@5.4.5))(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-plugin-jsdoc@44.2.7(eslint@8.57.0))(eslint@8.57.0)(typescript@5.4.5) '@definitelytyped/header-parser': specifier: latest - version: 0.2.9 + version: 0.2.10 '@definitelytyped/typescript-versions': specifier: latest - version: 0.1.1 + version: 0.1.2 '@definitelytyped/utils': specifier: latest version: 0.1.6 @@ -37,10 +37,10 @@ importers: version: 0.17.3 '@types/webxr': specifier: '*' - version: 0.5.16 + version: 0.5.17 dprint: specifier: ^0.46.2 - version: 0.46.2 + version: 0.46.3 source-map-support: specifier: ^0.5.21 version: 0.5.21 @@ -52,10 +52,10 @@ importers: dependencies: '@types/three': specifier: file:../types/three - version: file:types/three + version: link:../types/three dprint: specifier: ^0.46.2 - version: 0.46.2 + version: 0.46.3 prettier: specifier: ^3.2.5 version: 3.3.2 @@ -67,7 +67,7 @@ importers: dependencies: '@types/three': specifier: file:../types/three - version: file:types/three + version: link:../types/three prettier: specifier: ^3.2.5 version: 3.3.2 @@ -89,7 +89,7 @@ importers: version: 0.17.3 '@types/webxr': specifier: '*' - version: 0.5.16 + version: 0.5.17 fflate: specifier: ~0.8.2 version: 0.8.2 @@ -119,32 +119,32 @@ packages: resolution: {integrity: sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==} engines: {node: '>=0.1.90'} - '@definitelytyped/definitions-parser@0.1.12': - resolution: {integrity: sha512-+XmhgyXNmG6e2Jn46bmrv97RIgE5bd0t2iA4FAYYeDTxgH2GMekFZJoOpS1IqdIlsMxkbzVvowHVWD6hjHe6hQ==} + '@definitelytyped/definitions-parser@0.1.13': + resolution: {integrity: sha512-XxvkUdpY3YeB1aK690qX/RfzznPwYKF2afevjmn5tZbjOhAc1csP0mcDjxF78wjbbnhp3WRD5kYb03BmfTQK+A==} engines: {node: '>=18.18.0'} peerDependencies: typescript: '*' - '@definitelytyped/dts-critic@0.1.10': - resolution: {integrity: sha512-lOUdkjaaOxvKOddwKW2Ii2djHH0D2any+nRTpB2fw2P93ffQj7dCVlhWUqpSbH4C4Qucixv8iruhNy2pHAggkA==} + '@definitelytyped/dts-critic@0.1.11': + resolution: {integrity: sha512-f4n+8+4ZOQGUz7m75KVfNHuOrciHD9cd2+KLSJGP/5fzclvwmP+EIz7aNoIm5lsBBeCeUbJWpyrRal41IVttVg==} engines: {node: '>=18.18.0'} peerDependencies: typescript: '*' - '@definitelytyped/dtslint-runner@0.1.23': - resolution: {integrity: sha512-l5XGOBXD1rnGkU+ujLawOHvaXRGFqZUmhDjejF76bmvEIk9RGBaXoXg/YnPJj6lwAct8WA6xEVy5zwpafCuSbA==} + '@definitelytyped/dtslint-runner@0.1.24': + resolution: {integrity: sha512-WXgNbhJP4lqwLg7qeuGW9QEOuC6eyKqRVF4zw3OVseJMCm9pTg4tNtfBMt/aE8+7CW19KkLMsBO7sex2eFpPcQ==} engines: {node: '>=18.18.0'} hasBin: true - '@definitelytyped/dtslint@0.2.20': - resolution: {integrity: sha512-eLsveo84Is+yLF9j4TsVsoDZiWr0b+/px14gK1fRUIWbj8rCC8YWnyfFHxwH0CVsL9s0MnQ7RqsMG/Pgc4txBA==} + '@definitelytyped/dtslint@0.2.21': + resolution: {integrity: sha512-xa1b8Qofuwl7+8vvtfWUrFtKRxIBINS4v2uCR4/hZrOts8/2VlWedWAYvmvj2aHkpn9jJegPdzIvNm4ix5Gdtw==} engines: {node: '>=18.18.0'} hasBin: true peerDependencies: typescript: '>= 3.0.0-dev || >= 3.1.0-dev || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.7.0-dev || >= 3.8.0-dev || >= 3.9.0-dev || >= 4.0.0-dev || >=5.0.0-dev' - '@definitelytyped/eslint-plugin@0.1.12': - resolution: {integrity: sha512-UQhMVGA7LAXfeuJH9Qy289qIGklaxR2l7yJf40QGR1A9TZ7H/rYahJs5ZE8tM3W3eV1osh7P7Nv/1T7OA+rG3w==} + '@definitelytyped/eslint-plugin@0.1.13': + resolution: {integrity: sha512-LFmu9MKd6tePKGwAoQhloFPVrkzig/M8AoWPOk2Bt9pXRjsnzVWHNaYpC3TvQfLMYblh2EqSYwH7NV3jJkGKYQ==} engines: {node: '>=18.18.0'} peerDependencies: '@typescript-eslint/eslint-plugin': ^6.11.0 @@ -153,54 +153,54 @@ packages: eslint-plugin-jsdoc: ^44.0.0 typescript: '>= 3.0.0-dev || >= 3.1.0-dev || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.7.0-dev || >= 3.8.0-dev || >= 3.9.0-dev || >= 4.0.0-dev || >=5.0.0-dev' - '@definitelytyped/header-parser@0.2.9': - resolution: {integrity: sha512-1Un7VpVtBgI4yL9ik9MJmfoDSbSSy81k3BA52KNUiY7ZIQrEB3Lz6SYdcAttyj5BwOn9vIHUmlFoqI0AcuDWnw==} + '@definitelytyped/header-parser@0.2.10': + resolution: {integrity: sha512-CZHLS8F9ejIfP0+7oC0kz3WXeDDskBz2DSqA6u8dN9MpOzd/p8XXhioRSTI2T1na9GRPOq8UolvwLO+DnuY9Mg==} engines: {node: '>=18.18.0'} - '@definitelytyped/typescript-packages@0.1.1': - resolution: {integrity: sha512-17JF1TR42nI55ESrbiJp+9c83XzI4jQ/4UnDw8r7btuR1aHspSsY3z1HcL/9Misg96x11CSpu+gcuEvF0SACgg==} + '@definitelytyped/typescript-packages@0.1.2': + resolution: {integrity: sha512-errs0HTO2q9fhUJKtwguoevHGyjqLQD/oR9PDNi9vspMsfeG1eKOw8NlKr0Uq88wMDAoReoLYt+96/imVPVgrA==} engines: {node: '>=18.18.0'} - '@definitelytyped/typescript-versions@0.1.1': - resolution: {integrity: sha512-ku6f6K/bYW39K1UyAXcg9wYPcU3ojg8NbygnGrJK78Pyu+4aflaO34gk5f92aUrqJHr8fFG6gg4IjJZCPd5wxg==} + '@definitelytyped/typescript-versions@0.1.2': + resolution: {integrity: sha512-uK8qw7yikv4p28eeDxkoaOcBxv/kKVutbsc3UTacpj+iM4zz3+Mn571i0GjYVW0fWQBre4ixB82gQxxzV9pb9g==} engines: {node: '>=18.18.0'} '@definitelytyped/utils@0.1.6': resolution: {integrity: sha512-QRA3Gr2jfQcPoN35yLexdW/JCoYNNLSLX0xKMa+y28nZXyv+9RVr+UruoYiyxtwcf+W3b49X2I8fGYIlzoGw6w==} engines: {node: '>=18.18.0'} - '@dprint/darwin-arm64@0.46.2': - resolution: {integrity: sha512-IA/VIWwmIJ4a9rLB0paU0ryXFHRV+NHyWykDa4F+3WgbyXVlv1PVncW5wgfZJ38wQM8FDfPUO2Ar8+Nkx8Fkfg==} + '@dprint/darwin-arm64@0.46.3': + resolution: {integrity: sha512-1ycDpGvclGHF3UG5V6peymPDg6ouNTqM6BjhVELQ6zwr+X98AMhq/1slgO8hwHtPcaS5qhTAS+PkzOmBJRegow==} cpu: [arm64] os: [darwin] - '@dprint/darwin-x64@0.46.2': - resolution: {integrity: sha512-YMY40MsN1CL/8fGPcZaA/3KeE09GHt7y4ZRJGCw8Cx7AjZ3P+SlNxL6X9v72eXUfotzudcZc5yC72tdUFaN7oA==} + '@dprint/darwin-x64@0.46.3': + resolution: {integrity: sha512-v5IpLmrY836Q5hJAxZuX097ZNQvoZgO6JKO4bK4l6XDhhHAw2XTIUr41+FM5r36ENxyASMk0NpHjhcHtih3o0g==} cpu: [x64] os: [darwin] - '@dprint/linux-arm64-glibc@0.46.2': - resolution: {integrity: sha512-brllu3G7nPV5GQTHnDF54ihGwgWHxRr03EQI0Mbbif94P/jl+Dqf9I6qWBSDVt/zQTThY1aYIZt+mpblD4oXZQ==} + '@dprint/linux-arm64-glibc@0.46.3': + resolution: {integrity: sha512-9P13g1vgV8RfQH2qBGa8YAfaOeWA42RIhj7lmWRpkDFtwau96reMKwnBBn8bHUnc5e6bSsbPUOMb/X1KMUKz/g==} cpu: [arm64] os: [linux] - '@dprint/linux-arm64-musl@0.46.2': - resolution: {integrity: sha512-+9pF6qmSMobvtlTk/PnyqYE66nlwyrg7TeJb+RhqAT3y40v8TT4XafdK5p5GOrC1qf1QV4PCLAuOrHAKaYLNqg==} + '@dprint/linux-arm64-musl@0.46.3': + resolution: {integrity: sha512-AAcdcMSZ6DEIoY9E0xQHjkZP+THP7EWsQge4TWzglSIjzn31YltglHAGYFcLB4CTJYpF0NsFDNFktzgkO+s0og==} cpu: [arm64] os: [linux] - '@dprint/linux-x64-glibc@0.46.2': - resolution: {integrity: sha512-iq0WfIyLrxaE0PVXw89FKwC2VIbo3Hb6PscEVtzWDOpm/bmURXs5JIjRFpAaGfwCZcwzds70bb7utT5ItgZtlA==} + '@dprint/linux-x64-glibc@0.46.3': + resolution: {integrity: sha512-c5cQ3G1rC64nBZ8Pd2LGWwzkEk4D7Ax9NrBbwYmNPvs6mFbGlJPC1+RD95x2WwIrIlMIciLG+Kxmt25PzBphmg==} cpu: [x64] os: [linux] - '@dprint/linux-x64-musl@0.46.2': - resolution: {integrity: sha512-Ins2SD0v5Q61b6WIcxnsoHT84E+kyiUjjespxcWzqLrXdPgy8ATLMfcx1vHS4ALD687+PkwCgPF8N2jK66Md6A==} + '@dprint/linux-x64-musl@0.46.3': + resolution: {integrity: sha512-ONtk2QtLcV0TqWOCOqzUFQixgk3JC+vnJLB5L6tQwT7BX5LzeircfE/1f4dg459iqejNC9MBXZkHnXqabvWSow==} cpu: [x64] os: [linux] - '@dprint/win32-x64@0.46.2': - resolution: {integrity: sha512-4msLVoyMppU5yPlxnCU0ibk6ahSQs1vcc7ToJkOi3LiCqu/KU+hYk2+bwqiZaQ1usi24iA9AIB+aBVA6X3VDXg==} + '@dprint/win32-x64@0.46.3': + resolution: {integrity: sha512-xvj4DSEilf0gGdT7CqnwNEgfWNuWqT6eIBxHDEUbmcn1vZ7IwirtqRq/nm3lmYtQaJ4EbtMQZvACHZwxC7G96w==} cpu: [x64] os: [win32] @@ -396,8 +396,8 @@ packages: '@types/json5@0.0.29': resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==} - '@types/node@18.19.34': - resolution: {integrity: sha512-eXF4pfBNV5DAMKGbI02NnDtWrQ40hAN558/2vvS4gMpMIxaf6JmD7YjnZbq0Q9TDSSkKBamime8ewRoomHdt4g==} + '@types/node@18.19.36': + resolution: {integrity: sha512-tX1BNmYSWEvViftB26VLNxT6mEr37M7+ldUtq7rlKnv4/2fKYsJIOmqJAjT6h1DNuwQjIKgw3VJ/Dtw3yiTIQw==} '@types/semver@7.5.8': resolution: {integrity: sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==} @@ -408,12 +408,8 @@ packages: '@types/three@0.163.0': resolution: {integrity: sha512-uIdDhsXRpQiBUkflBS/i1l3JX14fW6Ot9csed60nfbZNXHDTRsnV2xnTVwXcgbvTiboAR4IW+t+lTL5f1rqIqA==} - '@types/three@file:types/three': - resolution: {directory: types/three, type: directory} - name: '@types/three' - - '@types/webxr@0.5.16': - resolution: {integrity: sha512-0E0Cl84FECtzrB4qG19TNTqpunw0F1YF0QZZnFMF6pDw1kNKJtrlTKlVB34stGIsHbZsYQ7H0tNjPfZftkHHoA==} + '@types/webxr@0.5.17': + resolution: {integrity: sha512-JYcclaQIlisHRXM9dMF7SeVvQ54kcYc7QK1eKCExCTLKWnZDxP4cp/rXH4Uoa1j5+5oQJ0Cc2sZC/PWiiG4q2g==} '@typescript-eslint/eslint-plugin@6.21.0': resolution: {integrity: sha512-oy9+hTPCUFpngkEZUSzbf9MxI65wbKFoQYsgPdILTfbUldp5ovUuphZVe4i30emU9M/kP+T64Di0mxl7dSw3MA==} @@ -784,8 +780,8 @@ packages: resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} engines: {node: '>=6.0.0'} - dprint@0.46.2: - resolution: {integrity: sha512-wjbOghUDqy4gNgW2TNkGOBCAfxwkWBUAyCEkqFZbrBKTGZ1DVbHB1YZOTwVlQNIcDcLWTZQz2AnIK1HjQC/rIQ==} + dprint@0.46.3: + resolution: {integrity: sha512-ACEd7B7sO/uvPvV/nsHbtkIeMqeD2a8XGO1DokROtKDUmI5WbuflGZOwyjFCYwy4rkX6FXoYBzGdEQ6um7BjCA==} hasBin: true eastasianwidth@0.2.0: @@ -1039,8 +1035,8 @@ packages: resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} engines: {node: '>=10.13.0'} - glob@10.4.1: - resolution: {integrity: sha512-2jelhlq3E4ho74ZyVLN03oKdAZVUa6UDZzFLVH1H7dnoax+y9qyaq8zBkfDIggjniU19z0wU18y16jMB2eyVIw==} + glob@10.4.2: + resolution: {integrity: sha512-GwMlUF6PkPo3Gk21UxkCohOv0PLcIXVtKyLlpEI28R/cO/4eNOdmLk3CMW1wROV/WR/EsZOWAfBbBOqYvs88/w==} engines: {node: '>=16 || 14 >=14.18'} hasBin: true @@ -1559,6 +1555,9 @@ packages: resolution: {integrity: sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==} engines: {node: '>=10'} + package-json-from-dist@1.0.0: + resolution: {integrity: sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==} + pacote@17.0.7: resolution: {integrity: sha512-sgvnoUMlkv9xHwDUKjKQFXVyUi8dtJGKp3vg6sYy+TxbDic5RjZCHF3ygv0EJgNRZ2GfRONjlKPUfokJ9lDpwQ==} engines: {node: ^16.14.0 || >=18.0.0} @@ -2007,6 +2006,11 @@ packages: engines: {node: '>=14.17'} hasBin: true + typescript@5.6.0-dev.20240618: + resolution: {integrity: sha512-nUnATyFjcoenJB7S5oPGea2s0dd8MVl+2NisBLm7E+zpXkX0KSLy8Y7aFNSQ+r1Hs/MrKfSlV4O8yiQpCuOqrQ==} + engines: {node: '>=14.17'} + hasBin: true + unbox-primitive@1.0.2: resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==} @@ -2133,12 +2137,12 @@ snapshots: '@colors/colors@1.5.0': optional: true - '@definitelytyped/definitions-parser@0.1.12(typescript@5.4.5)': + '@definitelytyped/definitions-parser@0.1.13(typescript@5.4.5)': dependencies: - '@definitelytyped/header-parser': 0.2.9 - '@definitelytyped/typescript-versions': 0.1.1 + '@definitelytyped/header-parser': 0.2.10 + '@definitelytyped/typescript-versions': 0.1.2 '@definitelytyped/utils': 0.1.6 - '@types/node': 18.19.34 + '@types/node': 18.19.36 '@types/semver': 7.5.8 pacote: 17.0.7 semver: 7.6.2 @@ -2147,16 +2151,16 @@ snapshots: - bluebird - supports-color - '@definitelytyped/dts-critic@0.1.10(typescript@5.4.5)': + '@definitelytyped/dts-critic@0.1.11(typescript@5.4.5)': dependencies: - '@definitelytyped/header-parser': 0.2.9 + '@definitelytyped/header-parser': 0.2.10 typescript: 5.4.5 yargs: 17.7.2 - '@definitelytyped/dtslint-runner@0.1.23(typescript@5.4.5)': + '@definitelytyped/dtslint-runner@0.1.24(typescript@5.4.5)': dependencies: - '@definitelytyped/definitions-parser': 0.1.12(typescript@5.4.5) - '@definitelytyped/dtslint': 0.2.20(typescript@5.4.5) + '@definitelytyped/definitions-parser': 0.1.13(typescript@5.4.5) + '@definitelytyped/dtslint': 0.2.21(typescript@5.4.5) '@definitelytyped/utils': 0.1.6 '@octokit/rest': 20.1.1 yargs: 17.7.2 @@ -2167,21 +2171,21 @@ snapshots: - supports-color - typescript - '@definitelytyped/dtslint@0.2.20(typescript@5.4.5)': + '@definitelytyped/dtslint@0.2.21(typescript@5.4.5)': dependencies: '@arethetypeswrong/cli': 0.15.1 '@arethetypeswrong/core': 0.15.1 - '@definitelytyped/header-parser': 0.2.9 - '@definitelytyped/typescript-packages': 0.1.1 - '@definitelytyped/typescript-versions': 0.1.1 + '@definitelytyped/header-parser': 0.2.10 + '@definitelytyped/typescript-packages': 0.1.2 + '@definitelytyped/typescript-versions': 0.1.2 '@definitelytyped/utils': 0.1.6 - '@typescript-eslint/eslint-plugin': 6.21.0(@typescript-eslint/parser@6.21.0)(eslint@8.57.0)(typescript@5.4.5) + '@typescript-eslint/eslint-plugin': 6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0)(typescript@5.4.5) '@typescript-eslint/parser': 6.21.0(eslint@8.57.0)(typescript@5.4.5) '@typescript-eslint/types': 6.21.0 '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.4.5) '@typescript-eslint/utils': 6.21.0(eslint@8.57.0)(typescript@5.4.5) eslint: 8.57.0 - eslint-plugin-import: 2.29.1(@typescript-eslint/parser@6.21.0)(eslint@8.57.0) + eslint-plugin-import: 2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0) semver: 7.6.2 strip-json-comments: 3.1.1 typescript: 5.4.5 @@ -2190,10 +2194,10 @@ snapshots: - eslint-import-resolver-webpack - supports-color - '@definitelytyped/eslint-plugin@0.1.12(@typescript-eslint/eslint-plugin@6.21.0)(@typescript-eslint/parser@6.21.0)(eslint-plugin-jsdoc@44.2.7)(eslint@8.57.0)(typescript@5.4.5)': + '@definitelytyped/eslint-plugin@0.1.13(@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0)(typescript@5.4.5))(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-plugin-jsdoc@44.2.7(eslint@8.57.0))(eslint@8.57.0)(typescript@5.4.5)': dependencies: '@definitelytyped/utils': 0.1.6 - '@typescript-eslint/eslint-plugin': 6.21.0(@typescript-eslint/parser@6.21.0)(eslint@8.57.0)(typescript@5.4.5) + '@typescript-eslint/eslint-plugin': 6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0)(typescript@5.4.5) '@typescript-eslint/parser': 6.21.0(eslint@8.57.0)(typescript@5.4.5) '@typescript-eslint/types': 6.21.0 '@typescript-eslint/utils': 6.21.0(eslint@8.57.0)(typescript@5.4.5) @@ -2203,15 +2207,15 @@ snapshots: transitivePeerDependencies: - supports-color - '@definitelytyped/header-parser@0.2.9': + '@definitelytyped/header-parser@0.2.10': dependencies: - '@definitelytyped/typescript-versions': 0.1.1 + '@definitelytyped/typescript-versions': 0.1.2 '@definitelytyped/utils': 0.1.6 semver: 7.6.2 - '@definitelytyped/typescript-packages@0.1.1': + '@definitelytyped/typescript-packages@0.1.2': dependencies: - '@definitelytyped/typescript-versions': 0.1.1 + '@definitelytyped/typescript-versions': 0.1.2 typescript-4.7: typescript@4.7.4 typescript-4.8: typescript@4.8.4 typescript-4.9: typescript@4.9.5 @@ -2221,13 +2225,14 @@ snapshots: typescript-5.3: typescript@5.3.3 typescript-5.4: typescript@5.4.5 typescript-5.5: typescript@5.5.0-dev.20240603 + typescript-5.6: typescript@5.6.0-dev.20240618 - '@definitelytyped/typescript-versions@0.1.1': {} + '@definitelytyped/typescript-versions@0.1.2': {} '@definitelytyped/utils@0.1.6': dependencies: '@qiwi/npm-registry-client': 8.9.1 - '@types/node': 18.19.34 + '@types/node': 18.19.36 cachedir: 2.4.0 charm: 1.0.2 minimatch: 9.0.4 @@ -2235,25 +2240,25 @@ snapshots: tar-stream: 3.1.7 which: 4.0.0 - '@dprint/darwin-arm64@0.46.2': + '@dprint/darwin-arm64@0.46.3': optional: true - '@dprint/darwin-x64@0.46.2': + '@dprint/darwin-x64@0.46.3': optional: true - '@dprint/linux-arm64-glibc@0.46.2': + '@dprint/linux-arm64-glibc@0.46.3': optional: true - '@dprint/linux-arm64-musl@0.46.2': + '@dprint/linux-arm64-musl@0.46.3': optional: true - '@dprint/linux-x64-glibc@0.46.2': + '@dprint/linux-x64-glibc@0.46.3': optional: true - '@dprint/linux-x64-musl@0.46.2': + '@dprint/linux-x64-musl@0.46.3': optional: true - '@dprint/win32-x64@0.46.2': + '@dprint/win32-x64@0.46.3': optional: true '@es-joy/jsdoccomment@0.39.4': @@ -2355,7 +2360,7 @@ snapshots: '@npmcli/package-json@5.2.0': dependencies: '@npmcli/git': 5.0.7 - glob: 10.4.1 + glob: 10.4.2 hosted-git-info: 7.0.2 json-parse-even-better-errors: 3.0.2 normalize-package-data: 6.0.1 @@ -2510,7 +2515,7 @@ snapshots: '@types/json5@0.0.29': {} - '@types/node@18.19.34': + '@types/node@18.19.36': dependencies: undici-types: 5.26.5 @@ -2522,21 +2527,13 @@ snapshots: dependencies: '@tweenjs/tween.js': 23.1.2 '@types/stats.js': 0.17.3 - '@types/webxr': 0.5.16 - fflate: 0.8.2 - meshoptimizer: 0.18.1 - - '@types/three@file:types/three': - dependencies: - '@tweenjs/tween.js': 23.1.2 - '@types/stats.js': 0.17.3 - '@types/webxr': 0.5.16 + '@types/webxr': 0.5.17 fflate: 0.8.2 meshoptimizer: 0.18.1 - '@types/webxr@0.5.16': {} + '@types/webxr@0.5.17': {} - '@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0)(eslint@8.57.0)(typescript@5.4.5)': + '@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0)(typescript@5.4.5)': dependencies: '@eslint-community/regexpp': 4.10.1 '@typescript-eslint/parser': 6.21.0(eslint@8.57.0)(typescript@5.4.5) @@ -2551,6 +2548,7 @@ snapshots: natural-compare: 1.4.0 semver: 7.6.2 ts-api-utils: 1.3.0(typescript@5.4.5) + optionalDependencies: typescript: 5.4.5 transitivePeerDependencies: - supports-color @@ -2563,6 +2561,7 @@ snapshots: '@typescript-eslint/visitor-keys': 6.21.0 debug: 4.3.5 eslint: 8.57.0 + optionalDependencies: typescript: 5.4.5 transitivePeerDependencies: - supports-color @@ -2579,6 +2578,7 @@ snapshots: debug: 4.3.5 eslint: 8.57.0 ts-api-utils: 1.3.0(typescript@5.4.5) + optionalDependencies: typescript: 5.4.5 transitivePeerDependencies: - supports-color @@ -2595,6 +2595,7 @@ snapshots: minimatch: 9.0.3 semver: 7.6.2 ts-api-utils: 1.3.0(typescript@5.4.5) + optionalDependencies: typescript: 5.4.5 transitivePeerDependencies: - supports-color @@ -2776,7 +2777,7 @@ snapshots: dependencies: '@npmcli/fs': 3.1.1 fs-minipass: 3.0.3 - glob: 10.4.1 + glob: 10.4.2 lru-cache: 10.2.2 minipass: 7.1.2 minipass-collect: 2.0.1 @@ -2938,15 +2939,15 @@ snapshots: dependencies: esutils: 2.0.3 - dprint@0.46.2: + dprint@0.46.3: optionalDependencies: - '@dprint/darwin-arm64': 0.46.2 - '@dprint/darwin-x64': 0.46.2 - '@dprint/linux-arm64-glibc': 0.46.2 - '@dprint/linux-arm64-musl': 0.46.2 - '@dprint/linux-x64-glibc': 0.46.2 - '@dprint/linux-x64-musl': 0.46.2 - '@dprint/win32-x64': 0.46.2 + '@dprint/darwin-arm64': 0.46.3 + '@dprint/darwin-x64': 0.46.3 + '@dprint/linux-arm64-glibc': 0.46.3 + '@dprint/linux-arm64-musl': 0.46.3 + '@dprint/linux-x64-glibc': 0.46.3 + '@dprint/linux-x64-musl': 0.46.3 + '@dprint/win32-x64': 0.46.3 eastasianwidth@0.2.0: {} @@ -3057,18 +3058,18 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-module-utils@2.8.1(@typescript-eslint/parser@6.21.0)(eslint-import-resolver-node@0.3.9)(eslint@8.57.0): + eslint-module-utils@2.8.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint@8.57.0): dependencies: - '@typescript-eslint/parser': 6.21.0(eslint@8.57.0)(typescript@5.4.5) debug: 3.2.7 + optionalDependencies: + '@typescript-eslint/parser': 6.21.0(eslint@8.57.0)(typescript@5.4.5) eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 transitivePeerDependencies: - supports-color - eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0)(eslint@8.57.0): + eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0): dependencies: - '@typescript-eslint/parser': 6.21.0(eslint@8.57.0)(typescript@5.4.5) array-includes: 3.1.8 array.prototype.findlastindex: 1.2.5 array.prototype.flat: 1.3.2 @@ -3077,7 +3078,7 @@ snapshots: doctrine: 2.1.0 eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.8.1(@typescript-eslint/parser@6.21.0)(eslint-import-resolver-node@0.3.9)(eslint@8.57.0) + eslint-module-utils: 2.8.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint@8.57.0) hasown: 2.0.2 is-core-module: 2.13.1 is-glob: 4.0.3 @@ -3087,6 +3088,8 @@ snapshots: object.values: 1.2.0 semver: 6.3.1 tsconfig-paths: 3.15.0 + optionalDependencies: + '@typescript-eslint/parser': 6.21.0(eslint@8.57.0)(typescript@5.4.5) transitivePeerDependencies: - eslint-import-resolver-typescript - eslint-import-resolver-webpack @@ -3303,12 +3306,13 @@ snapshots: dependencies: is-glob: 4.0.3 - glob@10.4.1: + glob@10.4.2: dependencies: foreground-child: 3.2.1 jackspeak: 3.4.0 minimatch: 9.0.4 minipass: 7.1.2 + package-json-from-dist: 1.0.0 path-scurry: 1.11.1 glob@7.2.3: @@ -3718,7 +3722,7 @@ snapshots: dependencies: env-paths: 2.2.1 exponential-backoff: 3.1.1 - glob: 10.4.1 + glob: 10.4.2 graceful-fs: 4.2.11 make-fetch-happen: 13.0.1 nopt: 7.2.1 @@ -3865,6 +3869,8 @@ snapshots: dependencies: aggregate-error: 3.1.0 + package-json-from-dist@1.0.0: {} + pacote@17.0.7: dependencies: '@npmcli/git': 5.0.7 @@ -3949,7 +3955,7 @@ snapshots: read-package-json@7.0.1: dependencies: - glob: 10.4.1 + glob: 10.4.2 json-parse-even-better-errors: 3.0.2 normalize-package-data: 6.0.1 npm-normalize-package-bin: 3.0.1 @@ -4367,6 +4373,8 @@ snapshots: typescript@5.5.0-dev.20240603: {} + typescript@5.6.0-dev.20240618: {} + unbox-primitive@1.0.2: dependencies: call-bind: 1.0.7