Skip to content

Commit

Permalink
chore: bump tiptap version to 2.8.x (#6777)
Browse files Browse the repository at this point in the history
#### What type of PR is this?

/area ui
/kind improvement
/milestone 2.20.x

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

Bump tiptap verison to [2.8.x](https://github.com/ueberdosis/tiptap/releases/tag/v2.8.0)

#### Does this PR introduce a user-facing change?

```release-note
升级编辑器依赖 Tiptap 的版本至 [2.8.x](https://github.com/ueberdosis/tiptap/releases/tag/v2.8.0)。
```
  • Loading branch information
ruibaby authored Oct 7, 2024
1 parent d648928 commit ea491f2
Show file tree
Hide file tree
Showing 9 changed files with 404 additions and 464 deletions.
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"@halo-dev/console-shared": "workspace:*",
"@halo-dev/richtext-editor": "workspace:*",
"@tanstack/vue-query": "^4.29.1",
"@tiptap/extension-character-count": "^2.6.5",
"@tiptap/extension-character-count": "^2.8.0",
"@uppy/core": "^3.11.3",
"@uppy/dashboard": "^3.8.3",
"@uppy/drag-drop": "^3.1.0",
Expand Down
72 changes: 36 additions & 36 deletions ui/packages/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,42 +41,42 @@
},
"dependencies": {
"@ckpack/vue-color": "^1.5.0",
"@tiptap/core": "^2.6.5",
"@tiptap/extension-blockquote": "^2.6.5",
"@tiptap/extension-bold": "^2.6.5",
"@tiptap/extension-bullet-list": "^2.6.5",
"@tiptap/extension-code": "^2.6.5",
"@tiptap/extension-code-block": "^2.6.5",
"@tiptap/extension-color": "^2.6.5",
"@tiptap/extension-document": "^2.6.5",
"@tiptap/extension-dropcursor": "^2.6.5",
"@tiptap/extension-hard-break": "^2.6.5",
"@tiptap/extension-heading": "^2.6.5",
"@tiptap/extension-highlight": "^2.6.5",
"@tiptap/extension-history": "^2.6.5",
"@tiptap/extension-horizontal-rule": "^2.6.5",
"@tiptap/extension-image": "^2.6.5",
"@tiptap/extension-italic": "^2.6.5",
"@tiptap/extension-link": "^2.6.5",
"@tiptap/extension-list-item": "^2.6.5",
"@tiptap/extension-list-keymap": "^2.6.5",
"@tiptap/extension-ordered-list": "^2.6.5",
"@tiptap/extension-paragraph": "^2.6.5",
"@tiptap/extension-placeholder": "^2.6.5",
"@tiptap/extension-strike": "^2.6.5",
"@tiptap/extension-subscript": "^2.6.5",
"@tiptap/extension-superscript": "^2.6.5",
"@tiptap/extension-table": "^2.6.5",
"@tiptap/extension-table-row": "^2.6.5",
"@tiptap/extension-task-item": "^2.6.5",
"@tiptap/extension-task-list": "^2.6.5",
"@tiptap/extension-text": "^2.6.5",
"@tiptap/extension-text-align": "^2.6.5",
"@tiptap/extension-text-style": "^2.6.5",
"@tiptap/extension-underline": "^2.6.5",
"@tiptap/pm": "^2.6.5",
"@tiptap/suggestion": "^2.6.5",
"@tiptap/vue-3": "^2.6.5",
"@tiptap/core": "^2.8.0",
"@tiptap/extension-blockquote": "^2.8.0",
"@tiptap/extension-bold": "^2.8.0",
"@tiptap/extension-bullet-list": "^2.8.0",
"@tiptap/extension-code": "^2.8.0",
"@tiptap/extension-code-block": "^2.8.0",
"@tiptap/extension-color": "^2.8.0",
"@tiptap/extension-document": "^2.8.0",
"@tiptap/extension-dropcursor": "^2.8.0",
"@tiptap/extension-hard-break": "^2.8.0",
"@tiptap/extension-heading": "^2.8.0",
"@tiptap/extension-highlight": "^2.8.0",
"@tiptap/extension-history": "^2.8.0",
"@tiptap/extension-horizontal-rule": "^2.8.0",
"@tiptap/extension-image": "^2.8.0",
"@tiptap/extension-italic": "^2.8.0",
"@tiptap/extension-link": "^2.8.0",
"@tiptap/extension-list-item": "^2.8.0",
"@tiptap/extension-list-keymap": "^2.8.0",
"@tiptap/extension-ordered-list": "^2.8.0",
"@tiptap/extension-paragraph": "^2.8.0",
"@tiptap/extension-placeholder": "^2.8.0",
"@tiptap/extension-strike": "^2.8.0",
"@tiptap/extension-subscript": "^2.8.0",
"@tiptap/extension-superscript": "^2.8.0",
"@tiptap/extension-table": "^2.8.0",
"@tiptap/extension-table-row": "^2.8.0",
"@tiptap/extension-task-item": "^2.8.0",
"@tiptap/extension-task-list": "^2.8.0",
"@tiptap/extension-text": "^2.8.0",
"@tiptap/extension-text-align": "^2.8.0",
"@tiptap/extension-text-style": "^2.8.0",
"@tiptap/extension-underline": "^2.8.0",
"@tiptap/pm": "^2.8.0",
"@tiptap/suggestion": "^2.8.0",
"@tiptap/vue-3": "^2.8.0",
"floating-vue": "^5.2.2",
"github-markdown-css": "^5.2.0",
"linkifyjs": "^4.1.3",
Expand Down
14 changes: 2 additions & 12 deletions ui/packages/editor/src/extensions/audio/AudioView.vue
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
<script lang="ts" setup>
import { i18n } from "@/locales";
import type { Decoration, Node as ProseMirrorNode } from "@/tiptap/pm";
import type { Editor, Node } from "@/tiptap/vue-3";
import type { NodeViewProps } from "@/tiptap/vue-3";
import { NodeViewWrapper } from "@/tiptap/vue-3";
import { computed, onMounted, ref } from "vue";
const props = defineProps<{
editor: Editor;
node: ProseMirrorNode;
decorations: Decoration[];
selected: boolean;
extension: Node<any, any>;
getPos: () => number;
updateAttributes: (attributes: Record<string, any>) => void;
deleteNode: () => void;
}>();
const props = defineProps<NodeViewProps>();
const src = computed({
get: () => {
Expand Down
14 changes: 2 additions & 12 deletions ui/packages/editor/src/extensions/iframe/IframeView.vue
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
<script lang="ts" setup>
import { i18n } from "@/locales";
import type { Decoration, Node as ProseMirrorNode } from "@/tiptap/pm";
import type { Editor, Node } from "@/tiptap/vue-3";
import type { NodeViewProps } from "@/tiptap/vue-3";
import { NodeViewWrapper } from "@/tiptap/vue-3";
import { isAllowedUri } from "@/utils/is-allowed-uri";
import { computed, onMounted, ref } from "vue";
const props = defineProps<{
editor: Editor;
node: ProseMirrorNode;
decorations: Decoration[];
selected: boolean;
extension: Node<any, any>;
getPos: () => number;
updateAttributes: (attributes: Record<string, any>) => void;
deleteNode: () => void;
}>();
const props = defineProps<NodeViewProps>();
const src = computed({
get: () => {
Expand Down
14 changes: 2 additions & 12 deletions ui/packages/editor/src/extensions/image/ImageView.vue
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
<script lang="ts" setup>
import { i18n } from "@/locales";
import type { Decoration, Node as ProseMirrorNode } from "@/tiptap/pm";
import type { Editor, Node } from "@/tiptap/vue-3";
import type { NodeViewProps } from "@/tiptap/vue-3";
import { NodeViewWrapper } from "@/tiptap/vue-3";
import { computed, onMounted, ref } from "vue";
import Image from "./index";
const props = defineProps<{
editor: Editor;
node: ProseMirrorNode;
decorations: Decoration[];
selected: boolean;
extension: Node<any, any>;
getPos: () => number;
updateAttributes: (attributes: Record<string, any>) => void;
deleteNode: () => void;
}>();
const props = defineProps<NodeViewProps>();
const src = computed({
get: () => {
Expand Down
14 changes: 2 additions & 12 deletions ui/packages/editor/src/extensions/video/VideoView.vue
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
<script lang="ts" setup>
import { i18n } from "@/locales";
import type { Decoration, Node as ProseMirrorNode } from "@/tiptap/pm";
import type { Editor, Node } from "@/tiptap/vue-3";
import type { NodeViewProps } from "@/tiptap/vue-3";
import { NodeViewWrapper } from "@/tiptap/vue-3";
import { computed, onMounted, ref } from "vue";
const props = defineProps<{
editor: Editor;
node: ProseMirrorNode;
decorations: Decoration[];
selected: boolean;
extension: Node<any, any>;
getPos: () => number;
updateAttributes: (attributes: Record<string, any>) => void;
deleteNode: () => void;
}>();
const props = defineProps<NodeViewProps>();
const src = computed({
get: () => {
Expand Down
Loading

0 comments on commit ea491f2

Please sign in to comment.