UNPKG

json-joy

Version:

Collection of libraries for building collaborative editing apps.

19 lines 822 B
import { s } from '../../json-crdt-patch'; import { ExtensionId, ExtensionName } from '../constants'; export var Position; (function (Position) { /** * Specifies the absolute start of the text, i.e. the position before the * first character. In model space it is defined as string ID and "after" * anchor. */ Position[Position["AbsStart"] = -1] = "AbsStart"; /** * Specifies the absolute end of the text, i.e. the position after the last * character. In model space it is defined as string ID and "before" anchor. */ Position[Position["AbsEnd"] = 9007199254740991] = "AbsEnd"; })(Position || (Position = {})); export const MNEMONIC = ExtensionName[ExtensionId.peritext]; export const SCHEMA = (text) => s.vec(s.str(text), s.arr([])); //# sourceMappingURL=constants.js.map