From ff0a14f9d8297eea8753efb8d3239290a858f6de Mon Sep 17 00:00:00 2001
From: Shinji-Li <1349021570@qq.com>
Date: Wed, 8 May 2024 16:22:43 +0800
Subject: [PATCH] =?UTF-8?q?:pencil2:=20fix:=E4=BF=AE=E5=A4=8D=E4=B8=80?=
=?UTF-8?q?=E4=B8=AA=20markdown=20=E7=9A=84types=20=E9=94=99=E8=AF=AF=20(#?=
=?UTF-8?q?183)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* :pencil2: fix: fixed types of markdown
* :camera_flash: fix: update snapshot
---
package.json | 62 +++++++++++++-------------
src/Markdown/index.tsx | 2 +-
tests/__snapshots__/demo.test.tsx.snap | 8 ++--
3 files changed, 36 insertions(+), 36 deletions(-)
diff --git a/package.json b/package.json
index 8f282e4e..d3c2eca4 100644
--- a/package.json
+++ b/package.json
@@ -59,20 +59,20 @@
]
},
"dependencies": {
- "@ant-design/icons": "^5.2.6",
- "@babel/runtime": "^7.23.8",
+ "@ant-design/icons": "^5.3.7",
+ "@babel/runtime": "^7.24.5",
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/modifiers": "^6.0.1",
"@dnd-kit/sortable": "^7.0.2",
"@dnd-kit/utilities": "^3.2.2",
- "@emotion/styled": "^11.11.0",
+ "@emotion/styled": "^11.11.5",
"@floating-ui/react": "^0.24.8",
"ahooks": "3.7.8",
"classnames": "^2.5.1",
"color": "^4.2.3",
"copy-to-clipboard": "^3.3.3",
- "diff": "^5.1.0",
- "dompurify": "^3.0.11",
+ "diff": "^5.2.0",
+ "dompurify": "^3.1.2",
"fast-deep-equal": "^3.1.3",
"immer": "^9.0.21",
"lodash.flatten": "^4.4.0",
@@ -87,74 +87,74 @@
"lodash.union": "^4.6.0",
"lodash.unionby": "^4.8.0",
"lodash.uniq": "^4.5.0",
- "nanoid": "^5.0.4",
- "polished": "^4.2.2",
- "rc-util": "^5.38.1",
- "re-resizable": "^6.9.11",
+ "nanoid": "^5.0.7",
+ "polished": "^4.3.1",
+ "rc-util": "^5.39.3",
+ "re-resizable": "^6.9.16",
"react-copy-to-clipboard": "^5.1.0",
- "react-hotkeys-hook": "^4.4.4",
- "react-layout-kit": "^1.7.4",
+ "react-hotkeys-hook": "^4.5.0",
+ "react-layout-kit": "^1.9.0",
"react-markdown": "^8.0.7",
- "react-rnd": "^10.4.1",
+ "react-rnd": "^10.4.10",
"react-window": "^1.8.10",
- "reactflow": "^11.10.2",
+ "reactflow": "^11.11.3",
"rehype-katex": "^6.0.3",
"remark-gfm": "^3.0.1",
"remark-math": "^5.1.1",
"rxjs": "^7.8.1",
- "shiki": "^1.2.0",
+ "shiki": "^1.4.0",
"type-fest": "^3.13.1",
"use-merge-value": "^1.2.0",
- "yjs": "^13.6.11",
- "zustand": "^4.5.0",
+ "yjs": "^13.6.15",
+ "zustand": "^4.5.2",
"zustand-middleware-yjs": "^1.3.1",
"zustand-utils": "^1.3.2"
},
"devDependencies": {
"@ant-design/leva-panel": "^1.0.0",
"@emotion/jest": "^11.11.0",
- "@lobehub/i18n-cli": "^1.15.3",
- "@testing-library/jest-dom": "^6.3.0",
+ "@lobehub/i18n-cli": "^1.18.1",
+ "@testing-library/jest-dom": "^6.4.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^14.5.2",
"@types/color": "^3.0.6",
"@types/json-schema": "^7.0.15",
- "@types/react": "^18.2.48",
- "@types/react-dom": "^18.2.18",
+ "@types/react": "^18.3.1",
+ "@types/react-dom": "^18.3.0",
"@types/react-window": "^1.8.8",
- "@umijs/lint": "^4.1.1",
+ "@umijs/lint": "^4.1.10",
"@vitest/coverage-v8": "latest",
- "antd": "~5.12.0",
- "antd-style": "^3.6.1",
+ "antd": "~5.12.8",
+ "antd-style": "^3.6.2",
"babel-plugin-antd-style": "^1.0.4",
"commitlint": "^17.8.1",
"commitlint-config-gitmoji": "^2.3.1",
"conventional-changelog-gitmoji-config": "^1.5.2",
"dumi": "^2.2.17",
"dumi-theme-antd-style": "latest",
- "eslint": "^8.56.0",
- "father": "^4.3.8",
+ "eslint": "^8.57.0",
+ "father": "^4.4.0",
"gh-pages": "^5.0.0",
- "glob": "^10.3.10",
+ "glob": "^10.3.12",
"husky": "^8.0.3",
"jsdom": "^22.1.0",
"lint-staged": "^13.3.0",
"prettier": "^2.8.8",
"prettier-plugin-organize-imports": "^3.2.4",
- "prettier-plugin-packagejson": "^2.4.9",
- "react": "^18.2.0",
- "react-dom": "^18.2.0",
+ "prettier-plugin-packagejson": "^2.5.0",
+ "react": "^18.3.1",
+ "react-dom": "^18.3.1",
"rehype-raw": "^6.1.1",
"rxjs-spy": "^8.0.2",
"semantic-release": "^21.1.2",
"semantic-release-config-gitmoji": "^1.5.3",
"stylelint": "^15.11.0",
- "typescript": "^5.3.3",
+ "typescript": "^5.4.5",
"vitest": "latest",
"wait-on": "^6.0.1",
"y-protocols": "^1.0.6",
"y-webrtc": "^10.3.0",
- "y-websocket": "^1.5.3",
+ "y-websocket": "^1.5.4",
"zundo": "beta"
},
"peerDependencies": {
diff --git a/src/Markdown/index.tsx b/src/Markdown/index.tsx
index 20e47e84..4b97af5e 100644
--- a/src/Markdown/index.tsx
+++ b/src/Markdown/index.tsx
@@ -11,7 +11,7 @@ import { Code } from './CodeBlock';
import { useStyles } from './style';
export interface MarkdownProps {
- children: string;
+ children?: string;
/**
* @description ClassName
*/
diff --git a/tests/__snapshots__/demo.test.tsx.snap b/tests/__snapshots__/demo.test.tsx.snap
index 7da68a4c..82ff515a 100644
--- a/tests/__snapshots__/demo.test.tsx.snap
+++ b/tests/__snapshots__/demo.test.tsx.snap
@@ -9542,11 +9542,11 @@ exports[`