magic-editor-x 2.4.0 → 2.5.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 (95) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/README.md +129 -6
  3. package/bin/magic-editor-x.mjs +55 -8
  4. package/dist/admin/{AuditPage-guB0SiGS.mjs → AuditPage-Be78C7EC.mjs} +4 -3
  5. package/dist/admin/{AuditPage-C2u6z4aN.js → AuditPage-iQzpjH8H.js} +7 -6
  6. package/dist/admin/{ConfigurationPage-DiEpF1Rr.mjs → ConfigurationPage-C9CPBfWy.mjs} +186 -6
  7. package/dist/admin/{ConfigurationPage-D6uya-J1.js → ConfigurationPage-DefuBeYO.js} +191 -11
  8. package/dist/admin/Content-BttG50Mc.mjs +360 -0
  9. package/dist/admin/Content-V5MRBsI3.js +362 -0
  10. package/dist/admin/{CustomBlocksPage-Byt10-6c.mjs → CustomBlocksPage-DB5nnCsn.mjs} +5 -4
  11. package/dist/admin/{CustomBlocksPage-DP3h_wNd.js → CustomBlocksPage-Dg2rM3F4.js} +8 -7
  12. package/dist/admin/EntryWidgets-B8YA0Zxy.mjs +199 -0
  13. package/dist/admin/EntryWidgets-BcXAAx3F.js +201 -0
  14. package/dist/admin/{MentionsWidget-sMkM9mHX.mjs → MentionsWidget-CJPZDk9Z.mjs} +2 -2
  15. package/dist/admin/{MentionsWidget-C2OCAmqq.js → MentionsWidget-DUz6YVIG.js} +2 -2
  16. package/dist/admin/{useT-CLPhBmBC.mjs → SectionCard-8ZNHkvn9.mjs} +2 -12
  17. package/dist/admin/{useT-BXJLIPN4.js → SectionCard-Bs-xiiH1.js} +0 -10
  18. package/dist/admin/{TemplatesPage-Yp4OqFE2.mjs → TemplatesPage-VsZ_Mc0R.mjs} +6 -5
  19. package/dist/admin/{TemplatesPage-DrSJdteI.js → TemplatesPage-dx4_yd_t.js} +13 -12
  20. package/dist/admin/{api-bix9RLLI.js → api-4AYzwS4-.js} +9 -1
  21. package/dist/admin/{api-2ZRpHM3d.mjs → api-CcTYyckq.mjs} +9 -1
  22. package/dist/admin/{de-zcV8D7nt.js → de-B6rdcOqQ.js} +103 -1
  23. package/dist/admin/{de-1cFMs-4c.mjs → de-BWfR2jTg.mjs} +8 -1
  24. package/dist/admin/{de-DiCZrmH8.mjs → de-Bip0sBRT.mjs} +19 -1
  25. package/dist/admin/{de-Dn8athM8.js → de-BrPR4sUB.js} +8 -1
  26. package/dist/admin/{de-CKz6CG3V.mjs → de-CQA8hOpl.mjs} +103 -1
  27. package/dist/admin/{de-CbBDnXeT.js → de-CnnxKXj7.js} +19 -1
  28. package/dist/admin/{de-BhhGss1l.js → de-Dss5POqk.js} +12 -1
  29. package/dist/admin/{de-BNPIGqhs.mjs → de-zgHCYTLH.mjs} +12 -1
  30. package/dist/admin/{en-CIZ5Ggod.js → en--JjAHbpP.js} +8 -1
  31. package/dist/admin/{en-cYzqbASF.mjs → en-BCKaVgBM.mjs} +103 -1
  32. package/dist/admin/{en-B9ApE1y1.js → en-CJ17Sp_e.js} +12 -1
  33. package/dist/admin/{en-BMWhILnj.js → en-CbGkcq0Q.js} +103 -1
  34. package/dist/admin/{en-DCPMqFIa.mjs → en-Cd6Jk-J0.mjs} +19 -1
  35. package/dist/admin/{en-CpehF0Kv.js → en-D69Fe9ZO.js} +19 -1
  36. package/dist/admin/{en-Dc9y-6n9.mjs → en-Dr58wBAo.mjs} +8 -1
  37. package/dist/admin/{en-gFLeK9Ng.mjs → en-Uhm7OouM.mjs} +12 -1
  38. package/dist/admin/entry-panel-events-0msyPrAD.js +18 -0
  39. package/dist/admin/entry-panel-events-XRuUoLZ9.mjs +19 -0
  40. package/dist/admin/{es-D2Kw6E4N.mjs → es-B2Hkkbw9.mjs} +8 -1
  41. package/dist/admin/{es-BmwBgEgz.mjs → es-BMkmfH88.mjs} +12 -1
  42. package/dist/admin/{es-Chs37IBR.mjs → es-Bz8d72Fa.mjs} +19 -1
  43. package/dist/admin/{es-CQPh8PXw.js → es-C8UotT8O.js} +103 -1
  44. package/dist/admin/{es-CawpzwyC.js → es-CcEDZpVQ.js} +19 -1
  45. package/dist/admin/{es-C0W31rl8.js → es-DJm3HFJt.js} +12 -1
  46. package/dist/admin/{es-C4IRHV5d.js → es-YvaTAtqY.js} +8 -1
  47. package/dist/admin/{es-DCamt1ek.mjs → es-pvPfNAld.mjs} +103 -1
  48. package/dist/admin/{fr-BOvvfEH7.mjs → fr-BvPjRiwr.mjs} +8 -1
  49. package/dist/admin/{fr-Dp5-XP29.mjs → fr-CKHZ0xxU.mjs} +19 -1
  50. package/dist/admin/{fr-iGeIfEcU.js → fr-CRM9VuAq.js} +12 -1
  51. package/dist/admin/{fr-CMWBNE5D.mjs → fr-CrIHmKYX.mjs} +12 -1
  52. package/dist/admin/{fr-COOsqexl.js → fr-Cx29jQ_g.js} +19 -1
  53. package/dist/admin/{fr-oW0t8bT5.mjs → fr-D4tL6Ag2.mjs} +103 -1
  54. package/dist/admin/{fr-Zkb8vfjN.js → fr-Di-U-rAH.js} +8 -1
  55. package/dist/admin/{fr-DpC44Ol8.js → fr-DrUYv2jh.js} +103 -1
  56. package/dist/admin/{index-BVjf1gVC.mjs → index-C4ksUkEm.mjs} +9183 -6353
  57. package/dist/admin/{index-64wc26Bl.js → index-C5D3VqLq.js} +9170 -6340
  58. package/dist/admin/{index-D_Fv8Non.mjs → index-CMYCZWOh.mjs} +1053 -190
  59. package/dist/admin/{index-D6Z7i8ba.js → index-DRyctF9s.js} +961 -98
  60. package/dist/admin/index.js +1 -1
  61. package/dist/admin/index.mjs +2 -2
  62. package/dist/admin/{math-vsK_06ZR.js → math-D6jmskGS.js} +1 -1
  63. package/dist/admin/{math-CIQ4Z_mY.mjs → math-DntdSWKX.mjs} +1 -1
  64. package/dist/admin/{pt-DALDvfBn.mjs → pt-B8x7v-Xw.mjs} +19 -1
  65. package/dist/admin/{pt-DXy7G1x7.js → pt-BYn2xx78.js} +19 -1
  66. package/dist/admin/{pt-Bo0Pm_Pt.js → pt-CojQcz-p.js} +103 -1
  67. package/dist/admin/{pt-uGpfRQLC.mjs → pt-CuoIihKx.mjs} +103 -1
  68. package/dist/admin/{pt-1IUyx6ae.js → pt-CzrN_3ui.js} +8 -1
  69. package/dist/admin/{pt-DFNgZ5_k.mjs → pt-DDlPJYtB.mjs} +12 -1
  70. package/dist/admin/{pt-BHmXk2d9.js → pt-DPVAycXJ.js} +12 -1
  71. package/dist/admin/{pt-etwsg3G4.mjs → pt-DdGagO99.mjs} +8 -1
  72. package/dist/admin/useT-Bpw__IXT.js +12 -0
  73. package/dist/admin/useT-Cb-R3kyA.mjs +13 -0
  74. package/dist/blocks/index.d.mts +124 -0
  75. package/dist/blocks/index.d.ts +124 -0
  76. package/dist/blocks/index.js +172 -3
  77. package/dist/blocks/index.mjs +172 -3
  78. package/dist/math/index.js +6 -2
  79. package/dist/math/index.mjs +6 -2
  80. package/dist/react/index.js +1376 -1067
  81. package/dist/react/index.mjs +1376 -1067
  82. package/dist/render/index.d.mts +22 -0
  83. package/dist/render/index.d.ts +22 -0
  84. package/dist/render/index.js +1376 -1067
  85. package/dist/render/index.mjs +1376 -1067
  86. package/dist/server/index.js +28894 -24197
  87. package/dist/server/index.mjs +28893 -24196
  88. package/dist/server/mcp-worker.js +11319 -0
  89. package/dist/vue/index.js +1376 -1067
  90. package/dist/vue/index.mjs +1376 -1067
  91. package/package.json +7 -7
  92. package/schema/magic-editor-x.schema.json +9 -1
  93. package/types/blocks.d.ts +124 -0
  94. package/types/index.d.ts +10 -1
  95. package/types/render.d.ts +22 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,56 @@
