Skip to content

Commit

Permalink
Merge pull request mermaid-js#311 from mermaid-js/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
sidharthv96 authored Sep 3, 2021
2 parents dcaa313 + c0215f0 commit c3ed8ae
Show file tree
Hide file tree
Showing 7 changed files with 701 additions and 254 deletions.
2 changes: 1 addition & 1 deletion cypress/snapshots.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
"1": "{\"code\":\"graph TD\\n A[Party] -->|Get money| B(Go shopping!!)\\n \",\"mermaid\":\"{\\n \\\"theme\\\": \\\"forest\\\",\\n \\\"test\\\": \\\"hello world\\\"\\n}\",\"updateEditor\":false,\"autoSync\":true,\"updateDiagram\":true,\"loader\":{\"type\":\"files\",\"config\":{\"codeURL\":\"https://gist.githubusercontent.com/sidharthv96/6268a23e673a533dcb198f241fd7012a/raw/4eb03887e6a41397e80bdcdbf94017c498f8f1e2/code.mmd\",\"configURL\":\"https://gist.githubusercontent.com/sidharthv96/6268a23e673a533dcb198f241fd7012a/raw/4eb03887e6a41397e80bdcdbf94017c498f8f1e2/config.json\"}}}"
}
},
"__version": "8.2.0",
"__version": "8.3.0",
"Auto sync tests": {
"should dim diagram when code is edited": {
"1": "{\"code\":\"graph TD\\n A[Christmas] -->|Get money| B(Go shopping)\\n B --> C{Let me think}\\n C -->|One| D[Laptop]\\n C -->|Two| E[iPhone]\\n C -->|Three| F[fa:fa-car Car]\\n C --> Test\",\"mermaid\":\"{\\n \\\"theme\\\": \\\"default\\\"\\n}\",\"updateEditor\":false,\"autoSync\":false,\"updateDiagram\":false}"
Expand Down
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
},
"devDependencies": {
"@cypress/snapshot": "^2.1.7",
"@sveltejs/adapter-static": "1.0.0-next.16",
"@sveltejs/adapter-static": "1.0.0-next.17",
"@sveltejs/kit": "1.0.0-next.147",
"@types/mermaid": "^8.2.7",
"@typescript-eslint/eslint-plugin": "^4.29.2",
"@typescript-eslint/parser": "^4.29.2",
"autoprefixer": "^10.3.1",
"@typescript-eslint/eslint-plugin": "^4.30.0",
"@typescript-eslint/parser": "^4.30.0",
"autoprefixer": "^10.3.3",
"chai": "^4.3.4",
"cssnano": "^5.0.8",
"cypress": "8.3.0",
"cypress": "8.3.1",
"cypress-localstorage-commands": "^1.5.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.1.0",
Expand All @@ -32,24 +32,24 @@
"eslint-plugin-postcss-modules": "^1.2.1",
"eslint-plugin-svelte3": "^3.2.0",
"eslint-plugin-tailwindcss": "^1.14.3",
"husky": "^7.0.1",
"husky": "^7.0.2",
"lint-staged": "^11.1.2",
"mocha": "^9.1.0",
"mocha": "^9.1.1",
"postcss": "^8.3.6",
"postcss-load-config": "^3.1.0",
"prettier": "~2.3.2",
"prettier-plugin-svelte": "^2.3.1",
"svelte": "^3.42.2",
"svelte-preprocess": "^4.7.4",
"tailwindcss": "^2.2.7",
"prettier-plugin-svelte": "^2.4.0",
"svelte": "^3.42.4",
"svelte-preprocess": "^4.8.0",
"tailwindcss": "^2.2.9",
"tslib": "^2.3.1",
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"type": "module",
"dependencies": {
"@analytics/google-analytics": "^0.5.3",
"@macfja/svelte-persistent-store": "^1.2.0",
"analytics": "^0.7.13",
"analytics": "^0.7.14",
"js-base64": "^3.6.1",
"mermaid": "^8.11.4",
"moment": "^2.29.1",
Expand Down
7 changes: 3 additions & 4 deletions src/lib/components/editor/editor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
export let editorOptions: monaco.editor.IStandaloneEditorConstructionOptions = {
value: text,
language: language,
scrollBeyondLastLine: false,
minimap: {
enabled: false
},
theme: 'myCoolTheme',
theme: 'mermaidTheme',
overviewRulerLanes: 0
};
export let errorMarkers: monaco.editor.IMarkerData[] = [];
Expand All @@ -39,7 +38,7 @@
let i = 0;
while (i++ < 10) {
try {
//@ts-ignore : This is a hack to handle a svelte-kit error when importing monaco.
// @ts-ignore : This is a hack to handle a svelte-kit error when importing monaco.
Monaco = monaco;
return;
} catch {
Expand All @@ -50,7 +49,7 @@
};
onMount(async () => {
try {
//@ts-ignore : This is a hack to handle a svelte-kit error when importing monaco.
// @ts-ignore : This is a hack to handle a svelte-kit error when importing monaco.
Monaco = monaco;
} catch {
await loadMonaco(); // Fix https://github.com/mermaid-js/mermaid-live-editor/issues/175
Expand Down
Loading

0 comments on commit c3ed8ae

Please sign in to comment.