magic-editor-x 1.5.1 → 2.0.0

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.
Files changed (97) hide show
  1. package/CHANGELOG.md +268 -0
  2. package/LICENSE +1 -7
  3. package/README.md +317 -1078
  4. package/dist/admin/ConfigurationPage-B1uCIE3J.js +767 -0
  5. package/dist/admin/ConfigurationPage-DvAifELO.mjs +767 -0
  6. package/dist/admin/CustomBlocksPage-6-OQwpXQ.mjs +1741 -0
  7. package/dist/admin/CustomBlocksPage-6eWCOreU.js +1743 -0
  8. package/dist/admin/EditorField-DocyD2Q3.js +5506 -0
  9. package/dist/admin/EditorField-ThSoOCPm.mjs +5471 -0
  10. package/dist/admin/api-B-RsxJCs.js +34 -0
  11. package/dist/admin/api-C4XsDZxd.mjs +35 -0
  12. package/dist/admin/de-B8XFFhHh.js +95 -0
  13. package/dist/admin/de-BMxADn2Z.mjs +231 -0
  14. package/dist/admin/de-DBR893G4.js +13 -0
  15. package/dist/admin/de-DcDPRzV4.js +155 -0
  16. package/dist/admin/de-Dx7vUW0Z.js +231 -0
  17. package/dist/admin/de-RAxzvrwm.mjs +95 -0
  18. package/dist/admin/de-fBFh09Wl.mjs +13 -0
  19. package/dist/admin/de-n5V6c5RT.mjs +155 -0
  20. package/dist/admin/en-BQ5Pxe2o.mjs +231 -0
  21. package/dist/admin/en-BqNm3nMQ.mjs +155 -0
  22. package/dist/admin/en-BzfyifEU.mjs +95 -0
  23. package/dist/admin/en-D-DGftl0.js +155 -0
  24. package/dist/admin/en-D9Nfccux.mjs +13 -0
  25. package/dist/admin/en-DcWUTE2J.js +95 -0
  26. package/dist/admin/en-gueRT44P.js +13 -0
  27. package/dist/admin/en-sNn4z9lA.js +231 -0
  28. package/dist/admin/es-B0Zy8DVg.mjs +13 -0
  29. package/dist/admin/es-B6NYq0VH.mjs +231 -0
  30. package/dist/admin/es-BOtVc9qv.js +95 -0
  31. package/dist/admin/es-C2OJVYkV.mjs +95 -0
  32. package/dist/admin/es-DRGs7meF.js +13 -0
  33. package/dist/admin/es-DVsXnS0N.js +231 -0
  34. package/dist/admin/es-Di0pyQCh.js +155 -0
  35. package/dist/admin/es-SzeTV4q8.mjs +155 -0
  36. package/dist/admin/fr-B8rdLAIL.js +13 -0
  37. package/dist/admin/fr-Bpo5Uq1f.mjs +95 -0
  38. package/dist/admin/fr-D6F--jIB.js +155 -0
  39. package/dist/admin/fr-DfxKaOc_.js +95 -0
  40. package/dist/admin/fr-DhgPYHIH.mjs +155 -0
  41. package/dist/admin/fr-DmG3_Cn-.mjs +231 -0
  42. package/dist/admin/fr-Fwxcj4SM.js +231 -0
  43. package/dist/admin/fr-oiUb2bb_.mjs +13 -0
  44. package/dist/admin/index-CwfaB5-e.js +155 -0
  45. package/dist/admin/index-D1Q5Rlt6.mjs +156 -0
  46. package/dist/admin/index.js +3 -2
  47. package/dist/admin/index.mjs +1 -1
  48. package/dist/admin/pt-B3Jce6uT.mjs +13 -0
  49. package/dist/admin/pt-BPo0ex21.js +155 -0
  50. package/dist/admin/pt-BbdwHlWF.mjs +231 -0
  51. package/dist/admin/pt-BiWuSBcH.js +13 -0
  52. package/dist/admin/pt-BvSl1btT.mjs +155 -0
  53. package/dist/admin/pt-C6nr71Yw.js +231 -0
  54. package/dist/admin/pt-DqCXuI4S.mjs +95 -0
  55. package/dist/admin/pt-LCvjwk0y.js +95 -0
  56. package/dist/admin/sanitize-9UVcXFfc.js +552 -0
  57. package/dist/admin/sanitize-D4kfZ_ly.mjs +551 -0
  58. package/dist/admin/useT-B5M49wGH.js +130 -0
  59. package/dist/admin/useT-CjX6fL2m.mjs +131 -0
  60. package/dist/server/index.js +4531 -39542
  61. package/dist/server/index.mjs +4534 -39527
  62. package/package.json +111 -74
  63. package/strapi-admin.js +3 -0
  64. package/strapi-server.js +3 -0
  65. package/COPYRIGHT_NOTICE.txt +0 -20
  66. package/dist/_chunks/App-DImBvISP.js +0 -2146
  67. package/dist/_chunks/App-iNfbV7cz.mjs +0 -2143
  68. package/dist/_chunks/CustomBlocksPage-COPOZ2-_.mjs +0 -1517
  69. package/dist/_chunks/CustomBlocksPage-Cj-0TTUs.js +0 -1519
  70. package/dist/_chunks/LicensePage-CmvILX9m.js +0 -393
  71. package/dist/_chunks/LicensePage-gLRoo8WJ.mjs +0 -391
  72. package/dist/_chunks/LiveCollaborationPanel-BFybu8h0.js +0 -222
  73. package/dist/_chunks/LiveCollaborationPanel-CVgl4IyR.mjs +0 -220
  74. package/dist/_chunks/Settings-ButYcfrm.mjs +0 -438
  75. package/dist/_chunks/Settings-BzGqgrxD.js +0 -440
  76. package/dist/_chunks/de-C_0Mj-Zo.mjs +0 -296
  77. package/dist/_chunks/de-DVNVpAt9.js +0 -296
  78. package/dist/_chunks/en-B7AAf1ie.mjs +0 -296
  79. package/dist/_chunks/en-C2hv5GsA.js +0 -296
  80. package/dist/_chunks/es-BzJqcIST.js +0 -274
  81. package/dist/_chunks/es-zdP8sd-f.mjs +0 -274
  82. package/dist/_chunks/fr-CtAgOgH1.mjs +0 -274
  83. package/dist/_chunks/fr-D3GwqAAJ.js +0 -274
  84. package/dist/_chunks/getTranslation-BADoesEn.js +0 -57807
  85. package/dist/_chunks/getTranslation-D3h3Z3gU.mjs +0 -57791
  86. package/dist/_chunks/index-BXBnwuRw.js +0 -2158
  87. package/dist/_chunks/index-BvEdg518.mjs +0 -2159
  88. package/dist/_chunks/index-DDFAuQNT.js +0 -6955
  89. package/dist/_chunks/index-DEi6nwfM.mjs +0 -6933
  90. package/dist/_chunks/pt-BmUw6YMP.mjs +0 -274
  91. package/dist/_chunks/pt-CFo0nTbj.js +0 -274
  92. package/dist/_chunks/tools-BXzd0lx5.mjs +0 -2265
  93. package/dist/_chunks/tools-Q0uwDS9E.js +0 -2296
  94. package/dist/style.css +0 -1103
  95. package/pics/collab-magiceditorX.png +0 -0
  96. package/pics/editorX.png +0 -0
  97. package/pics/liveCollabwidget1.png +0 -0
