alinea
Version:
[](https://npmjs.org/package/alinea) [](https://packagephobia.com/result?p=alinea)
195 lines (193 loc) • 3.55 kB
JavaScript
import {
yjs_exports
} from "./chunks/chunk-OYP4EJOA.js";
import "./chunks/chunk-O6EXLFU2.js";
import "./chunks/chunk-U5RRZUYZ.js";
// src/yjs.ts
var global = globalThis;
var importIdentifier = "__ $YJS$ __";
delete global[importIdentifier];
var {
Doc,
Transaction,
Array,
Map,
Text,
XmlText,
XmlHook,
XmlElement,
XmlFragment,
YXmlEvent,
YMapEvent,
YArrayEvent,
YTextEvent,
YEvent,
Item,
AbstractStruct,
GC,
ContentBinary,
ContentDeleted,
ContentEmbed,
ContentFormat,
ContentJSON,
ContentAny,
ContentString,
ContentType,
AbstractType,
getTypeChildren,
createRelativePositionFromTypeIndex,
createRelativePositionFromJSON,
createAbsolutePositionFromRelativePosition,
compareRelativePositions,
AbsolutePosition,
RelativePosition,
ID,
createID,
compareIDs,
getState,
Snapshot,
createSnapshot,
createDeleteSet,
createDeleteSetFromStructStore,
cleanupYTextFormatting,
snapshot,
emptySnapshot,
findRootTypeKey,
findIndexSS,
getItem,
typeListToArraySnapshot,
typeMapGetSnapshot,
createDocFromSnapshot,
iterateDeletedStructs,
applyUpdate,
applyUpdateV2,
readUpdate,
readUpdateV2,
encodeStateAsUpdate,
encodeStateAsUpdateV2,
encodeStateVector,
UndoManager,
decodeSnapshot,
encodeSnapshot,
decodeSnapshotV2,
encodeSnapshotV2,
decodeStateVector,
logUpdate,
logUpdateV2,
decodeUpdate,
decodeUpdateV2,
relativePositionToJSON,
isDeleted,
isParentOf,
equalSnapshots,
PermanentUserData,
tryGc,
transact,
AbstractConnector,
logType,
mergeUpdates,
mergeUpdatesV2,
parseUpdateMeta,
parseUpdateMetaV2,
encodeStateVectorFromUpdate,
encodeStateVectorFromUpdateV2,
encodeRelativePosition,
decodeRelativePosition,
diffUpdate,
diffUpdateV2,
convertUpdateFormatV1ToV2,
convertUpdateFormatV2ToV1,
UpdateEncoderV1
} = global["yjs"] || (global["yjs"] = yjs_exports);
export {
AbsolutePosition,
AbstractConnector,
AbstractStruct,
AbstractType,
Array,
ContentAny,
ContentBinary,
ContentDeleted,
ContentEmbed,
ContentFormat,
ContentJSON,
ContentString,
ContentType,
Doc,
GC,
ID,
Item,
Map,
PermanentUserData,
RelativePosition,
Snapshot,
Text,
Transaction,
UndoManager,
UpdateEncoderV1,
XmlElement,
XmlFragment,
XmlHook,
XmlText,
YArrayEvent,
YEvent,
YMapEvent,
YTextEvent,
YXmlEvent,
applyUpdate,
applyUpdateV2,
cleanupYTextFormatting,
compareIDs,
compareRelativePositions,
convertUpdateFormatV1ToV2,
convertUpdateFormatV2ToV1,
createAbsolutePositionFromRelativePosition,
createDeleteSet,
createDeleteSetFromStructStore,
createDocFromSnapshot,
createID,
createRelativePositionFromJSON,
createRelativePositionFromTypeIndex,
createSnapshot,
decodeRelativePosition,
decodeSnapshot,
decodeSnapshotV2,
decodeStateVector,
decodeUpdate,
decodeUpdateV2,
diffUpdate,
diffUpdateV2,
emptySnapshot,
encodeRelativePosition,
encodeSnapshot,
encodeSnapshotV2,
encodeStateAsUpdate,
encodeStateAsUpdateV2,
encodeStateVector,
encodeStateVectorFromUpdate,
encodeStateVectorFromUpdateV2,
equalSnapshots,
findIndexSS,
findRootTypeKey,
getItem,
getState,
getTypeChildren,
isDeleted,
isParentOf,
iterateDeletedStructs,
logType,
logUpdate,
logUpdateV2,
mergeUpdates,
mergeUpdatesV2,
parseUpdateMeta,
parseUpdateMetaV2,
readUpdate,
readUpdateV2,
relativePositionToJSON,
snapshot,
transact,
tryGc,
typeListToArraySnapshot,
typeMapGetSnapshot
};