@y/y 14.0.0-16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +23 -0
- package/README.md +1406 -0
- package/dist/Skip-j0kX7pdq.js +12173 -0
- package/dist/Skip-j0kX7pdq.js.map +1 -0
- package/dist/Skip-wRT7BKFP.js +11877 -0
- package/dist/Skip-wRT7BKFP.js.map +1 -0
- package/dist/index-DyTeTfmj.js +163 -0
- package/dist/index-DyTeTfmj.js.map +1 -0
- package/dist/index-R7GxO-36.js +165 -0
- package/dist/index-R7GxO-36.js.map +1 -0
- package/dist/internals.cjs +286 -0
- package/dist/internals.cjs.map +1 -0
- package/dist/internals.mjs +25 -0
- package/dist/internals.mjs.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/internals.d.ts +43 -0
- package/dist/src/internals.d.ts.map +1 -0
- package/dist/src/structs/AbstractStruct.d.ts +42 -0
- package/dist/src/structs/AbstractStruct.d.ts.map +1 -0
- package/dist/src/structs/ContentAny.d.ts +67 -0
- package/dist/src/structs/ContentAny.d.ts.map +1 -0
- package/dist/src/structs/ContentBinary.d.ts +64 -0
- package/dist/src/structs/ContentBinary.d.ts.map +1 -0
- package/dist/src/structs/ContentDeleted.d.ts +64 -0
- package/dist/src/structs/ContentDeleted.d.ts.map +1 -0
- package/dist/src/structs/ContentDoc.d.ts +72 -0
- package/dist/src/structs/ContentDoc.d.ts.map +1 -0
- package/dist/src/structs/ContentEmbed.d.ts +67 -0
- package/dist/src/structs/ContentEmbed.d.ts.map +1 -0
- package/dist/src/structs/ContentFormat.d.ts +69 -0
- package/dist/src/structs/ContentFormat.d.ts.map +1 -0
- package/dist/src/structs/ContentJSON.d.ts +70 -0
- package/dist/src/structs/ContentJSON.d.ts.map +1 -0
- package/dist/src/structs/ContentString.d.ts +70 -0
- package/dist/src/structs/ContentString.d.ts.map +1 -0
- package/dist/src/structs/ContentType.d.ts +83 -0
- package/dist/src/structs/ContentType.d.ts.map +1 -0
- package/dist/src/structs/GC.d.ts +31 -0
- package/dist/src/structs/GC.d.ts.map +1 -0
- package/dist/src/structs/Item.d.ts +212 -0
- package/dist/src/structs/Item.d.ts.map +1 -0
- package/dist/src/structs/Skip.d.ts +33 -0
- package/dist/src/structs/Skip.d.ts.map +1 -0
- package/dist/src/types/AbstractType.d.ts +239 -0
- package/dist/src/types/AbstractType.d.ts.map +1 -0
- package/dist/src/types/YArray.d.ts +128 -0
- package/dist/src/types/YArray.d.ts.map +1 -0
- package/dist/src/types/YMap.d.ts +112 -0
- package/dist/src/types/YMap.d.ts.map +1 -0
- package/dist/src/types/YText.d.ts +216 -0
- package/dist/src/types/YText.d.ts.map +1 -0
- package/dist/src/types/YXmlElement.d.ts +106 -0
- package/dist/src/types/YXmlElement.d.ts.map +1 -0
- package/dist/src/types/YXmlFragment.d.ts +143 -0
- package/dist/src/types/YXmlFragment.d.ts.map +1 -0
- package/dist/src/types/YXmlHook.d.ts +32 -0
- package/dist/src/types/YXmlHook.d.ts.map +1 -0
- package/dist/src/types/YXmlText.d.ts +34 -0
- package/dist/src/types/YXmlText.d.ts.map +1 -0
- package/dist/src/utils/AbstractConnector.d.ts +20 -0
- package/dist/src/utils/AbstractConnector.d.ts.map +1 -0
- package/dist/src/utils/AttributionManager.d.ts +224 -0
- package/dist/src/utils/AttributionManager.d.ts.map +1 -0
- package/dist/src/utils/Doc.d.ts +267 -0
- package/dist/src/utils/Doc.d.ts.map +1 -0
- package/dist/src/utils/EventHandler.d.ts +19 -0
- package/dist/src/utils/EventHandler.d.ts.map +1 -0
- package/dist/src/utils/ID.d.ts +26 -0
- package/dist/src/utils/ID.d.ts.map +1 -0
- package/dist/src/utils/IdMap.d.ts +161 -0
- package/dist/src/utils/IdMap.d.ts.map +1 -0
- package/dist/src/utils/IdSet.d.ts +163 -0
- package/dist/src/utils/IdSet.d.ts.map +1 -0
- package/dist/src/utils/RelativePosition.d.ts +91 -0
- package/dist/src/utils/RelativePosition.d.ts.map +1 -0
- package/dist/src/utils/Snapshot.d.ts +40 -0
- package/dist/src/utils/Snapshot.d.ts.map +1 -0
- package/dist/src/utils/StructSet.d.ts +27 -0
- package/dist/src/utils/StructSet.d.ts.map +1 -0
- package/dist/src/utils/StructStore.d.ts +41 -0
- package/dist/src/utils/StructStore.d.ts.map +1 -0
- package/dist/src/utils/Transaction.d.ts +136 -0
- package/dist/src/utils/Transaction.d.ts.map +1 -0
- package/dist/src/utils/UndoManager.d.ts +188 -0
- package/dist/src/utils/UndoManager.d.ts.map +1 -0
- package/dist/src/utils/UpdateDecoder.d.ts +167 -0
- package/dist/src/utils/UpdateDecoder.d.ts.map +1 -0
- package/dist/src/utils/UpdateEncoder.d.ts +164 -0
- package/dist/src/utils/UpdateEncoder.d.ts.map +1 -0
- package/dist/src/utils/YEvent.d.ts +120 -0
- package/dist/src/utils/YEvent.d.ts.map +1 -0
- package/dist/src/utils/delta-helpers.d.ts +6 -0
- package/dist/src/utils/delta-helpers.d.ts.map +1 -0
- package/dist/src/utils/encoding.d.ts +30 -0
- package/dist/src/utils/encoding.d.ts.map +1 -0
- package/dist/src/utils/isParentOf.d.ts +3 -0
- package/dist/src/utils/isParentOf.d.ts.map +1 -0
- package/dist/src/utils/logging.d.ts +3 -0
- package/dist/src/utils/logging.d.ts.map +1 -0
- package/dist/src/utils/types.d.ts +7 -0
- package/dist/src/utils/types.d.ts.map +1 -0
- package/dist/src/utils/updates.d.ts +89 -0
- package/dist/src/utils/updates.d.ts.map +1 -0
- package/dist/testHelper.cjs +780 -0
- package/dist/testHelper.cjs.map +1 -0
- package/dist/testHelper.mjs +617 -0
- package/dist/testHelper.mjs.map +1 -0
- package/dist/tests/IdMap.tests.d.ts +9 -0
- package/dist/tests/IdMap.tests.d.ts.map +1 -0
- package/dist/tests/IdSet.tests.d.ts +9 -0
- package/dist/tests/IdSet.tests.d.ts.map +1 -0
- package/dist/tests/attribution.tests.d.ts +8 -0
- package/dist/tests/attribution.tests.d.ts.map +1 -0
- package/dist/tests/compatibility.tests.d.ts +5 -0
- package/dist/tests/compatibility.tests.d.ts.map +1 -0
- package/dist/tests/delta.tests.d.ts +7 -0
- package/dist/tests/delta.tests.d.ts.map +1 -0
- package/dist/tests/doc.tests.d.ts +13 -0
- package/dist/tests/doc.tests.d.ts.map +1 -0
- package/dist/tests/encoding.tests.d.ts +5 -0
- package/dist/tests/encoding.tests.d.ts.map +1 -0
- package/dist/tests/index.d.ts +2 -0
- package/dist/tests/index.d.ts.map +1 -0
- package/dist/tests/relativePositions.tests.d.ts +11 -0
- package/dist/tests/relativePositions.tests.d.ts.map +1 -0
- package/dist/tests/snapshot.tests.d.ts +13 -0
- package/dist/tests/snapshot.tests.d.ts.map +1 -0
- package/dist/tests/testHelper.d.ts +167 -0
- package/dist/tests/testHelper.d.ts.map +1 -0
- package/dist/tests/undo-redo.tests.d.ts +27 -0
- package/dist/tests/undo-redo.tests.d.ts.map +1 -0
- package/dist/tests/updates.tests.d.ts +24 -0
- package/dist/tests/updates.tests.d.ts.map +1 -0
- package/dist/tests/y-array.tests.d.ts +45 -0
- package/dist/tests/y-array.tests.d.ts.map +1 -0
- package/dist/tests/y-map.tests.d.ts +45 -0
- package/dist/tests/y-map.tests.d.ts.map +1 -0
- package/dist/tests/y-text.tests.d.ts +49 -0
- package/dist/tests/y-text.tests.d.ts.map +1 -0
- package/dist/tests/y-xml.tests.d.ts +15 -0
- package/dist/tests/y-xml.tests.d.ts.map +1 -0
- package/dist/yjs.cjs +151 -0
- package/dist/yjs.cjs.map +1 -0
- package/dist/yjs.mjs +26 -0
- package/dist/yjs.mjs.map +1 -0
- package/package.json +101 -0
- package/src/index.js +153 -0
- package/src/internals.js +44 -0
- package/src/structs/AbstractStruct.js +59 -0
- package/src/structs/ContentAny.js +115 -0
- package/src/structs/ContentBinary.js +93 -0
- package/src/structs/ContentDeleted.js +101 -0
- package/src/structs/ContentDoc.js +141 -0
- package/src/structs/ContentEmbed.js +98 -0
- package/src/structs/ContentFormat.js +105 -0
- package/src/structs/ContentJSON.js +119 -0
- package/src/structs/ContentString.js +113 -0
- package/src/structs/ContentType.js +176 -0
- package/src/structs/GC.js +80 -0
- package/src/structs/Item.js +845 -0
- package/src/structs/Skip.js +75 -0
- package/src/types/AbstractType.js +1434 -0
- package/src/types/YArray.js +270 -0
- package/src/types/YMap.js +244 -0
- package/src/types/YText.js +934 -0
- package/src/types/YXmlElement.js +227 -0
- package/src/types/YXmlFragment.js +266 -0
- package/src/types/YXmlHook.js +68 -0
- package/src/types/YXmlText.js +66 -0
- package/src/utils/AbstractConnector.js +25 -0
- package/src/utils/AttributionManager.js +619 -0
- package/src/utils/Doc.js +372 -0
- package/src/utils/EventHandler.js +87 -0
- package/src/utils/ID.js +89 -0
- package/src/utils/IdMap.js +629 -0
- package/src/utils/IdSet.js +823 -0
- package/src/utils/RelativePosition.js +352 -0
- package/src/utils/Snapshot.js +220 -0
- package/src/utils/StructSet.js +137 -0
- package/src/utils/StructStore.js +289 -0
- package/src/utils/Transaction.js +489 -0
- package/src/utils/UndoManager.js +391 -0
- package/src/utils/UpdateDecoder.js +281 -0
- package/src/utils/UpdateEncoder.js +320 -0
- package/src/utils/YEvent.js +216 -0
- package/src/utils/delta-helpers.js +54 -0
- package/src/utils/encoding.js +623 -0
- package/src/utils/isParentOf.js +21 -0
- package/src/utils/logging.js +21 -0
- package/src/utils/types.js +28 -0
- package/src/utils/updates.js +715 -0
- package/tests/testHelper.js +600 -0
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
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-wRT7BKFP.js';
|
|
2
|
+
import 'lib0/function';
|
|
3
|
+
import 'lib0/decoding';
|
|
4
|
+
import 'lib0/binary';
|
|
5
|
+
import 'lib0/map';
|
|
6
|
+
|
|
7
|
+
/** eslint-env browser */
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
const glo = /** @type {any} */ (typeof globalThis !== 'undefined'
|
|
11
|
+
? globalThis
|
|
12
|
+
: typeof window !== 'undefined'
|
|
13
|
+
? window
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
: typeof global !== 'undefined' ? global : {});
|
|
16
|
+
|
|
17
|
+
const importIdentifier = '__ $YJS$ __';
|
|
18
|
+
|
|
19
|
+
if (glo[importIdentifier] === true) {
|
|
20
|
+
/**
|
|
21
|
+
* Dear reader of this message. Please take this seriously.
|
|
22
|
+
*
|
|
23
|
+
* If you see this message, make sure that you only import one version of Yjs. In many cases,
|
|
24
|
+
* your package manager installs two versions of Yjs that are used by different packages within your project.
|
|
25
|
+
* Another reason for this message is that some parts of your project use the commonjs version of Yjs
|
|
26
|
+
* and others use the EcmaScript version of Yjs.
|
|
27
|
+
*
|
|
28
|
+
* This often leads to issues that are hard to debug. We often need to perform constructor checks,
|
|
29
|
+
* e.g. `struct instanceof GC`. If you imported different versions of Yjs, it is impossible for us to
|
|
30
|
+
* do the constructor checks anymore - which might break the CRDT algorithm.
|
|
31
|
+
*
|
|
32
|
+
* https://github.com/yjs/yjs/issues/438
|
|
33
|
+
*/
|
|
34
|
+
console.error('Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438');
|
|
35
|
+
}
|
|
36
|
+
glo[importIdentifier] = true;
|
|
37
|
+
|
|
38
|
+
var Y = /*#__PURE__*/Object.freeze({
|
|
39
|
+
__proto__: null,
|
|
40
|
+
AbsolutePosition: AbsolutePosition,
|
|
41
|
+
AbstractAttributionManager: AbstractAttributionManager,
|
|
42
|
+
AbstractConnector: AbstractConnector,
|
|
43
|
+
AbstractStruct: AbstractStruct,
|
|
44
|
+
AbstractType: AbstractType,
|
|
45
|
+
Array: YArray,
|
|
46
|
+
Attribution: AttributionItem,
|
|
47
|
+
ContentAny: ContentAny,
|
|
48
|
+
ContentBinary: ContentBinary,
|
|
49
|
+
ContentDeleted: ContentDeleted,
|
|
50
|
+
ContentDoc: ContentDoc,
|
|
51
|
+
ContentEmbed: ContentEmbed,
|
|
52
|
+
ContentFormat: ContentFormat,
|
|
53
|
+
ContentJSON: ContentJSON,
|
|
54
|
+
ContentString: ContentString,
|
|
55
|
+
ContentType: ContentType,
|
|
56
|
+
DiffAttributionManager: DiffAttributionManager,
|
|
57
|
+
Doc: Doc,
|
|
58
|
+
GC: GC,
|
|
59
|
+
ID: ID,
|
|
60
|
+
IdMap: IdMap,
|
|
61
|
+
IdSet: IdSet,
|
|
62
|
+
Item: Item,
|
|
63
|
+
Map: YMap,
|
|
64
|
+
RelativePosition: RelativePosition,
|
|
65
|
+
Skip: Skip,
|
|
66
|
+
Snapshot: Snapshot,
|
|
67
|
+
Text: YText,
|
|
68
|
+
Transaction: Transaction,
|
|
69
|
+
TwosetAttributionManager: TwosetAttributionManager,
|
|
70
|
+
UndoManager: UndoManager,
|
|
71
|
+
UpdateDecoderV1: UpdateDecoderV1,
|
|
72
|
+
UpdateDecoderV2: UpdateDecoderV2,
|
|
73
|
+
UpdateEncoderV1: UpdateEncoderV1,
|
|
74
|
+
UpdateEncoderV2: UpdateEncoderV2,
|
|
75
|
+
XmlElement: YXmlElement,
|
|
76
|
+
XmlFragment: YXmlFragment,
|
|
77
|
+
XmlHook: YXmlHook,
|
|
78
|
+
XmlText: YXmlText,
|
|
79
|
+
YEvent: YEvent,
|
|
80
|
+
applyUpdate: applyUpdate,
|
|
81
|
+
applyUpdateV2: applyUpdateV2,
|
|
82
|
+
cleanupYTextFormatting: cleanupYTextFormatting,
|
|
83
|
+
cloneDoc: cloneDoc,
|
|
84
|
+
compareIDs: compareIDs,
|
|
85
|
+
compareRelativePositions: compareRelativePositions,
|
|
86
|
+
convertUpdateFormatV1ToV2: convertUpdateFormatV1ToV2,
|
|
87
|
+
convertUpdateFormatV2ToV1: convertUpdateFormatV2ToV1,
|
|
88
|
+
createAbsolutePositionFromRelativePosition: createAbsolutePositionFromRelativePosition,
|
|
89
|
+
createAttributionItem: createAttributionItem,
|
|
90
|
+
createAttributionManagerFromDiff: createAttributionManagerFromDiff,
|
|
91
|
+
createDeleteSetFromStructStore: createDeleteSetFromStructStore,
|
|
92
|
+
createDocFromSnapshot: createDocFromSnapshot,
|
|
93
|
+
createID: createID,
|
|
94
|
+
createIdMap: createIdMap,
|
|
95
|
+
createIdMapFromIdSet: createIdMapFromIdSet,
|
|
96
|
+
createIdSet: createIdSet,
|
|
97
|
+
createInsertionSetFromStructStore: createInsertSetFromStructStore,
|
|
98
|
+
createRelativePositionFromJSON: createRelativePositionFromJSON,
|
|
99
|
+
createRelativePositionFromTypeIndex: createRelativePositionFromTypeIndex,
|
|
100
|
+
createSnapshot: createSnapshot,
|
|
101
|
+
decodeIdMap: decodeIdMap,
|
|
102
|
+
decodeRelativePosition: decodeRelativePosition,
|
|
103
|
+
decodeSnapshot: decodeSnapshot,
|
|
104
|
+
decodeSnapshotV2: decodeSnapshotV2,
|
|
105
|
+
decodeStateVector: decodeStateVector,
|
|
106
|
+
decodeUpdate: decodeUpdate,
|
|
107
|
+
decodeUpdateV2: decodeUpdateV2,
|
|
108
|
+
diffDocsToDelta: diffDocsToDelta,
|
|
109
|
+
diffIdMap: diffIdMap,
|
|
110
|
+
diffIdSet: diffIdSet,
|
|
111
|
+
diffUpdate: diffUpdate,
|
|
112
|
+
diffUpdateV2: diffUpdateV2,
|
|
113
|
+
emptySnapshot: emptySnapshot,
|
|
114
|
+
encodeIdMap: encodeIdMap,
|
|
115
|
+
encodeRelativePosition: encodeRelativePosition,
|
|
116
|
+
encodeSnapshot: encodeSnapshot,
|
|
117
|
+
encodeSnapshotV2: encodeSnapshotV2,
|
|
118
|
+
encodeStateAsUpdate: encodeStateAsUpdate,
|
|
119
|
+
encodeStateAsUpdateV2: encodeStateAsUpdateV2,
|
|
120
|
+
encodeStateVector: encodeStateVector,
|
|
121
|
+
encodeStateVectorFromUpdate: encodeStateVectorFromUpdate,
|
|
122
|
+
encodeStateVectorFromUpdateV2: encodeStateVectorFromUpdateV2,
|
|
123
|
+
equalIdSets: equalIdSets,
|
|
124
|
+
equalSnapshots: equalSnapshots,
|
|
125
|
+
findIndexSS: findIndexSS,
|
|
126
|
+
findRootTypeKey: findRootTypeKey,
|
|
127
|
+
getItem: getItem,
|
|
128
|
+
getItemCleanEnd: getItemCleanEnd,
|
|
129
|
+
getItemCleanStart: getItemCleanStart,
|
|
130
|
+
getState: getState,
|
|
131
|
+
getTypeChildren: getTypeChildren,
|
|
132
|
+
insertIntoIdMap: insertIntoIdMap,
|
|
133
|
+
insertIntoIdSet: insertIntoIdSet,
|
|
134
|
+
isParentOf: isParentOf,
|
|
135
|
+
iterateStructsByIdSet: iterateStructsByIdSet,
|
|
136
|
+
logType: logType,
|
|
137
|
+
logUpdate: logUpdate,
|
|
138
|
+
logUpdateV2: logUpdateV2,
|
|
139
|
+
mergeIdMaps: mergeIdMaps,
|
|
140
|
+
mergeIdSets: mergeIdSets,
|
|
141
|
+
mergeUpdates: mergeUpdates,
|
|
142
|
+
mergeUpdatesV2: mergeUpdatesV2,
|
|
143
|
+
noAttributionsManager: noAttributionsManager,
|
|
144
|
+
obfuscateUpdate: obfuscateUpdate,
|
|
145
|
+
obfuscateUpdateV2: obfuscateUpdateV2,
|
|
146
|
+
readIdMap: readIdMap,
|
|
147
|
+
readIdSet: readIdSet,
|
|
148
|
+
readUpdate: readUpdate,
|
|
149
|
+
readUpdateIdRanges: readUpdateIdRanges,
|
|
150
|
+
readUpdateIdRangesV2: readUpdateIdRangesV2,
|
|
151
|
+
readUpdateV2: readUpdateV2,
|
|
152
|
+
relativePositionToJSON: relativePositionToJSON,
|
|
153
|
+
snapshot: snapshot,
|
|
154
|
+
snapshotContainsUpdate: snapshotContainsUpdate,
|
|
155
|
+
transact: transact,
|
|
156
|
+
tryGc: tryGc,
|
|
157
|
+
typeListToArraySnapshot: typeListToArraySnapshot,
|
|
158
|
+
typeMapGetAllSnapshot: typeMapGetAllSnapshot,
|
|
159
|
+
typeMapGetSnapshot: typeMapGetSnapshot
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
export { Y };
|
|
163
|
+
//# sourceMappingURL=index-DyTeTfmj.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-DyTeTfmj.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var Skip = require('./Skip-j0kX7pdq.js');
|
|
4
|
+
require('lib0/function');
|
|
5
|
+
require('lib0/decoding');
|
|
6
|
+
require('lib0/binary');
|
|
7
|
+
require('lib0/map');
|
|
8
|
+
|
|
9
|
+
/** eslint-env browser */
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
const glo = /** @type {any} */ (typeof globalThis !== 'undefined'
|
|
13
|
+
? globalThis
|
|
14
|
+
: typeof window !== 'undefined'
|
|
15
|
+
? window
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
: typeof global !== 'undefined' ? global : {});
|
|
18
|
+
|
|
19
|
+
const importIdentifier = '__ $YJS$ __';
|
|
20
|
+
|
|
21
|
+
if (glo[importIdentifier] === true) {
|
|
22
|
+
/**
|
|
23
|
+
* Dear reader of this message. Please take this seriously.
|
|
24
|
+
*
|
|
25
|
+
* If you see this message, make sure that you only import one version of Yjs. In many cases,
|
|
26
|
+
* your package manager installs two versions of Yjs that are used by different packages within your project.
|
|
27
|
+
* Another reason for this message is that some parts of your project use the commonjs version of Yjs
|
|
28
|
+
* and others use the EcmaScript version of Yjs.
|
|
29
|
+
*
|
|
30
|
+
* This often leads to issues that are hard to debug. We often need to perform constructor checks,
|
|
31
|
+
* e.g. `struct instanceof GC`. If you imported different versions of Yjs, it is impossible for us to
|
|
32
|
+
* do the constructor checks anymore - which might break the CRDT algorithm.
|
|
33
|
+
*
|
|
34
|
+
* https://github.com/yjs/yjs/issues/438
|
|
35
|
+
*/
|
|
36
|
+
console.error('Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438');
|
|
37
|
+
}
|
|
38
|
+
glo[importIdentifier] = true;
|
|
39
|
+
|
|
40
|
+
var Y = /*#__PURE__*/Object.freeze({
|
|
41
|
+
__proto__: null,
|
|
42
|
+
AbsolutePosition: Skip.AbsolutePosition,
|
|
43
|
+
AbstractAttributionManager: Skip.AbstractAttributionManager,
|
|
44
|
+
AbstractConnector: Skip.AbstractConnector,
|
|
45
|
+
AbstractStruct: Skip.AbstractStruct,
|
|
46
|
+
AbstractType: Skip.AbstractType,
|
|
47
|
+
Array: Skip.YArray,
|
|
48
|
+
Attribution: Skip.AttributionItem,
|
|
49
|
+
ContentAny: Skip.ContentAny,
|
|
50
|
+
ContentBinary: Skip.ContentBinary,
|
|
51
|
+
ContentDeleted: Skip.ContentDeleted,
|
|
52
|
+
ContentDoc: Skip.ContentDoc,
|
|
53
|
+
ContentEmbed: Skip.ContentEmbed,
|
|
54
|
+
ContentFormat: Skip.ContentFormat,
|
|
55
|
+
ContentJSON: Skip.ContentJSON,
|
|
56
|
+
ContentString: Skip.ContentString,
|
|
57
|
+
ContentType: Skip.ContentType,
|
|
58
|
+
DiffAttributionManager: Skip.DiffAttributionManager,
|
|
59
|
+
Doc: Skip.Doc,
|
|
60
|
+
GC: Skip.GC,
|
|
61
|
+
ID: Skip.ID,
|
|
62
|
+
IdMap: Skip.IdMap,
|
|
63
|
+
IdSet: Skip.IdSet,
|
|
64
|
+
Item: Skip.Item,
|
|
65
|
+
Map: Skip.YMap,
|
|
66
|
+
RelativePosition: Skip.RelativePosition,
|
|
67
|
+
Skip: Skip.Skip,
|
|
68
|
+
Snapshot: Skip.Snapshot,
|
|
69
|
+
Text: Skip.YText,
|
|
70
|
+
Transaction: Skip.Transaction,
|
|
71
|
+
TwosetAttributionManager: Skip.TwosetAttributionManager,
|
|
72
|
+
UndoManager: Skip.UndoManager,
|
|
73
|
+
UpdateDecoderV1: Skip.UpdateDecoderV1,
|
|
74
|
+
UpdateDecoderV2: Skip.UpdateDecoderV2,
|
|
75
|
+
UpdateEncoderV1: Skip.UpdateEncoderV1,
|
|
76
|
+
UpdateEncoderV2: Skip.UpdateEncoderV2,
|
|
77
|
+
XmlElement: Skip.YXmlElement,
|
|
78
|
+
XmlFragment: Skip.YXmlFragment,
|
|
79
|
+
XmlHook: Skip.YXmlHook,
|
|
80
|
+
XmlText: Skip.YXmlText,
|
|
81
|
+
YEvent: Skip.YEvent,
|
|
82
|
+
applyUpdate: Skip.applyUpdate,
|
|
83
|
+
applyUpdateV2: Skip.applyUpdateV2,
|
|
84
|
+
cleanupYTextFormatting: Skip.cleanupYTextFormatting,
|
|
85
|
+
cloneDoc: Skip.cloneDoc,
|
|
86
|
+
compareIDs: Skip.compareIDs,
|
|
87
|
+
compareRelativePositions: Skip.compareRelativePositions,
|
|
88
|
+
convertUpdateFormatV1ToV2: Skip.convertUpdateFormatV1ToV2,
|
|
89
|
+
convertUpdateFormatV2ToV1: Skip.convertUpdateFormatV2ToV1,
|
|
90
|
+
createAbsolutePositionFromRelativePosition: Skip.createAbsolutePositionFromRelativePosition,
|
|
91
|
+
createAttributionItem: Skip.createAttributionItem,
|
|
92
|
+
createAttributionManagerFromDiff: Skip.createAttributionManagerFromDiff,
|
|
93
|
+
createDeleteSetFromStructStore: Skip.createDeleteSetFromStructStore,
|
|
94
|
+
createDocFromSnapshot: Skip.createDocFromSnapshot,
|
|
95
|
+
createID: Skip.createID,
|
|
96
|
+
createIdMap: Skip.createIdMap,
|
|
97
|
+
createIdMapFromIdSet: Skip.createIdMapFromIdSet,
|
|
98
|
+
createIdSet: Skip.createIdSet,
|
|
99
|
+
createInsertionSetFromStructStore: Skip.createInsertSetFromStructStore,
|
|
100
|
+
createRelativePositionFromJSON: Skip.createRelativePositionFromJSON,
|
|
101
|
+
createRelativePositionFromTypeIndex: Skip.createRelativePositionFromTypeIndex,
|
|
102
|
+
createSnapshot: Skip.createSnapshot,
|
|
103
|
+
decodeIdMap: Skip.decodeIdMap,
|
|
104
|
+
decodeRelativePosition: Skip.decodeRelativePosition,
|
|
105
|
+
decodeSnapshot: Skip.decodeSnapshot,
|
|
106
|
+
decodeSnapshotV2: Skip.decodeSnapshotV2,
|
|
107
|
+
decodeStateVector: Skip.decodeStateVector,
|
|
108
|
+
decodeUpdate: Skip.decodeUpdate,
|
|
109
|
+
decodeUpdateV2: Skip.decodeUpdateV2,
|
|
110
|
+
diffDocsToDelta: Skip.diffDocsToDelta,
|
|
111
|
+
diffIdMap: Skip.diffIdMap,
|
|
112
|
+
diffIdSet: Skip.diffIdSet,
|
|
113
|
+
diffUpdate: Skip.diffUpdate,
|
|
114
|
+
diffUpdateV2: Skip.diffUpdateV2,
|
|
115
|
+
emptySnapshot: Skip.emptySnapshot,
|
|
116
|
+
encodeIdMap: Skip.encodeIdMap,
|
|
117
|
+
encodeRelativePosition: Skip.encodeRelativePosition,
|
|
118
|
+
encodeSnapshot: Skip.encodeSnapshot,
|
|
119
|
+
encodeSnapshotV2: Skip.encodeSnapshotV2,
|
|
120
|
+
encodeStateAsUpdate: Skip.encodeStateAsUpdate,
|
|
121
|
+
encodeStateAsUpdateV2: Skip.encodeStateAsUpdateV2,
|
|
122
|
+
encodeStateVector: Skip.encodeStateVector,
|
|
123
|
+
encodeStateVectorFromUpdate: Skip.encodeStateVectorFromUpdate,
|
|
124
|
+
encodeStateVectorFromUpdateV2: Skip.encodeStateVectorFromUpdateV2,
|
|
125
|
+
equalIdSets: Skip.equalIdSets,
|
|
126
|
+
equalSnapshots: Skip.equalSnapshots,
|
|
127
|
+
findIndexSS: Skip.findIndexSS,
|
|
128
|
+
findRootTypeKey: Skip.findRootTypeKey,
|
|
129
|
+
getItem: Skip.getItem,
|
|
130
|
+
getItemCleanEnd: Skip.getItemCleanEnd,
|
|
131
|
+
getItemCleanStart: Skip.getItemCleanStart,
|
|
132
|
+
getState: Skip.getState,
|
|
133
|
+
getTypeChildren: Skip.getTypeChildren,
|
|
134
|
+
insertIntoIdMap: Skip.insertIntoIdMap,
|
|
135
|
+
insertIntoIdSet: Skip.insertIntoIdSet,
|
|
136
|
+
isParentOf: Skip.isParentOf,
|
|
137
|
+
iterateStructsByIdSet: Skip.iterateStructsByIdSet,
|
|
138
|
+
logType: Skip.logType,
|
|
139
|
+
logUpdate: Skip.logUpdate,
|
|
140
|
+
logUpdateV2: Skip.logUpdateV2,
|
|
141
|
+
mergeIdMaps: Skip.mergeIdMaps,
|
|
142
|
+
mergeIdSets: Skip.mergeIdSets,
|
|
143
|
+
mergeUpdates: Skip.mergeUpdates,
|
|
144
|
+
mergeUpdatesV2: Skip.mergeUpdatesV2,
|
|
145
|
+
noAttributionsManager: Skip.noAttributionsManager,
|
|
146
|
+
obfuscateUpdate: Skip.obfuscateUpdate,
|
|
147
|
+
obfuscateUpdateV2: Skip.obfuscateUpdateV2,
|
|
148
|
+
readIdMap: Skip.readIdMap,
|
|
149
|
+
readIdSet: Skip.readIdSet,
|
|
150
|
+
readUpdate: Skip.readUpdate,
|
|
151
|
+
readUpdateIdRanges: Skip.readUpdateIdRanges,
|
|
152
|
+
readUpdateIdRangesV2: Skip.readUpdateIdRangesV2,
|
|
153
|
+
readUpdateV2: Skip.readUpdateV2,
|
|
154
|
+
relativePositionToJSON: Skip.relativePositionToJSON,
|
|
155
|
+
snapshot: Skip.snapshot,
|
|
156
|
+
snapshotContainsUpdate: Skip.snapshotContainsUpdate,
|
|
157
|
+
transact: Skip.transact,
|
|
158
|
+
tryGc: Skip.tryGc,
|
|
159
|
+
typeListToArraySnapshot: Skip.typeListToArraySnapshot,
|
|
160
|
+
typeMapGetAllSnapshot: Skip.typeMapGetAllSnapshot,
|
|
161
|
+
typeMapGetSnapshot: Skip.typeMapGetSnapshot
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
exports.Y = Y;
|
|
165
|
+
//# sourceMappingURL=index-R7GxO-36.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-R7GxO-36.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var Skip = require('./Skip-j0kX7pdq.js');
|
|
4
|
+
require('lib0/observable');
|
|
5
|
+
require('lib0/array');
|
|
6
|
+
require('lib0/math');
|
|
7
|
+
require('lib0/encoding');
|
|
8
|
+
require('lib0/decoding');
|
|
9
|
+
require('lib0/traits');
|
|
10
|
+
require('lib0/random');
|
|
11
|
+
require('lib0/map');
|
|
12
|
+
require('lib0/promise');
|
|
13
|
+
require('lib0/buffer');
|
|
14
|
+
require('lib0/error');
|
|
15
|
+
require('lib0/function');
|
|
16
|
+
require('lib0/set');
|
|
17
|
+
require('lib0/logging');
|
|
18
|
+
require('lib0/time');
|
|
19
|
+
require('lib0/binary');
|
|
20
|
+
require('lib0/string');
|
|
21
|
+
require('lib0/delta');
|
|
22
|
+
require('lib0/hash/rabin');
|
|
23
|
+
require('lib0/iterator');
|
|
24
|
+
require('lib0/object');
|
|
25
|
+
require('lib0/environment');
|
|
26
|
+
require('lib0/schema');
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
exports.AbsolutePosition = Skip.AbsolutePosition;
|
|
31
|
+
exports.AbstractAttributionManager = Skip.AbstractAttributionManager;
|
|
32
|
+
exports.AbstractConnector = Skip.AbstractConnector;
|
|
33
|
+
exports.AbstractContent = Skip.AbstractContent;
|
|
34
|
+
exports.AbstractStruct = Skip.AbstractStruct;
|
|
35
|
+
exports.AbstractType = Skip.AbstractType;
|
|
36
|
+
exports.ArraySearchMarker = Skip.ArraySearchMarker;
|
|
37
|
+
exports.AttrRange = Skip.AttrRange;
|
|
38
|
+
exports.AttrRanges = Skip.AttrRanges;
|
|
39
|
+
exports.AttributedContent = Skip.AttributedContent;
|
|
40
|
+
exports.AttributionItem = Skip.AttributionItem;
|
|
41
|
+
exports.ContentAny = Skip.ContentAny;
|
|
42
|
+
exports.ContentBinary = Skip.ContentBinary;
|
|
43
|
+
exports.ContentDeleted = Skip.ContentDeleted;
|
|
44
|
+
exports.ContentDoc = Skip.ContentDoc;
|
|
45
|
+
exports.ContentEmbed = Skip.ContentEmbed;
|
|
46
|
+
exports.ContentFormat = Skip.ContentFormat;
|
|
47
|
+
exports.ContentJSON = Skip.ContentJSON;
|
|
48
|
+
exports.ContentString = Skip.ContentString;
|
|
49
|
+
exports.ContentType = Skip.ContentType;
|
|
50
|
+
exports.DSDecoderV1 = Skip.DSDecoderV1;
|
|
51
|
+
exports.DSDecoderV2 = Skip.DSDecoderV2;
|
|
52
|
+
exports.DiffAttributionManager = Skip.DiffAttributionManager;
|
|
53
|
+
exports.Doc = Skip.Doc;
|
|
54
|
+
exports.EventHandler = Skip.EventHandler;
|
|
55
|
+
exports.GC = Skip.GC;
|
|
56
|
+
exports.ID = Skip.ID;
|
|
57
|
+
exports.IdMap = Skip.IdMap;
|
|
58
|
+
exports.IdRange = Skip.IdRange;
|
|
59
|
+
exports.IdRanges = Skip.IdRanges;
|
|
60
|
+
exports.IdSet = Skip.IdSet;
|
|
61
|
+
exports.IdSetEncoderV1 = Skip.IdSetEncoderV1;
|
|
62
|
+
exports.IdSetEncoderV2 = Skip.IdSetEncoderV2;
|
|
63
|
+
exports.Item = Skip.Item;
|
|
64
|
+
exports.ItemTextListPosition = Skip.ItemTextListPosition;
|
|
65
|
+
exports.LazyStructReader = Skip.LazyStructReader;
|
|
66
|
+
exports.LazyStructWriter = Skip.LazyStructWriter;
|
|
67
|
+
exports.MaybeIdRange = Skip.MaybeIdRange;
|
|
68
|
+
exports.NoAttributionsManager = Skip.NoAttributionsManager;
|
|
69
|
+
exports.RelativePosition = Skip.RelativePosition;
|
|
70
|
+
exports.Skip = Skip.Skip;
|
|
71
|
+
exports.Snapshot = Skip.Snapshot;
|
|
72
|
+
exports.SnapshotAttributionManager = Skip.SnapshotAttributionManager;
|
|
73
|
+
exports.StackItem = Skip.StackItem;
|
|
74
|
+
exports.StructSet = Skip.StructSet;
|
|
75
|
+
exports.StructStore = Skip.StructStore;
|
|
76
|
+
exports.Transaction = Skip.Transaction;
|
|
77
|
+
exports.TwosetAttributionManager = Skip.TwosetAttributionManager;
|
|
78
|
+
exports.UndoManager = Skip.UndoManager;
|
|
79
|
+
exports.UpdateDecoderV1 = Skip.UpdateDecoderV1;
|
|
80
|
+
exports.UpdateDecoderV2 = Skip.UpdateDecoderV2;
|
|
81
|
+
exports.UpdateEncoderV1 = Skip.UpdateEncoderV1;
|
|
82
|
+
exports.UpdateEncoderV2 = Skip.UpdateEncoderV2;
|
|
83
|
+
exports.YArray = Skip.YArray;
|
|
84
|
+
exports.YArrayRefID = Skip.YArrayRefID;
|
|
85
|
+
exports.YEvent = Skip.YEvent;
|
|
86
|
+
exports.YMap = Skip.YMap;
|
|
87
|
+
exports.YMapRefID = Skip.YMapRefID;
|
|
88
|
+
exports.YText = Skip.YText;
|
|
89
|
+
exports.YTextRefID = Skip.YTextRefID;
|
|
90
|
+
exports.YXmlElement = Skip.YXmlElement;
|
|
91
|
+
exports.YXmlElementRefID = Skip.YXmlElementRefID;
|
|
92
|
+
exports.YXmlFragment = Skip.YXmlFragment;
|
|
93
|
+
exports.YXmlFragmentRefID = Skip.YXmlFragmentRefID;
|
|
94
|
+
exports.YXmlHook = Skip.YXmlHook;
|
|
95
|
+
exports.YXmlHookRefID = Skip.YXmlHookRefID;
|
|
96
|
+
exports.YXmlText = Skip.YXmlText;
|
|
97
|
+
exports.YXmlTextRefID = Skip.YXmlTextRefID;
|
|
98
|
+
exports._createInsertSliceFromStructs = Skip._createInsertSliceFromStructs;
|
|
99
|
+
exports._deleteRangeFromIdSet = Skip._deleteRangeFromIdSet;
|
|
100
|
+
exports._diffSet = Skip._diffSet;
|
|
101
|
+
exports._insertIntoIdSet = Skip._insertIntoIdSet;
|
|
102
|
+
exports._intersectSets = Skip._intersectSets;
|
|
103
|
+
exports.addChangedTypeToTransaction = Skip.addChangedTypeToTransaction;
|
|
104
|
+
exports.addEventHandlerListener = Skip.addEventHandlerListener;
|
|
105
|
+
exports.addStruct = Skip.addStruct;
|
|
106
|
+
exports.addStructToIdSet = Skip.addStructToIdSet;
|
|
107
|
+
exports.addToIdSet = Skip.addToIdSet;
|
|
108
|
+
exports.applyUpdate = Skip.applyUpdate;
|
|
109
|
+
exports.applyUpdateV2 = Skip.applyUpdateV2;
|
|
110
|
+
exports.attributionJsonSchema = Skip.attributionJsonSchema;
|
|
111
|
+
exports.callEventHandlerListeners = Skip.callEventHandlerListeners;
|
|
112
|
+
exports.callTypeObservers = Skip.callTypeObservers;
|
|
113
|
+
exports.cleanupYTextAfterTransaction = Skip.cleanupYTextAfterTransaction;
|
|
114
|
+
exports.cleanupYTextFormatting = Skip.cleanupYTextFormatting;
|
|
115
|
+
exports.cloneDoc = Skip.cloneDoc;
|
|
116
|
+
exports.compareIDs = Skip.compareIDs;
|
|
117
|
+
exports.compareRelativePositions = Skip.compareRelativePositions;
|
|
118
|
+
exports.contentRefs = Skip.contentRefs;
|
|
119
|
+
exports.convertUpdateFormat = Skip.convertUpdateFormat;
|
|
120
|
+
exports.convertUpdateFormatV1ToV2 = Skip.convertUpdateFormatV1ToV2;
|
|
121
|
+
exports.convertUpdateFormatV2ToV1 = Skip.convertUpdateFormatV2ToV1;
|
|
122
|
+
exports.createAbsolutePosition = Skip.createAbsolutePosition;
|
|
123
|
+
exports.createAbsolutePositionFromRelativePosition = Skip.createAbsolutePositionFromRelativePosition;
|
|
124
|
+
exports.createAttributionFromAttributionItems = Skip.createAttributionFromAttributionItems;
|
|
125
|
+
exports.createAttributionItem = Skip.createAttributionItem;
|
|
126
|
+
exports.createAttributionManagerFromDiff = Skip.createAttributionManagerFromDiff;
|
|
127
|
+
exports.createAttributionManagerFromSnapshots = Skip.createAttributionManagerFromSnapshots;
|
|
128
|
+
exports.createDeleteSetFromStructStore = Skip.createDeleteSetFromStructStore;
|
|
129
|
+
exports.createDocFromSnapshot = Skip.createDocFromSnapshot;
|
|
130
|
+
exports.createEventHandler = Skip.createEventHandler;
|
|
131
|
+
exports.createID = Skip.createID;
|
|
132
|
+
exports.createIdMap = Skip.createIdMap;
|
|
133
|
+
exports.createIdMapFromIdSet = Skip.createIdMapFromIdSet;
|
|
134
|
+
exports.createIdSet = Skip.createIdSet;
|
|
135
|
+
exports.createInsertSetFromStructStore = Skip.createInsertSetFromStructStore;
|
|
136
|
+
exports.createMapIterator = Skip.createMapIterator;
|
|
137
|
+
exports.createMaybeAttrRange = Skip.createMaybeAttrRange;
|
|
138
|
+
exports.createMaybeIdRange = Skip.createMaybeIdRange;
|
|
139
|
+
exports.createRelativePosition = Skip.createRelativePosition;
|
|
140
|
+
exports.createRelativePositionFromJSON = Skip.createRelativePositionFromJSON;
|
|
141
|
+
exports.createRelativePositionFromTypeIndex = Skip.createRelativePositionFromTypeIndex;
|
|
142
|
+
exports.createSnapshot = Skip.createSnapshot;
|
|
143
|
+
exports.decodeIdMap = Skip.decodeIdMap;
|
|
144
|
+
exports.decodeRelativePosition = Skip.decodeRelativePosition;
|
|
145
|
+
exports.decodeSnapshot = Skip.decodeSnapshot;
|
|
146
|
+
exports.decodeSnapshotV2 = Skip.decodeSnapshotV2;
|
|
147
|
+
exports.decodeStateVector = Skip.decodeStateVector;
|
|
148
|
+
exports.decodeUpdate = Skip.decodeUpdate;
|
|
149
|
+
exports.decodeUpdateV2 = Skip.decodeUpdateV2;
|
|
150
|
+
exports.deleteText = Skip.deleteText;
|
|
151
|
+
exports.diffDocsToDelta = Skip.diffDocsToDelta;
|
|
152
|
+
exports.diffIdMap = Skip.diffIdMap;
|
|
153
|
+
exports.diffIdSet = Skip.diffIdSet;
|
|
154
|
+
exports.diffUpdate = Skip.diffUpdate;
|
|
155
|
+
exports.diffUpdateV2 = Skip.diffUpdateV2;
|
|
156
|
+
exports.emptySnapshot = Skip.emptySnapshot;
|
|
157
|
+
exports.encodeIdMap = Skip.encodeIdMap;
|
|
158
|
+
exports.encodeRelativePosition = Skip.encodeRelativePosition;
|
|
159
|
+
exports.encodeSnapshot = Skip.encodeSnapshot;
|
|
160
|
+
exports.encodeSnapshotV2 = Skip.encodeSnapshotV2;
|
|
161
|
+
exports.encodeStateAsUpdate = Skip.encodeStateAsUpdate;
|
|
162
|
+
exports.encodeStateAsUpdateV2 = Skip.encodeStateAsUpdateV2;
|
|
163
|
+
exports.encodeStateVector = Skip.encodeStateVector;
|
|
164
|
+
exports.encodeStateVectorFromUpdate = Skip.encodeStateVectorFromUpdate;
|
|
165
|
+
exports.encodeStateVectorFromUpdateV2 = Skip.encodeStateVectorFromUpdateV2;
|
|
166
|
+
exports.encodeStateVectorV2 = Skip.encodeStateVectorV2;
|
|
167
|
+
exports.equalAttrs = Skip.equalAttrs;
|
|
168
|
+
exports.equalIdSets = Skip.equalIdSets;
|
|
169
|
+
exports.equalSnapshots = Skip.equalSnapshots;
|
|
170
|
+
exports.find = Skip.find;
|
|
171
|
+
exports.findIndexCleanStart = Skip.findIndexCleanStart;
|
|
172
|
+
exports.findIndexInIdRanges = Skip.findIndexInIdRanges;
|
|
173
|
+
exports.findIndexSS = Skip.findIndexSS;
|
|
174
|
+
exports.findMarker = Skip.findMarker;
|
|
175
|
+
exports.findRangeStartInIdRanges = Skip.findRangeStartInIdRanges;
|
|
176
|
+
exports.findRootTypeKey = Skip.findRootTypeKey;
|
|
177
|
+
exports.followRedone = Skip.followRedone;
|
|
178
|
+
exports.generateNewClientId = Skip.generateNewClientId;
|
|
179
|
+
exports.getItem = Skip.getItem;
|
|
180
|
+
exports.getItemCleanEnd = Skip.getItemCleanEnd;
|
|
181
|
+
exports.getItemCleanStart = Skip.getItemCleanStart;
|
|
182
|
+
exports.getState = Skip.getState;
|
|
183
|
+
exports.getStateVector = Skip.getStateVector;
|
|
184
|
+
exports.getTypeChildren = Skip.getTypeChildren;
|
|
185
|
+
exports.idmapAttrsEqual = Skip.idmapAttrsEqual;
|
|
186
|
+
exports.insertIntoIdMap = Skip.insertIntoIdMap;
|
|
187
|
+
exports.insertIntoIdSet = Skip.insertIntoIdSet;
|
|
188
|
+
exports.insertText = Skip.insertText;
|
|
189
|
+
exports.integrityCheck = Skip.integrityCheck;
|
|
190
|
+
exports.intersectMaps = Skip.intersectMaps;
|
|
191
|
+
exports.intersectSets = Skip.intersectSets;
|
|
192
|
+
exports.isParentOf = Skip.isParentOf;
|
|
193
|
+
exports.isVisible = Skip.isVisible;
|
|
194
|
+
exports.iterateStructs = Skip.iterateStructs;
|
|
195
|
+
exports.iterateStructsByIdSet = Skip.iterateStructsByIdSet;
|
|
196
|
+
exports.keepItem = Skip.keepItem;
|
|
197
|
+
exports.logType = Skip.logType;
|
|
198
|
+
exports.logUpdate = Skip.logUpdate;
|
|
199
|
+
exports.logUpdateV2 = Skip.logUpdateV2;
|
|
200
|
+
exports.mergeIdMaps = Skip.mergeIdMaps;
|
|
201
|
+
exports.mergeIdSets = Skip.mergeIdSets;
|
|
202
|
+
exports.mergeUpdates = Skip.mergeUpdates;
|
|
203
|
+
exports.mergeUpdatesV2 = Skip.mergeUpdatesV2;
|
|
204
|
+
exports.nextID = Skip.nextID;
|
|
205
|
+
exports.noAttributionsManager = Skip.noAttributionsManager;
|
|
206
|
+
exports.obfuscateUpdate = Skip.obfuscateUpdate;
|
|
207
|
+
exports.obfuscateUpdateV2 = Skip.obfuscateUpdateV2;
|
|
208
|
+
exports.readAndApplyDeleteSet = Skip.readAndApplyDeleteSet;
|
|
209
|
+
exports.readContentAny = Skip.readContentAny;
|
|
210
|
+
exports.readContentBinary = Skip.readContentBinary;
|
|
211
|
+
exports.readContentDeleted = Skip.readContentDeleted;
|
|
212
|
+
exports.readContentDoc = Skip.readContentDoc;
|
|
213
|
+
exports.readContentEmbed = Skip.readContentEmbed;
|
|
214
|
+
exports.readContentFormat = Skip.readContentFormat;
|
|
215
|
+
exports.readContentJSON = Skip.readContentJSON;
|
|
216
|
+
exports.readContentString = Skip.readContentString;
|
|
217
|
+
exports.readContentType = Skip.readContentType;
|
|
218
|
+
exports.readID = Skip.readID;
|
|
219
|
+
exports.readIdMap = Skip.readIdMap;
|
|
220
|
+
exports.readIdSet = Skip.readIdSet;
|
|
221
|
+
exports.readItemContent = Skip.readItemContent;
|
|
222
|
+
exports.readRelativePosition = Skip.readRelativePosition;
|
|
223
|
+
exports.readStateVector = Skip.readStateVector;
|
|
224
|
+
exports.readStructSet = Skip.readStructSet;
|
|
225
|
+
exports.readUpdate = Skip.readUpdate;
|
|
226
|
+
exports.readUpdateIdRanges = Skip.readUpdateIdRanges;
|
|
227
|
+
exports.readUpdateIdRangesV2 = Skip.readUpdateIdRangesV2;
|
|
228
|
+
exports.readUpdateV2 = Skip.readUpdateV2;
|
|
229
|
+
exports.readYArray = Skip.readYArray;
|
|
230
|
+
exports.readYMap = Skip.readYMap;
|
|
231
|
+
exports.readYText = Skip.readYText;
|
|
232
|
+
exports.readYXmlElement = Skip.readYXmlElement;
|
|
233
|
+
exports.readYXmlFragment = Skip.readYXmlFragment;
|
|
234
|
+
exports.readYXmlHook = Skip.readYXmlHook;
|
|
235
|
+
exports.readYXmlText = Skip.readYXmlText;
|
|
236
|
+
exports.redoItem = Skip.redoItem;
|
|
237
|
+
exports.relativePositionToJSON = Skip.relativePositionToJSON;
|
|
238
|
+
exports.removeAllEventHandlerListeners = Skip.removeAllEventHandlerListeners;
|
|
239
|
+
exports.removeEventHandlerListener = Skip.removeEventHandlerListener;
|
|
240
|
+
exports.removeRangesFromStructSet = Skip.removeRangesFromStructSet;
|
|
241
|
+
exports.replaceStruct = Skip.replaceStruct;
|
|
242
|
+
exports.snapshot = Skip.snapshot;
|
|
243
|
+
exports.snapshotContainsUpdate = Skip.snapshotContainsUpdate;
|
|
244
|
+
exports.snapshotContainsUpdateV2 = Skip.snapshotContainsUpdateV2;
|
|
245
|
+
exports.splitItem = Skip.splitItem;
|
|
246
|
+
exports.splitSnapshotAffectedStructs = Skip.splitSnapshotAffectedStructs;
|
|
247
|
+
exports.splitStruct = Skip.splitStruct;
|
|
248
|
+
exports.structGCRefNumber = Skip.structGCRefNumber;
|
|
249
|
+
exports.structSkipRefNumber = Skip.structSkipRefNumber;
|
|
250
|
+
exports.transact = Skip.transact;
|
|
251
|
+
exports.tryGc = Skip.tryGc;
|
|
252
|
+
exports.typeListCreateIterator = Skip.typeListCreateIterator;
|
|
253
|
+
exports.typeListDelete = Skip.typeListDelete;
|
|
254
|
+
exports.typeListForEach = Skip.typeListForEach;
|
|
255
|
+
exports.typeListForEachSnapshot = Skip.typeListForEachSnapshot;
|
|
256
|
+
exports.typeListGet = Skip.typeListGet;
|
|
257
|
+
exports.typeListInsertGenerics = Skip.typeListInsertGenerics;
|
|
258
|
+
exports.typeListInsertGenericsAfter = Skip.typeListInsertGenericsAfter;
|
|
259
|
+
exports.typeListMap = Skip.typeListMap;
|
|
260
|
+
exports.typeListPushGenerics = Skip.typeListPushGenerics;
|
|
261
|
+
exports.typeListSlice = Skip.typeListSlice;
|
|
262
|
+
exports.typeListToArray = Skip.typeListToArray;
|
|
263
|
+
exports.typeListToArraySnapshot = Skip.typeListToArraySnapshot;
|
|
264
|
+
exports.typeMapDelete = Skip.typeMapDelete;
|
|
265
|
+
exports.typeMapGet = Skip.typeMapGet;
|
|
266
|
+
exports.typeMapGetAll = Skip.typeMapGetAll;
|
|
267
|
+
exports.typeMapGetAllSnapshot = Skip.typeMapGetAllSnapshot;
|
|
268
|
+
exports.typeMapGetDelta = Skip.typeMapGetDelta;
|
|
269
|
+
exports.typeMapGetSnapshot = Skip.typeMapGetSnapshot;
|
|
270
|
+
exports.typeMapHas = Skip.typeMapHas;
|
|
271
|
+
exports.typeMapSet = Skip.typeMapSet;
|
|
272
|
+
exports.typeRefs = Skip.typeRefs;
|
|
273
|
+
exports.updateMarkerChanges = Skip.updateMarkerChanges;
|
|
274
|
+
exports.warnPrematureAccess = Skip.warnPrematureAccess;
|
|
275
|
+
exports.writeClientsStructs = Skip.writeClientsStructs;
|
|
276
|
+
exports.writeDocumentStateVector = Skip.writeDocumentStateVector;
|
|
277
|
+
exports.writeID = Skip.writeID;
|
|
278
|
+
exports.writeIdMap = Skip.writeIdMap;
|
|
279
|
+
exports.writeIdSet = Skip.writeIdSet;
|
|
280
|
+
exports.writeRelativePosition = Skip.writeRelativePosition;
|
|
281
|
+
exports.writeStateAsUpdate = Skip.writeStateAsUpdate;
|
|
282
|
+
exports.writeStateVector = Skip.writeStateVector;
|
|
283
|
+
exports.writeStructsFromIdSet = Skip.writeStructsFromIdSet;
|
|
284
|
+
exports.writeStructsFromTransaction = Skip.writeStructsFromTransaction;
|
|
285
|
+
exports.writeUpdateMessageFromTransaction = Skip.writeUpdateMessageFromTransaction;
|
|
286
|
+
//# sourceMappingURL=internals.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internals.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|