Compare commits

...

1 Commits

Author SHA1 Message Date
dwelle a2ec2889ba fix: backport mermaid xss fix to 0.18.1 2026-04-20 22:30:38 +02:00
5 changed files with 555 additions and 382 deletions
+1
View File
@@ -84,6 +84,7 @@
"clean-install": "yarn rm:node_modules && yarn install"
},
"resolutions": {
"@types/d3-dispatch": "3.0.6",
"strip-ansi": "6.0.1"
}
}
+1 -1
View File
@@ -3111,7 +3111,7 @@ class App extends React.Component<AppProps, AppState> {
const api = await import("@excalidraw/mermaid-to-excalidraw");
try {
const { elements: skeletonElements, files } =
const { elements: skeletonElements, files = {} } =
await api.parseMermaidToExcalidraw(data.text);
const elements = convertToExcalidrawElements(skeletonElements, {
@@ -80,7 +80,7 @@ export const convertMermaidToExcalidraw = async ({
mermaidDefinition.replace(/"/g, "'"),
);
}
const { elements, files } = ret;
const { elements, files = {} } = ret;
setError(null);
data.current = {
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@excalidraw/excalidraw",
"version": "0.18.0",
"version": "0.18.1",
"type": "module",
"types": "./dist/types/excalidraw/index.d.ts",
"main": "./dist/prod/index.js",
@@ -61,7 +61,7 @@
"dependencies": {
"@braintree/sanitize-url": "6.0.2",
"@excalidraw/laser-pointer": "1.3.1",
"@excalidraw/mermaid-to-excalidraw": "1.1.2",
"@excalidraw/mermaid-to-excalidraw": "2.2.2",
"@excalidraw/random-username": "1.1.0",
"@radix-ui/react-popover": "1.1.6",
"@radix-ui/react-tabs": "1.0.2",
+550 -378
View File
File diff suppressed because it is too large Load Diff