functionality implemented

This commit is contained in:
Silas Bartha 2025-02-11 19:28:40 -05:00
parent 89b411863b
commit fb5a063276
10 changed files with 200 additions and 102 deletions

View File

@ -1,17 +1,75 @@
from flask import Flask, config
from http import HTTPStatus
from flask import Flask, Response, config, json, jsonify, request, request_started
from dotenv import dotenv_values
from pymongo import MongoClient
from bson.json_util import dumps
from bson import ObjectId
from uuid import uuid4
config = dotenv_values(".env")
app = Flask(__name__)
app.mongoclient = MongoClient(config["DB_URI"])
app.db = app.mongoclient[config["DB_NAME"]]
mongoclient = MongoClient(config["DB_URI"])
db = mongoclient[config["DB_NAME"]]
print("Connected to MongoDB database")
@app.route('/api/message')
def get_messages():
messages = dumps(list(app.db["message"].find(limit=100)))
messages = dumps(list(db["message"].find(limit=100)))
return messages
@app.route('/api/new_message', methods=['POST'])
def new_message():
position = list(json.loads(request.form['position']))
message = request.form['message']
token = request.form['token']
user = db['user'].find_one({'token': token})
if user is not None:
db["message"].insert_one({'position': position, 'message': message, 'userId': user['_id']})
return Response(status=HTTPStatus.NO_CONTENT)
else:
return Response(status=HTTPStatus.BAD_REQUEST)
@app.route('/api/gen_token')
def gen_token():
token = str(uuid4())
db["user"].insert_one({'token': token})
return { 'token': token }
@app.route('/api/remove_message', methods=['DELETE'])
def remove_message():
token = request.form['token']
message_id = ObjectId(request.form['message_id'])
user = db['user'].find_one({'token':token})
if user is not None:
message = db['message'].find_one({'_id': message_id})
if message is not None:
if message['userId'] == user['_id']:
db['message'].delete_one({'_id':message_id})
return Response(status=HTTPStatus.NO_CONTENT)
else:
return Response(status=HTTPStatus.UNAUTHORIZED)
else:
return Response(status=HTTPStatus.BAD_REQUEST)
else:
return Response(status=HTTPStatus.BAD_REQUEST)
@app.route('/api/edit_message', methods=['PUT'])
def edit_message():
token = request.form['token']
message_id = ObjectId(request.form['message_id'])
user = db['user'].find_one({'token':token})
new_message = request.form['message']
if user is not None and new_message is not None:
message = db['message'].find_one({'_id': message_id})
if message is not None:
if message['userId'] == user['_id']:
db['message'].update_one({'_id':message_id}, {'$set': { 'message': new_message }})
return Response(status=HTTPStatus.NO_CONTENT)
else:
return Response(status=HTTPStatus.UNAUTHORIZED)
else:
return Response(status=HTTPStatus.BAD_REQUEST)
else:
return Response(status=HTTPStatus.BAD_REQUEST)

View File

@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>soaos forum</title>
<title>soaos forum v0.1</title>
</head>
<body>
<div id="root"></div>

View File

