mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-13 21:53:43 +01:00
Migrate BibTeX parser to core frontend feature GitOrigin-RevId: 274f64d31c1027c5eea9ec569e54dece57307220
15 lines
620 B
TypeScript
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()
|
|
}
|