Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a2ec2889ba |
@@ -84,6 +84,7 @@
|
|||||||
"clean-install": "yarn rm:node_modules && yarn install"
|
"clean-install": "yarn rm:node_modules && yarn install"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
|
"@types/d3-dispatch": "3.0.6",
|
||||||
"strip-ansi": "6.0.1"
|
"strip-ansi": "6.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3111,7 +3111,7 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
const api = await import("@excalidraw/mermaid-to-excalidraw");
|
const api = await import("@excalidraw/mermaid-to-excalidraw");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const { elements: skeletonElements, files } =
|
const { elements: skeletonElements, files = {} } =
|
||||||
await api.parseMermaidToExcalidraw(data.text);
|
await api.parseMermaidToExcalidraw(data.text);
|
||||||
|
|
||||||
const elements = convertToExcalidrawElements(skeletonElements, {
|
const elements = convertToExcalidrawElements(skeletonElements, {
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ export const convertMermaidToExcalidraw = async ({
|
|||||||
mermaidDefinition.replace(/"/g, "'"),
|
mermaidDefinition.replace(/"/g, "'"),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
const { elements, files } = ret;
|
const { elements, files = {} } = ret;
|
||||||
setError(null);
|
setError(null);
|
||||||
|
|
||||||
data.current = {
|
data.current = {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@excalidraw/excalidraw",
|
"name": "@excalidraw/excalidraw",
|
||||||
"version": "0.18.0",
|
"version": "0.18.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"types": "./dist/types/excalidraw/index.d.ts",
|
"types": "./dist/types/excalidraw/index.d.ts",
|
||||||
"main": "./dist/prod/index.js",
|
"main": "./dist/prod/index.js",
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@braintree/sanitize-url": "6.0.2",
|
"@braintree/sanitize-url": "6.0.2",
|
||||||
"@excalidraw/laser-pointer": "1.3.1",
|
"@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",
|
"@excalidraw/random-username": "1.1.0",
|
||||||
"@radix-ui/react-popover": "1.1.6",
|
"@radix-ui/react-popover": "1.1.6",
|
||||||
"@radix-ui/react-tabs": "1.0.2",
|
"@radix-ui/react-tabs": "1.0.2",
|
||||||
|
|||||||
Reference in New Issue
Block a user