package/package.json CHANGED
@@ -1,16 +1,34 @@
1
1
  {
2
2
  "name": "magic-editor-x",
3
- "version": "1.5.1",
4
- "description": "Advanced block-based editor for Strapi v5 with Editor.js, Media Library integration, and real-time collaboration support",
3
+ "version": "2.0.0",
4
+ "description": "Free, open-source block editor for Strapi 5: Editor.js custom field with Media Library uploads, custom blocks, version history, live collaboration across several servers and an optional AI assistant with your own provider.",
5
5
  "keywords": [
6
6
  "strapi",
7
- "plugin",
7
+ "strapi-plugin",
8
+ "strapi-v5",
9
+ "strapi5",
8
10
  "editor-js",
9
- "wysiwyg",
11
+ "editorjs",
10
12
  "block-editor",
11
- "strapi-v5"
13
+ "rich-text",
14
+ "wysiwyg",
15
+ "custom-field",
16
+ "collaboration",
17
+ "yjs",
18
+ "version-history",
19
+ "ai"
12
20
  ],
21
+ "license": "MIT",
22
+ "author": "Schero D.",
13
23
  "type": "commonjs",
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://github.com/Schero94/Magic-Editor-X.git"
27
+ },
28
+ "bugs": {
29
+ "url": "https://github.com/Schero94/Magic-Editor-X/issues"
30
+ },
31
+ "homepage": "https://schero94.github.io/Magic-Editor-X/",
14
32
  "exports": {
15
33
  "./package.json": "./package.json",
16
34
  "./strapi-admin": {
@@ -28,96 +46,115 @@
28
46
  },
29
47
  "files": [
30
48
  "dist",
49
+ "strapi-admin.js",
50
+ "strapi-server.js",
31
51
  "README.md",
32
52
  "LICENSE",
33
- "COPYRIGHT_NOTICE.txt",
34
- "pics"
53
+ "CHANGELOG.md"
35
54
  ],
55
+ "publishConfig": {
56
+ "access": "public"
57
+ },
36
58
  "scripts": {
37
- "build": "strapi-plugin build",
59
+ "clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
60
+ "prebuild": "npm run clean",
61
+ "build": "strapi-plugin build && node scripts/build-server-bundle.mjs",
62
+ "postbuild": "npm run verify:runtime",
38
63
  "watch": "strapi-plugin watch",
39
64
  "watch:link": "strapi-plugin watch:link",
40
- "verify": "strapi-plugin verify"
65
+ "verify": "strapi-plugin verify",
66
+ "verify:runtime": "node scripts/verify-server-bundle.mjs",
67
+ "lint": "eslint .",
68
+ "lint:fix": "eslint . --fix",
69
+ "format": "prettier --write .",
70
+ "format:check": "prettier --check .",
71
+ "test": "node --test --test-concurrency=4 \"tests/*.test.mjs\"",
72
+ "test:integration": "node --test --test-concurrency=1 \"tests/integration/*.test.mjs\"",
73
+ "prepack": "npm run build",
74
+ "docs:llms": "node scripts/build-llms-full.mjs"
41
75
  },
42
76
  "dependencies": {
43
- "@calumk/editorjs-codeflask": "^1.0.10",
44
- "@editorjs/attaches": "^1.3.0",
45
- "@editorjs/checklist": "^1.6.0",
46
- "@editorjs/code": "^2.9.3",
47
- "@editorjs/delimiter": "^1.4.2",
48
- "@editorjs/editorjs": "^2.31.0",
49
- "@editorjs/embed": "^2.7.6",
50
- "@editorjs/header": "^2.8.8",
51
- "@editorjs/image": "^2.10.1",
52
- "@editorjs/inline-code": "^1.5.1",
53
- "@editorjs/link": "^2.6.2",
54
- "@editorjs/marker": "^1.4.0",
55
- "@editorjs/nested-list": "^1.4.3",
56
- "@editorjs/paragraph": "^2.11.6",
57
- "@editorjs/personality": "^2.0.2",
58
- "@editorjs/quote": "^2.7.2",
59
- "@editorjs/raw": "^2.5.0",
60
- "@editorjs/simple-image": "^1.6.0",
61
- "@editorjs/table": "^2.4.2",
62
- "@editorjs/text-variant-tune": "^1.0.2",
63
- "@editorjs/underline": "^1.1.0",
64
- "@editorjs/warning": "^1.4.0",
65
- "@heroicons/react": "^2.2.0",
66
- "@sotaproject/strikethrough": "^1.0.1",
67
- "editorjs-alert": "^1.1.4",
68
- "editorjs-drag-drop": "^1.1.16",
69
- "editorjs-indent-tune": "^1.4.3",
70
- "editorjs-text-alignment-blocktune": "^1.0.3",
71
- "editorjs-toggle-block": "^0.3.16",
72
- "editorjs-tooltip": "^1.2.2",
73
- "editorjs-undo": "^2.0.28",
74
- "open-graph-scraper": "^6.8.3",
77
+ "@editorjs/attaches": "^1.3.2",
78
+ "@editorjs/code": "^2.9.4",
79
+ "@editorjs/editorjs": "^2.31.7",
80
+ "@editorjs/embed": "^2.8.0",
81
+ "@editorjs/header": "^2.8.9",
82
+ "@editorjs/image": "^2.10.3",
83
+ "@editorjs/inline-code": "^1.5.2",
84
+ "@editorjs/list": "^2.0.9",
85
+ "@editorjs/paragraph": "^2.11.7",
86
+ "@editorjs/quote": "^2.7.6",
87
+ "@editorjs/raw": "^2.5.1",
88
+ "@editorjs/table": "^2.4.6",
89
+ "@editorjs/warning": "^1.4.1",
90
+ "editorjs-indent-tune": "^1.4.4",
91
+ "dompurify": "^3.4.17",
92
+ "ipaddr.js": "^2.5.0",
93
+ "open-graph-scraper": "^6.13.0",
75
94
  "prismjs": "^1.30.0",
76
- "socket.io": "^4.8.1",
77
- "socket.io-client": "^4.8.1",
78
- "y-indexeddb": "^9.0.12",
79
- "y-socket.io": "^1.1.3",
80
- "yjs": "^13.6.15"
95
+ "sanitize-html": "^2.18.1",
96
+ "socket.io": "^4.8.4",
97
+ "socket.io-client": "^4.8.4",
98
+ "yjs": "^13.6.33",
99
+ "zod": "^4.6.7"
81
100
  },
82
101
  "devDependencies": {
83
- "@semantic-release/changelog": "^6.0.3",
84
- "@semantic-release/commit-analyzer": "^13.0.0",
85
- "@semantic-release/git": "^10.0.1",
86
- "@semantic-release/github": "^11.0.1",
87
- "@semantic-release/npm": "^12.0.1",
88
- "@semantic-release/release-notes-generator": "^14.0.1",
89
- "@strapi/design-system": "^2.0.2",
90
- "@strapi/icons": "^2.0.2",
91
- "@strapi/sdk-plugin": "^5.3.2",
92
- "@strapi/strapi": "^5.36.0",
93
- "prettier": "^3.7.3",
102
+ "@eslint/js": "^10.0.1",
103
+ "@semantic-release/changelog": "^7.0.0",
104
+ "@semantic-release/commit-analyzer": "^13.0.1",
105
+ "@semantic-release/git": "^11.0.1",
106
+ "@semantic-release/github": "^12.0.10",
107
+ "@semantic-release/npm": "^13.2.0",
108
+ "@semantic-release/release-notes-generator": "^14.1.1",
109
+ "@strapi/design-system": "2.2.4",
110
+ "@strapi/icons": "2.2.4",
111
+ "@strapi/sdk-plugin": "^6.1.1",
112
+ "@strapi/strapi": "^5.61.1",
113
+ "@strapi/utils": "^5.61.1",
114
+ "better-sqlite3": "^13.0.3",
115
+ "esbuild": "^0.28.2",
116
+ "eslint": "^10.14.0",
117
+ "eslint-config-prettier": "^10.1.8",
118
+ "eslint-plugin-react-hooks": "^7.1.1",
119
+ "globals": "^17.14.0",
120
+ "pg": "^8.23.1",
121
+ "prettier": "^3.10.0",
94
122
  "react": "^18.3.1",
95
123
  "react-dom": "^18.3.1",
96
- "react-router-dom": "^6.30.2",
97
- "semantic-release": "^25.0.2",
98
- "styled-components": "^6.3.8"
124
+ "react-intl": "^6.8.9",
125
+ "react-router-dom": "^6.30.6",
126
+ "semantic-release": "^25.0.9",
127
+ "styled-components": "^6.6.0"
99
128
  },
100
129
  "peerDependencies": {
101
- "@strapi/sdk-plugin": "^5.3.2",
102
- "@strapi/strapi": "^5.36.0",
103
- "react": "^18.3.1",
104
- "react-dom": "^18.3.1",
105
- "react-router-dom": "^6.30.2",
106
- "styled-components": "^6.3.8"
130
+ "@strapi/design-system": "^2.2.0",
131
+ "@strapi/icons": "^2.2.0",
132
+ "@strapi/strapi": "^5.38.0",
133
+ "@strapi/utils": "^5.38.0",
134
+ "react": "^18.0.0",
135
+ "react-dom": "^18.0.0",
136
+ "react-intl": "^6.6.2",
137
+ "react-router-dom": "^6.30.0",
138
+ "styled-components": "^6.0.0"
139
+ },
140
+ "peerDependenciesMeta": {
141
+ "@strapi/design-system": {
142
+ "optional": true
143
+ },
144
+ "@strapi/icons": {
145
+ "optional": true
146
+ },
147
+ "react-intl": {
148
+ "optional": true
149
+ }
107
150
  },
108
- "overrides": {
109
- "prismjs": "^1.30.0"
151
+ "engines": {
152
+ "node": ">=22.0.0 <=26.x.x"
110
153
  },
111
154
  "strapi": {
112
155
  "kind": "plugin",
113
156
  "name": "magic-editor-x",
114
157
  "displayName": "Magic Editor X",
115
158
  "description": "Advanced block-based editor with Editor.js for Strapi v5"
116
- },
117
- "license": "MIT",
118
- "author": "Schero D. <schero1894@gmail.com>",
119
- "repository": {
120
- "type": "git",
121
- "url": "https://github.com/Schero94/magic-editor-x.git"
122
159
  }
123
160
  }
@@ -0,0 +1,3 @@
1
+ 'use strict';
2
+
3
+ module.exports = require('./dist/admin/index.js');
@@ -0,0 +1,3 @@
1
+ 'use strict';
2
+
3
+ module.exports = require('./dist/server/index.js');
@@ -1,20 +0,0 @@
1
- /**
2
- * Magic Editor X - Advanced Block Editor for Strapi
3
- *
4
- * Copyright (c) 2025 Schero D.
5
- *
6
- * Licensed under the MIT License
7
- *
8
- * This plugin is free to use for personal and commercial projects.
9
- *
10
- * IMPORTANT RESTRICTION:
11
- * The license validation system (license-service.js, license-controller.js
12
- * and related components) must remain intact and functional. Removing or
13
- * bypassing this system is strictly prohibited.
14
- *
15
- * See LICENSE file for full terms.
16
- *
17
- * Repository: https://github.com/Schero94/magic-editor-x
18
- * Issues: https://github.com/Schero94/magic-editor-x/issues
19
- */
20
-