rj-editor 1.2.0 → 1.3.1

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.
@@ -1,4 +1,5 @@
1
1
  export type InsertCodeBlockPayload = {
2
2
  code?: string;
3
3
  language: string;
4
+ title?: string;
4
5
  };
@@ -43,6 +43,7 @@ export type RJEditorTranslations = {
43
43
  copied: string;
44
44
  copy: string;
45
45
  language: string;
46
+ title: string;
46
47
  };
47
48
  fullscreen: {
48
49
  close: string;
@@ -0,0 +1 @@
1
+ export declare function normalizePastedCodeBlockHtml(html: string): string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rj-editor",
3
- "version": "1.2.0",
3
+ "version": "1.3.1",
4
4
  "description": "React rich text editor: toolbar tabs, table, image, link, YouTube, i18n, theme va Ant Design Form integratsiyasi.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -56,6 +56,7 @@
56
56
  },
57
57
  "dependencies": {
58
58
  "@lexical/code-core": "^0.44.0",
59
+ "@lexical/code-prism": "^0.44.0",
59
60
  "@lexical/history": "^0.44.0",
60
61
  "@lexical/html": "^0.44.0",
61
62
  "@lexical/link": "^0.44.0",
@@ -69,11 +70,13 @@
69
70
  "antd": "^6.4.3",
70
71
  "katex": "^0.17.0",
71
72
  "lexical": "^0.44.0",
73
+ "prismjs": "^1.30.0",
72
74
  "react-redux": "^9.3.0"
73
75
  },
74
76
  "devDependencies": {
75
77
  "@eslint/js": "^10.0.1",
76
78
  "@types/node": "^24.12.3",
79
+ "@types/prismjs": "^1.26.6",
77
80
  "@types/react": "^19.2.14",
78
81
  "@types/react-dom": "^19.2.3",
79
82
  "@vitejs/plugin-react": "^6.0.1",