Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
KawaiiZapic committed Sep 24, 2024
1 parent c980b3e commit bada995
Show file tree
Hide file tree
Showing 4 changed files with 4,152 additions and 3,130 deletions.
50 changes: 25 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,46 +4,46 @@
"./node_modules/mdui/web-types.zh-cn.json"
],
"dependencies": {
"@fancyapps/ui": "^5.0.35",
"@fancyapps/ui": "^5.0.36",
"@mdui/icons": "^1.0.2",
"@types/http-proxy": "^1.17.14",
"@types/jquery": "^3.5.29",
"@types/http-proxy": "^1.17.15",
"@types/jquery": "^3.5.30",
"@types/katex": "^0.16.7",
"@types/node": "^20.11.28",
"@types/nprogress": "^0.2.3",
"@types/prismjs": "^1.26.3",
"@unocss/core": "^0.58.6",
"@unocss/eslint-config": "^0.58.7",
"autoprefixer": "^10.4.19",
"browserslist-useragent-regexp": "^4.1.1",
"@types/prismjs": "^1.26.4",
"@unocss/core": "^0.62.4",
"@unocss/eslint-config": "^0.62.4",
"autoprefixer": "^10.4.20",
"browserslist-useragent-regexp": "^4.1.3",
"clipboard": "^2.0.11",
"core-js": "^3.36.1",
"core-js": "^3.38.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-prettier": "^5.2.1",
"fast-glob": "^3.3.2",
"http-proxy": "^1.18.1",
"husky": "^9.0.11",
"katex": "^0.16.10",
"husky": "^9.1.6",
"katex": "^0.16.11",
"less": "^4.2.0",
"lint-staged": "^15.2.2",
"mdui": "^2.0.6",
"mermaid": "^10.9.0",
"lint-staged": "^15.2.10",
"mdui": "^2.1.2",
"mermaid": "^11.2.1",
"nprogress": "^0.2.0",
"pjax": "^0.2.8",
"postcss": "^8.4.38",
"postcss-gap-properties": "^5.0.1",
"postcss-load-config": "^5.0.3",
"prettier": "^3.2.5",
"postcss": "^8.4.47",
"postcss-gap-properties": "^6.0.0",
"postcss-load-config": "^6.0.1",
"prettier": "^3.3.3",
"prismjs": "^1.29.0",
"shiki": "^1.3.0",
"stylelint": "^16.3.1",
"stylelint-config-standard": "^36.0.0",
"shiki": "^1.18.0",
"stylelint": "^16.9.0",
"stylelint-config-standard": "^36.0.1",
"stylelint-less": "^3.0.1",
"typescript": "^5.4.2",
"typescript-eslint": "^7.4.0",
"unocss": "^0.58.6",
"vite": "^5.1.7"
"unocss": "^0.62.4",
"vite": "^5.4.7"
},
"scripts": {
"dev": "vite",
Expand All @@ -68,7 +68,7 @@
"pnpm": {
"patchedDependencies": {
"[email protected]": "patches/[email protected]",
"mermaid@10.9.0": "patches/mermaid@10.9.0.patch"
"mermaid@11.2.1": "patches/mermaid@11.2.1.patch"
}
},
"version": "0.4.0"
Expand Down
45 changes: 0 additions & 45 deletions patches/[email protected]

This file was deleted.

45 changes: 45 additions & 0 deletions patches/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
diff --git a/dist/mermaid.core.mjs b/dist/mermaid.core.mjs
index 13603a2204ed75e59cdd3b59f1dad2a50a0ca1d3..946475ca2dc3522e669f56752b3e5cc118a6a72c 100644
--- a/dist/mermaid.core.mjs
+++ b/dist/mermaid.core.mjs
@@ -3682,8 +3682,9 @@ var render = /* @__PURE__ */ __name(async function(id25, text, svgContainingElem
const firstChild = svg.firstChild;
const diagramClassDefs = diag.renderer.getClasses?.(text, diag);
const rules = createUserStyles(config, diagramType, diagramClassDefs, idSelector);
+ const rulesDark = createUserStyles({...config2, themeVariables: theme.dark.getThemeVariables({})}, diagramType, diagramClassDefs, idSelector);
const style1 = document.createElement("style");
- style1.innerHTML = rules;
+ style1.innerHTML = rules + `@media (prefers-color-scheme: dark) {${rulesDark}}`;
svg.insertBefore(style1, firstChild);
try {
await diag.renderer.draw(text, id25, version, diag);
diff --git a/dist/mermaid.esm.mjs b/dist/mermaid.esm.mjs
index 2f09b512ef847144a4bcff16ab39853061f45eb4..bee36b4162e605eaa6a45f7506a402860111da13 100644
--- a/dist/mermaid.esm.mjs
+++ b/dist/mermaid.esm.mjs
@@ -4035,8 +4035,9 @@ var render = /* @__PURE__ */ __name(async function(id25, text, svgContainingElem
const firstChild = svg.firstChild;
const diagramClassDefs = diag.renderer.getClasses?.(text, diag);
const rules = createUserStyles(config, diagramType, diagramClassDefs, idSelector);
+ const rulesDark = createUserStyles({...config2, themeVariables: theme.dark.getThemeVariables({})}, diagramType, diagramClassDefs, idSelector);
const style1 = document.createElement("style");
- style1.innerHTML = rules;
+ style1.innerHTML = rules + `@media (prefers-color-scheme: dark) {${rulesDark}}`;
svg.insertBefore(style1, firstChild);
try {
await diag.renderer.draw(text, id25, version, diag);
diff --git a/dist/mermaid.js b/dist/mermaid.js
index 36adb8de5ea722a4c23798b47045faf08a8c7e4f..7f06dd6cfc71bb0b0cb8ac2c62fcc485b709b25e 100644
--- a/dist/mermaid.js
+++ b/dist/mermaid.js
@@ -143251,8 +143251,9 @@ ${config6.themeCSS}`;
const firstChild = svg.firstChild;
const diagramClassDefs = diag.renderer.getClasses?.(text2, diag);
const rules = createUserStyles(config6, diagramType, diagramClassDefs, idSelector);
+ const rulesDark = createUserStyles({...config2, themeVariables: theme.dark.getThemeVariables({})}, diagramType, diagramClassDefs, idSelector);
const style1 = document.createElement("style");
- style1.innerHTML = rules;
+ style1.innerHTML = rules + `@media (prefers-color-scheme: dark) {${rulesDark}}`;
svg.insertBefore(style1, firstChild);
try {
await diag.renderer.draw(text2, id27, version2, diag);
Loading

0 comments on commit bada995

Please sign in to comment.