Files
overleaf-cep/services/web/frontend/js/features/bibtex/positioned-bibtex-entry.ts
T
Maria Florencia Besteiro Gonzalez 4132731016 Merge pull request #35680 from overleaf/mfb-migrate-bibtex-parser-to-core-feature
Migrate BibTeX parser to core frontend feature

GitOrigin-RevId: 274f64d31c1027c5eea9ec569e54dece57307220
2026-09-17 11:36:26 +00:00

15 lines
620 B
TypeScript

import { ProjectionItem } from '@/features/source-editor/utils/tree-operations/projection'
import { BibtexEntry } from './bibtex-entry.mts'
/**
* A BibtexEntry placed in a CodeMirror document. The `entry` reference is
* preserved across pure position shifts so identity-sensitive consumers
* (React.memo, MiniSearch indexes) can skip work when only positions changed.
*
* `from`/`to`/`line`/`toLine` come from `ProjectionItem` and are kept in sync
* by the projection module on every transaction.
*/
export class PositionedBibtexEntry extends ProjectionItem {
readonly entry: BibtexEntry = new BibtexEntry()
}