import { AffineFootnoteNode, AffineLink, AffineReference, } from './inline/index.js'; import { AffineText } from './inline/presets/nodes/affine-text.js'; import { FootNotePopup } from './inline/presets/nodes/footnote-node/footnote-popup.js'; import { FootNotePopupChip } from './inline/presets/nodes/footnote-node/footnote-popup-chip.js'; import { LatexEditorMenu } from './inline/presets/nodes/latex-node/latex-editor-menu.js'; import { LatexEditorUnit } from './inline/presets/nodes/latex-node/latex-editor-unit.js'; import { AffineLatexNode } from './inline/presets/nodes/latex-node/latex-node.js'; import { LinkPopup } from './inline/presets/nodes/link-node/link-popup/link-popup.js'; import { ReferencePopup } from './inline/presets/nodes/reference-node/reference-popup/reference-popup.js'; import { RichText } from './rich-text.js'; export function effects() { customElements.define('affine-text', AffineText); customElements.define('latex-editor-menu', LatexEditorMenu); customElements.define('latex-editor-unit', LatexEditorUnit); customElements.define('rich-text', RichText); customElements.define('affine-latex-node', AffineLatexNode); customElements.define('link-popup', LinkPopup); customElements.define('affine-link', AffineLink); customElements.define('reference-popup', ReferencePopup); customElements.define('affine-reference', AffineReference); customElements.define('affine-footnote-node', AffineFootnoteNode); customElements.define('footnote-popup', FootNotePopup); customElements.define('footnote-popup-chip', FootNotePopupChip); } declare global { interface HTMLElementTagNameMap { 'affine-latex-node': AffineLatexNode; 'affine-reference': AffineReference; 'affine-footnote-node': AffineFootnoteNode; 'footnote-popup': FootNotePopup; 'footnote-popup-chip': FootNotePopupChip; 'affine-link': AffineLink; 'affine-text': AffineText; 'rich-text': RichText; 'reference-popup': ReferencePopup; 'latex-editor-unit': LatexEditorUnit; 'latex-editor-menu': LatexEditorMenu; 'link-popup': LinkPopup; } }