@ -11,8 +11,9 @@
"start-api": "cd api && venv/bin/flask run --no-debugger"
},
"dependencies": {
"@react-three/drei": "^9.121.4",
"@react-three/drei": "10.0.0-rc.2",
"@react-three/fiber": "^9.0.0-rc.7",
"@react-three/postprocessing": "3.0.0-rc.2",
"@react-three/rapier": "^1.5.0",
"@types/three": "^0.173.0",
"color": "^4.2.3",

View File

@ -6,8 +6,10 @@ import Ground from './components/ground';
import React, { Suspense, useContext, useEffect, useRef, useState } from 'react';
import { Physics } from '@react-three/rapier';
import Sun from './components/sun';
import { Fog } from 'three';
import * as everforest from './_everforest.module.scss'
import { Bloom, EffectComposer, GodRays, LensFlare, Noise, Vignette } from '@react-three/postprocessing';
import { AdditiveBlending } from 'three';
import { useGLTF } from '@react-three/drei';
export const AppContext = React.createContext(null);
@ -21,6 +23,7 @@ function App() {
const keys = useRef([]);
const keysPressed = useRef([]);
const [messages, setMessages] = useState();
const apiToken = useRef();
const playerKeyDown = (event) => {
if (!keys.current.includes(event.code)) {
keysPressed.current.push(event.code);
@ -39,23 +42,36 @@ function App() {
};
}, []);
useEffect(() => {
const token = window.localStorage.getItem("token");
if (token == null) {
fetch('/api/gen_token').then((res) => res.json()).then((data) => {
window.localStorage.setItem("token", data.token);
apiToken.current = data.token;
});
} else {
console.log("setting token");
apiToken.current = token;
}
fetch('/api/message').then((res) => res.json()).then((data) => {
console.log(data);
setMessages(data);
});
}, []);
},[]);
useGLTF.preload('../assets/terrain.glb');
useGLTF.preload('../assets/message-bubble.glb');
return (
<>
<div className='dot' />
<p className='unselectable hint'>
E - read<br/>
LMB - write
E - read<br />
LMB - write<br />
X - delete
</p>
<AppContext.Provider value={{ keys: keys, keysPressed: keysPressed, messages: messages, setMessages: setMessages }}>
<AppContext.Provider value={{ apiToken: apiToken, keys: keys, keysPressed: keysPressed, messages: messages, setMessages: setMessages }}>
<Canvas shadows>
<KeyPressedClearer />
<Suspense>
<fog color={everforest.bg0} attach="fog" far={500}/>
<fog color={everforest.bg0} attach="fog" far={500} />
<Sun />
<Notes />
<Physics timeStep={1 / 60}>

View File

@ -7,12 +7,12 @@ import { AppContext } from '../App';
import Color from 'color';
import { Vector3 } from 'three';
export default function ChatBubble({ position, text }) {
export default function ChatBubble({ id, position, text }) {
const meshRef = useRef();
const [hovered, setHovered] = useState(false);
const [activatable, setActivatable] = useState(false);
const [active, setActive] = useState(false);
const { keysPressed } = useContext(AppContext);
const { keysPressed, setMessages, apiToken } = useContext(AppContext);
useFrame((state, delta) => {
if (active) {
meshRef.current.rotation.y += delta;
@ -22,7 +22,7 @@ export default function ChatBubble({ position, text }) {
setActive(false);
}
}
if(hovered) {
if (hovered) {
let cameraPos = new Vector3();
state.camera.getWorldPosition(cameraPos);
setActivatable(cameraPos.distanceToSquared(meshRef.current.position) < 25);
@ -32,6 +32,47 @@ export default function ChatBubble({ position, text }) {
if (keysPressed.current.includes('KeyE') && activatable) {
setActive(!active);
}
if (keysPressed.current.includes('KeyX') && activatable) {
if (confirm("are you sure you want to delete this message?")) {
let data = new FormData();
data.append("token", apiToken.current);
data.append("message_id", id);
fetch('/api/remove_message', {
method: 'DELETE',
body: data,
}).then((res) => {
if (res.status == 204) {
fetch('/api/message').then((res) => res.json()).then((data) => {
setMessages(data);
});
} else if (res.status == 401) {
alert('you are not allowed to delete this')
}
});
}
}
if(keysPressed.current.includes('KeyR') && activatable) {
const newMesssage = prompt();
if(newMesssage) {
let data = new FormData();
data.append("token", apiToken.current);
data.append("message_id", id);
data.append("message", newMesssage);
fetch('/api/edit_message', {
method: 'PUT',
body: data,
}).then((res) => {
if (res.status == 204) {
fetch('/api/message').then((res) => res.json()).then((data) => {
setMessages(data);
});
} else if (res.status == 401) {
alert('you are not allowed to delete this')
}
});
}
}
}, -2);
const { nodes } = useGLTF('../assets/message-bubble.glb');
@ -47,8 +88,8 @@ export default function ChatBubble({ position, text }) {
geometry={nodes.Curve.geometry}
onPointerOver={(_) => setHovered(true)}
onPointerOut={(_) => setHovered(false)}>
<meshStandardMaterial color={color.toString()}/>
{active && <Html center position={[0, .5, 0]} className='unselectable textPopup'><span>{text}</span></Html>}
<meshStandardMaterial color={color.toString()} />
{active && <Html center unselectable='on' position={[0, .5, 0]} className='textPopup'><span>{text}</span></Html>}
</mesh>
)
}

View File

@ -5,8 +5,8 @@ import { AppContext } from "../App";
export default function Notes() {
const { messages } = useContext(AppContext);
return (<>
{messages.map((chatbubble, index) =>
<ChatBubble key={index} position={chatbubble.position} text={chatbubble.message}/>
)}
{messages.map((chatbubble) => {
return <ChatBubble key={chatbubble._id.$oid} id={chatbubble._id.$oid} position={chatbubble.position} text={chatbubble.message}/>;
})}
</>);
}

View File

@ -11,7 +11,7 @@ const _movespeed = 3.0;
export default function Player() {
const controlsRef = useRef();
const { keys, setMessages } = useContext(AppContext);
const { keys, setMessages, apiToken } = useContext(AppContext);
const rapier = useRapier();
const controller = useRef();
const collider = useRef();
@ -31,7 +31,19 @@ export default function Player() {
if (intersect && intersect.object.name === 'ground' && intersect.distance < 10 && controlsRef.current.isLocked) {
const message = prompt();
if (message) {
setMessages(messages => [...messages, { position: intersect.point, message: message}]);
let data = new FormData();
data.append("position", JSON.stringify(intersect.point.toArray()));
data.append("message", message);
data.append("token", apiToken.current);
fetch('/api/new_message', {
method: "POST",
body: data,
}).then(() => {
fetch('/api/message').then((res) => res.json()).then((data) => {
console.log(data);
setMessages(data);
});
});
}
controlsRef.current.lock();
}
@ -47,7 +59,7 @@ export default function Player() {
c.setApplyImpulsesToDynamicBodies(true);
c.setCharacterMass(0.2);
controller.current = c;
}, [rapier]);
}, []);
useFrame((_, delta) => {
const fov_axis = +(keys.current.includes('Minus')) - +(keys.current.includes('Equal'));
@ -95,7 +107,7 @@ export default function Player() {
return (
<RigidBody type="kinematicPosition" colliders={false} ref={rigidbody} position={[0, 2, 0]}>
<PerspectiveCamera makeDefault position={[0, .9, 0]} ref={camera} fov={80}/>
<PerspectiveCamera makeDefault position={[0, .9, 0]} ref={camera} fov={80} />
<PointerLockControls ref={controlsRef} />
<CapsuleCollider ref={collider} args={[1, 0.5]} />
</RigidBody>

View File

@ -1,7 +1,6 @@
import { Matrix4 } from 'three';
import * as everforest from '../_everforest.module.scss'
export default function Sun() {
export default function Sun({ref}) {
return (<>
<directionalLight
position={[1000, 1000, 1000]}
@ -10,8 +9,8 @@ export default function Sun() {
color={everforest.red}
/>
<ambientLight intensity={Math.PI / 4} />
<mesh position={[1000,1000,1000]}>
<icosahedronGeometry args={[100,100]}/>
<mesh position={[1000,1000,1000]} ref={ref}>
<icosahedronGeometry args={[50,50]}/>
<meshStandardMaterial color={everforest.red} emissive={everforest.red} emissiveIntensity={1} fog={false}/>
</mesh>
</>);

View File

@ -108,14 +108,14 @@ pre table {
}
.textPopup {
/* text-align: center; */
text-align: center;
pointer-events: none;
background-color: everforest.$bg1;
color: everforest.$fg;
border-radius: 5px;
font-size: 15px;
width: 200px;
max-width: 50vw;
/* max-width: 25vw; */
width: 15em;
padding: 5px;
}

113
yarn.lock
View File

@ -530,60 +530,14 @@
"@parcel/watcher-win32-ia32" "2.5.1"
"@parcel/watcher-win32-x64" "2.5.1"
"@react-spring/animated@~9.7.5":
version "9.7.5"
resolved "https://registry.yarnpkg.com/@react-spring/animated/-/animated-9.7.5.tgz#eb0373aaf99b879736b380c2829312dae3b05f28"
integrity sha512-Tqrwz7pIlsSDITzxoLS3n/v/YCUHQdOIKtOJf4yL6kYVSDTSmVK1LI1Q3M/uu2Sx4X3pIWF3xLUhlsA6SPNTNg==
dependencies:
"@react-spring/shared" "~9.7.5"
"@react-spring/types" "~9.7.5"
"@react-spring/core@~9.7.5":
version "9.7.5"
resolved "https://registry.yarnpkg.com/@react-spring/core/-/core-9.7.5.tgz#72159079f52c1c12813d78b52d4f17c0bf6411f7"
integrity sha512-rmEqcxRcu7dWh7MnCcMXLvrf6/SDlSokLaLTxiPlAYi11nN3B5oiCUAblO72o+9z/87j2uzxa2Inm8UbLjXA+w==
dependencies:
"@react-spring/animated" "~9.7.5"
"@react-spring/shared" "~9.7.5"
"@react-spring/types" "~9.7.5"
"@react-spring/rafz@~9.7.5":
version "9.7.5"
resolved "https://registry.yarnpkg.com/@react-spring/rafz/-/rafz-9.7.5.tgz#ee7959676e7b5d6a3813e8c17d5e50df98b95df9"
integrity sha512-5ZenDQMC48wjUzPAm1EtwQ5Ot3bLIAwwqP2w2owG5KoNdNHpEJV263nGhCeKKmuA3vG2zLLOdu3or6kuDjA6Aw==
"@react-spring/shared@~9.7.5":
version "9.7.5"
resolved "https://registry.yarnpkg.com/@react-spring/shared/-/shared-9.7.5.tgz#6d513622df6ad750bbbd4dedb4ca0a653ec92073"
integrity sha512-wdtoJrhUeeyD/PP/zo+np2s1Z820Ohr/BbuVYv+3dVLW7WctoiN7std8rISoYoHpUXtbkpesSKuPIw/6U1w1Pw==
dependencies:
"@react-spring/rafz" "~9.7.5"
"@react-spring/types" "~9.7.5"
"@react-spring/three@~9.7.5":
version "9.7.5"
resolved "https://registry.yarnpkg.com/@react-spring/three/-/three-9.7.5.tgz#46bcd22354afa873a809f1c6d7e07b59600b4d08"
integrity sha512-RxIsCoQfUqOS3POmhVHa1wdWS0wyHAUway73uRLp3GAL5U2iYVNdnzQsep6M2NZ994BlW8TcKuMtQHUqOsy6WA==
dependencies:
"@react-spring/animated" "~9.7.5"
"@react-spring/core" "~9.7.5"
"@react-spring/shared" "~9.7.5"
"@react-spring/types" "~9.7.5"
"@react-spring/types@~9.7.5":
version "9.7.5"
resolved "https://registry.yarnpkg.com/@react-spring/types/-/types-9.7.5.tgz#e5dd180f3ed985b44fd2cd2f32aa9203752ef3e8"
integrity sha512-HVj7LrZ4ReHWBimBvu2SKND3cDVUPWKLqRTmWe/fNY6o1owGOX0cAHbdPDTMelgBlVbrTKrre6lFkhqGZErK/g==
"@react-three/drei@^9.121.4":
version "9.121.4"
resolved "https://registry.yarnpkg.com/@react-three/drei/-/drei-9.121.4.tgz#3d723f2af58fd29e642d25093b2bcee692894f30"
integrity sha512-cxP1ulffISS0ICHJeZjBH7cbfNGKM4kJi6dzV6DK2Ld1jUsR1ejAsKsA+4A3TAO7ubxd4C0NhAe1g8RXpJglPA==
"@react-three/drei@10.0.0-rc.2":
version "10.0.0-rc.2"
resolved "https://registry.yarnpkg.com/@react-three/drei/-/drei-10.0.0-rc.2.tgz#a524b9eb2224302d2d42e1a9e4e45ce5dd2b49ea"
integrity sha512-fsyaH/UaO/1kvpVTXds0lioqhY8qdFJbith46jRUi/wuKMfBWnOio3LlaUpEfd7uDWnb8clh7gQjBefBB50coA==
dependencies:
"@babel/runtime" "^7.26.0"
"@mediapipe/tasks-vision" "0.10.17"
"@monogrid/gainmap-js" "^3.0.6"
"@react-spring/three" "~9.7.5"
"@use-gesture/react" "^10.3.1"
camera-controls "^2.9.0"
cross-env "^7.0.3"
@ -592,14 +546,14 @@
hls.js "^1.5.17"
maath "^0.10.8"
meshline "^3.3.1"
react-composer "^5.0.3"
stats-gl "^2.2.8"
stats.js "^0.17.0"
suspend-react "^0.1.3"
three-mesh-bvh "^0.7.8"
three-mesh-bvh "^0.8.3"
three-stdlib "^2.35.6"
troika-three-text "^0.52.0"
tunnel-rat "^0.1.2"
use-sync-external-store "^1.4.0"
utility-types "^3.11.0"
zustand "^5.0.1"
@ -620,6 +574,15 @@
suspend-react "^0.1.3"
zustand "^4.1.2"
"@react-three/postprocessing@3.0.0-rc.2":
version "3.0.0-rc.2"
resolved "https://registry.yarnpkg.com/@react-three/postprocessing/-/postprocessing-3.0.0-rc.2.tgz#960d5c79372de1ecbe40cc2d79196465f227afb5"
integrity sha512-oMyijD2RXulOrXYxIZSZAQyYcgSLgE9A4LwGcbNE1Kx1D9cxs1sGN73p+jAGaiZRQclsokScHawfqJMZ/B7eLA==
dependencies:
maath "^0.6.0"
n8ao "^1.9.4"
postprocessing "^6.36.6"
"@react-three/rapier@^1.5.0":
version "1.5.0"
resolved "https://registry.yarnpkg.com/@react-three/rapier/-/rapier-1.5.0.tgz#f6af5b1dd6895a73df0d09e15576eed1f0398379"
@ -1230,9 +1193,9 @@ dunder-proto@^1.0.0, dunder-proto@^1.0.1:
gopd "^1.2.0"
electron-to-chromium@^1.5.73:
version "1.5.96"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.96.tgz#afa3bf1608c897a7c7e33f22d4be1596dd5a4f3e"
integrity sha512-8AJUW6dh75Fm/ny8+kZKJzI1pgoE8bKLZlzDU2W1ENd+DXKJrx7I7l9hb8UWR4ojlnb5OlixMt00QWiYJoVw1w==
version "1.5.97"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.97.tgz#5c4a4744c79e7c85b187adf5160264ac130c776f"
integrity sha512-HKLtaH02augM7ZOdYRuO19rWDeY+QSJ1VxnXFa/XDFLf07HvM90pALIJFgrO+UVaajI3+aJMMpojoUTLZyQ7JQ==
es-abstract@^1.17.5, es-abstract@^1.23.2, es-abstract@^1.23.3, es-abstract@^1.23.5, es-abstract@^1.23.6, es-abstract@^1.23.9:
version "1.23.9"
@ -2105,6 +2068,11 @@ maath@^0.10.8:
resolved "https://registry.yarnpkg.com/maath/-/maath-0.10.8.tgz#cf647544430141bf6982da6e878abb6c4b804e24"
integrity sha512-tRvbDF0Pgqz+9XUa4jjfgAQ8/aPKmQdWXilFu2tMy4GWj4NOsx99HlULO4IeREfbO3a0sA145DZYyvXPkybm0g==
maath@^0.6.0:
version "0.6.0"
resolved "https://registry.yarnpkg.com/maath/-/maath-0.6.0.tgz#7841d0fb95bbb37d19b08b7c5458ef70190950d2"
integrity sha512-dSb2xQuP7vDnaYqfoKzlApeRcR2xtN8/f7WV/TMAkBC8552TwTLtOO0JTcSygkYMjNDPoo6V01jTw/aPi4JrMw==
math-intrinsics@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz#a0dd74be81e2aa5c2f27e65ce283605ee4e2b7f9"
@ -2140,6 +2108,11 @@ ms@^2.1.3:
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2"
integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==
n8ao@^1.9.4:
version "1.9.4"
resolved "https://registry.yarnpkg.com/n8ao/-/n8ao-1.9.4.tgz#be222531fddcb5099614be452fc492db98a2947d"
integrity sha512-gbpAorQecZn2oGK/rheHxPTNwOxVsEC6216+Jr9tXHUk9L5VCE2q/uxsSrQpfNkZDoCmQHf7oSg3SYFWCAt0wg==
nanoid@^3.3.8:
version "3.3.8"
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.8.tgz#b1be3030bee36aaff18bacb375e5cce521684baf"
@ -2289,14 +2262,19 @@ possible-typed-array-names@^1.0.0:
integrity sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==
postcss@^8.5.1:
version "8.5.1"
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.5.1.tgz#e2272a1f8a807fafa413218245630b5db10a3214"
integrity sha512-6oz2beyjc5VMn/KV1pPw8fliQkhBXrVn1Z3TVyqZxU8kZpzEKhBdmCFqI6ZbmGtamQvQGuU1sgPTk8ZrXDD7jQ==
version "8.5.2"
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.5.2.tgz#e7b99cb9d2ec3e8dd424002e7c16517cb2b846bd"
integrity sha512-MjOadfU3Ys9KYoX0AdkBlFEF1Vx37uCCeN4ZHnmwm9FfpbsGWMZeBLMmmpY+6Ocqod7mkdZ0DT31OlbsFrLlkA==
dependencies:
nanoid "^3.3.8"
picocolors "^1.1.1"
source-map-js "^1.2.1"
postprocessing@^6.36.6:
version "6.36.7"
resolved "https://registry.yarnpkg.com/postprocessing/-/postprocessing-6.36.7.tgz#43d968b900f1109d718e6a53cfb90976220e1a1f"
integrity sha512-X6B3xt9dy4Osv19kqnVGqV01I2Tm7VwV6rLegRIZkZJPH3ozKLypHSBK1xKx7P/Ols++OkXe6L8dBGTaDUL5aw==
potpack@^1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/potpack/-/potpack-1.0.2.tgz#23b99e64eb74f5741ffe7656b5b5c4ddce8dfc14"
@ -2315,7 +2293,7 @@ promise-worker-transferable@^1.0.4:
is-promise "^2.1.0"
lie "^3.0.2"
prop-types@^15.6.0, prop-types@^15.8.1:
prop-types@^15.8.1:
version "15.8.1"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5"
integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==
@ -2329,13 +2307,6 @@ punycode@^2.1.0:
resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5"
integrity sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==
react-composer@^5.0.3:
version "5.0.3"
resolved "https://registry.yarnpkg.com/react-composer/-/react-composer-5.0.3.tgz#7beb9513da5e8687f4f434ea1333ef36a4f3091b"
integrity sha512-1uWd07EME6XZvMfapwZmc7NgCZqDemcvicRi3wMJzXsQLvZ3L7fTHVyPy1bZdnWXM4iPjYuNE+uJ41MLKeTtnA==
dependencies:
prop-types "^15.6.0"
react-dom@^19.0.0:
version "19.0.0"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-19.0.0.tgz#43446f1f01c65a4cd7f7588083e686a6726cfb57"
@ -2691,10 +2662,10 @@ suspend-react@^0.1.3:
resolved "https://registry.yarnpkg.com/suspend-react/-/suspend-react-0.1.3.tgz#a52f49d21cfae9a2fb70bd0c68413d3f9d90768e"
integrity sha512-aqldKgX9aZqpoDp3e8/BZ8Dm7x1pJl+qI3ZKxDN0i/IQTWUwBx/ManmlVJ3wowqbno6c2bmiIfs+Um6LbsjJyQ==
three-mesh-bvh@^0.7.8:
version "0.7.8"
resolved "https://registry.yarnpkg.com/three-mesh-bvh/-/three-mesh-bvh-0.7.8.tgz#83156e4d3945734db076de1c94809331481b3fdd"
integrity sha512-BGEZTOIC14U0XIRw3tO4jY7IjP7n7v24nv9JXS1CyeVRWOCkcOMhRnmENUjuV39gktAw4Ofhr0OvIAiTspQrrw==
three-mesh-bvh@^0.8.3:
version "0.8.3"
resolved "https://registry.yarnpkg.com/three-mesh-bvh/-/three-mesh-bvh-0.8.3.tgz#c5e72472e7f062ff79084157a25c122d73184163"
integrity sha512-4G5lBaF+g2auKX3P0yqx+MJC6oVt6sB5k+CchS6Ob0qvH0YIhuUk1eYr7ktsIpY+albCqE80/FVQGV190PmiAg==
three-stdlib@^2.29.4, three-stdlib@^2.35.6:
version "2.35.13"
@ -2829,7 +2800,7 @@ uri-js@^4.2.2:
dependencies:
punycode "^2.1.0"
use-sync-external-store@^1.2.2:
use-sync-external-store@^1.2.2, use-sync-external-store@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.4.0.tgz#adbc795d8eeb47029963016cefdf89dc799fcebc"
integrity sha512-9WXSPC5fMv61vaupRkCKCxsPxBocVnwakBEkMIHHpkTTg6icbJtg6jzgtLDm4bl3cSHAca52rYWih0k4K3PfHw==