Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(ckeditor5-footnotes): fix more errors
Elian Doranc0a64d1ef0d5
diff --git a/packages/ckeditor5-footnotes/src/augmentation.ts b/packages/ckeditor5-footnotes/src/augmentation.tsindex 11db0fbd02..49509a1630 100644--- a/packages/ckeditor5-footnotes/src/augmentation.ts+++ b/packages/ckeditor5-footnotes/src/augmentation.ts@@ -1,7 +1,11 @@+import FootnoteEditing from './footnote-editing/footnote-editing.js';+import FootnoteUI from './footnote-ui.js';import type { Footnotes } from './index.js';declare module 'ckeditor5' {interface PluginsMap {[ Footnotes.pluginName ]: Footnotes;+ [ FootnoteEditing.pluginName ]: FootnoteEditing;+ [ FootnoteUI.pluginName ]: FootnoteUI;}}diff --git a/packages/ckeditor5-footnotes/src/footnote-editing/footnote-editing.ts b/packages/ckeditor5-footnotes/src/footnote-editing/footnote-editing.tsindex 9d2cc85f69..5fefb68342 100644--- a/packages/ckeditor5-footnotes/src/footnote-editing/footnote-editing.ts+++ b/packages/ckeditor5-footnotes/src/footnote-editing/footnote-editing.ts@@ -14,6 +14,11 @@ import { modelQueryElement, modelQueryElementsAll } from '../utils.js';import { Autoformat, Batch, Element, Plugin, RootElement, viewToModelPositionOutsideModelElement, Widget, Writer } from 'ckeditor5';export default class FootnoteEditing extends Plugin {++ public static get pluginName() {+ return 'FootnotesEditing' as const;+ }+public static get requires() {return [ Widget, Autoformat ] as const;}diff --git a/packages/ckeditor5-footnotes/src/footnote-ui.ts b/packages/ckeditor5-footnotes/src/footnote-ui.tsindex 08dbfde40d..c54b771879 100644--- a/packages/ckeditor5-footnotes/src/footnote-ui.ts+++ b/packages/ckeditor5-footnotes/src/footnote-ui.ts@@ -10,6 +10,11 @@ import insertFootnoteIcon from '../theme/icons/insert-footnote.svg';import { modelQueryElement, modelQueryElementsAll } from './utils.js';export default class FootnoteUI extends Plugin {++ public static get pluginName() {+ return 'FootnoteUI' as const;+ }+public init(): void {const editor = this.editor;const translate = editor.t;diff --git a/packages/ckeditor5-footnotes/src/utils.ts b/packages/ckeditor5-footnotes/src/utils.tsindex ede2b24d94..5121b8b5cd 100644--- a/packages/ckeditor5-footnotes/src/utils.ts+++ b/packages/ckeditor5-footnotes/src/utils.ts@@ -1,5 +1,4 @@-import { type Editor } from 'ckeditor5/src/core.js';-import { Element, Text, TextProxy, ViewElement } from 'ckeditor5/src/engine.js';+import { type Editor, Element, Text, TextProxy, ViewElement } from 'ckeditor5';// There's ample DRY violation in this file; type checking// polymorphism without full typescript is just incredibly finicky.