| import { ah as AbsolutePosition, bF as AbstractAttributionManager, A as AbstractConnector, cy as AbstractStruct, bU as AbstractType, cf as YArray, bl as AttributionItem, cN as ContentAny, cB as ContentBinary, cD as ContentDeleted, cF as ContentDoc, cH as ContentEmbed, cJ as ContentFormat, cL as ContentJSON, cP as ContentString, cZ as ContentType, bJ as DiffAttributionManager, D as Doc, cA as GC, a6 as ID, bt as IdMap, b as IdSet, d4 as Item, ch as YMap, ae as RelativePosition, d9 as Skip, ar as Snapshot, co as YText, aS as Transaction, bG as TwosetAttributionManager, aZ as UndoManager, U as UpdateDecoderV1, C as UpdateDecoderV2, F as UpdateEncoderV1, H as UpdateEncoderV2, cs as YXmlElement, cq as YXmlFragment, cu as YXmlHook, cw as YXmlText, bh as YEvent, Q as applyUpdate, P as applyUpdateV2, cl as cleanupYTextFormatting, y as cloneDoc, a7 as compareIDs, aq as compareRelativePositions, bf as convertUpdateFormatV1ToV2, bg as convertUpdateFormatV2ToV1, ap as createAbsolutePositionFromRelativePosition, bm as createAttributionItem, bK as createAttributionManagerFromDiff, q as createDeleteSetFromStructStore, aC as createDocFromSnapshot, a8 as createID, by as createIdMap, bs as createIdMapFromIdSet, p as createIdSet, s as createInsertSetFromStructStore, ag as createRelativePositionFromJSON, ak as createRelativePositionFromTypeIndex, ax as createSnapshot, bx as decodeIdMap, ao as decodeRelativePosition, aw as decodeSnapshot, av as decodeSnapshotV2, W as decodeStateVector, b1 as decodeUpdate, b2 as decodeUpdateV2, bN as diffDocsToDelta, bA as diffIdMap, j as diffIdSet, bb as diffUpdate, ba as diffUpdateV2, ay as emptySnapshot, bv as encodeIdMap, am as encodeRelativePosition, au as encodeSnapshot, at as encodeSnapshotV2, T as encodeStateAsUpdate, S as encodeStateAsUpdateV2, $ as encodeStateVector, b6 as encodeStateVectorFromUpdate, b5 as encodeStateVectorFromUpdateV2, v as equalIdSets, as as equalSnapshots, aK as findIndexSS, ab as findRootTypeKey, aM as getItem, aP as getItemCleanEnd, aO as getItemCleanStart, aH as getState, bS as getTypeChildren, bz as insertIntoIdMap, g as insertIntoIdSet, ac as isParentOf, i as iterateStructsByIdSet, ad as logType, a$ as logUpdate, b0 as logUpdateV2, br as mergeIdMaps, m as mergeIdSets, b4 as mergeUpdates, b9 as mergeUpdatesV2, bI as noAttributionsManager, bd as obfuscateUpdate, be as obfuscateUpdateV2, bw as readIdMap, t as readIdSet, O as readUpdate, b8 as readUpdateIdRanges, b7 as readUpdateIdRangesV2, N as readUpdateV2, af as relativePositionToJSON, az as snapshot, aE as snapshotContainsUpdate, aX as transact, aW as tryGc, bY as typeListToArraySnapshot, cd as typeMapGetAllSnapshot, cc as typeMapGetSnapshot } from './Skip-BdX6BTcH.js'; | ||
| import 'lib0/function'; | ||
| import 'lib0/decoding'; | ||
| import 'lib0/binary'; | ||
| import 'lib0/map'; | ||
| /** eslint-env browser */ | ||
| const glo = /** @type {any} */ (typeof globalThis !== 'undefined' | ||
| ? globalThis | ||
| : typeof window !== 'undefined' | ||
| ? window | ||
| // @ts-ignore | ||
| : typeof global !== 'undefined' ? global : {}); | ||
| const importIdentifier = '__ $YJS$ __'; | ||
| if (glo[importIdentifier] === true) { | ||
| /** | ||
| * Dear reader of this message. Please take this seriously. | ||
| * | ||
| * If you see this message, make sure that you only import one version of Yjs. In many cases, | ||
| * your package manager installs two versions of Yjs that are used by different packages within your project. | ||
| * Another reason for this message is that some parts of your project use the commonjs version of Yjs | ||
| * and others use the EcmaScript version of Yjs. | ||
| * | ||
| * This often leads to issues that are hard to debug. We often need to perform constructor checks, | ||
| * e.g. `struct instanceof GC`. If you imported different versions of Yjs, it is impossible for us to | ||
| * do the constructor checks anymore - which might break the CRDT algorithm. | ||
| * | ||
| * https://github.com/yjs/yjs/issues/438 | ||
| */ | ||
| console.error('Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438'); | ||
| } | ||
| glo[importIdentifier] = true; | ||
| var Y = /*#__PURE__*/Object.freeze({ | ||
| __proto__: null, | ||
| AbsolutePosition: AbsolutePosition, | ||
| AbstractAttributionManager: AbstractAttributionManager, | ||
| AbstractConnector: AbstractConnector, | ||
| AbstractStruct: AbstractStruct, | ||
| AbstractType: AbstractType, | ||
| Array: YArray, | ||
| Attribution: AttributionItem, | ||
| ContentAny: ContentAny, | ||
| ContentBinary: ContentBinary, | ||
| ContentDeleted: ContentDeleted, | ||
| ContentDoc: ContentDoc, | ||
| ContentEmbed: ContentEmbed, | ||
| ContentFormat: ContentFormat, | ||
| ContentJSON: ContentJSON, | ||
| ContentString: ContentString, | ||
| ContentType: ContentType, | ||
| DiffAttributionManager: DiffAttributionManager, | ||
| Doc: Doc, | ||
| GC: GC, | ||
| ID: ID, | ||
| IdMap: IdMap, | ||
| IdSet: IdSet, | ||
| Item: Item, | ||
| Map: YMap, | ||
| RelativePosition: RelativePosition, | ||
| Skip: Skip, | ||
| Snapshot: Snapshot, | ||
| Text: YText, | ||
| Transaction: Transaction, | ||
| TwosetAttributionManager: TwosetAttributionManager, | ||
| UndoManager: UndoManager, | ||
| UpdateDecoderV1: UpdateDecoderV1, | ||
| UpdateDecoderV2: UpdateDecoderV2, | ||
| UpdateEncoderV1: UpdateEncoderV1, | ||
| UpdateEncoderV2: UpdateEncoderV2, | ||
| XmlElement: YXmlElement, | ||
| XmlFragment: YXmlFragment, | ||
| XmlHook: YXmlHook, | ||
| XmlText: YXmlText, | ||
| YEvent: YEvent, | ||
| applyUpdate: applyUpdate, | ||
| applyUpdateV2: applyUpdateV2, | ||
| cleanupYTextFormatting: cleanupYTextFormatting, | ||
| cloneDoc: cloneDoc, | ||
| compareIDs: compareIDs, | ||
| compareRelativePositions: compareRelativePositions, | ||
| convertUpdateFormatV1ToV2: convertUpdateFormatV1ToV2, | ||
| convertUpdateFormatV2ToV1: convertUpdateFormatV2ToV1, | ||
| createAbsolutePositionFromRelativePosition: createAbsolutePositionFromRelativePosition, | ||
| createAttributionItem: createAttributionItem, | ||
| createAttributionManagerFromDiff: createAttributionManagerFromDiff, | ||
| createDeleteSetFromStructStore: createDeleteSetFromStructStore, | ||
| createDocFromSnapshot: createDocFromSnapshot, | ||
| createID: createID, | ||
| createIdMap: createIdMap, | ||
| createIdMapFromIdSet: createIdMapFromIdSet, | ||
| createIdSet: createIdSet, | ||
| createInsertionSetFromStructStore: createInsertSetFromStructStore, | ||
| createRelativePositionFromJSON: createRelativePositionFromJSON, | ||
| createRelativePositionFromTypeIndex: createRelativePositionFromTypeIndex, | ||
| createSnapshot: createSnapshot, | ||
| decodeIdMap: decodeIdMap, | ||
| decodeRelativePosition: decodeRelativePosition, | ||
| decodeSnapshot: decodeSnapshot, | ||
| decodeSnapshotV2: decodeSnapshotV2, | ||
| decodeStateVector: decodeStateVector, | ||
| decodeUpdate: decodeUpdate, | ||
| decodeUpdateV2: decodeUpdateV2, | ||
| diffDocsToDelta: diffDocsToDelta, | ||
| diffIdMap: diffIdMap, | ||
| diffIdSet: diffIdSet, | ||
| diffUpdate: diffUpdate, | ||
| diffUpdateV2: diffUpdateV2, | ||
| emptySnapshot: emptySnapshot, | ||
| encodeIdMap: encodeIdMap, | ||
| encodeRelativePosition: encodeRelativePosition, | ||
| encodeSnapshot: encodeSnapshot, | ||
| encodeSnapshotV2: encodeSnapshotV2, | ||
| encodeStateAsUpdate: encodeStateAsUpdate, | ||
| encodeStateAsUpdateV2: encodeStateAsUpdateV2, | ||
| encodeStateVector: encodeStateVector, | ||
| encodeStateVectorFromUpdate: encodeStateVectorFromUpdate, | ||
| encodeStateVectorFromUpdateV2: encodeStateVectorFromUpdateV2, | ||
| equalIdSets: equalIdSets, | ||
| equalSnapshots: equalSnapshots, | ||
| findIndexSS: findIndexSS, | ||
| findRootTypeKey: findRootTypeKey, | ||
| getItem: getItem, | ||
| getItemCleanEnd: getItemCleanEnd, | ||
| getItemCleanStart: getItemCleanStart, | ||
| getState: getState, | ||
| getTypeChildren: getTypeChildren, | ||
| insertIntoIdMap: insertIntoIdMap, | ||
| insertIntoIdSet: insertIntoIdSet, | ||
| isParentOf: isParentOf, | ||
| iterateStructsByIdSet: iterateStructsByIdSet, | ||
| logType: logType, | ||
| logUpdate: logUpdate, | ||
| logUpdateV2: logUpdateV2, | ||
| mergeIdMaps: mergeIdMaps, | ||
| mergeIdSets: mergeIdSets, | ||
| mergeUpdates: mergeUpdates, | ||
| mergeUpdatesV2: mergeUpdatesV2, | ||
| noAttributionsManager: noAttributionsManager, | ||
| obfuscateUpdate: obfuscateUpdate, | ||
| obfuscateUpdateV2: obfuscateUpdateV2, | ||
| readIdMap: readIdMap, | ||
| readIdSet: readIdSet, | ||
| readUpdate: readUpdate, | ||
| readUpdateIdRanges: readUpdateIdRanges, | ||
| readUpdateIdRangesV2: readUpdateIdRangesV2, | ||
| readUpdateV2: readUpdateV2, | ||
| relativePositionToJSON: relativePositionToJSON, | ||
| snapshot: snapshot, | ||
| snapshotContainsUpdate: snapshotContainsUpdate, | ||
| transact: transact, | ||
| tryGc: tryGc, | ||
| typeListToArraySnapshot: typeListToArraySnapshot, | ||
| typeMapGetAllSnapshot: typeMapGetAllSnapshot, | ||
| typeMapGetSnapshot: typeMapGetSnapshot | ||
| }); | ||
| export { Y }; | ||
| //# sourceMappingURL=index-CgCxSBiZ.js.map |
| {"version":3,"file":"index-CgCxSBiZ.js","sources":["../src/index.js"],"sourcesContent":["/** eslint-env browser */\n\nexport {\n Doc,\n Transaction,\n YArray as Array,\n YMap as Map,\n YText as Text,\n YXmlText as XmlText,\n YXmlHook as XmlHook,\n YXmlElement as XmlElement,\n YXmlFragment as XmlFragment,\n YEvent,\n Item,\n AbstractStruct,\n GC,\n Skip,\n ContentBinary,\n ContentDeleted,\n ContentDoc,\n ContentEmbed,\n ContentFormat,\n ContentJSON,\n ContentAny,\n ContentString,\n ContentType,\n AbstractType,\n getTypeChildren,\n createRelativePositionFromTypeIndex,\n createRelativePositionFromJSON,\n createAbsolutePositionFromRelativePosition,\n compareRelativePositions,\n AbsolutePosition,\n RelativePosition,\n ID,\n createID,\n compareIDs,\n getState,\n Snapshot,\n createSnapshot,\n cleanupYTextFormatting,\n snapshot,\n emptySnapshot,\n findRootTypeKey,\n findIndexSS,\n getItem,\n getItemCleanStart,\n getItemCleanEnd,\n typeListToArraySnapshot,\n typeMapGetSnapshot,\n typeMapGetAllSnapshot,\n createDocFromSnapshot,\n applyUpdate,\n applyUpdateV2,\n readUpdate,\n readUpdateV2,\n encodeStateAsUpdate,\n encodeStateAsUpdateV2,\n encodeStateVector,\n UndoManager,\n decodeSnapshot,\n encodeSnapshot,\n decodeSnapshotV2,\n encodeSnapshotV2,\n decodeStateVector,\n logUpdate,\n logUpdateV2,\n decodeUpdate,\n decodeUpdateV2,\n relativePositionToJSON,\n isParentOf,\n equalSnapshots,\n tryGc,\n transact,\n AbstractConnector,\n logType,\n mergeUpdates,\n mergeUpdatesV2,\n encodeStateVectorFromUpdate,\n encodeStateVectorFromUpdateV2,\n encodeRelativePosition,\n decodeRelativePosition,\n diffUpdate,\n diffUpdateV2,\n convertUpdateFormatV1ToV2,\n convertUpdateFormatV2ToV1,\n obfuscateUpdate,\n obfuscateUpdateV2,\n UpdateEncoderV1,\n UpdateEncoderV2,\n UpdateDecoderV1,\n UpdateDecoderV2,\n snapshotContainsUpdate,\n // idset\n IdSet,\n equalIdSets,\n createDeleteSetFromStructStore,\n IdMap,\n createIdMap,\n createAttributionItem,\n createInsertSetFromStructStore as createInsertionSetFromStructStore,\n diffIdMap,\n diffIdSet,\n AttributionItem as Attribution,\n encodeIdMap,\n createIdMapFromIdSet,\n TwosetAttributionManager,\n noAttributionsManager,\n AbstractAttributionManager,\n iterateStructsByIdSet,\n createAttributionManagerFromDiff,\n DiffAttributionManager,\n createIdSet,\n mergeIdSets,\n cloneDoc,\n readUpdateIdRanges,\n readUpdateIdRangesV2,\n insertIntoIdMap,\n insertIntoIdSet,\n mergeIdMaps,\n readIdMap,\n readIdSet,\n decodeIdMap,\n diffDocsToDelta\n} from './internals.js'\n\nconst glo = /** @type {any} */ (typeof globalThis !== 'undefined'\n ? globalThis\n : typeof window !== 'undefined'\n ? window\n // @ts-ignore\n : typeof global !== 'undefined' ? global : {})\n\nconst importIdentifier = '__ $YJS$ __'\n\nif (glo[importIdentifier] === true) {\n /**\n * Dear reader of this message. Please take this seriously.\n *\n * If you see this message, make sure that you only import one version of Yjs. In many cases,\n * your package manager installs two versions of Yjs that are used by different packages within your project.\n * Another reason for this message is that some parts of your project use the commonjs version of Yjs\n * and others use the EcmaScript version of Yjs.\n *\n * This often leads to issues that are hard to debug. We often need to perform constructor checks,\n * e.g. `struct instanceof GC`. If you imported different versions of Yjs, it is impossible for us to\n * do the constructor checks anymore - which might break the CRDT algorithm.\n *\n * https://github.com/yjs/yjs/issues/438\n */\n console.error('Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438')\n}\nglo[importIdentifier] = true\n"],"names":[],"mappings":";;;;;;AAAA;;;AA8HA,MAAM,GAAG,uBAAuB,OAAO,UAAU,KAAK;AACtD,IAAI;AACJ,IAAI,OAAO,MAAM,KAAK;AACtB,MAAM;AACN;AACA,MAAM,OAAO,MAAM,KAAK,WAAW,GAAG,MAAM,GAAG,EAAE;;AAEjD,MAAM,gBAAgB,GAAG;;AAEzB,IAAI,GAAG,CAAC,gBAAgB,CAAC,KAAK,IAAI,EAAE;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,OAAO,CAAC,KAAK,CAAC,2HAA2H;AAC3I;AACA,GAAG,CAAC,gBAAgB,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} |
| 'use strict'; | ||
| var Skip = require('./Skip-BedzDO5o.js'); | ||
| require('lib0/function'); | ||
| require('lib0/decoding'); | ||
| require('lib0/binary'); | ||
| require('lib0/map'); | ||
| /** eslint-env browser */ | ||
| const glo = /** @type {any} */ (typeof globalThis !== 'undefined' | ||
| ? globalThis | ||
| : typeof window !== 'undefined' | ||
| ? window | ||
| // @ts-ignore | ||
| : typeof global !== 'undefined' ? global : {}); | ||
| const importIdentifier = '__ $YJS$ __'; | ||
| if (glo[importIdentifier] === true) { | ||
| /** | ||
| * Dear reader of this message. Please take this seriously. | ||
| * | ||
| * If you see this message, make sure that you only import one version of Yjs. In many cases, | ||
| * your package manager installs two versions of Yjs that are used by different packages within your project. | ||
| * Another reason for this message is that some parts of your project use the commonjs version of Yjs | ||
| * and others use the EcmaScript version of Yjs. | ||
| * | ||
| * This often leads to issues that are hard to debug. We often need to perform constructor checks, | ||
| * e.g. `struct instanceof GC`. If you imported different versions of Yjs, it is impossible for us to | ||
| * do the constructor checks anymore - which might break the CRDT algorithm. | ||
| * | ||
| * https://github.com/yjs/yjs/issues/438 | ||
| */ | ||
| console.error('Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438'); | ||
| } | ||
| glo[importIdentifier] = true; | ||
| var Y = /*#__PURE__*/Object.freeze({ | ||
| __proto__: null, | ||
| AbsolutePosition: Skip.AbsolutePosition, | ||
| AbstractAttributionManager: Skip.AbstractAttributionManager, | ||
| AbstractConnector: Skip.AbstractConnector, | ||
| AbstractStruct: Skip.AbstractStruct, | ||
| AbstractType: Skip.AbstractType, | ||
| Array: Skip.YArray, | ||
| Attribution: Skip.AttributionItem, | ||
| ContentAny: Skip.ContentAny, | ||
| ContentBinary: Skip.ContentBinary, | ||
| ContentDeleted: Skip.ContentDeleted, | ||
| ContentDoc: Skip.ContentDoc, | ||
| ContentEmbed: Skip.ContentEmbed, | ||
| ContentFormat: Skip.ContentFormat, | ||
| ContentJSON: Skip.ContentJSON, | ||
| ContentString: Skip.ContentString, | ||
| ContentType: Skip.ContentType, | ||
| DiffAttributionManager: Skip.DiffAttributionManager, | ||
| Doc: Skip.Doc, | ||
| GC: Skip.GC, | ||
| ID: Skip.ID, | ||
| IdMap: Skip.IdMap, | ||
| IdSet: Skip.IdSet, | ||
| Item: Skip.Item, | ||
| Map: Skip.YMap, | ||
| RelativePosition: Skip.RelativePosition, | ||
| Skip: Skip.Skip, | ||
| Snapshot: Skip.Snapshot, | ||
| Text: Skip.YText, | ||
| Transaction: Skip.Transaction, | ||
| TwosetAttributionManager: Skip.TwosetAttributionManager, | ||
| UndoManager: Skip.UndoManager, | ||
| UpdateDecoderV1: Skip.UpdateDecoderV1, | ||
| UpdateDecoderV2: Skip.UpdateDecoderV2, | ||
| UpdateEncoderV1: Skip.UpdateEncoderV1, | ||
| UpdateEncoderV2: Skip.UpdateEncoderV2, | ||
| XmlElement: Skip.YXmlElement, | ||
| XmlFragment: Skip.YXmlFragment, | ||
| XmlHook: Skip.YXmlHook, | ||
| XmlText: Skip.YXmlText, | ||
| YEvent: Skip.YEvent, | ||
| applyUpdate: Skip.applyUpdate, | ||
| applyUpdateV2: Skip.applyUpdateV2, | ||
| cleanupYTextFormatting: Skip.cleanupYTextFormatting, | ||
| cloneDoc: Skip.cloneDoc, | ||
| compareIDs: Skip.compareIDs, | ||
| compareRelativePositions: Skip.compareRelativePositions, | ||
| convertUpdateFormatV1ToV2: Skip.convertUpdateFormatV1ToV2, | ||
| convertUpdateFormatV2ToV1: Skip.convertUpdateFormatV2ToV1, | ||
| createAbsolutePositionFromRelativePosition: Skip.createAbsolutePositionFromRelativePosition, | ||
| createAttributionItem: Skip.createAttributionItem, | ||
| createAttributionManagerFromDiff: Skip.createAttributionManagerFromDiff, | ||
| createDeleteSetFromStructStore: Skip.createDeleteSetFromStructStore, | ||
| createDocFromSnapshot: Skip.createDocFromSnapshot, | ||
| createID: Skip.createID, | ||
| createIdMap: Skip.createIdMap, | ||
| createIdMapFromIdSet: Skip.createIdMapFromIdSet, | ||
| createIdSet: Skip.createIdSet, | ||
| createInsertionSetFromStructStore: Skip.createInsertSetFromStructStore, | ||
| createRelativePositionFromJSON: Skip.createRelativePositionFromJSON, | ||
| createRelativePositionFromTypeIndex: Skip.createRelativePositionFromTypeIndex, | ||
| createSnapshot: Skip.createSnapshot, | ||
| decodeIdMap: Skip.decodeIdMap, | ||
| decodeRelativePosition: Skip.decodeRelativePosition, | ||
| decodeSnapshot: Skip.decodeSnapshot, | ||
| decodeSnapshotV2: Skip.decodeSnapshotV2, | ||
| decodeStateVector: Skip.decodeStateVector, | ||
| decodeUpdate: Skip.decodeUpdate, | ||
| decodeUpdateV2: Skip.decodeUpdateV2, | ||
| diffDocsToDelta: Skip.diffDocsToDelta, | ||
| diffIdMap: Skip.diffIdMap, | ||
| diffIdSet: Skip.diffIdSet, | ||
| diffUpdate: Skip.diffUpdate, | ||
| diffUpdateV2: Skip.diffUpdateV2, | ||
| emptySnapshot: Skip.emptySnapshot, | ||
| encodeIdMap: Skip.encodeIdMap, | ||
| encodeRelativePosition: Skip.encodeRelativePosition, | ||
| encodeSnapshot: Skip.encodeSnapshot, | ||
| encodeSnapshotV2: Skip.encodeSnapshotV2, | ||
| encodeStateAsUpdate: Skip.encodeStateAsUpdate, | ||
| encodeStateAsUpdateV2: Skip.encodeStateAsUpdateV2, | ||
| encodeStateVector: Skip.encodeStateVector, | ||
| encodeStateVectorFromUpdate: Skip.encodeStateVectorFromUpdate, | ||
| encodeStateVectorFromUpdateV2: Skip.encodeStateVectorFromUpdateV2, | ||
| equalIdSets: Skip.equalIdSets, | ||
| equalSnapshots: Skip.equalSnapshots, | ||
| findIndexSS: Skip.findIndexSS, | ||
| findRootTypeKey: Skip.findRootTypeKey, | ||
| getItem: Skip.getItem, | ||
| getItemCleanEnd: Skip.getItemCleanEnd, | ||
| getItemCleanStart: Skip.getItemCleanStart, | ||
| getState: Skip.getState, | ||
| getTypeChildren: Skip.getTypeChildren, | ||
| insertIntoIdMap: Skip.insertIntoIdMap, | ||
| insertIntoIdSet: Skip.insertIntoIdSet, | ||
| isParentOf: Skip.isParentOf, | ||
| iterateStructsByIdSet: Skip.iterateStructsByIdSet, | ||
| logType: Skip.logType, | ||
| logUpdate: Skip.logUpdate, | ||
| logUpdateV2: Skip.logUpdateV2, | ||
| mergeIdMaps: Skip.mergeIdMaps, | ||
| mergeIdSets: Skip.mergeIdSets, | ||
| mergeUpdates: Skip.mergeUpdates, | ||
| mergeUpdatesV2: Skip.mergeUpdatesV2, | ||
| noAttributionsManager: Skip.noAttributionsManager, | ||
| obfuscateUpdate: Skip.obfuscateUpdate, | ||
| obfuscateUpdateV2: Skip.obfuscateUpdateV2, | ||
| readIdMap: Skip.readIdMap, | ||
| readIdSet: Skip.readIdSet, | ||
| readUpdate: Skip.readUpdate, | ||
| readUpdateIdRanges: Skip.readUpdateIdRanges, | ||
| readUpdateIdRangesV2: Skip.readUpdateIdRangesV2, | ||
| readUpdateV2: Skip.readUpdateV2, | ||
| relativePositionToJSON: Skip.relativePositionToJSON, | ||
| snapshot: Skip.snapshot, | ||
| snapshotContainsUpdate: Skip.snapshotContainsUpdate, | ||
| transact: Skip.transact, | ||
| tryGc: Skip.tryGc, | ||
| typeListToArraySnapshot: Skip.typeListToArraySnapshot, | ||
| typeMapGetAllSnapshot: Skip.typeMapGetAllSnapshot, | ||
| typeMapGetSnapshot: Skip.typeMapGetSnapshot | ||
| }); | ||
| exports.Y = Y; | ||
| //# sourceMappingURL=index-Cv2_IcVn.js.map |
| {"version":3,"file":"index-Cv2_IcVn.js","sources":["../src/index.js"],"sourcesContent":["/** eslint-env browser */\n\nexport {\n Doc,\n Transaction,\n YArray as Array,\n YMap as Map,\n YText as Text,\n YXmlText as XmlText,\n YXmlHook as XmlHook,\n YXmlElement as XmlElement,\n YXmlFragment as XmlFragment,\n YEvent,\n Item,\n AbstractStruct,\n GC,\n Skip,\n ContentBinary,\n ContentDeleted,\n ContentDoc,\n ContentEmbed,\n ContentFormat,\n ContentJSON,\n ContentAny,\n ContentString,\n ContentType,\n AbstractType,\n getTypeChildren,\n createRelativePositionFromTypeIndex,\n createRelativePositionFromJSON,\n createAbsolutePositionFromRelativePosition,\n compareRelativePositions,\n AbsolutePosition,\n RelativePosition,\n ID,\n createID,\n compareIDs,\n getState,\n Snapshot,\n createSnapshot,\n cleanupYTextFormatting,\n snapshot,\n emptySnapshot,\n findRootTypeKey,\n findIndexSS,\n getItem,\n getItemCleanStart,\n getItemCleanEnd,\n typeListToArraySnapshot,\n typeMapGetSnapshot,\n typeMapGetAllSnapshot,\n createDocFromSnapshot,\n applyUpdate,\n applyUpdateV2,\n readUpdate,\n readUpdateV2,\n encodeStateAsUpdate,\n encodeStateAsUpdateV2,\n encodeStateVector,\n UndoManager,\n decodeSnapshot,\n encodeSnapshot,\n decodeSnapshotV2,\n encodeSnapshotV2,\n decodeStateVector,\n logUpdate,\n logUpdateV2,\n decodeUpdate,\n decodeUpdateV2,\n relativePositionToJSON,\n isParentOf,\n equalSnapshots,\n tryGc,\n transact,\n AbstractConnector,\n logType,\n mergeUpdates,\n mergeUpdatesV2,\n encodeStateVectorFromUpdate,\n encodeStateVectorFromUpdateV2,\n encodeRelativePosition,\n decodeRelativePosition,\n diffUpdate,\n diffUpdateV2,\n convertUpdateFormatV1ToV2,\n convertUpdateFormatV2ToV1,\n obfuscateUpdate,\n obfuscateUpdateV2,\n UpdateEncoderV1,\n UpdateEncoderV2,\n UpdateDecoderV1,\n UpdateDecoderV2,\n snapshotContainsUpdate,\n // idset\n IdSet,\n equalIdSets,\n createDeleteSetFromStructStore,\n IdMap,\n createIdMap,\n createAttributionItem,\n createInsertSetFromStructStore as createInsertionSetFromStructStore,\n diffIdMap,\n diffIdSet,\n AttributionItem as Attribution,\n encodeIdMap,\n createIdMapFromIdSet,\n TwosetAttributionManager,\n noAttributionsManager,\n AbstractAttributionManager,\n iterateStructsByIdSet,\n createAttributionManagerFromDiff,\n DiffAttributionManager,\n createIdSet,\n mergeIdSets,\n cloneDoc,\n readUpdateIdRanges,\n readUpdateIdRangesV2,\n insertIntoIdMap,\n insertIntoIdSet,\n mergeIdMaps,\n readIdMap,\n readIdSet,\n decodeIdMap,\n diffDocsToDelta\n} from './internals.js'\n\nconst glo = /** @type {any} */ (typeof globalThis !== 'undefined'\n ? globalThis\n : typeof window !== 'undefined'\n ? window\n // @ts-ignore\n : typeof global !== 'undefined' ? global : {})\n\nconst importIdentifier = '__ $YJS$ __'\n\nif (glo[importIdentifier] === true) {\n /**\n * Dear reader of this message. Please take this seriously.\n *\n * If you see this message, make sure that you only import one version of Yjs. In many cases,\n * your package manager installs two versions of Yjs that are used by different packages within your project.\n * Another reason for this message is that some parts of your project use the commonjs version of Yjs\n * and others use the EcmaScript version of Yjs.\n *\n * This often leads to issues that are hard to debug. We often need to perform constructor checks,\n * e.g. `struct instanceof GC`. If you imported different versions of Yjs, it is impossible for us to\n * do the constructor checks anymore - which might break the CRDT algorithm.\n *\n * https://github.com/yjs/yjs/issues/438\n */\n console.error('Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438')\n}\nglo[importIdentifier] = true\n"],"names":[],"mappings":";;;;;;;;AAAA;;;AA8HA,MAAM,GAAG,uBAAuB,OAAO,UAAU,KAAK;AACtD,IAAI;AACJ,IAAI,OAAO,MAAM,KAAK;AACtB,MAAM;AACN;AACA,MAAM,OAAO,MAAM,KAAK,WAAW,GAAG,MAAM,GAAG,EAAE;;AAEjD,MAAM,gBAAgB,GAAG;;AAEzB,IAAI,GAAG,CAAC,gBAAgB,CAAC,KAAK,IAAI,EAAE;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,OAAO,CAAC,KAAK,CAAC,2HAA2H;AAC3I;AACA,GAAG,CAAC,gBAAgB,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
| 'use strict'; | ||
| var Skip = require('./Skip-CpmLMm7q.js'); | ||
| var Skip = require('./Skip-BedzDO5o.js'); | ||
| require('lib0/observable'); | ||
@@ -5,0 +5,0 @@ require('lib0/array'); |
@@ -1,2 +0,2 @@ | ||
| export { ah as AbsolutePosition, bF as AbstractAttributionManager, A as AbstractConnector, d7 as AbstractContent, cy as AbstractStruct, bU as AbstractType, bP as ArraySearchMarker, bo as AttrRange, bq as AttrRanges, bE as AttributedContent, bl as AttributionItem, cN as ContentAny, cB as ContentBinary, cD as ContentDeleted, cF as ContentDoc, cH as ContentEmbed, cJ as ContentFormat, cL as ContentJSON, cP as ContentString, cZ as ContentType, z as DSDecoderV1, B as DSDecoderV2, bJ as DiffAttributionManager, D as Doc, a0 as EventHandler, cA as GC, a6 as ID, bt as IdMap, I as IdRange, a as IdRanges, b as IdSet, E as IdSetEncoderV1, G as IdSetEncoderV2, d4 as Item, cj as ItemTextListPosition, a_ as LazyStructReader, b3 as LazyStructWriter, M as MaybeIdRange, bH as NoAttributionsManager, ae as RelativePosition, d9 as Skip, ar as Snapshot, bL as SnapshotAttributionManager, aY as StackItem, bk as StructSet, aF as StructStore, aS as Transaction, bG as TwosetAttributionManager, aZ as UndoManager, U as UpdateDecoderV1, C as UpdateDecoderV2, F as UpdateEncoderV1, H as UpdateEncoderV2, cf as YArray, cS as YArrayRefID, bh as YEvent, ch as YMap, cT as YMapRefID, co as YText, cU as YTextRefID, cs as YXmlElement, cV as YXmlElementRefID, cq as YXmlFragment, cW as YXmlFragmentRefID, cu as YXmlHook, cX as YXmlHookRefID, cw as YXmlText, cY as YXmlTextRefID, r as _createInsertSliceFromStructs, _ as _deleteRangeFromIdSet, h as _diffSet, e as _insertIntoIdSet, k as _intersectSets, aV as addChangedTypeToTransaction, a2 as addEventHandlerListener, aJ as addStruct, o as addStructToIdSet, n as addToIdSet, Q as applyUpdate, P as applyUpdateV2, bC as attributionJsonSchema, a5 as callEventHandlerListeners, bT as callTypeObservers, cm as cleanupYTextAfterTransaction, cl as cleanupYTextFormatting, y as cloneDoc, a7 as compareIDs, aq as compareRelativePositions, d6 as contentRefs, bc as convertUpdateFormat, bf as convertUpdateFormatV1ToV2, bg as convertUpdateFormatV2ToV1, ai as createAbsolutePosition, ap as createAbsolutePositionFromRelativePosition, bD as createAttributionFromAttributionItems, bm as createAttributionItem, bK as createAttributionManagerFromDiff, bM as createAttributionManagerFromSnapshots, q as createDeleteSetFromStructStore, aC as createDocFromSnapshot, a1 as createEventHandler, a8 as createID, by as createIdMap, bs as createIdMapFromIdSet, p as createIdSet, s as createInsertSetFromStructStore, ce as createMapIterator, bp as createMaybeAttrRange, c as createMaybeIdRange, aj as createRelativePosition, ag as createRelativePositionFromJSON, ak as createRelativePositionFromTypeIndex, ax as createSnapshot, bx as decodeIdMap, ao as decodeRelativePosition, aw as decodeSnapshot, av as decodeSnapshotV2, W as decodeStateVector, b1 as decodeUpdate, b2 as decodeUpdateV2, cn as deleteText, bN as diffDocsToDelta, bA as diffIdMap, j as diffIdSet, bb as diffUpdate, ba as diffUpdateV2, ay as emptySnapshot, bv as encodeIdMap, am as encodeRelativePosition, au as encodeSnapshot, at as encodeSnapshotV2, T as encodeStateAsUpdate, S as encodeStateAsUpdateV2, $ as encodeStateVector, b6 as encodeStateVectorFromUpdate, b5 as encodeStateVectorFromUpdateV2, Z as encodeStateVectorV2, bV as equalAttrs, v as equalIdSets, as as equalSnapshots, aL as find, aN as findIndexCleanStart, f as findIndexInIdRanges, aK as findIndexSS, bQ as findMarker, d as findRangeStartInIdRanges, ab as findRootTypeKey, c$ as followRedone, x as generateNewClientId, aM as getItem, aP as getItemCleanEnd, aO as getItemCleanStart, aH as getState, aG as getStateVector, bS as getTypeChildren, bn as idmapAttrsEqual, bz as insertIntoIdMap, g as insertIntoIdSet, ck as insertText, aI as integrityCheck, bB as intersectMaps, l as intersectSets, ac as isParentOf, aA as isVisible, aR as iterateStructs, i as iterateStructsByIdSet, d0 as keepItem, ad as logType, a$ as logUpdate, b0 as logUpdateV2, br as mergeIdMaps, m as mergeIdSets, b4 as mergeUpdates, b9 as mergeUpdatesV2, aU as nextID, bI as noAttributionsManager, bd as obfuscateUpdate, be as obfuscateUpdateV2, u as readAndApplyDeleteSet, cO as readContentAny, cC as readContentBinary, cE as readContentDeleted, cG as readContentDoc, cI as readContentEmbed, cK as readContentFormat, cM as readContentJSON, cQ as readContentString, c_ as readContentType, aa as readID, bw as readIdMap, t as readIdSet, d5 as readItemContent, an as readRelativePosition, V as readStateVector, bi as readStructSet, O as readUpdate, b8 as readUpdateIdRanges, b7 as readUpdateIdRangesV2, N as readUpdateV2, cg as readYArray, ci as readYMap, cp as readYText, ct as readYXmlElement, cr as readYXmlFragment, cv as readYXmlHook, cx as readYXmlText, d3 as redoItem, af as relativePositionToJSON, a4 as removeAllEventHandlerListeners, a3 as removeEventHandlerListener, bj as removeRangesFromStructSet, aQ as replaceStruct, az as snapshot, aE as snapshotContainsUpdate, aD as snapshotContainsUpdateV2, d1 as splitItem, aB as splitSnapshotAffectedStructs, d2 as splitStruct, cz as structGCRefNumber, d8 as structSkipRefNumber, aX as transact, aW as tryGc, b$ as typeListCreateIterator, c5 as typeListDelete, bZ as typeListForEach, c0 as typeListForEachSnapshot, c1 as typeListGet, c3 as typeListInsertGenerics, c2 as typeListInsertGenericsAfter, b_ as typeListMap, c4 as typeListPushGenerics, bW as typeListSlice, bX as typeListToArray, bY as typeListToArraySnapshot, c6 as typeMapDelete, c8 as typeMapGet, c9 as typeMapGetAll, cd as typeMapGetAllSnapshot, ca as typeMapGetDelta, cc as typeMapGetSnapshot, cb as typeMapHas, c7 as typeMapSet, cR as typeRefs, bR as updateMarkerChanges, bO as warnPrematureAccess, J as writeClientsStructs, Y as writeDocumentStateVector, a9 as writeID, bu as writeIdMap, w as writeIdSet, al as writeRelativePosition, R as writeStateAsUpdate, X as writeStateVector, K as writeStructsFromIdSet, L as writeStructsFromTransaction, aT as writeUpdateMessageFromTransaction } from './Skip-CtOOBRkz.js'; | ||
| export { ah as AbsolutePosition, bF as AbstractAttributionManager, A as AbstractConnector, d7 as AbstractContent, cy as AbstractStruct, bU as AbstractType, bP as ArraySearchMarker, bo as AttrRange, bq as AttrRanges, bE as AttributedContent, bl as AttributionItem, cN as ContentAny, cB as ContentBinary, cD as ContentDeleted, cF as ContentDoc, cH as ContentEmbed, cJ as ContentFormat, cL as ContentJSON, cP as ContentString, cZ as ContentType, z as DSDecoderV1, B as DSDecoderV2, bJ as DiffAttributionManager, D as Doc, a0 as EventHandler, cA as GC, a6 as ID, bt as IdMap, I as IdRange, a as IdRanges, b as IdSet, E as IdSetEncoderV1, G as IdSetEncoderV2, d4 as Item, cj as ItemTextListPosition, a_ as LazyStructReader, b3 as LazyStructWriter, M as MaybeIdRange, bH as NoAttributionsManager, ae as RelativePosition, d9 as Skip, ar as Snapshot, bL as SnapshotAttributionManager, aY as StackItem, bk as StructSet, aF as StructStore, aS as Transaction, bG as TwosetAttributionManager, aZ as UndoManager, U as UpdateDecoderV1, C as UpdateDecoderV2, F as UpdateEncoderV1, H as UpdateEncoderV2, cf as YArray, cS as YArrayRefID, bh as YEvent, ch as YMap, cT as YMapRefID, co as YText, cU as YTextRefID, cs as YXmlElement, cV as YXmlElementRefID, cq as YXmlFragment, cW as YXmlFragmentRefID, cu as YXmlHook, cX as YXmlHookRefID, cw as YXmlText, cY as YXmlTextRefID, r as _createInsertSliceFromStructs, _ as _deleteRangeFromIdSet, h as _diffSet, e as _insertIntoIdSet, k as _intersectSets, aV as addChangedTypeToTransaction, a2 as addEventHandlerListener, aJ as addStruct, o as addStructToIdSet, n as addToIdSet, Q as applyUpdate, P as applyUpdateV2, bC as attributionJsonSchema, a5 as callEventHandlerListeners, bT as callTypeObservers, cm as cleanupYTextAfterTransaction, cl as cleanupYTextFormatting, y as cloneDoc, a7 as compareIDs, aq as compareRelativePositions, d6 as contentRefs, bc as convertUpdateFormat, bf as convertUpdateFormatV1ToV2, bg as convertUpdateFormatV2ToV1, ai as createAbsolutePosition, ap as createAbsolutePositionFromRelativePosition, bD as createAttributionFromAttributionItems, bm as createAttributionItem, bK as createAttributionManagerFromDiff, bM as createAttributionManagerFromSnapshots, q as createDeleteSetFromStructStore, aC as createDocFromSnapshot, a1 as createEventHandler, a8 as createID, by as createIdMap, bs as createIdMapFromIdSet, p as createIdSet, s as createInsertSetFromStructStore, ce as createMapIterator, bp as createMaybeAttrRange, c as createMaybeIdRange, aj as createRelativePosition, ag as createRelativePositionFromJSON, ak as createRelativePositionFromTypeIndex, ax as createSnapshot, bx as decodeIdMap, ao as decodeRelativePosition, aw as decodeSnapshot, av as decodeSnapshotV2, W as decodeStateVector, b1 as decodeUpdate, b2 as decodeUpdateV2, cn as deleteText, bN as diffDocsToDelta, bA as diffIdMap, j as diffIdSet, bb as diffUpdate, ba as diffUpdateV2, ay as emptySnapshot, bv as encodeIdMap, am as encodeRelativePosition, au as encodeSnapshot, at as encodeSnapshotV2, T as encodeStateAsUpdate, S as encodeStateAsUpdateV2, $ as encodeStateVector, b6 as encodeStateVectorFromUpdate, b5 as encodeStateVectorFromUpdateV2, Z as encodeStateVectorV2, bV as equalAttrs, v as equalIdSets, as as equalSnapshots, aL as find, aN as findIndexCleanStart, f as findIndexInIdRanges, aK as findIndexSS, bQ as findMarker, d as findRangeStartInIdRanges, ab as findRootTypeKey, c$ as followRedone, x as generateNewClientId, aM as getItem, aP as getItemCleanEnd, aO as getItemCleanStart, aH as getState, aG as getStateVector, bS as getTypeChildren, bn as idmapAttrsEqual, bz as insertIntoIdMap, g as insertIntoIdSet, ck as insertText, aI as integrityCheck, bB as intersectMaps, l as intersectSets, ac as isParentOf, aA as isVisible, aR as iterateStructs, i as iterateStructsByIdSet, d0 as keepItem, ad as logType, a$ as logUpdate, b0 as logUpdateV2, br as mergeIdMaps, m as mergeIdSets, b4 as mergeUpdates, b9 as mergeUpdatesV2, aU as nextID, bI as noAttributionsManager, bd as obfuscateUpdate, be as obfuscateUpdateV2, u as readAndApplyDeleteSet, cO as readContentAny, cC as readContentBinary, cE as readContentDeleted, cG as readContentDoc, cI as readContentEmbed, cK as readContentFormat, cM as readContentJSON, cQ as readContentString, c_ as readContentType, aa as readID, bw as readIdMap, t as readIdSet, d5 as readItemContent, an as readRelativePosition, V as readStateVector, bi as readStructSet, O as readUpdate, b8 as readUpdateIdRanges, b7 as readUpdateIdRangesV2, N as readUpdateV2, cg as readYArray, ci as readYMap, cp as readYText, ct as readYXmlElement, cr as readYXmlFragment, cv as readYXmlHook, cx as readYXmlText, d3 as redoItem, af as relativePositionToJSON, a4 as removeAllEventHandlerListeners, a3 as removeEventHandlerListener, bj as removeRangesFromStructSet, aQ as replaceStruct, az as snapshot, aE as snapshotContainsUpdate, aD as snapshotContainsUpdateV2, d1 as splitItem, aB as splitSnapshotAffectedStructs, d2 as splitStruct, cz as structGCRefNumber, d8 as structSkipRefNumber, aX as transact, aW as tryGc, b$ as typeListCreateIterator, c5 as typeListDelete, bZ as typeListForEach, c0 as typeListForEachSnapshot, c1 as typeListGet, c3 as typeListInsertGenerics, c2 as typeListInsertGenericsAfter, b_ as typeListMap, c4 as typeListPushGenerics, bW as typeListSlice, bX as typeListToArray, bY as typeListToArraySnapshot, c6 as typeMapDelete, c8 as typeMapGet, c9 as typeMapGetAll, cd as typeMapGetAllSnapshot, ca as typeMapGetDelta, cc as typeMapGetSnapshot, cb as typeMapHas, c7 as typeMapSet, cR as typeRefs, bR as updateMarkerChanges, bO as warnPrematureAccess, J as writeClientsStructs, Y as writeDocumentStateVector, a9 as writeID, bu as writeIdMap, w as writeIdSet, al as writeRelativePosition, R as writeStateAsUpdate, X as writeStateVector, K as writeStructsFromIdSet, L as writeStructsFromTransaction, aT as writeUpdateMessageFromTransaction } from './Skip-BdX6BTcH.js'; | ||
| import 'lib0/observable'; | ||
@@ -3,0 +3,0 @@ import 'lib0/array'; |
@@ -152,6 +152,4 @@ export function warnPrematureAccess(): void; | ||
| * @param {boolean} [opts.retainDeletes] - if true, retain rendered+attributed deletes only | ||
| * @param {Set<string>?} [opts.renderAttrs] - set of attrs to render. if null, render all attributes | ||
| * @param {boolean} [opts.renderChildren] - if true, retain rendered+attributed deletes only | ||
| * @param {import('../utils/IdSet.js').IdSet?} [opts.deletedItems] - used for computing prevItem in attributes | ||
| * @param {Set<import('../utils/types.js').YType>|Map<import('../utils/types.js').YType,any>|null} [opts.modified] - set of types that should be rendered as modified children | ||
| * @param {Map<import('../utils/types.js').YType,Set<string|null>>|null} [opts.modified] - set of types that should be rendered as modified children | ||
| * @param {Deep} [opts.deep] - render child types as delta | ||
@@ -166,6 +164,4 @@ * @return {Deep extends true ? ToDeepEventDelta<EventDelta> : EventDelta} The Delta representation of this type. | ||
| retainDeletes?: boolean | undefined; | ||
| renderAttrs?: Set<string> | null | undefined; | ||
| renderChildren?: boolean | undefined; | ||
| deletedItems?: import("../internals.js").IdSet | null | undefined; | ||
| modified?: Set<AbstractType<any, any>> | Map<AbstractType<any, any>, any> | null | undefined; | ||
| modified?: Map<AbstractType<any, any>, Set<string | null>> | null | undefined; | ||
| deep?: Deep | undefined; | ||
@@ -218,3 +214,3 @@ }): Deep extends true ? ToDeepEventDelta<EventDelta> : EventDelta; | ||
| }; | ||
| export function typeMapGetDelta<TypeDelta extends delta.DeltaBuilder<any, any, any, any>>(d: TypeDelta, parent: YType_, attrsToRender: Set<string> | null, am: import("../internals.js").AbstractAttributionManager, deep: boolean, modified?: Set<import("../utils/types.js").YType> | Map<import("../utils/types.js").YType, any> | null, deletedItems?: import("../utils/IdSet.js").IdSet | null, itemsToRender?: import("../utils/IdSet.js").IdSet | null): void; | ||
| export function typeMapGetDelta<TypeDelta extends delta.DeltaBuilder<any, any, any, any>>(d: TypeDelta, parent: YType_, attrsToRender: Set<string | null> | null, am: import("../internals.js").AbstractAttributionManager, deep: boolean, modified?: Set<import("../utils/types.js").YType> | Map<import("../utils/types.js").YType, any> | null, deletedItems?: import("../utils/IdSet.js").IdSet | null, itemsToRender?: import("../utils/IdSet.js").IdSet | null, opts?: any): void; | ||
| export function typeMapHas(parent: AbstractType<any>, key: string): boolean; | ||
@@ -221,0 +217,0 @@ export function typeMapGetSnapshot(parent: AbstractType<any>, key: string, snapshot: Snapshot): { |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"AbstractType.d.ts","sourceRoot":"","sources":["../../../src/types/AbstractType.js"],"names":[],"mappings":"AA4CO,4CAAiH;AAaxH;IACE;;;OAGG;IACH,eAHW,IAAI,SACJ,MAAM,EAOhB;IAHC,QAAU;IACV,cAAkB;IAClB,kBAA8C;CAEjD;AAqDM,mCAHI,OAAO,mBAAmB,EAAE,KAAK,SACjC,MAAM,4BAyEhB;AAWM,kDAJI,KAAK,CAAC,iBAAiB,CAAC,SACxB,MAAM,OACN,MAAM,QAiChB;AAQM,mCAHI,OAAO,mBAAmB,EAAE,KAAK,GAChC,KAAK,CAAC,IAAI,CAAC,CAWtB;AAUM,wCAJI,OAAO,mBAAmB,EAAE,KAAK,eACjC,WAAW,SACV,MAAM,CAAC,GAAG,CAAC,QActB;AAED;;;;GAIG;AACH,0BAHiD,UAAU,SAA7C,KAAK,CAAC,KAAK,CAAC,GAAG,EAAC,GAAG,EAAC,GAAG,EAAC,GAAG,EAAC,GAAG,CAAE,QACT,IAAI,SAA5B,YAAY,CAAC,GAAG,EAAC,GAAG,CAAE;IAIhC;;OAEG;IACH,OAFU,IAAI,GAAC,IAAI,CAEF;IACjB;;OAEG;IACH,MAFU,GAAG,CAAC,MAAM,EAAC,IAAI,CAAC,CAEL;IACrB;;OAEG;IACH,QAFU,IAAI,GAAC,IAAI,CAED;IAClB;;OAEG;IACH,KAFU,GAAG,GAAC,IAAI,CAEH;IACf,gBAAgB;IAChB;;;OAGG;IACH,KAFU,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,EAAC,WAAW,CAAC,CAEjB;IAC/B;;;OAGG;IACH,MAFU,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAA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Ac,GACb,OAAO,CAIlB;IAED;;;;;;;;OAQG;IACH,gBARwB,IAAI,SAAf,OAAS,eACX,0BAA0B,aAElC;QAAoB,IAAI;KACxB,GAAS,MAAM,SAAS,YAAY,CAAC,MAAM,CAAC,EAAC,GAAG,CAAC,GAAG,CAAC,IAAI,SAAS,IAAI,GAAG,OAAO,iBAAiB,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,EAAC,GAAG,EAAC,GAAG,EAAC,GAAG,CAAC,CAiC5J;IAED;;;;;;OAMG;IACH,oBAHU,MAAM,SAAS,YAAY,CAAC,MAAM,CAAC,EAAC,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,EAAC,GAAG,EAAC,GAAG,EAAC,GAAG,EAAC,GAAG,CAAC,CAKxF;IAED;;;;;;OAMG;IACH,wBAHU,MAAM,SAAS,YAAY,CAAC,MAAM,CAAC,EAAC,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,EAAC,GAAG,EAAC,GAAG,EAAC,GAAG,EAAC,GAAG,CAAC,CAKxF;CACF;qBAnKY,OAAO,YAAY,EAAE,KAAK;6BAPhC,iBAAiB;4BAAjB,iBAAiB;uBAGD,YAAY;+BAH5B,iBAAiB;2CAAjB,iBAAiB"} |
@@ -10,7 +10,7 @@ 'use strict'; | ||
| var map = require('lib0/map'); | ||
| var yjs = require('./index-B8_EfGwa.js'); | ||
| var yjs = require('./index-Cv2_IcVn.js'); | ||
| var math = require('lib0/math'); | ||
| var list = require('lib0/list'); | ||
| var delta = require('lib0/delta'); | ||
| var Skip = require('./Skip-CpmLMm7q.js'); | ||
| var Skip = require('./Skip-BedzDO5o.js'); | ||
| require('lib0/function'); | ||
@@ -17,0 +17,0 @@ require('lib0/binary'); |
@@ -8,8 +8,8 @@ import * as t from 'lib0/testing'; | ||
| import * as map from 'lib0/map'; | ||
| import { Y } from './index-Czf9BAS1.js'; | ||
| import { Y } from './index-CgCxSBiZ.js'; | ||
| import * as math from 'lib0/math'; | ||
| import * as list from 'lib0/list'; | ||
| import * as delta from 'lib0/delta'; | ||
| import { bb as diffUpdate, a$ as logUpdate, Q as applyUpdate, b4 as mergeUpdates, T as encodeStateAsUpdate, ba as diffUpdateV2, b0 as logUpdateV2, P as applyUpdateV2, b9 as mergeUpdatesV2, S as encodeStateAsUpdateV2, a7 as compareIDs, D as Doc, cs as YXmlElement, by as createIdMap, n as addToIdSet, p as createIdSet, bm as createAttributionItem, bv as encodeIdMap, bU as AbstractType, $ as encodeStateVector, v as equalIdSets, q as createDeleteSetFromStructStore, au as encodeSnapshot, az as snapshot, d4 as Item } from './Skip-CtOOBRkz.js'; | ||
| export { ah as AbsolutePosition, bF as AbstractAttributionManager, A as AbstractConnector, cy as AbstractStruct, cf as Array, bl as Attribution, cN as ContentAny, cB as ContentBinary, cD as ContentDeleted, cF as ContentDoc, cH as ContentEmbed, cJ as ContentFormat, cL as ContentJSON, cP as ContentString, cZ as ContentType, bJ as DiffAttributionManager, cA as GC, a6 as ID, bt as IdMap, b as IdSet, ch as Map, ae as RelativePosition, d9 as Skip, ar as Snapshot, co as Text, aS as Transaction, bG as TwosetAttributionManager, aZ as UndoManager, U as UpdateDecoderV1, C as UpdateDecoderV2, F as UpdateEncoderV1, H as UpdateEncoderV2, cq as XmlFragment, cu as XmlHook, cw as XmlText, bh as YEvent, cl as cleanupYTextFormatting, y as cloneDoc, aq as compareRelativePositions, bf as convertUpdateFormatV1ToV2, bg as convertUpdateFormatV2ToV1, ap as createAbsolutePositionFromRelativePosition, bK as createAttributionManagerFromDiff, aC as createDocFromSnapshot, a8 as createID, bs as createIdMapFromIdSet, s as createInsertionSetFromStructStore, ag as createRelativePositionFromJSON, ak as createRelativePositionFromTypeIndex, ax as createSnapshot, bx as decodeIdMap, ao as decodeRelativePosition, aw as decodeSnapshot, av as decodeSnapshotV2, W as decodeStateVector, b1 as decodeUpdate, b2 as decodeUpdateV2, bN as diffDocsToDelta, bA as diffIdMap, j as diffIdSet, ay as emptySnapshot, am as encodeRelativePosition, at as encodeSnapshotV2, b6 as encodeStateVectorFromUpdate, b5 as encodeStateVectorFromUpdateV2, as as equalSnapshots, aK as findIndexSS, ab as findRootTypeKey, aM as getItem, aP as getItemCleanEnd, aO as getItemCleanStart, aH as getState, bS as getTypeChildren, bz as insertIntoIdMap, g as insertIntoIdSet, ac as isParentOf, i as iterateStructsByIdSet, ad as logType, br as mergeIdMaps, m as mergeIdSets, bI as noAttributionsManager, bd as obfuscateUpdate, be as obfuscateUpdateV2, bw as readIdMap, t as readIdSet, O as readUpdate, b8 as readUpdateIdRanges, b7 as readUpdateIdRangesV2, N as readUpdateV2, af as relativePositionToJSON, aE as snapshotContainsUpdate, aX as transact, aW as tryGc, bY as typeListToArraySnapshot, cd as typeMapGetAllSnapshot, cc as typeMapGetSnapshot } from './Skip-CtOOBRkz.js'; | ||
| import { bb as diffUpdate, a$ as logUpdate, Q as applyUpdate, b4 as mergeUpdates, T as encodeStateAsUpdate, ba as diffUpdateV2, b0 as logUpdateV2, P as applyUpdateV2, b9 as mergeUpdatesV2, S as encodeStateAsUpdateV2, a7 as compareIDs, D as Doc, cs as YXmlElement, by as createIdMap, n as addToIdSet, p as createIdSet, bm as createAttributionItem, bv as encodeIdMap, bU as AbstractType, $ as encodeStateVector, v as equalIdSets, q as createDeleteSetFromStructStore, au as encodeSnapshot, az as snapshot, d4 as Item } from './Skip-BdX6BTcH.js'; | ||
| export { ah as AbsolutePosition, bF as AbstractAttributionManager, A as AbstractConnector, cy as AbstractStruct, cf as Array, bl as Attribution, cN as ContentAny, cB as ContentBinary, cD as ContentDeleted, cF as ContentDoc, cH as ContentEmbed, cJ as ContentFormat, cL as ContentJSON, cP as ContentString, cZ as ContentType, bJ as DiffAttributionManager, cA as GC, a6 as ID, bt as IdMap, b as IdSet, ch as Map, ae as RelativePosition, d9 as Skip, ar as Snapshot, co as Text, aS as Transaction, bG as TwosetAttributionManager, aZ as UndoManager, U as UpdateDecoderV1, C as UpdateDecoderV2, F as UpdateEncoderV1, H as UpdateEncoderV2, cq as XmlFragment, cu as XmlHook, cw as XmlText, bh as YEvent, cl as cleanupYTextFormatting, y as cloneDoc, aq as compareRelativePositions, bf as convertUpdateFormatV1ToV2, bg as convertUpdateFormatV2ToV1, ap as createAbsolutePositionFromRelativePosition, bK as createAttributionManagerFromDiff, aC as createDocFromSnapshot, a8 as createID, bs as createIdMapFromIdSet, s as createInsertionSetFromStructStore, ag as createRelativePositionFromJSON, ak as createRelativePositionFromTypeIndex, ax as createSnapshot, bx as decodeIdMap, ao as decodeRelativePosition, aw as decodeSnapshot, av as decodeSnapshotV2, W as decodeStateVector, b1 as decodeUpdate, b2 as decodeUpdateV2, bN as diffDocsToDelta, bA as diffIdMap, j as diffIdSet, ay as emptySnapshot, am as encodeRelativePosition, at as encodeSnapshotV2, b6 as encodeStateVectorFromUpdate, b5 as encodeStateVectorFromUpdateV2, as as equalSnapshots, aK as findIndexSS, ab as findRootTypeKey, aM as getItem, aP as getItemCleanEnd, aO as getItemCleanStart, aH as getState, bS as getTypeChildren, bz as insertIntoIdMap, g as insertIntoIdSet, ac as isParentOf, i as iterateStructsByIdSet, ad as logType, br as mergeIdMaps, m as mergeIdSets, bI as noAttributionsManager, bd as obfuscateUpdate, be as obfuscateUpdateV2, bw as readIdMap, t as readIdSet, O as readUpdate, b8 as readUpdateIdRanges, b7 as readUpdateIdRangesV2, N as readUpdateV2, af as relativePositionToJSON, aE as snapshotContainsUpdate, aX as transact, aW as tryGc, bY as typeListToArraySnapshot, cd as typeMapGetAllSnapshot, cc as typeMapGetSnapshot } from './Skip-BdX6BTcH.js'; | ||
| import 'lib0/function'; | ||
@@ -16,0 +16,0 @@ import 'lib0/binary'; |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"attribution.tests.d.ts","sourceRoot":"","sources":["../../tests/attribution.tests.js"],"names":[],"mappings":"AAcO,2CAFI,CAAC,CAAC,QAAQ,QAepB;AAKM,0CAFI,CAAC,CAAC,QAAQ,QAqBpB;AAKM,4DAFI,CAAC,CAAC,QAAQ,QAepB;AAKM,yDAFI,CAAC,CAAC,QAAQ,QAepB;AAEM,qCAoBN;mBArGkB,cAAc"} | ||
| {"version":3,"file":"attribution.tests.d.ts","sourceRoot":"","sources":["../../tests/attribution.tests.js"],"names":[],"mappings":"AAcO,2CAFI,CAAC,CAAC,QAAQ,QAepB;AAKM,0CAFI,CAAC,CAAC,QAAQ,QAqBpB;AAKM,4DAFI,CAAC,CAAC,QAAQ,QAepB;AAKM,yDAFI,CAAC,CAAC,QAAQ,QAepB;AAEM,qCAmBN;mBApGkB,cAAc"} |
| export function testIterators(_tc: t.TestCase): void; | ||
| export function testNestedMapEvent(): void; | ||
| export function testNestedMapEvent2(): void; | ||
| export function testMapEventError(_tc: t.TestCase): void; | ||
@@ -3,0 +5,0 @@ export function testMapHavingIterableAsConstructorParamTests(tc: t.TestCase): void; |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"y-map.tests.d.ts","sourceRoot":"","sources":["../../tests/y-map.tests.js"],"names":[],"mappings":"AAiBO,mCAFI,CAAC,CAAC,QAAQ,QAsBpB;AAOM,uCAFI,CAAC,CAAC,QAAQ,QAkBpB;AAKM,iEAFI,CAAC,CAAC,QAAQ,QAwBpB;AAKM,sCAFI,CAAC,CAAC,QAAQ,QAiDpB;AAKM,+CAFI,CAAC,CAAC,QAAQ,QAkBpB;AAKM,qCAFI,CAAC,CAAC,QAAQ,QASpB;AAKM,uCAFI,CAAC,CAAC,QAAQ,QAUpB;AAKM,oDAFI,CAAC,CAAC,QAAQ,QAYpB;AAKM,2DAFI,CAAC,CAAC,QAAQ,QAYpB;AAKM,mDAFI,CAAC,CAAC,QAAQ,QAWpB;AAKM,wDAFI,CAAC,CAAC,QAAQ,QAapB;AAKM,mDAFI,CAAC,CAAC,QAAQ,QAepB;AAKM,gEAFI,CAAC,CAAC,QA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IpB;AAKM,oDAFI,CAAC,CAAC,QAAQ,QAIpB;AAKM,oDAFI,CAAC,CAAC,QAAQ,QAIpB;AAKM,qDAFI,CAAC,CAAC,QAAQ,QAIpB;AAKM,qDAFI,CAAC,CAAC,QAAQ,QAIpB;AAKM,qDAFI,CAAC,CAAC,QAAQ,QAIpB;AAKM,qDAFI,CAAC,CAAC,QAAQ,QAIpB;AAKM,sDAFI,CAAC,CAAC,QAAQ,QAIpB;AAKM,sDAFI,CAAC,CAAC,QAAQ,QAIpB;AAKM,sDAFI,CAAC,CAAC,QAAQ,QAKpB;AAKM,uDAFI,CAAC,CAAC,QAAQ,QAKpB;AAKM,wDAFI,CAAC,CAAC,QAAQ,QAKpB;mBA7yBkB,cAAc"} |
+2
-2
| 'use strict'; | ||
| var Skip = require('./Skip-CpmLMm7q.js'); | ||
| var Skip = require('./Skip-BedzDO5o.js'); | ||
| require('lib0/function'); | ||
@@ -8,3 +8,3 @@ require('lib0/decoding'); | ||
| require('lib0/map'); | ||
| require('./index-B8_EfGwa.js'); | ||
| require('./index-Cv2_IcVn.js'); | ||
| require('lib0/observable'); | ||
@@ -11,0 +11,0 @@ require('lib0/array'); |
+2
-2
@@ -1,2 +0,2 @@ | ||
| export { ah as AbsolutePosition, bF as AbstractAttributionManager, A as AbstractConnector, cy as AbstractStruct, bU as AbstractType, cf as Array, bl as Attribution, cN as ContentAny, cB as ContentBinary, cD as ContentDeleted, cF as ContentDoc, cH as ContentEmbed, cJ as ContentFormat, cL as ContentJSON, cP as ContentString, cZ as ContentType, bJ as DiffAttributionManager, D as Doc, cA as GC, a6 as ID, bt as IdMap, b as IdSet, d4 as Item, ch as Map, ae as RelativePosition, d9 as Skip, ar as Snapshot, co as Text, aS as Transaction, bG as TwosetAttributionManager, aZ as UndoManager, U as UpdateDecoderV1, C as UpdateDecoderV2, F as UpdateEncoderV1, H as UpdateEncoderV2, cs as XmlElement, cq as XmlFragment, cu as XmlHook, cw as XmlText, bh as YEvent, Q as applyUpdate, P as applyUpdateV2, cl as cleanupYTextFormatting, y as cloneDoc, a7 as compareIDs, aq as compareRelativePositions, bf as convertUpdateFormatV1ToV2, bg as convertUpdateFormatV2ToV1, ap as createAbsolutePositionFromRelativePosition, bm as createAttributionItem, bK as createAttributionManagerFromDiff, q as createDeleteSetFromStructStore, aC as createDocFromSnapshot, a8 as createID, by as createIdMap, bs as createIdMapFromIdSet, p as createIdSet, s as createInsertionSetFromStructStore, ag as createRelativePositionFromJSON, ak as createRelativePositionFromTypeIndex, ax as createSnapshot, bx as decodeIdMap, ao as decodeRelativePosition, aw as decodeSnapshot, av as decodeSnapshotV2, W as decodeStateVector, b1 as decodeUpdate, b2 as decodeUpdateV2, bN as diffDocsToDelta, bA as diffIdMap, j as diffIdSet, bb as diffUpdate, ba as diffUpdateV2, ay as emptySnapshot, bv as encodeIdMap, am as encodeRelativePosition, au as encodeSnapshot, at as encodeSnapshotV2, T as encodeStateAsUpdate, S as encodeStateAsUpdateV2, $ as encodeStateVector, b6 as encodeStateVectorFromUpdate, b5 as encodeStateVectorFromUpdateV2, v as equalIdSets, as as equalSnapshots, aK as findIndexSS, ab as findRootTypeKey, aM as getItem, aP as getItemCleanEnd, aO as getItemCleanStart, aH as getState, bS as getTypeChildren, bz as insertIntoIdMap, g as insertIntoIdSet, ac as isParentOf, i as iterateStructsByIdSet, ad as logType, a$ as logUpdate, b0 as logUpdateV2, br as mergeIdMaps, m as mergeIdSets, b4 as mergeUpdates, b9 as mergeUpdatesV2, bI as noAttributionsManager, bd as obfuscateUpdate, be as obfuscateUpdateV2, bw as readIdMap, t as readIdSet, O as readUpdate, b8 as readUpdateIdRanges, b7 as readUpdateIdRangesV2, N as readUpdateV2, af as relativePositionToJSON, az as snapshot, aE as snapshotContainsUpdate, aX as transact, aW as tryGc, bY as typeListToArraySnapshot, cd as typeMapGetAllSnapshot, cc as typeMapGetSnapshot } from './Skip-CtOOBRkz.js'; | ||
| export { ah as AbsolutePosition, bF as AbstractAttributionManager, A as AbstractConnector, cy as AbstractStruct, bU as AbstractType, cf as Array, bl as Attribution, cN as ContentAny, cB as ContentBinary, cD as ContentDeleted, cF as ContentDoc, cH as ContentEmbed, cJ as ContentFormat, cL as ContentJSON, cP as ContentString, cZ as ContentType, bJ as DiffAttributionManager, D as Doc, cA as GC, a6 as ID, bt as IdMap, b as IdSet, d4 as Item, ch as Map, ae as RelativePosition, d9 as Skip, ar as Snapshot, co as Text, aS as Transaction, bG as TwosetAttributionManager, aZ as UndoManager, U as UpdateDecoderV1, C as UpdateDecoderV2, F as UpdateEncoderV1, H as UpdateEncoderV2, cs as XmlElement, cq as XmlFragment, cu as XmlHook, cw as XmlText, bh as YEvent, Q as applyUpdate, P as applyUpdateV2, cl as cleanupYTextFormatting, y as cloneDoc, a7 as compareIDs, aq as compareRelativePositions, bf as convertUpdateFormatV1ToV2, bg as convertUpdateFormatV2ToV1, ap as createAbsolutePositionFromRelativePosition, bm as createAttributionItem, bK as createAttributionManagerFromDiff, q as createDeleteSetFromStructStore, aC as createDocFromSnapshot, a8 as createID, by as createIdMap, bs as createIdMapFromIdSet, p as createIdSet, s as createInsertionSetFromStructStore, ag as createRelativePositionFromJSON, ak as createRelativePositionFromTypeIndex, ax as createSnapshot, bx as decodeIdMap, ao as decodeRelativePosition, aw as decodeSnapshot, av as decodeSnapshotV2, W as decodeStateVector, b1 as decodeUpdate, b2 as decodeUpdateV2, bN as diffDocsToDelta, bA as diffIdMap, j as diffIdSet, bb as diffUpdate, ba as diffUpdateV2, ay as emptySnapshot, bv as encodeIdMap, am as encodeRelativePosition, au as encodeSnapshot, at as encodeSnapshotV2, T as encodeStateAsUpdate, S as encodeStateAsUpdateV2, $ as encodeStateVector, b6 as encodeStateVectorFromUpdate, b5 as encodeStateVectorFromUpdateV2, v as equalIdSets, as as equalSnapshots, aK as findIndexSS, ab as findRootTypeKey, aM as getItem, aP as getItemCleanEnd, aO as getItemCleanStart, aH as getState, bS as getTypeChildren, bz as insertIntoIdMap, g as insertIntoIdSet, ac as isParentOf, i as iterateStructsByIdSet, ad as logType, a$ as logUpdate, b0 as logUpdateV2, br as mergeIdMaps, m as mergeIdSets, b4 as mergeUpdates, b9 as mergeUpdatesV2, bI as noAttributionsManager, bd as obfuscateUpdate, be as obfuscateUpdateV2, bw as readIdMap, t as readIdSet, O as readUpdate, b8 as readUpdateIdRanges, b7 as readUpdateIdRangesV2, N as readUpdateV2, af as relativePositionToJSON, az as snapshot, aE as snapshotContainsUpdate, aX as transact, aW as tryGc, bY as typeListToArraySnapshot, cd as typeMapGetAllSnapshot, cc as typeMapGetSnapshot } from './Skip-BdX6BTcH.js'; | ||
| import 'lib0/function'; | ||
@@ -6,3 +6,3 @@ import 'lib0/decoding'; | ||
| import 'lib0/map'; | ||
| import './index-Czf9BAS1.js'; | ||
| import './index-CgCxSBiZ.js'; | ||
| import 'lib0/observable'; | ||
@@ -9,0 +9,0 @@ import 'lib0/array'; |
+2
-2
| { | ||
| "name": "yjs", | ||
| "version": "14.0.0-14", | ||
| "version": "14.0.0-15", | ||
| "description": "Shared Editing Library", | ||
@@ -85,3 +85,3 @@ "main": "./dist/yjs.cjs", | ||
| "dependencies": { | ||
| "lib0": "^0.2.115-4" | ||
| "lib0": "^0.2.115-6" | ||
| }, | ||
@@ -88,0 +88,0 @@ "devDependencies": { |
@@ -467,6 +467,4 @@ import { | ||
| * @param {boolean} [opts.retainDeletes] - if true, retain rendered+attributed deletes only | ||
| * @param {Set<string>?} [opts.renderAttrs] - set of attrs to render. if null, render all attributes | ||
| * @param {boolean} [opts.renderChildren] - if true, retain rendered+attributed deletes only | ||
| * @param {import('../utils/IdSet.js').IdSet?} [opts.deletedItems] - used for computing prevItem in attributes | ||
| * @param {Set<import('../utils/types.js').YType>|Map<import('../utils/types.js').YType,any>|null} [opts.modified] - set of types that should be rendered as modified children | ||
| * @param {Map<import('../utils/types.js').YType,Set<string|null>>|null} [opts.modified] - set of types that should be rendered as modified children | ||
| * @param {Deep} [opts.deep] - render child types as delta | ||
@@ -478,3 +476,5 @@ * @return {Deep extends true ? ToDeepEventDelta<EventDelta> : EventDelta} The Delta representation of this type. | ||
| getContent (am = noAttributionsManager, opts = {}) { | ||
| const { itemsToRender = null, retainInserts = false, retainDeletes = false, renderAttrs = null, renderChildren = true, deletedItems = null, modified = null, deep = false } = opts | ||
| const { itemsToRender = null, retainInserts = false, retainDeletes = false, deletedItems = null, modified = null, deep = false } = opts | ||
| const renderAttrs = modified?.get(this) || null | ||
| const renderChildren = (modified == null || opts.modified.get(this)?.has(null)) | ||
| /** | ||
@@ -484,3 +484,3 @@ * @type {EventDelta extends delta.Delta<infer N,infer Attrs,infer Children,infer Text,any> ? delta.DeltaBuilder<N,Attrs,Children,Text,any> : never} | ||
| const d = /** @type {any} */ (delta.create(/** @type {any} */ (this).nodeName || null)) | ||
| typeMapGetDelta(d, /** @type {any} */ (this), renderAttrs, am, deep, modified, deletedItems, itemsToRender) | ||
| typeMapGetDelta(d, /** @type {any} */ (this), renderAttrs, am, deep, modified, deletedItems, itemsToRender, opts) | ||
| if (renderChildren) { | ||
@@ -577,3 +577,3 @@ /** | ||
| } else if (deep && c.content.constructor === ContentType) { | ||
| d.insert([/** @type {any} */(c.content).type.getContent(am, { ...opts, renderChildren: true, renderAttrs: null })], null, attribution) | ||
| d.insert([/** @type {any} */(c.content).type.getContent(am, opts)], null, attribution) | ||
| } else { | ||
@@ -1303,2 +1303,4 @@ d.insert(c.content.getContent(), null, attribution) | ||
| /** | ||
| * @todo move this to getContent/getDelta | ||
| * | ||
| * Render the difference to another ydoc (which can be empty) and highlight the differences with | ||
@@ -1313,3 +1315,3 @@ * attributions. | ||
| * @param {YType_} parent | ||
| * @param {Set<string>?} attrsToRender | ||
| * @param {Set<string|null>?} attrsToRender | ||
| * @param {import('../internals.js').AbstractAttributionManager} am | ||
@@ -1320,2 +1322,3 @@ * @param {boolean} deep | ||
| * @param {import('../utils/IdSet.js').IdSet?} [itemsToRender] | ||
| * @param {any} [opts] | ||
| * | ||
@@ -1325,3 +1328,3 @@ * @private | ||
| */ | ||
| export const typeMapGetDelta = (d, parent, attrsToRender, am, deep, modified, deletedItems, itemsToRender) => { | ||
| export const typeMapGetDelta = (d, parent, attrsToRender, am, deep, modified, deletedItems, itemsToRender, opts) => { | ||
| // @todo support modified ops! | ||
@@ -1345,2 +1348,4 @@ /** | ||
| } | ||
| } else if (deep && c instanceof AbstractType && modified?.has(c)) { | ||
| d.update(key, c.getContent(am, opts)) | ||
| } else { | ||
@@ -1347,0 +1352,0 @@ // find prev content |
@@ -47,3 +47,3 @@ import { | ||
| const shareDelta = type.getContent(am, { | ||
| itemsToRender, retainDeletes: true, renderAttrs: /** @type {Set<string>} */ (changedTypes.get(type)), renderChildren: typeConf.has(null), deletedItems: deletesOnly, modified: changedTypes, deep: true | ||
| itemsToRender, retainDeletes: true, deletedItems: deletesOnly, modified: changedTypes, deep: true | ||
| }) | ||
@@ -50,0 +50,0 @@ d.update(typename, shareDelta) |
+29
-2
@@ -8,3 +8,5 @@ import { | ||
| import * as map from 'lib0/map' | ||
| import * as delta from 'lib0/delta' // eslint-disable-line | ||
| import * as set from 'lib0/set' | ||
@@ -125,4 +127,29 @@ /** | ||
| const itemsToRender = mergeIdSets([diffIdSet(this.transaction.insertSet, this.transaction.deleteSet), diffIdSet(this.transaction.deleteSet, this.transaction.insertSet)]) | ||
| const modified = deep ? this.transaction.changedParentTypes : null | ||
| return /** @type {any} */ (this.target.getContent(am, { itemsToRender, retainDeletes: true, renderAttrs: this.keysChanged, renderChildren: deep || this.childListChanged, deletedItems: this.transaction.deleteSet, deep: !!deep, modified })) | ||
| /** | ||
| * @todo this should be done only one in the transaction step | ||
| * | ||
| * @type {Map<import('./types.js').YType,Set<string|null>>|null} | ||
| */ | ||
| let modified = this.transaction.changed | ||
| if (deep) { | ||
| // need to add deep changes to copy of modified | ||
| const dchanged = new Map() | ||
| modified.forEach((attrs, type) => { | ||
| dchanged.set(type, new Set(attrs)) | ||
| }) | ||
| for (let m of modified.keys()) { | ||
| while (m._item != null) { | ||
| const item = m._item | ||
| const ms = map.setIfUndefined(dchanged, item?.parent, set.create) | ||
| if (item && !ms.has(item.parentSub)) { | ||
| ms.add(item.parentSub) | ||
| m = /** @type {any} */ (item.parent) | ||
| } else { | ||
| break | ||
| } | ||
| } | ||
| } | ||
| modified = dchanged | ||
| } | ||
| return /** @type {any} */ (this.target.getContent(am, { itemsToRender, retainDeletes: true, deletedItems: this.transaction.deleteSet, deep: !!deep, modified })) | ||
| } | ||
@@ -129,0 +156,0 @@ |
| 'use strict'; | ||
| var Skip = require('./Skip-CpmLMm7q.js'); | ||
| require('lib0/function'); | ||
| require('lib0/decoding'); | ||
| require('lib0/binary'); | ||
| require('lib0/map'); | ||
| /** eslint-env browser */ | ||
| const glo = /** @type {any} */ (typeof globalThis !== 'undefined' | ||
| ? globalThis | ||
| : typeof window !== 'undefined' | ||
| ? window | ||
| // @ts-ignore | ||
| : typeof global !== 'undefined' ? global : {}); | ||
| const importIdentifier = '__ $YJS$ __'; | ||
| if (glo[importIdentifier] === true) { | ||
| /** | ||
| * Dear reader of this message. Please take this seriously. | ||
| * | ||
| * If you see this message, make sure that you only import one version of Yjs. In many cases, | ||
| * your package manager installs two versions of Yjs that are used by different packages within your project. | ||
| * Another reason for this message is that some parts of your project use the commonjs version of Yjs | ||
| * and others use the EcmaScript version of Yjs. | ||
| * | ||
| * This often leads to issues that are hard to debug. We often need to perform constructor checks, | ||
| * e.g. `struct instanceof GC`. If you imported different versions of Yjs, it is impossible for us to | ||
| * do the constructor checks anymore - which might break the CRDT algorithm. | ||
| * | ||
| * https://github.com/yjs/yjs/issues/438 | ||
| */ | ||
| console.error('Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438'); | ||
| } | ||
| glo[importIdentifier] = true; | ||
| var Y = /*#__PURE__*/Object.freeze({ | ||
| __proto__: null, | ||
| AbsolutePosition: Skip.AbsolutePosition, | ||
| AbstractAttributionManager: Skip.AbstractAttributionManager, | ||
| AbstractConnector: Skip.AbstractConnector, | ||
| AbstractStruct: Skip.AbstractStruct, | ||
| AbstractType: Skip.AbstractType, | ||
| Array: Skip.YArray, | ||
| Attribution: Skip.AttributionItem, | ||
| ContentAny: Skip.ContentAny, | ||
| ContentBinary: Skip.ContentBinary, | ||
| ContentDeleted: Skip.ContentDeleted, | ||
| ContentDoc: Skip.ContentDoc, | ||
| ContentEmbed: Skip.ContentEmbed, | ||
| ContentFormat: Skip.ContentFormat, | ||
| ContentJSON: Skip.ContentJSON, | ||
| ContentString: Skip.ContentString, | ||
| ContentType: Skip.ContentType, | ||
| DiffAttributionManager: Skip.DiffAttributionManager, | ||
| Doc: Skip.Doc, | ||
| GC: Skip.GC, | ||
| ID: Skip.ID, | ||
| IdMap: Skip.IdMap, | ||
| IdSet: Skip.IdSet, | ||
| Item: Skip.Item, | ||
| Map: Skip.YMap, | ||
| RelativePosition: Skip.RelativePosition, | ||
| Skip: Skip.Skip, | ||
| Snapshot: Skip.Snapshot, | ||
| Text: Skip.YText, | ||
| Transaction: Skip.Transaction, | ||
| TwosetAttributionManager: Skip.TwosetAttributionManager, | ||
| UndoManager: Skip.UndoManager, | ||
| UpdateDecoderV1: Skip.UpdateDecoderV1, | ||
| UpdateDecoderV2: Skip.UpdateDecoderV2, | ||
| UpdateEncoderV1: Skip.UpdateEncoderV1, | ||
| UpdateEncoderV2: Skip.UpdateEncoderV2, | ||
| XmlElement: Skip.YXmlElement, | ||
| XmlFragment: Skip.YXmlFragment, | ||
| XmlHook: Skip.YXmlHook, | ||
| XmlText: Skip.YXmlText, | ||
| YEvent: Skip.YEvent, | ||
| applyUpdate: Skip.applyUpdate, | ||
| applyUpdateV2: Skip.applyUpdateV2, | ||
| cleanupYTextFormatting: Skip.cleanupYTextFormatting, | ||
| cloneDoc: Skip.cloneDoc, | ||
| compareIDs: Skip.compareIDs, | ||
| compareRelativePositions: Skip.compareRelativePositions, | ||
| convertUpdateFormatV1ToV2: Skip.convertUpdateFormatV1ToV2, | ||
| convertUpdateFormatV2ToV1: Skip.convertUpdateFormatV2ToV1, | ||
| createAbsolutePositionFromRelativePosition: Skip.createAbsolutePositionFromRelativePosition, | ||
| createAttributionItem: Skip.createAttributionItem, | ||
| createAttributionManagerFromDiff: Skip.createAttributionManagerFromDiff, | ||
| createDeleteSetFromStructStore: Skip.createDeleteSetFromStructStore, | ||
| createDocFromSnapshot: Skip.createDocFromSnapshot, | ||
| createID: Skip.createID, | ||
| createIdMap: Skip.createIdMap, | ||
| createIdMapFromIdSet: Skip.createIdMapFromIdSet, | ||
| createIdSet: Skip.createIdSet, | ||
| createInsertionSetFromStructStore: Skip.createInsertSetFromStructStore, | ||
| createRelativePositionFromJSON: Skip.createRelativePositionFromJSON, | ||
| createRelativePositionFromTypeIndex: Skip.createRelativePositionFromTypeIndex, | ||
| createSnapshot: Skip.createSnapshot, | ||
| decodeIdMap: Skip.decodeIdMap, | ||
| decodeRelativePosition: Skip.decodeRelativePosition, | ||
| decodeSnapshot: Skip.decodeSnapshot, | ||
| decodeSnapshotV2: Skip.decodeSnapshotV2, | ||
| decodeStateVector: Skip.decodeStateVector, | ||
| decodeUpdate: Skip.decodeUpdate, | ||
| decodeUpdateV2: Skip.decodeUpdateV2, | ||
| diffDocsToDelta: Skip.diffDocsToDelta, | ||
| diffIdMap: Skip.diffIdMap, | ||
| diffIdSet: Skip.diffIdSet, | ||
| diffUpdate: Skip.diffUpdate, | ||
| diffUpdateV2: Skip.diffUpdateV2, | ||
| emptySnapshot: Skip.emptySnapshot, | ||
| encodeIdMap: Skip.encodeIdMap, | ||
| encodeRelativePosition: Skip.encodeRelativePosition, | ||
| encodeSnapshot: Skip.encodeSnapshot, | ||
| encodeSnapshotV2: Skip.encodeSnapshotV2, | ||
| encodeStateAsUpdate: Skip.encodeStateAsUpdate, | ||
| encodeStateAsUpdateV2: Skip.encodeStateAsUpdateV2, | ||
| encodeStateVector: Skip.encodeStateVector, | ||
| encodeStateVectorFromUpdate: Skip.encodeStateVectorFromUpdate, | ||
| encodeStateVectorFromUpdateV2: Skip.encodeStateVectorFromUpdateV2, | ||
| equalIdSets: Skip.equalIdSets, | ||
| equalSnapshots: Skip.equalSnapshots, | ||
| findIndexSS: Skip.findIndexSS, | ||
| findRootTypeKey: Skip.findRootTypeKey, | ||
| getItem: Skip.getItem, | ||
| getItemCleanEnd: Skip.getItemCleanEnd, | ||
| getItemCleanStart: Skip.getItemCleanStart, | ||
| getState: Skip.getState, | ||
| getTypeChildren: Skip.getTypeChildren, | ||
| insertIntoIdMap: Skip.insertIntoIdMap, | ||
| insertIntoIdSet: Skip.insertIntoIdSet, | ||
| isParentOf: Skip.isParentOf, | ||
| iterateStructsByIdSet: Skip.iterateStructsByIdSet, | ||
| logType: Skip.logType, | ||
| logUpdate: Skip.logUpdate, | ||
| logUpdateV2: Skip.logUpdateV2, | ||
| mergeIdMaps: Skip.mergeIdMaps, | ||
| mergeIdSets: Skip.mergeIdSets, | ||
| mergeUpdates: Skip.mergeUpdates, | ||
| mergeUpdatesV2: Skip.mergeUpdatesV2, | ||
| noAttributionsManager: Skip.noAttributionsManager, | ||
| obfuscateUpdate: Skip.obfuscateUpdate, | ||
| obfuscateUpdateV2: Skip.obfuscateUpdateV2, | ||
| readIdMap: Skip.readIdMap, | ||
| readIdSet: Skip.readIdSet, | ||
| readUpdate: Skip.readUpdate, | ||
| readUpdateIdRanges: Skip.readUpdateIdRanges, | ||
| readUpdateIdRangesV2: Skip.readUpdateIdRangesV2, | ||
| readUpdateV2: Skip.readUpdateV2, | ||
| relativePositionToJSON: Skip.relativePositionToJSON, | ||
| snapshot: Skip.snapshot, | ||
| snapshotContainsUpdate: Skip.snapshotContainsUpdate, | ||
| transact: Skip.transact, | ||
| tryGc: Skip.tryGc, | ||
| typeListToArraySnapshot: Skip.typeListToArraySnapshot, | ||
| typeMapGetAllSnapshot: Skip.typeMapGetAllSnapshot, | ||
| typeMapGetSnapshot: Skip.typeMapGetSnapshot | ||
| }); | ||
| exports.Y = Y; | ||
| //# sourceMappingURL=index-B8_EfGwa.js.map |
| {"version":3,"file":"index-B8_EfGwa.js","sources":["../src/index.js"],"sourcesContent":["/** eslint-env browser */\n\nexport {\n Doc,\n Transaction,\n YArray as Array,\n YMap as Map,\n YText as Text,\n YXmlText as XmlText,\n YXmlHook as XmlHook,\n YXmlElement as XmlElement,\n YXmlFragment as XmlFragment,\n YEvent,\n Item,\n AbstractStruct,\n GC,\n Skip,\n ContentBinary,\n ContentDeleted,\n ContentDoc,\n ContentEmbed,\n ContentFormat,\n ContentJSON,\n ContentAny,\n ContentString,\n ContentType,\n AbstractType,\n getTypeChildren,\n createRelativePositionFromTypeIndex,\n createRelativePositionFromJSON,\n createAbsolutePositionFromRelativePosition,\n compareRelativePositions,\n AbsolutePosition,\n RelativePosition,\n ID,\n createID,\n compareIDs,\n getState,\n Snapshot,\n createSnapshot,\n cleanupYTextFormatting,\n snapshot,\n emptySnapshot,\n findRootTypeKey,\n findIndexSS,\n getItem,\n getItemCleanStart,\n getItemCleanEnd,\n typeListToArraySnapshot,\n typeMapGetSnapshot,\n typeMapGetAllSnapshot,\n createDocFromSnapshot,\n applyUpdate,\n applyUpdateV2,\n readUpdate,\n readUpdateV2,\n encodeStateAsUpdate,\n encodeStateAsUpdateV2,\n encodeStateVector,\n UndoManager,\n decodeSnapshot,\n encodeSnapshot,\n decodeSnapshotV2,\n encodeSnapshotV2,\n decodeStateVector,\n logUpdate,\n logUpdateV2,\n decodeUpdate,\n decodeUpdateV2,\n relativePositionToJSON,\n isParentOf,\n equalSnapshots,\n tryGc,\n transact,\n AbstractConnector,\n logType,\n mergeUpdates,\n mergeUpdatesV2,\n encodeStateVectorFromUpdate,\n encodeStateVectorFromUpdateV2,\n encodeRelativePosition,\n decodeRelativePosition,\n diffUpdate,\n diffUpdateV2,\n convertUpdateFormatV1ToV2,\n convertUpdateFormatV2ToV1,\n obfuscateUpdate,\n obfuscateUpdateV2,\n UpdateEncoderV1,\n UpdateEncoderV2,\n UpdateDecoderV1,\n UpdateDecoderV2,\n snapshotContainsUpdate,\n // idset\n IdSet,\n equalIdSets,\n createDeleteSetFromStructStore,\n IdMap,\n createIdMap,\n createAttributionItem,\n createInsertSetFromStructStore as createInsertionSetFromStructStore,\n diffIdMap,\n diffIdSet,\n AttributionItem as Attribution,\n encodeIdMap,\n createIdMapFromIdSet,\n TwosetAttributionManager,\n noAttributionsManager,\n AbstractAttributionManager,\n iterateStructsByIdSet,\n createAttributionManagerFromDiff,\n DiffAttributionManager,\n createIdSet,\n mergeIdSets,\n cloneDoc,\n readUpdateIdRanges,\n readUpdateIdRangesV2,\n insertIntoIdMap,\n insertIntoIdSet,\n mergeIdMaps,\n readIdMap,\n readIdSet,\n decodeIdMap,\n diffDocsToDelta\n} from './internals.js'\n\nconst glo = /** @type {any} */ (typeof globalThis !== 'undefined'\n ? globalThis\n : typeof window !== 'undefined'\n ? window\n // @ts-ignore\n : typeof global !== 'undefined' ? global : {})\n\nconst importIdentifier = '__ $YJS$ __'\n\nif (glo[importIdentifier] === true) {\n /**\n * Dear reader of this message. Please take this seriously.\n *\n * If you see this message, make sure that you only import one version of Yjs. In many cases,\n * your package manager installs two versions of Yjs that are used by different packages within your project.\n * Another reason for this message is that some parts of your project use the commonjs version of Yjs\n * and others use the EcmaScript version of Yjs.\n *\n * This often leads to issues that are hard to debug. We often need to perform constructor checks,\n * e.g. `struct instanceof GC`. If you imported different versions of Yjs, it is impossible for us to\n * do the constructor checks anymore - which might break the CRDT algorithm.\n *\n * https://github.com/yjs/yjs/issues/438\n */\n console.error('Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438')\n}\nglo[importIdentifier] = true\n"],"names":[],"mappings":";;;;;;;;AAAA;;;AA8HA,MAAM,GAAG,uBAAuB,OAAO,UAAU,KAAK;AACtD,IAAI;AACJ,IAAI,OAAO,MAAM,KAAK;AACtB,MAAM;AACN;AACA,MAAM,OAAO,MAAM,KAAK,WAAW,GAAG,MAAM,GAAG,EAAE;;AAEjD,MAAM,gBAAgB,GAAG;;AAEzB,IAAI,GAAG,CAAC,gBAAgB,CAAC,KAAK,IAAI,EAAE;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,OAAO,CAAC,KAAK,CAAC,2HAA2H;AAC3I;AACA,GAAG,CAAC,gBAAgB,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} |
| import { ah as AbsolutePosition, bF as AbstractAttributionManager, A as AbstractConnector, cy as AbstractStruct, bU as AbstractType, cf as YArray, bl as AttributionItem, cN as ContentAny, cB as ContentBinary, cD as ContentDeleted, cF as ContentDoc, cH as ContentEmbed, cJ as ContentFormat, cL as ContentJSON, cP as ContentString, cZ as ContentType, bJ as DiffAttributionManager, D as Doc, cA as GC, a6 as ID, bt as IdMap, b as IdSet, d4 as Item, ch as YMap, ae as RelativePosition, d9 as Skip, ar as Snapshot, co as YText, aS as Transaction, bG as TwosetAttributionManager, aZ as UndoManager, U as UpdateDecoderV1, C as UpdateDecoderV2, F as UpdateEncoderV1, H as UpdateEncoderV2, cs as YXmlElement, cq as YXmlFragment, cu as YXmlHook, cw as YXmlText, bh as YEvent, Q as applyUpdate, P as applyUpdateV2, cl as cleanupYTextFormatting, y as cloneDoc, a7 as compareIDs, aq as compareRelativePositions, bf as convertUpdateFormatV1ToV2, bg as convertUpdateFormatV2ToV1, ap as createAbsolutePositionFromRelativePosition, bm as createAttributionItem, bK as createAttributionManagerFromDiff, q as createDeleteSetFromStructStore, aC as createDocFromSnapshot, a8 as createID, by as createIdMap, bs as createIdMapFromIdSet, p as createIdSet, s as createInsertSetFromStructStore, ag as createRelativePositionFromJSON, ak as createRelativePositionFromTypeIndex, ax as createSnapshot, bx as decodeIdMap, ao as decodeRelativePosition, aw as decodeSnapshot, av as decodeSnapshotV2, W as decodeStateVector, b1 as decodeUpdate, b2 as decodeUpdateV2, bN as diffDocsToDelta, bA as diffIdMap, j as diffIdSet, bb as diffUpdate, ba as diffUpdateV2, ay as emptySnapshot, bv as encodeIdMap, am as encodeRelativePosition, au as encodeSnapshot, at as encodeSnapshotV2, T as encodeStateAsUpdate, S as encodeStateAsUpdateV2, $ as encodeStateVector, b6 as encodeStateVectorFromUpdate, b5 as encodeStateVectorFromUpdateV2, v as equalIdSets, as as equalSnapshots, aK as findIndexSS, ab as findRootTypeKey, aM as getItem, aP as getItemCleanEnd, aO as getItemCleanStart, aH as getState, bS as getTypeChildren, bz as insertIntoIdMap, g as insertIntoIdSet, ac as isParentOf, i as iterateStructsByIdSet, ad as logType, a$ as logUpdate, b0 as logUpdateV2, br as mergeIdMaps, m as mergeIdSets, b4 as mergeUpdates, b9 as mergeUpdatesV2, bI as noAttributionsManager, bd as obfuscateUpdate, be as obfuscateUpdateV2, bw as readIdMap, t as readIdSet, O as readUpdate, b8 as readUpdateIdRanges, b7 as readUpdateIdRangesV2, N as readUpdateV2, af as relativePositionToJSON, az as snapshot, aE as snapshotContainsUpdate, aX as transact, aW as tryGc, bY as typeListToArraySnapshot, cd as typeMapGetAllSnapshot, cc as typeMapGetSnapshot } from './Skip-CtOOBRkz.js'; | ||
| import 'lib0/function'; | ||
| import 'lib0/decoding'; | ||
| import 'lib0/binary'; | ||
| import 'lib0/map'; | ||
| /** eslint-env browser */ | ||
| const glo = /** @type {any} */ (typeof globalThis !== 'undefined' | ||
| ? globalThis | ||
| : typeof window !== 'undefined' | ||
| ? window | ||
| // @ts-ignore | ||
| : typeof global !== 'undefined' ? global : {}); | ||
| const importIdentifier = '__ $YJS$ __'; | ||
| if (glo[importIdentifier] === true) { | ||
| /** | ||
| * Dear reader of this message. Please take this seriously. | ||
| * | ||
| * If you see this message, make sure that you only import one version of Yjs. In many cases, | ||
| * your package manager installs two versions of Yjs that are used by different packages within your project. | ||
| * Another reason for this message is that some parts of your project use the commonjs version of Yjs | ||
| * and others use the EcmaScript version of Yjs. | ||
| * | ||
| * This often leads to issues that are hard to debug. We often need to perform constructor checks, | ||
| * e.g. `struct instanceof GC`. If you imported different versions of Yjs, it is impossible for us to | ||
| * do the constructor checks anymore - which might break the CRDT algorithm. | ||
| * | ||
| * https://github.com/yjs/yjs/issues/438 | ||
| */ | ||
| console.error('Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438'); | ||
| } | ||
| glo[importIdentifier] = true; | ||
| var Y = /*#__PURE__*/Object.freeze({ | ||
| __proto__: null, | ||
| AbsolutePosition: AbsolutePosition, | ||
| AbstractAttributionManager: AbstractAttributionManager, | ||
| AbstractConnector: AbstractConnector, | ||
| AbstractStruct: AbstractStruct, | ||
| AbstractType: AbstractType, | ||
| Array: YArray, | ||
| Attribution: AttributionItem, | ||
| ContentAny: ContentAny, | ||
| ContentBinary: ContentBinary, | ||
| ContentDeleted: ContentDeleted, | ||
| ContentDoc: ContentDoc, | ||
| ContentEmbed: ContentEmbed, | ||
| ContentFormat: ContentFormat, | ||
| ContentJSON: ContentJSON, | ||
| ContentString: ContentString, | ||
| ContentType: ContentType, | ||
| DiffAttributionManager: DiffAttributionManager, | ||
| Doc: Doc, | ||
| GC: GC, | ||
| ID: ID, | ||
| IdMap: IdMap, | ||
| IdSet: IdSet, | ||
| Item: Item, | ||
| Map: YMap, | ||
| RelativePosition: RelativePosition, | ||
| Skip: Skip, | ||
| Snapshot: Snapshot, | ||
| Text: YText, | ||
| Transaction: Transaction, | ||
| TwosetAttributionManager: TwosetAttributionManager, | ||
| UndoManager: UndoManager, | ||
| UpdateDecoderV1: UpdateDecoderV1, | ||
| UpdateDecoderV2: UpdateDecoderV2, | ||
| UpdateEncoderV1: UpdateEncoderV1, | ||
| UpdateEncoderV2: UpdateEncoderV2, | ||
| XmlElement: YXmlElement, | ||
| XmlFragment: YXmlFragment, | ||
| XmlHook: YXmlHook, | ||
| XmlText: YXmlText, | ||
| YEvent: YEvent, | ||
| applyUpdate: applyUpdate, | ||
| applyUpdateV2: applyUpdateV2, | ||
| cleanupYTextFormatting: cleanupYTextFormatting, | ||
| cloneDoc: cloneDoc, | ||
| compareIDs: compareIDs, | ||
| compareRelativePositions: compareRelativePositions, | ||
| convertUpdateFormatV1ToV2: convertUpdateFormatV1ToV2, | ||
| convertUpdateFormatV2ToV1: convertUpdateFormatV2ToV1, | ||
| createAbsolutePositionFromRelativePosition: createAbsolutePositionFromRelativePosition, | ||
| createAttributionItem: createAttributionItem, | ||
| createAttributionManagerFromDiff: createAttributionManagerFromDiff, | ||
| createDeleteSetFromStructStore: createDeleteSetFromStructStore, | ||
| createDocFromSnapshot: createDocFromSnapshot, | ||
| createID: createID, | ||
| createIdMap: createIdMap, | ||
| createIdMapFromIdSet: createIdMapFromIdSet, | ||
| createIdSet: createIdSet, | ||
| createInsertionSetFromStructStore: createInsertSetFromStructStore, | ||
| createRelativePositionFromJSON: createRelativePositionFromJSON, | ||
| createRelativePositionFromTypeIndex: createRelativePositionFromTypeIndex, | ||
| createSnapshot: createSnapshot, | ||
| decodeIdMap: decodeIdMap, | ||
| decodeRelativePosition: decodeRelativePosition, | ||
| decodeSnapshot: decodeSnapshot, | ||
| decodeSnapshotV2: decodeSnapshotV2, | ||
| decodeStateVector: decodeStateVector, | ||
| decodeUpdate: decodeUpdate, | ||
| decodeUpdateV2: decodeUpdateV2, | ||
| diffDocsToDelta: diffDocsToDelta, | ||
| diffIdMap: diffIdMap, | ||
| diffIdSet: diffIdSet, | ||
| diffUpdate: diffUpdate, | ||
| diffUpdateV2: diffUpdateV2, | ||
| emptySnapshot: emptySnapshot, | ||
| encodeIdMap: encodeIdMap, | ||
| encodeRelativePosition: encodeRelativePosition, | ||
| encodeSnapshot: encodeSnapshot, | ||
| encodeSnapshotV2: encodeSnapshotV2, | ||
| encodeStateAsUpdate: encodeStateAsUpdate, | ||
| encodeStateAsUpdateV2: encodeStateAsUpdateV2, | ||
| encodeStateVector: encodeStateVector, | ||
| encodeStateVectorFromUpdate: encodeStateVectorFromUpdate, | ||
| encodeStateVectorFromUpdateV2: encodeStateVectorFromUpdateV2, | ||
| equalIdSets: equalIdSets, | ||
| equalSnapshots: equalSnapshots, | ||
| findIndexSS: findIndexSS, | ||
| findRootTypeKey: findRootTypeKey, | ||
| getItem: getItem, | ||
| getItemCleanEnd: getItemCleanEnd, | ||
| getItemCleanStart: getItemCleanStart, | ||
| getState: getState, | ||
| getTypeChildren: getTypeChildren, | ||
| insertIntoIdMap: insertIntoIdMap, | ||
| insertIntoIdSet: insertIntoIdSet, | ||
| isParentOf: isParentOf, | ||
| iterateStructsByIdSet: iterateStructsByIdSet, | ||
| logType: logType, | ||
| logUpdate: logUpdate, | ||
| logUpdateV2: logUpdateV2, | ||
| mergeIdMaps: mergeIdMaps, | ||
| mergeIdSets: mergeIdSets, | ||
| mergeUpdates: mergeUpdates, | ||
| mergeUpdatesV2: mergeUpdatesV2, | ||
| noAttributionsManager: noAttributionsManager, | ||
| obfuscateUpdate: obfuscateUpdate, | ||
| obfuscateUpdateV2: obfuscateUpdateV2, | ||
| readIdMap: readIdMap, | ||
| readIdSet: readIdSet, | ||
| readUpdate: readUpdate, | ||
| readUpdateIdRanges: readUpdateIdRanges, | ||
| readUpdateIdRangesV2: readUpdateIdRangesV2, | ||
| readUpdateV2: readUpdateV2, | ||
| relativePositionToJSON: relativePositionToJSON, | ||
| snapshot: snapshot, | ||
| snapshotContainsUpdate: snapshotContainsUpdate, | ||
| transact: transact, | ||
| tryGc: tryGc, | ||
| typeListToArraySnapshot: typeListToArraySnapshot, | ||
| typeMapGetAllSnapshot: typeMapGetAllSnapshot, | ||
| typeMapGetSnapshot: typeMapGetSnapshot | ||
| }); | ||
| export { Y }; | ||
| //# sourceMappingURL=index-Czf9BAS1.js.map |
| {"version":3,"file":"index-Czf9BAS1.js","sources":["../src/index.js"],"sourcesContent":["/** eslint-env browser */\n\nexport {\n Doc,\n Transaction,\n YArray as Array,\n YMap as Map,\n YText as Text,\n YXmlText as XmlText,\n YXmlHook as XmlHook,\n YXmlElement as XmlElement,\n YXmlFragment as XmlFragment,\n YEvent,\n Item,\n AbstractStruct,\n GC,\n Skip,\n ContentBinary,\n ContentDeleted,\n ContentDoc,\n ContentEmbed,\n ContentFormat,\n ContentJSON,\n ContentAny,\n ContentString,\n ContentType,\n AbstractType,\n getTypeChildren,\n createRelativePositionFromTypeIndex,\n createRelativePositionFromJSON,\n createAbsolutePositionFromRelativePosition,\n compareRelativePositions,\n AbsolutePosition,\n RelativePosition,\n ID,\n createID,\n compareIDs,\n getState,\n Snapshot,\n createSnapshot,\n cleanupYTextFormatting,\n snapshot,\n emptySnapshot,\n findRootTypeKey,\n findIndexSS,\n getItem,\n getItemCleanStart,\n getItemCleanEnd,\n typeListToArraySnapshot,\n typeMapGetSnapshot,\n typeMapGetAllSnapshot,\n createDocFromSnapshot,\n applyUpdate,\n applyUpdateV2,\n readUpdate,\n readUpdateV2,\n encodeStateAsUpdate,\n encodeStateAsUpdateV2,\n encodeStateVector,\n UndoManager,\n decodeSnapshot,\n encodeSnapshot,\n decodeSnapshotV2,\n encodeSnapshotV2,\n decodeStateVector,\n logUpdate,\n logUpdateV2,\n decodeUpdate,\n decodeUpdateV2,\n relativePositionToJSON,\n isParentOf,\n equalSnapshots,\n tryGc,\n transact,\n AbstractConnector,\n logType,\n mergeUpdates,\n mergeUpdatesV2,\n encodeStateVectorFromUpdate,\n encodeStateVectorFromUpdateV2,\n encodeRelativePosition,\n decodeRelativePosition,\n diffUpdate,\n diffUpdateV2,\n convertUpdateFormatV1ToV2,\n convertUpdateFormatV2ToV1,\n obfuscateUpdate,\n obfuscateUpdateV2,\n UpdateEncoderV1,\n UpdateEncoderV2,\n UpdateDecoderV1,\n UpdateDecoderV2,\n snapshotContainsUpdate,\n // idset\n IdSet,\n equalIdSets,\n createDeleteSetFromStructStore,\n IdMap,\n createIdMap,\n createAttributionItem,\n createInsertSetFromStructStore as createInsertionSetFromStructStore,\n diffIdMap,\n diffIdSet,\n AttributionItem as Attribution,\n encodeIdMap,\n createIdMapFromIdSet,\n TwosetAttributionManager,\n noAttributionsManager,\n AbstractAttributionManager,\n iterateStructsByIdSet,\n createAttributionManagerFromDiff,\n DiffAttributionManager,\n createIdSet,\n mergeIdSets,\n cloneDoc,\n readUpdateIdRanges,\n readUpdateIdRangesV2,\n insertIntoIdMap,\n insertIntoIdSet,\n mergeIdMaps,\n readIdMap,\n readIdSet,\n decodeIdMap,\n diffDocsToDelta\n} from './internals.js'\n\nconst glo = /** @type {any} */ (typeof globalThis !== 'undefined'\n ? globalThis\n : typeof window !== 'undefined'\n ? window\n // @ts-ignore\n : typeof global !== 'undefined' ? global : {})\n\nconst importIdentifier = '__ $YJS$ __'\n\nif (glo[importIdentifier] === true) {\n /**\n * Dear reader of this message. Please take this seriously.\n *\n * If you see this message, make sure that you only import one version of Yjs. In many cases,\n * your package manager installs two versions of Yjs that are used by different packages within your project.\n * Another reason for this message is that some parts of your project use the commonjs version of Yjs\n * and others use the EcmaScript version of Yjs.\n *\n * This often leads to issues that are hard to debug. We often need to perform constructor checks,\n * e.g. `struct instanceof GC`. If you imported different versions of Yjs, it is impossible for us to\n * do the constructor checks anymore - which might break the CRDT algorithm.\n *\n * https://github.com/yjs/yjs/issues/438\n */\n console.error('Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438')\n}\nglo[importIdentifier] = true\n"],"names":[],"mappings":";;;;;;AAAA;;;AA8HA,MAAM,GAAG,uBAAuB,OAAO,UAAU,KAAK;AACtD,IAAI;AACJ,IAAI,OAAO,MAAM,KAAK;AACtB,MAAM;AACN;AACA,MAAM,OAAO,MAAM,KAAK,WAAW,GAAG,MAAM,GAAG,EAAE;;AAEjD,MAAM,gBAAgB,GAAG;;AAEzB,IAAI,GAAG,CAAC,gBAAgB,CAAC,KAAK,IAAI,EAAE;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,OAAO,CAAC,KAAK,CAAC,2HAA2H;AAC3I;AACA,GAAG,CAAC,gBAAgB,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
2891072
0.16%41672
0.22%Updated