chore: update tiptap to v2.6.6 (#6596)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2024-09-18 12:35:24 +07:00 committed by GitHub
parent c96318d415
commit 96e10ae987
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
13 changed files with 558 additions and 621 deletions

File diff suppressed because it is too large Load Diff

View File

@ -40,32 +40,32 @@
},
"dependencies": {
"@hcengineering/core": "^0.6.32",
"@tiptap/core": "^2.2.4",
"@tiptap/html": "^2.2.4",
"@tiptap/pm": "^2.2.4",
"@tiptap/starter-kit": "^2.2.4",
"@tiptap/extension-gapcursor": "^2.2.4",
"@tiptap/extension-heading": "^2.2.4",
"@tiptap/extension-highlight": "^2.2.4",
"@tiptap/extension-history": "^2.2.4",
"@tiptap/extension-link": "^2.2.4",
"@tiptap/extension-mention": "^2.2.4",
"@tiptap/extension-table": "^2.2.4",
"@tiptap/extension-table-cell": "^2.2.4",
"@tiptap/extension-table-header": "^2.2.4",
"@tiptap/extension-table-row": "^2.2.4",
"@tiptap/extension-task-item": "^2.2.4",
"@tiptap/extension-task-list": "^2.2.4",
"@tiptap/extension-typography": "^2.2.4",
"@tiptap/extension-code-block": "^2.2.4",
"@tiptap/extension-code": "^2.2.4",
"@tiptap/extension-underline": "^2.2.4",
"@tiptap/suggestion": "^2.2.4",
"@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",
"prosemirror-codemark": "^0.4.2",
"markdown-it": "^14.0.0",
"fast-equals": "^5.0.1",
"yjs": "^13.5.52",
"y-prosemirror": "^1.2.1"
"yjs": "^13.6.19",
"y-prosemirror": "^1.2.12"
},
"repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": {

View File

@ -17,6 +17,7 @@ import { isActive, textblockTypeInputRule } from '@tiptap/core'
import CodeBlock, { CodeBlockOptions } from '@tiptap/extension-code-block'
export const codeBlockOptions: CodeBlockOptions = {
defaultLanguage: null,
languageClassPrefix: 'language-',
exitOnArrowDown: true,
exitOnTripleEnter: true,

View File

@ -66,7 +66,7 @@
"@hcengineering/controlled-documents": "^0.1.0",
"@hcengineering/training": "^0.1.0",
"@hcengineering/training-resources": "^0.1.0",
"@tiptap/core": "^2.2.4",
"@tiptap/core": "^2.6.6",
"effector": "~22.8.7",
"svelte": "^4.2.12",
"slugify": "^1.6.6",

View File

@ -63,7 +63,7 @@
"@hcengineering/document": "^0.6.0",
"@hcengineering/time": "^0.6.0",
"@hcengineering/rank": "^0.6.4",
"@tiptap/core": "^2.2.4",
"@tiptap/core": "^2.6.6",
"slugify": "^1.6.6",
"fast-equals": "^5.0.1"
}

View File

@ -48,33 +48,33 @@
"@hcengineering/text": "^0.6.5",
"@hcengineering/text-editor": "^0.6.0",
"@hcengineering/collaborator-client": "^0.6.4",
"@tiptap/core": "^2.2.4",
"@tiptap/pm": "^2.2.4",
"@tiptap/extension-code-block-lowlight": "^2.2.4",
"@tiptap/extension-collaboration": "^2.2.4",
"@tiptap/extension-collaboration-cursor": "^2.2.4",
"@tiptap/extension-placeholder": "^2.2.4",
"@tiptap/extension-hard-break": "^2.2.4",
"@tiptap/extension-bubble-menu": "^2.2.4",
"@tiptap/extension-table": "^2.2.4",
"@tiptap/extension-table-cell": "^2.2.4",
"@tiptap/extension-table-header": "^2.2.4",
"@tiptap/extension-table-row": "^2.2.4",
"@tiptap/extension-heading": "^2.2.4",
"@tiptap/extension-list-keymap": "^2.2.4",
"@tiptap/extension-code": "^2.2.4",
"@tiptap/extension-code-block": "^2.2.4",
"@tiptap/extension-highlight": "^2.2.4",
"@tiptap/extension-typography": "^2.2.4",
"@tiptap/extension-link": "^2.2.4",
"@tiptap/starter-kit": "^2.2.4",
"@tiptap/extension-underline": "^2.2.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",
"@hocuspocus/provider": "^2.11.0",
"prosemirror-codemark": "^0.4.2",
"y-protocols": "^1.0.6",
"y-prosemirror": "^1.2.1",
"y-prosemirror": "^1.2.12",
"y-websocket": "^2.0.4",
"yjs": "^13.5.52",
"yjs": "^13.6.19",
"fast-equals": "^5.0.1",
"rfc6902": "^5.0.1",
"diff": "^5.1.0",

View File

@ -1 +1,5 @@
export const defaultEditorAttributes: Record<string, string> = { class: 'text-editor-view' }
export const defaultEditorAttributes: Record<string, string> = {
class: 'text-editor-view',
// https://github.com/ueberdosis/tiptap/issues/3357
tabindex: '0'
}

View File

@ -38,14 +38,14 @@
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5",
"yjs": "^13.5.52"
"yjs": "^13.6.19"
},
"dependencies": {
"@hcengineering/presentation": "^0.6.3",
"@hcengineering/platform": "^0.6.11",
"@hcengineering/core": "^0.6.32",
"@hcengineering/ui": "^0.6.15",
"@tiptap/core": "^2.2.4",
"@tiptap/pm": "^2.2.4"
"@tiptap/core": "^2.6.6",
"@tiptap/pm": "^2.6.6"
}
}

