mirror of https://github.com/halo-dev/halo
chore: bump tiptap version to 2.8.x (#6777)
#### 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)。 ```pull/6771/head^2
parent
d6489283b8
commit
ea491f2386
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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: () => {
|
||||
|
|
|
@ -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: () => {
|
||||
|
|
|
@ -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: () => {
|
||||
|
|
|
@ -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: () => {
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,11 +1,6 @@
|
|||
<script lang="ts" setup>
|
||||
import { IconImageAddLine, VButton } from "@halo-dev/components";
|
||||
import {
|
||||
Editor,
|
||||
type Decoration,
|
||||
type Node,
|
||||
type PMNode,
|
||||
} from "@halo-dev/richtext-editor";
|
||||
import { type NodeViewProps } from "@halo-dev/richtext-editor";
|
||||
import { computed, onMounted, ref } from "vue";
|
||||
import { EditorLinkObtain } from "../../components";
|
||||
import InlineBlockBox from "../../components/InlineBlockBox.vue";
|
||||
|
@ -13,16 +8,7 @@ import { type AttachmentAttr } from "../../utils/attachment";
|
|||
import { fileToBase64 } from "../../utils/upload";
|
||||
import Image from "./index";
|
||||
|
||||
const props = defineProps<{
|
||||
editor: Editor;
|
||||
node: PMNode;
|
||||
decorations: Decoration[];
|
||||
selected: boolean;
|
||||
extension: Node;
|
||||
getPos: () => number;
|
||||
updateAttributes: (attributes: Record<string, unknown>) => void;
|
||||
deleteNode: () => void;
|
||||
}>();
|
||||
const props = defineProps<NodeViewProps>();
|
||||
|
||||
const src = computed({
|
||||
get: () => {
|
||||
|
|
|
@ -1,11 +1,6 @@
|
|||
<script lang="ts" setup>
|
||||
import { VButton } from "@halo-dev/components";
|
||||
import type {
|
||||
Decoration,
|
||||
Editor,
|
||||
Node,
|
||||
PMNode,
|
||||
} from "@halo-dev/richtext-editor";
|
||||
import type { NodeViewProps } from "@halo-dev/richtext-editor";
|
||||
import { computed, ref } from "vue";
|
||||
import RiVideoAddLine from "~icons/ri/video-add-line";
|
||||
import { EditorLinkObtain } from "../../components";
|
||||
|
@ -13,16 +8,7 @@ import InlineBlockBox from "../../components/InlineBlockBox.vue";
|
|||
import type { AttachmentAttr } from "../../utils/attachment";
|
||||
import Video from "./index";
|
||||
|
||||
const props = defineProps<{
|
||||
editor: Editor;
|
||||
node: PMNode;
|
||||
decorations: Decoration[];
|
||||
selected: boolean;
|
||||
extension: Node;
|
||||
getPos: () => number;
|
||||
updateAttributes: (attributes: Record<string, unknown>) => void;
|
||||
deleteNode: () => void;
|
||||
}>();
|
||||
const props = defineProps<NodeViewProps>();
|
||||
|
||||
const src = computed({
|
||||
get: () => {
|
||||
|
|
Loading…
Reference in New Issue