1
1
  # Changelog
2
2
 
3
+ # [2.5.0](https://github.com/Schero94/Magic-Editor-X/compare/v2.4.0...v2.5.0) (2026-11-16)
4
+
5
+
6
+ ### Features
7
+
8
+ * entry panel with presence, unsaved-work protection, reuse, palette colours, private media and MCP tools ([#9](https://github.com/Schero94/Magic-Editor-X/issues/9)) ([23d3127](https://github.com/Schero94/Magic-Editor-X/commit/23d31270a8d13aae90c91734af844be1171281d3))
9
+
10
+
11
+ Magic Editor X 2.5 shows who is editing an entry, keeps unsaved work, lets editors reuse content from other entries, starts long entries faster, adds palette colours, superscript, subscript and inline annotations, supports private upload providers and dropped files, and adds optional tools for Strapi's MCP server. Everything new is off by default or appears only when it is relevant; the field toolbar is unchanged.
12
+
13
+ ### Features
14
+
15
+ - **Entry panel:** a Magic Editor X side panel in the Content Manager shows who else is editing the entry (names only, across processes, also without live collaboration), open comment threads and quality issues or broken links per field, each with a button that opens that field's panel. Optional soft lock `presence.softLock` (off): a dialog asks once per tab before you edit an entry someone else is editing; nobody is locked out. Homepage widgets **My open threads** and **Broken links**. Routes `POST /presence`, `GET /entry-summary`, `GET /widgets/open-threads`, `GET /widgets/broken-links`; config `presence.enabled` (true), `presence.softLock` (false), `presence.perMinute` (30).
16
+ - **Unsaved work is kept:** unsaved field content stays in your browser (IndexedDB) and is offered back after a reload, crash, closed tab or ended session with one notice: Restore (one Undo reverts it) or Discard. Never restored automatically over newer saved content. Removed on save, discard, expiry and logout. Config `drafts.enabled` (true), `drafts.ttlHours` (72).
17
+ - **Insert from another entry:** More tools > Write > Insert from another entry copies chosen blocks from any entry, field or language you can read, with a preview and one undo step. Blocks the field does not allow are listed with the reason; synced blocks stay synced; inserted blocks get new ids. Routes `GET /reuse/types`, `GET /reuse/source`; config `reuse.enabled` (true), `reuse.perMinute` (60).
18
+ - **Block clipboard:** blocks copied between Magic Editor X fields, entries and tabs keep all their data and alignment; new **Copy block** in the block menu.
19
+ - **Faster long entries:** Editor.js and the live room of a field start when the field comes near the screen or gets focus (`lazyInit.enabled`, `lazyInit.marginPx` 800). With 20 fields and a dynamic zone, 4 editors and live connections start instead of 20. The benchmark covers 20 fields and up to 250 repeatable and dynamic-zone items.
20
+ - **Palette colours, superscript, subscript, inline annotations:** text colour and highlight from named tokens in the new `palette` config (stored as `data-mex-color`/`data-mex-highlight`, rendered as classes, never inline styles), with a contrast check in Settings and the quality rule `color-contrast`; superscript and subscript; inline annotations with the built-in abbreviation and `registerInlineAnnotation` in `magic-editor-x/blocks` (server-side `resolve`, renderer options `annotations` and `resolveAnnotation`). Field options `inlineColors`, `inlineScript`, `inlineAnnotations`, all off by default.
21
+ - **Private upload providers:** Media Library files in Magic Editor X values are stored with their file id and unsigned URL and signed in batches on every Content API, GraphQL and `?mex=` read and in the editor. New route `POST /media/signed-urls`; `GET /config` adds `uploads.privateFiles`.
22
+ - **Drop files onto a field** (Strapi 5.61+): they are uploaded through Strapi's Media Library drop zone and inserted as image, video or audio blocks; older hosts keep the previous behaviour.
23
+ - **Tools for AI clients (MCP):** with `mcp.enabled` (false) and Strapi's `server.mcp.enabled`, tools `mex_from_markdown`, `mex_from_html`, `mex_validate`, `mex_render`, one JSON Schema resource per preset and the prompt `mex_content_guide`. Pure transformations in a worker thread with a time limit; new action `plugin::magic-editor-x.mcp.use` (no role gets it automatically).
24
+
25
+ ### Bug Fixes
26
+
27
+ - Tab and other keys work in every Magic Editor X dialog and in other form fields while an editor has a current block (Editor.js handled keys typed anywhere on the page).
28
+ - Text typed into an empty field in a live room now reaches the other editors (0 of 1 edits arrived in 2.4.0), and other people's edits no longer move your focus.
29
+ - Discarding a draft keeps version history and comments of sections whose published version predates 2.4.
30
+ - A section emptied and saved keeps its history and comments (its `fieldKey` is remembered while the value is `null`).
31
+ - Saving a synced block without changes no longer creates a version.
32
+ - Mention e-mails use the recipient's admin language (en, de, fr, es, pt).
33
+ - The inline toolbar wraps inside the field on narrow screens instead of running off the left edge.
34
+ - Focus returns into gallery, video and audio blocks after the Media Library picker closes.
35
+ - No Radix accessibility warning in the console for the plugin's dialogs on Strapi 5.62 (Design System 2.3.1).
36
+ - Installing on Node 22 no longer warns with EBADENGINE (see the migration notes); CI installs the packed package on Node 22 and fails on any EBADENGINE.
37
+
38
+ ### Deferred
39
+
40
+ - Component blocks (Content-Type Builder components as blocks) move to 2.6. They worked in single-editor tests, but a stress test of two editors in one live room (CPU throttled 4x) lost a collaborator's edit: the component form sent all its values on every keystroke, so a value that had arrived from the room but was not drawn yet was overwritten (3 of 8 rounds), and the same happened inside one attribute (1 of 4 rounds). The cause is found and a fix with regression tests is on the branch `feat/2.5-components`; it ships when the stress and cluster runs show no lost edit.
41
+ - Live Preview inline editing for Magic Editor X fields: in Strapi 5.61 the side editor and its messages are internal, live preview is experimental and needs a Growth or Enterprise plan, and content source maps skip JSON custom fields.
42
+ - Columns/layout block: the 2.5 spike measured blockers on Editor.js 2.31 (moving a block between columns while someone edits it loses the edit without a new collaboration schema; nested editors handle keys twice; comments, suggestions, quality, find/replace and AI address top-level blocks only). See `docs/engine-decision.md`.
43
+ - Session-expiry warning: Strapi does not expose to the browser when an admin session ends; local drafts cover lost sessions instead.
44
+
45
+ ### Migration notes
46
+
47
+ - `engines.node` is now `>=22.12.0 <=26.x.x`. This declares the floor that the dependency sanitize-html 2.18 already required since 2.4.0; installs on Node 22.12 or later no longer warn with EBADENGINE.
48
+ - `@editorjs/embed` is pinned to 2.7.7, because 2.8.0 requires Node 24. YouTube Shorts and Figma embeds, which 2.8.0 added, are defined by the plugin, so nothing changes for editors; the Figma pattern now requires a Figma document URL.
49
+ - No breaking changes and nothing to do for public upload providers.
50
+ - With a private upload provider, migration `2.5.0-media-file-ids` adds `fileId` to media in Magic Editor X values once at startup (idempotent, under the migration lease). Dry run: `npx magic-editor-x media-file-ids`; apply again: `--apply`.
51
+ - Fields start lazily: scripts and tests that wait for `[data-mex-ready="true"]` must scroll the field into view first, or set `lazyInit.enabled: false`.
52
+ - New config keys `presence`, `drafts`, `lazyInit`, `reuse`, `palette` and `mcp` are optional.
53
+
3
54
  # [2.4.0](https://github.com/Schero94/Magic-Editor-X/compare/v2.3.1...v2.4.0) (2026-11-12)
4
55
 
5
56
 
package/README.md CHANGED
@@ -13,6 +13,7 @@ Live docs: <https://schero94.github.io/Magic-Editor-X/>
13
13
 
14
14
  ## Contents
15
15
 
16
+ - [Getting started in 3 steps](#getting-started-in-3-steps)
16
17
  - [Features](#features)
17
18
  - [Screenshots](#screenshots)
18
19
  - [Core concepts](#core-concepts)
@@ -33,6 +34,7 @@ Live docs: <https://schero94.github.io/Magic-Editor-X/>
33
34
  - [Version history](#version-history)
34
35
  - [Quality checks](#quality-checks)
35
36
  - [Audit trail](#audit-trail)
37
+ - [Working together and reusing content (2.5)](#working-together-and-reusing-content-25)
36
38
  - [Data format](#data-format)
37
39
  - [Rendering content](#rendering-content)
38
40
  - [Content API and GraphQL output](#content-api-and-graphql-output)
@@ -41,6 +43,7 @@ Live docs: <https://schero94.github.io/Magic-Editor-X/>
41
43
  - [Admin API and permissions](#admin-api-and-permissions)
42
44
  - [Security and privacy](#security-and-privacy)
43
45
  - [Troubleshooting](#troubleshooting)
46
+ - [Upgrading from 2.4](#upgrading-from-24)
44
47
  - [Upgrading from 2.3](#upgrading-from-23)
45
48
  - [Upgrading from 2.2](#upgrading-from-22)
46
49
  - [Migrating from 1.x](#migrating-from-1x)
@@ -49,6 +52,14 @@ Live docs: <https://schero94.github.io/Magic-Editor-X/>
49
52
  - [Languages](#languages)
50
53
  - [License](#license)
51
54
 
55
+ ## Getting started in 3 steps
56
+
57
+ For editors who open an entry with a Magic Editor X field for the first time:
58
+
59
+ 1. **Write.** Click into the field and type. Press **+** at the start of an empty line, or type **/**, to add a heading, list, image, table or any other block. Select text to make it bold, add a link or start a comment.
60
+ 2. **Find the extras.** Everything beyond writing is in one place: **More tools** above the field (Review: comments, history, quality, suggestions; Write: AI, templates, insert from another entry; View: preview, focus, shortcuts). A block's own menu (**⋮⋮** next to it) moves, copies or changes that block.
61
+ 3. **Save.** Use **Save** in the Content Manager as usual. The **Magic Editor X** panel next to the entry shows who else is editing it, open comments and quality problems. If your browser crashes before you save, the field offers your unsaved changes back the next time you open the entry.
62
+
52
63
  ## Features
53
64
 
54
65
  Every feature is available in every installation. There is nothing to activate, no tiers and no usage limits. The plugin makes outgoing requests only for link previews, images and media by URL, the external link check and the AI provider and LanguageTool server the owner configured, and only when someone uses one of these features (see [Security and privacy](#security-and-privacy)). Mention e-mails, when the owner turns them on, go through your own Strapi email plugin.
@@ -78,6 +89,13 @@ Every feature is available in every installation. There is nothing to activate,
78
89
  - **Live collaboration:** several admins edit the same field at the same time with character-level merging, presence avatars and read-only viewers. Works with several Node processes behind a load balancer without sticky sessions.
79
90
  - **AI assistant:** improve, fix grammar, shorten, expand, summarize, simplify, translate, change tone and continue writing, using Anthropic, OpenAI or any OpenAI-compatible server (for example a local model) with your own key, on selected text or on chosen blocks. Optional, each behind its own owner switch: alternative text suggestions for images and translate or summarize a whole field. See [AI assistant](#ai-assistant).
80
91
  - **Grammar check:** spelling and grammar of a whole field with a LanguageTool server (self-hosted or hosted), off until the owner turns it on. See [Grammar check (LanguageTool)](#grammar-check-languagetool).
92
+ - **Entry panel (2.5):** a Magic Editor X panel next to every entry shows who else is editing it, open comment threads and quality problems per field; optional soft lock that asks once before you edit an entry someone else is editing. Homepage widgets "My open threads" and "Broken links".
93
+ - **Unsaved work is kept (2.5):** unsaved field content stays in your browser and is offered back after a reload, crash, closed tab or ended session.
94
+ - **Reuse (2.5):** insert blocks from another entry, field or language with a preview, and copy blocks between fields with everything they contain.
95
+ - **Many fields (2.5):** fields start only when they come near the screen, so long entries open fast.
96
+ - **Colours from your palette (2.5):** text colour and highlight from named tokens you define (no free colours, no inline styles), superscript and subscript, and inline annotations such as abbreviations. All off until a field turns them on.
97
+ - **Private upload providers (2.5):** files of private storage (for example a private S3 bucket) are signed on every read and never stored signed. Drop files onto a field to upload and insert them.
98
+ - **Tools for AI clients (2.5):** optional tools, preset schemas and a content guide for Strapi's MCP server.
81
99
  - **Strapi-native admin:** built with the Strapi Design System, light and dark mode, keyboard accessible, admin in English, German, French, Spanish and Portuguese.
82
100
  - **Safe content:** every value is normalised and sanitised on the server when it is saved, from the Content Manager, the Content API or code.
83
101
  - **Strapi AI translations and Releases:** Strapi's AI translation sends only the text of Magic Editor X fields and rebuilds other locales from the source structure; Releases show entries the publishing guard would refuse as not ready. See [Strapi AI translations and Releases](#strapi-ai-translations-and-releases).
@@ -126,6 +144,16 @@ New in 2.4:
126
144
  | ![Versions of a synced block source with a comparison against the current content and Restore](docs/site/img/synced-versions-1440.png) | ![Settings, Configuration: the scheduled link check with its time zone, next run and the Run now button](docs/site/img/link-run-now-1440.png) |
127
145
  | ![Typing @ in a paragraph opens entry suggestions at the caret](docs/site/img/mention-trigger-1440.png) | ![Code block with the file name config/plugins.js above the code](docs/site/img/code-filename-1440.png) |
128
146
 
147
+ New in 2.5:
148
+
149
+ | | |
150
+ | ---------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
151
+ | ![The Magic Editor X entry panel: Editing now with a colleague, open comments and quality per field](docs/site/img/entry-panel-after-1440.png) | ![The entry panel in dark mode on a 390 px wide screen](docs/site/img/entry-panel-after-dark-390.png) |
152
+ | ![Admin home with the My open threads and Broken links widgets](docs/site/img/home-widgets-after-1440.png) | ![Restore notice: unsaved changes found, with Restore and Discard](docs/site/img/drafts-after-1440.png) |
153
+ | ![Insert from another entry: entry, field and a preview of the blocks with checkboxes](docs/site/img/reuse-dialog-after-1440.png) | ![More tools with Insert from another entry in the Write group](docs/site/img/reuse-menu-after-1440.png) |
154
+ | ![The Colour menu with palette tokens and highlights](docs/site/img/inline-colour-menu-dark-390.png) | ![Settings: the colour palette with the CSS to copy and contrast warnings](docs/site/img/inline-settings-palette-light-1440.png) |
155
+ | ![Dropping an image onto a field](docs/site/img/media-drop-after-1440.png) | ![A field whose images come from private storage](docs/site/img/private-media-after-1440.png) |
156
+
129
157
  All screenshots use synthetic data (acceptance host: Strapi 5.61.1).
130
158
 
131
159
  ## Core concepts
@@ -171,13 +199,15 @@ All screenshots use synthetic data (acceptance host: Strapi 5.61.1).
171
199
 
172
200
  ## Compatibility
173
201
 
174
- | Plugin | Strapi | Node | Notes |
175
- | ------ | ---------------------------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------- |
176
- | 2.x | 5.38 or later (acceptance host: Strapi 5.61.1) | 22 or 24 | SQLite, PostgreSQL and MySQL/MariaDB through the Strapi database connection. Acceptance runs used SQLite and PostgreSQL 16. |
177
- | 1.x | 5.x | 22 | No longer developed. |
202
+ | Plugin | Strapi | Node | Notes |
203
+ | ------ | -------------------------------------------------------------------------- | ------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
204
+ | 2.x | 5.38 or later (acceptance host: Strapi 5.61.1; 2.5 also checked on 5.62.0) | 22.12 or later (22 or 24) | SQLite, PostgreSQL and MySQL/MariaDB through the Strapi database connection. Acceptance runs used SQLite and PostgreSQL 16. |
205
+ | 1.x | 5.x | 22 | No longer developed. |
178
206
 
179
- - `engines.node` is `>=22.0.0 <=26.x.x`; the 2.3 and 2.4 test runs used Node 22.23.1.
180
- - The admin uses the React, React Router, react-intl, styled-components and Design System versions of the Strapi admin (React 18, Design System 2.2.4).
207
+ - `engines.node` is `>=22.12.0 <=26.x.x` (2.5 declares the floor that sanitize-html 2.18 already required since 2.4.0); the 2.3 to 2.5 test runs used Node 22.23.1.
208
+ - The admin uses the React, React Router, react-intl, styled-components and Design System versions of the Strapi admin (React 18, Design System 2.2.4 in Strapi 5.61, 2.3.1 in 5.62).
209
+ - Dropping files onto a field uses the Media Library drop zone that Strapi registers from 5.61; with an older Strapi or the legacy Media Library (`useLegacyMediaLibrary`) Editor.js keeps its own file drop.
210
+ - Console messages you may see in the admin that come from Strapi itself, not from the plugin: the `useRBAC` deprecation warning, React Router future-flag warnings, the styled-components `attribute` prop warning, and the upgrade check to api.github.com when outgoing requests are blocked.
181
211
  - The editor uses Editor.js 2.31.7. Editor.js 2.32.0 is still a release candidate on npm (`2.32.0-rc.3` on the `next` tag, checked 2026-11-12) and is not used. Why the plugin stays on Editor.js is explained in [docs/engine-decision.md](./docs/engine-decision.md).
182
212
  - Formulas are rendered with Temml 0.14 (MIT), loaded by the admin only when a field shows math.
183
213
  - `magic-editor-x/react` works with React 18 and 19 (peer `^18.0.0 || ^19.0.0`), in the browser and in server rendering, including React Server Components.
@@ -280,6 +310,18 @@ All keys are optional. Infrastructure options live in `config/plugins`; the AI p
280
310
  | `qualityChecks.externalLinks.schedule.perHostConcurrency` | integer | `2` | Requests in flight per host (1 to 8). |
281
311
  | `audit.enabled` | boolean | `true` | Records the [audit trail](#audit-trail) (2.4). It holds no content. `false` stops recording and the extra reads it needs. |
282
312
  | `audit.retentionDays` | integer | `180` | Days an audit event is kept (0 keeps everything, at most 3660). One process prunes once an hour. |
313
+ | `presence.enabled` | boolean | `true` | The Magic Editor X entry panel shows who else has the entry open (2.5). Names only, never e-mail addresses. Works without live collaboration. |
314
+ | `presence.softLock` | boolean | `false` | Asks once per tab before you edit an entry someone else is editing ("Continue editing"). Never blocks anyone (2.5). |
315
+ | `presence.perMinute` | integer | `30` | Presence requests per admin per minute, shared by all processes. |
316
+ | `mcp.enabled` | boolean | `false` | Registers the Magic Editor X tools, preset schemas and content guide with Strapi's MCP server. Strapi's own `server.mcp.enabled` must be on too (2.5). |
317
+ | `reuse.enabled` | boolean | `true` | "Insert from another entry" in More tools > Write (2.5). |
318
+ | `reuse.perMinute` | integer | `60` | Requests of "Insert from another entry" per admin per minute. |
319
+ | `palette.colors` | `{ name, label, light, dark }[]` | `[]` | Named text colours editors may pick in fields with "Text colour and highlight" (2.5). `name` becomes the class `mex-color-<name>`; `light`/`dark` are hex colours for the editor display and the contrast check. At most 24. |
320
+ | `palette.highlights` | `{ name, label, light, dark }[]` | `[]` | Named highlight colours (`<mark>`, class `mex-highlight-<name>`), same rules (2.5). Optional `palette.background` and `palette.text` (`{ light, dark }`) set the page colours the contrast check compares with. |
321
+ | `drafts.enabled` | boolean | `true` | Keeps unsaved field content in the admin's browser (IndexedDB) and offers it back after a reload, crash, closed tab or ended session: one notice with Restore or Discard (2.5). Removed on save, discard, expiry and logout. |
322
+ | `drafts.ttlHours` | integer | `72` | Lifetime of a local draft in hours (1 to 720). |
323
+ | `lazyInit.enabled` | boolean | `true` | Starts the editor and the live room of a field only when it comes near the screen or gets focus; until then the saved content is shown (2.5). |
324
+ | `lazyInit.marginPx` | integer | `800` | Distance above and below the screen at which a field starts (0 to 10000 CSS pixels). |
283
325
 
284
326
  The validator rejects wrong types and ranges at startup and names the key, never the value. Keys from 1.x that no longer exist are ignored with a warning; see [Migrating from 1.x](#migrating-from-1x).
285
327
 
@@ -554,6 +596,63 @@ Settings > Magic Editor X > **Audit trail** lists who changed what and when: per
554
596
  - **Coverage:** field changes are recorded from the Document Service, so the Content Manager, the Content API, imports and code are all covered; writes around it (`db.query`, raw SQL) are not. Content API writes are recorded without a person. With Strapi's Enterprise audit logs available, the events are also sent there.
555
597
  - The events are stored in the table `magic_editor_x_audit`, not in a content type.
556
598
 
599
+ ## Working together and reusing content (2.5)
600
+
601
+ ### Entry panel and who is editing
602
+
603
+ Every entry with a Magic Editor X field gets a **Magic Editor X** panel in the Content Manager (in the actions drawer on narrow screens):
604
+
605
+ - **Editing now** lists the other admins who have the entry open, with names only. It works across several server processes and also without live collaboration (`presence.enabled`, default `true`). Only admins who can read the entry see the list.
606
+ - **Comments** shows the open threads per field; **Show** opens that field's comments.
607
+ - **Quality** shows issues and broken links per field of the saved draft; **Check** opens that field's quality panel.
608
+ - Soft lock (`presence.softLock: true`, off by default): when someone else is editing, a dialog says so once per tab and you choose **Continue editing**. Nobody is ever locked out.
609
+
610
+ The admin home can show **My open threads** (threads you started or were mentioned in) and **Broken links** (entries you can read with broken links from the scheduled link check).
611
+
612
+ ### Unsaved changes
613
+
614
+ While a field has unsaved changes, Magic Editor X keeps them in your browser (IndexedDB, `drafts.enabled`, default `true`). After a reload, a crash, a closed tab or an ended session the field shows "Unsaved changes from … were found." Choose **Restore** (one Undo reverts it) or **Discard**. If the saved content changed in the meantime, the notice says so and never restores automatically. Local drafts are removed when you save, discard, after `drafts.ttlHours` (72) and when you log out. While a field is live in a collaboration room the room keeps your edits, so nothing is stored locally; a draft is kept only during connection gaps. Strapi does not tell the browser when a session will end, so there is no countdown; the local draft covers that case.
615
+
616
+ ### Insert from another entry and copy blocks
617
+
618
+ **More tools > Insert from another entry** copies blocks from any entry, field or language you can read: choose the entry (type, language and field are preselected and hidden when there is only one choice), tick the blocks in the preview and choose **Insert N blocks**. The source is the entry as last saved. Blocks the field does not allow are listed with the reason. Every inserted block gets a new id, so comments and suggestions stay with the source; synced blocks stay synced; images keep their Media Library file.
619
+
620
+ Copy blocks between fields, entries and browser tabs with Ctrl/Cmd+C (after selecting blocks) or **Copy block** in the block menu, and paste with Ctrl/Cmd+V: custom blocks, blocks registered in code and alignment are kept. Turn the dialog off with `reuse.enabled: false`.
621
+
622
+ ### Long entries
623
+
624
+ Editors start when a field comes within `lazyInit.marginPx` (800 px) of the screen or gets focus; until then the field shows its saved content. With 20 fields plus a dynamic zone, 4 editors and live connections start instead of 20 and the page has fewer than 40 % of the DOM nodes. Turn it off with `lazyInit.enabled: false`.
625
+
626
+ ### Colours, superscript, subscript and annotations
627
+
628
+ Define a palette in the plugin configuration and turn the tools on per field in the Content-Type Builder (Advanced settings > Extra formatting). All of them are off by default.
629
+
630
+ ```js
631
+ // config/plugins.js
632
+ 'magic-editor-x': {
633
+ config: {
634
+ palette: {
635
+ colors: [{ name: 'accent', label: 'Accent', light: '#b3261e', dark: '#ffb4ab' }],
636
+ highlights: [{ name: 'note', label: 'Note', light: '#fff3b0', dark: '#5c4a00' }],
637
+ },
638
+ },
639
+ },
640
+ ```
641
+
642
+ - **Text colour and highlight** (`inlineColors`): one **Colour** button (Ctrl/Cmd+Shift+7) with your tokens. Content stores the token name (`<span data-mex-color="accent">`, `<mark data-mex-highlight="note">`), never a colour or a style; the renderers add the classes `mex-color-<name>` and `mex-highlight-<name>`, which your site styles. Settings > Magic Editor X > Configuration shows the CSS to copy and lists combinations below 4.5:1 contrast; the quality rule `color-contrast` flags them in fields.
643
+ - **Superscript and subscript** (`inlineScript`): Ctrl/Cmd+. and Ctrl/Cmd+Shift+. (footnote markers are not affected).
644
+ - **Inline annotations** (`inlineAnnotations`, a comma list): the built-in `abbreviation` (Ctrl/Cmd+Shift+9) renders `<abbr title="…">`. Register your own in code with `registerInlineAnnotation` (`magic-editor-x/blocks`, see [Custom blocks in code (SDK)](#custom-blocks-in-code-sdk)), for example a glossary term whose definition is looked up when content is read.
645
+
646
+ ### Private upload providers and dropped files
647
+
648
+ With a private upload provider (`isPrivate()`, for example a private S3 bucket), Magic Editor X stores each Media Library file with its id and its unsigned URL and signs it fresh on every Content API, GraphQL and `?mex=` read and in the editor. Content saved before 2.5 is updated once at startup; run `npx magic-editor-x media-file-ids` to see what would change and `--apply` to run it again. Public providers are not affected.
649
+
650
+ On Strapi 5.61 and later, drag images, videos or audio files onto a field: they are uploaded to the Media Library and inserted as blocks. Older Strapi versions keep the previous behaviour.
651
+
652
+ ### Tools for AI clients (MCP)
653
+
654
+ With `mcp.enabled: true` and Strapi's own MCP server on (`server.mcp.enabled`), Magic Editor X adds the tools `mex_from_markdown`, `mex_from_html`, `mex_validate` and `mex_render`, one JSON Schema resource per preset and the prompt `mex_content_guide`. They only convert and check content; they read and write no entries. The admin token of the AI client needs the action `plugin::magic-editor-x.mcp.use`.
655
+
557
656
  ## Data format
558
657
 
559
658
  The field stores an Editor.js document as JSON:
@@ -818,6 +917,7 @@ Both run only when your Strapi plan includes the feature; on a Community Edition
818
917
  | `plugin::magic-editor-x.audit.read` | Read the audit trail (who changed what and when) | The Activity tab of a field (with Content Manager read), Settings > Audit trail (with `settings.read`) |
819
918
  | `plugin::magic-editor-x.suggestions.create` | Suggest block changes (read access to the entry is enough; withdraw own) | Suggest mode, sending suggestions, withdrawing your own |
820
919
  | `plugin::magic-editor-x.suggestions.review` | Review block suggestions (accept or reject; needs update access to the entry) | Accepting and rejecting suggestions (with Content Manager update) |
920
+ | `plugin::magic-editor-x.mcp.use` | Use the Magic Editor X tools of the MCP server | The MCP tools, resources and prompt; the admin token that calls Strapi's `/mcp` needs this action (2.5) |
821
921
 
822
922
  Uploads also need the Media Library action `plugin::upload.assets.create`. Version history and collaboration also apply the Content Manager permissions of the document: read access (including conditions such as "is creator", locale and field permissions) to list versions and join a room, update access to save versions, restore and type. A document you cannot read answers 404, the same as a document that does not exist.
823
923
 
@@ -896,6 +996,13 @@ All routes are admin routes served at `/magic-editor-x/...` and need an admin se
896
996
  | POST | `/magic-editor-x/settings/language-tool/test` | settings.read, settings.update | `{ languageTool: {...} }` | `{ data: { ok: true } }` |
897
997
  | GET | `/magic-editor-x/audit` | audit.read (field: + Content Manager read, 404; all documents: + settings.read, 403) | `?uid&documentId&locale&field&fieldKey&actor&event&from&to&page&pageSize` (`pageSize` 1-100, default 25) | `{ data: [event], meta: { scope: 'field' \| 'global', enabled, pagination } }`, newest first (2.4) |
898
998
  | GET | `/magic-editor-x/audit/actors` | audit.read, settings.read | | `{ data: [{ id, name }] }` (people in the trail, up to 200) |
999
+ | POST | `/magic-editor-x/presence` | access (+ Content Manager read) | `{ uid, documentId, locale?, tabId, idle?, leave? }` | `{ data: { enabled, softLock, canEdit, editors: [{ id, name, color, idle, live }] } }`; names only (2.5) |
1000
+ | GET | `/magic-editor-x/entry-summary` | access (+ Content Manager read) | `?uid&documentId&locale` | `{ data: { fields, comments, quality, links } }`: open threads, issues and broken links per readable field (2.5) |
1001
+ | GET | `/magic-editor-x/widgets/open-threads` | access, comments.read | `?pageSize` (1 to 20) | `{ data: [{ threadId, started, mentioned, excerpt, updatedAt, target }], meta: { more } }` (2.5 homepage widget) |
1002
+ | GET | `/magic-editor-x/widgets/broken-links` | access | `?pageSize` (1 to 20) | `{ data: [{ problems, target }], meta: { enabled, lastRun, more, truncated } }` (2.5 homepage widget; entries you can read) |
1003
+ | GET | `/magic-editor-x/reuse/types` | access | | `{ data: [{ uid, kind, displayName, localized, locales }] }`: types with an editor field and an entry you can read (2.5) |
1004
+ | GET | `/magic-editor-x/reuse/source` | access (+ Content Manager read on document, locale and field) | `?uid&documentId&locale&field` | `{ data: { uid, documentId, locale, title, status: 'draft', fields: [{ field, fieldKey, preset, blockCount, truncated, blocks }] } }` (2.5) |
1005
+ | POST | `/magic-editor-x/media/signed-urls` | access (+ Content Manager read when `target` is sent) | `{ target?, urls: string[1..100] }` | `{ data: { private, urls: { <url>: <signed url> } } }` (2.5, private upload providers) |
899
1006
 
900
1007
  `upload` means `plugin::upload.assets.create`.
901
1008
 
@@ -1042,6 +1149,22 @@ Add only the services you use. Instead of `https:` in `img-src` you can list you
1042
1149
  | Mention e-mails do not arrive | `comments.notifications.email` is off, the Strapi email plugin has no working provider, or the hourly limit per person was reached | Turn it on, configure the email provider (Settings > Configuration shows whether e-mails are on). |
1043
1150
  | Settings > Audit trail answers 403 | Listings across documents need `settings.read` next to `audit.read` | Grant both, or use the Activity tab of a field. |
1044
1151
 
1152
+ ## Upgrading from 2.4
1153
+
1154
+ 2.5 is a minor release. Stored content, routes and configuration keep working; there are no breaking changes.
1155
+
1156
+ 1. Update and rebuild the admin: `npm install magic-editor-x@latest && npm run build`.
1157
+ 2. Nothing else is required. New features are off by default or appear only when they are relevant: the entry panel shows only when there is something to show, local drafts only when there is something to restore, colours and annotations only in fields that turn them on, MCP only with `mcp.enabled: true`.
1158
+ 3. Optional: `presence.softLock: true`, a `palette`, the new action `plugin::magic-editor-x.mcp.use` for admin tokens of AI clients (no role gets it automatically).
1159
+
1160
+ What changes for existing data and clients:
1161
+
1162
+ - With a private upload provider, media in Magic Editor X values gets a `fileId` once at startup (migration `2.5.0-media-file-ids`, idempotent; `npx magic-editor-x media-file-ids [--apply]`) and Content API output carries freshly signed URLs. Stored values never contain signatures.
1163
+ - Fields start when they come near the screen. Scripts and tests that wait for `[data-mex-ready="true"]` must scroll the field into view first, or run with `lazyInit.enabled: false`.
1164
+ - Mention e-mails use the recipient's admin language.
1165
+ - A field emptied and saved keeps its `fieldKey` (the value stays `null`), and discarding a draft whose published version predates 2.4 keeps the keys.
1166
+ - Editor.js stays at 2.31.7.
1167
+
1045
1168
  ## Upgrading from 2.3
1046
1169
 
1047
1170
  2.4 is a minor release. Stored content, routes and configuration keep working; there are no breaking changes.
@@ -3,11 +3,14 @@
3
3
  * Magic Editor X command line.
4
4
  *
5
5
  * npx magic-editor-x migrate --uid api::article.article --from body --to content [--apply]
6
+ * npx magic-editor-x media-file-ids [--apply] (2.5)
6
7
  *
7
8
  * Run it from the root of the Strapi project. It loads the project with
8
9
  * Strapi's programmatic API (compileStrapi, createStrapi().load(), destroy()),
9
10
  * without starting the HTTP server, runs the plugin's `migrate` service and
10
11
  * prints the report. Without `--apply` nothing is written (dry run).
12
+ * `media-file-ids` runs the plugin's `media` service `migrateFileIds`
13
+ * (the 2.5 migration, re-runnable).
11
14
  */
12
15
 
13
16
  import { createRequire } from 'node:module';
@@ -36,7 +39,14 @@ Options:
36
39
  --out <file> Also write the JSON report to a file
37
40
  -h, --help Show this help
38
41
 
39
- Exit code 1 when an option is invalid or a document failed.`;
42
+ Exit code 1 when an option is invalid or a document failed.
43
+
44
+ Usage: magic-editor-x media-file-ids [--apply] [--json] [--batch <n>]
45
+
46
+ Links the Media Library files of every Magic Editor X field (image, gallery,
47
+ video, audio, poster, track and attachment files) to their Media Library
48
+ entry by URL, and removes stored signatures of a private upload provider.
49
+ Safe to run again; without --apply nothing is written (dry run).`;
40
50
 
41
51
  /**
42
52
  * Parses and validates the command line.
@@ -65,14 +75,25 @@ export const parseCommand = (argv) => {
65
75
  },
66
76
  });
67
77
  if (values.help) return { help: true };
68
- if (positionals.length !== 1 || positionals[0] !== 'migrate')
69
- throw new Error('Unknown command (expected "migrate")');
70
- for (const name of ['uid', 'from', 'to']) if (!values[name]) throw new Error(`--${name} is required`);
71
78
  const integer = (name) => {
72
79
  if (values[name] === undefined) return undefined;
73
80
  if (!/^\d{1,7}$/.test(values[name])) throw new Error(`--${name} must be a positive integer`);
74
81
  return Number(values[name]);
75
82
  };
83
+ if (positionals.length === 1 && positionals[0] === 'media-file-ids') {
84
+ for (const name of ['uid', 'from', 'to', 'format', 'locale', 'overwrite', 'limit', 'out'])
85
+ if (values[name] !== undefined) throw new Error(`--${name} is not an option of media-file-ids`);
86
+ const batch = integer('batch');
87
+ return {
88
+ help: false,
89
+ command: 'media-file-ids',
90
+ json: Boolean(values.json),
91
+ options: { dryRun: !values.apply, ...(batch !== undefined ? { batchSize: batch } : {}) },
92
+ };
93
+ }
94
+ if (positionals.length !== 1 || positionals[0] !== 'migrate')
95
+ throw new Error('Unknown command (expected "migrate" or "media-file-ids")');
96
+ for (const name of ['uid', 'from', 'to']) if (!values[name]) throw new Error(`--${name} is required`);
76
97
  const options = {
77
98
  uid: values.uid,
78
99
  from: values.from,
@@ -89,6 +110,26 @@ export const parseCommand = (argv) => {
89
110
  return { help: false, json: Boolean(values.json), out: values.out, options };
90
111
  };
91
112
 
113
+ /**
114
+ * Formats a media file id report for people (2.5).
115
+ * @param {object} report - `media.migrateFileIds` report.
116
+ * @returns {string} Text.
117
+ */
118
+ export const formatMediaReport = (report) => {
119
+ const lines = [
120
+ `${report.dryRun ? 'Dry run' : 'Migration'}: Media Library file ids`,
121
+ ` models ${report.models}`,
122
+ ` rows scanned ${report.scanned}`,
123
+ ` ${report.dryRun ? 'would change' : 'changed '} ${report.changedValues}`,
124
+ ` files linked ${report.linked}`,
125
+ ` signatures removed ${report.unsigned}`,
126
+ ` not in library ${report.unmatched}`,
127
+ ` failed ${report.failed}`,
128
+ ];
129
+ if (report.dryRun) lines.push('Nothing was written. Run again with --apply to write.');
130
+ return lines.join('\n');
131
+ };
132
+
92
133
  /**
93
134
  * Formats a report for people.
94
135
  * @param {object} report - Migration report.
@@ -153,10 +194,16 @@ export const main = async (argv) => {
153
194
  throw Object.assign(new Error('Magic Editor X is not installed in this project'), {
154
195
  code: 'NO_PLUGIN',
155
196
  });
156
- const report = await plugin.service('migrate').run(command.options);
157
- if (command.out) writeFileSync(command.out, `${JSON.stringify(report, null, 2)}\n`);
158
- print(`${command.json ? JSON.stringify(report, null, 2) : formatReport(report)}\n`);
159
- code = report.failed.length > 0 ? 1 : 0;
197
+ if (command.command === 'media-file-ids') {
198
+ const report = await plugin.service('media').migrateFileIds(command.options);
199
+ print(`${command.json ? JSON.stringify(report, null, 2) : formatMediaReport(report)}\n`);
200
+ code = report.failed > 0 ? 1 : 0;
201
+ } else {
202
+ const report = await plugin.service('migrate').run(command.options);
203
+ if (command.out) writeFileSync(command.out, `${JSON.stringify(report, null, 2)}\n`);
204
+ print(`${command.json ? JSON.stringify(report, null, 2) : formatReport(report)}\n`);
205
+ code = report.failed.length > 0 ? 1 : 0;
206
+ }
160
207
  } catch (error) {
161
208
  process.stderr.write(`${error && error.message ? error.message : 'Migration failed'}\n`);
162
209
  code = 1;
@@ -4,10 +4,11 @@ import { useIntl } from "react-intl";
4
4
  import { Flex, Typography, Button, Loader, EmptyStateLayout, Box, Badge, Table, Thead, Tr, Th, Tbody, Td, Alert, Grid, Field, SingleSelect, SingleSelectOption, TextInput } from "@strapi/design-system";
5
5
  import { ArrowClockwise, Filter } from "@strapi/icons";
6
6
  import { useFetchClient, useRBAC, useQueryParams, Page, Pagination } from "@strapi/strapi/admin";
7
- import { P as PERMISSIONS } from "./index-D_Fv8Non.mjs";
8
- import { A as API } from "./api-2ZRpHM3d.mjs";
9
- import { u as useT, P as PageShell, S as SectionCard } from "./useT-CLPhBmBC.mjs";
7
+ import { P as PERMISSIONS } from "./index-CMYCZWOh.mjs";
8
+ import { A as API } from "./api-CcTYyckq.mjs";
9
+ import { P as PageShell, S as SectionCard } from "./SectionCard-8ZNHkvn9.mjs";
10
10
  import { u as useBreakpoint } from "./useBreakpoint-DCfn6pDG.mjs";
11
+ import { u as useT } from "./useT-Cb-R3kyA.mjs";
11
12
  import { c as changeSummary, e as eventLabel, a as actorLabel, E as EVENT_LABELS } from "./auditText-DIIYVR6k.mjs";
12
13
  const ALL = "__all__";
13
14
  const UID_PATTERN = /^(api|plugin)::[a-z0-9-]{1,60}\.[a-z0-9-]{1,60}$/;
@@ -6,10 +6,11 @@ const reactIntl = require("react-intl");
6
6
  const designSystem = require("@strapi/design-system");
7
7
  const icons = require("@strapi/icons");
8
8
  const admin = require("@strapi/strapi/admin");
9
- const index = require("./index-D6Z7i8ba.js");
10
- const api = require("./api-bix9RLLI.js");
11
- const useT = require("./useT-BXJLIPN4.js");
9
+ const index = require("./index-DRyctF9s.js");
10
+ const api = require("./api-4AYzwS4-.js");
11
+ const SectionCard = require("./SectionCard-Bs-xiiH1.js");
12
12
  const useBreakpoint = require("./useBreakpoint-D30eNTkF.js");
13
+ const useT = require("./useT-Bpw__IXT.js");
13
14
  const auditText = require("./auditText-DUhWu2Nx.js");
14
15
  const ALL = "__all__";
15
16
  const UID_PATTERN = /^(api|plugin)::[a-z0-9-]{1,60}\.[a-z0-9-]{1,60}$/;
@@ -40,7 +41,7 @@ const AuditFilters = ({ t, applied, actors, active, onApply, onReset }) => {
40
41
  };
41
42
  const reset = onReset;
42
43
  return /* @__PURE__ */ jsxRuntime.jsx(
43
- useT.SectionCard,
44
+ SectionCard.SectionCard,
44
45
  {
45
46
  title: t("settings.audit.filters", "Filters"),
46
47
  action: active ? /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { variant: "tertiary", onClick: reset, children: t("settings.audit.reset", "Reset filters") }) : null,
@@ -318,7 +319,7 @@ const AuditPage = () => {
318
319
  ] });
319
320
  }
320
321
  return /* @__PURE__ */ jsxRuntime.jsxs(
321
- useT.PageShell,
322
+ SectionCard.PageShell,
322
323
  {
323
324
  title,
324
325
  subtitle: t(
@@ -350,7 +351,7 @@ const AuditPage = () => {
350
351
  ) : null,
351
352
  filters,
352
353
  /* @__PURE__ */ jsxRuntime.jsxs(
353
- useT.SectionCard,
354
+ SectionCard.SectionCard,
354
355
  {
355
356
  title: t("settings.audit.results", "Events"),
356
357
  subtitle: state.pagination ? t("settings.audit.total", "{total, plural, one {# event} other {# events}}", {