fix(lib): fixed profile crash on browser translation (#270)

* fixed profile crash on browser translation

* fix linting
This commit is contained in:
Anton Tranelis 2025-06-26 20:36:16 +02:00 committed by GitHub
parent 13612c56aa
commit 76d899dba2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 29 additions and 17 deletions

View File

@ -18,7 +18,7 @@
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"react-rnd": "^10.4.1", "react-rnd": "^10.4.1",
"react-router-dom": "^6.23.0", "react-router-dom": "^6.23.0",
"utopia-ui": "^3.0.105" "utopia-ui": "^3.0.110"
}, },
"devDependencies": { "devDependencies": {
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1", "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
@ -11438,9 +11438,9 @@
} }
}, },
"node_modules/utopia-ui": { "node_modules/utopia-ui": {
"version": "3.0.105", "version": "3.0.110",
"resolved": "https://registry.npmjs.org/utopia-ui/-/utopia-ui-3.0.105.tgz", "resolved": "https://registry.npmjs.org/utopia-ui/-/utopia-ui-3.0.110.tgz",
"integrity": "sha512-QihvnHeR0R9GXIZ/Mx1EBlsYBthhykM/jPdfN/5bHyyBAXGX0jm+6msEySo0jFWASxPr2G4rhImJJzeRxPyUhw==", "integrity": "sha512-uwcdXSsttQbCJc++ZnPPHoNfxpTiklJLGbFQISbJ27VbXS9yVIBD38En/cTzW1hZUOex2HkxFcKOfIOG8fkhRg==",
"license": "GPL-3.0-only", "license": "GPL-3.0-only",
"dependencies": { "dependencies": {
"@heroicons/react": "^2.0.17", "@heroicons/react": "^2.0.17",

View File

@ -20,7 +20,7 @@
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"react-rnd": "^10.4.1", "react-rnd": "^10.4.1",
"react-router-dom": "^6.23.0", "react-router-dom": "^6.23.0",
"utopia-ui": "^3.0.105" "utopia-ui": "^3.0.110"
}, },
"devDependencies": { "devDependencies": {
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1", "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",

4
lib/package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "utopia-ui", "name": "utopia-ui",
"version": "3.0.106", "version": "3.0.110",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "utopia-ui", "name": "utopia-ui",
"version": "3.0.106", "version": "3.0.110",
"license": "GPL-3.0-only", "license": "GPL-3.0-only",
"dependencies": { "dependencies": {
"@heroicons/react": "^2.0.17", "@heroicons/react": "^2.0.17",

View File

@ -1,6 +1,6 @@
{ {
"name": "utopia-ui", "name": "utopia-ui",
"version": "3.0.106", "version": "3.0.110",
"description": "Reuseable React Components to build mapping apps for real life communities and networks", "description": "Reuseable React Components to build mapping apps for real life communities and networks",
"repository": "https://github.com/utopia-os/utopia-ui", "repository": "https://github.com/utopia-os/utopia-ui",
"homepage": "https://utopia-os.org/", "homepage": "https://utopia-os.org/",

View File

@ -129,15 +129,17 @@ export const TextView = ({
} }
return ( return (
<Markdown <div translate='no'>
className={'markdown tw:text-map tw:leading-map tw:text-sm'} <Markdown
remarkPlugins={[remarkBreaks]} className={'markdown tw:text-map tw:leading-map tw:text-sm'}
components={{ remarkPlugins={[remarkBreaks]}
a: Link, components={{
}} a: Link,
> }}
{replacedText} >
</Markdown> {replacedText}
</Markdown>
</div>
) )
} }

10
package-lock.json generated Normal file
View File

@ -0,0 +1,10 @@
{
"name": "utopia-map",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "utopia-map"
}
}
}