magic-editor-x 2.4.0 → 2.5.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.
- package/CHANGELOG.md +63 -0
- package/README.md +140 -62
- package/bin/magic-editor-x.mjs +55 -8
- package/dist/admin/{AuditPage-guB0SiGS.mjs → AuditPage-Be78C7EC.mjs} +4 -3
- package/dist/admin/{AuditPage-C2u6z4aN.js → AuditPage-iQzpjH8H.js} +7 -6
- package/dist/admin/{ConfigurationPage-DiEpF1Rr.mjs → ConfigurationPage-C9CPBfWy.mjs} +186 -6
- package/dist/admin/{ConfigurationPage-D6uya-J1.js → ConfigurationPage-DefuBeYO.js} +191 -11
- package/dist/admin/Content-BttG50Mc.mjs +360 -0
- package/dist/admin/Content-V5MRBsI3.js +362 -0
- package/dist/admin/{CustomBlocksPage-Byt10-6c.mjs → CustomBlocksPage-DB5nnCsn.mjs} +5 -4
- package/dist/admin/{CustomBlocksPage-DP3h_wNd.js → CustomBlocksPage-Dg2rM3F4.js} +8 -7
- package/dist/admin/EntryWidgets-B8YA0Zxy.mjs +199 -0
- package/dist/admin/EntryWidgets-BcXAAx3F.js +201 -0
- package/dist/admin/{MentionsWidget-sMkM9mHX.mjs → MentionsWidget-CJPZDk9Z.mjs} +2 -2
- package/dist/admin/{MentionsWidget-C2OCAmqq.js → MentionsWidget-DUz6YVIG.js} +2 -2
- package/dist/admin/{useT-CLPhBmBC.mjs → SectionCard-8ZNHkvn9.mjs} +2 -12
- package/dist/admin/{useT-BXJLIPN4.js → SectionCard-Bs-xiiH1.js} +0 -10
- package/dist/admin/{TemplatesPage-Yp4OqFE2.mjs → TemplatesPage-VsZ_Mc0R.mjs} +6 -5
- package/dist/admin/{TemplatesPage-DrSJdteI.js → TemplatesPage-dx4_yd_t.js} +13 -12
- package/dist/admin/{api-bix9RLLI.js → api-4AYzwS4-.js} +9 -1
- package/dist/admin/{api-2ZRpHM3d.mjs → api-CcTYyckq.mjs} +9 -1
- package/dist/admin/{de-zcV8D7nt.js → de-B6rdcOqQ.js} +103 -1
- package/dist/admin/{de-1cFMs-4c.mjs → de-BWfR2jTg.mjs} +8 -1
- package/dist/admin/{de-DiCZrmH8.mjs → de-Bip0sBRT.mjs} +19 -1
- package/dist/admin/{de-Dn8athM8.js → de-BrPR4sUB.js} +8 -1
- package/dist/admin/{de-CKz6CG3V.mjs → de-CQA8hOpl.mjs} +103 -1
- package/dist/admin/{de-CbBDnXeT.js → de-CnnxKXj7.js} +19 -1
- package/dist/admin/{de-BhhGss1l.js → de-Dss5POqk.js} +12 -1
- package/dist/admin/{de-BNPIGqhs.mjs → de-zgHCYTLH.mjs} +12 -1
- package/dist/admin/{en-CIZ5Ggod.js → en--JjAHbpP.js} +8 -1
- package/dist/admin/{en-cYzqbASF.mjs → en-BCKaVgBM.mjs} +103 -1
- package/dist/admin/{en-B9ApE1y1.js → en-CJ17Sp_e.js} +12 -1
- package/dist/admin/{en-BMWhILnj.js → en-CbGkcq0Q.js} +103 -1
- package/dist/admin/{en-DCPMqFIa.mjs → en-Cd6Jk-J0.mjs} +19 -1
- package/dist/admin/{en-CpehF0Kv.js → en-D69Fe9ZO.js} +19 -1
- package/dist/admin/{en-Dc9y-6n9.mjs → en-Dr58wBAo.mjs} +8 -1
- package/dist/admin/{en-gFLeK9Ng.mjs → en-Uhm7OouM.mjs} +12 -1
- package/dist/admin/entry-panel-events-0msyPrAD.js +18 -0
- package/dist/admin/entry-panel-events-XRuUoLZ9.mjs +19 -0
- package/dist/admin/{es-D2Kw6E4N.mjs → es-B2Hkkbw9.mjs} +8 -1
- package/dist/admin/{es-BmwBgEgz.mjs → es-BMkmfH88.mjs} +12 -1
- package/dist/admin/{es-Chs37IBR.mjs → es-Bz8d72Fa.mjs} +19 -1
- package/dist/admin/{es-CQPh8PXw.js → es-C8UotT8O.js} +103 -1
- package/dist/admin/{es-CawpzwyC.js → es-CcEDZpVQ.js} +19 -1
- package/dist/admin/{es-C0W31rl8.js → es-DJm3HFJt.js} +12 -1
- package/dist/admin/{es-C4IRHV5d.js → es-YvaTAtqY.js} +8 -1
- package/dist/admin/{es-DCamt1ek.mjs → es-pvPfNAld.mjs} +103 -1
- package/dist/admin/{fr-BOvvfEH7.mjs → fr-BvPjRiwr.mjs} +8 -1
- package/dist/admin/{fr-Dp5-XP29.mjs → fr-CKHZ0xxU.mjs} +19 -1
- package/dist/admin/{fr-iGeIfEcU.js → fr-CRM9VuAq.js} +12 -1
- package/dist/admin/{fr-CMWBNE5D.mjs → fr-CrIHmKYX.mjs} +12 -1
- package/dist/admin/{fr-COOsqexl.js → fr-Cx29jQ_g.js} +19 -1
- package/dist/admin/{fr-oW0t8bT5.mjs → fr-D4tL6Ag2.mjs} +103 -1
- package/dist/admin/{fr-Zkb8vfjN.js → fr-Di-U-rAH.js} +8 -1
- package/dist/admin/{fr-DpC44Ol8.js → fr-DrUYv2jh.js} +103 -1
- package/dist/admin/{index-BVjf1gVC.mjs → index-C4ksUkEm.mjs} +9183 -6353
- package/dist/admin/{index-64wc26Bl.js → index-C5D3VqLq.js} +9170 -6340
- package/dist/admin/{index-D_Fv8Non.mjs → index-CMYCZWOh.mjs} +1053 -190
- package/dist/admin/{index-D6Z7i8ba.js → index-DRyctF9s.js} +961 -98
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +2 -2
- package/dist/admin/{math-vsK_06ZR.js → math-D6jmskGS.js} +1 -1
- package/dist/admin/{math-CIQ4Z_mY.mjs → math-DntdSWKX.mjs} +1 -1
- package/dist/admin/{pt-DALDvfBn.mjs → pt-B8x7v-Xw.mjs} +19 -1
- package/dist/admin/{pt-DXy7G1x7.js → pt-BYn2xx78.js} +19 -1
- package/dist/admin/{pt-Bo0Pm_Pt.js → pt-CojQcz-p.js} +103 -1
- package/dist/admin/{pt-uGpfRQLC.mjs → pt-CuoIihKx.mjs} +103 -1
- package/dist/admin/{pt-1IUyx6ae.js → pt-CzrN_3ui.js} +8 -1
- package/dist/admin/{pt-DFNgZ5_k.mjs → pt-DDlPJYtB.mjs} +12 -1
- package/dist/admin/{pt-BHmXk2d9.js → pt-DPVAycXJ.js} +12 -1
- package/dist/admin/{pt-etwsg3G4.mjs → pt-DdGagO99.mjs} +8 -1
- package/dist/admin/useT-Bpw__IXT.js +12 -0
- package/dist/admin/useT-Cb-R3kyA.mjs +13 -0
- package/dist/blocks/index.d.mts +124 -0
- package/dist/blocks/index.d.ts +124 -0
- package/dist/blocks/index.js +172 -3
- package/dist/blocks/index.mjs +172 -3
- package/dist/math/index.js +6 -2
- package/dist/math/index.mjs +6 -2
- package/dist/react/index.js +1376 -1067
- package/dist/react/index.mjs +1376 -1067
- package/dist/render/index.d.mts +22 -0
- package/dist/render/index.d.ts +22 -0
- package/dist/render/index.js +1376 -1067
- package/dist/render/index.mjs +1376 -1067
- package/dist/server/index.js +28894 -24197
- package/dist/server/index.mjs +28893 -24196
- package/dist/server/mcp-worker.js +11319 -0
- package/dist/vue/index.js +1376 -1067
- package/dist/vue/index.mjs +1376 -1067
- package/package.json +7 -7
- package/schema/magic-editor-x.schema.json +9 -1
- package/types/blocks.d.ts +124 -0
- package/types/index.d.ts +10 -1
- package/types/render.d.ts +22 -0
package/dist/render/index.d.mts
CHANGED
|
@@ -186,6 +186,28 @@ export interface RenderOptions {
|
|
|
186
186
|
* Text output: `[n]` and a list; Markdown: GFM `[^n]` footnotes.
|
|
187
187
|
*/
|
|
188
188
|
footnotes?: { label?: string; backLabel?: string; prefix?: string };
|
|
189
|
+
/**
|
|
190
|
+
* Inline annotations (2.5, `defineInlineAnnotation` from `magic-editor-x/blocks`):
|
|
191
|
+
* `<span data-mex-annotation="name">` is rendered with the definition's
|
|
192
|
+
* `render` (one validated wrapper element around the text). These
|
|
193
|
+
* definitions replace the bundle's registry for that call; the built-in
|
|
194
|
+
* `abbreviation` (`<abbr title>`) is always known. Unknown annotations get
|
|
195
|
+
* `<span class="mex-annotation mex-annotation-<name>" data-mex-annotation …>`.
|
|
196
|
+
* Pass a stable array. Text and Markdown output keep the text only.
|
|
197
|
+
*/
|
|
198
|
+
annotations?: ReadonlyArray<import('./blocks.js').InlineAnnotationDefinition>;
|
|
199
|
+
/**
|
|
200
|
+
* Value of an annotation for its `render` (`resolved`), e.g. a glossary
|
|
201
|
+
* definition looked up by the caller. A string (max 2000 characters) or a
|
|
202
|
+
* plain object; anything else, or a throw, is ignored. Content API output
|
|
203
|
+
* (`?mex=`) and GraphQL `…Rendered` pass the results of the definitions'
|
|
204
|
+
* server-side `resolve`.
|
|
205
|
+
*/
|
|
206
|
+
resolveAnnotation?: (annotation: {
|
|
207
|
+
name: string;
|
|
208
|
+
attrs: Record<string, string>;
|
|
209
|
+
text: string;
|
|
210
|
+
}) => string | Record<string, unknown> | null | undefined;
|
|
189
211
|
}
|
|
190
212
|
|
|
191
213
|
/** Renders TeX: MathML markup or render nodes; null/undefined for the fallback. */
|
package/dist/render/index.d.ts
CHANGED
|
@@ -186,6 +186,28 @@ export interface RenderOptions {
|
|
|
186
186
|
* Text output: `[n]` and a list; Markdown: GFM `[^n]` footnotes.
|
|
187
187
|
*/
|
|
188
188
|
footnotes?: { label?: string; backLabel?: string; prefix?: string };
|
|
189
|
+
/**
|
|
190
|
+
* Inline annotations (2.5, `defineInlineAnnotation` from `magic-editor-x/blocks`):
|
|
191
|
+
* `<span data-mex-annotation="name">` is rendered with the definition's
|
|
192
|
+
* `render` (one validated wrapper element around the text). These
|
|
193
|
+
* definitions replace the bundle's registry for that call; the built-in
|
|
194
|
+
* `abbreviation` (`<abbr title>`) is always known. Unknown annotations get
|
|
195
|
+
* `<span class="mex-annotation mex-annotation-<name>" data-mex-annotation …>`.
|
|
196
|
+
* Pass a stable array. Text and Markdown output keep the text only.
|
|
197
|
+
*/
|
|
198
|
+
annotations?: ReadonlyArray<import('./blocks.js').InlineAnnotationDefinition>;
|
|
199
|
+
/**
|
|
200
|
+
* Value of an annotation for its `render` (`resolved`), e.g. a glossary
|
|
201
|
+
* definition looked up by the caller. A string (max 2000 characters) or a
|
|
202
|
+
* plain object; anything else, or a throw, is ignored. Content API output
|
|
203
|
+
* (`?mex=`) and GraphQL `…Rendered` pass the results of the definitions'
|
|
204
|
+
* server-side `resolve`.
|
|
205
|
+
*/
|
|
206
|
+
resolveAnnotation?: (annotation: {
|
|
207
|
+
name: string;
|
|
208
|
+
attrs: Record<string, string>;
|
|
209
|
+
text: string;
|
|
210
|
+
}) => string | Record<string, unknown> | null | undefined;
|
|
189
211
|
}
|
|
190
212
|
|
|
191
213
|
/** Renders TeX: MathML markup or render nodes; null/undefined for the fallback. */
|