mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-28 04:25:03 +02:00
Updated tiptap to 2.11.3 (#7839)
* Updated tiptap to 2.11.3 Signed-off-by: Victor Ilyushchenko <alt13ri@gmail.com> * formatting Signed-off-by: Victor Ilyushchenko <alt13ri@gmail.com> --------- Signed-off-by: Victor Ilyushchenko <alt13ri@gmail.com>
This commit is contained in:
Generated
+546
-510
File diff suppressed because it is too large
Load Diff
@@ -41,8 +41,8 @@
|
||||
"dependencies": {
|
||||
"@hcengineering/core": "^0.6.32",
|
||||
"@hcengineering/text": "^0.6.5",
|
||||
"@tiptap/core": "^2.6.6",
|
||||
"@tiptap/pm": "^2.6.6",
|
||||
"@tiptap/core": "^2.11.3",
|
||||
"@tiptap/pm": "^2.11.3",
|
||||
"fast-equals": "^5.0.1",
|
||||
"yjs": "^13.6.19",
|
||||
"y-prosemirror": "^1.2.12"
|
||||
|
||||
+21
-21
@@ -41,27 +41,27 @@
|
||||
"dependencies": {
|
||||
"@hcengineering/core": "^0.6.32",
|
||||
"@hcengineering/text-core": "^0.6.0",
|
||||
"@tiptap/core": "^2.6.6",
|
||||
"@tiptap/html": "^2.6.6",
|
||||
"@tiptap/pm": "^2.6.6",
|
||||
"@tiptap/starter-kit": "^2.6.6",
|
||||
"@tiptap/extension-gapcursor": "^2.6.6",
|
||||
"@tiptap/extension-heading": "^2.6.6",
|
||||
"@tiptap/extension-highlight": "^2.6.6",
|
||||
"@tiptap/extension-history": "^2.6.6",
|
||||
"@tiptap/extension-link": "^2.6.6",
|
||||
"@tiptap/extension-mention": "^2.6.6",
|
||||
"@tiptap/extension-table": "^2.6.6",
|
||||
"@tiptap/extension-table-cell": "^2.6.6",
|
||||
"@tiptap/extension-table-header": "^2.6.6",
|
||||
"@tiptap/extension-table-row": "^2.6.6",
|
||||
"@tiptap/extension-task-item": "^2.6.6",
|
||||
"@tiptap/extension-task-list": "^2.6.6",
|
||||
"@tiptap/extension-typography": "^2.6.6",
|
||||
"@tiptap/extension-code-block": "^2.6.6",
|
||||
"@tiptap/extension-code": "^2.6.6",
|
||||
"@tiptap/extension-underline": "^2.6.6",
|
||||
"@tiptap/suggestion": "^2.6.6",
|
||||
"@tiptap/core": "^2.11.3",
|
||||
"@tiptap/html": "^2.11.3",
|
||||
"@tiptap/pm": "^2.11.3",
|
||||
"@tiptap/starter-kit": "^2.11.3",
|
||||
"@tiptap/extension-gapcursor": "^2.11.3",
|
||||
"@tiptap/extension-heading": "^2.11.3",
|
||||
"@tiptap/extension-highlight": "^2.11.3",
|
||||
"@tiptap/extension-history": "^2.11.3",
|
||||
"@tiptap/extension-link": "^2.11.3",
|
||||
"@tiptap/extension-mention": "^2.11.3",
|
||||
"@tiptap/extension-table": "^2.11.3",
|
||||
"@tiptap/extension-table-cell": "^2.11.3",
|
||||
"@tiptap/extension-table-header": "^2.11.3",
|
||||
"@tiptap/extension-table-row": "^2.11.3",
|
||||
"@tiptap/extension-task-item": "^2.11.3",
|
||||
"@tiptap/extension-task-list": "^2.11.3",
|
||||
"@tiptap/extension-typography": "^2.11.3",
|
||||
"@tiptap/extension-code-block": "^2.11.3",
|
||||
"@tiptap/extension-code": "^2.11.3",
|
||||
"@tiptap/extension-underline": "^2.11.3",
|
||||
"@tiptap/suggestion": "^2.11.3",
|
||||
"prosemirror-codemark": "^0.4.2",
|
||||
"markdown-it": "^14.0.0",
|
||||
"fast-equals": "^5.0.1",
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
"@hcengineering/notification": "^0.6.23",
|
||||
"@hcengineering/contact": "^0.6.24",
|
||||
"@hcengineering/workbench": "^0.6.16",
|
||||
"@tiptap/core": "^2.6.6",
|
||||
"@tiptap/core": "^2.11.3",
|
||||
"@hcengineering/platform": "^0.6.11",
|
||||
"@hcengineering/card": "^0.6.0",
|
||||
"fast-equals": "^5.0.1",
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
"@hcengineering/controlled-documents": "^0.1.0",
|
||||
"@hcengineering/training": "^0.1.0",
|
||||
"@hcengineering/training-resources": "^0.1.0",
|
||||
"@tiptap/core": "^2.6.6",
|
||||
"@tiptap/core": "^2.11.3",
|
||||
"effector": "~22.8.7",
|
||||
"svelte": "^4.2.19",
|
||||
"slugify": "^1.6.6",
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
"@hcengineering/document": "^0.6.0",
|
||||
"@hcengineering/time": "^0.6.0",
|
||||
"@hcengineering/rank": "^0.6.4",
|
||||
"@tiptap/core": "^2.6.6",
|
||||
"@tiptap/core": "^2.11.3",
|
||||
"slugify": "^1.6.6",
|
||||
"fast-equals": "^5.0.1"
|
||||
}
|
||||
|
||||
@@ -50,27 +50,27 @@
|
||||
"@hcengineering/text": "^0.6.5",
|
||||
"@hcengineering/text-editor": "^0.6.0",
|
||||
"@hcengineering/collaborator-client": "^0.6.4",
|
||||
"@tiptap/core": "^2.6.6",
|
||||
"@tiptap/pm": "^2.6.6",
|
||||
"@tiptap/extension-code-block-lowlight": "^2.6.6",
|
||||
"@tiptap/extension-collaboration": "^2.6.6",
|
||||
"@tiptap/extension-collaboration-cursor": "^2.6.6",
|
||||
"@tiptap/extension-placeholder": "^2.6.6",
|
||||
"@tiptap/extension-hard-break": "^2.6.6",
|
||||
"@tiptap/extension-bubble-menu": "^2.6.6",
|
||||
"@tiptap/extension-table": "^2.6.6",
|
||||
"@tiptap/extension-table-cell": "^2.6.6",
|
||||
"@tiptap/extension-table-header": "^2.6.6",
|
||||
"@tiptap/extension-table-row": "^2.6.6",
|
||||
"@tiptap/extension-heading": "^2.6.6",
|
||||
"@tiptap/extension-list-keymap": "^2.6.6",
|
||||
"@tiptap/extension-code": "^2.6.6",
|
||||
"@tiptap/extension-code-block": "^2.6.6",
|
||||
"@tiptap/extension-highlight": "^2.6.6",
|
||||
"@tiptap/extension-typography": "^2.6.6",
|
||||
"@tiptap/extension-link": "^2.6.6",
|
||||
"@tiptap/starter-kit": "^2.6.6",
|
||||
"@tiptap/extension-underline": "^2.6.6",
|
||||
"@tiptap/core": "^2.11.3",
|
||||
"@tiptap/pm": "^2.11.3",
|
||||
"@tiptap/extension-code-block-lowlight": "^2.11.3",
|
||||
"@tiptap/extension-collaboration": "^2.11.3",
|
||||
"@tiptap/extension-collaboration-cursor": "^2.11.3",
|
||||
"@tiptap/extension-placeholder": "^2.11.3",
|
||||
"@tiptap/extension-hard-break": "^2.11.3",
|
||||
"@tiptap/extension-bubble-menu": "^2.11.3",
|
||||
"@tiptap/extension-table": "^2.11.3",
|
||||
"@tiptap/extension-table-cell": "^2.11.3",
|
||||
"@tiptap/extension-table-header": "^2.11.3",
|
||||
"@tiptap/extension-table-row": "^2.11.3",
|
||||
"@tiptap/extension-heading": "^2.11.3",
|
||||
"@tiptap/extension-list-keymap": "^2.11.3",
|
||||
"@tiptap/extension-code": "^2.11.3",
|
||||
"@tiptap/extension-code-block": "^2.11.3",
|
||||
"@tiptap/extension-highlight": "^2.11.3",
|
||||
"@tiptap/extension-typography": "^2.11.3",
|
||||
"@tiptap/extension-link": "^2.11.3",
|
||||
"@tiptap/starter-kit": "^2.11.3",
|
||||
"@tiptap/extension-underline": "^2.11.3",
|
||||
"@hocuspocus/provider": "^2.11.0",
|
||||
"prosemirror-codemark": "^0.4.2",
|
||||
"y-protocols": "^1.0.6",
|
||||
|
||||
@@ -287,7 +287,9 @@ export const MermaidExtension = CodeBlockLowlight.extend<MermaidOptions>({
|
||||
stopEvent: (event) => {
|
||||
if (event instanceof DragEvent && !nodeState.folded) {
|
||||
event.preventDefault()
|
||||
return true
|
||||
}
|
||||
return false
|
||||
},
|
||||
update: (node, decorations) => {
|
||||
if (node.type.name !== MermaidExtension.name) return false
|
||||
|
||||
@@ -22,14 +22,15 @@ import {
|
||||
type NodeViewRendererOptions,
|
||||
type NodeViewRendererProps
|
||||
} from '@tiptap/core'
|
||||
import type { Node as ProseMirrorNode } from '@tiptap/pm/model'
|
||||
import type { ComponentType, SvelteComponent } from 'svelte'
|
||||
|
||||
import { type Node } from '@tiptap/pm/model'
|
||||
import { type Decoration, DecorationSet } from '@tiptap/pm/view'
|
||||
import { createNodeViewContext } from './context'
|
||||
import { SvelteRenderer } from './svelte-renderer'
|
||||
|
||||
export interface SvelteNodeViewRendererOptions extends NodeViewRendererOptions {
|
||||
update?: (node: ProseMirrorNode, decorations: DecorationWithType[]) => boolean
|
||||
update?: (node: Node, decorations: readonly Decoration[]) => boolean
|
||||
contentAs?: string
|
||||
contentClass?: string
|
||||
componentProps?: Record<string, any>
|
||||
@@ -59,7 +60,7 @@ class SvelteNodeView extends NodeView<SvelteNodeViewComponent, Editor, SvelteNod
|
||||
const props: SvelteNodeViewProps = {
|
||||
editor: this.editor,
|
||||
node: this.node,
|
||||
decorations: this.decorations,
|
||||
decorations: this.decorations as readonly DecorationWithType[],
|
||||
selected: false,
|
||||
extension: this.extension,
|
||||
getPos: () => this.getPos(),
|
||||
@@ -69,6 +70,9 @@ class SvelteNodeView extends NodeView<SvelteNodeViewComponent, Editor, SvelteNod
|
||||
deleteNode: () => {
|
||||
this.deleteNode()
|
||||
},
|
||||
innerDecorations: DecorationSet.empty,
|
||||
HTMLAttributes: {},
|
||||
view: this.editor.view,
|
||||
...(this.options.componentProps ?? {})
|
||||
}
|
||||
|
||||
@@ -117,7 +121,7 @@ class SvelteNodeView extends NodeView<SvelteNodeViewComponent, Editor, SvelteNod
|
||||
return false
|
||||
}
|
||||
|
||||
update (node: ProseMirrorNode, decorations: DecorationWithType[]): boolean {
|
||||
update (node: Node, decorations: readonly Decoration[]): boolean {
|
||||
if (typeof this.options.update === 'function') {
|
||||
return this.options.update(node, decorations)
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
"@hcengineering/platform": "^0.6.11",
|
||||
"@hcengineering/core": "^0.6.32",
|
||||
"@hcengineering/ui": "^0.6.15",
|
||||
"@tiptap/core": "^2.6.6",
|
||||
"@tiptap/pm": "^2.6.6"
|
||||
"@tiptap/core": "^2.11.3",
|
||||
"@tiptap/pm": "^2.11.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,8 +64,8 @@
|
||||
"@hcengineering/text-editor-resources": "^0.6.0",
|
||||
"@hcengineering/time": "^0.6.0",
|
||||
"@hcengineering/rank": "^0.6.4",
|
||||
"@tiptap/extension-task-item": "^2.6.6",
|
||||
"@tiptap/extension-task-list": "^2.6.6",
|
||||
"@tiptap/extension-task-item": "^2.11.3",
|
||||
"@tiptap/extension-task-list": "^2.11.3",
|
||||
"fast-equals": "^5.0.1",
|
||||
"@hcengineering/activity": "^0.6.0",
|
||||
"@hcengineering/activity-resources": "^0.6.1",
|
||||
|
||||
@@ -65,8 +65,8 @@
|
||||
"@hcengineering/mongo": "^0.6.1",
|
||||
"@hocuspocus/server": "^2.13.5",
|
||||
"@hocuspocus/transformer": "^2.13.5",
|
||||
"@tiptap/core": "^2.6.6",
|
||||
"@tiptap/html": "^2.6.6",
|
||||
"@tiptap/core": "^2.11.3",
|
||||
"@tiptap/html": "^2.11.3",
|
||||
"mongodb": "^6.12.0",
|
||||
"yjs": "^13.6.19",
|
||||
"y-prosemirror": "^1.2.12",
|
||||
|
||||
@@ -85,29 +85,29 @@
|
||||
"fast-equals": "^5.0.1",
|
||||
"@hcengineering/minio": "^0.6.0",
|
||||
"markdown-it": "^14.0.0",
|
||||
"@tiptap/html": "^2.6.6",
|
||||
"@tiptap/core": "^2.6.6",
|
||||
"@tiptap/pm": "^2.6.6",
|
||||
"@tiptap/starter-kit": "^2.6.6",
|
||||
"@tiptap/extension-highlight": "^2.6.6",
|
||||
"@tiptap/extension-placeholder": "^2.6.6",
|
||||
"@tiptap/extension-mention": "^2.6.6",
|
||||
"@tiptap/extension-typography": "^2.6.6",
|
||||
"@tiptap/extension-link": "^2.6.6",
|
||||
"@tiptap/suggestion": "^2.6.6",
|
||||
"@tiptap/extension-task-list": "^2.6.6",
|
||||
"@tiptap/extension-task-item": "^2.6.6",
|
||||
"@tiptap/extension-collaboration": "^2.6.6",
|
||||
"@tiptap/extension-collaboration-cursor": "^2.6.6",
|
||||
"@tiptap/extension-code-block": "^2.6.6",
|
||||
"@tiptap/extension-gapcursor": "^2.6.6",
|
||||
"@tiptap/extension-heading": "^2.6.6",
|
||||
"@tiptap/extension-table": "^2.6.6",
|
||||
"@tiptap/extension-table-cell": "^2.6.6",
|
||||
"@tiptap/extension-table-header": "^2.6.6",
|
||||
"@tiptap/extension-table-row": "^2.6.6",
|
||||
"@tiptap/extension-code": "^2.6.6",
|
||||
"@tiptap/extension-bubble-menu": "^2.6.6",
|
||||
"@tiptap/html": "^2.11.3",
|
||||
"@tiptap/core": "^2.11.3",
|
||||
"@tiptap/pm": "^2.11.3",
|
||||
"@tiptap/starter-kit": "^2.11.3",
|
||||
"@tiptap/extension-highlight": "^2.11.3",
|
||||
"@tiptap/extension-placeholder": "^2.11.3",
|
||||
"@tiptap/extension-mention": "^2.11.3",
|
||||
"@tiptap/extension-typography": "^2.11.3",
|
||||
"@tiptap/extension-link": "^2.11.3",
|
||||
"@tiptap/suggestion": "^2.11.3",
|
||||
"@tiptap/extension-task-list": "^2.11.3",
|
||||
"@tiptap/extension-task-item": "^2.11.3",
|
||||
"@tiptap/extension-collaboration": "^2.11.3",
|
||||
"@tiptap/extension-collaboration-cursor": "^2.11.3",
|
||||
"@tiptap/extension-code-block": "^2.11.3",
|
||||
"@tiptap/extension-gapcursor": "^2.11.3",
|
||||
"@tiptap/extension-heading": "^2.11.3",
|
||||
"@tiptap/extension-table": "^2.11.3",
|
||||
"@tiptap/extension-table-cell": "^2.11.3",
|
||||
"@tiptap/extension-table-header": "^2.11.3",
|
||||
"@tiptap/extension-table-row": "^2.11.3",
|
||||
"@tiptap/extension-code": "^2.11.3",
|
||||
"@tiptap/extension-bubble-menu": "^2.11.3",
|
||||
"@hcengineering/task": "^0.6.20",
|
||||
"express": "^4.21.2",
|
||||
"cors": "^2.8.5",
|
||||
|
||||
Reference in New Issue
Block a user