@cyberyozh/text-editor 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyberyozh/text-editor",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Rich text editor library based on Tiptap for CyberYozh",
5
5
  "author": "CyberYozh",
6
6
  "license": "MIT",
@@ -50,38 +50,38 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@floating-ui/dom": "1.7.6",
53
- "@tiptap/core": "3.23.6",
54
- "@tiptap/extension-blockquote": "3.23.6",
55
- "@tiptap/extension-bubble-menu": "3.23.6",
56
- "@tiptap/extension-code": "3.23.6",
57
- "@tiptap/extension-code-block-lowlight": "3.23.6",
58
- "@tiptap/extension-collaboration": "3.23.6",
59
- "@tiptap/extension-details": "3.23.6",
60
- "@tiptap/extension-drag-handle": "3.23.6",
61
- "@tiptap/extension-drag-handle-react": "3.23.6",
62
- "@tiptap/extension-floating-menu": "3.23.6",
63
- "@tiptap/extension-hard-break": "3.23.6",
64
- "@tiptap/extension-highlight": "3.23.6",
65
- "@tiptap/extension-horizontal-rule": "3.23.6",
66
- "@tiptap/extension-image": "3.23.6",
67
- "@tiptap/extension-link": "3.23.6",
68
- "@tiptap/extension-list": "3.23.6",
69
- "@tiptap/extension-mathematics": "3.23.6",
70
- "@tiptap/extension-node-range": "3.23.6",
71
- "@tiptap/extension-subscript": "3.23.6",
72
- "@tiptap/extension-superscript": "3.23.6",
73
- "@tiptap/extension-table": "3.23.6",
74
- "@tiptap/extension-text-align": "3.23.6",
75
- "@tiptap/extensions": "3.23.6",
76
- "@tiptap/html": "3.23.6",
77
- "@tiptap/pm": "3.23.6",
78
- "@tiptap/react": "3.23.6",
79
- "@tiptap/starter-kit": "3.23.6",
80
- "@tiptap/static-renderer": "3.23.6",
81
- "@tiptap/suggestion": "3.23.6",
82
- "@tiptap/y-tiptap": "3.0.3",
53
+ "@tiptap/core": "3.31.3",
54
+ "@tiptap/extension-blockquote": "3.31.3",
55
+ "@tiptap/extension-bubble-menu": "3.31.3",
56
+ "@tiptap/extension-code": "3.31.3",
57
+ "@tiptap/extension-code-block-lowlight": "3.31.3",
58
+ "@tiptap/extension-collaboration": "3.31.3",
59
+ "@tiptap/extension-details": "3.31.3",
60
+ "@tiptap/extension-drag-handle": "3.31.3",
61
+ "@tiptap/extension-drag-handle-react": "3.31.3",
62
+ "@tiptap/extension-floating-menu": "3.31.3",
63
+ "@tiptap/extension-hard-break": "3.31.3",
64
+ "@tiptap/extension-highlight": "3.31.3",
65
+ "@tiptap/extension-horizontal-rule": "3.31.3",
66
+ "@tiptap/extension-image": "3.31.3",
67
+ "@tiptap/extension-link": "3.31.3",
68
+ "@tiptap/extension-list": "3.31.3",
69
+ "@tiptap/extension-mathematics": "3.31.3",
70
+ "@tiptap/extension-node-range": "3.31.3",
71
+ "@tiptap/extension-subscript": "3.31.3",
72
+ "@tiptap/extension-superscript": "3.31.3",
73
+ "@tiptap/extension-table": "3.31.3",
74
+ "@tiptap/extension-text-align": "3.31.3",
75
+ "@tiptap/extensions": "3.31.3",
76
+ "@tiptap/html": "3.31.3",
77
+ "@tiptap/pm": "3.31.3",
78
+ "@tiptap/react": "3.31.3",
79
+ "@tiptap/starter-kit": "3.31.3",
80
+ "@tiptap/static-renderer": "3.31.3",
81
+ "@tiptap/suggestion": "3.31.3",
82
+ "@tiptap/y-tiptap": "3.0.9",
83
83
  "emoji-picker-react": "4.19.1",
84
- "highlight.js": "11.11.1",
84
+ "highlight.js": "11.12.0",
85
85
  "katex": "0.16.35",
86
86
  "lowlight": "3.3.0",
87
87
  "y-protocols": "1.0.7",
@@ -94,9 +94,10 @@
94
94
  "eslint": "^10.0.2",
95
95
  "tsup": "^8.5.1",
96
96
  "typescript": "^5.9.3",
97
- "vitest": "^3.2.6"
97
+ "vitest": "^5.0.0"
98
98
  },
99
99
  "overrides": {
100
- "glob": "^13.0.6"
100
+ "glob": "^13.0.6",
101
+ "esbuild": "^0.28.1"
101
102
  }
102
103
  }
@@ -5,10 +5,7 @@ import {
5
5
  TiptapMenuAddImage,
6
6
  TiptapMenuBlockquote,
7
7
  TiptapMenuBulletList,
8
- TiptapMenuCalloutError,
9
- TiptapMenuCalloutInfo,
10
8
  TiptapMenuCalloutSuccess,
11
- TiptapMenuCalloutWarning,
12
9
  TiptapMenuCodeBlock,
13
10
  TiptapMenuCustomQuote,
14
11
  TiptapMenuDetails,
@@ -22,11 +19,9 @@ import {
22
19
  TiptapMenuMythReality,
23
20
  TiptapMenuOrderedList,
24
21
  TiptapMenuPrompt,
25
- TiptapMenuRedo,
26
22
  TiptapMenuSubscript,
27
23
  TiptapMenuSuperscript,
28
24
  TiptapMenuTable,
29
- TiptapMenuUndo,
30
25
  TiptapMenuVideo,
31
26
  } from "../../icons";
32
27
 
@@ -45,7 +40,7 @@ export interface CommandMenuItem {
45
40
 
46
41
  export const getCommandItems = (
47
42
  translations: TiptapTranslations,
48
- hasImageHandlers: boolean
43
+ hasImageHandlers: boolean,
49
44
  ): CommandMenuItem[] => [
50
45
  // Undo/Redo group
51
46
  // {
@@ -441,10 +441,12 @@ export const BaseLegacyFigure = Image.extend<FigureOptions>({
441
441
  selectable: false,
442
442
 
443
443
  addOptions() {
444
+ const parentOptions = this.parent?.() || {};
444
445
  return {
446
+ ...parentOptions,
445
447
  HTMLAttributes: {},
446
448
  getImageById: undefined,
447
- };
449
+ } as FigureOptions;
448
450
  },
449
451
 
450
452
  addAttributes() {
@@ -1,5 +1,4 @@
1
1
  import { mergeAttributes, Node } from "@tiptap/core";
2
- import { TextSelection } from "@tiptap/pm/state";
3
2
  import { handleExitNode } from "../../utils/handle-exit-node";
4
3
 
5
4
  export const BaseMythRealityBlock = Node.create({