View File

@ -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.2.4",
"@tiptap/extension-task-list": "^2.2.4",
"@tiptap/extension-task-item": "^2.6.6",
"@tiptap/extension-task-list": "^2.6.6",
"fast-equals": "^5.0.1",
"@hcengineering/activity": "^0.6.0",
"@hcengineering/activity-resources": "^0.6.1",

View File

@ -41,6 +41,6 @@
"@hcengineering/core": "^0.6.32",
"@hcengineering/server-core": "^0.6.1",
"base64-js": "^1.5.1",
"yjs": "^13.5.52"
"yjs": "^13.6.19"
}
}

View File

@ -64,11 +64,11 @@
"@hcengineering/mongo": "^0.6.1",
"@hocuspocus/server": "^2.13.5",
"@hocuspocus/transformer": "^2.13.5",
"@tiptap/core": "^2.2.4",
"@tiptap/html": "^2.2.4",
"@tiptap/core": "^2.6.6",
"@tiptap/html": "^2.6.6",
"mongodb": "^6.9.0",
"yjs": "^13.5.52",
"y-prosemirror": "^1.2.1",
"yjs": "^13.6.19",
"y-prosemirror": "^1.2.12",
"express": "^4.19.2",
"body-parser": "^1.20.2",
"cors": "^2.8.5",

View File

@ -86,29 +86,29 @@
"fast-equals": "^5.0.1",
"@hcengineering/minio": "^0.6.0",
"markdown-it": "^14.0.0",
"@tiptap/html": "^2.2.4",
"@tiptap/core": "^2.2.4",
"@tiptap/pm": "^2.2.4",
"@tiptap/starter-kit": "^2.2.4",
"@tiptap/extension-highlight": "^2.2.4",
"@tiptap/extension-placeholder": "^2.2.4",
"@tiptap/extension-mention": "^2.2.4",
"@tiptap/extension-typography": "^2.2.4",
"@tiptap/extension-link": "^2.2.4",
"@tiptap/suggestion": "^2.2.4",
"@tiptap/extension-task-list": "^2.2.4",
"@tiptap/extension-task-item": "^2.2.4",
"@tiptap/extension-collaboration": "^2.2.4",
"@tiptap/extension-collaboration-cursor": "^2.2.4",
"@tiptap/extension-code-block": "^2.2.4",
"@tiptap/extension-gapcursor": "^2.2.4",
"@tiptap/extension-heading": "^2.2.4",
"@tiptap/extension-table": "^2.2.4",
"@tiptap/extension-table-cell": "^2.2.4",
"@tiptap/extension-table-header": "^2.2.4",
"@tiptap/extension-table-row": "^2.2.4",
"@tiptap/extension-code": "^2.2.4",
"@tiptap/extension-bubble-menu": "^2.2.4",
"@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",
"@hcengineering/task": "^0.6.20",
"express": "^4.19.2",
"cors": "^2.8.5",

View File

@ -147,8 +147,8 @@ test.describe('Documents tests', () => {
await documentContentPage.addRandomLines(5)
await documentContentPage.addContentToTheNewLine(contentLink)
await documentContentPage.addRandomLines(5)
await documentContentPage.addLinkToText(contentLink, 'test/link/123456')
await documentContentPage.checkLinkInTheText(contentLink, 'test/link/123456')
await documentContentPage.addLinkToText(contentLink, 'http://test/link/123456')
await documentContentPage.checkLinkInTheText(contentLink, 'http://test/link/123456')
})
test('Locked document and checking URL', async ({ page, context }) => {