From 3c505f3d3bb02469a3a7012f083b7d91abdad30a Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 15 Mar 2025 00:29:46 +0200 Subject: [PATCH] fix(build): augmentations not being imported --- src/augmentation.ts | 15 +++++++++++++++ src/index.ts | 2 ++ 2 files changed, 17 insertions(+) diff --git a/src/augmentation.ts b/src/augmentation.ts index 065176368..cc32187ec 100644 --- a/src/augmentation.ts +++ b/src/augmentation.ts @@ -1,6 +1,21 @@ +import Math from './math'; +import MathCommand from './mathcommand'; +import MathEditing from './mathediting'; +import MathUI from './mathui'; import type { KatexOptions } from './typings-external'; declare module '@ckeditor/ckeditor5-core' { + + interface PluginsMap { + [ Math.pluginName ]: Math; + [ MathEditing.pluginName ]: MathEditing; + [ MathUI.pluginName ]: MathUI; + } + + interface CommandsMap { + math: MathCommand; + } + interface EditorConfig { math?: { engine?: diff --git a/src/index.ts b/src/index.ts index 433ed384f..39dc1a626 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,3 +4,5 @@ export { default as Math } from './math'; export { default as AutoformatMath } from './autoformatmath'; + +import "./augmentation.js";