Skip to content

Commit

Permalink
pref: upgrade the editor dependent version and add a pnpm link (#4669)
Browse files Browse the repository at this point in the history
#### What type of PR is this?

/kind improvement

#### What this PR does / why we need it:

升级编辑器版本,增加新的扩展,例如拖拽、分栏等。
移除了 `@tiptap/vue-3` 依赖包,此包已经在 `@halo-dev/richtext-editor` 中进行提供。
新增 `link:editor` 命令,可以本地引入 richtext-editor 的依赖,进行本地调试。

#### How to test it?

使用编辑器,保证编辑器功能正常无误即可。并测试编辑器新加功能。

#### Does this PR introduce a user-facing change?
```release-note
None
```
  • Loading branch information
LIlGG authored Sep 27, 2023
1 parent ce0e02a commit e119b63
Show file tree
Hide file tree
Showing 5 changed files with 268 additions and 308 deletions.
6 changes: 3 additions & 3 deletions console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"typecheck:packages": "pnpm --parallel --filter \"./packages/**\" run typecheck",
"lint:packages": "pnpm --parallel --filter \"./packages/**\" lint",
"prettier:packages": "pnpm --parallel --filter \"./packages/**\" prettier",
"test:unit:packages": "pnpm --parallel --filter \"./packages/**\" run test:unit"
"test:unit:packages": "pnpm --parallel --filter \"./packages/**\" run test:unit",
"link:editor": "pnpm link --global @halo-dev/richtext-editor"
},
"lint-staged": {
"*.{vue,js,jsx,ts,tsx,css,scss,json,yml,yaml,html}": [
Expand Down Expand Up @@ -54,10 +55,9 @@
"@halo-dev/api-client": "workspace:*",
"@halo-dev/components": "workspace:*",
"@halo-dev/console-shared": "workspace:*",
"@halo-dev/richtext-editor": "0.0.0-alpha.30",
"@halo-dev/richtext-editor": "0.0.0-alpha.32",
"@tanstack/vue-query": "^4.29.1",
"@tiptap/extension-character-count": "^2.0.4",
"@tiptap/vue-3": "^2.0.4",
"@uppy/core": "^3.4.0",
"@uppy/dashboard": "^3.5.1",
"@uppy/drag-drop": "^3.0.3",
Expand Down
2 changes: 1 addition & 1 deletion console/packages/shared/src/types/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { RouteRecordRaw, RouteRecordName } from "vue-router";
import type { FunctionalPage } from "../states/pages";
import type { AttachmentSelectProvider } from "../states/attachment-selector";
import type { EditorProvider, PluginTab } from "..";
import type { AnyExtension } from "@tiptap/vue-3";
import type { AnyExtension } from "@halo-dev/richtext-editor";
import type { CommentSubjectRefProvider } from "@/states/comment-subject-ref";
import type { BackupTab } from "@/states/backup";
import type { PluginInstallationTab } from "@/states/plugin-installation-tabs";
Expand Down
Loading

0 comments on commit e119b63

Please sign in to comment.