diff --git a/package-lock.json b/package-lock.json index ef124d965..5b0603651 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "mavon-editor", - "version": "2.4.3", + "version": "2.6.17", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -420,9 +420,9 @@ "optional": true }, "auto-textarea": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/auto-textarea/-/auto-textarea-1.3.8.tgz", - "integrity": "sha512-7sUqIXIuh5RgQiHyAJvBpLYbicv73JndK2GIWSJBdrPxe/2LAgihxwmQbvs99zS+d9VVJYNi6XVUH1qTF1IJag==", + "version": "1.4.0", + "resolved": "https://npm.corp.kuaishou.com/auto-textarea/-/auto-textarea-1.4.0.tgz", + "integrity": "sha1-sIThosw7JZ/v0kZhRoeg+jtZxOY=", "dev": true, "requires": { "stylus": "0.54.5", @@ -430,17 +430,87 @@ } }, "autoprefixer": { - "version": "6.7.7", - "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-6.7.7.tgz", - "integrity": "sha1-Hb0cg1ZY41zj+ZhAmdsAWFx4IBQ=", + "version": "8.6.5", + "resolved": "https://npm.corp.kuaishou.com/autoprefixer/-/autoprefixer-8.6.5.tgz", + "integrity": "sha1-ND89GT7VaLMgjgARehuW62kdTuk=", "dev": true, "requires": { - "browserslist": "1.7.7", - "caniuse-db": "1.0.30000697", + "browserslist": "3.2.8", + "caniuse-lite": "1.0.30000921", "normalize-range": "0.1.2", "num2fraction": "1.2.2", - "postcss": "5.2.17", + "postcss": "6.0.23", "postcss-value-parser": "3.3.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://npm.corp.kuaishou.com/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha1-QfuyAkPlCxK+DwS43tvwdSDOhB0=", + "dev": true, + "requires": { + "color-convert": "1.9.0" + } + }, + "browserslist": { + "version": "3.2.8", + "resolved": "https://npm.corp.kuaishou.com/browserslist/-/browserslist-3.2.8.tgz", + "integrity": "sha1-sABTYdZHHw9ZUnl6dvyYXx+Xj8Y=", + "dev": true, + "requires": { + "caniuse-lite": "1.0.30000921", + "electron-to-chromium": "1.3.95" + } + }, + "chalk": { + "version": "2.4.1", + "resolved": "https://npm.corp.kuaishou.com/chalk/-/chalk-2.4.1.tgz", + "integrity": "sha1-GMSasWoDe26wFSzIPjRxM4IVtm4=", + "dev": true, + "requires": { + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.5.0" + } + }, + "electron-to-chromium": { + "version": "1.3.95", + "resolved": "https://npm.corp.kuaishou.com/electron-to-chromium/-/electron-to-chromium-1.3.95.tgz", + "integrity": "sha1-efrEOIE8p/PbGCpSXCq0MpNPZIQ=", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://npm.corp.kuaishou.com/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "postcss": { + "version": "6.0.23", + "resolved": "https://npm.corp.kuaishou.com/postcss/-/postcss-6.0.23.tgz", + "integrity": "sha1-YcgswyisYOZ3ZF+XkFTrmLwOMyQ=", + "dev": true, + "requires": { + "chalk": "2.4.1", + "source-map": "0.6.1", + "supports-color": "5.5.0" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://npm.corp.kuaishou.com/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://npm.corp.kuaishou.com/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha1-4uaaRKyHcveKHsCzW2id9lMO/I8=", + "dev": true, + "requires": { + "has-flag": "3.0.0" + } + } } }, "aws-sign2": { @@ -1627,6 +1697,12 @@ "integrity": "sha1-IM5qnO7vTvShXcjoDy6PuQSejXc=", "dev": true }, + "caniuse-lite": { + "version": "1.0.30000921", + "resolved": "https://npm.corp.kuaishou.com/caniuse-lite/-/caniuse-lite-1.0.30000921.tgz", + "integrity": "sha1-emB8FiNESyI1HYNOCTrt2jxC++g=", + "dev": true + }, "caseless": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", @@ -2314,7 +2390,6 @@ "integrity": "sha1-Tzj2zqK5sX+gFJDyPx3GjqZcHDg=", "dev": true, "requires": { - "autoprefixer": "6.7.7", "decamelize": "1.2.0", "defined": "1.0.0", "has": "1.0.1", @@ -4725,12 +4800,20 @@ } }, "katex": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/katex/-/katex-0.6.0.tgz", - "integrity": "sha1-EkGOCRIcBckgQbazuftrqyE8tvM=", + "version": "0.9.0", + "resolved": "https://npm.corp.kuaishou.com/katex/-/katex-0.9.0.tgz", + "integrity": "sha1-JqfQgsIdU3JUItLXHamy2EVfvUo=", "dev": true, "requires": { - "match-at": "0.1.0" + "match-at": "0.1.1" + }, + "dependencies": { + "match-at": { + "version": "0.1.1", + "resolved": "https://npm.corp.kuaishou.com/match-at/-/match-at-0.1.1.tgz", + "integrity": "sha1-JdBA0pF3dwTV5lVru3kjDsLeBUA=", + "dev": true + } } }, "keycode": { @@ -5025,6 +5108,12 @@ "integrity": "sha1-Q18jFvW15o4UUM+iJC8rjVmtx18=", "dev": true }, + "markdown-it-highlightjs-external": { + "version": "1.0.1", + "resolved": "https://npm.corp.kuaishou.com/markdown-it-highlightjs-external/-/markdown-it-highlightjs-external-1.0.1.tgz", + "integrity": "sha1-hZX9SwIH7EKckzQfmWY3+jHaLVM=", + "dev": true + }, "markdown-it-images-preview": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/markdown-it-images-preview/-/markdown-it-images-preview-1.0.1.tgz", @@ -5037,14 +5126,11 @@ "integrity": "sha1-papqMPHi9x6Ul1Z8/f9A8f3mdIM=", "dev": true }, - "markdown-it-katex": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/markdown-it-katex/-/markdown-it-katex-2.0.3.tgz", - "integrity": "sha1-17hqGuoLnWSW+rTnkZoY/e9YnDk=", - "dev": true, - "requires": { - "katex": "0.6.0" - } + "markdown-it-katex-external": { + "version": "1.0.0", + "resolved": "https://npm.corp.kuaishou.com/markdown-it-katex-external/-/markdown-it-katex-external-1.0.0.tgz", + "integrity": "sha1-eNF4bZTfhlDgvqef+8Cx8D/XxgY=", + "dev": true }, "markdown-it-mark": { "version": "2.0.0", @@ -5064,10 +5150,16 @@ "integrity": "sha1-y5yf+RpSVawI8/09YyhuFd8KH8M=", "dev": true }, - "match-at": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/match-at/-/match-at-0.1.0.tgz", - "integrity": "sha1-9WHncJ/5oQW4XMYsa47nwVvyTzE=", + "markdown-it-task-lists": { + "version": "2.1.1", + "resolved": "https://npm.corp.kuaishou.com/markdown-it-task-lists/-/markdown-it-task-lists-2.1.1.tgz", + "integrity": "sha1-9o9NKsK61aLDc7qTCBoaaEhBcIg=", + "dev": true + }, + "markdown-it-toc": { + "version": "1.1.0", + "resolved": "https://npm.corp.kuaishou.com/markdown-it-toc/-/markdown-it-toc-1.1.0.tgz", + "integrity": "sha1-bRiYWOMrPetP860nE/qSdDnJV+A=", "dev": true }, "math-expression-evaluator": { diff --git a/src/components/md-toolbar-left.vue b/src/components/md-toolbar-left.vue index d118be18b..4f537011a 100644 --- a/src/components/md-toolbar-left.vue +++ b/src/components/md-toolbar-left.vue @@ -214,6 +214,7 @@ }, $imgAdd($e) { this.$imgFilesAdd($e.target.files); + $e.target.value = ''; // 初始化 }, $imgDel(pos) { this.$emit('imgDel', this.img_file[pos]);